---
title: "arsenic | pypx"
description: "Asynchronous WebDriver client"
canonical_url: "https://pypx.app/packages/arsenic"
meta:
  "og:description": "Asynchronous WebDriver client"
  "og:image": "https://pypx.app/_og/d/h_630%2Cc_PackageCard%2Cname_arsenic%2Cversion_21.8%2Csummary_Asynchronous%2BWebDriver%2Bclient%2Clicense_Apache%2BSoftware%2BLicense%2Cp_Ii9wYWNrYWdlcy9hcnNlbmljIg%2Cs_W5RL01s0vWvCdppz.png"
  "og:image:height": "630"
  "og:image:type": image/png
  "og:image:width": "1200"
  "og:title": "arsenic 21.8"
  "twitter:image": "https://pypx.app/_og/d/h_630%2Cc_PackageCard%2Cname_arsenic%2Cversion_21.8%2Csummary_Asynchronous%2BWebDriver%2Bclient%2Clicense_Apache%2BSoftware%2BLicense%2Cp_Ii9wYWNrYWdlcy9hcnNlbmljIg%2Cs_W5RL01s0vWvCdppz.png"
---

> Index of every page on this site: [llms.txt](https://pypx.app/llms.txt)

# **arsenic**

v21.8

Asynchronous WebDriver client

18 KB Python 3.7+ py3-none-anyApache Software License3 deps Likely Unmaintained

[** Diff **](https://pypx.app/packages/arsenic/diff)

`$ uv add arsenic`

# Async Webdriver

[![CircleCI](https://circleci.com/gh/HDE/arsenic/tree/main.svg?style=svg)](https://circleci.com/gh/HDE/arsenic/tree/main) [![Documentation Status](https://readthedocs.org/projects/arsenic/badge/?version=latest)](http://arsenic.readthedocs.io/en/latest/?badge=latest) [![BrowserStack Status](https://automate.browserstack.com/badge.svg?badge_key=QmtNVHFnWWRFSEVUdTBZNWU5NGMraVorWVltazFqRk1VNWRydW5FRXU2dz0tLVhoTlFuK2tZUTJ1UGx0UmZaWjg4R1E9PQ==--35ef3d28fbf8ea24ee7fa2a435f9271fbaaf85d4)](https://automate.browserstack.com/public-build/QmtNVHFnWWRFSEVUdTBZNWU5NGMraVorWVltazFqRk1VNWRydW5FRXU2dz0tLVhoTlFuK2tZUTJ1UGx0UmZaWjg4R1E9PQ==--35ef3d28fbf8ea24ee7fa2a435f9271fbaaf85d4) [![Appveyor status](https://ci.appveyor.com/api/projects/status/8l0koom7h93y1f9q?svg=true)](https://ci.appveyor.com/project/ojii/arsenic) [![PyPI version](https://badge.fury.io/py/arsenic.svg)](https://badge.fury.io/py/arsenic) [![Code style: black](https://img.shields.io/badge/code%20style-black-000000.svg)](https://github.com/ambv/black) [![License](https://img.shields.io/badge/License-Apache%202.0-blue.svg)](https://opensource.org/licenses/Apache-2.0)

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](https://arsenic.readthedocs.io/)

## CI Supported by Browserstack

Continuous integration for certain browsers is generously provided by [Browserstack](http://browserstack.com).

[![Browserstack](https://pypx.app/.circleci/browserstack-logo.png)](http://browserstack.com/)

## **Details **

<dl>

<dt>Version</dt>
<dd>21.8</dd>

<dt>License</dt>
<dd>Apache Software License</dd>

<dt>Python</dt>
<dd>&gt;=3.7,&lt;4.0</dd>

<dt>Maintainer</dt>
<dd>Jonas Obrist</dd></dl>

## **Links**

- [Documentation](https://arsenic.readthedocs.io/en/latest/)
- [Homepage](https://github.com/HDE/arsenic)
- [Repository](https://github.com/HDE/arsenic)
- [View on PyPI](https://pypi.org/project/arsenic/)

## **Maintainers **

- Jonas Obrist · [jonas.obrist@hennge.com](mailto:jonas.obrist@hennge.com)

```json
{"@context":"https://schema.org","@graph":[{"@id":"https://pypx.app/#website","@type":"WebSite","description":"The Python Package Index, reimagined. Fast search, dependency insights, download trends, and changelogs — all in one place.","name":"pypx","url":"https://pypx.app/"},{"@id":"https://pypx.app/packages/arsenic#webpage","@type":"WebPage","description":"Asynchronous WebDriver client","name":"arsenic","url":"https://pypx.app/packages/arsenic","isPartOf":{"@id":"https://pypx.app/#website"},"potentialAction":[{"@type":"ReadAction","target":["https://pypx.app/packages/arsenic"]}]},{"@id":"https://pypx.app/packages/arsenic#/schema/software-application/1","@type":"SoftwareApplication","applicationCategory":"DeveloperApplication","description":"Asynchronous WebDriver client","license":"Apache Software License","name":"arsenic","softwareVersion":"21.8"}]}
```

## Sitemap

See the full [sitemap](https://pypx.app/sitemap.md) for all pages.
