异步Web驱动程序

arsenic的Python项目详细描述


异步Webdriver

CircleCIDocumentation StatusBrowserStack StatusAppveyor statusPyPI versionCode style: blackLicense

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

快速启动

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

fromarsenicimportget_sessionfromarsenic.browsersimportFirefoxfromarsenic.servicesimportGeckodriverasyncdefexample():# Runs geckodriver and starts a firefox sessionasyncwithget_session(Geckodriver(),Firefox())assession:# go to example.comawaitsession.get('http://example.com')# wait up to 5 seconds to get the h1 element from the pageh1=awaitsession.wait_for_element(5,'h1')# print the text of the h1 elementprint(awaith1.get_text())

有关详细信息,请检查the documentation

BrowserStack支持的CI

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

Browserstack

欢迎加入QQ群-->: 979659372 Python中文网_新手群

推荐PyPI第三方库


热门话题
不同窗口中的java视图   java创建SQL插入语句到CSV文件   java效率检查:Opengl动画代码   在clojure中处理Java可选<T>   java理解camel中的输入/输出交换模式行为   对于使用jpackage构建的应用程序,java LSOpenURLsWithRole()失败,错误为10810   多线程Java同步:多重倒计时闩锁   java哪个类应该做这项工作?   java在运行时出现问题。getRuntime()。执行官   java我们不能在GAE中使用集合或集合作为返回类型吗?   amazon web服务返回类型与RequestHandler<Object,String>不兼容。JAVA中的HandlerRequest(对象、上下文)   如何在Java中使用ExecutorService设置任务的超时时间