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 Intellij IDEA代码覆盖率不起作用   java如何在JavaFX8中根据其特定的祖先获取节点边界?   正则表达式在java arraylist中搜索正则表达式   运行backticks/exec()的java PHP路径问题   java正则表达式(全部替换)但不是引导一个撇号   将两个十进制整数与除法运算相乘   Java覆盖文件   spring boot Elasticsearch高级Rest客户端Java排序工作不正常   java为什么我的库不能访问它的资源?   java onCreateView,用于在选择相邻选项卡时调用选项卡?   如何在java中查找数组中一个数字的重复次数   java如何在hibernate中创建表,该表不存在于数据库中   java为什么当所有其他精灵移动时,Carpaint不移动?   java如何保存tuplas值,以便以后搜索   数据库中的java字符串使用isEmpty提供nullPointerException   AmazonWeb服务java。网ConnectException:连接被拒绝(连接被拒绝)   构造函数名和类名在Java中是相同的。为什么?