简体   繁体   中英

TDD-Django(deploy) Error : selenium.common.exceptions.WebDriverException: Message: unknown error: Chrome failed to start: exited abnormally

I did TDD testing on AWS EC2, ubuntu. but, I have error that webdriver of selenium. I did monitoring, switch on EC2 server, but selenium didn't contact server. (Connected normally on local) So I executed 'python3' on server.

Python 3.5.2 (default, Nov 17 2016, 17:05:23)
[GCC 5.4.0 20160609] on linux

>>> from selenium import webdriver
>>> browser = webdriver.Chrome()

Traceback (most recent call last)  :
  File "<stdin>", line 1, in <module>
  File "/home/ubuntu/.local/lib/python3.5/site-
packages/selenium/webdriver/chrome/webdriver.py", line 69, in __init__
    desired_capabilities=desired_capabilities)
  File "/home/ubuntu/.local/lib/python3.5/site-
packages/selenium/webdriver/remote/webdriver.py", line 98, in __init__
    self.start_session(desired_capabilities, browser_profile)
  File "/home/ubuntu/.local/lib/python3.5/site-
packages/selenium/webdriver/remote/webdriver.py", line 188, in 
start_session
response = self.execute(Command.NEW_SESSION, parameters)
  File "/home/ubuntu/.local/lib/python3.5/site-
packages/selenium/webdriver/remote/webdriver.py", line 252, in execute
self.error_handler.check_response(response)
  File "/home/ubuntu/.local/lib/python3.5/site-
packages/selenium/webdriver/remote/errorhandler.py", line 194, in 
check_response
    raise exception_class(message, screen, stacktrace)
selenium.common.exceptions.WebDriverException: Message: unknown error: 
Chrome failed to start: exited abnormally
  (Driver info: chromedriver=2.26.436382 
(70eb799287ce4c2208441fc057053a5b07ceabac),platform=Linux 4.4.0-1013-
aws x86_64)

The above code is the result. Help me...

I solved the error.

I found the answer on TDD-Blog .

Updated python and selenium.

Thank you all.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

Related Question selenium.common.exceptions.WebDriverException: Message: unknown error: Chrome failed to start: exited abnormally with ChromeDriver Chrome and Selenium selenium.common.exceptions.WebDriverException: Message: unknown error: Chrome failed to start: exited abnormally. Dockerize Flask Application selenium.common.exceptions.WebDriverException: Message: unknown error: Chrome failed to start with Selenium and Chrome on RaspberryPi selenium.common.exceptions.WebDriverException: Message: unknown error: Chrome failed to start: crashed with ChromeDriver and Selenium in Python Selenium.common.exceptions.WebDriverException: Message: unknown error: no chrome binary selenium.common.exceptions.WebDriverException: Message: unknown error: Failed to create a Chrome process error with ChromeDriver Chrome Selenium selenium.common.exceptions.WebDriverException: Message: unknown error: Failed to create Chrome process with ChromeDriver Chrome with Selenium Python selenium.common.exceptions.WebDriverException: Message: unknown error: chrome failed to start while executing selenium python script on ubuntu WebDriverException: Message: unknown error: Chrome failed to start: exited abnormally error using ChromeDriver Chrome and Selenium Python Setup selenium with headless chrome error: WebDriverException: Message: unknown error: Chrome failed to start: exited abnormally
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM