Enhances a selenium webdriver to record screenshots along the way
Project description
# webdriver-recorder
This enhances selenium's webdriver to simplify the interface and capture
screenshots along the way. When run it will output html with screenshots
of different scenarios. This uses python3.4+ only.
## Installation
```
pip install uw-webdriver-recorder
npm install phantomjs-prebuilt # or use a global phantomjs
```
## Running it
Assume the following file:
```python
"""test_42.py"""
def test_42(browser, report_test):
"""Check the answer."""
browser.get('https://en.wikipedia.org/wiki/42_(number)')
browser.wait_for('body', 'life, the universe, and everything')
```
You would then run the test with
```bash
pytest
```
When the test completes, you will have file `webdriver-report/index.html`, with a
screenshot for every `wait_for()` in your test.
This enhances selenium's webdriver to simplify the interface and capture
screenshots along the way. When run it will output html with screenshots
of different scenarios. This uses python3.4+ only.
## Installation
```
pip install uw-webdriver-recorder
npm install phantomjs-prebuilt # or use a global phantomjs
```
## Running it
Assume the following file:
```python
"""test_42.py"""
def test_42(browser, report_test):
"""Check the answer."""
browser.get('https://en.wikipedia.org/wiki/42_(number)')
browser.wait_for('body', 'life, the universe, and everything')
```
You would then run the test with
```bash
pytest
```
When the test completes, you will have file `webdriver-report/index.html`, with a
screenshot for every `wait_for()` in your test.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Close
Hashes for uw-webdriver-recorder-1.0.3.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | f921de622568b717a5397e67b9230d6eee14c0e031df8b1fed629d31a5e1f6e2 |
|
MD5 | f30d2d5c8b1d8d8b9ba5d89d963f964f |
|
BLAKE2b-256 | 2e8918e9d1eaa7aae9d30a0984d6e7b81441c20df4597784014971d91f32a2db |