Asynchronous WebDriver client
Project description
Async Webdriver
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.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
arsenic-21.8.tar.gz
(16.3 kB
view details)
Built Distribution
arsenic-21.8-py3-none-any.whl
(18.6 kB
view details)
File details
Details for the file arsenic-21.8.tar.gz
.
File metadata
- Download URL: arsenic-21.8.tar.gz
- Upload date:
- Size: 16.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.1.7 CPython/3.9.5 Darwin/20.6.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 1ac2d29ff447b648f870ce241660d0584d847f07f8fd6f00117e8aba0594e927 |
|
MD5 | 0275ee5520d09c823b91b44cd0af0c29 |
|
BLAKE2b-256 | 23170fee2eeb845b7d8de7fcc5af56b9991f45615c6e3486c0de2d1531453c67 |
Provenance
File details
Details for the file arsenic-21.8-py3-none-any.whl
.
File metadata
- Download URL: arsenic-21.8-py3-none-any.whl
- Upload date:
- Size: 18.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.1.7 CPython/3.9.5 Darwin/20.6.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9be9d9eeeac519d45bf8ebe6d03c24eb6ae4dc7672b1f6c8f870f63f5997642b |
|
MD5 | 78acc0d04559b61743c3e4ef9828e525 |
|
BLAKE2b-256 | f5207dd5184267baffec8f0619addcf91e170d831031410e6a83d749ac6ce6b3 |