SurfCustomCalabash 0.1.3 → 0.1.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: aa6393311248346a1bfdbb65386455b6299b01b5
4
- data.tar.gz: 49d689215e69269719e47378f7298449d1b03070
3
+ metadata.gz: 5783c8d5dd0f7b7aa8faf7e231b7c550b4c32bdd
4
+ data.tar.gz: b0e76a7a96c1d707d3b627789b334c8502e07f5f
5
5
  SHA512:
6
- metadata.gz: fb9273680f9bf8ea1b0aa4fdc0884d40d29dd39cfdf437044b0f46e2c4bfc55c053fa505f86e2704030e311aa131fed91a0e25ee3ed2df2a612cec097f4aacb0
7
- data.tar.gz: cb8d7e6e95c75051f0d19d4bec14c3dc7284f4b76be85351d6b2c905c60f696b8bd7be0604005baa49ef58c185f5b9b932799c5bbc502b73bfe94709e38c3c6f
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"
@@ -1,3 +1,3 @@
1
1
  module SurfCustomCalabash
2
- VERSION = "0.1.3"
2
+ VERSION = "0.1.4"
3
3
  end
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.3
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-03-18 00:00:00.000000000 Z
11
+ date: 2019-05-07 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler