|
@@ -71,7 +71,10 @@ class Ssgdfs(object):
|
|
|
return True
|
|
|
|
|
|
def open(self):
|
|
|
- self.driver = webdriver.Remote(command_executor=Demeter.config['setting']['phantomjs'], desired_capabilities=DesiredCapabilities.PHANTOMJS)
|
|
|
+ self.display = Display(visible=0, size=(800, 600))
|
|
|
+ self.display.start()
|
|
|
+
|
|
|
+ self.driver = webdriver.Firefox()
|
|
|
|
|
|
def login(self):
|
|
|
self.driver.get(self.config['login_link'])
|
|
@@ -153,4 +156,6 @@ class Ssgdfs(object):
|
|
|
WebDriverWait(self.driver, 100).until(lambda x: x.find_element_by_class_name(name).is_displayed())
|
|
|
|
|
|
def close(self):
|
|
|
- self.driver.close()
|
|
|
+ self.driver.quit()
|
|
|
+
|
|
|
+ self.display.stop()
|