Skip to main content

(Python) Yet Another Selenium Instruments

Project description

Pyasli

coverage report pipeline 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.5.1.tar.gz (11.1 kB view details)

Uploaded Source

Built Distribution

pyasli-0.2.5.1-py3-none-any.whl (13.5 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: pyasli-0.2.5.1.tar.gz
  • Upload date:
  • Size: 11.1 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.5.1.tar.gz
Algorithm Hash digest
SHA256 bc851af011372210fdbeadf8dc7496be2eaea1e7d0cfef6a1841f69ba6b94e5a
MD5 191c11af92e23963c17dfaa0ef0a7b82
BLAKE2b-256 98381dbb80d175203e687a3d4cfad22ba9d6de7a7b0d23c9d9b73c7af9135fed

See more details on using hashes here.

File details

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

File metadata

  • Download URL: pyasli-0.2.5.1-py3-none-any.whl
  • Upload date:
  • Size: 13.5 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.5.1-py3-none-any.whl
Algorithm Hash digest
SHA256 931f388b7c7a95b660bcb341c2bb1020b50e4a587de08c964f00402875caf39f
MD5 a78512e1d3c53d27d2fbff431a189c18
BLAKE2b-256 de301faf818f7133462522b91e0ac093d1788cf645df7412319100fa2c9c4d00

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