Support running remote Selenium tests with runtests.py
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.
Change History
(7)
| Description: |
modified (diff)
|
| Triage Stage: |
Unreviewed → Accepted
|
| Owner: |
changed from nobody to Tom Forbes
|
| Status: |
new → assigned
|
| Resolution: |
→ fixed
|
| Status: |
assigned → closed
|
PR: https://github.com/django/django/pull/10561
As part of this I had to extend the SeleniumTestCase to support being accessed externally.