candroid_helpers 0.0.2.beta → 0.0.2.pre
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/candroid_helpers/version.rb +1 -1
- data/lib/candroid_helpers.rb +3 -3
- 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: 68985072380a0ec88c31bd870d4b683fa8c82cf0
|
4
|
+
data.tar.gz: c7c28aa757550247113a5c272a75392995bffccf
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 80b6247aa2aa1efdff2adfb7e279d937d56f37923713caf4321b245965f8ea69a1d3c3bd4ff21c00cda5785028676327a167a7067eb9b407a7b2d7b075ed1692
|
7
|
+
data.tar.gz: 80f43a4a69a56d20e9d6ca364978aeac4cc641839dd0cc03fe56103ffbad1194b01d52566d2e6e0d4b2fd589f332de5a23d843a880c1cb7356f0bfc3c0124363
|
data/lib/candroid_helpers.rb
CHANGED
@@ -9,7 +9,7 @@ module CandroidHelpers
|
|
9
9
|
raise "No element given." if opts[:element].nil?
|
10
10
|
timeout = opts[:timeout] || 10
|
11
11
|
action = opts[:action] || lambda { ; }
|
12
|
-
wait_poll until_exists:
|
12
|
+
wait_poll until_exists: element, timeout: timeout do
|
13
13
|
action.call
|
14
14
|
end
|
15
15
|
end
|
@@ -20,7 +20,7 @@ module CandroidHelpers
|
|
20
20
|
raise "No element given." if opts[:element].nil?
|
21
21
|
timeout = opts[:timeout] || 10
|
22
22
|
action = opts[:action] || lambda { touch element }
|
23
|
-
wait_for_elements_exist [
|
23
|
+
wait_for_elements_exist [element], timeout: timeout
|
24
24
|
action.call
|
25
25
|
end
|
26
26
|
|
@@ -32,7 +32,7 @@ module CandroidHelpers
|
|
32
32
|
traits = opts[:traits] || ["*"]
|
33
33
|
trait = ''
|
34
34
|
action = lambda do
|
35
|
-
|
35
|
+
arr.each do |element|
|
36
36
|
if element_exists element
|
37
37
|
trait = element
|
38
38
|
break
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: candroid_helpers
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.2.
|
4
|
+
version: 0.0.2.pre
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Joshua Escribano
|
@@ -92,5 +92,5 @@ rubyforge_project:
|
|
92
92
|
rubygems_version: 2.1.10
|
93
93
|
signing_key:
|
94
94
|
specification_version: 4
|
95
|
-
summary: candroid_helpers-0.0.2.
|
95
|
+
summary: candroid_helpers-0.0.2.pre
|
96
96
|
test_files: []
|