Skip to content

sleepless-se/selenium-grid-sample

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

selenium-grid-docker-compose-sample

you can use selenium grid with docker-compose

How to use

Download and open selenium-grid-sample.

git clone https://github.com/sleepless-se/selenium-grid-sample.git

or

download as zip and open the folder

Start docker compose(Python SeleniumGrid Chorme)

cd selenium-grid-sample
docker-compose up -d

Login python container

docker exec -it python /bin/bash

Run sample program.

python tests/sample.py

How to check the selenium browser.

Connect server for Mac

Finder - Go - Connect server

Enter this address.

vnc://localhost:5900 then connect.Password is secret.Now you can see the selenium!!

How to update sample program.

Go to your local tests folder in selenium-grid-sample.You can see screenshots.png. It took when you run sample.py. The file comes from Python container.

So Python container /root/tests/ and selenium-grid-sample/tests/ are shared. You can edit sample.py in your local machine and apply in the container. You can run the file from Python container.

python tests/sample.py

Enjoy selenium grid!

Releases

No releases published

Packages

No packages published

Languages