File tree Expand file tree Collapse file tree 3 files changed +11
-0
lines changed Expand file tree Collapse file tree 3 files changed +11
-0
lines changed Original file line number Diff line number Diff line change @@ -141,6 +141,8 @@ ENV START_XVFB true
141
141
#========================
142
142
# As integer, maps to "max-concurrent-sessions"
143
143
ENV SE_NODE_MAX_SESSIONS 1
144
+ # As integer, maps to "session-timeout" in seconds
145
+ ENV SE_NODE_SESSION_TIMEOUT 300
144
146
145
147
# Following line fixes https://github.com/SeleniumHQ/docker-selenium/issues/87
146
148
ENV DBUS_SESSION_BUS_ADDRESS=/dev/null
Original file line number Diff line number Diff line change @@ -30,6 +30,7 @@ if [[ -z "${SE_NODE_GRID_URL}" ]]; then
30
30
else
31
31
echo " grid-url = \" ${SE_NODE_GRID_URL} \" " >> /opt/selenium/config.toml
32
32
fi
33
+ echo " session-timeout = \" ${SE_NODE_SESSION_TIMEOUT} \" " >> /opt/selenium/config.toml
33
34
echo " max-sessions = ${SE_NODE_MAX_SESSIONS}
34
35
" >> /opt/selenium/config.toml
35
36
Original file line number Diff line number Diff line change @@ -404,6 +404,14 @@ environmental variables when starting the container.
404
404
docker run -d -e SCREEN_WIDTH=1366 -e SCREEN_HEIGHT=768 -e SCREEN_DEPTH=24 -e SCREEN_DPI=74 selenium/standalone-firefox
405
405
```
406
406
407
+ ### Grid Url and Session Timeout
408
+
409
+ In some use cases you might need to set the Grid url to the Node, for example if you'd like to access the CDP endpoint. You
410
+ can do that through the ` SE_NODE_GRID_URL ` environment variable.
411
+
412
+ Grid has a default session timeout of 300 seconds, where the session can be on a stale state until it is killed. You can use
413
+ ` SE_NODE_SESSION_TIMEOUT ` to overwrite that value in seconds.
414
+
407
415
### Running in Headless mode
408
416
409
417
[ Firefox] ( https://developer.mozilla.org/en-US/docs/Mozilla/Firefox/Headless_mode ) ,
You can’t perform that action at this time.
0 commit comments