Skip to content

Commit 88b97a7

Browse files
committed
Upgrade Selenium to version 2.53.1.
1 parent 4f90fa1 commit 88b97a7

File tree

8 files changed

+36
-36
lines changed

8 files changed

+36
-36
lines changed

Base/Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ RUN apt-get update -qqy \
2727
# Selenium
2828
#==========
2929
RUN mkdir -p /opt/selenium \
30-
&& wget --no-verbose https://selenium-release.storage.googleapis.com/2.53/selenium-server-standalone-2.53.0.jar -O /opt/selenium/selenium-server-standalone.jar
30+
&& wget --no-verbose https://selenium-release.storage.googleapis.com/2.53/selenium-server-standalone-2.53.1.jar -O /opt/selenium/selenium-server-standalone.jar
3131

3232
#========================================
3333
# Add normal user with passwordless sudo

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
NAME := selenium
2-
VERSION := $(or $(VERSION),$(VERSION),'2.53.0')
2+
VERSION := $(or $(VERSION),$(VERSION),'2.53.1')
33
PLATFORM := $(shell uname -s)
44
BUILD_ARGS := $(BUILD_ARGS)
55

NodeChromeDebug/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ If you are running Boot2Docker on Mac then you already have a [VNC client](http:
3838
When you are prompted for the password it is __secret__. If you wish to change this then you should either change it in the `/NodeBase/Dockerfile` and build the images yourself, or you can define a docker image that derives from the posted ones which reconfigures it:
3939

4040
``` dockerfile
41-
FROM selenium/node-chrome-debug:2.53.0
41+
FROM selenium/node-chrome-debug:2.53.1
4242

4343
RUN x11vnc -storepasswd <your-password-here> /home/seluser/.vnc/passwd
4444
```

NodeDebug/README.template.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ If you are running Boot2Docker on Mac then you already have a [VNC client](http:
3838
When you are prompted for the password it is __secret__. If you wish to change this then you should either change it in the `/NodeBase/Dockerfile` and build the images yourself, or you can define a docker image that derives from the posted ones which reconfigures it:
3939

4040
``` dockerfile
41-
FROM selenium/##BASE##-debug:2.53.0
41+
FROM selenium/##BASE##-debug:2.53.1
4242

4343
RUN x11vnc -storepasswd <your-password-here> /home/seluser/.vnc/passwd
4444
```

NodeFirefoxDebug/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ If you are running Boot2Docker on Mac then you already have a [VNC client](http:
3838
When you are prompted for the password it is __secret__. If you wish to change this then you should either change it in the `/NodeBase/Dockerfile` and build the images yourself, or you can define a docker image that derives from the posted ones which reconfigures it:
3939

4040
``` dockerfile
41-
FROM selenium/node-firefox-debug:2.53.0
41+
FROM selenium/node-firefox-debug:2.53.1
4242

4343
RUN x11vnc -storepasswd <your-password-here> /home/seluser/.vnc/passwd
4444
```

README.md

Lines changed: 27 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ Images included:
2525
When executing docker run for an image with chrome browser please add volume mount `-v /dev/shm:/dev/shm` to use the host's shared memory.
2626

2727
``` bash
28-
$ docker run -d -p 4444:4444 -v /dev/shm:/dev/shm selenium/standalone-chrome:2.53.0
28+
$ docker run -d -p 4444:4444 -v /dev/shm:/dev/shm selenium/standalone-chrome:2.53.1
2929
```
3030

3131
This is a workaround to node-chrome crash in docker container issue: https://code.google.com/p/chromium/issues/detail?id=519952
@@ -34,9 +34,9 @@ This is a workaround to node-chrome crash in docker container issue: https://cod
3434
### Standalone Chrome and Firefox
3535

3636
``` bash
37-
$ docker run -d -p 4444:4444 selenium/standalone-chrome:2.53.0
37+
$ docker run -d -p 4444:4444 selenium/standalone-chrome:2.53.1
3838
# OR
39-
$ docker run -d -p 4444:4444 selenium/standalone-firefox:2.53.0
39+
$ docker run -d -p 4444:4444 selenium/standalone-firefox:2.53.1
4040
```
4141

4242
_Note: Only one standalone image can run on port_ `4444` _at a time._
@@ -46,30 +46,30 @@ To inspect visually what the browser is doing use the `standalone-chrome-debug`
4646
### Selenium Grid Hub
4747

4848
``` bash
49-
$ docker run -d -p 4444:4444 --name selenium-hub selenium/hub:2.53.0
49+
$ docker run -d -p 4444:4444 --name selenium-hub selenium/hub:2.53.1
5050
```
5151

5252
### Chrome and Firefox Grid Nodes
5353

5454
``` bash
55-
$ docker run -d --link selenium-hub:hub selenium/node-chrome:2.53.0
56-
$ docker run -d --link selenium-hub:hub selenium/node-firefox:2.53.0
55+
$ docker run -d --link selenium-hub:hub selenium/node-chrome:2.53.1
56+
$ docker run -d --link selenium-hub:hub selenium/node-firefox:2.53.1
5757
```
5858

5959
### JAVA_OPTS Java Environment Options
6060

6161
You can pass `JAVA_OPTS` environment variable to java process.
6262

6363
``` bash
64-
$ docker run -d -p 4444:4444 -e JAVA_OPTS=-Xmx512m --name selenium-hub selenium/hub:2.53.0
64+
$ docker run -d -p 4444:4444 -e JAVA_OPTS=-Xmx512m --name selenium-hub selenium/hub:2.53.1
6565
```
6666

6767
### SE_OPTS Selenium Configuration Options
6868

6969
You can pass `SE_OPTS` variable with additional commandline parameters for starting a hub or a node.
7070

7171
``` bash
72-
$ docker run -d -p 4444:4444 -e SE_OPTS=-debug --name selenium-hub selenium/hub:2.53.0
72+
$ docker run -d -p 4444:4444 -e SE_OPTS=-debug --name selenium-hub selenium/hub:2.53.1
7373
```
7474

7575
## Building the images
@@ -99,10 +99,10 @@ _Note: Omitting_ `VERSION=local` _will build the images with the current version
9999
##### Example: Spawn a container for testing in Chrome:
100100

101101
``` bash
102-
$ docker run -d --name selenium-hub -p 4444:4444 selenium/hub:2.53.0
102+
$ docker run -d --name selenium-hub -p 4444:4444 selenium/hub:2.53.1
103103
$ CH=$(docker run --rm --name=ch \
104104
--link selenium-hub:hub -v /e2e/uploads:/e2e/uploads \
105-
selenium/node-chrome:2.53.0)
105+
selenium/node-chrome:2.53.1)
106106
```
107107

108108
_Note:_ `-v /e2e/uploads:/e2e/uploads` _is optional in case you are testing browser uploads on your web app you will probably need to share a directory for this._
@@ -112,10 +112,10 @@ _Note:_ `-v /e2e/uploads:/e2e/uploads` _is optional in case you are testing brow
112112
This command line is the same as for Chrome. Remember that the Selenium running container is able to launch either Chrome or Firefox, the idea around having 2 separate containers, one for each browser is for convenience plus avoiding certain `:focus` issues your web app may encounter during end-to-end test automation.
113113

114114
``` bash
115-
$ docker run -d --name selenium-hub -p 4444:4444 selenium/hub:2.53.0
115+
$ docker run -d --name selenium-hub -p 4444:4444 selenium/hub:2.53.1
116116
$ FF=$(docker run --rm --name=fx \
117117
--link selenium-hub:hub -v /e2e/uploads:/e2e/uploads \
118-
selenium/node-firefox:2.53.0)
118+
selenium/node-firefox:2.53.1)
119119
```
120120

121121
_Note: Since a Docker container is not meant to preserve state and spawning a new one takes less than 3 seconds you will likely want to remove containers after each end-to-end test with_ `--rm` _command. You need to think of your Docker containers as single processes, not as running virtual machines, in case you are familiar with [Vagrant](https://www.vagrantup.com/)._
@@ -124,28 +124,28 @@ _Note: Since a Docker container is not meant to preserve state and spawning a ne
124124

125125
In the event you wish to visually see what the browser is doing you will want to run the `debug` variant of node or standalone images (substitute a free port that you wish to connect to on VNC for <port4VNC>; 5900 is fine if it is free, but of course you can only run one node on that port):
126126
``` bash
127-
$ docker run -d -P -p <port4VNC>:5900 --link selenium-hub:hub selenium/node-chrome-debug:2.53.0
128-
$ docker run -d -P -p <port4VNC>:5900 --link selenium-hub:hub selenium/node-firefox-debug:2.53.0
127+
$ docker run -d -P -p <port4VNC>:5900 --link selenium-hub:hub selenium/node-chrome-debug:2.53.1
128+
$ docker run -d -P -p <port4VNC>:5900 --link selenium-hub:hub selenium/node-firefox-debug:2.53.1
129129
```
130130
e.g.:
131131
``` bash
132-
$ docker run -d -P -p 5900:5900 --link selenium-hub:hub selenium/node-chrome-debug:2.53.0
133-
$ docker run -d -P -p 5901:5900 --link selenium-hub:hub selenium/node-firefox-debug:2.53.0
132+
$ docker run -d -P -p 5900:5900 --link selenium-hub:hub selenium/node-chrome-debug:2.53.1
133+
$ docker run -d -P -p 5901:5900 --link selenium-hub:hub selenium/node-firefox-debug:2.53.1
134134
```
135135

136136
to connect to the Chrome node on 5900 and the Firefox node on 5901 (assuming those node are free, and reachable).
137137

138138
And for standalone:
139139
``` bash
140-
$ docker run -d -p 4444:4444 -p <port4VNC>:5900 selenium/standalone-chrome-debug:2.53.0
140+
$ docker run -d -p 4444:4444 -p <port4VNC>:5900 selenium/standalone-chrome-debug:2.53.1
141141
# OR
142-
$ docker run -d -p 4444:4444 -p <port4VNC>:5900 selenium/standalone-firefox-debug:2.53.0
142+
$ docker run -d -p 4444:4444 -p <port4VNC>:5900 selenium/standalone-firefox-debug:2.53.1
143143
```
144144
or
145145
``` bash
146-
$ docker run -d -p 4444:4444 -p 5900:5900 selenium/standalone-chrome-debug:2.53.0
146+
$ docker run -d -p 4444:4444 -p 5900:5900 selenium/standalone-chrome-debug:2.53.1
147147
# OR
148-
$ docker run -d -p 4444:4444 -p 5901:5900 selenium/standalone-firefox-debug:2.53.0
148+
$ docker run -d -p 4444:4444 -p 5901:5900 selenium/standalone-firefox-debug:2.53.1
149149
```
150150

151151
You can acquire the port that the VNC server is exposed to by running:
@@ -163,8 +163,8 @@ If you are running [Boot2Docker](https://docs.docker.com/installation/mac/) on O
163163

164164
When you are prompted for the password it is `secret`. If you wish to change this then you should either change it in the `/NodeBase/Dockerfile` and build the images yourself, or you can define a Docker image that derives from the posted ones which reconfigures it:
165165
``` dockerfile
166-
#FROM selenium/node-chrome-debug:2.53.0
167-
#FROM selenium/node-firefox-debug:2.53.0
166+
#FROM selenium/node-chrome-debug:2.53.1
167+
#FROM selenium/node-firefox-debug:2.53.1
168168
#Choose the FROM statement that works for you.
169169

170170
RUN x11vnc -storepasswd <your-password-here> /home/seluser/.vnc/passwd
@@ -176,11 +176,11 @@ RUN x11vnc -storepasswd <your-password-here> /home/seluser/.vnc/passwd
176176
$ docker images
177177
#=>
178178
REPOSITORY TAG IMAGE ID CREATED VIRTUAL SIZE
179-
selenium/node-firefox 2.53.0 69f762d0d79e 29 minutes ago 552.1 MB
180-
selenium/node-chrome 2.53.0 9dd73160660b 30 minutes ago 723.6 MB
181-
selenium/node-base 2.53.0 1b7a0b7024b1 32 minutes ago 426.1 MB
182-
selenium/hub 2.53.0 2570bbb98229 33 minutes ago 394.4 MB
183-
selenium/base 2.53.0 33478d455dab 33 minutes ago 362.6 MB
179+
selenium/node-firefox 2.53.1 69f762d0d79e 29 minutes ago 552.1 MB
180+
selenium/node-chrome 2.53.1 9dd73160660b 30 minutes ago 723.6 MB
181+
selenium/node-base 2.53.1 1b7a0b7024b1 32 minutes ago 426.1 MB
182+
selenium/hub 2.53.1 2570bbb98229 33 minutes ago 394.4 MB
183+
selenium/base 2.53.1 33478d455dab 33 minutes ago 362.6 MB
184184
ubuntu 16.04 0b7735b9290f 6 days ago 123.7 MB
185185
```
186186

sa-test.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ function test_standalone {
1313
BROWSER=$1
1414
echo Starting Selenium standalone-$BROWSER$DEBUG container
1515

16-
SA=$(docker run -d selenium/standalone-$BROWSER$DEBUG:2.53.0)
16+
SA=$(docker run -d selenium/standalone-$BROWSER$DEBUG:2.53.1)
1717
SA_NAME=$(docker inspect -f '{{ .Name }}' $SA | sed s:/::)
1818
TEST_CMD="node smoke-$BROWSER.js"
1919

test.sh

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -23,16 +23,16 @@ echo Building test container image
2323
docker build -t selenium/test:local ./Test
2424

2525
echo 'Starting Selenium Hub Container...'
26-
HUB=$(docker run -d selenium/hub:2.53.0)
26+
HUB=$(docker run -d selenium/hub:2.53.1)
2727
HUB_NAME=$(docker inspect -f '{{ .Name }}' $HUB | sed s:/::)
2828
echo 'Waiting for Hub to come online...'
2929
docker logs -f $HUB &
3030
sleep 2
3131

3232
echo 'Starting Selenium Chrome node...'
33-
NODE_CHROME=$(docker run -d --link $HUB_NAME:hub selenium/node-chrome$DEBUG:2.53.0)
33+
NODE_CHROME=$(docker run -d --link $HUB_NAME:hub selenium/node-chrome$DEBUG:2.53.1)
3434
echo 'Starting Selenium Firefox node...'
35-
NODE_FIREFOX=$(docker run -d --link $HUB_NAME:hub selenium/node-firefox$DEBUG:2.53.0)
35+
NODE_FIREFOX=$(docker run -d --link $HUB_NAME:hub selenium/node-firefox$DEBUG:2.53.1)
3636
docker logs -f $NODE_CHROME &
3737
docker logs -f $NODE_FIREFOX &
3838
echo 'Waiting for nodes to register and come online...'

0 commit comments

Comments
 (0)