Skip to main content

Asynchronous WebDriver client

Project description

Async Webdriver

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

Asynchronous webdriver client built on asyncio.


Let's run a local Firefox instance.

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

async def example():
    # Runs geckodriver and starts a firefox session
    async with get_session(Geckodriver(), Firefox()) as session:
          # go to
          await session.get('')
          # 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.


Project details

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for arsenic, version 21.8
Filename, size File type Python version Upload date Hashes
Filename, size arsenic-21.8-py3-none-any.whl (18.6 kB) File type Wheel Python version py3 Upload date Hashes View
Filename, size arsenic-21.8.tar.gz (16.3 kB) File type Source Python version None Upload date Hashes View

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring DigiCert DigiCert EV certificate Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page