Vedro Pyppeteer Plugin
Installation
1. Install package
$ pip3 install vedro-pyppeteer
2. Enable plugin
# ./vedro.cfg.py
import vedro
import vedro_pyppeteer as p
class Config(vedro.Config):
class Plugins(vedro.Config.Plugins):
class Pyppeteer(p.Pyppeteer):
enabled = True
Usage
# ./scenarios/reset_password.py
import vedro
from vedro_pyppeteer import opened_browser_page
class Scenario(vedro.Scenario):
subject = "reset password"
async def given_opened_app(self):
self.page = await opened_browser_page()
await self.page.goto("http://localhost/reset")
async def given_filled_email(self):
form_email = await self.page.querySelector("#form-email")
await form_email.type("user@email")
async def when_user_submits_form(self):
await self.page.click("#form-submit")
async def then_it_should_redirect_to_root_page(self):
pathname = await self.page.evaluate("window.location.pathname")
assert pathname == "/"
$ vedro run --pyppeteer-screenshots=on_fail
Documentation
--pyppeteer-screenshots=<mode>
| Mode | Description |
|---|---|
| every_step | Save screenshots for every step |
| only_failed | Save screenshots only for failed steps |
| on_fail | Save screenshots for all steps when scenario fails |
--pyppeteer-screenshots-dir — Set directory for screenshots (default: ./screenshots)
Metadata
Release files for vedro-pyppeteer 1.1.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| vedro-pyppeteer-1.1.0.tar.gz | 8.6 kB | Without provenance | Details for vedro-pyppeteer-1.1.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| vedro_pyppeteer-1.1.0-py3-none-any.whl | Python 3 | none | any | Details for vedro_pyppeteer-1.1.0-py3-none-any.whl |
Total release size: 17.9 kB
Release files / vedro-pyppeteer-1.1.0.tar.gz
| Download URL | vedro-pyppeteer-1.1.0.tar.gz |
|---|---|
| Size | 8.6 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
e6ebfa44708df0cb63808d12ddda3fee37da29f47c8cd3ffc8192425f6cb05a4
|
|
BLAKE2b-256 checksum How to use checksums |
0a7ac5ff9acaf9c5c6334b76f7cf7848abf61f5c17e02f80de01d5f2b2aaaa44
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.1 CPython/3.10.6
|
Release files / vedro_pyppeteer-1.1.0-py3-none-any.whl
| Download URL | vedro_pyppeteer-1.1.0-py3-none-any.whl |
|---|---|
| Size | 9.3 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
59b97d52431dcd590ba8ba5d62a5868dc0b8a010277d2c27c9e5e92072220c1a
|
|
BLAKE2b-256 checksum How to use checksums |
8701513d7a853076d716be019d59fa152cbdad77d71b34b9ddea3c7290cb5800
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.1 CPython/3.10.6
|
Security for vedro-pyppeteer 1.1.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.