meglish 1.0.14 → 1.0.15

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.
Files changed (3) hide show
  1. checksums.yaml +4 -4
  2. data/lib/meglish.rb +20 -0
  3. metadata +1 -1
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 76d12f208bd7e1316db90967effb7e4df8534c5e
4
- data.tar.gz: 0f524e85704e63c531a5e84a43cf0f42f8948fdd
3
+ metadata.gz: 5a4f89f13b1dedf4cd201232a9f1de09bb1678f1
4
+ data.tar.gz: 9dff2269d2ae76935ea4fd90070a8d672e3f26b9
5
5
  SHA512:
6
- metadata.gz: 79ba144ee74a540f0b005cc76e3b3f09bdd74ce5fe466d606d4c9e93605965871ab365d6860bc91d1078203ce6321c2df0614c8ebd5fd727cbd9e11c089aff0d
7
- data.tar.gz: 479fece894059540d01a9606ac2ebe7addf6c7d87a059edbbb87f37cdee50238a2a1709d6a9373f466ea7d5fe2e8ca7a3b90404b60aabd18a539e86f699b47af
6
+ metadata.gz: 588a48ac5ac552c4560dcf9bfdd72f51911d192e751df6609fd08e1f12024e023e3cc579af671e46629a1f4be8b1d28ac502210a51c4bd92093b7c96a988b8b9
7
+ data.tar.gz: 89a406f0de1ddf809ddf7a2d229b05de5fcc9c1ee18cf83badea9e7e6141a54bc1de47ffee2458d2df31826599cbf95d4971fe85ef94d7e81e063b9d3156f2a3
data/lib/meglish.rb CHANGED
@@ -132,6 +132,16 @@ module Meglish
132
132
  touch_element("DropDownListView child CustomFontTextView text:'#{_text}'", _options)
133
133
  end
134
134
 
135
+ def swipe_down(_scroll_amount)
136
+ if _scroll_amount < 4
137
+ _scroll_amount = 5
138
+ elsif _scroll_amount >= 50
139
+ _scroll_amount = 49
140
+ end
141
+ down = 50 + _scroll_amount
142
+ perform_action('drag', 50, 50, 50, down, 5)
143
+ end
144
+
135
145
  def swipe_left(_query)
136
146
  has_element = query(_query + ' parent HorizontalScrollView')
137
147
  _query = has_element.empty? ? _query : _query + ' parent HorizontalScrollView'
@@ -144,6 +154,16 @@ module Meglish
144
154
  pan_right(query_string: _query)
145
155
  end
146
156
 
157
+ def swipe_up(_scroll_amount)
158
+ if _scroll_amount < 4
159
+ _scroll_amount = 5
160
+ elsif _scroll_amount >= 50
161
+ _scroll_amount = 49
162
+ end
163
+ up = 50 + _scroll_amount
164
+ perform_action('drag', 50, 50, up, 50, 5)
165
+ end
166
+
147
167
  def text_element(_query, _options = {})
148
168
  get_element(_query, _options)['text']
149
169
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: meglish
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.14
4
+ version: 1.0.15
5
5
  platform: ruby
6
6
  authors:
7
7
  - Eduardo Gomes Heinen