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

Uploaded Source

Built Distribution

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

Uploaded Python 3

File details

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

File metadata

  • Download URL: pyasli-0.2.8b1.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.8b1.tar.gz
Algorithm Hash digest
SHA256 8ee5f702891ffc14e37482ebb1016ccabd3297dfb22424c7ea3f3b0a41429c33
MD5 a7c7c66a1fe0f2dcf5ebddbe35b44e56
BLAKE2b-256 e7576c12962ffe4810d16418df0fc031eaa75506b20d0cfbd82be49d89242d40

See more details on using hashes here.

File details

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

File metadata

  • Download URL: pyasli-0.2.8b1-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.8b1-py3-none-any.whl
Algorithm Hash digest
SHA256 3d94e2c301fd2861df7b79175af5522276ffb12e234147802a868483ea04dacc
MD5 c03696adbcb0f2c9bec8d12b1877f821
BLAKE2b-256 e292dd9958e9cce590185b0a67f0e954b89a5a6ce2c8f321ea45006cbacd96e1

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