fix small bug in TARGET_VERSION

This commit is contained in:
Leon 2020-05-13 22:18:20 +02:00 committed by GitHub
parent 3293fb347f
commit 9cd00ce07f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 2 deletions

View File

@ -99,12 +99,13 @@ class ChromeOptions:
class ChromeDriverManager(object):
installed = False
selenium_patched = False
target_version = TARGET_VERSION
def __init__(self, executable_path=None, target_version=None, *args, **kwargs):
_platform = sys.platform
self.target_version = target_version or TARGET_VERSION
if target_version:
self.__class__.target_version = target_version
self._base = base_ = "chromedriver{}"
exe_name = self._base