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

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.

主站蜘蛛池模板: 翁牛特旗| 民县| 襄汾县| 博乐市| 井冈山市| 葵青区| 新干县| 长沙县| 宁武县| 浦江县| 桃江县| 乐东| 南昌县| 綦江县| 吉木乃县| 公主岭市| 分宜县| 张家港市| 安陆市| 溧阳市| 钟祥市| 南城县| 辉县市| 宝山区| 太仆寺旗| 怀安县| 洪洞县| 玛纳斯县| 巫山县| 铜鼓县| 法库县| 武汉市| 周宁县| 张家川| 嵩明县| 滁州市| 林周县| 黄山市| 永川市| 安徽省| 永寿县|