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

Uploaded Source

Built Distribution

pyasli-0.2.7-py3-none-any.whl (13.6 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: pyasli-0.2.7.tar.gz
  • Upload date:
  • Size: 11.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.1.4 CPython/3.8.3 Linux/5.4.0-1028-gcp

File hashes

Hashes for pyasli-0.2.7.tar.gz
Algorithm Hash digest
SHA256 ebcc0f47d3cc027253d3d437a4fa5c4fb8cbb8934b687107d648787a4add3c8a
MD5 1f94b2190e1b0638ec3c1fe3078fb0aa
BLAKE2b-256 80eedb1bfad8ff73452cc9249f8743acea91b328c7ade80f6a553c673dfdada1

See more details on using hashes here.

File details

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

File metadata

  • Download URL: pyasli-0.2.7-py3-none-any.whl
  • Upload date:
  • Size: 13.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.1.4 CPython/3.8.3 Linux/5.4.0-1028-gcp

File hashes

Hashes for pyasli-0.2.7-py3-none-any.whl
Algorithm Hash digest
SHA256 23a886725e4e18875970f071f944e1454c12dc2fa344f36c528c594948f0904a
MD5 5738a899cc72acee2b2f13ce41ea1287
BLAKE2b-256 ab4f0d0ab066d87dbfbb72cda0d5e0b81bad0ec91540599f004b5b000cddcb1b

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