Sign inSign up

ab9er/xvfb-selenium

By ab9er

•Updated about 9 years ago

XVFB based Selenium webdriver to run web browser tests on a remote instance.

Image
2

1.5K

ab9er/xvfb-selenium repository overview

Docker Stars Docker Pulls

⁠xvfb-selenium

================== Xvfb based selenium supporting firefox and chromium

This image uses alpine:3.3 as its base image and contains firefox and chromium.

Simply run this image and map the ports.

To verify if the selenium hub is available locally,

  • Copy the IP address of the docker machine
  • Shoot up a browser and go to http://IP_ADDRESS:4444/wd/hub

To execute a test on a remote firefox browser initialise the webdriver as follows

from selenium import webdriver

remote_firefox = webdriver.Remote(command_executor="http://192.168.99.100:4444/wd/hub",desired_capabilities={'browserName':'firefox'})

You can find an image ready to be consumed on Docker Hub @

ab9er/xvfb-selenium:latest

For more details, send me an email on,

[email protected]

or send a tweet to @a_bhi_9

Tag summary

Content type

Image

Digest

Size

454.5 MB

Last updated

about 9 years ago

docker pull ab9er/xvfb-selenium