arsenic
v21.8Asynchronous WebDriver client
18 KB Python 3.7+ py3-none-anyApache Software License3 deps Likely Unmaintained
$ uv add arsenicAsync 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.
Details
- Version
- 21.8
- License
- Apache Software License
- Python
- >=3.7,<4.0
- Maintainer
- Jonas Obrist
Maintainers
- Jonas Obrist · [email protected]
