WebDriverException: Message: Service /opt/robotframework/bin/chromedriver unexpectedly exited. Status code was: -5
pixelhomie opened this issue · 1 comments
pixelhomie commented
Describe the bug
I pulled the Docker image from Dockerhub and added the selenium.robot Test to my tests folder. After i run the container it shows
==============================================================================
Tests
==============================================================================
Tests.Selenium
==============================================================================
Visit Bing | FAIL |
WebDriverException: Message: Service /opt/robotframework/bin/chromedriver unexpectedly exited. Status code was: -5
------------------------------------------------------------------------------
Visit Google | FAIL |
WebDriverException: Message: Service /opt/robotframework/bin/chromedriver unexpectedly exited. Status code was: -5
------------------------------------------------------------------------------
Tests.Selenium | FAIL |
2 tests, 0 passed, 2 failed
==============================================================================
Tests | FAIL |
2 tests, 0 passed, 2 failed
==============================================================================
Output: /opt/robotframework/reports/output.xml
Log: /opt/robotframework/reports/log.html
Report: /opt/robotframework/reports/report.html
To Reproduce
Steps to reproduce the behavior:
- Add selenium.robot Test to your Testfolder
- Run
docker run -v $(pwd)/reports:/opt/robotframework/reports:Z -v $(pwd)/tests:/opt/robotframework/tests:Z -e BROWSER=chrome ppodgorsek/robot-framework:latest
- See error
Expected behavior
Test will pass without errors
Robot template
selenium.robot
OS
Distributor ID: Debian
Description: Debian GNU/Linux 9.13 (stretch)
Release: 9.13
Codename: stretch
ppodgorsek commented
Did you follow the steps in the troubleshooting section of the documentation, especially related to Chrome crashes?