Skip to content

Commit 5a1e1e5

Browse files
authored
Merge pull request #72 from christian-roggia/troubleshooting
Added chromedriver troubleshooting for known issue
2 parents 8f710aa + d4778b5 commit 5a1e1e5

File tree

1 file changed

+11
-2
lines changed

1 file changed

+11
-2
lines changed

README.md

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ It is possible to define the settings of the virtual screen in which the browser
4646
* `SCREEN_HEIGHT` (default: 1080)
4747
* `SCREEN_WIDTH` (default: 1920)
4848

49-
## Passing additional options
49+
### Passing additional options
5050

5151
RobotFramework supports many options such as `--exclude`, `--variable`, `--loglevel`, etc. These can be passed by using the `ROBOT_OPTIONS` environment variable, for example:
5252

@@ -72,7 +72,7 @@ Not convinced yet? Simple tests have been prepared in the `test/` folder, you ca
7272
-e BROWSER=firefox \
7373
ppodgorsek/robot-framework:latest
7474

75-
For Windows users, the commands are slightly different:
75+
For Windows users who use **PowerShell**, the commands are slightly different:
7676

7777
# Using Chromium
7878
docker run \
@@ -90,6 +90,15 @@ For Windows users, the commands are slightly different:
9090

9191
Screenshots of the results will be available in the `reports/` folder.
9292

93+
## Troubleshooting
94+
95+
Chrome drivers might crash due to the small size of `/dev/shm` in the docker container:
96+
> UnknownError: session deleted because of page crash
97+
98+
This is [a known bug of Chromium](https://bugs.chromium.org/p/chromium/issues/detail?id=715363).
99+
100+
To avoid this error, please change the shm size when starting the container by adding the following parameter: `--shm-size=1g` (or any other size more suited to your tests)
101+
93102
## Please contribute!
94103

95104
Have you found an issue? Do you have an idea for an improvement? Feel free to contribute by submitting it [on the GitHub project](https://github.com/ppodgorsek/docker-robot-framework/issues).

0 commit comments

Comments
 (0)