Fix for "Message: 'chromedriver' executable needs to be in PATH. Please

see https://sites.google.com/a/chromium.org/chromedriver/home" error on
non-Windows OS's.
This commit is contained in:
Tim McIver 2017-12-14 22:57:31 -05:00
parent 4384495043
commit daeb41cda0

View File

@ -57,7 +57,7 @@ def fetch_activation_bytes(username, password, options):
if sys.platform == 'win32': if sys.platform == 'win32':
chromedriver_path = "chromedriver.exe" chromedriver_path = "chromedriver.exe"
else: else:
chromedriver_path = "./chromedriver" chromedriver_path = "chromedriver"
driver = webdriver.Chrome(chrome_options=opts, driver = webdriver.Chrome(chrome_options=opts,
executable_path=chromedriver_path) executable_path=chromedriver_path)