deb_control_files:
- control
- md5sums
- postinst
- prerm
deb_fields:
Architecture: all
Depends: python3-aiohttp, python3-attr, python3-structlog, python3:any
Description: |-
Asynchronous WebDriver client
Asynchronous webdriver client built on asyncio.
.
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())
.
Alternatively also other drivers can be run, e.g.
Chromedriver or MSEdgeDriver
Homepage: https://github.com/HDE/arsenic
Installed-Size: '78'
Maintainer: Gianfranco Costamagna <locutusofborg@debian.org>
Package: python3-arsenic
Priority: optional
Section: python
Source: arsenic
Version: 21.8-2
srcpkg_name: arsenic
srcpkg_version: 21.8-2