candroid_helpers 0.0.2 → 0.0.3
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 +7 -7
- metadata +4 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: e4f0a26cc4a1321f1ea3fcd425b7eca936c4a299
|
4
|
+
data.tar.gz: 151d617e35cc4cd635b7f816e46e231f04e4febb
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 6b3466041d212d8aacc20841208bfc2c6b179fe64a85adc7d8899849b8d83f38c8c84bde570ee067d1bc32fb9e8a4b2949d4ad14a81a479a9e39d9847eeccce2
|
7
|
+
data.tar.gz: 6a9bfe42e9f3a9e1558bdb9848c605c1be5745863b6087a4b083209fd99564f044f770d5d39486a56a2d7619e04c0bf6e26cf2a484680db31d2f939c7e55ddab
|
data/lib/candroid_helpers.rb
CHANGED
@@ -3,9 +3,9 @@ require "calabash-android/abase"
|
|
3
3
|
|
4
4
|
module CandroidHelpers
|
5
5
|
|
6
|
+
# Performs a lambda action until the element appears.
|
7
|
+
# The default action is to do nothing.
|
6
8
|
def until_element_exists opts = {}
|
7
|
-
'''Performs a lambda action until the element appears.
|
8
|
-
The default action is to do nothing.'''
|
9
9
|
raise "No element given." if opts[:element].nil?
|
10
10
|
timeout = opts[:timeout] || 10
|
11
11
|
action = opts[:action] || lambda { ; }
|
@@ -14,9 +14,9 @@ module CandroidHelpers
|
|
14
14
|
end
|
15
15
|
end
|
16
16
|
|
17
|
+
# Performs a lambda action once the element exists.
|
18
|
+
# The default behavior is to touch the specified element.
|
17
19
|
def once_element_exists opts = {}
|
18
|
-
'''Performs a lambda action once the element exists.
|
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
22
|
action = opts[:action] || lambda { touch opts[:element] }
|
@@ -24,10 +24,10 @@ module CandroidHelpers
|
|
24
24
|
action.call
|
25
25
|
end
|
26
26
|
|
27
|
+
# Pass an array of query elements. Determines the
|
28
|
+
# correct trait for page objects that can have multiple
|
29
|
+
# acceptable traits.
|
27
30
|
def multiple_traits opts = {}
|
28
|
-
'''Pass an array of query elements. Determines the
|
29
|
-
correct trait for page objects that can have multiple
|
30
|
-
acceptable traits.'''
|
31
31
|
timeout = opts[:timeout] || 10
|
32
32
|
traits = opts[:traits] || ["*"]
|
33
33
|
trait = ''
|
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.
|
4
|
+
version: 0.0.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Joshua Escribano
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2014-01-
|
12
|
+
date: 2014-01-06 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: calabash-android
|
@@ -92,5 +92,6 @@ rubyforge_project:
|
|
92
92
|
rubygems_version: 2.1.10
|
93
93
|
signing_key:
|
94
94
|
specification_version: 4
|
95
|
-
summary: candroid_helpers-0.0.
|
95
|
+
summary: candroid_helpers-0.0.3
|
96
96
|
test_files: []
|
97
|
+
has_rdoc:
|