cuprite 0.10 → 0.11

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 7101647cda6595d4d7644edf51bf61fb4891d2afaaa8eb51e04a1a10f587433f
4
- data.tar.gz: bcfefe534e782ab4083068d9b6b0643183a5be8ea5f7dcd273b3121b8e790ede
3
+ metadata.gz: 8ec561634fc66a075a61f4221aef5276b57e447c0810865fdc6562a41842ce42
4
+ data.tar.gz: af475a5d00fe0f32dc8ddf643bd7bc0cfb80409ae8ec4cb627a976cc9b1b753c
5
5
  SHA512:
6
- metadata.gz: ae72432731e273f9c59df718a31d66fb82678bd07ab45cb717d931704b20847253c7221a6cbda8dcb7468be0042ca74d0d96a3e11c9b6d63fbf2dc1eec8cb8ec
7
- data.tar.gz: 747ff03cc544263579338c4fc389c6b96d39a8634dcaeaf30051713d195119a06c87557fea98e436c9a5748fd980628e8399ff3fba1a82ebaf791a60c4c2a453
6
+ metadata.gz: f460096e3ce6e8613be751bc237d7efde7a3c6a8b63ba54283b677d6f7a6d7c25bb1182bb38dc3762a42e7eb3c8f19ca4678f7d82591c79b6849606e021dd501
7
+ data.tar.gz: 95b4633594b2581bd3e4259b110652668b75362fccca572c43b0020e11e02701f077fed5be558abfa1960955e9697c79961b0408c461020eade8c609acb9e731
data/LICENSE CHANGED
@@ -1,6 +1,6 @@
1
1
  MIT License
2
2
 
3
- Copyright (c) 2018-2019 Machinio
3
+ Copyright (c) 2018-2020 Dmitry Vorotilin
4
4
 
5
5
  Permission is hereby granted, free of charge, to any person obtaining a copy
6
6
  of this software and associated documentation files (the "Software"), to deal
data/README.md CHANGED
@@ -1,6 +1,6 @@
1
1
  # Cuprite - Headless Chrome driver for Capybara
2
2
 
3
- [![Build Status](https://travis-ci.org/rubycdp/cuprite.svg?branch=master)](https://travis-ci.org/rubycdp/cuprite)
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.
@@ -374,6 +374,10 @@ module Capybara::Cuprite
374
374
  browser.refresh
375
375
  end
376
376
 
377
+ def wait_for_reload(*args)
378
+ browser.wait_for_reload(*args)
379
+ end
380
+
377
381
  def accept_modal(type, options = {})
378
382
  case type
379
383
  when :alert, :confirm
@@ -2,6 +2,6 @@
2
2
 
3
3
  module Capybara
4
4
  module Cuprite
5
- VERSION = "0.10"
5
+ VERSION = "0.11"
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.10'
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-04-07 00:00:00.000000000 Z
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.8.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.8.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/machinio/cuprite
192
+ homepage: https://github.com/rubycdp/cuprite
193
193
  licenses:
194
194
  - MIT
195
195
  metadata: {}