arsenic-21.8
توضیحات
Asynchronous WebDriver client
| ویژگی | مقدار |
|---|---|
| سیستم عامل | POSIX :: Linux |
| نام فایل | arsenic-21.8 |
| نام | arsenic |
| نسخه کتابخانه | 21.8 |
| نگهدارنده | [] |
| ایمیل نگهدارنده | [] |
| نویسنده | Jonas Obrist |
| ایمیل نویسنده | jonas.obrist@hennge.com |
| آدرس صفحه اصلی | https://github.com/HDE/arsenic |
| آدرس اینترنتی | https://pypi.org/project/arsenic/ |
| مجوز | Apache-2.0 |
# Async Webdriver
[](https://circleci.com/gh/HDE/arsenic/tree/main) [](http://arsenic.readthedocs.io/en/latest/?badge=latest)
[](https://automate.browserstack.com/public-build/QmtNVHFnWWRFSEVUdTBZNWU5NGMraVorWVltazFqRk1VNWRydW5FRXU2dz0tLVhoTlFuK2tZUTJ1UGx0UmZaWjg4R1E9PQ==--35ef3d28fbf8ea24ee7fa2a435f9271fbaaf85d4)
[](https://ci.appveyor.com/project/ojii/arsenic)
[](https://badge.fury.io/py/arsenic)
[](https://github.com/ambv/black)
[](https://opensource.org/licenses/Apache-2.0)
Asynchronous webdriver client built on asyncio.
## Quickstart
Let's run a local Firefox instance.
```python
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).
[](http://browserstack.com/)
نیازمندی
| مقدار | نام |
|---|---|
| >=17.4.0 | attrs |
| >=20.1.0,<21.0.0 | structlog |
| >=3 | aiohttp |
زبان مورد نیاز
| مقدار | نام |
|---|---|
| >=3.7,<4.0 | Python |
نحوه نصب
نصب پکیج whl arsenic-21.8:
pip install arsenic-21.8.whl
نصب پکیج tar.gz arsenic-21.8:
pip install arsenic-21.8.tar.gz