Metadata-Version: 2.4
Name: strawdriver
Version: 0.1.0
Summary: Stealth, high-performance Chromium automation driver over Chrome DevTools Protocol (CDP).
Author: StrawDriver Contributors
License: MIT
Project-URL: Homepage, https://github.com/strawdriver/strawdriver
Keywords: automation,chromium,cdp,chrome-devtools-protocol,stealth,webdriver
Classifier: Development Status :: 4 - Beta
Classifier: Intended Audience :: Developers
Classifier: License :: OSI Approved :: MIT License
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.9
Classifier: Programming Language :: Python :: 3.10
Classifier: Programming Language :: Python :: 3.11
Classifier: Programming Language :: Python :: 3.12
Classifier: Programming Language :: Python :: 3.13
Classifier: Topic :: Software Development :: Testing
Classifier: Topic :: Internet :: WWW/HTTP :: Browsers
Requires-Python: >=3.9
Description-Content-Type: text/markdown
Requires-Dist: websockets>=12.0

# StrawDriver

A standalone, stealth Chromium automation driver communicating directly via the Chrome DevTools Protocol (CDP) over WebSockets.

---

## Architecture

- **`strawdriver/driver.py`**: Core `StrawDriver` client managing browser lifecycle, tabs, cookies, and CDP transport.
- **`strawdriver/element.py`**: `Element` abstraction for querying, scrolling, clicking, and filling fields.
- **`strawdriver/physics.py`**: Bézier curve trajectory generator and natural typing cadence.
- **`strawdriver/stealth.py`**: Pre-document injections to mask automation indicators and normalize browser properties.

---

## Installation

Install locally in editable mode:

```powershell
cd "C:\Users\Admin\Desktop\VaultO'AllMighty\webdriver"
pip install -e .
```

---

## Quickstart

```python
import asyncio
from strawdriver import StrawDriver

async def main():
    driver = StrawDriver(headless=False)
    await driver.start()

    try:
        await driver.goto("https://example.com", wait_until_network_idle=True)
        element = await driver.wait_for_selector("a")
        print("Link text:", await element.text())
    finally:
        await driver.close()

if __name__ == "__main__":
    asyncio.run(main())
```

---

## Running Tests

Execute the unit test suite:

```powershell
python -m unittest discover -s tests
```
