From 24e154a14719a4490437beb193388a242b518d43 Mon Sep 17 00:00:00 2001 From: Dmitry Vorotilin Date: Fri, 11 Oct 2013 19:10:48 +0400 Subject: [PATCH] Add missed change log and readme entries [ci skip] --- CHANGELOG.md | 6 +++++- README.md | 7 +++++-- 2 files changed, 10 insertions(+), 3 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index a05de4b..54b16c4 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -5,7 +5,11 @@ * Can support Basic HTTP authentication #### Bug fixes #### -* Use `Capybara::Helpers.normalize_whitespace` in filter_text to strip unicode whitespace (Wataru Miyaguni) +* 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] ### 1.4.1 ### diff --git a/README.md b/README.md index cab6dc8..10563b9 100644 --- a/README.md +++ b/README.md @@ -114,9 +114,12 @@ There are some additional features: You can grab screenshots of the page at any point by calling `save_screenshot('/path/to/file.png')` (this works the same way as the PhantomJS render feature, so you can specify other extensions like `.pdf`, `.gif`, etc.) +Just in case you render pdf it's might be worth to set `driver.paper_size=` with +settings provided by PhantomJS in [here](https://github.com/ariya/phantomjs/wiki/API-Reference-WebPage#wiki-webpage-paperSize) -By default, only the viewport will be rendered (the part of the page that is in view). To render -the entire page, use `save_screenshot('/path/to/file.png', :full => true)`. +By default, only the viewport will be rendered (the part of the page that is in +view). To render the entire page, use `save_screenshot('/path/to/file.png', +:full => true)`. You also have an ability to render selected element. Pass option `selector` with any valid element selector to make a screenshot bounded by that element