Open ikko030 opened 10 months ago
tracking internally at b/317372927
I am having the same problem, if you have a solution. Please feel free to share it here. Thanks in advance!
I am having the same problem too. I hope that everyone who knows about the solution let me know it
Same problem, two debugging days with no results 😢
Pease try to remove the headless option!
I have the same problem.
I have ensured compatibility between ChromeDriver and the browser, and I have also installed the latest version of Selenium. However, the code does not execute in Colab, while it does work in Jupyter Notebook.
from selenium import webdriver import time
driver = webdriver.Chrome()
driver.get("https://google.com")
time.sleep(5)
If you run the above code, the following error occurs.
SessionNotCreatedException Traceback (most recent call last) in <cell line: 4>()
2 import time
3
----> 4 driver = webdriver.Chrome()
5
6 driver.get("https://google.com/")
5 frames /usr/local/lib/python3.10/dist-packages/selenium/webdriver/remote/errorhandler.py in check_response(self, response) 227 alert_text = value["alert"].get("text") 228 raise exception_class(message, screen, stacktrace, alert_text) # type: ignore[call-arg] # mypy is not smart enough here --> 229 raise exception_class(message, screen, stacktrace)
SessionNotCreatedException: Message: session not created: Chrome failed to start: exited normally. (session not created: DevToolsActivePort file doesn't exist) (The process started from chrome location /root/.cache/selenium/chrome/linux64/120.0.6099.109/chrome is no longer running, so ChromeDriver is assuming that Chrome has crashed.) Stacktrace:
0 0x5ab48153df83
1 0x5ab4811f6cf7
2 0x5ab48122e60e
3 0x5ab48122b26e
4 0x5ab48127b80c
5 0x5ab48126fe53
6 0x5ab481237dd4
7 0x5ab4812391de
8 0x5ab481502531
9 0x5ab481506455
10 0x5ab4814eef55
11 0x5ab4815070ef
12 0x5ab4814d299f
13 0x5ab48152b008
14 0x5ab48152b1d7
15 0x5ab48153d124
16 0x798d53a89ac3
I just want to do web scraping...( ´༎ຶㅂ༎ຶ`)