Skip to main content

Async Webdriver

Project description

Async Webdriver

CircleCI Documentation Status BrowserStack Status Appveyor status PyPI version Code style: black License

Asynchronous webdriver client built on asyncio.

Quickstart

Let's run a local Firefox instance.

from arsenic import get_session
from arsenic.browsers import Firefox
from arsenic.services import Geckodriver


async def example():
    # Runs geckodriver and starts a firefox session
    async with get_session(Geckodriver(), Firefox()) as session:
          # go to example.com
          await session.get('http://example.com')
          # wait up to 5 seconds to get the h1 element from the page
          h1 = await session.wait_for_element(5, 'h1')
          # print the text of the h1 element
          print(await h1.get_text())

For more information, check the documentation

CI Supported by Browserstack

Continuous integration for certain browsers is generously provided by Browserstack.

Browserstack

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

arsenic-20.1b1.tar.gz (15.5 kB view details)

Uploaded Source

Built Distribution

arsenic-20.1b1-py3-none-any.whl (18.7 kB view details)

Uploaded Python 3

File details

Details for the file arsenic-20.1b1.tar.gz.

File metadata

  • Download URL: arsenic-20.1b1.tar.gz
  • Upload date:
  • Size: 15.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/49.2.1 requests-toolbelt/0.9.1 tqdm/4.48.2 CPython/3.7.4

File hashes

Hashes for arsenic-20.1b1.tar.gz
Algorithm Hash digest
SHA256 84620517fbc7fdbac0bc4fcf13e959a91d93e4c9f23689cb281159088a551c63
MD5 d80a23d81bb4c2eb34749589ac035855
BLAKE2b-256 5cb19bb12f1e2e787c984ac48305bd52288708332c3479bd16566234ce974f0f

See more details on using hashes here.

File details

Details for the file arsenic-20.1b1-py3-none-any.whl.

File metadata

  • Download URL: arsenic-20.1b1-py3-none-any.whl
  • Upload date:
  • Size: 18.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/49.2.1 requests-toolbelt/0.9.1 tqdm/4.48.2 CPython/3.7.4

File hashes

Hashes for arsenic-20.1b1-py3-none-any.whl
Algorithm Hash digest
SHA256 128d0284b244f782ca190fdc1d4fda17afe1fe0f7cfaff21cf757a3636ebdbd9
MD5 db12e0eeb26ea96e6aeacc3e8b49d885
BLAKE2b-256 f56b4e7dba97541ee9b501430f5996b07044e97a03d9a59e47ac0035af7d3b8e

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