Poltergeist v1.4.0 Release Notes
-
๐ Features
- 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]
- Added ability to set headers only for the first request (Dmitry Vorotilin) [Issue #337]
- Depend on Cliver for command-line dependency detection.
- Added ability to scroll with
driver.scroll_to left, top
(Jim Lim) - 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]
๐ Bug fixes
- Fix clicks inside
within_frame
not taking into account padding on the frame [Issue #377] - 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]
- ๐ Fixed closing of open pipes after use (driver.quit now performs pipe.close) [Issue #310]
- Fix NoMethodError when using has_css with a count on svg elements
- Fix URI::InvalidURIError raised when setting a cookie after loading a page with a space in the url or when using Capybara::Session#current_path [Issue #349]
- Fix leak of phantomjs processes by adding a GC finalizer to the Capybara::Poltergeist::Client object that creates them [Issue #348]