cuprite 0.12 → 0.13

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: bac1e4393d6796d34198e45428ea8d443b67136e4805e77f7c7d3f35451cefbb
4
- data.tar.gz: 27edf7157ac47b0a6bbc579e7908aaa0313d91b7f3702417453f76f1230e882d
3
+ metadata.gz: e515ee98354d04170f435ea87fc5d9256a21f2ca7484a83b8078c76478bfeb73
4
+ data.tar.gz: 4a08d6b9957090cad3bb732199a9706bf0aa7e6dfe152cf41b1364d4f11a95d0
5
5
  SHA512:
6
- metadata.gz: a8ed43b593e4a071e449a80ac92925abafff1d9afa2a3934783963a19411deddcc18b1906467d5d355a93ed891ec4aae4b21509031190020d154202ba21904e8
7
- data.tar.gz: ed39a7d445203f93b402fc313caa883449d7e743a6690196ba7f6bed9ee1d8c506f06d4b8ae620c8bc9d1c21c5770458b88564e9e937f7b5583e01a931fece39
6
+ metadata.gz: '049bfdaf42c6bd78fdc40fcd6cc059ef6b38b5b3e0a7e03e4ee871fcb8c072cd5ec6215f5b5640f2e289505d582ffe9c3b9e84f688af9afc4e48616bfa5f7473'
7
+ data.tar.gz: 9b6c78303752248b85c6ca1dc2068dcc57687d94c141e2b10c75a54e9a6a8e767de3a804d98fe788580be0ec36d1230006ec784eb4b675c48752efee61e2a1fd
data/README.md CHANGED
@@ -8,7 +8,7 @@ to the browser by CDP protocol. The design of the driver is as close to
8
8
  [Poltergeist](https://github.com/teampoltergeist/poltergeist) as possible though
9
9
  it's not a goal.
10
10
 
11
- [Cuprite](https://evrone.com/cuprite) designed & supported by [Evrone](https://evrone.com/)
11
+ [Cuprite](https://evrone.com/cuprite) website is designed & supported by [Evrone](https://evrone.com/)
12
12
  What else we build [with Ruby](https://evrone.com/ruby)
13
13
 
14
14
 
@@ -208,3 +208,8 @@ page.driver.browser.url_whitelist = ["http://www.example.com"]
208
208
  If you are experiencing slower run times, consider creating a URL whitelist of
209
209
  domains that are essential or a blacklist of domains that are not essential,
210
210
  such as ad networks or analytics, to your testing environment.
211
+
212
+ ## License
213
+
214
+ The gem is available as open source under the terms of the
215
+ [MIT License](https://opensource.org/licenses/MIT).
@@ -363,6 +363,7 @@ module Capybara::Cuprite
363
363
  def invalid_element_errors
364
364
  [Capybara::Cuprite::ObsoleteNode,
365
365
  Capybara::Cuprite::MouseEventFailed,
366
+ Ferrum::CoordinatesNotFoundError,
366
367
  Ferrum::NoExecutionContextError,
367
368
  Ferrum::NodeNotFoundError]
368
369
  end
@@ -41,7 +41,7 @@ class Cuprite {
41
41
  parents(node) {
42
42
  let nodes = [];
43
43
  let parent = node.parentNode;
44
- while (parent != document) {
44
+ while (parent != document && parent !== null) {
45
45
  nodes.push(parent);
46
46
  parent = parent.parentNode;
47
47
  }
@@ -97,7 +97,7 @@ class Cuprite {
97
97
  path(node) {
98
98
  let nodes = [node];
99
99
  let parent = node.parentNode;
100
- while (parent !== document) {
100
+ while (parent !== document && parent !== null) {
101
101
  nodes.unshift(parent);
102
102
  parent = parent.parentNode;
103
103
  }
@@ -2,6 +2,6 @@
2
2
 
3
3
  module Capybara
4
4
  module Cuprite
5
- VERSION = "0.12"
5
+ VERSION = "0.13"
6
6
  end
7
7
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: cuprite
3
3
  version: !ruby/object:Gem::Version
4
- version: '0.12'
4
+ version: '0.13'
5
5
  platform: ruby
6
6
  authors:
7
7
  - Dmitry Vorotilin
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2021-02-24 00:00:00.000000000 Z
11
+ date: 2021-03-11 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: capybara
@@ -36,14 +36,14 @@ dependencies:
36
36
  requirements:
37
37
  - - "~>"
38
38
  - !ruby/object:Gem::Version
39
- version: 0.10.0
39
+ version: 0.11.0
40
40
  type: :runtime
41
41
  prerelease: false
42
42
  version_requirements: !ruby/object:Gem::Requirement
43
43
  requirements:
44
44
  - - "~>"
45
45
  - !ruby/object:Gem::Version
46
- version: 0.10.0
46
+ version: 0.11.0
47
47
  - !ruby/object:Gem::Dependency
48
48
  name: image_size
49
49
  requirement: !ruby/object:Gem::Requirement
@@ -192,7 +192,11 @@ files:
192
192
  homepage: https://github.com/rubycdp/cuprite
193
193
  licenses:
194
194
  - MIT
195
- metadata: {}
195
+ metadata:
196
+ homepage_uri: https://cuprite.rubycdp.com/
197
+ bug_tracker_uri: https://github.com/rubycdp/cuprite/issues
198
+ documentation_uri: https://github.com/rubycdp/cuprite/blob/master/README.md
199
+ source_code_uri: https://github.com/rubycdp/cuprite
196
200
  post_install_message:
197
201
  rdoc_options: []
198
202
  require_paths: