# 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.
```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).
[![Browserstack](./.circleci/browserstack-logo.png)](http://browserstack.com/)
Raw data
{
"_id": null,
"home_page": "https://github.com/HDE/arsenic",
"name": "arsenic",
"maintainer": "",
"docs_url": null,
"requires_python": ">=3.7,<4.0",
"maintainer_email": "",
"keywords": "asyncio",
"author": "Jonas Obrist",
"author_email": "jonas.obrist@hennge.com",
"download_url": "https://files.pythonhosted.org/packages/23/17/0fee2eeb845b7d8de7fcc5af56b9991f45615c6e3486c0de2d1531453c67/arsenic-21.8.tar.gz",
"platform": "",
"description": "# Async Webdriver\n\n[![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)\n[![BrowserStack Status](https://automate.browserstack.com/badge.svg?badge_key=QmtNVHFnWWRFSEVUdTBZNWU5NGMraVorWVltazFqRk1VNWRydW5FRXU2dz0tLVhoTlFuK2tZUTJ1UGx0UmZaWjg4R1E9PQ==--35ef3d28fbf8ea24ee7fa2a435f9271fbaaf85d4)](https://automate.browserstack.com/public-build/QmtNVHFnWWRFSEVUdTBZNWU5NGMraVorWVltazFqRk1VNWRydW5FRXU2dz0tLVhoTlFuK2tZUTJ1UGx0UmZaWjg4R1E9PQ==--35ef3d28fbf8ea24ee7fa2a435f9271fbaaf85d4)\n[![Appveyor status](https://ci.appveyor.com/api/projects/status/8l0koom7h93y1f9q?svg=true)](https://ci.appveyor.com/project/ojii/arsenic)\n[![PyPI version](https://badge.fury.io/py/arsenic.svg)](https://badge.fury.io/py/arsenic)\n[![Code style: black](https://img.shields.io/badge/code%20style-black-000000.svg)](https://github.com/ambv/black)\n[![License](https://img.shields.io/badge/License-Apache%202.0-blue.svg)](https://opensource.org/licenses/Apache-2.0)\n\n\nAsynchronous webdriver client built on asyncio.\n\n\n## Quickstart\n\nLet's run a local Firefox instance.\n\n\n```python\n\nfrom arsenic import get_session\nfrom arsenic.browsers import Firefox\nfrom arsenic.services import Geckodriver\n\n\nasync def example():\n # Runs geckodriver and starts a firefox session\n async with get_session(Geckodriver(), Firefox()) as session:\n # go to example.com\n await session.get('http://example.com')\n # wait up to 5 seconds to get the h1 element from the page\n h1 = await session.wait_for_element(5, 'h1')\n # print the text of the h1 element\n print(await h1.get_text())\n```\n\nFor more information, check [the documentation](https://arsenic.readthedocs.io/)\n\n## CI Supported by Browserstack\n\nContinuous integration for certain browsers is generously provided by [Browserstack](http://browserstack.com).\n\n[![Browserstack](./.circleci/browserstack-logo.png)](http://browserstack.com/)\n",
"bugtrack_url": null,
"license": "Apache-2.0",
"summary": "Asynchronous WebDriver client",
"version": "21.8",
"project_urls": {
"Documentation": "https://arsenic.readthedocs.io/en/latest/",
"Homepage": "https://github.com/HDE/arsenic",
"Repository": "https://github.com/HDE/arsenic"
},
"split_keywords": [
"asyncio"
],
"urls": [
{
"comment_text": "",
"digests": {
"blake2b_256": "f5207dd5184267baffec8f0619addcf91e170d831031410e6a83d749ac6ce6b3",
"md5": "78acc0d04559b61743c3e4ef9828e525",
"sha256": "9be9d9eeeac519d45bf8ebe6d03c24eb6ae4dc7672b1f6c8f870f63f5997642b"
},
"downloads": -1,
"filename": "arsenic-21.8-py3-none-any.whl",
"has_sig": false,
"md5_digest": "78acc0d04559b61743c3e4ef9828e525",
"packagetype": "bdist_wheel",
"python_version": "py3",
"requires_python": ">=3.7,<4.0",
"size": 18585,
"upload_time": "2021-08-23T02:46:27",
"upload_time_iso_8601": "2021-08-23T02:46:27.441783Z",
"url": "https://files.pythonhosted.org/packages/f5/20/7dd5184267baffec8f0619addcf91e170d831031410e6a83d749ac6ce6b3/arsenic-21.8-py3-none-any.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": "",
"digests": {
"blake2b_256": "23170fee2eeb845b7d8de7fcc5af56b9991f45615c6e3486c0de2d1531453c67",
"md5": "0275ee5520d09c823b91b44cd0af0c29",
"sha256": "1ac2d29ff447b648f870ce241660d0584d847f07f8fd6f00117e8aba0594e927"
},
"downloads": -1,
"filename": "arsenic-21.8.tar.gz",
"has_sig": false,
"md5_digest": "0275ee5520d09c823b91b44cd0af0c29",
"packagetype": "sdist",
"python_version": "source",
"requires_python": ">=3.7,<4.0",
"size": 16300,
"upload_time": "2021-08-23T02:46:29",
"upload_time_iso_8601": "2021-08-23T02:46:29.256840Z",
"url": "https://files.pythonhosted.org/packages/23/17/0fee2eeb845b7d8de7fcc5af56b9991f45615c6e3486c0de2d1531453c67/arsenic-21.8.tar.gz",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2021-08-23 02:46:29",
"github": true,
"gitlab": false,
"bitbucket": false,
"codeberg": false,
"github_user": "HDE",
"github_project": "arsenic",
"travis_ci": false,
"coveralls": false,
"github_actions": false,
"circle": true,
"appveyor": true,
"lcname": "arsenic"
}