官术网_书友最值得收藏!

Introduction

PhantomJS is the headless WebKit – a fully-fledged WebKit-based browser with absolutely no graphical user interface. Instead of a GUI, PhantomJS features a scripting API that allows us to do just about anything that we would do with a normal browser. Since its introduction in 2010, PhantomJS has grown to be an essential tool in the web development stack. It is ideal for fast unit test watches, end-to-end tests in continuous integration, screen captures, screen scraping, performance data collection, and more.

The recipes in this chapter focus on PhantomJS fundamentals. We will discuss how to install PhantomJS, how to work with its Read-Evaluate-Print Loop (REPL), how to employ its command-line options, and how to launch PhantomJS in a debug harness.

主站蜘蛛池模板: 寻乌县| 和田市| 阿拉尔市| 临桂县| 林芝县| 湟中县| 得荣县| 红安县| 胶南市| 霸州市| 无锡市| 茌平县| 三河市| 龙南县| 大化| 内黄县| 综艺| 县级市| 泰安市| 荥经县| 茶陵县| 西乌| 永定县| 东光县| 从江县| 江源县| 时尚| 光山县| 绥阳县| 中阳县| 同江市| 闽侯县| 宁陕县| 凤城市| 临朐县| 开远市| 辛集市| 滨海县| 张家港市| 淮阳县| 拜泉县|