docker-robot-framework
docker-robot-framework copied to clipboard
Selenium and Chrome test fail - SessionNotCreatedException: Message: session not created
Running latest version and receiving the following error for Chrome in the Selenium test.
Using only the same tests from this Repo.
$ docker run -e BROWSER="chrome" -v C:/Projects/robotframework/docker-robot-framework-master/results:/opt/robotframework/reports:Z -v C:/Projects/robotframework/docker-robot-framework-master/test:/opt/robotframework/tests:Z ppodgorsek/robot-framework:latest
==============================================================================
Tests
==============================================================================
Tests.Browser-Library
==============================================================================
Visit Bing | PASS |
------------------------------------------------------------------------------
Visit Google | PASS |
------------------------------------------------------------------------------
Visit Yahoo | PASS |
------------------------------------------------------------------------------
Tests.Browser-Library | PASS |
3 tests, 3 passed, 0 failed
==============================================================================
Tests.Faker
==============================================================================
Can Get Fake Name | PASS |
------------------------------------------------------------------------------
Two Calls To Faker Should Give Different Results | PASS |
------------------------------------------------------------------------------
Can call Words with integer argument | PASS |
------------------------------------------------------------------------------
Can call Words with str integer argument | PASS |
------------------------------------------------------------------------------
Can call SHA-1 | PASS |
------------------------------------------------------------------------------
Can Lexify | PASS |
------------------------------------------------------------------------------
Can call Password | PASS |
------------------------------------------------------------------------------
Tests.Faker | PASS |
7 tests, 7 passed, 0 failed
==============================================================================
Tests.Requests
==============================================================================
Get Requests | PASS |
------------------------------------------------------------------------------
Get Requests with Url Parameters | PASS |
------------------------------------------------------------------------------
Get HTTPS & Verify Cert | PASS |
------------------------------------------------------------------------------
Post Request With URL Params | PASS |
------------------------------------------------------------------------------
Post Request With No Data | PASS |
------------------------------------------------------------------------------
Put Request With No Data | PASS |
------------------------------------------------------------------------------
Post Request With No Dictionary | PASS |
------------------------------------------------------------------------------
Put Request With URL Params | PASS |
------------------------------------------------------------------------------
Put Request With No Dictionary | PASS |
------------------------------------------------------------------------------
Post Requests | PASS |
------------------------------------------------------------------------------
Post With Unicode Data | PASS |
------------------------------------------------------------------------------
Post Request With Unicode Data | PASS |
------------------------------------------------------------------------------
Post Request With Data and File | PASS |
------------------------------------------------------------------------------
Put Requests | PASS |
------------------------------------------------------------------------------
Head Request | PASS |
------------------------------------------------------------------------------
Options Request | PASS |
------------------------------------------------------------------------------
Delete Request With URL Params | PASS |
------------------------------------------------------------------------------
Delete Request With No Data | PASS |
------------------------------------------------------------------------------
Delete Request With Data | PASS |
------------------------------------------------------------------------------
Patch Requests | PASS |
------------------------------------------------------------------------------
Post Request With Redirection | PASS |
------------------------------------------------------------------------------
Post Request Without Redirection | PASS |
------------------------------------------------------------------------------
Put Request With Redirection | PASS |
------------------------------------------------------------------------------
Put Request Without Redirection | PASS |
------------------------------------------------------------------------------
Do Not Pretty Print a JSON object | PASS |
------------------------------------------------------------------------------
Tests.Requests | PASS |
25 tests, 25 passed, 0 failed
==============================================================================
Tests.Selenium
==============================================================================
Visit Bing | PASS |
------------------------------------------------------------------------------
Visit Google | FAIL |
SessionNotCreatedException: Message: session not created
from disconnected: Unable to receive message from renderer
(Session info: chrome=86.0.4240.111)
------------------------------------------------------------------------------
Visit Yahoo [ WARN ] Keyword 'Capture Page Screenshot' could not be run on failure: WebDriverException: Message: chrome not reachable
(Session info: chrome=86.0.4240.111)
| FAIL |
WebDriverException: Message: chrome not reachable
(Session info: chrome=86.0.4240.111)
------------------------------------------------------------------------------
Tests.Selenium | FAIL |
3 tests, 1 passed, 2 failed
==============================================================================
Tests.Timezones
==============================================================================
Get Time with Datetime | PASS |
17-04-2021 21:49:02.78542521
------------------------------------------------------------------------------
Tests.Timezones | PASS |
1 test, 1 passed, 0 failed
==============================================================================
Tests | FAIL |
39 tests, 37 passed, 2 failed
==============================================================================
Output: /opt/robotframework/reports/output.xml
Log: /opt/robotframework/reports/log.html
Report: /opt/robotframework/reports/report.html
is it always the same test that fails? Can you enable chrome debugging and see if there are any errors?
Yes, always the Selenium tests above
I don't know how to enable chrome debugging. I am just using the docker hub version of this so I am not setting up anything different.
https://github.com/ppodgorsek/docker-robot-framework#chromium-is-crashing Try this?