@@ -17,9 +17,9 @@ https://www.selenium.dev/support/
17
17
1 . Start a Docker container with Firefox
18
18
19
19
``` bash
20
- $ docker run -d -p 4444:4444 --shm-size 2g selenium/standalone-firefox:4.0.0-alpha-6-20200730
20
+ $ docker run -d -p 4444:4444 --shm-size 2g selenium/standalone-firefox:4.0.0-alpha-7-prerelease-20200826
21
21
# OR
22
- $ docker run -d -p 4444:4444 -v /dev/shm:/dev/shm selenium/standalone-firefox:4.0.0-alpha-6-20200730
22
+ $ docker run -d -p 4444:4444 -v /dev/shm:/dev/shm selenium/standalone-firefox:4.0.0-alpha-7-prerelease-20200826
23
23
```
24
24
25
25
2 . Point your WebDriver tests to http://localhost:4444/wd/hub
46
46
47
47
![ Firefox] ( https://raw.githubusercontent.com/alrra/browser-logos/main/src/firefox/firefox_24x24.png ) Firefox
48
48
``` bash
49
- $ docker run -d -p 4444:4444 -v /dev/shm:/dev/shm selenium/standalone-firefox:4.0.0-alpha-6-20200730
49
+ $ docker run -d -p 4444:4444 -v /dev/shm:/dev/shm selenium/standalone-firefox:4.0.0-alpha-7-prerelease-20200826
50
50
```
51
51
52
52
![ Chrome] ( https://raw.githubusercontent.com/alrra/browser-logos/main/src/chrome/chrome_24x24.png ) Chrome
53
53
``` bash
54
- $ docker run -d -p 4444:4444 -v /dev/shm:/dev/shm selenium/standalone-chrome:4.0.0-alpha-6-20200730
54
+ $ docker run -d -p 4444:4444 -v /dev/shm:/dev/shm selenium/standalone-chrome:4.0.0-alpha-7-prerelease-20200826
55
55
```
56
56
57
57
![ Opera] ( https://raw.githubusercontent.com/alrra/browser-logos/main/src/opera/opera_24x24.png ) Opera
58
58
``` bash
59
- $ docker run -d -p 4444:4444 -v /dev/shm:/dev/shm selenium/standalone-opera:4.0.0-alpha-6-20200730
59
+ $ docker run -d -p 4444:4444 -v /dev/shm:/dev/shm selenium/standalone-opera:4.0.0-alpha-7-prerelease-20200826
60
60
```
61
61
62
62
_ Note: Only one Standalone container can run on port_ ` 4444 ` _ at the same time._
@@ -73,10 +73,10 @@ A Docker [network](https://docs.docker.com/engine/reference/commandline/network_
73
73
74
74
``` bash
75
75
$ docker network create grid
76
- $ docker run -d -p 4442-4444:4442-4444 --net grid --name selenium-hub selenium/hub:4.0.0-alpha-6-20200730
77
- $ docker run -d --net grid -e SE_EVENT_BUS_HOST=selenium-hub -e SE_EVENT_BUS_PUBLISH_PORT=4442 -e SE_EVENT_BUS_SUBSCRIBE_PORT=4443 -v /dev/shm:/dev/shm selenium/node-chrome:4.0.0-alpha-6-20200730
78
- $ docker run -d --net grid -e SE_EVENT_BUS_HOST=selenium-hub -e SE_EVENT_BUS_PUBLISH_PORT=4442 -e SE_EVENT_BUS_SUBSCRIBE_PORT=4443 -v /dev/shm:/dev/shm selenium/node-firefox:4.0.0-alpha-6-20200730
79
- $ docker run -d --net grid -e SE_EVENT_BUS_HOST=selenium-hub -e SE_EVENT_BUS_PUBLISH_PORT=4442 -e SE_EVENT_BUS_SUBSCRIBE_PORT=4443 -v /dev/shm:/dev/shm selenium/node-opera:4.0.0-alpha-6-20200730
76
+ $ docker run -d -p 4442-4444:4442-4444 --net grid --name selenium-hub selenium/hub:4.0.0-alpha-7-prerelease-20200826
77
+ $ docker run -d --net grid -e SE_EVENT_BUS_HOST=selenium-hub -e SE_EVENT_BUS_PUBLISH_PORT=4442 -e SE_EVENT_BUS_SUBSCRIBE_PORT=4443 -v /dev/shm:/dev/shm selenium/node-chrome:4.0.0-alpha-7-prerelease-20200826
78
+ $ docker run -d --net grid -e SE_EVENT_BUS_HOST=selenium-hub -e SE_EVENT_BUS_PUBLISH_PORT=4442 -e SE_EVENT_BUS_SUBSCRIBE_PORT=4443 -v /dev/shm:/dev/shm selenium/node-firefox:4.0.0-alpha-7-prerelease-20200826
79
+ $ docker run -d --net grid -e SE_EVENT_BUS_HOST=selenium-hub -e SE_EVENT_BUS_PUBLISH_PORT=4442 -e SE_EVENT_BUS_SUBSCRIBE_PORT=4443 -v /dev/shm:/dev/shm selenium/node-opera:4.0.0-alpha-7-prerelease-20200826
80
80
```
81
81
82
82
When you are done using the Grid and the containers have exited, the network can be removed with the following command:
@@ -128,15 +128,15 @@ ___
128
128
You can pass ` SE_OPTS ` variable with additional commandline parameters for starting a hub or a node.
129
129
130
130
``` bash
131
- $ docker run -d -p 4444:4444 -e SE_OPTS=" -debug" --name selenium-hub selenium/hub:4.0.0-alpha-6-20200730
131
+ $ docker run -d -p 4444:4444 -e SE_OPTS=" -debug" --name selenium-hub selenium/hub:4.0.0-alpha-7-prerelease-20200826
132
132
```
133
133
134
134
### JAVA_OPTS Java Environment Options
135
135
136
136
You can pass ` JAVA_OPTS ` environment variable to java process.
137
137
138
138
``` bash
139
- $ docker run -d -p 4444:4444 -e JAVA_OPTS=-Xmx512m --name selenium-hub selenium/hub:4.0.0-alpha-6-20200730
139
+ $ docker run -d -p 4444:4444 -e JAVA_OPTS=-Xmx512m --name selenium-hub selenium/hub:4.0.0-alpha-7-prerelease-20200826
140
140
```
141
141
142
142
### Node configuration options
@@ -152,7 +152,7 @@ variables.
152
152
Here is an example with the default values of these environment variables:
153
153
154
154
``` bash
155
- $ docker run -d --e SE_EVENT_BUS_HOST=< event_bus_ip| event_bus_name> -e SE_EVENT_BUS_PUBLISH_PORT=4442 -e SE_EVENT_BUS_SUBSCRIBE_PORT=4443 -v /dev/shm:/dev/shm selenium/node-chrome:4.0.0-alpha-6-20200730
155
+ $ docker run -d --e SE_EVENT_BUS_HOST=< event_bus_ip| event_bus_name> -e SE_EVENT_BUS_PUBLISH_PORT=4442 -e SE_EVENT_BUS_SUBSCRIBE_PORT=4443 -v /dev/shm:/dev/shm selenium/node-chrome:4.0.0-alpha-7-prerelease-20200826
156
156
```
157
157
158
158
### Setting Screen Resolution
@@ -207,11 +207,11 @@ current one._
207
207
208
208
``` bash
209
209
$ docker network create grid
210
- $ docker run -d -p 4442-4444:4442-4444 --net grid --name selenium-hub selenium/hub:4.0.0-alpha-6-20200730
210
+ $ docker run -d -p 4442-4444:4442-4444 --net grid --name selenium-hub selenium/hub:4.0.0-alpha-7-prerelease-20200826
211
211
$ docker run -d --net grid -e SE_EVENT_BUS_HOST=selenium-hub \
212
212
-e SE_EVENT_BUS_PUBLISH_PORT=4442 -e SE_EVENT_BUS_SUBSCRIBE_PORT=4443 \
213
213
-v /dev/shm:/dev/shm \
214
- -v /e2e/uploads:/e2e/uploads selenium/node-firefox:4.0.0-alpha-6-20200730
214
+ -v /e2e/uploads:/e2e/uploads selenium/node-firefox:4.0.0-alpha-7-prerelease-20200826
215
215
```
216
216
217
217
_ Note:_ ` -v /e2e/uploads:/e2e/uploads ` _ is optional in case you are testing browser uploads on your
@@ -292,10 +292,10 @@ $ docker network create grid
292
292
$ docker run -d -p 4444:4444 --net grid --name selenium-hub \
293
293
--health-cmd=' /opt/bin/check-grid.sh --host 0.0.0.0 --port 4444' \
294
294
--health-interval=15s --health-timeout=30s --health-retries=5 \
295
- selenium/hub:4.0.0-alpha-6-20200730
296
- $ docker run -d --net grid -e HUB_HOST=selenium-hub -v /dev/shm:/dev/shm selenium/node-chrome:4.0.0-alpha-6-20200730
297
- $ docker run -d --net grid -e HUB_HOST=selenium-hub -v /dev/shm:/dev/shm selenium/node-firefox:4.0.0-alpha-6-20200730
298
- $ docker run -d --net grid -e HUB_HOST=selenium-hub -v /dev/shm:/dev/shm selenium/node-opera:4.0.0-alpha-6-20200730
295
+ selenium/hub:4.0.0-alpha-7-prerelease-20200826
296
+ $ docker run -d --net grid -e HUB_HOST=selenium-hub -v /dev/shm:/dev/shm selenium/node-chrome:4.0.0-alpha-7-prerelease-20200826
297
+ $ docker run -d --net grid -e HUB_HOST=selenium-hub -v /dev/shm:/dev/shm selenium/node-firefox:4.0.0-alpha-7-prerelease-20200826
298
+ $ docker run -d --net grid -e HUB_HOST=selenium-hub -v /dev/shm:/dev/shm selenium/node-opera:4.0.0-alpha-7-prerelease-20200826
299
299
```
300
300
** Note:** The ` \ ` line delimiter won't work on Windows based terminals, try either ` ^ ` or a backtick.
301
301
@@ -359,9 +359,9 @@ running inside the container.
359
359
360
360
Here is an example with the standalone images, the same concept applies to the node images.
361
361
``` bash
362
- $ docker run -d -p 4444:4444 -p 5900:5900 -v /dev/shm:/dev/shm selenium/standalone-chrome:4.0.0-alpha-6-20200730
363
- $ docker run -d -p 4445:4444 -p 5901:5900 -v /dev/shm:/dev/shm selenium/standalone-firefox:4.0.0-alpha-6-20200730
364
- $ docker run -d -p 4446:4444 -p 5902:5900 -v /dev/shm:/dev/shm selenium/standalone-opera:4.0.0-alpha-6-20200730
362
+ $ docker run -d -p 4444:4444 -p 5900:5900 -v /dev/shm:/dev/shm selenium/standalone-chrome:4.0.0-alpha-7-prerelease-20200826
363
+ $ docker run -d -p 4445:4444 -p 5901:5900 -v /dev/shm:/dev/shm selenium/standalone-firefox:4.0.0-alpha-7-prerelease-20200826
364
+ $ docker run -d -p 4446:4444 -p 5902:5900 -v /dev/shm:/dev/shm selenium/standalone-opera:4.0.0-alpha-7-prerelease-20200826
365
365
```
366
366
367
367
Then, you would use in your VNC client:
@@ -379,9 +379,9 @@ When you are prompted for the password it is `secret`. If you wish to change thi
379
379
it in the ` /NodeBase/Dockerfile ` and build the images yourself, or you can define a Docker image that derives from
380
380
the posted ones which reconfigures it:
381
381
``` dockerfile
382
- # FROM selenium/node-chrome:4.0.0-alpha-6-20200730
383
- # FROM selenium/node-firefox:4.0.0-alpha-6-20200730
384
- # FROM selenium/node-opera:4.0.0-alpha-6-20200730
382
+ # FROM selenium/node-chrome:4.0.0-alpha-7-prerelease-20200826
383
+ # FROM selenium/node-firefox:4.0.0-alpha-7-prerelease-20200826
384
+ # FROM selenium/node-opera:4.0.0-alpha-7-prerelease-20200826
385
385
# Choose the FROM statement that works for you.
386
386
387
387
RUN x11vnc -storepasswd <your-password-here> /home/seluser/.vnc/passwd
0 commit comments