I am trying to upgrade our container instances of Robot Framework and the corresponding Selenium and Chrome pieces to allow for the use of newer keywords in the SeleniumLibrary for Robot Framework. However I cannot get past 2 issues after updating:
WebDriverException: Message: unknown error: Chrome failed to start: exited abnormally
(unknown error: DevToolsActivePort file doesn't exist)
(The process started from chrome location /usr/bin/chromium-browser is no longer running, so ChromeDriver is assuming that Chrome has crashed.)
(Driver info: chromedriver=2.43.600233 (523efee95e3d68b8719b3a1c83051aa63aa6b10d),platform=Linux 3.10.0-693.17.1.el7.x86_64 x86_64)
Using the disable-gpu and no-sandbox parameters in chrome's options.py file
${chrome_options}= Evaluate sys.modules['selenium.webdriver'].ChromeOptions() sys, selenium.webdriver
Call Method ${chrome_options} add_argument headless
Call Method ${chrome_options} add_argument disable-gpu
Call Method ${chrome_options} add_argument --start-maximized
Call Method ${chrome_options} add_argument --allow-running-insecure-content
Call Method ${chrome_options} add_argument --disable-web-security
Create Webdriver chrome chrome_options=${chrome_options}
Working System Setup:
Updated and Failing System Setup:
Simple Robot test, open URL, enter user name and password and click login. The breaking of open browser I have not been able to get around despite the number of recommendations on adding arguments to Chrome to help. I have tried adding all of the following:
self._arguments = ['--no-sandbox','--disable-gpu', '--headless', '--disable-dev-shm-usage', 'window-size=1920,1080']
In addition to the options noted in the Create WebDriver call.
Why is Open Browser no longer working and what can I look at to figure out why the Create Web Driver will not allow good creds to auth into the site (yes, I can log in manually).
I know there are a lot of changes to the packages and environments. I can confirm that just updating the Chrome Driver, Chromium Browser, Selenium and Robot Selenium packages in Alpine 3.4.6 alone net the same error as noted in #1 above. I am not sure where else to look now or how to figure out what to change.
Any help is appreciated
There is a link to the proper binary in that path yes. Also I think this issue is directly related to the robotframework-seleniumlibrary. I say this because once I rolled back to version 3.0.[0|1] I was able to use Open Browser without issue and the error message was gone. This doesnt solve my issue however because a team member wants to use new Keywords in the library introduced in SeleniumLibrary 3.2
--
You received this message because you are subscribed to the Google Groups "robotframework-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to robotframework-u...@googlegroups.com.
To post to this group, send email to robotframe...@googlegroups.com.
Visit this group at https://groups.google.com/group/robotframework-users.
For more options, visit https://groups.google.com/d/optout.
Full Name: | Test.Test Chrome |
---|---|
Start / End / Elapsed: | 20181122 11:52:11.600 / 20181122 11:52:13.596 / 00:00:01.996 |
Status: | FAIL (critical) |
Message: | WebDriverException: Message: unknown error: Chrome failed to start: exited abnormally (unknown error: DevToolsActivePort file doesn't exist) (The process started from chrome location /usr/lib/chromium-browser/chromium-browser is no longer running, so ChromeDriver is assuming that Chrome has crashed.) (Driver info: chromedriver=2.44.609551 (5d576e9a44fe4c5b6a07e568f1ebc753f1214634),platform=Linux 3.10.0-693.17.1.el7.x86_64 x86_64) |
Start / End / Elapsed: | 20181122 11:52:11.601 / 20181122 11:52:13.595 / 00:00:01.994 |
---|
Documentation: | Opens a new browser instance to the given |
---|---|
Start / End / Elapsed: | 20181122 11:52:11.601 / 20181122 11:52:13.594 / 00:00:01.993 |
11:52:11.602 | TRACE | Arguments: [ 'http://google.com' | 'Chrome' ] |
11:52:11.602 | INFO | Opening browser 'Chrome' to base url 'http://google.com'. |
11:52:13.525 | DEBUG | POST http://127.0.0.1:52399/session {"capabilities": {"alwaysMatch": {"browserName": "chrome", "platformName": "any"}, "firstMatch": [{}]}, "desiredCapabilities": {"platform": "ANY", "browserName": "chrome", "version": ""}} |
11:52:13.526 | DEBUG | Starting new HTTP connection (1): 127.0.0.1:52399 |
11:52:13.587 | DEBUG | http://127.0.0.1:52399 "POST /session HTTP/1.1" 200 496 |
11:52:13.587 | DEBUG | Finished Request |
11:52:13.594 | FAIL | WebDriverException: Message: unknown error: Chrome failed to start: exited abnormally (unknown error: DevToolsActivePort file doesn't exist) (The process started from chrome location /usr/lib/chromium-browser/chromium-browser is no longer running, so ChromeDriver is assuming that Chrome has crashed.) (Driver info: chromedriver=2.44.609551 (5d576e9a44fe4c5b6a07e568f1ebc753f1214634),platform=Linux 3.10.0-693.17.1.el7.x86_64 x86_64) |
11:52:13.594 | DEBUG | Traceback (most recent call last): File "/usr/local/lib/python2.7/dist-packages/SeleniumLibrary/__init__.py", line 369, in run_keyword return DynamicCore.run_keyword(self, name, args, kwargs) File "/usr/local/lib/python2.7/dist-packages/SeleniumLibrary/base/robotlibcore.py", line 102, in run_keyword return self.keywords[name](*args, **kwargs) File "/usr/local/lib/python2.7/dist-packages/SeleniumLibrary/keywords/browsermanagement.py", line 131, in open_browser ff_profile_dir, remote_url) File "/usr/local/lib/python2.7/dist-packages/SeleniumLibrary/keywords/browsermanagement.py", line 456, in _make_driver remote_url=remote, profile_dir=profile_dir) File "/usr/local/lib/python2.7/dist-packages/SeleniumLibrary/keywords/webdrivertools.py", line 58, in create_driver return creation_method(desired_capabilities, remote_url) File "/usr/local/lib/python2.7/dist-packages/SeleniumLibrary/keywords/webdrivertools.py", line 85, in create_chrome options=options) File "/usr/local/lib/python2.7/dist-packages/selenium/webdriver/chrome/webdriver.py", line 81, in __init__ desired_capabilities=desired_capabilities) File "/usr/local/lib/python2.7/dist-packages/selenium/webdriver/remote/webdriver.py", line 157, in __init__ self.start_session(capabilities, browser_profile) File "/usr/local/lib/python2.7/dist-packages/selenium/webdriver/remote/webdriver.py", line 252, in start_session response = self.execute(Command.NEW_SESSION, parameters) File "/usr/local/lib/python2.7/dist-packages/selenium/webdriver/remote/webdriver.py", line 321, in execute self.error_handler.check_response(response) File "/usr/local/lib/python2.7/dist-packages/selenium/webdriver/remote/errorhandler.py", line 242, in check_response raise exception_class(message, screen, stacktrace) |