Skip to main content

(Python) Yet Another Selenium Instruments

Project description

Pyasli

codecov Tests Release PyPI version

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 pyasli.browsers import BrowserSession

with BrowserSession("chrome", 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

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

Uploaded Source

Built Distribution

pyasli-0.2.8-py3-none-any.whl (14.4 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: pyasli-0.2.8.tar.gz
  • Upload date:
  • Size: 11.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.4.1 CPython/3.10.6 Linux/5.15.0-1034-azure

File hashes

Hashes for pyasli-0.2.8.tar.gz
Algorithm Hash digest
SHA256 010bd15e09953c28bb6a4eb18e64ef0da70fce7b8e11b6ff06b3fadff0804741
MD5 5c2bf1e2b706fbf876cb30380f23838b
BLAKE2b-256 07cf5a1be165f568ebe1c97ac26ed0cc9ff5f52b8ae214ca1f85b4a83b6296ac

See more details on using hashes here.

File details

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

File metadata

  • Download URL: pyasli-0.2.8-py3-none-any.whl
  • Upload date:
  • Size: 14.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.4.1 CPython/3.10.6 Linux/5.15.0-1034-azure

File hashes

Hashes for pyasli-0.2.8-py3-none-any.whl
Algorithm Hash digest
SHA256 adf2c62542ba20f07dc0951eece8ff083dc821115127cbd91cf948f782a4c239
MD5 20cdbac3242b4894f04e204065431ce9
BLAKE2b-256 e4978be20ff57a22e027e045e7f7f44be61f9c933c223349a0d719c96f7c3ac8

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