zoukankan      html  css  js  c++  java
  • casperjs,phantomjs,slimerjs and spooky

    1、casperjs http://casperjs.org/

    CasperJS is a navigation scripting & testing utility for PhantomJS and SlimerJS written in Javascript

    网站截图小例子:http://type.so/linux/casperjs-capture-nice.html,提到中文显示问题.

    http://fourword.fourkitchens.com/article/series/casperjs  有几篇关于casperjs使用的文章,不错的。

    2、phantomjs http://phantomjs.org/

    PhantomJS is a headless WebKit scriptable with a JavaScript API. It has fast andnative support for various web standards: DOM handling, CSS selector, JSON, Canvas, and SVG.

    3、slimerjs http://slimerjs.org/

    SlimerJS is useful to do functional tests, page automation, network monitoring, screen capture, etc.

    SlimerJS is similar to PhantomJs, except that it runs on top of Gecko, the browser engine of Mozilla Firefox(specifically, version 31), instead of Webkit, and is not yet truly headless.

    4、spookyjs https://github.com/WaterfallEngineering/SpookyJS

    Drive CasperJS from Node.js.

    Note: If you are simply looking to control Phantom from Node and don't need Casper's API, have a look at PhantomJS 1.8, which has native WebDriver support.

    以上工具可以完成很多前端自动化的工作,截屏,抓取,测试等,跟selenium (http://docs.seleniumhq.org/download/)配合可以完成自动化测试,暂时没深入研究过selenium

  • 相关阅读:
    链表的一些规律总结
    acclib的尝试
    初入指针
    在一个堆成矩阵中的循环判断(井字棋游戏)
    初学c语言的小套路汇总
    在循环中计算式一正一负的处理
    最大公约数的计算方法
    大数加法
    大数乘法
    复制可见区域到新表
  • 原文地址:https://www.cnblogs.com/argb/p/4198681.html
Copyright © 2011-2022 走看看