![]() ![]() (Driver info: chromedriver=63 (092de99f48a300323ecf8c2a4e2e7cab51de5ba8),platform=Linux 4.4.0-83-generic x86_64)Īnd if I run google-chrome directly in docker, it shows below: google-chromeįailed to move to new namespace: PID namespaces supported, Network namespace supported, but failed: errno = Operation not permitted : Message: unknown error: Chrome failed to start: crashed Raise exception_class(message, screen, stacktrace) Self.error_handler.check_response(response)įile "/usr/local/lib/python2.7/dist-packages/selenium/webdriver/remote/errorhandler.py", line 194, in check_response Response = self.execute(Command.NEW_SESSION, parameters)įile "/usr/local/lib/python2.7/dist-packages/selenium/webdriver/remote/webdriver.py", line 249, in execute ![]() Self.start_session(desired_capabilities, browser_profile)įile "/usr/local/lib/python2.7/dist-packages/selenium/webdriver/remote/webdriver.py", line 185, in start_session (The process started from chrome location /usr/bin/google-chrome is no longer running, so ChromeDriver is assuming that Chrome has crashed.I installed google-chrome in a Docker, but when I run my Python 2 script of Selenium, it failed like this: python test.pyįile "/usr/local/lib/python2.7/dist-packages/selenium/webdriver/chrome/webdriver.py", line 69, in _init_ĭesired_capabilities=desired_capabilities)įile "/usr/local/lib/python2.7/dist-packages/selenium/webdriver/remote/webdriver.py", line 98, in _init_ ![]() But when I run it as sudo python test.py it crashes with following error: : Message: unknown error: Chrome failed to start: crashed. WebDriverWait(browser, script runs perfectly fine when run as python3 test.py. ![]() Following is the snippet chrome_options = webdriver.ChromeOptions()Ĭhrome_options.add_argument('-no-sandbox')īrowser = webdriver.Chrome("/path/to/chromdriver", desired_capabilities=chrome_options.to_capabilities()) I have a python script where I login to a website using Selenium. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |