watir-screenshot-stitch 0.7.1 → 0.7.2

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 77d9d165765e9f0bd0e189c7af282d535be07a5b24630ff5642ae07440e66654
4
- data.tar.gz: 197c0b0f5df9211f2f1f8f0e8423bf8d7fa774a963c138957837bc82df5b52a5
3
+ metadata.gz: dfbbddd0dffc967022b63c110e2fb5d1d5dc83d086c9c373f8aa3170cf4a23d6
4
+ data.tar.gz: d5973588594133878183bb2cefc6049abee562fb2750c53b98d4543e9b9bbf59
5
5
  SHA512:
6
- metadata.gz: 55a78fe53008cb3e464d5fb947e66c3fd208ad0bee3545007450195a7158e6bc6f079feb02263263ddf7d7b256818145fa1ada4e3334ff3e5f6d7b86199b4472
7
- data.tar.gz: 67bea36811afe3044532f31f58b2750e5c06f03685bfdd2d8effa18d8ff7080b5a27be6546b3643b23f1ef80e79e4072ce1f8d16b902813e6c7193d755f4a5ac
6
+ metadata.gz: fe1e35f01e2c493e0783ee6634ec5eb22fa2a3d1f2e249b5dde63d1468d482e23431e329fb1e34f881cdc1da6ea5e9f7dd892ac56a99eec6e3d43def124f8f71
7
+ data.tar.gz: 7f79de8c0266e00922f1bfc5a8bfe8efcceee76b3079afab353294a3910c1ca8d0f58a85e406cc480bc440a0f1344185e362e4dbf1f472ffc27f48a46c6cbbff
data/README.md CHANGED
@@ -1,21 +1,19 @@
1
1
  # watir-screenshot-stitch
2
2
 
3
3
  watir-screenshot-stitch attempts to compensate for
4
- [Mozilla's decision not to (yet?) expose Firefox's full page screenshot
5
- functionality](https://github.com/mozilla/geckodriver/issues/570)
6
- via geckodriver.
4
+ the lack of full page screenshot functionality
5
+ in Selenium Webdriver.
7
6
 
8
- The canonical screenshot stitching is done by paging down a given URL
9
- by the size of the viewport, capturing the entire page in the process,
10
- up to the maximum height — see below.
7
+ It does so in three ways:
11
8
 
12
- Alternatively, it also bundles the
9
+ * Directly employing geckodriver's new full page screenshot
10
+ functionality (only on Firefox).
11
+ * Screenshot stitching, paging down a given URL by the size
12
+ of the viewport, capturing screenshots and adjoining them.
13
+ * Employing a bundled
13
14
  [html2canvas](https://github.com/niklasvh/html2canvas)
14
- script and applies it to the page. This method of screenshotting
15
- is less likely to have issues with stitching the images together,
16
- and running out of memory but has limitations with certain element
17
- types not being properly displayed. See their documentation for
18
- more information.
15
+ script against the page to generate a png from a `canvas`
16
+ element.
19
17
 
20
18
  ## Installation
21
19
 
@@ -110,7 +108,7 @@ will return a base64 encoded image blob of the given site.
110
108
 
111
109
  In can be saved as a PNG by doing:
112
110
  ```ruby
113
- png = b.screenshot.base64_canvas
111
+ png = b.screenshot.base64_geckodriver
114
112
  path = "/my/path/image.png"
115
113
  File.open(path, 'wb') { |f| f.write(Base64.decode64(png)) }
116
114
  ```
@@ -164,6 +162,12 @@ path = "/my/path/image.png"
164
162
  File.open(path, 'wb') { |f| f.write(Base64.decode64(png)) }
165
163
  ```
166
164
 
165
+ This method of screenshotting
166
+ is less likely to have issues with stitching the images together,
167
+ and running out of memory but has limitations with certain element
168
+ types not being properly displayed. See their documentation for
169
+ more information.
170
+
167
171
  ### Doubling resolution calculations, including macOS Retina
168
172
 
169
173
  watir-screenshot-stitch uses CSS selectors to determine whether a
@@ -182,9 +186,9 @@ A hash of key value pairs.
182
186
  Should refer to a positive Integer greater than the viewport height.
183
187
 
184
188
  ### Maximum height
185
- ImageMagick has a maximum pixel dimension of 65500, and all screenshots
186
- will be capped to a maximum height of 65500 regardless of any options
187
- to avoid errors.
189
+ ImageMagick has a maximum pixel dimension of 65500, and all stitched
190
+ screenshots will be capped to a maximum height of 65500 regardless
191
+ of any options to avoid errors.
188
192
 
189
193
  ## Development
190
194
 
@@ -1,4 +1,4 @@
1
1
  module WatirScreenshotStitch
2
2
  NAME = 'watir-screenshot-stitch'
3
- VERSION = "0.7.1"
3
+ VERSION = "0.7.2"
4
4
  end
@@ -30,7 +30,7 @@ Gem::Specification.new do |spec|
30
30
  spec.require_paths = ["lib"]
31
31
 
32
32
  spec.add_development_dependency "bundler", "~> 1.16"
33
- spec.add_development_dependency "rake", "~> 10.0"
33
+ spec.add_development_dependency "rake", ">= 12.3.3"
34
34
  spec.add_development_dependency "rspec", "~> 3.0"
35
35
  spec.add_development_dependency "chunky_png", "~> 1.3"
36
36
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: watir-screenshot-stitch
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.7.1
4
+ version: 0.7.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Sam Nissen
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: exe
11
11
  cert_chain: []
12
- date: 2019-03-15 00:00:00.000000000 Z
12
+ date: 2020-03-09 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: bundler
@@ -29,16 +29,16 @@ dependencies:
29
29
  name: rake
30
30
  requirement: !ruby/object:Gem::Requirement
31
31
  requirements:
32
- - - "~>"
32
+ - - ">="
33
33
  - !ruby/object:Gem::Version
34
- version: '10.0'
34
+ version: 12.3.3
35
35
  type: :development
36
36
  prerelease: false
37
37
  version_requirements: !ruby/object:Gem::Requirement
38
38
  requirements:
39
- - - "~>"
39
+ - - ">="
40
40
  - !ruby/object:Gem::Version
41
- version: '10.0'
41
+ version: 12.3.3
42
42
  - !ruby/object:Gem::Dependency
43
43
  name: rspec
44
44
  requirement: !ruby/object:Gem::Requirement
@@ -180,8 +180,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
180
180
  - !ruby/object:Gem::Version
181
181
  version: '0'
182
182
  requirements: []
183
- rubyforge_project:
184
- rubygems_version: 2.7.7
183
+ rubygems_version: 3.0.6
185
184
  signing_key:
186
185
  specification_version: 4
187
186
  summary: Extends Watir to take stitched-together screenshots of full web pages.