cuprite 0.20 → 0.20.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/lib/capybara/cuprite/node.rb +2 -2
- data/lib/capybara/cuprite/version.rb +1 -1
- metadata +3 -6
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 1f72e52a6ee93f19ea1f176225b703749d16032699bb57143239548aafe287f9
|
|
4
|
+
data.tar.gz: fc0bd1e487768bab6fa7a14d0ca509367da7fb7291e73a89bf82cc139cbc6635
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 6cadf38dc0c08cf0cd4df2a3739c2eac99e36dd504decbd7c1dba1dfdb507e63e73797c55cb3a83e500839a8ebb1b1bec200a68db7eb4e2a5cc043e372d48555
|
|
7
|
+
data.tar.gz: d8279180ab08dc563cbb201ee4e801865e424331c0a44de12148a2bbc1d25045e81b4b4537a9828b33fadc6ff517e3b57ba5ae41067478882ee5d8857fc13f0f
|
|
@@ -340,7 +340,7 @@ module Capybara
|
|
|
340
340
|
else
|
|
341
341
|
raise ArgumentError, "Invalid scroll_to location: #{location}"
|
|
342
342
|
end
|
|
343
|
-
element.node.evaluate("this.scrollIntoView(#{scroll_opts})")
|
|
343
|
+
element.node.evaluate("await this.scrollIntoView(#{scroll_opts})")
|
|
344
344
|
end
|
|
345
345
|
|
|
346
346
|
def scroll_to_location(location)
|
|
@@ -348,7 +348,7 @@ module Capybara
|
|
|
348
348
|
bottom: "this.scrollHeight",
|
|
349
349
|
center: "(this.scrollHeight - this.clientHeight) / 2" }
|
|
350
350
|
|
|
351
|
-
node.evaluate("this.scrollTo(0, #{height[location]})")
|
|
351
|
+
node.evaluate("await this.scrollTo(0, #{height[location]})")
|
|
352
352
|
end
|
|
353
353
|
|
|
354
354
|
def scroll_to_coords(x, y)
|
metadata
CHANGED
|
@@ -1,14 +1,13 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: cuprite
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version:
|
|
4
|
+
version: 0.20.1
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Dmitry Vorotilin
|
|
8
|
-
autorequire:
|
|
9
8
|
bindir: bin
|
|
10
9
|
cert_chain: []
|
|
11
|
-
date:
|
|
10
|
+
date: 1980-01-02 00:00:00.000000000 Z
|
|
12
11
|
dependencies:
|
|
13
12
|
- !ruby/object:Gem::Dependency
|
|
14
13
|
name: capybara
|
|
@@ -78,7 +77,6 @@ metadata:
|
|
|
78
77
|
documentation_uri: https://github.com/rubycdp/cuprite/blob/main/README.md
|
|
79
78
|
source_code_uri: https://github.com/rubycdp/cuprite
|
|
80
79
|
rubygems_mfa_required: 'true'
|
|
81
|
-
post_install_message:
|
|
82
80
|
rdoc_options: []
|
|
83
81
|
require_paths:
|
|
84
82
|
- lib
|
|
@@ -93,8 +91,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
93
91
|
- !ruby/object:Gem::Version
|
|
94
92
|
version: '0'
|
|
95
93
|
requirements: []
|
|
96
|
-
rubygems_version:
|
|
97
|
-
signing_key:
|
|
94
|
+
rubygems_version: 4.0.20
|
|
98
95
|
specification_version: 4
|
|
99
96
|
summary: Headless Chrome driver for Capybara
|
|
100
97
|
test_files: []
|