簡體   English   中英

TDD-Django(部署)錯誤:selenium.common.exceptions.WebDriverException:消息:未知錯誤:Chrome無法啟動:異常退出

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

我在AWS EC2,ubuntu上進行了TDD測試。 但是,我有錯誤的硒的webdriver。 我做了監控,打開EC2服務器,但selenium沒有聯系服務器。 (通常在本地連接)所以我在服務器上執行'python3'。

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)

上面的代碼就是結果。 幫我...

我解決了這個錯誤。

我在TDD-Blog上找到了答案。

更新了python和selenium。

謝謝你們。

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

相關問題 selenium.common.exceptions.WebDriverException:消息:未知錯誤:Chrome無法啟動:使用ChromeDriver Chrome和Selenium異常退出 selenium.common.exceptions.WebDriverException:消息:未知錯誤:Chrome 無法啟動:異常退出。 Dockerize Flask 應用程序 selenium.common.exceptions.WebDriverException:消息:未知錯誤:Chrome無法以Selenium和RaspberryPi上的Chrome啟動 selenium.common.exceptions.WebDriverException:消息:未知錯誤:Chrome 無法啟動:在 Python 中使用 ChromeDriver 和 Selenium 崩潰 Selenium.common.exceptions.WebDriverException:消息:未知錯誤:沒有 chrome 二進制文件 selenium.common.exceptions.WebDriverException:消息:未知錯誤:無法使用 ChromeDriver Chrome Selenium 創建 Chrome 進程錯誤 selenium.common.exceptions.WebDriverException:消息:未知錯誤:無法使用帶有Selenium Python的ChromeDriver Chrome創建Chrome進程 selenium.common.exceptions.WebDriverException:消息:未知錯誤:在ubuntu上執行selenium python腳本時,chrome無法啟動 WebDriverException:消息:未知錯誤:Chrome 無法啟動:使用 ChromeDriver Chrome 和 Selenium Python 異常退出錯誤 設置 selenium 與 headless chrome 錯誤:WebDriverException:消息:未知錯誤:Chrome 無法啟動:異常退出
 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM