druid-ts 1.2.1 → 1.2.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
  SHA1:
3
- metadata.gz: d2dec581163c0013714c91706f42d9cb98b57528
4
- data.tar.gz: 2021b07a2de1dd8f82f09d8917d393b84f543aa6
3
+ metadata.gz: 8420068a7599daffd466ba1a63f6e291bb413057
4
+ data.tar.gz: a16493939d4ac4e1ab68c023dc3c060d2359a123
5
5
  SHA512:
6
- metadata.gz: 3bb08a0611d113d459b1937df83a8c817b275da04a4af823c9eedbddd9efb2ae2cbe32cfdcd5d9d53dc2f03093a629229220cc22d196091ec5ad143369b2e3bf
7
- data.tar.gz: 4a2bf46cda253433dffbeb5b3d49047149ec106e4b0d35223db96a3e64cc68f0e0993f1bc38a3018b1aae6369171f9b0216878bd823d327e37a95a63ba017d5d
6
+ metadata.gz: f7abdaf35ec95416a8eea9a2156e366a64be6012d312a57402a146a455a69a091f4655b33499b3b940e353be28971bd40d035e20dd4d2aa4ac8fbe71f44ed25a
7
+ data.tar.gz: 4c07c2fad7be7a92c423df3a1f7b41ecfd8fb72f1df22284c44eab60acf6232f5b14f249ad4df5ad8eb0cd56ed6d1d87dd97dc9dad9627f84dec724f37341bb1
data/ChangeLog CHANGED
@@ -1,4 +1,7 @@
1
- ===Version 1.2.1/ 2017-01-26
1
+ === Version 1.2.2/ 2017/02-14
2
+ * Enhancements
3
+ * Added wait method to page class(wait document readystate as complete)
4
+ === Version 1.2.1/ 2017-01-26
2
5
  * Enhancements
3
6
  * Added array methods to section collections
4
7
  * Added ability to call style method with no parameters
@@ -182,6 +182,18 @@ module Druid
182
182
  driver.refresh
183
183
  end
184
184
 
185
+ #
186
+ # Waits until readyState of document is complete
187
+ #
188
+ # @example
189
+ # @page.wait
190
+ #
191
+ # @param [Integer] timeout
192
+ #
193
+ def wait(timeout = 5)
194
+ driver.wait(timeout = 5)
195
+ end
196
+
185
197
  #
186
198
  # Go back to the previous page
187
199
  #
@@ -1,3 +1,3 @@
1
1
  module Druid
2
- VERSION = "1.2.1"
2
+ VERSION = "1.2.2"
3
3
  end
@@ -202,6 +202,11 @@ describe Druid do
202
202
  druid.refresh
203
203
  end
204
204
 
205
+ it "should wait document load completely" do
206
+ expect(driver).to receive(:wait)
207
+ druid.wait
208
+ end
209
+
205
210
  it "should know how to go back" do
206
211
  expect(driver).to receive(:back)
207
212
  druid.back
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: druid-ts
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.2.1
4
+ version: 1.2.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Tim Sheng