Skip to content

Commit 98b3639

Browse files
authored
Documented how to change screen resolution
1 parent b944ebf commit 98b3639

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

README.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -195,6 +195,14 @@ can be used to supply the hub a url where the node is reachable under your speci
195195
$ docker run -d -e HUB_HOST=<hub_ip|hub_name> -e REMOTE_HOST="http://node_ip|node_name:node_port" selenium/node-firefox:3.13.0-argon
196196
```
197197

198+
### Setting Screen Resolution
199+
200+
By default, nodes start with a screen resolution of 1360 x 1020 with a color depth of 24 bits. These settings can be adjusted by specifying `SCREEN_WIDTH`, `SCREEN_HEIGHT` and/or `ENV SCREEN_DEPTH` environmental variables when starting the container.
201+
202+
``` bash
203+
docker run -d -e SCREEN_WIDTH=1366 -e SCREEN_HEIGHT=768 -e SCREEN_DEPTH=12 selenium/standalone-firefox
204+
```
205+
198206
## Building the images
199207

200208
Clone the repo and from the project directory root you can build everything by running:

0 commit comments

Comments
 (0)