Skip to main content

A customized pyvirtualdisplay for SeleniumBase.

Project description

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.

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

sbvirtualdisplay-1.3.0.tar.gz (12.2 kB view details)

Uploaded Source

Built Distribution

sbvirtualdisplay-1.3.0-py2.py3-none-any.whl (12.4 kB view details)

Uploaded Python 2 Python 3

File details

Details for the file sbvirtualdisplay-1.3.0.tar.gz.

File metadata

  • Download URL: sbvirtualdisplay-1.3.0.tar.gz
  • Upload date:
  • Size: 12.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.11.4

File hashes

Hashes for sbvirtualdisplay-1.3.0.tar.gz
Algorithm Hash digest
SHA256 f39df540632bbdad86f72c8b1367a1a757ab801a8b1de0a9143e78f21d4cae7b
MD5 d29c5c22fc67b3cf7768bc0254ff3a17
BLAKE2b-256 daa1dcda355e67fe5f5e6011d79cb294f6ce07b6fd4a41e43931caf154e2b982

See more details on using hashes here.

File details

Details for the file sbvirtualdisplay-1.3.0-py2.py3-none-any.whl.

File metadata

File hashes

Hashes for sbvirtualdisplay-1.3.0-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 d93b41f9a8db6cadc2aa09596a43dcc03c82047277e57a66174c5f0c304a52fe
MD5 a15de0e7530d1b4ee0332822dc318bf7
BLAKE2b-256 d459d14343808b953cf3c710acf269e22b4b9e8b99379aaf2779fd4eb0d23c5c

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page