This repository has been archived by the owner on May 30, 2023. It is now read-only.
/
index.html
executable file
·151 lines (145 loc) · 6.64 KB
/
index.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
<!doctype html>
<!--[if lt IE 7]> <html class="no-js ie6 oldie" lang="en"> <![endif]-->
<!--[if IE 7]> <html class="no-js ie7 oldie" lang="en"> <![endif]-->
<!--[if IE 8]> <html class="no-js ie8 oldie" lang="en"> <![endif]-->
<!--[if gt IE 8]><!--> <html class="no-js" lang="en"> <!--<![endif]-->
<head>
<meta charset="utf-8">
<title>PhantomJS: Headless WebKit with JavaScript API</title>
<meta name="description" content="">
<meta name="author" content="">
<meta name="viewport" content="width=device-width,initial-scale=1">
<link href='http://fonts.googleapis.com/css?family=Droid+Sans:400,700' rel='stylesheet' type='text/css'>
<link rel="stylesheet" href="screen.min.css">
<script type="text/javascript">
var _gaq = _gaq || [];
_gaq.push(['_setAccount', 'UA-21665893-1']);
_gaq.push(['_trackPageview']);
(function() {
var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
})();
</script>
</head>
<body>
<div id="intro">
<div id="header" class="container_12">
<a href="http://www.phantomjs.org/" class="grid_4 alpha"><img src="images/phantomjs-logo.png" alt="PhantomJS" id="logo" width="240" height="80"></a>
<ul id="nav" class="grid_8 omega">
<li><a href="https://github.com/ariya/phantomjs">Source Code</a></li>
<li><a href="https://github.com/ariya/phantomjs/wiki">Documentation</a></li>
<li><a href="https://github.com/ariya/phantomjs/wiki/API-Reference">API</a></li>
<li><a href="https://github.com/ariya/phantomjs/wiki/Examples">Examples</a></li>
<li><a href="faq.html">FAQ</a></li>
</ul>
</div>
<div id="introduction" class="container_12">
<div class="grid_7 alpha">
<h1>
Full web stack<br>
No browser required
</h1>
<p class="explanation">
PhantomJS is a headless WebKit scriptable with a JavaScript API.
It has <strong>fast</strong> and <strong>native</strong> support for various web standards:
DOM handling, CSS selector, JSON, Canvas, and SVG.<br>
PhantomJS is created by <a href="http://twitter.com/AriyaHidayat">Ariya Hidayat</a>.
</p>
<p class="action">
<a href="download.html" id="download">Download <span class="version">v1.8</span></a>
<a href="https://github.com/ariya/phantomjs/wiki/Quick-Start">Get started</a>
</p>
</div>
<div id="intro-example" class="grid_5 omega">
<pre class="solarized">
<strong>Simple Javascript example</strong>
<span class="object">console</span>.<span class="function">log</span>(<span class="literal">'Loading a web page'</span>);
var <span class="object">page</span> = require(<span class="literal">'webpage'</span>).<span class="function">create</span>();
var <span class="object">url</span> = <span class="literal">'http://www.phantomjs.org/'</span>;
<span class="object">page</span>.<span class="function">open</span>(url, <span class="function">function</span> (status) {
<span class="comment">//Page is loaded!</span>
<span class="object">phantom</span>.<span class="function">exit</span>();
});</pre>
</div>
</div>
</div>
<div id="community">
<h2>Community:</h2>
<ul>
<li>
<a href="release-1.8.html" id="link-release">Read the release notes</a>
</li>
<li>
<a href="https://groups.google.com/forum/#!forum/phantomjs" id="link-ml">Join the mailing list</a>
</li>
<li>
<a href="https://github.com/ariya/phantomjs/issues" id="link-bugs">Report bugs</a>
</li>
</ul>
</div>
<div id="description" class="container_12">
<h2>PhantomJS is an optimal solution for</h2>
<div id="feature-01" class="feature grid_3 alpha">
<h3>Headless Website Testing</h3>
<div>
<p>
Run functional tests with frameworks such as Jasmine, QUnit, Mocha, Capybara, WebDriver, and many others.
<a href="https://github.com/ariya/phantomjs/wiki/Headless-Testing">Learn more</a>
</p>
</div>
</div>
<div id="feature-02" class="feature grid_3">
<h3>Screen Capture</h3>
<div>
<p>
Programmatically capture web contents, including SVG and Canvas.
Create web site screenshots with thumbnail preview.
<a href="https://github.com/ariya/phantomjs/wiki/Screen-Capture">Learn more</a>
</p>
</div>
</div>
<div id="feature-03" class="feature grid_3">
<h3>Page Automation</h3>
<div>
<p>
Access and manipulate webpages
with the standard DOM API, or with
usual libraries like jQuery.
<br>
<a href="https://github.com/ariya/phantomjs/wiki/Page-Automation">Learn more</a>
</p>
</div>
</div>
<div id="feature-04" class="feature grid_3 omega">
<h3>Network Monitoring</h3>
<div>
<p>
Monitor page loading and export as standard HAR files. Automate performance analysis using YSlow and Jenkins.
<a href="https://github.com/ariya/phantomjs/wiki/Network-Monitoring">Learn more</a>
</p>
</div>
</div>
<div id="feature-end" class="grid_12">
<p>
PhantomJS is used in the test workflow of various open-source projects:<br/>
<a href="http://twitter.github.com/bootstrap/">Bootstrap</a>,
<a href="http://codemirror.net/">CodeMirror</a>,
<a href="http://emberjs.com/">Ember.js</a>,
<a href="http://lesscss.org/">Less.js</a>,
<a href="http://modernizr.com/">Modernizr</a>,
<a href="http://yuilibrary.com/projects/yui3/">YUI3</a>,
and <a href="https://github.com/ariya/phantomjs/wiki/Users">many more</a>.
</p>
</div>
</div>
<div id="footer">
<div id="footer-content" class="container_12">
<p>
© Copyright 2010-2013 <a href="http://twitter.com/AriyaHidayat">Ariya Hidayat</a> — Website design by <a href="http://svay.com/">Maurice Svay</a>
</p>
</div>
</div>
<a href="https://github.com/ariya/phantomjs/"><img style="position: absolute; top: 0; left: 0; border: 0;" src="https://s3.amazonaws.com/github/ribbons/forkme_left_white_ffffff.png" alt="Fork me on GitHub"></a>
</body>
</html>