I'm trying to launch chromedriver but it crashed with following messages. Can you please check my code and error?
from seleniumwire import webdriver # Import from seleniumwire
co = webdriver.ChromeOptions()
co.add_argument("--headless")
co.add_argument("--disable-gpu")
# co.add_argument(f'authorization={self.authorization}')
driver = webdriver.Chrome(chrome_options=co)
driver.implicitly_wait(3)
driver.get('https://www.google.com')
if self.driver != None:
self.driver.quit()
traceback:
07:42 ~/Github/apt_price (master)$ python3.6 test.py Traceback (most
recent call last): File "test.py", line 9, in <module>
driver = webdriver.Chrome() File "/home/adonisgenie/.local/lib/python3.6/site-packages/seleniumwire/webdriver.py",
line 115, in __init__
super().__init__(*args, **kwargs) File "/home/adonisgenie/.local/lib/python3.6/site-packages/selenium/webdriver/chrome/webdriver.py",
line 81, in __init__
desired_capabilities=desired_capabilities) File "/home/adonisgenie/.local/lib/python3.6/site-packages/selenium/webdriver/remote/webdriver.py",
line 157, in __init__
self.start_session(capabilities, browser_profile) File "/home/adonisgenie/.local/lib/python3.6/site-packages/selenium/webdriver/remote/webdriver.py",
line 252, in start_session
response = self.execute(Command.NEW_SESSION, parameters) File "/home/adonisgenie/.local/lib/python3.6/site-packages/selenium/webdriver/remote/webdriver.py",
line 321, in execute
self.error_handler.check_response(response) File "/home/adonisgenie/.local/lib/python3.6/site-packages/selenium/webdriver/remote/errorhandler.py",
line 242, in check_response
raise exception_class(message, screen, stacktrace) selenium.common.exceptions.WebDriverException: Message: unknown error:
cannot parse capability: proxy from unknown error: 'noProxy' must be a
string (Driver info: chromedriver=2.42.591071
(0b695ff80972cc1a65a5cd643186d2ae582cd4ac),platform=Linux
5.4.0-1029-aws x86_64)
[formatted by admin]