mirror of https://github.com/vitalif/phantomjs
225 lines
9.6 KiB
HTML
Executable File
225 lines
9.6 KiB
HTML
Executable File
<!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 1.8 Release Notes</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>
|
|
<link rel="stylesheet" type="text/css" href="prettify.css"/>
|
|
<link rel="stylesheet" type="text/css" href="snippet.css"/>
|
|
<script type="text/javascript" src="js/prettify.js"></script>
|
|
|
|
<style>
|
|
#description p {
|
|
line-height: 125%;
|
|
text-align: left;
|
|
margin-bottom: 10px;
|
|
margin-top: 10px;
|
|
}
|
|
|
|
#description h2 {
|
|
text-align: left;
|
|
margin: 0.8em 0;
|
|
font-size: 150%;
|
|
}
|
|
|
|
#description ul {
|
|
line-height: 125%;
|
|
list-style-type: disc;
|
|
margin-left: 1em;
|
|
margin-bottom: 1em;
|
|
}
|
|
|
|
#description li {
|
|
margin-left: 1em;
|
|
}
|
|
|
|
table {
|
|
margin: 10px;
|
|
}
|
|
table th{
|
|
font-weight: bold;
|
|
background-color: #eee;
|
|
}
|
|
table td,table th {
|
|
padding: 10px;
|
|
}
|
|
</style>
|
|
</head>
|
|
|
|
<body onload="prettyPrint()">
|
|
<div id="intro">
|
|
<div id="header" class="container_12">
|
|
<a href="index.html" 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>PhantomJS 1.8 Release Notes</h1>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
<div id="description" class="container_12">
|
|
|
|
<div class="grid_10">
|
|
|
|
<p><strong>Note:</strong> The release notes are still being worked on, more information may become available in the next few days. Please bear with us!</p>
|
|
|
|
<p>PhantomJS 1.8, <em><a href="release-names.html">Blue Winter Rose</a></em>, was released on December 21, 2012. It integrated Ghost Driver, an implementation of WebDriver Wire Protocol.</p>
|
|
|
|
<p><strong>WebDriver support via Ghost Driver integration</strong></p>
|
|
|
|
<p>
|
|
<a href="https://github.com/detro/ghostdriver">Ghost Driver</a>, a project by
|
|
<a href="http://blog.ivandemarino.me/2012/12/04/Finally-GhostDriver-1-0-0">Ivan De Marino</a>, is an implementation
|
|
of <a href="http://code.google.com/p/selenium/wiki/JsonWireProtocol">WebDriver Wire Protocol</a>.
|
|
In this PhantomJS release, Ghost Driver functionalities have been fully integrated.
|
|
</p>
|
|
<p>
|
|
To launch PhantomJS in <em>Remote WebDriver mode</em> at the intended <code>PORT</code> number:
|
|
<pre class="prettyprint lang-bash">phantomjs --webdriver=PORT</pre>
|
|
</p>
|
|
|
|
<p>
|
|
The following example, written in Ruby, assumes PhantomJS WebDriver is running on port <code>9134</code>.
|
|
The script will load Google, submit a search for the term <em>"PhantomJS"</em> and print the page title
|
|
of the search result page:
|
|
<pre class="prettyprint lang-ruby">
|
|
require "selenium-webdriver"
|
|
driver = Selenium::WebDriver.for(:remote, :url => "http://localhost:9134")
|
|
driver.navigate.to "http://google.com"
|
|
element = driver.find_element(:name, 'q')
|
|
element.send_keys "PhantomJS"
|
|
element.submit
|
|
puts driver.title
|
|
driver.quit</pre>
|
|
</p>
|
|
|
|
<p>
|
|
Bindings for your favourite programming language can be found in <a href="https://code.google.com/p/selenium/downloads/list">Selenium >= 2.27</a>:
|
|
<table>
|
|
<thead>
|
|
<tr>
|
|
<th>Language Binding</th>
|
|
<th>Status</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody>
|
|
<tr>
|
|
<td>Java</td>
|
|
<td>Available</td>
|
|
</tr>
|
|
<tr>
|
|
<td>C#/.Net</td>
|
|
<td>Available</td>
|
|
</tr>
|
|
<tr>
|
|
<td>Python</td>
|
|
<td>Available</td>
|
|
</tr>
|
|
<tr>
|
|
<td>Ruby</td>
|
|
<td>Available</td>
|
|
</tr>
|
|
<tr>
|
|
<td>PHP</td>
|
|
<td>Work in progress</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
|
|
<strong>NOTICE:</strong> Language bindings are provided by kind members of the Selenium community.
|
|
Issues related to those should be
|
|
<a href="https://code.google.com/p/selenium/issues/list">reported to Selenium project</a>.
|
|
PhantomJS <strong>solely</strong> implements the Wire Protocol and it is not responsible for any/possible
|
|
binding malfunctions.
|
|
</p>
|
|
<p>
|
|
More details can be found in
|
|
<a href="http://blog.ivandemarino.me/2012/12/04/Finally-GhostDriver-1-0-0">this blog post</a>.
|
|
Also, make sure you check the documentation of <a href="http://seleniumhq.org/docs/03_webdriver.jsp">Selenium WebDriver</a>.
|
|
</p>
|
|
|
|
<p><strong>New features</strong></p>
|
|
|
|
<ul>
|
|
<li>Integrated GhostDriver as the WebDriver implementation (issue <a href="http://code.google.com/p/phantomjs/issues/detail?id=49">49</a>)
|
|
<li>Added an option to specify the SSL protocol (issue <a href="http://code.google.com/p/phantomjs/issues/detail?id=174">174</a>)
|
|
<li>Added encoding support for WebServer's response (issue <a href="http://code.google.com/p/phantomjs/issues/detail?id=505">505</a>)
|
|
<li>Added process ID (PID) to the System module (issue <a href="http://code.google.com/p/phantomjs/issues/detail?id=769">769</a>)
|
|
<li>Added properties to obtain page and frame title (issue <a href="http://code.google.com/p/phantomjs/issues/detail?id=799">799</a>)
|
|
<li>Added page navigation methods (issue <a href="http://code.google.com/p/phantomjs/issues/detail?id=808">808</a>)
|
|
<li>Added a limit for authentication attempts (issue <a href="http://code.google.com/p/phantomjs/issues/detail?id=826">826</a>)
|
|
<li>Added support for modifier keys in keyboard events (issue <a href="http://code.google.com/p/phantomjs/issues/detail?id=835">835</a>)
|
|
<li>Added onFilePicker callback for more generic file upload API (issue <a href="http://code.google.com/p/phantomjs/issues/detail?id=843">843</a>)
|
|
<li>Added the ability to set the page content and location (issue <a href="http://code.google.com/p/phantomjs/issues/detail?id=909">909</a>)
|
|
</ul>
|
|
|
|
<p><strong>Improvements</strong></p>
|
|
|
|
<ul>
|
|
<li>Fixed date parsing in ISO8601 format (issue <a href="http://code.google.com/p/phantomjs/issues/detail?id=187">187</a>, <a href="http://code.google.com/p/phantomjs/issues/detail?id=267">267</a>)
|
|
<li>Fixed window.location (issue <a href="http://code.google.com/p/phantomjs/issues/detail?id=530">530</a>, <a href="http://code.google.com/p/phantomjs/issues/detail?id=632">632</a>)
|
|
<li>Deregistered multiple callback handler (issue <a href="http://code.google.com/p/phantomjs/issues/detail?id=807">807</a>)
|
|
<li>Fixed sending of double-click events (issue <a href="http://code.google.com/p/phantomjs/issues/detail?id=848">848</a>)
|
|
<li>Increases maximum number of redirects (issue <a href="http://code.google.com/p/phantomjs/issues/detail?id=849">849</a>)
|
|
<li>Fixed keycodes sent for lowercase characters (issue <a href="http://code.google.com/p/phantomjs/issues/detail?id=852">852</a>)
|
|
<li>Fixed a regression in table row page break (issue <a href="http://code.google.com/p/phantomjs/issues/detail?id=880">880</a>)
|
|
<li>Completed the CoffeeScript version of the examples (issue <a href="http://code.google.com/p/phantomjs/issues/detail?id=907">907</a>)
|
|
<li>Updated Qt to version 4.8.4 (issue <a href="http://code.google.com/p/phantomjs/issues/detail?id=918">918</a>)
|
|
<li>Fixed potential hang in some example scripts (issue <a href="http://code.google.com/p/phantomjs/issues/detail?id=922">922</a>)
|
|
</ul>
|
|
|
|
<p><strong>Fix in 1.8.1</strong></p>
|
|
|
|
<ul>
|
|
<li>Mac OS X: Fix possible crash when using some TrueType fonts (issue <a href="http://code.google.com/p/phantomjs/issues/detail?id=690">690</a>)
|
|
</ul>
|
|
|
|
<p><strong>Known Issues on Microsoft Windows</strong></p>
|
|
|
|
<ul>
|
|
<li>Very slow network performance. The workaround is to set <a href="https://github.com/ariya/phantomjs/wiki/API-Reference#wiki-command-line-options">proxy type</a> to "<tt>none</tt>" (issue <a href="http://code.google.com/p/phantomjs/issues/detail?id=580">580</a>)
|
|
<li>Some graphics drivers may cause mysterious crash (issue <a href="http://code.google.com/p/phantomjs/issues/detail?id=845">845</a>)
|
|
</ul>
|
|
|
|
<p>Back to <a href="releases.html">all releases</a>.</p>
|
|
|
|
</div>
|
|
</div>
|
|
|
|
<div id="footer">
|
|
<div id="footer-content" class="container_12">
|
|
<p>
|
|
© Copyright 2010-2012 <a href="http://twitter.com/AriyaHidayat">Ariya Hidayat</a> — Website design by <a href="http://svay.com/">Maurice Svay</a>
|
|
</p>
|
|
</div>
|
|
</div>
|
|
</body>
|
|
</html>
|
|
|