advselenium


Nameadvselenium JSON
Version 0.1.1 PyPI version JSON
download
home_pageNone
SummaryAdvanced Selenium toolkit: smart waits, resilient actions, stealth, POM base, and handy CLI.
upload_time2025-08-21 16:52:09
maintainerNone
docs_urlNone
authorNone
requires_python>=3.9
licenseMIT License Copyright (c) {datetime.datetime.utcnow().year} Amal Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
keywords selenium automation testing web scraping e2e browser
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            # advselenium

Advanced Selenium toolkit: smart waits, resilient actions, stealth/undetected options, POM base, robust logging & screenshots, and a tiny CLI.

## Quickstart

```bash
pip install .
advsel --help
```

## Highlights
- **SmartWait**: rich waiting utilities, conditions, and timeouts.
- **Resilient actions** with retries (powered by `tenacity`).
- **Stealth**: automatic headless, user-agent rotation, and webdriver-manager integration.
- **POM base classes** (`BasePage`, `BaseComponent`) with ergonomics.
- **Shadow DOM** helpers.
- **Network-aware** download waits (via `performance_log` polling where available).
- **Artifacts**: screenshots-on-failure, HTML source dumps, and structured logs.
- **CLI**: smoke-test a URL quickly or run a simple script.

## Minimal Example

```python
from advselenium import create_driver, SmartWait, By
drv = create_driver(browser="chrome", headless=True)
try:
    drv.get("https://example.org")
    SmartWait(drv).visible((By.CSS_SELECTOR, "h1"))
    print(drv.title)
finally:
    drv.quit()
```

            

Raw data

            {
    "_id": null,
    "home_page": null,
    "name": "advselenium",
    "maintainer": null,
    "docs_url": null,
    "requires_python": ">=3.9",
    "maintainer_email": "Amal Alexander <amalalex95@gmail.com>",
    "keywords": "selenium, automation, testing, web scraping, e2e, browser",
    "author": null,
    "author_email": "Amal Alexander <amalalex95@gmail.com>",
    "download_url": "https://files.pythonhosted.org/packages/42/e3/2d951aacd468eeb1304b5bf9d8eadbe2210225960d7f830cfa4e453f963a/advselenium-0.1.1.tar.gz",
    "platform": null,
    "description": "# advselenium\r\n\r\nAdvanced Selenium toolkit: smart waits, resilient actions, stealth/undetected options, POM base, robust logging & screenshots, and a tiny CLI.\r\n\r\n## Quickstart\r\n\r\n```bash\r\npip install .\r\nadvsel --help\r\n```\r\n\r\n## Highlights\r\n- **SmartWait**: rich waiting utilities, conditions, and timeouts.\r\n- **Resilient actions** with retries (powered by `tenacity`).\r\n- **Stealth**: automatic headless, user-agent rotation, and webdriver-manager integration.\r\n- **POM base classes** (`BasePage`, `BaseComponent`) with ergonomics.\r\n- **Shadow DOM** helpers.\r\n- **Network-aware** download waits (via `performance_log` polling where available).\r\n- **Artifacts**: screenshots-on-failure, HTML source dumps, and structured logs.\r\n- **CLI**: smoke-test a URL quickly or run a simple script.\r\n\r\n## Minimal Example\r\n\r\n```python\r\nfrom advselenium import create_driver, SmartWait, By\r\ndrv = create_driver(browser=\"chrome\", headless=True)\r\ntry:\r\n    drv.get(\"https://example.org\")\r\n    SmartWait(drv).visible((By.CSS_SELECTOR, \"h1\"))\r\n    print(drv.title)\r\nfinally:\r\n    drv.quit()\r\n```\r\n",
    "bugtrack_url": null,
    "license": "MIT License\r\n        \r\n        Copyright (c) {datetime.datetime.utcnow().year} Amal\r\n        \r\n        Permission is hereby granted, free of charge, to any person obtaining a copy\r\n        of this software and associated documentation files (the \"Software\"), to deal\r\n        in the Software without restriction, including without limitation the rights\r\n        to use, copy, modify, merge, publish, distribute, sublicense, and/or sell\r\n        copies of the Software, and to permit persons to whom the Software is\r\n        furnished to do so, subject to the following conditions:\r\n        \r\n        The above copyright notice and this permission notice shall be included in all\r\n        copies or substantial portions of the Software.\r\n        \r\n        THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\r\n        IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\r\n        FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\r\n        AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\r\n        LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\r\n        OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\r\n        SOFTWARE.",
    "summary": "Advanced Selenium toolkit: smart waits, resilient actions, stealth, POM base, and handy CLI.",
    "version": "0.1.1",
    "project_urls": {
        "LinkedIn": "https://www.linkedin.com/in/amal-alexander-305780131/"
    },
    "split_keywords": [
        "selenium",
        " automation",
        " testing",
        " web scraping",
        " e2e",
        " browser"
    ],
    "urls": [
        {
            "comment_text": null,
            "digests": {
                "blake2b_256": "30131d93a6bbb7c40906a86b25eaf3a2e53f756cea71e347beccc2522e3e36c4",
                "md5": "884f4f1ff8638acf0700804507f4cef5",
                "sha256": "5db33f4d74b7243fbe57e594b538327894e769e40b8c7726989326b829a04fd1"
            },
            "downloads": -1,
            "filename": "advselenium-0.1.1-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "884f4f1ff8638acf0700804507f4cef5",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": ">=3.9",
            "size": 8628,
            "upload_time": "2025-08-21T16:52:08",
            "upload_time_iso_8601": "2025-08-21T16:52:08.068341Z",
            "url": "https://files.pythonhosted.org/packages/30/13/1d93a6bbb7c40906a86b25eaf3a2e53f756cea71e347beccc2522e3e36c4/advselenium-0.1.1-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": null,
            "digests": {
                "blake2b_256": "42e32d951aacd468eeb1304b5bf9d8eadbe2210225960d7f830cfa4e453f963a",
                "md5": "f941608ba43f7ff10c8fef7a260ba5da",
                "sha256": "7a01fda066c3216580e4d172ec0f37195091b3b662809092da15fbdd6520ac57"
            },
            "downloads": -1,
            "filename": "advselenium-0.1.1.tar.gz",
            "has_sig": false,
            "md5_digest": "f941608ba43f7ff10c8fef7a260ba5da",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": ">=3.9",
            "size": 7866,
            "upload_time": "2025-08-21T16:52:09",
            "upload_time_iso_8601": "2025-08-21T16:52:09.786817Z",
            "url": "https://files.pythonhosted.org/packages/42/e3/2d951aacd468eeb1304b5bf9d8eadbe2210225960d7f830cfa4e453f963a/advselenium-0.1.1.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2025-08-21 16:52:09",
    "github": false,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "lcname": "advselenium"
}
        
Elapsed time: 1.99565s