Update __init__.py

This commit is contained in:
Leon 2020-03-06 21:20:31 +01:00 committed by GitHub
parent 4d253ef037
commit be40873506
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 1 deletions

View File

@ -43,7 +43,8 @@ class Chrome:
ChromeDriverManager(*args, **kwargs).patch_selenium_webdriver()
if not kwargs.get('executable_path'):
kwargs['executable_path'] = './{}'.format(ChromeDriverManager(*args, **kwargs).executable_path)
if not kwargs.get('options'):
kwargs['options'] = ChromeOptions()
instance = object.__new__(_Chrome)
instance.__init__(*args, **kwargs)
instance.execute_cdp_cmd(