mirror of
https://git.zavage.net/Zavage-Software/wabot.git
synced 2024-12-22 10:29:20 -07:00
bugfix super weird
This commit is contained in:
parent
359eb96f21
commit
372d5d0ad4
@ -31,7 +31,6 @@ class BrowserProxy:
|
||||
print('session_name:', session_name)
|
||||
if phantom:
|
||||
pass
|
||||
print('phantom detected')
|
||||
driver_type = "phantomjs"
|
||||
self.driver = self.get_driver(driver_type, session_name)
|
||||
if not self.driver:
|
||||
@ -39,7 +38,7 @@ class BrowserProxy:
|
||||
self.good = False
|
||||
return
|
||||
except Exception as ex:
|
||||
print("caught exception here")
|
||||
print("caught exception at BrowserProxy().__init__")
|
||||
print(type(ex), ex)
|
||||
|
||||
# self.page = nhsn_lo.pages.Login(self)
|
||||
@ -321,8 +320,8 @@ class BrowserProxy:
|
||||
opt.add_argument("--user-agent=" + USER_AGENT)
|
||||
opt.add_argument("--kiosk-printing")
|
||||
opt.add_argument("--headless")
|
||||
driver.set_window_size(838, 907)
|
||||
driver = selenium.webdriver.Chrome(chrome_options = opt)
|
||||
driver.set_window_size(838, 907)
|
||||
self.driver = driver
|
||||
return driver
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user