candroid_helpers 0.0.2.pre → 0.0.2
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 +4 -4
- metadata +4 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 89bf9fa2ec3103e40658cd4f99a2411f946616f9
|
4
|
+
data.tar.gz: 814b42abbdf04d0b2f3faec9565a82aa05ede5fc
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 3b824a8212d73d36103412eee18200564f808f90c07d5d6e0ab2354a9bb56d26a80cbb521bbd60976b25df0acfefcac10dde7b017d3f18b34744f85b08e668d5
|
7
|
+
data.tar.gz: b74369e28a707980566c6df6b721ed9cac64f9083f5e655128c0414f5725597d2f0f82ed3a6d76b6a8ff432aa9a651493bbfcc04236ed3fe3ea598e6bd0161af
|
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: element, timeout: timeout do
|
12
|
+
wait_poll until_exists: opts[:element], timeout: timeout do
|
13
13
|
action.call
|
14
14
|
end
|
15
15
|
end
|
@@ -19,8 +19,8 @@ module CandroidHelpers
|
|
19
19
|
The default behavior is to touch the specified element.'''
|
20
20
|
raise "No element given." if opts[:element].nil?
|
21
21
|
timeout = opts[:timeout] || 10
|
22
|
-
action = opts[:action] || lambda { touch element }
|
23
|
-
wait_for_elements_exist [element], timeout: timeout
|
22
|
+
action = opts[:action] || lambda { touch opts[:element] }
|
23
|
+
wait_for_elements_exist [opts[: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
|
+
traits.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
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Joshua Escribano
|
@@ -84,13 +84,13 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
84
84
|
version: '0'
|
85
85
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
86
86
|
requirements:
|
87
|
-
- - '
|
87
|
+
- - '>='
|
88
88
|
- !ruby/object:Gem::Version
|
89
|
-
version:
|
89
|
+
version: '0'
|
90
90
|
requirements: []
|
91
91
|
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
|
96
96
|
test_files: []
|