SurfCustomCalabash 0.1.3 → 0.1.4
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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 5783c8d5dd0f7b7aa8faf7e231b7c550b4c32bdd
|
4
|
+
data.tar.gz: b0e76a7a96c1d707d3b627789b334c8502e07f5f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 384d562cfc65bd410888bbeb61e8e7b9814d62ec680617254381442239939b6ca90f85b696226d7a43bfb42e979e602766d4bfd51195a80b6aa3f515745b3b27
|
7
|
+
data.tar.gz: 045a65d035bab415b2f99c1428446f23d97f0dd5f3db3e0bcd1dd7c677ffa12dba6e8e5793c7297d281bf51d2911ae568d59f66276b742cc65eeb1fa9cac0e8b
|
@@ -27,6 +27,8 @@ module CommonMethods
|
|
27
27
|
touch(element)
|
28
28
|
else
|
29
29
|
until_element_exists(element,:action => lambda{light_swipe('down')}, :timeout => 30)
|
30
|
+
light_swipe('down')
|
31
|
+
sleep(1)
|
30
32
|
touch(element)
|
31
33
|
end
|
32
34
|
end
|
@@ -172,6 +174,13 @@ module CommonMethods
|
|
172
174
|
p num
|
173
175
|
end
|
174
176
|
|
177
|
+
# get last digital from string
|
178
|
+
def extract_last_num_from_str(text)
|
179
|
+
text.gsub!(/[[:space:]]/, '')
|
180
|
+
num = text.scan(/\d+/).first.nil? ? "0" : text.scan(/\d+/).last
|
181
|
+
p num
|
182
|
+
end
|
183
|
+
|
175
184
|
# get text from first element
|
176
185
|
def remember(element)
|
177
186
|
wait_for_element_exists(element, :timeout => 5)
|
@@ -11,6 +11,10 @@ module DroidMethods
|
|
11
11
|
end
|
12
12
|
end
|
13
13
|
|
14
|
+
def submit_keyboard
|
15
|
+
press_user_action_button
|
16
|
+
end
|
17
|
+
|
14
18
|
#----------------------------------------------Custom Android Swipe---------------------------------------------------
|
15
19
|
def strong_swipe(dr)
|
16
20
|
if dr == "up"
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: SurfCustomCalabash
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Alexey Hripunov
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2019-
|
11
|
+
date: 2019-05-07 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|