2013-08-14 00:55:21 +04:00
|
|
|
### Next release ###
|
|
|
|
|
2013-12-09 15:36:08 +04:00
|
|
|
#### Features ####
|
|
|
|
|
2013-12-20 09:31:33 -05:00
|
|
|
* Added ability to set zoom_factor (Dmytro Budnyk)
|
|
|
|
* Write JSON to the logger, rather than Ruby [Issue #430]
|
2014-01-30 10:25:26 +11:00
|
|
|
* Added ability to access all of a nodes attributes (Jon Rowe)
|
2014-09-03 18:59:40 +04:00
|
|
|
* Capybara 2.3 window support (Dmitry Vorotilin)
|
2014-07-08 17:15:43 +09:00
|
|
|
* Added ability to manipulate modals (`window.alert()`, `window.confirm()`
|
|
|
|
and `window.prompt()`) that has been implemented from Capybara 2.4
|
|
|
|
(Wataru MIYAGUNI)
|
2013-12-15 09:28:07 +02:00
|
|
|
|
2013-12-09 15:36:08 +04:00
|
|
|
#### Bug fixes ####
|
|
|
|
|
2013-12-18 14:39:23 -06:00
|
|
|
* Fix `set` appending to `contenteditable` instead of replacing its text
|
2013-12-19 13:23:55 -06:00
|
|
|
(Pedro Carriço and Erik Ostrom) [Issue #432]
|
2014-04-03 11:27:55 -04:00
|
|
|
* Raise exception on PhantomJS "status: fail" result (i.e DNS issue) instead
|
|
|
|
of returning minimal HTML body (Dean Holdren) [Issue #473]
|
2014-02-11 13:08:45 -08:00
|
|
|
* Render full window size when document has no height (Kevin McConnell)
|
2014-05-20 13:54:36 +04:00
|
|
|
* Don't alter focus with send_keys if we're already in the target element
|
|
|
|
(Adam Prescott) [Issue #493]
|
2014-08-27 12:11:59 +04:00
|
|
|
* Close dup'ed fd after using (Dmitry Vorotilin) [Issue #446, #529, #528]
|
2014-09-20 12:40:29 +04:00
|
|
|
* Clean up localStorage between tests (Dmitry Vorotilin) [Issue #525]
|
2014-08-27 12:11:59 +04:00
|
|
|
|
|
|
|
### 1.5.1 ###
|
|
|
|
|
|
|
|
#### Bug fixes ####
|
|
|
|
|
2014-05-28 11:13:43 -07:00
|
|
|
* Ensure process exits with correct status code and $! is propagated.
|
|
|
|
(Micah Geisel) [Issue #497]
|
2013-12-18 14:39:23 -06:00
|
|
|
|
2013-12-09 15:36:08 +04:00
|
|
|
### 1.5.0 ###
|
|
|
|
|
2013-08-14 00:55:21 +04:00
|
|
|
#### Features ####
|
2013-12-20 09:31:33 -05:00
|
|
|
|
2013-10-10 14:00:28 +11:00
|
|
|
* Added ability to clear network traffic (Vick Vu)
|
2013-08-30 14:47:43 -04:00
|
|
|
* Added ability to set paper_size via a driver setter (Philippe Lehoux)
|
2013-10-10 17:13:37 +04:00
|
|
|
* Can support Basic HTTP authentication
|
2013-12-01 21:41:41 +04:00
|
|
|
* Added basic implementation of `send_keys`
|
2013-12-09 15:08:59 +04:00
|
|
|
* Added ability to go_back, go_forward, set the contents of a contenteditable
|
|
|
|
element and Capybara 2.2 support (Pedro Carriço)
|
2013-08-14 00:55:21 +04:00
|
|
|
|
2013-09-05 18:58:27 +04:00
|
|
|
#### Bug fixes ####
|
2013-12-20 09:31:33 -05:00
|
|
|
|
2013-10-11 19:10:48 +04:00
|
|
|
* Use `Capybara::Helpers.normalize_whitespace` in filter_text to strip unicode
|
|
|
|
whitespace (Wataru Miyaguni)
|
|
|
|
* Fix missed interpolation on deprecated error classes
|
|
|
|
* Raise InvalidSelector when wrong xpath selector was used [Issue #395]
|
|
|
|
* Fix `driver.quit` before visiting any url with `IOError` error [Issue #398]
|
2013-10-23 01:39:36 +04:00
|
|
|
* Fix JRuby support when PhantomJS quits first [Issue #382, #404]
|
2013-11-25 12:18:56 +04:00
|
|
|
* Fix ability to pass element to `within_frame` [Issue #414]
|
2013-12-04 10:42:11 -08:00
|
|
|
* Fix setting negatives in number inputs (John Hawthorn)
|
2013-09-05 18:58:27 +04:00
|
|
|
|
|
|
|
### 1.4.1 ###
|
|
|
|
|
2013-09-02 18:51:40 +04:00
|
|
|
#### Bug fixes ####
|
2013-12-20 09:31:33 -05:00
|
|
|
|
2013-09-02 22:45:25 +04:00
|
|
|
* Kill thread first off and then close IO [Issue #385]
|
2013-09-02 18:51:40 +04:00
|
|
|
|
|
|
|
### 1.4.0 ###
|
|
|
|
|
|
|
|
#### Features ####
|
|
|
|
|
2013-08-14 00:55:21 +04:00
|
|
|
* Can set cookies for given domain
|
|
|
|
* Can get open window names with window_handles [Issue #178]
|
|
|
|
* Added ability to read and append headers (Dmitry Vorotilin) [Issue #187]
|
2013-12-09 15:08:59 +04:00
|
|
|
* Added ability to set headers only for the first request
|
|
|
|
(Dmitry Vorotilin) [Issue #337]
|
2013-08-14 00:55:21 +04:00
|
|
|
* Depend on Cliver for command-line dependency detection.
|
2013-08-01 14:07:37 -04:00
|
|
|
* Added ability to scroll with `driver.scroll_to left, top` (Jim Lim)
|
2013-12-09 15:08:59 +04:00
|
|
|
* Added ability to capture an element with `driver.render selector: '#id'`
|
|
|
|
(Jim Lim)
|
|
|
|
* Added ability to render base64-encoded image with `driver.render_base64`
|
|
|
|
(Jim Lim) [Issue #189]
|
2013-08-14 00:55:21 +04:00
|
|
|
|
|
|
|
#### Bug fixes ####
|
|
|
|
|
2013-08-20 16:37:02 -07:00
|
|
|
* Fix clicks inside `within_frame` not taking into account padding on the
|
|
|
|
frame [Issue #377]
|
2013-08-14 00:55:21 +04:00
|
|
|
* Fix `within_window` finding window after close/open
|
|
|
|
(Ryan Schlesinger) [Issue #312]
|
|
|
|
* Fix "wrong exec option symbol: pgroup" error on windows (Andrew Meyer)
|
|
|
|
[Issue #314]
|
2013-12-09 15:08:59 +04:00
|
|
|
* Fixed closing of open pipes after use (driver.quit now performs pipe.close)
|
|
|
|
[Issue #310]
|
2013-08-14 00:55:21 +04:00
|
|
|
* Fix NoMethodError when using has_css with a count on svg elements
|
|
|
|
* Fix URI::InvalidURIError raised when setting a cookie after loading a
|
2013-12-09 15:08:59 +04:00
|
|
|
page with a space in the url or when using Capybara::Session#current_path
|
|
|
|
[Issue #349]
|
2013-08-14 00:55:21 +04:00
|
|
|
* Fix leak of phantomjs processes by adding a GC finalizer to the
|
|
|
|
Capybara::Poltergeist::Client object that creates them [Issue #348]
|
|
|
|
|
|
|
|
### 1.3.0 ###
|
|
|
|
|
|
|
|
#### Features ####
|
|
|
|
|
|
|
|
* Add support for PhantomJS 1.7's `cookiesEnabled` API
|
|
|
|
(Micah Frost)
|
|
|
|
|
|
|
|
#### Bug fixes ####
|
|
|
|
|
|
|
|
* Fix logging of mouse event co-ordinates
|
|
|
|
* Invalid selectors throw a useful error message
|
|
|
|
* Tie us to the 0.4 version of faye-websocket since the 0.5 version
|
|
|
|
contains breaking changes.
|
|
|
|
|
|
|
|
### 1.2.0 ###
|
|
|
|
|
|
|
|
#### Features ####
|
|
|
|
|
|
|
|
* Support for Windows hosted Poltergeist (Aaron Tull).
|
|
|
|
* Capybara 2.1 support
|
|
|
|
|
|
|
|
#### Bug fixes ####
|
|
|
|
|
|
|
|
* Reverted the "native" implementation for filling in form fields,
|
|
|
|
which was introduced in 1.0. This implementation caused various bugs
|
|
|
|
and in general doesn't seem to be worth the trouble at the moment.
|
|
|
|
It can be reconsidered in the future when PhantomJS has upgraded its
|
|
|
|
WebKit version. [Issue #176, #223]
|
|
|
|
* Run phantomjs in a new process group so ^C doesn't trigger a
|
|
|
|
DeadClient error [Issue #252]
|
|
|
|
|
|
|
|
### 1.1.2 ###
|
|
|
|
|
2013-12-20 09:31:33 -05:00
|
|
|
#### Bug fixes ####
|
2013-08-14 00:55:21 +04:00
|
|
|
|
|
|
|
* Tie to faye-websocket 0.4 as 0.5 introduces incompatibilities.
|
|
|
|
|
|
|
|
### 1.1.1 ###
|
|
|
|
|
|
|
|
#### Features ####
|
|
|
|
|
|
|
|
* Changed Capybara dependency to `~> 2.0.1` because Poltergeist 1.1 is
|
|
|
|
not compatible with Capybara 2.1.
|
|
|
|
|
|
|
|
### 1.1.0 ###
|
|
|
|
|
|
|
|
#### Features ####
|
|
|
|
|
|
|
|
* Add support for custom phantomjs loggers via `:phantomjs_logger` option.
|
|
|
|
(Gabe Bell)
|
|
|
|
* Add `page.driver.click(x, y)` to click precise coordinates.
|
|
|
|
(Micah Geisel)
|
|
|
|
* Add Capybara 2.0 support. Capybara 1.1 and Ruby 1.8 are *no
|
|
|
|
longer supported*. (Mauro Asprea) [Issue #163]
|
|
|
|
* Add `node.base.double_click` to double click the node.
|
|
|
|
(Andy Shen)
|
|
|
|
* The `:debug` option now causes the PhantomJS portion of Poltergeist
|
|
|
|
to output some additional debug info, which may be useful in
|
|
|
|
figuring out timeout errors.
|
|
|
|
* Add the ability to extend the phantomjs environment via browser
|
|
|
|
options. e.g.
|
2013-12-09 15:08:59 +04:00
|
|
|
`Capybara::Poltergeist::Driver.new(app, :extensions => ['file.js', 'another.js'])`
|
2013-08-14 00:55:21 +04:00
|
|
|
(Jon Rowe)
|
|
|
|
|
|
|
|
#### Bug fixes ####
|
|
|
|
|
|
|
|
* Fix timing issue when using `within_frame` that could cause errors.
|
|
|
|
[Issue #183, #211] (@errm, @motemen)
|
|
|
|
* Fix bug with `within_frame` not properly switching the context back
|
|
|
|
after the block has executed. [Issue #242]
|
|
|
|
* Fix calculation of click position when clicking within a frame.
|
|
|
|
[Issue #222, #225]
|
|
|
|
* Fix error raising when calling `expires` if not set on cookie.
|
|
|
|
[Issue #203] (@arnvald)
|
|
|
|
* Fix the `:js_errors` option. Previously errors were not being
|
|
|
|
reported, but would still cause commands to fail. [Issue #229]
|
|
|
|
* Fix incorrect time zone handling when setting cookie expiry time
|
|
|
|
[Issue #228]
|
|
|
|
* Send SIGKILL to PhantomJS if it doesn't exit within 2 seconds
|
|
|
|
[Issue #196]
|
|
|
|
* Provide a more informative message for the `ObsoleteNode` error.
|
|
|
|
[Issue #192]
|
|
|
|
* Fix `ObsoleteNode` error when using `attach_file` with the `jQuery
|
|
|
|
File Upload` plugin. [Issue #115]
|
|
|
|
* Ensure that a `String` is passed over-the-wire to PhantomJS for
|
|
|
|
file input paths, allowing `attach_file` to be called with arbitry
|
|
|
|
objects such as a Pathname. (@mjtko) [Issue #215]
|
|
|
|
* Cookies can now be set before the first request. [Issue #193]
|
|
|
|
|
|
|
|
### 1.0.3 ###
|
|
|
|
|
|
|
|
#### Bug fixes ####
|
|
|
|
|
|
|
|
* Tied to faye-websocket 0.4, as 0.5 introduces incompatibilities.
|
|
|
|
|
|
|
|
### 1.0.2 ###
|
|
|
|
|
|
|
|
#### Bug fixes ####
|
|
|
|
|
|
|
|
* Clearing the value before setting a new value by sending a backspace.
|
|
|
|
This fixes the issue that you can't set an empty value. [Issue #184]
|
|
|
|
|
|
|
|
### 1.0.1 ###
|
|
|
|
|
|
|
|
#### Bug fixes ####
|
|
|
|
|
|
|
|
* Don't use a fixed port number by default; find an available port.
|
|
|
|
The port can still be configured to a fixed value using the `:port`
|
|
|
|
option. The reverts the default behaviour to how it was before the
|
|
|
|
1.0 release. [Issue #174]
|
|
|
|
|
|
|
|
### 1.0 ###
|
|
|
|
|
|
|
|
#### Features ####
|
|
|
|
|
|
|
|
* Click co-ordinates are shown in the debug log. You can use this in
|
|
|
|
combination with `page.driver.render` to work out where clicks are
|
|
|
|
actually happening if you are having trouble.
|
|
|
|
* Added `:port` configuration option and made the default port 44678
|
|
|
|
rather than a random available port.
|
|
|
|
* Support for Capybara's `page.response_headers` API to retrieve the
|
|
|
|
headers of the last page load.
|
|
|
|
* Support for cookie manipulation. [Issue #12]
|
|
|
|
* Frame switching support now uses native PhantomJS APIs. (This might
|
|
|
|
make it work better, but in general it's a badly tested area both in
|
|
|
|
Capybara and Poltergeist.)
|
|
|
|
* Support for the Capybara window switching API (`page.within_window`).
|
|
|
|
|
|
|
|
#### Bug fixes ####
|
|
|
|
|
|
|
|
* Prevent `TypeError: 'undefined' is not an object (evaluating
|
|
|
|
'rect.top')` error when clicking an element with `display: none`.
|
|
|
|
The click will fail, but an obsolete node error will be raised, meaning
|
|
|
|
that Capybara's retry mechanisms will kick in. [Issue #130]
|
|
|
|
* Mouse over the element we will click, before clicking it. This
|
|
|
|
enables `:hover` effects etc to trigger before the click happens,
|
|
|
|
which can affect the click in some cases. [Issue #120]
|
|
|
|
* Don't blow up when `evaluate_script` is called with a cyclic
|
|
|
|
structure.
|
|
|
|
* Fix the text method for title elements, so it doesn't return an
|
|
|
|
empty string.
|
|
|
|
* Fixed problem with cookies not being clearer between tests on
|
|
|
|
PhantomJS 1.7
|
|
|
|
* Fixed Javascript errors during page load causes TimeoutErrors.
|
|
|
|
[Issue #124]
|
|
|
|
* Ensure the User-Agent header can be set successfully. (Klaus Hartl)
|
|
|
|
[Issue #127]
|
|
|
|
* Use `el.innerText` for `Node#text`. This ensures that e.g. `<br>` is
|
|
|
|
returned as a space. It also simplifies the method. [Issue #139]
|
|
|
|
* Fix status code support when a response redirects to another URL.
|
|
|
|
This was previously tested to ensure it would return the status code
|
|
|
|
of the redirected URL, but the test was falsely broken and the
|
|
|
|
implementation was also broken.
|
|
|
|
* Fixed visiting URLs where only a hash change occurs (no HTTP
|
|
|
|
request). [Issue #79]
|
|
|
|
* Setting `page.driver.headers` now applies the headers to all
|
|
|
|
requests, not just calls to `visit`. (So XHR, asset requests, etc
|
|
|
|
will all receive the headers.) [Issue #149]
|
|
|
|
|
|
|
|
### 0.7 ###
|
|
|
|
|
|
|
|
#### Features ####
|
|
|
|
|
|
|
|
* Added an option `:js_errors`, allowing poltergeist to continue
|
|
|
|
running after JS errors. (John Griffin & Tom Stuart) [Issue #62] [Issue #69]
|
|
|
|
* Added an option `:window_size`, allowing users to specify
|
|
|
|
dimensions to which the browser window will be resized.
|
|
|
|
(Tom Stuart) [Issue #53]
|
|
|
|
* Capybara 1.0 is no longer supported. Capybara ~> 1.1 is required.
|
|
|
|
* Added ability to set arbitrary http request headers
|
|
|
|
* Inspect network traffic on the page via
|
|
|
|
`page.driver.network_traffic` (Doug McInnes) [Issue #77]
|
|
|
|
* Added an option `:phantomjs_options`, allowing users to specify
|
|
|
|
additional command-line options passed to phantomjs executable.
|
|
|
|
(wynst) [Issue #97]
|
|
|
|
* Scroll element into viewport if needed on click (Gabriel Sobrinho)
|
|
|
|
[Issue #83]
|
|
|
|
* Added status code support. (Dmitriy Nesteryuk and Jon Leighton) [Issue #37]
|
|
|
|
|
2013-12-20 09:31:33 -05:00
|
|
|
#### Bug fixes ####
|
2013-08-14 00:55:21 +04:00
|
|
|
|
|
|
|
* Fix issue with `ClickFailed` exception happening with a negative
|
|
|
|
co-ordinate (which should be impossible). (Jon Leighton, Gabriel
|
|
|
|
Sobrinho, Tom Stuart) [Issue #60]
|
|
|
|
* Fix issue with `undefined method map for "[]":String`, which
|
|
|
|
happened when dealing with pages that include JS rewriting
|
|
|
|
Array.prototype.toJSON. (Tom Stuart) [Issue #63]
|
|
|
|
|
|
|
|
### 0.6 ###
|
|
|
|
|
|
|
|
#### Features ####
|
|
|
|
|
|
|
|
* Updated to PhantomJS 1.5.0, giving us proper support for reporting
|
|
|
|
Javascript exception backtraces.
|
|
|
|
|
|
|
|
### 0.5 ###
|
|
|
|
|
|
|
|
#### Features ####
|
|
|
|
|
|
|
|
* Detect if clicking an element will fail. If the click will actually
|
|
|
|
hit another element (because that element is in front of the one we
|
|
|
|
want to click), the user will now see an exception explaining what
|
|
|
|
happened and which element would actually be targeted by the click. This
|
|
|
|
should aid debugging. [Issue #25]
|
|
|
|
* Click elements at their middle position rather than the top-left.
|
|
|
|
This is presumed to be more likely to succeed because the top-left
|
|
|
|
may be obscured by overlapping elements, negative margins, etc. [Issue #26]
|
|
|
|
* Add experimental support for using the remote WebKit web inspector.
|
|
|
|
This will only work with PhantomJS 1.5, which is not yet released,
|
|
|
|
so it won't be officially supported by Poltergeist until 1.5 is
|
|
|
|
released. [Issue #31]
|
|
|
|
* Add `page.driver.quit` method. If you spawn additional Capybara
|
|
|
|
sessions, you might want to use this to reap the child phantomjs
|
|
|
|
process. [Issue #24]
|
|
|
|
* Errors produced by Javascript on the page will now generate an
|
|
|
|
exception within Ruby. [Issue #27]
|
|
|
|
* JRuby support. [Issue #20]
|
|
|
|
|
|
|
|
#### Bug fixes ####
|
|
|
|
|
2013-12-09 15:08:59 +04:00
|
|
|
* Fix bug where we could end up interacting with an obsolete element.
|
|
|
|
[Issue #30]
|
2013-08-14 00:55:21 +04:00
|
|
|
* Raise an suitable error if PhantomJS returns a non-zero exit status.
|
|
|
|
Previously a version error would be raised, indicating that the
|
2013-12-09 15:08:59 +04:00
|
|
|
PhantomJS version was too old when in fact it did not start at all.
|
|
|
|
[Issue #23]
|
2013-08-14 00:55:21 +04:00
|
|
|
* Ensure the `:timeout` option is actually used. [Issue #36]
|
|
|
|
* Nodes need to know which page they are associated with. Before this,
|
|
|
|
if Javascript caused a new page to load, existing node references
|
|
|
|
would be wrong, but wouldn't raise an ObsoleteNode error. [Issue #39]
|
|
|
|
* In some circumstances, we could end up missing an inline element
|
|
|
|
when attempting to click it. This is due to the use of
|
|
|
|
`getBoundingClientRect()`. We're now using `getClientRects()` to
|
|
|
|
address this.
|
|
|
|
|
|
|
|
### 0.4 ###
|
|
|
|
|
|
|
|
* Element click position is now calculated using the native
|
|
|
|
`getBoundingClientRect()` method, which will be faster and less
|
|
|
|
buggy.
|
|
|
|
* Handle `window.confirm()`. Always returns true, which is the same
|
|
|
|
as capybara-webkit. [Issue #10]
|
|
|
|
* Handle `window.prompt()`. Returns the default value, if present, or
|
|
|
|
null.
|
|
|
|
* Fix bug with page Javascript page loading causing problems. [Issue #19]
|
|
|
|
|
|
|
|
### 0.3 ###
|
|
|
|
|
|
|
|
* There was a bad bug to do with clicking elements in a page where the
|
|
|
|
page is smaller than the window. The incorrect position would be
|
|
|
|
calculated, and so the click would happen in the wrong place. This is
|
|
|
|
fixed. [Issue #8]
|
|
|
|
* Poltergeist didn't work in conjunction with the Thin web server,
|
|
|
|
because that server uses Event Machine, and Poltergeist was assuming
|
|
|
|
that it was the only thing in the process using EventMachine.
|
|
|
|
|
|
|
|
To solve this, EventMachine usage has been completely removed, which
|
|
|
|
has the welcome side-effect of being more efficient because we
|
|
|
|
no longer have the overhead of running a mostly-idle event loop.
|
|
|
|
|
|
|
|
[Issue #6]
|
|
|
|
* Added the `:timeout` option to configure the timeout when talking to
|
|
|
|
PhantomJS.
|
|
|
|
|
|
|
|
### 0.2 ###
|
|
|
|
|
|
|
|
* First version considered 'ready', hopefully fewer problems.
|
|
|
|
|
|
|
|
### 0.1 ###
|
|
|
|
|
|
|
|
* First version, various problems.
|