-
-
Notifications
You must be signed in to change notification settings - Fork 2.6k
Add support for Selenium 3.0.0-beta4 and Firefox 48 & 49 #271
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
1921dac
aa25d1d
9eb8021
e61dff5
ade1372
d038784
90d88ff
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -21,14 +21,14 @@ Images included: | |
- __selenium/node-firefox-debug__: Selenium node with Firefox installed and runs a VNC server, needs to be connected to a Selenium Grid Hub | ||
|
||
## Running the images | ||
|
||
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. | ||
|
||
``` bash | ||
$ docker run -d -p 4444:4444 -v /dev/shm:/dev/shm selenium/standalone-chrome:2.53.1 | ||
``` | ||
|
||
This is a workaround to node-chrome crash in docker container issue: https://code.google.com/p/chromium/issues/detail?id=519952 | ||
This is a workaround to node-chrome crash in docker container issue: https://code.google.com/p/chromium/issues/detail?id=519952 | ||
|
||
|
||
### Standalone Chrome and Firefox | ||
|
@@ -56,6 +56,31 @@ $ docker run -d --link selenium-hub:hub selenium/node-chrome:2.53.1 | |
$ docker run -d --link selenium-hub:hub selenium/node-firefox:2.53.1 | ||
``` | ||
|
||
### Specifying versions | ||
|
||
By default the latest stable versions will be used, however you can override | ||
these using the following environment variables: | ||
|
||
- `SELENIUM_VERSION` - version of the Selenium server | ||
- latest stable: `2.53.1` | ||
- latest beta: `3.0.0-beta4` | ||
- `FIREFOX_VERSION` - version of Firefox (only applies to Firefox images) | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I think it is better to list the version we supported here, since image users not know which versions is included in that image There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Good idea, I'll update this too. |
||
- latest release: `49.0.1` | ||
- previous release: `48.0.2` | ||
- latest ESR: `45.4.0esr` | ||
- previous ESR: `38.8.0esr` | ||
|
||
Note that as the latest releases of Firefox work best with Selenium 3.0, which | ||
is currently in beta, the latest release supported by 2.53.x is `47.0.1` and is | ||
also available (and the default). | ||
|
||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. If I remember my test before, the 2.53.x can work with Firefox 47.0.1 if not use caps["marionette"] = True. if you use caps["marionette"] = True to run selenium test. it would fail. This is my only concern here for various versions matrix. Other code LGTM. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 2.53.x should work against Firefox 47.0.1 with marionette=True. It's the first version of Firefox that was officially supported by GeckoDriver, so there certainly were more bugs in that version than there are in later releases. |
||
For example, the following will start a standalone server using Selenium 3.0.0-beta4 | ||
and Firefox 49.0.1: | ||
|
||
```bash | ||
$ docker run -d -p 4444:4444 -e SELENIUM_VERSION=3.0.0-beta4 -e FIREFOX_VERSION=49.0.1 selenium/standalone-firefox:latest | ||
``` | ||
|
||
### JAVA_OPTS Java Environment Options | ||
|
||
You can pass `JAVA_OPTS` environment variable to java process. | ||
|
@@ -135,7 +160,7 @@ $ docker run -d -P -p 5901:5900 --link selenium-hub:hub selenium/node-firefox-de | |
|
||
to connect to the Chrome node on 5900 and the Firefox node on 5901 (assuming those node are free, and reachable). | ||
|
||
And for standalone: | ||
And for standalone: | ||
``` bash | ||
$ docker run -d -p 4444:4444 -p <port4VNC>:5900 selenium/standalone-chrome-debug:2.53.1 | ||
# OR | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
for
wires
rename, do we know which firefox version need that ?There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is not a requirement of Firefox, but of the Selenium: 2.53.x expects
wires
but 3.x expectsgeckodriver
.