cuprite 0.10 → 0.11
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/LICENSE +1 -1
- data/README.md +9 -25
- data/lib/capybara/cuprite/driver.rb +4 -0
- data/lib/capybara/cuprite/version.rb +1 -1
- metadata +5 -5
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 8ec561634fc66a075a61f4221aef5276b57e447c0810865fdc6562a41842ce42
|
4
|
+
data.tar.gz: af475a5d00fe0f32dc8ddf643bd7bc0cfb80409ae8ec4cb627a976cc9b1b753c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f460096e3ce6e8613be751bc237d7efde7a3c6a8b63ba54283b677d6f7a6d7c25bb1182bb38dc3762a42e7eb3c8f19ca4678f7d82591c79b6849606e021dd501
|
7
|
+
data.tar.gz: 95b4633594b2581bd3e4259b110652668b75362fccca572c43b0020e11e02701f077fed5be558abfa1960955e9697c79961b0408c461020eade8c609acb9e731
|
data/LICENSE
CHANGED
data/README.md
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
# Cuprite - Headless Chrome driver for Capybara
|
2
2
|
|
3
|
-
[![
|
3
|
+
[![CircleCI](https://circleci.com/gh/rubycdp/cuprite.svg?style=shield)](https://circleci.com/gh/rubycdp/cuprite)
|
4
4
|
|
5
5
|
Cuprite is a pure Ruby driver (read as _no_ Selenium/WebDriver/ChromeDriver
|
6
6
|
dependency) for [Capybara](https://github.com/teamcapybara/capybara). It allows
|
@@ -153,6 +153,14 @@ Please note that network traffic is not cleared when you visit new page. You can
|
|
153
153
|
manually clear the network traffic by calling `page.driver.clear_network_traffic`
|
154
154
|
or `page.driver.reset`
|
155
155
|
|
156
|
+
* `page.driver.wait_for_reload` unlike `wait_for_network_idle` will wait until
|
157
|
+
the whole page is reloaded or raise a timeout error. It's useful when you know
|
158
|
+
that for example after clicking autocomplete suggestion you expect page to be
|
159
|
+
reloaded, you have a few choices - put sleep or wait for network idle, but both
|
160
|
+
are bad. Sleep makes you wait longer or less than needed, network idle can
|
161
|
+
return earlier even before the whole page is started to reload. Here's the
|
162
|
+
rescue.
|
163
|
+
|
156
164
|
|
157
165
|
## Manipulating cookies
|
158
166
|
|
@@ -202,27 +210,3 @@ page.driver.browser.url_whitelist = ["http://www.example.com"]
|
|
202
210
|
If you are experiencing slower run times, consider creating a URL whitelist of
|
203
211
|
domains that are essential or a blacklist of domains that are not essential,
|
204
212
|
such as ad networks or analytics, to your testing environment.
|
205
|
-
|
206
|
-
|
207
|
-
## License
|
208
|
-
|
209
|
-
Copyright 2018-2020 Machinio
|
210
|
-
|
211
|
-
Permission is hereby granted, free of charge, to any person obtaining
|
212
|
-
a copy of this software and associated documentation files (the
|
213
|
-
"Software"), to deal in the Software without restriction, including
|
214
|
-
without limitation the rights to use, copy, modify, merge, publish,
|
215
|
-
distribute, sublicense, and/or sell copies of the Software, and to
|
216
|
-
permit persons to whom the Software is furnished to do so, subject to
|
217
|
-
the following conditions:
|
218
|
-
|
219
|
-
The above copyright notice and this permission notice shall be
|
220
|
-
included in all copies or substantial portions of the Software.
|
221
|
-
|
222
|
-
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
|
223
|
-
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
224
|
-
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
|
225
|
-
NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
|
226
|
-
LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
|
227
|
-
OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
|
228
|
-
WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
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.
|
4
|
+
version: '0.11'
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Dmitry Vorotilin
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2020-
|
11
|
+
date: 2020-07-29 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.
|
39
|
+
version: 0.9.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.
|
46
|
+
version: 0.9.0
|
47
47
|
- !ruby/object:Gem::Dependency
|
48
48
|
name: image_size
|
49
49
|
requirement: !ruby/object:Gem::Requirement
|
@@ -189,7 +189,7 @@ files:
|
|
189
189
|
- lib/capybara/cuprite/node.rb
|
190
190
|
- lib/capybara/cuprite/page.rb
|
191
191
|
- lib/capybara/cuprite/version.rb
|
192
|
-
homepage: https://github.com/
|
192
|
+
homepage: https://github.com/rubycdp/cuprite
|
193
193
|
licenses:
|
194
194
|
- MIT
|
195
195
|
metadata: {}
|