跳转到主要内容

异步WebDriver客户端

项目描述

Async Webdriver

CircleCI Documentation Status BrowserStack Status Appveyor status PyPI version Code style: black License

基于asyncio构建的异步webdriver客户端。

快速入门

让我们运行一个本地的Firefox实例。

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())

更多详情,请查看文档

由Browserstack支持的CI

某些浏览器的持续集成由Browserstack慷慨提供。

Browserstack

项目详情


下载文件

下载您平台的文件。如果您不确定选择哪一个,请了解安装包的更多信息。

源分布

arsenic-21.8.tar.gz (16.3 kB 查看哈希值)

上传时间

构建分布

arsenic-21.8-py3-none-any.whl (18.6 kB 查看哈希值)

上传时间 Python 3

支持者

AWS AWS 云计算和安全赞助商 Datadog Datadog 监控 Fastly Fastly CDN Google Google 下载分析 Microsoft Microsoft PSF 赞助商 Pingdom Pingdom 监控 Sentry Sentry 错误日志 StatusPage StatusPage 状态页面