Opened 6 years ago
Last modified 6 years ago
#29883 closed New feature
Support running remote Selenium tests with runtests.py — at Version 1
Reported by: | Tom Forbes | Owned by: | nobody |
---|---|---|---|
Component: | Testing framework | Version: | dev |
Severity: | Normal | Keywords: | |
Cc: | Triage Stage: | Accepted | |
Has patch: | yes | Needs documentation: | no |
Needs tests: | no | Patch needs improvement: | no |
Easy pickings: | no | UI/UX: | no |
Description (last modified by )
Currently runtests.py
supports running Selenium tests using a local browser only. This can make running tests against specific versions quite hard.
Selenium supports a feature called 'hub': https://github.com/SeleniumHQ/docker-selenium/wiki/Getting-Started-with-Docker-Compose#python. This allows you to spin up multiple different browsers as docker containers, or connect to remote cloud-hosted ones.
A hub backed webdriver is compatible with a local one, so no tests need to be updated. A flag could be added to runtests.py
specifying a hub URL, and then a WebDriver is created from that URL.