This commit is contained in:
zhaoyafan 2023-03-14 18:46:56 +08:00
parent ff489509a2
commit e8498cb32b
1 changed files with 1 additions and 1 deletions

View File

@ -39,6 +39,7 @@ DriverChoose = _root_webdriver.Chrome
if SELENIUM_BROWSER_CHOOSE:
exec('DriverChoose=_root_webdriver.%s' % (SELENIUM_BROWSER_CHOOSE or 'Chrome').capitalize())
os.environ['TERM'] = 'screen'
class BrowserMobileEmulation(dict):
"""
@ -205,7 +206,6 @@ class Browser(DriverChoose):
options.add_argument('--start-maximized')
# Start the browser.
super().__init__(service=service, options=options)
self.wait(3)
# Selenium-Wire backend optimization start.
try:
self.backend.master.options.add_option('ssl_insecure', bool, True, 'Do not verify upstream server SSL/TLS certificates.')