Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Selenium and Chrome test fail - SessionNotCreatedException: Message: session not created #351

Open
nathanhannig opened this issue Apr 17, 2021 · 4 comments

Comments

@nathanhannig
Copy link

nathanhannig commented Apr 17, 2021

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
@UltimateDogg
Copy link
Collaborator

is it always the same test that fails? Can you enable chrome debugging and see if there are any errors?

@nathanhannig
Copy link
Author

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.

@UltimateDogg
Copy link
Collaborator

@ppodgorsek
Copy link
Owner

This looks very similar to the issue reported in the troubleshooting section of the README.
Chrome tends to crash if Docker's shared memory is not correctly set.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants