selenium webdriver的包装器和一些工具

z3c.webdriver的Python项目详细描述


z3c.webdriver

这个包提供了围绕selenium.webdriver的工具和包装器。

我们特别关心selenium.webdriver.PhantomJS,因为:

  • it’s easy to deploy, it’s a single executable, ^{tt3}$ works
  • it’s built on ^{tt4}$
  • it can be debugged with a ^{tt5}$ / ^{tt6}$ browser, incl. breakpoints

注意事项:

  • any single instance of PhantomJS acts as a single browser instance that means cookies and whatnot are shared if you intantiate more browsers for a single driver. Workaround could be to start more drivers.
  • the headless browser is truly ^{tt7}$, that means an AJAX click does NOT wait for the AJAX request to complete, you explicitely need to wait for it
  • any single call to PhantomJS via selenium takes TIME
  • zope.testbrowser supporting methods like ^{tt8}$ are slow now
  • there are 2 options for setUp/tearDown, either the driver is started and torn down with the layer or with each test. Starting and stopping takes around 1.5-2 secs, so you decide whether you need separation or speed.

警告

这是正在进行的工作

0.0.1(2013-05-09)

  • 初始版本

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

推荐PyPI第三方库


热门话题
java在JSP中添加自定义隐式对象   java MasterMindResource泄漏?   不同的c#java结果加密   java为什么安卓 studio显示“constraintlayout中缺少约束”错误?   java Make Logback将日志打印到文件中   java如何在Google应用程序引擎中设置日期时间?   jeditorpane如何阻止java HTMLEditorKit自动关闭我的标记   返回到Activity onCreate()时,不会调用java函数   java为什么我在这个对象上得到一个NullPointerException?   在java中,如何使用包含数组的参数调用图形方法?   java如何在Play framework 2应用程序中存储Akka参与者列表?   ssh使用java将文件从一个solaris 9复制到另一个solaris 9   网络Java服务器正在等待客户端响应   java Spring mvc从formBackingObject()重定向到页面   java Spark:JavaRDD<Tuple2>到javapairdd<>   java如何动态调用基类中由字符串值指定的子类方法?