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第三方库


热门话题
jenkins在java代码的csv中使用前导零传递数字   终止java应用程序javaw。exe eclipse   java平均字长。文本   java在事务中关闭连接时会发生什么?   java如何为rich faces extendedDatatable启用可调整大小的列?   SpringJavaWebApp头nosniff不适合js和css文件   Java:抛出异常   java获取拒绝ArrayList中存在的用户名的代码。   关于编写JNDI服务提供者的java教程   java Android emulator电子书示例已停止   java如何防止双向关系中的循环   在Java中,如何将接口的实现作为变量传递给方法?   java有没有办法通过注释来监听CoreNLP处理的进度?   java Eclipse错误:导入项目时“无法读取项目描述文件”   java为什么findViewById返回null?