Skip to main content

(Python) Yet Another Selenium Instruments

Project description

Pyasli

codecov Build Status 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 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.8b4.tar.gz (11.2 kB view details)

Uploaded Source

Built Distribution

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

Uploaded Python 3

File details

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

File metadata

  • Download URL: pyasli-0.2.8b4.tar.gz
  • Upload date:
  • Size: 11.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

Hashes for pyasli-0.2.8b4.tar.gz
Algorithm Hash digest
SHA256 cb5593270f9b75f0dd37269f9e0a18aa64ad63c355094fb498c10778b44f25e3
MD5 e4f53b948935b3a93b69b77a2141a883
BLAKE2b-256 e38bba6409cf9890c813af686a9604ea2242794d9c8e6482ebee18ab5cfc4a7c

See more details on using hashes here.

File details

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

File metadata

  • Download URL: pyasli-0.2.8b4-py3-none-any.whl
  • Upload date:
  • Size: 13.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.8b4-py3-none-any.whl
Algorithm Hash digest
SHA256 1402d2e5bb3da2f3bba6ffd34d874bf18a1809a576de18d0b68af24687548665
MD5 cc22e3d12b0ee5e55737c84d69ee6526
BLAKE2b-256 e7c7eafd0d162fb63d9724b2ab06275be38b9204e6dd143d23116654941d4cd6

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