Yet another selenium wd wrapper
Requirements
- python >= 3.6
- pyenv is recommended (pyenv & pyenv virtualenv plugin)
- Docker & image
selenoid/vnc_chrome:##.#(https://hub.docker.com/r/selenoid/vnc_chrome)
Install
Build from source:
$ git clone git@github.com:Aurococcus/wasd.git
$ cd wasd
$ pip install .
From pypi:
$ pip install wasd
Run
$ mkdir hello_world
$ cd hello_world
# activate vevn e.g. $ pyenv local my_venv
$ pip install wasd
$ wasd scaffold
$ invoke selenoid.up
$ pytest tests
Then go to localhost:8080
CLI options
$ pytest --env=<env>- run tests with settings<env>.ymlfrom_envdir$ pytest --listener- highlight found element during runtime$ pytest --save-screenshot- save screenshot on failure in_outputdir$ pytest --steps- enable verbose log
Api
def new_driver(self)
def get_driver(self)
def close_driver(self)
def open(self, path)
def open_url(self, url)
def refresh(self)
def grab_console_log(self)
def grab_page_html(self)
def grab_html_from(self, element)
def clear_field(self, input_element)
def fill_field(self, element, text)
def fill_field_with_delay(self, element, text, delay = 0.1)
def press_key(self, element, *chars)
def append_field(self, element, text)
def wait_for_element_visible(self, element, timeout = 5)
def wait_for_element_not_visible(self, element, timeout = 5)
def see_element(self, element, attributes = {})
def see_text(self, text, element = None)
def see_in_field(self, input_element, needle)
def see_number_of_elements(self, element, expected)
def click(self, element)
def grab_visible(self, element)
def grab_text_from(self, element)
def grab_attribute_from(self, element, attribute)
def grab_value_from(self, input_element)
def grab_multiple(self, elements)
def save_screenshot(self, name=None)
def get_screenshot_binary(self)
def move_mouse_over(self, element)
def switch_to_iframe(self, frame = None)
def save_session_snapshot(self, name)
def load_session_snapshot(self, name)
def set_cookie(self, name, value, params = {})
def scroll_to(self, element, offset_x = 0, offset_y = 0)
def scroll_into_view(self, element, offset_x = 0, offset_y = 0)
def delete_all_cookies(self)
def element_has_attribute(self, element, attr, expected_value = None)
def execute_js(self, script, *args)
def sleep(self, secs)
def wd_wait(self, timeout = 10, poll_frequency = 0.5)
def scroll_top(self)
def find(self, element)
def finds(self, element)
Metadata
Release files for wasd 1.0.99
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 |
|---|---|---|---|---|
| wasd-1.0.99.tar.gz | 21.3 kB | Without provenance | Details for wasd-1.0.99.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| wasd-1.0.99-py3-none-any.whl | Python 3 | none | any | Details for wasd-1.0.99-py3-none-any.whl |
Total release size: 47.3 kB
Release files / wasd-1.0.99.tar.gz
| Download URL | wasd-1.0.99.tar.gz |
|---|---|
| Size | 21.3 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
562fac054976e3f9b944bdd1567a8c8705d7ec20f6615a7c5f4e10204bc5dc08
|
|
BLAKE2b-256 checksum How to use checksums |
3d0c454b5d60e0a6576d3e6af77852aca3d853c8ca5407eb1fa086946979f50e
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.0 CPython/3.9.10
|
Release files / wasd-1.0.99-py3-none-any.whl
| Download URL | wasd-1.0.99-py3-none-any.whl |
|---|---|
| Size | 26.0 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
1596c573341270868095a03863e74c3e2019a8fc5c9dcdaa39e027b52dae667c
|
|
BLAKE2b-256 checksum How to use checksums |
579f32528b130dc1dd8e49d8e6ba62183bf8685d77f1642815993d0438d7da0d
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.0 CPython/3.9.10
|
Security for wasd 1.0.99
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.