mirror of
https://git.zavage.net/Zavage-Software/wabot.git
synced 2024-12-22 18:39:20 -07:00
changed quote style
This commit is contained in:
parent
6b3de90926
commit
e0e70cc539
@ -26,19 +26,19 @@ class BrowserProxy:
|
|||||||
self._pickle_filename = pickle_filename
|
self._pickle_filename = pickle_filename
|
||||||
LOGGER.info('creating selenium browser: session name = %s', session_name)
|
LOGGER.info('creating selenium browser: session name = %s', session_name)
|
||||||
try:
|
try:
|
||||||
driver_type = "remote_chromium2"
|
driver_type = 'remote_chromium2'
|
||||||
self.driver_type = driver_type
|
self.driver_type = driver_type
|
||||||
print('session_name:', session_name)
|
print('session_name:', session_name)
|
||||||
if phantom:
|
if phantom:
|
||||||
pass
|
pass
|
||||||
driver_type = "phantomjs"
|
# driver_type = "phantomjs"
|
||||||
self.driver = self.get_driver(driver_type, session_name)
|
self.driver = self.get_driver(driver_type, session_name)
|
||||||
if not self.driver:
|
if not self.driver:
|
||||||
LOGGER.error("failed to get selenium webdriver")
|
LOGGER.error('failed to get selenium webdriver')
|
||||||
self.good = False
|
self.good = False
|
||||||
return
|
return
|
||||||
except Exception as ex:
|
except Exception as ex:
|
||||||
print("caught exception at BrowserProxy().__init__")
|
print('caught exception at BrowserProxy().__init__')
|
||||||
print(type(ex), ex)
|
print(type(ex), ex)
|
||||||
|
|
||||||
# self.page = nhsn_lo.pages.Login(self)
|
# self.page = nhsn_lo.pages.Login(self)
|
||||||
|
Loading…
Reference in New Issue
Block a user