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

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.

主站蜘蛛池模板: 阜平县| 黔江区| 彰武县| 启东市| 陕西省| 汨罗市| 介休市| 武平县| 高要市| 元朗区| 大名县| 乌拉特前旗| 云南省| 咸宁市| 广丰县| 平原县| 开平市| 龙川县| 临沂市| 沂水县| 汾阳市| 临邑县| 延寿县| 汪清县| 和平区| 九江市| 青浦区| 探索| 尖扎县| 曲松县| 鄂州市| 沂源县| 普陀区| 略阳县| 宁化县| 伊宁县| 崇义县| 海晏县| 建始县| 陆河县| 衡东县|