sbvirtualdisplay1.4.0
sbvirtualdisplay1.4.0
Published
A customized pyvirtualdisplay for SeleniumBase.
pip install sbvirtualdisplay
Package Downloads
Authors
Requires Python
>=3.8
Dependencies
- coverage
>=7.6.1; python_version < "3.9" and extra == "coverage"
- coverage
>=7.6.9; python_version >= "3.9" and extra == "coverage"
- pytest-cov
>=5.0.0; python_version < "3.9" and extra == "coverage"
- pytest-cov
>=6.0.0; python_version >= "3.9" and extra == "coverage"
- flake8
==5.0.4; python_version < "3.9" and extra == "flake8"
- flake8
==7.1.1; python_version >= "3.9" and extra == "flake8"
- mccabe
==0.7.0; extra == "flake8"
- pyflakes
==2.5.0; python_version < "3.9" and extra == "flake8"
- pyflakes
==3.2.0; python_version >= "3.9" and extra == "flake8"
- pycodestyle
==2.9.1; python_version < "3.9" and extra == "flake8"
- pycodestyle
==2.12.1; python_version >= "3.9" and extra == "flake8"
sbVirtualDisplay (💻) 
A customized pyvirtualdisplay for use with SeleniumBase automation.
Usage example:
from sbvirtualdisplay import Display
display = Display(visible=0, size=(1440, 1880))
display.start()
# Run browser tests in a headless environment
display.stop()
Or as a context manager:
with Display(visible=0, size=(1440, 1880)):
# Run browser tests in a headless environment
...
When to use:
If you need to run browser tests on a headless machine (such as a Linux backend), and you can't use a browser's headless mode (such as Chrome's headless mode), then this may help. For example, Chrome does not allow extensions in headless mode, so if you need to run automated tests on a headless Linux machine and you need to use Chrome extensions, then this will let you run those tests using a virtual display.
More info:
- Xvfb is required for this to work.