sbvirtualdisplay


Namesbvirtualdisplay JSON
Version 1.3.0 PyPI version JSON
download
home_pagehttps://github.com/mdmintz/sbVirtualDisplay
SummaryA customized pyvirtualdisplay for SeleniumBase.
upload_time2023-11-08 05:30:14
maintainerMichael Mintz
docs_urlNone
authorMichael Mintz
requires_python>=3.7
licenseMIT
keywords
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            # sbVirtualDisplay (💻) [![](https://img.shields.io/pypi/v/sbvirtualdisplay.svg)](https://pypi.python.org/pypi/sbvirtualdisplay)

A customized [pyvirtualdisplay](https://github.com/ponty/PyVirtualDisplay) for use with [SeleniumBase](https://github.com/seleniumbase/SeleniumBase) automation.

## Usage example:

```python
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:

```python
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](https://en.wikipedia.org/wiki/Xvfb) is required for this to work.

            

Raw data

            {
    "_id": null,
    "home_page": "https://github.com/mdmintz/sbVirtualDisplay",
    "name": "sbvirtualdisplay",
    "maintainer": "Michael Mintz",
    "docs_url": null,
    "requires_python": ">=3.7",
    "maintainer_email": "",
    "keywords": "",
    "author": "Michael Mintz",
    "author_email": "mdmintz@gmail.com",
    "download_url": "https://files.pythonhosted.org/packages/da/a1/dcda355e67fe5f5e6011d79cb294f6ce07b6fd4a41e43931caf154e2b982/sbvirtualdisplay-1.3.0.tar.gz",
    "platform": "Windows",
    "description": "# sbVirtualDisplay (\ud83d\udcbb) [![](https://img.shields.io/pypi/v/sbvirtualdisplay.svg)](https://pypi.python.org/pypi/sbvirtualdisplay)\n\nA customized [pyvirtualdisplay](https://github.com/ponty/PyVirtualDisplay) for use with [SeleniumBase](https://github.com/seleniumbase/SeleniumBase) automation.\n\n## Usage example:\n\n```python\nfrom sbvirtualdisplay import Display\n\ndisplay = Display(visible=0, size=(1440, 1880))\ndisplay.start()\n\n# Run browser tests in a headless environment\n\ndisplay.stop()\n```\n\n### Or as a context manager:\n\n```python\nwith Display(visible=0, size=(1440, 1880)):\n    # Run browser tests in a headless environment\n    ...\n```\n\n## When to use:\n\nIf 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.\n\n\n## More info:\n\n* [Xvfb](https://en.wikipedia.org/wiki/Xvfb) is required for this to work.\n",
    "bugtrack_url": null,
    "license": "MIT",
    "summary": "A customized pyvirtualdisplay for SeleniumBase.",
    "version": "1.3.0",
    "project_urls": {
        "Changelog": "https://github.com/mdmintz/sbVirtualDisplay/releases",
        "Download": "https://pypi.org/project/sbvirtualdisplay/#files",
        "Homepage": "https://github.com/mdmintz/sbVirtualDisplay",
        "PyPI": "https://pypi.org/project/sbvirtualdisplay/",
        "SeleniumBase": "https://github.com/seleniumbase/SeleniumBase",
        "Source": "https://github.com/mdmintz/sbVirtualDisplay"
    },
    "split_keywords": [],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "d459d14343808b953cf3c710acf269e22b4b9e8b99379aaf2779fd4eb0d23c5c",
                "md5": "a15de0e7530d1b4ee0332822dc318bf7",
                "sha256": "d93b41f9a8db6cadc2aa09596a43dcc03c82047277e57a66174c5f0c304a52fe"
            },
            "downloads": -1,
            "filename": "sbvirtualdisplay-1.3.0-py2.py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "a15de0e7530d1b4ee0332822dc318bf7",
            "packagetype": "bdist_wheel",
            "python_version": "py2.py3",
            "requires_python": ">=3.7",
            "size": 12414,
            "upload_time": "2023-11-08T05:30:13",
            "upload_time_iso_8601": "2023-11-08T05:30:13.103723Z",
            "url": "https://files.pythonhosted.org/packages/d4/59/d14343808b953cf3c710acf269e22b4b9e8b99379aaf2779fd4eb0d23c5c/sbvirtualdisplay-1.3.0-py2.py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "daa1dcda355e67fe5f5e6011d79cb294f6ce07b6fd4a41e43931caf154e2b982",
                "md5": "d29c5c22fc67b3cf7768bc0254ff3a17",
                "sha256": "f39df540632bbdad86f72c8b1367a1a757ab801a8b1de0a9143e78f21d4cae7b"
            },
            "downloads": -1,
            "filename": "sbvirtualdisplay-1.3.0.tar.gz",
            "has_sig": false,
            "md5_digest": "d29c5c22fc67b3cf7768bc0254ff3a17",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": ">=3.7",
            "size": 12173,
            "upload_time": "2023-11-08T05:30:14",
            "upload_time_iso_8601": "2023-11-08T05:30:14.788656Z",
            "url": "https://files.pythonhosted.org/packages/da/a1/dcda355e67fe5f5e6011d79cb294f6ce07b6fd4a41e43931caf154e2b982/sbvirtualdisplay-1.3.0.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2023-11-08 05:30:14",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "github_user": "mdmintz",
    "github_project": "sbVirtualDisplay",
    "travis_ci": false,
    "coveralls": false,
    "github_actions": true,
    "lcname": "sbvirtualdisplay"
}
        
Elapsed time: 0.14183s