watir 6.0.0 → 6.0.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGES.md +4 -0
- data/lib/watir/wait.rb +12 -2
- data/watir.gemspec +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 1ba80da46c192619b2230212be6150d3586566a4
|
4
|
+
data.tar.gz: 19dbb91b0970bea2464b10204456c39a662211f7
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 343c137c32b5e70eefe073e0dfff7909df5e901bc28eabd4c5a8de6e07baecd97f3ee70207c5dc15d8ea8c2ff27c934a3674e9faaeccd517273647109a161e08
|
7
|
+
data.tar.gz: eb26d6a072fd05b905349b0d767b0d4203ac7bddc1e46b5a0c440d8e0b6f8f3431b84d80ee642a54f2708a54b932cf0ac09994fdd8fb64660f7351b20fc13caf
|
data/CHANGES.md
CHANGED
data/lib/watir/wait.rb
CHANGED
@@ -115,7 +115,12 @@ module Watir
|
|
115
115
|
# @param [String] message error message for when times out
|
116
116
|
#
|
117
117
|
|
118
|
-
def wait_until(timeout: nil, message: nil, &blk)
|
118
|
+
def wait_until(deprecated_timeout = nil, deprecated_message = nil, timeout: nil, message: nil, &blk)
|
119
|
+
if deprecated_message || deprecated_timeout
|
120
|
+
warn "Instead of passing arguments into #wait_until, use keywords"
|
121
|
+
timeout = deprecated_timeout
|
122
|
+
message = deprecated_message
|
123
|
+
end
|
119
124
|
message ||= "waiting for true condition on #{selector_string}"
|
120
125
|
Wait.until(timeout: timeout, message: message, object: self, &blk)
|
121
126
|
|
@@ -136,7 +141,12 @@ module Watir
|
|
136
141
|
# @param [String] message error message for when times out
|
137
142
|
#
|
138
143
|
|
139
|
-
def wait_while(timeout: nil, message: nil, &blk)
|
144
|
+
def wait_while(deprecated_timeout = nil, deprecated_message = nil, timeout: nil, message: nil, &blk)
|
145
|
+
if deprecated_message || deprecated_timeout
|
146
|
+
warn "Instead of passing arguments into #wait_while method, use keywords"
|
147
|
+
timeout = deprecated_timeout
|
148
|
+
message = deprecated_message
|
149
|
+
end
|
140
150
|
message ||= "waiting for false condition on #{selector_string}"
|
141
151
|
Wait.while(timeout: timeout, message: message, object: self, &blk)
|
142
152
|
|
data/watir.gemspec
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: watir
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 6.0.
|
4
|
+
version: 6.0.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Alex Rodionov
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2016-11-
|
12
|
+
date: 2016-11-10 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: selenium-webdriver
|