|
@@ -20,7 +20,7 @@ class Ssgdfs(object):
|
|
|
|
|
|
self.core()
|
|
|
|
|
|
- self.close()
|
|
|
+ self.quit()
|
|
|
except BaseException as e:
|
|
|
print e
|
|
|
self.start()
|
|
@@ -71,6 +71,7 @@ class Ssgdfs(object):
|
|
|
if string in data:
|
|
|
return True
|
|
|
else:
|
|
|
+ self.close()
|
|
|
return False
|
|
|
|
|
|
def open(self):
|
|
@@ -168,6 +169,11 @@ class Ssgdfs(object):
|
|
|
self.driver.implicitly_wait(10)
|
|
|
|
|
|
def close(self):
|
|
|
+ self.driver.quit()
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+ def quit(self):
|
|
|
self.driver.quit()
|
|
|
|
|
|
|