fix small bug in TARGET_VERSION
This commit is contained in:
parent
3293fb347f
commit
9cd00ce07f
|
@ -99,12 +99,13 @@ class ChromeOptions:
|
||||||
class ChromeDriverManager(object):
|
class ChromeDriverManager(object):
|
||||||
installed = False
|
installed = False
|
||||||
selenium_patched = False
|
selenium_patched = False
|
||||||
|
target_version = TARGET_VERSION
|
||||||
|
|
||||||
def __init__(self, executable_path=None, target_version=None, *args, **kwargs):
|
def __init__(self, executable_path=None, target_version=None, *args, **kwargs):
|
||||||
|
|
||||||
_platform = sys.platform
|
_platform = sys.platform
|
||||||
self.target_version = target_version or TARGET_VERSION
|
if target_version:
|
||||||
|
self.__class__.target_version = target_version
|
||||||
self._base = base_ = "chromedriver{}"
|
self._base = base_ = "chromedriver{}"
|
||||||
|
|
||||||
exe_name = self._base
|
exe_name = self._base
|
||||||
|
|
Loading…
Reference in New Issue