Categories
Mastering Development

Error in opening chrome browser on unix using selenium webdriver_manager

from selenium import webdriver
from webdriver_manager.chrome import ChromeDriverManager

driver = webdriver.Chrome(ChromeDriverManager().install())
driver.get("http://www.python.org")
driver.quit()

Error Received :

Traceback (most recent call last): File "chrome_code.py", line 2, in

from webdriver_manager.chrome import ChromeDriverManager File "/home/akshat/Desktop/test/venv/lib/python3.5/site-packages/webdriver_manager/chrome.py",
line 4, in
from webdriver_manager.driver import ChromeDriver File "/home/akshat/Desktop/test/venv/lib/python3.5/site-packages/webdriver_manager/driver.py",
line 77
self.auth_header = {‘Authorization’: f’token {self._os_token}’}
^ SyntaxError: invalid syntax

Leave a Reply

Your email address will not be published. Required fields are marked *