This release has been yanked by its maintainers, and will be ignored by installers, except when explicitly specified.
Reason given by maintainers: Transfered ownership
pyshot
Pytest plugin to facilitate screenshot taking with selenium webdriver.
Installation
pip install pyshot
Usage
First you need to add the configuration file pyshot.conf file.
[pyshot]
screenshots_path = C:/Users/angel/OneDrive/Documentos/projects/pyshot/screenshots
only_pyshot_steps = false
create_folder_per_testcase = true
screenshots_path: Absolute path of the folder where the screenshots will be saved. It shouldn't have a / at the end.
only_pyshot_steps: When it is activated (true) only the functions marked with the decorator @pyshot_step will be screenshoted.
create_folder_per_testcase: When it is activated (true) a new folder will be created automatically to save the screenshots of the testcase.
Once you have created the pyshot.conf file add a fixture with the decorator @pyshot_driver that returns the driver you will to use during test execution, like this:
@pytest.fixture(scope="module", autouse=True)
@pyshot_driver
def chrome_driver():
driver = webdriver.Chrome(ChromeDriverManager().install())
return driver
If you want to take screenshots only on certain steps of the execution, activate the option only_pyshot_steps on the pyshot.conf and add the decorator @pyshot_step on the functions where you want to take screenshots.
@pyshot_step
def search(cls, search_text: str):
SearchPage.enter_search_text(search_text)
SearchPage.make_search()
Once you have configured everything within your repo add the argument --pyshot_conf with the path to your pyshot.conf file.
pytest test_example.py --pyshot_conf=usr/test/pyshot.conf
Metadata
Release files for pyshot 0.0.2
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 |
|---|---|---|---|---|
| pyshot-0.0.2.tar.gz | 4.2 kB | Without provenance | Details for pyshot-0.0.2.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| pyshot-0.0.2-py3-none-any.whl | Python 3 | none | any | Details for pyshot-0.0.2-py3-none-any.whl |
Total release size: 9.1 kB
Release files / pyshot-0.0.2.tar.gz
| Download URL | pyshot-0.0.2.tar.gz |
|---|---|
| Size | 4.2 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
8366915b5c69b4d06d3446d7c5951c258118447d26b812f3adeea2ecda843e2a
|
|
BLAKE2b-256 checksum How to use checksums |
b7221dcc9516634525b0f7e00cec5556327388dd7fbfe3ecb24ec544cb4bc60e
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.0 CPython/3.8.10
|
Release files / pyshot-0.0.2-py3-none-any.whl
| Download URL | pyshot-0.0.2-py3-none-any.whl |
|---|---|
| Size | 4.9 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
b0dad48c511e67eacb8f872c69c3ab821576ecb556703746a4be7c29c74ce611
|
|
BLAKE2b-256 checksum How to use checksums |
8e28b66bd03cc0212aebf41311f946dda90e6154c53f1caab2121ec23c84a2ae
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.0 CPython/3.8.10
|
Security for pyshot 0.0.2
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.