Thanks to visit codestin.com
Credit goes to github.com

Skip to content

ab9-er/xvfb-selenium

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 

Repository files navigation

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

About

Xvfb based selenium supporting firefox and chromium

Resources

License

Stars

Watchers

Forks

Packages

No packages published