pytest-parallel
pytest-parallel copied to clipboard
Not working with Pytest-Selenium
I'm quite unsure why pytest-parallel don't work with pytest-selenium (pip install pytest-selenium
). I've heard Selenium is not thread safe, but according to documentation, pytest-parallel do some work to make it thread safe.
Tested with:
- Python 3.7, Debian 9, pytest-selenium, pytest, and pytest-parallel
- run with: python -m pytest --driver Firefox --driver-path ./geckodriver --tests-per-worker auto --workers auto
Update: pytest-selenium works with pytest-xdist. But not with pytest-parallel
How does it not work?