Use Python Selenium For GUI Automation Test
Read more: https://www.dennyzhang.com/python_selenium
# Start container
docker run -d --restart=always \
-v /tmp/screenshot:/tmp/screenshot \
-h selenium --name selenium denny/python-selenium:v1
# Run A Sample Test.
# With customized test scripts, you can do more!
docker exec selenium \
python /home/seluser/selenium_load_page.py \
--page_url https://www.dennyzhang.com --should_save_screenshot
# Check Screenshot
ls -lth /tmp/screenshot
Code is licensed under MIT License.