Python (>=3.7) agent that allow to collect locators from Selenium based UI tests.
Inspired by SergeyPirogov koverj-java-agent. Browser_driver instance (e.g. webdriver.Chrome()) has to be created and passed to a LocatorsWatchingDriver
- Selenium usage:
chrome_driver = webdriver.Chrome(executable_path=executable_path, options=chrome_options)
driver = LocatorsWatchingDriver(driver=chrome_driver)
- Selene usage:
driver = LocatorsWatchingDriver(driver=chrome_driver)
browser.set_driver(driver)
An web_driver may be created as pytest fixture, e.g.:
@pytest.fixture()
def web_driver(chrome_driver):
driver = LocatorsWatchingDrive(driver=chrome_web_driver)
browser.set_driver(driver)
yield browser.driver()
browser.quit()
If pytest is used the koverj plugin may be registered in conftest.py:
pytest_plugins = [
'koverj.common.plugin.pytest_koverj_plugin',
]
Supported integrations:
- Selene
- Selenium
Supported test runners:
- pytest
In order to collect data you have to run koverj server (thanks to):
docker run -p 8086:8086 spirogov/koverj:0.1.0
In order to see results in your browser add koverj-browser-plugin to your browser.
Metadata
Release files for koverj 0.1.105
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| koverj-0.1.105.tar.gz | 322.7 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| koverj-0.1.105-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 654.5 kB
Release files / koverj-0.1.105.tar.gz
| Download URL | koverj-0.1.105.tar.gz |
|---|---|
| Size | 322.7 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
0aa4f86b5ecfe3b76edaa7f9a7c70bea82ce5ba6b9579a879fb4175eac116e53
|
|
BLAKE2b-256 checksum How to use checksums |
a8b4c15dba0d52d6e7e1d36105f493edea3c75e1c4f7c0dceff4afa373d7588c
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/1.0.5 CPython/3.7.4 Darwin/18.7.0
|
Release files / koverj-0.1.105-py3-none-any.whl
| Download URL | koverj-0.1.105-py3-none-any.whl |
|---|---|
| Size | 331.8 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
86f1db4e6ba62e0c9865fe3bba325f00f0f8363708a4b98c4ba9f16437e75cda
|
|
BLAKE2b-256 checksum How to use checksums |
ec5edda848e19a2b1c555ba02b28ce9a433887793d37563288f9ca92d8ade612
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/1.0.5 CPython/3.7.4 Darwin/18.7.0
|