(Python) Yet Another Selenium Instruments
Project description
Pyasli
Simple selenium python wrapper
There are two ways to use browser:
Use default shared driver:
from pyasli.browsers import browser
browser.base_url = "https://the-internet.herokuapp.com"
browser.open("/disappearing_elements")
element1 = browser.element("div.example p")
assert element1.get_actual() is element1.get_actual(), "Element is found 2 times"
Use exact driver (can be used as context manager):
from tests.conftest import browser_instance
with browser_instance(base_url="https://the-internet.herokuapp.com") as browser:
browser.open("/disappearing_elements")
element1 = browser.element("div.example p")
assert element1.get_actual() is element1.get_actual(), "Element is found 2 times"
In case browser_instance
is used as context manager, all browser windows will be closed at
exiting context
There is no documentation currently. For usage please refer to tests
Built wheels are available at https://pypi.outcatcher.com/simple/pyasli/
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
pyasli-0.2.3.1.tar.gz
(10.2 kB
view details)
Built Distribution
pyasli-0.2.3.1-py3-none-any.whl
(12.7 kB
view details)
File details
Details for the file pyasli-0.2.3.1.tar.gz
.
File metadata
- Download URL: pyasli-0.2.3.1.tar.gz
- Upload date:
- Size: 10.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.1.4 CPython/3.8.6 Linux/5.8.16.a-1-hardened
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4d72a66407e712f0badf2e0d321714344ffc63b66d39590cff74d5ea526c295c |
|
MD5 | 6b19657f6f66b35d6aae8aab206ae7ce |
|
BLAKE2b-256 | 219e873fb0e77f787f468ac9f68819ecb977e2c196ab9f644beea3c7bce879ed |
File details
Details for the file pyasli-0.2.3.1-py3-none-any.whl
.
File metadata
- Download URL: pyasli-0.2.3.1-py3-none-any.whl
- Upload date:
- Size: 12.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.1.4 CPython/3.8.6 Linux/5.8.16.a-1-hardened
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | f561ab404bcd81666f328d7f4178cb602440d8c3d150739f87699a5385eec70e |
|
MD5 | 112a61708099595e2c387aee89dd8017 |
|
BLAKE2b-256 | 5a0a77631dfd45d1f803f74b4b72ba9c88282699ce7984dc749b00338d1e2084 |