Metadata-Version: 2.4
Name: advselenium
Version: 0.1.1
Summary: Advanced Selenium toolkit: smart waits, resilient actions, stealth, POM base, and handy CLI.
Author-email: Amal Alexander <amalalex95@gmail.com>
Maintainer-email: Amal Alexander <amalalex95@gmail.com>
License: MIT 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.
Project-URL: LinkedIn, https://www.linkedin.com/in/amal-alexander-305780131/
Keywords: selenium,automation,testing,web scraping,e2e,browser
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3 :: Only
Classifier: License :: OSI Approved :: MIT License
Classifier: Operating System :: OS Independent
Classifier: Topic :: Software Development :: Testing
Classifier: Typing :: Typed
Requires-Python: >=3.9
Description-Content-Type: text/markdown
License-File: LICENSE
Requires-Dist: selenium>=4.22.0
Requires-Dist: webdriver-manager>=4.0.1
Requires-Dist: tenacity>=8.2.3
Requires-Dist: typing-extensions>=4.9.0
Dynamic: license-file

# 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()
```
