(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.8b5.tar.gz
(12.0 kB
view details)
Built Distribution
pyasli-0.2.8b5-py3-none-any.whl
(14.5 kB
view details)
File details
Details for the file pyasli-0.2.8b5.tar.gz
.
File metadata
- Download URL: pyasli-0.2.8b5.tar.gz
- Upload date:
- Size: 12.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.1.4 CPython/3.8.6 Linux/5.9.8.a-1-hardened
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7c60848dafedec5c77933b53c5e446f5949fa042801426f52e738d2dfa5931fc |
|
MD5 | dd1530f5ceb862b3a6a2c229a1503aff |
|
BLAKE2b-256 | 5c74d136dd0e086a7f33da26a46045ee3ed7e3f5a72eebb6c76adbde02870367 |
File details
Details for the file pyasli-0.2.8b5-py3-none-any.whl
.
File metadata
- Download URL: pyasli-0.2.8b5-py3-none-any.whl
- Upload date:
- Size: 14.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.1.4 CPython/3.8.6 Linux/5.9.8.a-1-hardened
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 57f9d3f53b72cb049e8f017ec13ee1d58813cd48eacb0047f3c5c92736b9b3f7 |
|
MD5 | 9b536fab087b1e121122847d97d0b06e |
|
BLAKE2b-256 | ef2213dfd3f2c64596ec1c8d309658eddee20acd1b15ff5d994517e1c205d206 |