Selenium Grid Node - Firefox
Selenium Node configured to run Firefox
How to use this image
First, you will need a Selenium Grid Hub that the Node will connect to.
$ docker run -d -P --name selenium-hub selenium/hub
Once the hub is up and running will want to launch nodes that can run tests. You can run as many nodes as you wish.
$ docker run -d --link selenium-hub:hub selenium/node-firefox
What is Selenium?
Selenium automates browsers. That's it! What you do with that power is entirely up to you. Primarily, it is for automating web applications for testing purposes, but is certainly not limited to just that. Boring web-based administration tasks can (and should!) also be automated as well.
Selenium has the support of some of the largest browser vendors who have taken (or are taking) steps to make Selenium a native part of their browser. It is also the core technology in countless other browser automation tools, APIs and frameworks.
See the Selenium site for documation on usage within your test code.
View license information for the software contained in this image.
The first place where people ask for help about Selenium is the Official User Group. Here, you'll find that most of the time, someone already found the problem you are facing right now, and usually reached the solution for which you are looking.
Note: Please make sure to search the group before asking for something. Your question likely won't get answered if it was previously answered in another discussion!
The best place to ask for help is the user group (because they also keep the information accessible for others to read in the future). However, if you have a very important (or too simple) issue that needs a solution ASAP, you can always enter the IRC chat room. You might just find someone ready to help on
#selenium at Freenode.
If you have any problems with or questions about this image, please contact us through a Github issue. If you have any problems with or questions about Selenium, please contact us through Selenium's Bug Tracker.
There are many ways to contribute whether by answering user questions, additional docs, or pull request we look forward to hearing from you.
do someone know how to use Marionette for Firefox < 47 with this image?
I have spent some time to blend all pieces. And here is solution which works:
docker network create -d overlay selenium-grid
docker service create --network selenium-grid --name selenium-hub -p 4444:4444 selenium/hub:3.4.0
docker service create --network selenium-grid --endpoint-mode dnsrr --name chrome --mount type=bind,source=/dev/shm,target=/dev/shm -e HUB_PORT_4444_TCP_ADDR=selenium-hub -e HUB_PORT_4444_TCP_PORT=4444 --replicas 1 -e NODE_MAX_INSTANCES=5 -e NODE_MAX_SESSION=3 selenium/node-chrome:3.4.0 bash -c 'SE_OPTS="-host $HOSTNAME -port 5555" /opt/bin/entry_point.sh'
docker service create --network selenium-grid --endpoint-mode dnsrr --name firefox --mount type=bind,source=/dev/shm,target=/dev/shm -e HUB_PORT_4444_TCP_ADDR=selenium-hub -e HUB_PORT_4444_TCP_PORT=4444 --replicas 1 -e NODE_MAX_INSTANCES=5 -e NODE_MAX_SESSION=3 selenium/node-firefox:3.4.0 bash -c 'SE_OPTS="-host $HOSTNAME -port 5555" /opt/bin/entry_point.sh'
at88mph, THANK YOU!
In case anyone is using docker compose and still using links and needs to update, add the:
- "HUB_PORT_4444_TCP_ADDR=<HUB_NAME>" - "HUB_PORT_4444_TCP_PORT=4444"
to your nodes, and replace HUB_NAME with the name of your hub service. I've just upgrade and I couldn't find this documented anywhere.
/bin/bash /opt/bin/entry_point.sh getting triggered in the container?
typo on the page title it is Selenium Grid Node - Chrome