Skip to content

jaydeepc/template_python_docker_selenium

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

20 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Gitter

Dockerizing Python WebDriver Tests

This is a sample repo which runs selenium WebDriver tests inside docker container.

Make sure you have docker installed on your machine.(https://docs.docker.com/engine/installation/linux/ubuntulinux/)

Run Command

docker-compose up -d && docker wait tests && docker logs tests

Now check GridConsole you will see all the nodes are registered to the hub and test would be triggered inside the containers.

If you want to scale you node

docker-compose scale chromenode=3

To view the test running within the container, open the vnc_dash.html in Chrome and input the below host and address.

VNC Dash: [ScreenShot]

Incase you see the VNC host window stuck on "loading" , uncheck this: [ScreenShot]

$ docker port <container-name|container-id> 5900 0.0.0.0:49338 0.0.0.0:49339

or you can install a VNC viewer locally and try: ./vncviewer 127.0.0.1:49338

When you are prompted for the password it is "secret", which will bring the container view.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published