Skip to main content

(Python) Yet Another Selenium Instruments

Project description

Pyasli

coverage report pipeline status

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/

Icons made by Freepik from www.flaticon.com is licensed by CC 3.0 BY

Project details


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.4.tar.gz (10.3 kB view details)

Uploaded Source

Built Distribution

pyasli-0.2.4-py3-none-any.whl (12.7 kB view details)

Uploaded Python 3

File details

Details for the file pyasli-0.2.4.tar.gz.

File metadata

  • Download URL: pyasli-0.2.4.tar.gz
  • Upload date:
  • Size: 10.3 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

Hashes for pyasli-0.2.4.tar.gz
Algorithm Hash digest
SHA256 6814b84e58b2238339cabf09d234748ce48523fb55db52de16a322b4ff0d4ba1
MD5 02aabc4701d4b04d133e1a9579ad365d
BLAKE2b-256 9844b089db79b151b8b0c90dd821ac0a4e3b1eaab41fb634a6a7c227ce625e53

See more details on using hashes here.

File details

Details for the file pyasli-0.2.4-py3-none-any.whl.

File metadata

  • Download URL: pyasli-0.2.4-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

Hashes for pyasli-0.2.4-py3-none-any.whl
Algorithm Hash digest
SHA256 ce55790f373667ce8810330b83491d5c3d2d8782244f1f65e2e53c801ddd4ce3
MD5 0f5e91ac2b926b167756f5ca868206a0
BLAKE2b-256 c61bca3a9e065a9b42a9389005ee08fa89a8b274667db3ff46deebd10b1028cd

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page