appium_lib 8.0.2 → 8.1.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Rakefile +1 -1
- data/android_tests/lib/android/specs/common/device_touchaction.rb +1 -1
- data/android_tests/lib/android/specs/device/touch_actions.rb +32 -0
- data/android_tests/lib/android/specs/driver.rb +2 -1
- data/appium_lib.gemspec +1 -1
- data/contributing.md +1 -1
- data/docs/android_docs.md +269 -204
- data/docs/ios_docs.md +252 -187
- data/ios_tests/appium.txt +1 -1
- data/ios_tests/lib/ios/specs/device/device.rb +1 -1
- data/ios_tests/lib/ios/specs/device/touch_actions.rb +15 -1
- data/ios_tests/lib/ios/specs/driver.rb +3 -2
- data/ios_tests/readme.md +1 -1
- data/lib/appium_lib/common/version.rb +2 -2
- data/lib/appium_lib/device/device.rb +19 -1
- data/lib/appium_lib/device/multi_touch.rb +4 -4
- data/lib/appium_lib/device/touch_actions.rb +45 -8
- data/lib/appium_lib/driver.rb +16 -4
- data/release_notes.md +19 -1
- metadata +6 -6
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: d1047c021d9e6c8e73618d525540ee4632fa6d97
|
4
|
+
data.tar.gz: a97ad37976b48c146609c5fbcef8ed60223c1a10
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: d2b3f5ce8c771576e22c17d4c7f186776444bbc57ccf91b5de99cb6c7586aa4a3317b35c8a96238c7058af33837b7317837ee5ac7770d0b79b19fd0b31cd8cda
|
7
|
+
data.tar.gz: b16f638919d409ae817ff3e601de26c9466df4c392b4fdd917529894c3c35f1aa5fc3a902d591b6f1b651906a30288b369cb8c05404b60198a437ee3e2ecc1ee
|
data/Rakefile
CHANGED
@@ -119,7 +119,7 @@ task :release => :gem do
|
|
119
119
|
sh 'git push origin master'
|
120
120
|
sh "git push origin #{tag_name}"
|
121
121
|
gem_build
|
122
|
-
sh "gem push #{repo_name}-#{version}.gem"
|
122
|
+
# sh "gem push #{repo_name}-#{version}.gem"
|
123
123
|
end
|
124
124
|
|
125
125
|
desc 'Build and release a new gem to rubygems.org (same as release)'
|
@@ -11,7 +11,7 @@ describe 'common/device_touchaction' do
|
|
11
11
|
end
|
12
12
|
|
13
13
|
t 'swipe' do
|
14
|
-
wait { Appium::TouchAction.new.swipe(start_x: 0.75, start_y: 0.25,
|
14
|
+
wait { Appium::TouchAction.new.swipe(start_x: 0.75, start_y: 0.25, delta_x: 0.75, delta_y: 0.5, duration: 1.5).perform }
|
15
15
|
wait { !exists { text_exact 'NFC' } }
|
16
16
|
wait { text_exact 'Bouncing Balls' }
|
17
17
|
back
|
@@ -0,0 +1,32 @@
|
|
1
|
+
describe 'device/touch_actions' do
|
2
|
+
def swipe_till_text_visible(seen_text)
|
3
|
+
start_x = window_size[:width] / 2
|
4
|
+
start_y = window_size[:height] / 2
|
5
|
+
wait(60) do
|
6
|
+
swipe start_x: start_x, start_y: start_y, delta_x: start_x, delta_y: start_y - 100
|
7
|
+
text(seen_text).displayed?
|
8
|
+
end
|
9
|
+
end
|
10
|
+
|
11
|
+
t 'swipe_default_duration' do
|
12
|
+
swipe_till_text_visible('views')
|
13
|
+
text('views').click
|
14
|
+
wait_true do
|
15
|
+
text('animation').displayed?
|
16
|
+
end
|
17
|
+
text('animation').text.must_equal 'Animation'
|
18
|
+
swipe_till_text_visible('lists')
|
19
|
+
end
|
20
|
+
end
|
21
|
+
|
22
|
+
# TODO: write tests
|
23
|
+
#
|
24
|
+
# move_to
|
25
|
+
# long_press
|
26
|
+
# press
|
27
|
+
# release
|
28
|
+
# tap
|
29
|
+
# wait
|
30
|
+
# swipe
|
31
|
+
# perform
|
32
|
+
# cancel
|
data/appium_lib.gemspec
CHANGED
@@ -14,7 +14,7 @@ Gem::Specification.new do |s|
|
|
14
14
|
s.homepage = 'https://github.com/appium/ruby_lib' # published as appium_lib
|
15
15
|
s.require_paths = ['lib']
|
16
16
|
|
17
|
-
s.add_runtime_dependency 'selenium-webdriver', '~> 2.
|
17
|
+
s.add_runtime_dependency 'selenium-webdriver', '~> 2.50'
|
18
18
|
s.add_runtime_dependency 'awesome_print', '~> 1.6'
|
19
19
|
s.add_runtime_dependency 'json', '~> 1.8'
|
20
20
|
s.add_runtime_dependency 'tomlrb', '~> 1.1'
|
data/contributing.md
CHANGED
@@ -10,7 +10,7 @@ For features or bug fixes, please submit a pull request. Ideally there would be
|
|
10
10
|
|
11
11
|
### Run iOS tests
|
12
12
|
|
13
|
-
iOS tests are run on the iPhone 6 / iOS
|
13
|
+
iOS tests are run on the iPhone 6 / iOS 9.3 simulator.
|
14
14
|
|
15
15
|
- `cd ios_tests`
|
16
16
|
- `flake 3 ios` - Run all the iOS tests up to 3 times
|
data/docs/android_docs.md
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
##### [load_appium_txt](https://github.com/appium/ruby_lib/blob/
|
1
|
+
##### [load_appium_txt](https://github.com/appium/ruby_lib/blob/95d3a6535472559590c4d043e887d15acc445a1a/lib/appium_lib/driver.rb#L70)
|
2
2
|
|
3
3
|
> def self.load_appium_txt(opts = {})
|
4
4
|
|
@@ -27,7 +27,7 @@ __Returns:__
|
|
27
27
|
|
28
28
|
--
|
29
29
|
|
30
|
-
##### [symbolize_keys](https://github.com/appium/ruby_lib/blob/
|
30
|
+
##### [symbolize_keys](https://github.com/appium/ruby_lib/blob/95d3a6535472559590c4d043e887d15acc445a1a/lib/appium_lib/driver.rb#L136)
|
31
31
|
|
32
32
|
> def self.symbolize_keys(hash)
|
33
33
|
|
@@ -38,7 +38,7 @@ https://github.com/rails/docrails/blob/a3b1105ada3da64acfa3843b164b14b734456a50/
|
|
38
38
|
|
39
39
|
--
|
40
40
|
|
41
|
-
##### [promote_singleton_appium_methods](https://github.com/appium/ruby_lib/blob/
|
41
|
+
##### [promote_singleton_appium_methods](https://github.com/appium/ruby_lib/blob/95d3a6535472559590c4d043e887d15acc445a1a/lib/appium_lib/driver.rb#L157)
|
42
42
|
|
43
43
|
> def self.promote_singleton_appium_methods(modules)
|
44
44
|
|
@@ -56,7 +56,7 @@ otherwise, the array of modules will be used as the promotion target.
|
|
56
56
|
|
57
57
|
--
|
58
58
|
|
59
|
-
##### [promote_appium_methods](https://github.com/appium/ruby_lib/blob/
|
59
|
+
##### [promote_appium_methods](https://github.com/appium/ruby_lib/blob/95d3a6535472559590c4d043e887d15acc445a1a/lib/appium_lib/driver.rb#L208)
|
60
60
|
|
61
61
|
> def self.promote_appium_methods(class_array)
|
62
62
|
|
@@ -86,7 +86,7 @@ __Parameters:__
|
|
86
86
|
|
87
87
|
--
|
88
88
|
|
89
|
-
##### [global_webdriver_http_sleep](https://github.com/appium/ruby_lib/blob/
|
89
|
+
##### [global_webdriver_http_sleep](https://github.com/appium/ruby_lib/blob/95d3a6535472559590c4d043e887d15acc445a1a/lib/appium_lib/driver.rb#L242)
|
90
90
|
|
91
91
|
> def global_webdriver_http_sleep
|
92
92
|
|
@@ -94,7 +94,7 @@ The amount to sleep in seconds before every webdriver http call.
|
|
94
94
|
|
95
95
|
--
|
96
96
|
|
97
|
-
##### [global_webdriver_http_sleep=](https://github.com/appium/ruby_lib/blob/
|
97
|
+
##### [global_webdriver_http_sleep=](https://github.com/appium/ruby_lib/blob/95d3a6535472559590c4d043e887d15acc445a1a/lib/appium_lib/driver.rb#L242)
|
98
98
|
|
99
99
|
> def global_webdriver_http_sleep=(value)
|
100
100
|
|
@@ -102,7 +102,7 @@ The amount to sleep in seconds before every webdriver http call.
|
|
102
102
|
|
103
103
|
--
|
104
104
|
|
105
|
-
##### [caps](https://github.com/appium/ruby_lib/blob/
|
105
|
+
##### [caps](https://github.com/appium/ruby_lib/blob/95d3a6535472559590c4d043e887d15acc445a1a/lib/appium_lib/driver.rb#L244)
|
106
106
|
|
107
107
|
> def caps
|
108
108
|
|
@@ -110,7 +110,7 @@ Selenium webdriver capabilities
|
|
110
110
|
|
111
111
|
--
|
112
112
|
|
113
|
-
##### [caps=](https://github.com/appium/ruby_lib/blob/
|
113
|
+
##### [caps=](https://github.com/appium/ruby_lib/blob/95d3a6535472559590c4d043e887d15acc445a1a/lib/appium_lib/driver.rb#L244)
|
114
114
|
|
115
115
|
> def caps=(value)
|
116
116
|
|
@@ -118,7 +118,7 @@ Selenium webdriver capabilities
|
|
118
118
|
|
119
119
|
--
|
120
120
|
|
121
|
-
##### [custom_url](https://github.com/appium/ruby_lib/blob/
|
121
|
+
##### [custom_url](https://github.com/appium/ruby_lib/blob/95d3a6535472559590c4d043e887d15acc445a1a/lib/appium_lib/driver.rb#L246)
|
122
122
|
|
123
123
|
> def custom_url
|
124
124
|
|
@@ -126,7 +126,7 @@ Custom URL for the selenium server
|
|
126
126
|
|
127
127
|
--
|
128
128
|
|
129
|
-
##### [custom_url=](https://github.com/appium/ruby_lib/blob/
|
129
|
+
##### [custom_url=](https://github.com/appium/ruby_lib/blob/95d3a6535472559590c4d043e887d15acc445a1a/lib/appium_lib/driver.rb#L246)
|
130
130
|
|
131
131
|
> def custom_url=(value)
|
132
132
|
|
@@ -134,7 +134,7 @@ Custom URL for the selenium server
|
|
134
134
|
|
135
135
|
--
|
136
136
|
|
137
|
-
##### [export_session](https://github.com/appium/ruby_lib/blob/
|
137
|
+
##### [export_session](https://github.com/appium/ruby_lib/blob/95d3a6535472559590c4d043e887d15acc445a1a/lib/appium_lib/driver.rb#L248)
|
138
138
|
|
139
139
|
> def export_session
|
140
140
|
|
@@ -142,7 +142,7 @@ Export session id to textfile in /tmp for 3rd party tools
|
|
142
142
|
|
143
143
|
--
|
144
144
|
|
145
|
-
##### [export_session=](https://github.com/appium/ruby_lib/blob/
|
145
|
+
##### [export_session=](https://github.com/appium/ruby_lib/blob/95d3a6535472559590c4d043e887d15acc445a1a/lib/appium_lib/driver.rb#L248)
|
146
146
|
|
147
147
|
> def export_session=(value)
|
148
148
|
|
@@ -150,7 +150,7 @@ Export session id to textfile in /tmp for 3rd party tools
|
|
150
150
|
|
151
151
|
--
|
152
152
|
|
153
|
-
##### [default_wait](https://github.com/appium/ruby_lib/blob/
|
153
|
+
##### [default_wait](https://github.com/appium/ruby_lib/blob/95d3a6535472559590c4d043e887d15acc445a1a/lib/appium_lib/driver.rb#L253)
|
154
154
|
|
155
155
|
> def default_wait
|
156
156
|
|
@@ -164,7 +164,7 @@ __Returns:__
|
|
164
164
|
|
165
165
|
--
|
166
166
|
|
167
|
-
##### [default_wait=](https://github.com/appium/ruby_lib/blob/
|
167
|
+
##### [default_wait=](https://github.com/appium/ruby_lib/blob/95d3a6535472559590c4d043e887d15acc445a1a/lib/appium_lib/driver.rb#L253)
|
168
168
|
|
169
169
|
> def default_wait=(value)
|
170
170
|
|
@@ -178,7 +178,7 @@ __Returns:__
|
|
178
178
|
|
179
179
|
--
|
180
180
|
|
181
|
-
##### [last_waits](https://github.com/appium/ruby_lib/blob/
|
181
|
+
##### [last_waits](https://github.com/appium/ruby_lib/blob/95d3a6535472559590c4d043e887d15acc445a1a/lib/appium_lib/driver.rb#L255)
|
182
182
|
|
183
183
|
> def last_waits
|
184
184
|
|
@@ -186,7 +186,7 @@ Array of previous wait time values
|
|
186
186
|
|
187
187
|
--
|
188
188
|
|
189
|
-
##### [last_waits=](https://github.com/appium/ruby_lib/blob/
|
189
|
+
##### [last_waits=](https://github.com/appium/ruby_lib/blob/95d3a6535472559590c4d043e887d15acc445a1a/lib/appium_lib/driver.rb#L255)
|
190
190
|
|
191
191
|
> def last_waits=(value)
|
192
192
|
|
@@ -194,7 +194,7 @@ Array of previous wait time values
|
|
194
194
|
|
195
195
|
--
|
196
196
|
|
197
|
-
##### [sauce_username](https://github.com/appium/ruby_lib/blob/
|
197
|
+
##### [sauce_username](https://github.com/appium/ruby_lib/blob/95d3a6535472559590c4d043e887d15acc445a1a/lib/appium_lib/driver.rb#L257)
|
198
198
|
|
199
199
|
> def sauce_username
|
200
200
|
|
@@ -202,7 +202,7 @@ Username for use on Sauce Labs
|
|
202
202
|
|
203
203
|
--
|
204
204
|
|
205
|
-
##### [sauce_username=](https://github.com/appium/ruby_lib/blob/
|
205
|
+
##### [sauce_username=](https://github.com/appium/ruby_lib/blob/95d3a6535472559590c4d043e887d15acc445a1a/lib/appium_lib/driver.rb#L257)
|
206
206
|
|
207
207
|
> def sauce_username=(value)
|
208
208
|
|
@@ -210,7 +210,7 @@ Username for use on Sauce Labs
|
|
210
210
|
|
211
211
|
--
|
212
212
|
|
213
|
-
##### [sauce_access_key](https://github.com/appium/ruby_lib/blob/
|
213
|
+
##### [sauce_access_key](https://github.com/appium/ruby_lib/blob/95d3a6535472559590c4d043e887d15acc445a1a/lib/appium_lib/driver.rb#L259)
|
214
214
|
|
215
215
|
> def sauce_access_key
|
216
216
|
|
@@ -218,7 +218,7 @@ Access Key for use on Sauce Labs
|
|
218
218
|
|
219
219
|
--
|
220
220
|
|
221
|
-
##### [sauce_access_key=](https://github.com/appium/ruby_lib/blob/
|
221
|
+
##### [sauce_access_key=](https://github.com/appium/ruby_lib/blob/95d3a6535472559590c4d043e887d15acc445a1a/lib/appium_lib/driver.rb#L259)
|
222
222
|
|
223
223
|
> def sauce_access_key=(value)
|
224
224
|
|
@@ -226,7 +226,7 @@ Access Key for use on Sauce Labs
|
|
226
226
|
|
227
227
|
--
|
228
228
|
|
229
|
-
##### [appium_port](https://github.com/appium/ruby_lib/blob/
|
229
|
+
##### [appium_port](https://github.com/appium/ruby_lib/blob/95d3a6535472559590c4d043e887d15acc445a1a/lib/appium_lib/driver.rb#L261)
|
230
230
|
|
231
231
|
> def appium_port
|
232
232
|
|
@@ -234,7 +234,7 @@ Appium's server port
|
|
234
234
|
|
235
235
|
--
|
236
236
|
|
237
|
-
##### [appium_port=](https://github.com/appium/ruby_lib/blob/
|
237
|
+
##### [appium_port=](https://github.com/appium/ruby_lib/blob/95d3a6535472559590c4d043e887d15acc445a1a/lib/appium_lib/driver.rb#L261)
|
238
238
|
|
239
239
|
> def appium_port=(value)
|
240
240
|
|
@@ -242,7 +242,7 @@ Appium's server port
|
|
242
242
|
|
243
243
|
--
|
244
244
|
|
245
|
-
##### [appium_device](https://github.com/appium/ruby_lib/blob/
|
245
|
+
##### [appium_device](https://github.com/appium/ruby_lib/blob/95d3a6535472559590c4d043e887d15acc445a1a/lib/appium_lib/driver.rb#L263)
|
246
246
|
|
247
247
|
> def appium_device
|
248
248
|
|
@@ -250,7 +250,7 @@ Device type to request from the appium server
|
|
250
250
|
|
251
251
|
--
|
252
252
|
|
253
|
-
##### [appium_device=](https://github.com/appium/ruby_lib/blob/
|
253
|
+
##### [appium_device=](https://github.com/appium/ruby_lib/blob/95d3a6535472559590c4d043e887d15acc445a1a/lib/appium_lib/driver.rb#L263)
|
254
254
|
|
255
255
|
> def appium_device=(value)
|
256
256
|
|
@@ -258,7 +258,7 @@ Device type to request from the appium server
|
|
258
258
|
|
259
259
|
--
|
260
260
|
|
261
|
-
##### [appium_debug](https://github.com/appium/ruby_lib/blob/
|
261
|
+
##### [appium_debug](https://github.com/appium/ruby_lib/blob/95d3a6535472559590c4d043e887d15acc445a1a/lib/appium_lib/driver.rb#L265)
|
262
262
|
|
263
263
|
> def appium_debug
|
264
264
|
|
@@ -266,7 +266,7 @@ Boolean debug mode for the Appium Ruby bindings
|
|
266
266
|
|
267
267
|
--
|
268
268
|
|
269
|
-
##### [appium_debug=](https://github.com/appium/ruby_lib/blob/
|
269
|
+
##### [appium_debug=](https://github.com/appium/ruby_lib/blob/95d3a6535472559590c4d043e887d15acc445a1a/lib/appium_lib/driver.rb#L265)
|
270
270
|
|
271
271
|
> def appium_debug=(value)
|
272
272
|
|
@@ -274,7 +274,23 @@ Boolean debug mode for the Appium Ruby bindings
|
|
274
274
|
|
275
275
|
--
|
276
276
|
|
277
|
-
##### [
|
277
|
+
##### [listener](https://github.com/appium/ruby_lib/blob/95d3a6535472559590c4d043e887d15acc445a1a/lib/appium_lib/driver.rb#L267)
|
278
|
+
|
279
|
+
> def listener
|
280
|
+
|
281
|
+
instance of AbstractEventListener for logging support
|
282
|
+
|
283
|
+
--
|
284
|
+
|
285
|
+
##### [listener=](https://github.com/appium/ruby_lib/blob/95d3a6535472559590c4d043e887d15acc445a1a/lib/appium_lib/driver.rb#L267)
|
286
|
+
|
287
|
+
> def listener=(value)
|
288
|
+
|
289
|
+
instance of AbstractEventListener for logging support
|
290
|
+
|
291
|
+
--
|
292
|
+
|
293
|
+
##### [driver](https://github.com/appium/ruby_lib/blob/95d3a6535472559590c4d043e887d15acc445a1a/lib/appium_lib/driver.rb#L271)
|
278
294
|
|
279
295
|
> def driver
|
280
296
|
|
@@ -286,7 +302,7 @@ __Returns:__
|
|
286
302
|
|
287
303
|
--
|
288
304
|
|
289
|
-
##### [initialize](https://github.com/appium/ruby_lib/blob/
|
305
|
+
##### [initialize](https://github.com/appium/ruby_lib/blob/95d3a6535472559590c4d043e887d15acc445a1a/lib/appium_lib/driver.rb#L292)
|
290
306
|
|
291
307
|
> def initialize(opts = {})
|
292
308
|
|
@@ -317,7 +333,7 @@ __Returns:__
|
|
317
333
|
|
318
334
|
--
|
319
335
|
|
320
|
-
##### [driver_attributes](https://github.com/appium/ruby_lib/blob/
|
336
|
+
##### [driver_attributes](https://github.com/appium/ruby_lib/blob/95d3a6535472559590c4d043e887d15acc445a1a/lib/appium_lib/driver.rb#L360)
|
321
337
|
|
322
338
|
> def driver_attributes
|
323
339
|
|
@@ -325,7 +341,7 @@ Returns a hash of the driver attributes
|
|
325
341
|
|
326
342
|
--
|
327
343
|
|
328
|
-
##### [device_is_android?](https://github.com/appium/ruby_lib/blob/
|
344
|
+
##### [device_is_android?](https://github.com/appium/ruby_lib/blob/95d3a6535472559590c4d043e887d15acc445a1a/lib/appium_lib/driver.rb#L381)
|
329
345
|
|
330
346
|
> def device_is_android?
|
331
347
|
|
@@ -337,7 +353,7 @@ __Returns:__
|
|
337
353
|
|
338
354
|
--
|
339
355
|
|
340
|
-
##### [appium_server_version](https://github.com/appium/ruby_lib/blob/
|
356
|
+
##### [appium_server_version](https://github.com/appium/ruby_lib/blob/95d3a6535472559590c4d043e887d15acc445a1a/lib/appium_lib/driver.rb#L397)
|
341
357
|
|
342
358
|
> def appium_server_version
|
343
359
|
|
@@ -358,7 +374,7 @@ __Returns:__
|
|
358
374
|
|
359
375
|
--
|
360
376
|
|
361
|
-
##### [absolute_app_path](https://github.com/appium/ruby_lib/blob/
|
377
|
+
##### [absolute_app_path](https://github.com/appium/ruby_lib/blob/95d3a6535472559590c4d043e887d15acc445a1a/lib/appium_lib/driver.rb#L409)
|
362
378
|
|
363
379
|
> def self.absolute_app_path(opts)
|
364
380
|
|
@@ -375,7 +391,7 @@ __Returns:__
|
|
375
391
|
|
376
392
|
--
|
377
393
|
|
378
|
-
##### [server_url](https://github.com/appium/ruby_lib/blob/
|
394
|
+
##### [server_url](https://github.com/appium/ruby_lib/blob/95d3a6535472559590c4d043e887d15acc445a1a/lib/appium_lib/driver.rb#L442)
|
379
395
|
|
380
396
|
> def server_url
|
381
397
|
|
@@ -387,7 +403,7 @@ __Returns:__
|
|
387
403
|
|
388
404
|
--
|
389
405
|
|
390
|
-
##### [restart](https://github.com/appium/ruby_lib/blob/
|
406
|
+
##### [restart](https://github.com/appium/ruby_lib/blob/95d3a6535472559590c4d043e887d15acc445a1a/lib/appium_lib/driver.rb#L453)
|
391
407
|
|
392
408
|
> def restart
|
393
409
|
|
@@ -399,7 +415,7 @@ __Returns:__
|
|
399
415
|
|
400
416
|
--
|
401
417
|
|
402
|
-
##### [screenshot](https://github.com/appium/ruby_lib/blob/
|
418
|
+
##### [screenshot](https://github.com/appium/ruby_lib/blob/95d3a6535472559590c4d043e887d15acc445a1a/lib/appium_lib/driver.rb#L464)
|
403
419
|
|
404
420
|
> def screenshot(png_save_path)
|
405
421
|
|
@@ -417,7 +433,7 @@ __Returns:__
|
|
417
433
|
|
418
434
|
--
|
419
435
|
|
420
|
-
##### [driver_quit](https://github.com/appium/ruby_lib/blob/
|
436
|
+
##### [driver_quit](https://github.com/appium/ruby_lib/blob/95d3a6535472559590c4d043e887d15acc445a1a/lib/appium_lib/driver.rb#L471)
|
421
437
|
|
422
438
|
> def driver_quit
|
423
439
|
|
@@ -429,7 +445,7 @@ __Returns:__
|
|
429
445
|
|
430
446
|
--
|
431
447
|
|
432
|
-
##### [start_driver](https://github.com/appium/ruby_lib/blob/
|
448
|
+
##### [start_driver](https://github.com/appium/ruby_lib/blob/95d3a6535472559590c4d043e887d15acc445a1a/lib/appium_lib/driver.rb#L480)
|
433
449
|
|
434
450
|
> def start_driver
|
435
451
|
|
@@ -441,7 +457,7 @@ __Returns:__
|
|
441
457
|
|
442
458
|
--
|
443
459
|
|
444
|
-
##### [no_wait](https://github.com/appium/ruby_lib/blob/
|
460
|
+
##### [no_wait](https://github.com/appium/ruby_lib/blob/95d3a6535472559590c4d043e887d15acc445a1a/lib/appium_lib/driver.rb#L513)
|
445
461
|
|
446
462
|
> def no_wait
|
447
463
|
|
@@ -449,7 +465,7 @@ Set implicit wait and default_wait to zero.
|
|
449
465
|
|
450
466
|
--
|
451
467
|
|
452
|
-
##### [set_wait](https://github.com/appium/ruby_lib/blob/
|
468
|
+
##### [set_wait](https://github.com/appium/ruby_lib/blob/95d3a6535472559590c4d043e887d15acc445a1a/lib/appium_lib/driver.rb#L532)
|
453
469
|
|
454
470
|
> def set_wait(timeout = nil)
|
455
471
|
|
@@ -474,7 +490,7 @@ __Returns:__
|
|
474
490
|
|
475
491
|
--
|
476
492
|
|
477
|
-
##### [exists](https://github.com/appium/ruby_lib/blob/
|
493
|
+
##### [exists](https://github.com/appium/ruby_lib/blob/95d3a6535472559590c4d043e887d15acc445a1a/lib/appium_lib/driver.rb#L559)
|
478
494
|
|
479
495
|
> def exists(pre_check = 0, post_check = @default_wait, &search_block)
|
480
496
|
|
@@ -500,7 +516,7 @@ __Returns:__
|
|
500
516
|
|
501
517
|
--
|
502
518
|
|
503
|
-
##### [execute_script](https://github.com/appium/ruby_lib/blob/
|
519
|
+
##### [execute_script](https://github.com/appium/ruby_lib/blob/95d3a6535472559590c4d043e887d15acc445a1a/lib/appium_lib/driver.rb#L583)
|
504
520
|
|
505
521
|
> def execute_script(script, *args)
|
506
522
|
|
@@ -518,7 +534,7 @@ __Returns:__
|
|
518
534
|
|
519
535
|
--
|
520
536
|
|
521
|
-
##### [find_elements](https://github.com/appium/ruby_lib/blob/
|
537
|
+
##### [find_elements](https://github.com/appium/ruby_lib/blob/95d3a6535472559590c4d043e887d15acc445a1a/lib/appium_lib/driver.rb#L591)
|
522
538
|
|
523
539
|
> def find_elements(*args)
|
524
540
|
|
@@ -534,7 +550,7 @@ __Returns:__
|
|
534
550
|
|
535
551
|
--
|
536
552
|
|
537
|
-
##### [find_element](https://github.com/appium/ruby_lib/blob/
|
553
|
+
##### [find_element](https://github.com/appium/ruby_lib/blob/95d3a6535472559590c4d043e887d15acc445a1a/lib/appium_lib/driver.rb#L599)
|
538
554
|
|
539
555
|
> def find_element(*args)
|
540
556
|
|
@@ -550,7 +566,7 @@ __Returns:__
|
|
550
566
|
|
551
567
|
--
|
552
568
|
|
553
|
-
##### [set_location](https://github.com/appium/ruby_lib/blob/
|
569
|
+
##### [set_location](https://github.com/appium/ruby_lib/blob/95d3a6535472559590c4d043e887d15acc445a1a/lib/appium_lib/driver.rb#L612)
|
554
570
|
|
555
571
|
> def set_location(opts = {})
|
556
572
|
|
@@ -566,7 +582,7 @@ __Returns:__
|
|
566
582
|
|
567
583
|
--
|
568
584
|
|
569
|
-
##### [x](https://github.com/appium/ruby_lib/blob/
|
585
|
+
##### [x](https://github.com/appium/ruby_lib/blob/95d3a6535472559590c4d043e887d15acc445a1a/lib/appium_lib/driver.rb#L622)
|
570
586
|
|
571
587
|
> def x
|
572
588
|
|
@@ -579,7 +595,7 @@ __Returns:__
|
|
579
595
|
|
580
596
|
--
|
581
597
|
|
582
|
-
##### [logger=](https://github.com/appium/ruby_lib/blob/
|
598
|
+
##### [logger=](https://github.com/appium/ruby_lib/blob/95d3a6535472559590c4d043e887d15acc445a1a/lib/appium_lib/logger.rb#L13)
|
583
599
|
|
584
600
|
> def logger=(value)
|
585
601
|
|
@@ -591,7 +607,7 @@ __Parameters:__
|
|
591
607
|
|
592
608
|
--
|
593
609
|
|
594
|
-
##### [logger](https://github.com/appium/ruby_lib/blob/
|
610
|
+
##### [logger](https://github.com/appium/ruby_lib/blob/95d3a6535472559590c4d043e887d15acc445a1a/lib/appium_lib/logger.rb#L17)
|
595
611
|
|
596
612
|
> def logger
|
597
613
|
|
@@ -599,7 +615,7 @@ __Parameters:__
|
|
599
615
|
|
600
616
|
--
|
601
617
|
|
602
|
-
##### [NoArgMethods](https://github.com/appium/ruby_lib/blob/
|
618
|
+
##### [NoArgMethods](https://github.com/appium/ruby_lib/blob/95d3a6535472559590c4d043e887d15acc445a1a/lib/appium_lib/device/device.rb#L7)
|
603
619
|
|
604
620
|
> NoArgMethods = {
|
605
621
|
|
@@ -607,7 +623,7 @@ __Parameters:__
|
|
607
623
|
|
608
624
|
--
|
609
625
|
|
610
|
-
##### [app_strings](https://github.com/appium/ruby_lib/blob/
|
626
|
+
##### [app_strings](https://github.com/appium/ruby_lib/blob/95d3a6535472559590c4d043e887d15acc445a1a/lib/appium_lib/device/device.rb#L25)
|
611
627
|
|
612
628
|
> def app_strings
|
613
629
|
|
@@ -618,7 +634,7 @@ app_strings #=> "TransitionsTitle"=>"Transitions", "WebTitle"=>"Web"
|
|
618
634
|
|
619
635
|
--
|
620
636
|
|
621
|
-
##### [background_app](https://github.com/appium/ruby_lib/blob/
|
637
|
+
##### [background_app](https://github.com/appium/ruby_lib/blob/95d3a6535472559590c4d043e887d15acc445a1a/lib/appium_lib/device/device.rb#L31)
|
622
638
|
|
623
639
|
> def background_app
|
624
640
|
|
@@ -627,7 +643,7 @@ This is a blocking application
|
|
627
643
|
|
628
644
|
--
|
629
645
|
|
630
|
-
##### [current_activity](https://github.com/appium/ruby_lib/blob/
|
646
|
+
##### [current_activity](https://github.com/appium/ruby_lib/blob/95d3a6535472559590c4d043e887d15acc445a1a/lib/appium_lib/device/device.rb#L36)
|
631
647
|
|
632
648
|
> def current_activity
|
633
649
|
|
@@ -635,7 +651,7 @@ This is a blocking application
|
|
635
651
|
|
636
652
|
--
|
637
653
|
|
638
|
-
##### [launch_app](https://github.com/appium/ruby_lib/blob/
|
654
|
+
##### [launch_app](https://github.com/appium/ruby_lib/blob/95d3a6535472559590c4d043e887d15acc445a1a/lib/appium_lib/device/device.rb#L38)
|
639
655
|
|
640
656
|
> def launch_app
|
641
657
|
|
@@ -643,7 +659,7 @@ Start the simulator and application configured with desired capabilities
|
|
643
659
|
|
644
660
|
--
|
645
661
|
|
646
|
-
##### [reset](https://github.com/appium/ruby_lib/blob/
|
662
|
+
##### [reset](https://github.com/appium/ruby_lib/blob/95d3a6535472559590c4d043e887d15acc445a1a/lib/appium_lib/device/device.rb#L41)
|
647
663
|
|
648
664
|
> def reset
|
649
665
|
|
@@ -651,7 +667,7 @@ Reset the device, relaunching the application.
|
|
651
667
|
|
652
668
|
--
|
653
669
|
|
654
|
-
##### [shake](https://github.com/appium/ruby_lib/blob/
|
670
|
+
##### [shake](https://github.com/appium/ruby_lib/blob/95d3a6535472559590c4d043e887d15acc445a1a/lib/appium_lib/device/device.rb#L44)
|
655
671
|
|
656
672
|
> def shake
|
657
673
|
|
@@ -659,7 +675,7 @@ Cause the device to shake
|
|
659
675
|
|
660
676
|
--
|
661
677
|
|
662
|
-
##### [toggle_flight_mode](https://github.com/appium/ruby_lib/blob/
|
678
|
+
##### [toggle_flight_mode](https://github.com/appium/ruby_lib/blob/95d3a6535472559590c4d043e887d15acc445a1a/lib/appium_lib/device/device.rb#L47)
|
663
679
|
|
664
680
|
> def toggle_flight_mode
|
665
681
|
|
@@ -667,7 +683,7 @@ Toggle flight mode on or off
|
|
667
683
|
|
668
684
|
--
|
669
685
|
|
670
|
-
##### [device_locked?](https://github.com/appium/ruby_lib/blob/
|
686
|
+
##### [device_locked?](https://github.com/appium/ruby_lib/blob/95d3a6535472559590c4d043e887d15acc445a1a/lib/appium_lib/device/device.rb#L50)
|
671
687
|
|
672
688
|
> def device_locked?
|
673
689
|
|
@@ -675,7 +691,7 @@ Toggle flight mode on or off
|
|
675
691
|
|
676
692
|
--
|
677
693
|
|
678
|
-
##### [hide_keyboard](https://github.com/appium/ruby_lib/blob/
|
694
|
+
##### [hide_keyboard](https://github.com/appium/ruby_lib/blob/95d3a6535472559590c4d043e887d15acc445a1a/lib/appium_lib/device/device.rb#L52)
|
679
695
|
|
680
696
|
> def hide_keyboard
|
681
697
|
|
@@ -688,7 +704,7 @@ Defaults to 'Done'.
|
|
688
704
|
|
689
705
|
--
|
690
706
|
|
691
|
-
##### [press_keycode](https://github.com/appium/ruby_lib/blob/
|
707
|
+
##### [press_keycode](https://github.com/appium/ruby_lib/blob/95d3a6535472559590c4d043e887d15acc445a1a/lib/appium_lib/device/device.rb#L61)
|
692
708
|
|
693
709
|
> def press_keycode
|
694
710
|
|
@@ -703,7 +719,7 @@ __Parameters:__
|
|
703
719
|
|
704
720
|
--
|
705
721
|
|
706
|
-
##### [long_press_keycode](https://github.com/appium/ruby_lib/blob/
|
722
|
+
##### [long_press_keycode](https://github.com/appium/ruby_lib/blob/95d3a6535472559590c4d043e887d15acc445a1a/lib/appium_lib/device/device.rb#L67)
|
707
723
|
|
708
724
|
> def long_press_keycode
|
709
725
|
|
@@ -718,7 +734,7 @@ __Parameters:__
|
|
718
734
|
|
719
735
|
--
|
720
736
|
|
721
|
-
##### [push_file](https://github.com/appium/ruby_lib/blob/
|
737
|
+
##### [push_file](https://github.com/appium/ruby_lib/blob/95d3a6535472559590c4d043e887d15acc445a1a/lib/appium_lib/device/device.rb#L73)
|
722
738
|
|
723
739
|
> def push_file
|
724
740
|
|
@@ -732,7 +748,7 @@ __Parameters:__
|
|
732
748
|
|
733
749
|
--
|
734
750
|
|
735
|
-
##### [pull_file](https://github.com/appium/ruby_lib/blob/
|
751
|
+
##### [pull_file](https://github.com/appium/ruby_lib/blob/95d3a6535472559590c4d043e887d15acc445a1a/lib/appium_lib/device/device.rb#L78)
|
736
752
|
|
737
753
|
> def pull_file
|
738
754
|
|
@@ -749,7 +765,7 @@ __Parameters:__
|
|
749
765
|
|
750
766
|
--
|
751
767
|
|
752
|
-
##### [pull_folder](https://github.com/appium/ruby_lib/blob/
|
768
|
+
##### [pull_folder](https://github.com/appium/ruby_lib/blob/95d3a6535472559590c4d043e887d15acc445a1a/lib/appium_lib/device/device.rb#L88)
|
753
769
|
|
754
770
|
> def pull_folder
|
755
771
|
|
@@ -764,7 +780,24 @@ __Parameters:__
|
|
764
780
|
|
765
781
|
--
|
766
782
|
|
767
|
-
##### [
|
783
|
+
##### [touch_id](https://github.com/appium/ruby_lib/blob/95d3a6535472559590c4d043e887d15acc445a1a/lib/appium_lib/device/device.rb#L96)
|
784
|
+
|
785
|
+
> def touch_id
|
786
|
+
|
787
|
+
iOS only; Simulate Touch ID with either valid (match == true) or invalid (match == false) fingerprint.
|
788
|
+
```ruby
|
789
|
+
touch_id true #=> Simulate valid fingerprint
|
790
|
+
touch_id false #=> Simulate invalid fingerprint
|
791
|
+
```
|
792
|
+
|
793
|
+
__Parameters:__
|
794
|
+
|
795
|
+
[Boolean] match - fingerprint validity
|
796
|
+
Defaults to true.
|
797
|
+
|
798
|
+
--
|
799
|
+
|
800
|
+
##### [end_coverage](https://github.com/appium/ruby_lib/blob/95d3a6535472559590c4d043e887d15acc445a1a/lib/appium_lib/device/device.rb#L105)
|
768
801
|
|
769
802
|
> def end_coverage
|
770
803
|
|
@@ -778,7 +811,7 @@ __Parameters:__
|
|
778
811
|
|
779
812
|
--
|
780
813
|
|
781
|
-
##### [get_settings](https://github.com/appium/ruby_lib/blob/
|
814
|
+
##### [get_settings](https://github.com/appium/ruby_lib/blob/95d3a6535472559590c4d043e887d15acc445a1a/lib/appium_lib/device/device.rb#L110)
|
782
815
|
|
783
816
|
> def get_settings
|
784
817
|
|
@@ -786,7 +819,7 @@ Get appium Settings for current test session
|
|
786
819
|
|
787
820
|
--
|
788
821
|
|
789
|
-
##### [extend_search_contexts](https://github.com/appium/ruby_lib/blob/
|
822
|
+
##### [extend_search_contexts](https://github.com/appium/ruby_lib/blob/95d3a6535472559590c4d043e887d15acc445a1a/lib/appium_lib/device/device.rb#L370)
|
790
823
|
|
791
824
|
> def extend_search_contexts
|
792
825
|
|
@@ -794,9 +827,17 @@ Get appium Settings for current test session
|
|
794
827
|
|
795
828
|
--
|
796
829
|
|
797
|
-
##### [
|
830
|
+
##### [find_element](https://github.com/appium/ruby_lib/blob/95d3a6535472559590c4d043e887d15acc445a1a/lib/appium_lib/device/device.rb#L370)
|
831
|
+
|
832
|
+
> def find_element
|
833
|
+
|
834
|
+
|
835
|
+
|
836
|
+
--
|
837
|
+
|
838
|
+
##### [find_elements](https://github.com/appium/ruby_lib/blob/95d3a6535472559590c4d043e887d15acc445a1a/lib/appium_lib/device/device.rb#L370)
|
798
839
|
|
799
|
-
> def
|
840
|
+
> def find_elements
|
800
841
|
|
801
842
|
find_element/s with their accessibility_id
|
802
843
|
|
@@ -806,7 +847,7 @@ find_element/s with their accessibility_id
|
|
806
847
|
|
807
848
|
--
|
808
849
|
|
809
|
-
##### [add_touch_actions](https://github.com/appium/ruby_lib/blob/
|
850
|
+
##### [add_touch_actions](https://github.com/appium/ruby_lib/blob/95d3a6535472559590c4d043e887d15acc445a1a/lib/appium_lib/device/device.rb#L376)
|
810
851
|
|
811
852
|
> def add_touch_actions
|
812
853
|
|
@@ -814,7 +855,7 @@ find_element/s with their accessibility_id
|
|
814
855
|
|
815
856
|
--
|
816
857
|
|
817
|
-
##### [set_context](https://github.com/appium/ruby_lib/blob/
|
858
|
+
##### [set_context](https://github.com/appium/ruby_lib/blob/95d3a6535472559590c4d043e887d15acc445a1a/lib/appium_lib/device/device.rb#L400)
|
818
859
|
|
819
860
|
> def set_context
|
820
861
|
|
@@ -829,7 +870,7 @@ __Parameters:__
|
|
829
870
|
|
830
871
|
--
|
831
872
|
|
832
|
-
##### [current_context](https://github.com/appium/ruby_lib/blob/
|
873
|
+
##### [current_context](https://github.com/appium/ruby_lib/blob/95d3a6535472559590c4d043e887d15acc445a1a/lib/appium_lib/device/device.rb#L408)
|
833
874
|
|
834
875
|
> def current_context
|
835
876
|
|
@@ -841,7 +882,7 @@ __Returns:__
|
|
841
882
|
|
842
883
|
--
|
843
884
|
|
844
|
-
##### [available_contexts](https://github.com/appium/ruby_lib/blob/
|
885
|
+
##### [available_contexts](https://github.com/appium/ruby_lib/blob/95d3a6535472559590c4d043e887d15acc445a1a/lib/appium_lib/device/device.rb#L411)
|
845
886
|
|
846
887
|
> def available_contexts
|
847
888
|
|
@@ -853,7 +894,7 @@ __Returns:__
|
|
853
894
|
|
854
895
|
--
|
855
896
|
|
856
|
-
##### [within_context](https://github.com/appium/ruby_lib/blob/
|
897
|
+
##### [within_context](https://github.com/appium/ruby_lib/blob/95d3a6535472559590c4d043e887d15acc445a1a/lib/appium_lib/device/device.rb#L421)
|
857
898
|
|
858
899
|
> def within_context(context)
|
859
900
|
|
@@ -869,7 +910,7 @@ __Parameters:__
|
|
869
910
|
|
870
911
|
--
|
871
912
|
|
872
|
-
##### [switch_to_default_context](https://github.com/appium/ruby_lib/blob/
|
913
|
+
##### [switch_to_default_context](https://github.com/appium/ruby_lib/blob/95d3a6535472559590c4d043e887d15acc445a1a/lib/appium_lib/device/device.rb#L429)
|
873
914
|
|
874
915
|
> def switch_to_default_context
|
875
916
|
|
@@ -877,7 +918,7 @@ Change to the default context. This is equivalent to `set_context nil`.
|
|
877
918
|
|
878
919
|
--
|
879
920
|
|
880
|
-
##### [pinch](https://github.com/appium/ruby_lib/blob/
|
921
|
+
##### [pinch](https://github.com/appium/ruby_lib/blob/95d3a6535472559590c4d043e887d15acc445a1a/lib/appium_lib/device/multi_touch.rb#L28)
|
881
922
|
|
882
923
|
> def pinch(percentage = 25, auto_perform = true)
|
883
924
|
|
@@ -896,7 +937,7 @@ __Parameters:__
|
|
896
937
|
|
897
938
|
--
|
898
939
|
|
899
|
-
##### [zoom](https://github.com/appium/ruby_lib/blob/
|
940
|
+
##### [zoom](https://github.com/appium/ruby_lib/blob/95d3a6535472559590c4d043e887d15acc445a1a/lib/appium_lib/device/multi_touch.rb#L56)
|
900
941
|
|
901
942
|
> def zoom(percentage = 200, auto_perform = true)
|
902
943
|
|
@@ -915,7 +956,7 @@ __Parameters:__
|
|
915
956
|
|
916
957
|
--
|
917
958
|
|
918
|
-
##### [initialize](https://github.com/appium/ruby_lib/blob/
|
959
|
+
##### [initialize](https://github.com/appium/ruby_lib/blob/95d3a6535472559590c4d043e887d15acc445a1a/lib/appium_lib/device/multi_touch.rb#L77)
|
919
960
|
|
920
961
|
> def initialize
|
921
962
|
|
@@ -927,7 +968,7 @@ __Returns:__
|
|
927
968
|
|
928
969
|
--
|
929
970
|
|
930
|
-
##### [add](https://github.com/appium/ruby_lib/blob/
|
971
|
+
##### [add](https://github.com/appium/ruby_lib/blob/95d3a6535472559590c4d043e887d15acc445a1a/lib/appium_lib/device/multi_touch.rb#L83)
|
931
972
|
|
932
973
|
> def add(chain)
|
933
974
|
|
@@ -939,7 +980,7 @@ __Parameters:__
|
|
939
980
|
|
940
981
|
--
|
941
982
|
|
942
|
-
##### [perform](https://github.com/appium/ruby_lib/blob/
|
983
|
+
##### [perform](https://github.com/appium/ruby_lib/blob/95d3a6535472559590c4d043e887d15acc445a1a/lib/appium_lib/device/multi_touch.rb#L88)
|
943
984
|
|
944
985
|
> def perform
|
945
986
|
|
@@ -947,15 +988,15 @@ Ask Appium to perform the actions
|
|
947
988
|
|
948
989
|
--
|
949
990
|
|
950
|
-
##### [ACTIONS](https://github.com/appium/ruby_lib/blob/
|
991
|
+
##### [ACTIONS](https://github.com/appium/ruby_lib/blob/95d3a6535472559590c4d043e887d15acc445a1a/lib/appium_lib/device/touch_actions.rb#L11)
|
951
992
|
|
952
|
-
> ACTIONS = [:move_to, :long_press, :press, :release, :tap, :wait, :perform]
|
993
|
+
> ACTIONS = [:move_to, :long_press, :double_tap, :two_finger_tap, :press, :release, :tap, :wait, :perform]
|
953
994
|
|
954
995
|
|
955
996
|
|
956
997
|
--
|
957
998
|
|
958
|
-
##### [COMPLEX_ACTIONS](https://github.com/appium/ruby_lib/blob/
|
999
|
+
##### [COMPLEX_ACTIONS](https://github.com/appium/ruby_lib/blob/95d3a6535472559590c4d043e887d15acc445a1a/lib/appium_lib/device/touch_actions.rb#L12)
|
959
1000
|
|
960
1001
|
> COMPLEX_ACTIONS = [:swipe]
|
961
1002
|
|
@@ -963,7 +1004,7 @@ Ask Appium to perform the actions
|
|
963
1004
|
|
964
1005
|
--
|
965
1006
|
|
966
|
-
##### [actions](https://github.com/appium/ruby_lib/blob/
|
1007
|
+
##### [actions](https://github.com/appium/ruby_lib/blob/95d3a6535472559590c4d043e887d15acc445a1a/lib/appium_lib/device/touch_actions.rb#L26)
|
967
1008
|
|
968
1009
|
> def actions
|
969
1010
|
|
@@ -971,7 +1012,7 @@ Returns the value of attribute actions
|
|
971
1012
|
|
972
1013
|
--
|
973
1014
|
|
974
|
-
##### [initialize](https://github.com/appium/ruby_lib/blob/
|
1015
|
+
##### [initialize](https://github.com/appium/ruby_lib/blob/95d3a6535472559590c4d043e887d15acc445a1a/lib/appium_lib/device/touch_actions.rb#L28)
|
975
1016
|
|
976
1017
|
> def initialize
|
977
1018
|
|
@@ -983,7 +1024,7 @@ __Returns:__
|
|
983
1024
|
|
984
1025
|
--
|
985
1026
|
|
986
|
-
##### [move_to](https://github.com/appium/ruby_lib/blob/
|
1027
|
+
##### [move_to](https://github.com/appium/ruby_lib/blob/95d3a6535472559590c4d043e887d15acc445a1a/lib/appium_lib/device/touch_actions.rb#L36)
|
987
1028
|
|
988
1029
|
> def move_to(opts)
|
989
1030
|
|
@@ -995,7 +1036,7 @@ __Parameters:__
|
|
995
1036
|
|
996
1037
|
--
|
997
1038
|
|
998
|
-
##### [long_press](https://github.com/appium/ruby_lib/blob/
|
1039
|
+
##### [long_press](https://github.com/appium/ruby_lib/blob/95d3a6535472559590c4d043e887d15acc445a1a/lib/appium_lib/device/touch_actions.rb#L46)
|
999
1040
|
|
1000
1041
|
> def long_press(opts)
|
1001
1042
|
|
@@ -1013,7 +1054,7 @@ __Parameters:__
|
|
1013
1054
|
|
1014
1055
|
--
|
1015
1056
|
|
1016
|
-
##### [press](https://github.com/appium/ruby_lib/blob/
|
1057
|
+
##### [press](https://github.com/appium/ruby_lib/blob/95d3a6535472559590c4d043e887d15acc445a1a/lib/appium_lib/device/touch_actions.rb#L58)
|
1017
1058
|
|
1018
1059
|
> def press(opts)
|
1019
1060
|
|
@@ -1026,7 +1067,7 @@ __Parameters:__
|
|
1026
1067
|
|
1027
1068
|
--
|
1028
1069
|
|
1029
|
-
##### [release](https://github.com/appium/ruby_lib/blob/
|
1070
|
+
##### [release](https://github.com/appium/ruby_lib/blob/95d3a6535472559590c4d043e887d15acc445a1a/lib/appium_lib/device/touch_actions.rb#L69)
|
1030
1071
|
|
1031
1072
|
> def release(opts = nil)
|
1032
1073
|
|
@@ -1038,7 +1079,7 @@ __Parameters:__
|
|
1038
1079
|
|
1039
1080
|
--
|
1040
1081
|
|
1041
|
-
##### [tap](https://github.com/appium/ruby_lib/blob/
|
1082
|
+
##### [tap](https://github.com/appium/ruby_lib/blob/95d3a6535472559590c4d043e887d15acc445a1a/lib/appium_lib/device/touch_actions.rb#L80)
|
1042
1083
|
|
1043
1084
|
> def tap(opts)
|
1044
1085
|
|
@@ -1050,7 +1091,31 @@ __Parameters:__
|
|
1050
1091
|
|
1051
1092
|
--
|
1052
1093
|
|
1053
|
-
##### [
|
1094
|
+
##### [double_tap](https://github.com/appium/ruby_lib/blob/95d3a6535472559590c4d043e887d15acc445a1a/lib/appium_lib/device/touch_actions.rb#L93)
|
1095
|
+
|
1096
|
+
> def double_tap(opts)
|
1097
|
+
|
1098
|
+
Double tap an element on the screen
|
1099
|
+
|
1100
|
+
__Parameters:__
|
1101
|
+
|
1102
|
+
[Hash] opts - a customizable set of options
|
1103
|
+
|
1104
|
+
--
|
1105
|
+
|
1106
|
+
##### [two_finger_tap](https://github.com/appium/ruby_lib/blob/95d3a6535472559590c4d043e887d15acc445a1a/lib/appium_lib/device/touch_actions.rb#L104)
|
1107
|
+
|
1108
|
+
> def two_finger_tap(opts)
|
1109
|
+
|
1110
|
+
Two finger tap an element on the screen
|
1111
|
+
|
1112
|
+
__Parameters:__
|
1113
|
+
|
1114
|
+
[Hash] opts - a customizable set of options
|
1115
|
+
|
1116
|
+
--
|
1117
|
+
|
1118
|
+
##### [wait](https://github.com/appium/ruby_lib/blob/95d3a6535472559590c4d043e887d15acc445a1a/lib/appium_lib/device/touch_actions.rb#L112)
|
1054
1119
|
|
1055
1120
|
> def wait(milliseconds)
|
1056
1121
|
|
@@ -1062,7 +1127,7 @@ __Parameters:__
|
|
1062
1127
|
|
1063
1128
|
--
|
1064
1129
|
|
1065
|
-
##### [swipe](https://github.com/appium/ruby_lib/blob/
|
1130
|
+
##### [swipe](https://github.com/appium/ruby_lib/blob/95d3a6535472559590c4d043e887d15acc445a1a/lib/appium_lib/device/touch_actions.rb#L127)
|
1066
1131
|
|
1067
1132
|
> def swipe(opts)
|
1068
1133
|
|
@@ -1076,7 +1141,7 @@ __Parameters:__
|
|
1076
1141
|
|
1077
1142
|
--
|
1078
1143
|
|
1079
|
-
##### [perform](https://github.com/appium/ruby_lib/blob/
|
1144
|
+
##### [perform](https://github.com/appium/ruby_lib/blob/95d3a6535472559590c4d043e887d15acc445a1a/lib/appium_lib/device/touch_actions.rb#L155)
|
1080
1145
|
|
1081
1146
|
> def perform
|
1082
1147
|
|
@@ -1084,7 +1149,7 @@ Ask the driver to perform all actions in this action chain.
|
|
1084
1149
|
|
1085
1150
|
--
|
1086
1151
|
|
1087
|
-
##### [cancel](https://github.com/appium/ruby_lib/blob/
|
1152
|
+
##### [cancel](https://github.com/appium/ruby_lib/blob/95d3a6535472559590c4d043e887d15acc445a1a/lib/appium_lib/device/touch_actions.rb#L161)
|
1088
1153
|
|
1089
1154
|
> def cancel
|
1090
1155
|
|
@@ -1092,7 +1157,7 @@ Does nothing, currently.
|
|
1092
1157
|
|
1093
1158
|
--
|
1094
1159
|
|
1095
|
-
##### [chain_method](https://github.com/appium/ruby_lib/blob/
|
1160
|
+
##### [chain_method](https://github.com/appium/ruby_lib/blob/95d3a6535472559590c4d043e887d15acc445a1a/lib/appium_lib/device/touch_actions.rb#L169)
|
1096
1161
|
|
1097
1162
|
> def chain_method(method, args = nil)
|
1098
1163
|
|
@@ -1100,7 +1165,7 @@ Does nothing, currently.
|
|
1100
1165
|
|
1101
1166
|
--
|
1102
1167
|
|
1103
|
-
##### [args_with_ele_ref](https://github.com/appium/ruby_lib/blob/
|
1168
|
+
##### [args_with_ele_ref](https://github.com/appium/ruby_lib/blob/95d3a6535472559590c4d043e887d15acc445a1a/lib/appium_lib/device/touch_actions.rb#L178)
|
1104
1169
|
|
1105
1170
|
> def args_with_ele_ref(args)
|
1106
1171
|
|
@@ -1108,7 +1173,7 @@ Does nothing, currently.
|
|
1108
1173
|
|
1109
1174
|
--
|
1110
1175
|
|
1111
|
-
##### [_generic_wait](https://github.com/appium/ruby_lib/blob/
|
1176
|
+
##### [_generic_wait](https://github.com/appium/ruby_lib/blob/95d3a6535472559590c4d043e887d15acc445a1a/lib/appium_lib/common/wait.rb#L9)
|
1112
1177
|
|
1113
1178
|
> def _generic_wait(opts = {}, &block)
|
1114
1179
|
|
@@ -1117,7 +1182,7 @@ https://github.com/SeleniumHQ/selenium/blob/cf501dda3f0ed12233de51ce8170c0e8090f
|
|
1117
1182
|
|
1118
1183
|
--
|
1119
1184
|
|
1120
|
-
##### [_process_wait_opts](https://github.com/appium/ruby_lib/blob/
|
1185
|
+
##### [_process_wait_opts](https://github.com/appium/ruby_lib/blob/95d3a6535472559590c4d043e887d15acc445a1a/lib/appium_lib/common/wait.rb#L54)
|
1121
1186
|
|
1122
1187
|
> def _process_wait_opts(opts)
|
1123
1188
|
|
@@ -1125,7 +1190,7 @@ process opts before calling _generic_wait
|
|
1125
1190
|
|
1126
1191
|
--
|
1127
1192
|
|
1128
|
-
##### [wait_true](https://github.com/appium/ruby_lib/blob/
|
1193
|
+
##### [wait_true](https://github.com/appium/ruby_lib/blob/95d3a6535472559590c4d043e887d15acc445a1a/lib/appium_lib/common/wait.rb#L75)
|
1129
1194
|
|
1130
1195
|
> def wait_true(opts = {}, &block)
|
1131
1196
|
|
@@ -1145,7 +1210,7 @@ __Parameters:__
|
|
1145
1210
|
|
1146
1211
|
--
|
1147
1212
|
|
1148
|
-
##### [wait](https://github.com/appium/ruby_lib/blob/
|
1213
|
+
##### [wait](https://github.com/appium/ruby_lib/blob/95d3a6535472559590c4d043e887d15acc445a1a/lib/appium_lib/common/wait.rb#L93)
|
1149
1214
|
|
1150
1215
|
> def wait(opts = {}, &block)
|
1151
1216
|
|
@@ -1163,7 +1228,7 @@ __Parameters:__
|
|
1163
1228
|
|
1164
1229
|
--
|
1165
1230
|
|
1166
|
-
##### [ignore](https://github.com/appium/ruby_lib/blob/
|
1231
|
+
##### [ignore](https://github.com/appium/ruby_lib/blob/95d3a6535472559590c4d043e887d15acc445a1a/lib/appium_lib/common/helper.rb#L24)
|
1167
1232
|
|
1168
1233
|
> def ignore(&block)
|
1169
1234
|
|
@@ -1171,7 +1236,7 @@ Return block.call and ignore any exceptions.
|
|
1171
1236
|
|
1172
1237
|
--
|
1173
1238
|
|
1174
|
-
##### [back](https://github.com/appium/ruby_lib/blob/
|
1239
|
+
##### [back](https://github.com/appium/ruby_lib/blob/95d3a6535472559590c4d043e887d15acc445a1a/lib/appium_lib/common/helper.rb#L31)
|
1175
1240
|
|
1176
1241
|
> def back
|
1177
1242
|
|
@@ -1183,7 +1248,7 @@ __Returns:__
|
|
1183
1248
|
|
1184
1249
|
--
|
1185
1250
|
|
1186
|
-
##### [session_id](https://github.com/appium/ruby_lib/blob/
|
1251
|
+
##### [session_id](https://github.com/appium/ruby_lib/blob/95d3a6535472559590c4d043e887d15acc445a1a/lib/appium_lib/common/helper.rb#L36)
|
1187
1252
|
|
1188
1253
|
> def session_id
|
1189
1254
|
|
@@ -1191,7 +1256,7 @@ For Sauce Labs reporting. Returns the current session id.
|
|
1191
1256
|
|
1192
1257
|
--
|
1193
1258
|
|
1194
|
-
##### [xpath](https://github.com/appium/ruby_lib/blob/
|
1259
|
+
##### [xpath](https://github.com/appium/ruby_lib/blob/95d3a6535472559590c4d043e887d15acc445a1a/lib/appium_lib/common/helper.rb#L44)
|
1195
1260
|
|
1196
1261
|
> def xpath(xpath_str)
|
1197
1262
|
|
@@ -1207,7 +1272,7 @@ __Returns:__
|
|
1207
1272
|
|
1208
1273
|
--
|
1209
1274
|
|
1210
|
-
##### [xpaths](https://github.com/appium/ruby_lib/blob/
|
1275
|
+
##### [xpaths](https://github.com/appium/ruby_lib/blob/95d3a6535472559590c4d043e887d15acc445a1a/lib/appium_lib/common/helper.rb#L52)
|
1211
1276
|
|
1212
1277
|
> def xpaths(xpath_str)
|
1213
1278
|
|
@@ -1223,7 +1288,7 @@ __Returns:__
|
|
1223
1288
|
|
1224
1289
|
--
|
1225
1290
|
|
1226
|
-
##### [_print_source](https://github.com/appium/ruby_lib/blob/
|
1291
|
+
##### [_print_source](https://github.com/appium/ruby_lib/blob/95d3a6535472559590c4d043e887d15acc445a1a/lib/appium_lib/common/helper.rb#L56)
|
1227
1292
|
|
1228
1293
|
> def _print_source(source)
|
1229
1294
|
|
@@ -1231,7 +1296,7 @@ __Returns:__
|
|
1231
1296
|
|
1232
1297
|
--
|
1233
1298
|
|
1234
|
-
##### [result](https://github.com/appium/ruby_lib/blob/
|
1299
|
+
##### [result](https://github.com/appium/ruby_lib/blob/95d3a6535472559590c4d043e887d15acc445a1a/lib/appium_lib/common/helper.rb#L69)
|
1235
1300
|
|
1236
1301
|
> def result
|
1237
1302
|
|
@@ -1239,7 +1304,7 @@ Returns the value of attribute result
|
|
1239
1304
|
|
1240
1305
|
--
|
1241
1306
|
|
1242
|
-
##### [initialize](https://github.com/appium/ruby_lib/blob/
|
1307
|
+
##### [initialize](https://github.com/appium/ruby_lib/blob/95d3a6535472559590c4d043e887d15acc445a1a/lib/appium_lib/common/helper.rb#L71)
|
1243
1308
|
|
1244
1309
|
> def initialize
|
1245
1310
|
|
@@ -1251,7 +1316,7 @@ __Returns:__
|
|
1251
1316
|
|
1252
1317
|
--
|
1253
1318
|
|
1254
|
-
##### [reset](https://github.com/appium/ruby_lib/blob/
|
1319
|
+
##### [reset](https://github.com/appium/ruby_lib/blob/95d3a6535472559590c4d043e887d15acc445a1a/lib/appium_lib/common/helper.rb#L75)
|
1255
1320
|
|
1256
1321
|
> def reset
|
1257
1322
|
|
@@ -1259,7 +1324,7 @@ __Returns:__
|
|
1259
1324
|
|
1260
1325
|
--
|
1261
1326
|
|
1262
|
-
##### [start_element](https://github.com/appium/ruby_lib/blob/
|
1327
|
+
##### [start_element](https://github.com/appium/ruby_lib/blob/95d3a6535472559590c4d043e887d15acc445a1a/lib/appium_lib/common/helper.rb#L80)
|
1263
1328
|
|
1264
1329
|
> def start_element(name, attrs = [])
|
1265
1330
|
|
@@ -1267,7 +1332,7 @@ http://nokogiri.org/Nokogiri/XML/SAX/Document.html
|
|
1267
1332
|
|
1268
1333
|
--
|
1269
1334
|
|
1270
|
-
##### [formatted_result](https://github.com/appium/ruby_lib/blob/
|
1335
|
+
##### [formatted_result](https://github.com/appium/ruby_lib/blob/95d3a6535472559590c4d043e887d15acc445a1a/lib/appium_lib/common/helper.rb#L86)
|
1271
1336
|
|
1272
1337
|
> def formatted_result
|
1273
1338
|
|
@@ -1275,7 +1340,7 @@ http://nokogiri.org/Nokogiri/XML/SAX/Document.html
|
|
1275
1340
|
|
1276
1341
|
--
|
1277
1342
|
|
1278
|
-
##### [get_page_class](https://github.com/appium/ruby_lib/blob/
|
1343
|
+
##### [get_page_class](https://github.com/appium/ruby_lib/blob/95d3a6535472559590c4d043e887d15acc445a1a/lib/appium_lib/common/helper.rb#L97)
|
1279
1344
|
|
1280
1345
|
> def get_page_class
|
1281
1346
|
|
@@ -1283,7 +1348,7 @@ Returns a string of class counts of visible elements.
|
|
1283
1348
|
|
1284
1349
|
--
|
1285
1350
|
|
1286
|
-
##### [page_class](https://github.com/appium/ruby_lib/blob/
|
1351
|
+
##### [page_class](https://github.com/appium/ruby_lib/blob/95d3a6535472559590c4d043e887d15acc445a1a/lib/appium_lib/common/helper.rb#L108)
|
1287
1352
|
|
1288
1353
|
> def page_class
|
1289
1354
|
|
@@ -1292,7 +1357,7 @@ Useful for appium_console.
|
|
1292
1357
|
|
1293
1358
|
--
|
1294
1359
|
|
1295
|
-
##### [px_to_window_rel](https://github.com/appium/ruby_lib/blob/
|
1360
|
+
##### [px_to_window_rel](https://github.com/appium/ruby_lib/blob/95d3a6535472559590c4d043e887d15acc445a1a/lib/appium_lib/common/helper.rb#L118)
|
1296
1361
|
|
1297
1362
|
> def px_to_window_rel(opts = {})
|
1298
1363
|
|
@@ -1304,7 +1369,7 @@ px_to_window_rel x: 50, y: 150
|
|
1304
1369
|
|
1305
1370
|
--
|
1306
1371
|
|
1307
|
-
##### [xml_keys](https://github.com/appium/ruby_lib/blob/
|
1372
|
+
##### [xml_keys](https://github.com/appium/ruby_lib/blob/95d3a6535472559590c4d043e887d15acc445a1a/lib/appium_lib/common/helper.rb#L137)
|
1308
1373
|
|
1309
1374
|
> def xml_keys(target)
|
1310
1375
|
|
@@ -1320,7 +1385,7 @@ __Returns:__
|
|
1320
1385
|
|
1321
1386
|
--
|
1322
1387
|
|
1323
|
-
##### [xml_values](https://github.com/appium/ruby_lib/blob/
|
1388
|
+
##### [xml_values](https://github.com/appium/ruby_lib/blob/95d3a6535472559590c4d043e887d15acc445a1a/lib/appium_lib/common/helper.rb#L145)
|
1324
1389
|
|
1325
1390
|
> def xml_values(target)
|
1326
1391
|
|
@@ -1336,7 +1401,7 @@ __Returns:__
|
|
1336
1401
|
|
1337
1402
|
--
|
1338
1403
|
|
1339
|
-
##### [resolve_id](https://github.com/appium/ruby_lib/blob/
|
1404
|
+
##### [resolve_id](https://github.com/appium/ruby_lib/blob/95d3a6535472559590c4d043e887d15acc445a1a/lib/appium_lib/common/helper.rb#L153)
|
1340
1405
|
|
1341
1406
|
> def resolve_id(id)
|
1342
1407
|
|
@@ -1352,7 +1417,7 @@ __Returns:__
|
|
1352
1417
|
|
1353
1418
|
--
|
1354
1419
|
|
1355
|
-
##### [filter](https://github.com/appium/ruby_lib/blob/
|
1420
|
+
##### [filter](https://github.com/appium/ruby_lib/blob/95d3a6535472559590c4d043e887d15acc445a1a/lib/appium_lib/common/helper.rb#L159)
|
1356
1421
|
|
1357
1422
|
> def filter
|
1358
1423
|
|
@@ -1360,7 +1425,7 @@ Returns the value of attribute filter
|
|
1360
1425
|
|
1361
1426
|
--
|
1362
1427
|
|
1363
|
-
##### [filter=](https://github.com/appium/ruby_lib/blob/
|
1428
|
+
##### [filter=](https://github.com/appium/ruby_lib/blob/95d3a6535472559590c4d043e887d15acc445a1a/lib/appium_lib/common/helper.rb#L162)
|
1364
1429
|
|
1365
1430
|
> def filter=(value)
|
1366
1431
|
|
@@ -1368,7 +1433,7 @@ convert to string to support symbols
|
|
1368
1433
|
|
1369
1434
|
--
|
1370
1435
|
|
1371
|
-
##### [initialize](https://github.com/appium/ruby_lib/blob/
|
1436
|
+
##### [initialize](https://github.com/appium/ruby_lib/blob/95d3a6535472559590c4d043e887d15acc445a1a/lib/appium_lib/common/helper.rb#L168)
|
1372
1437
|
|
1373
1438
|
> def initialize
|
1374
1439
|
|
@@ -1380,7 +1445,7 @@ __Returns:__
|
|
1380
1445
|
|
1381
1446
|
--
|
1382
1447
|
|
1383
|
-
##### [reset](https://github.com/appium/ruby_lib/blob/
|
1448
|
+
##### [reset](https://github.com/appium/ruby_lib/blob/95d3a6535472559590c4d043e887d15acc445a1a/lib/appium_lib/common/helper.rb#L173)
|
1384
1449
|
|
1385
1450
|
> def reset
|
1386
1451
|
|
@@ -1388,7 +1453,7 @@ __Returns:__
|
|
1388
1453
|
|
1389
1454
|
--
|
1390
1455
|
|
1391
|
-
##### [result](https://github.com/appium/ruby_lib/blob/
|
1456
|
+
##### [result](https://github.com/appium/ruby_lib/blob/95d3a6535472559590c4d043e887d15acc445a1a/lib/appium_lib/common/helper.rb#L179)
|
1392
1457
|
|
1393
1458
|
> def result
|
1394
1459
|
|
@@ -1396,7 +1461,7 @@ __Returns:__
|
|
1396
1461
|
|
1397
1462
|
--
|
1398
1463
|
|
1399
|
-
##### [start_element](https://github.com/appium/ruby_lib/blob/
|
1464
|
+
##### [start_element](https://github.com/appium/ruby_lib/blob/95d3a6535472559590c4d043e887d15acc445a1a/lib/appium_lib/common/helper.rb#L195)
|
1400
1465
|
|
1401
1466
|
> def start_element(name, attrs = [])
|
1402
1467
|
|
@@ -1404,7 +1469,7 @@ __Returns:__
|
|
1404
1469
|
|
1405
1470
|
--
|
1406
1471
|
|
1407
|
-
##### [end_element](https://github.com/appium/ruby_lib/blob/
|
1472
|
+
##### [end_element](https://github.com/appium/ruby_lib/blob/95d3a6535472559590c4d043e887d15acc445a1a/lib/appium_lib/common/helper.rb#L204)
|
1408
1473
|
|
1409
1474
|
> def end_element(name)
|
1410
1475
|
|
@@ -1412,7 +1477,7 @@ __Returns:__
|
|
1412
1477
|
|
1413
1478
|
--
|
1414
1479
|
|
1415
|
-
##### [characters](https://github.com/appium/ruby_lib/blob/
|
1480
|
+
##### [characters](https://github.com/appium/ruby_lib/blob/95d3a6535472559590c4d043e887d15acc445a1a/lib/appium_lib/common/helper.rb#L210)
|
1416
1481
|
|
1417
1482
|
> def characters(chars)
|
1418
1483
|
|
@@ -1420,7 +1485,7 @@ __Returns:__
|
|
1420
1485
|
|
1421
1486
|
--
|
1422
1487
|
|
1423
|
-
##### [_no_such_element](https://github.com/appium/ruby_lib/blob/
|
1488
|
+
##### [_no_such_element](https://github.com/appium/ruby_lib/blob/95d3a6535472559590c4d043e887d15acc445a1a/lib/appium_lib/common/helper.rb#L217)
|
1424
1489
|
|
1425
1490
|
> def _no_such_element
|
1426
1491
|
|
@@ -1428,7 +1493,7 @@ __Returns:__
|
|
1428
1493
|
|
1429
1494
|
--
|
1430
1495
|
|
1431
|
-
##### [window_size](https://github.com/appium/ruby_lib/blob/
|
1496
|
+
##### [window_size](https://github.com/appium/ruby_lib/blob/95d3a6535472559590c4d043e887d15acc445a1a/lib/appium_lib/common/element/window.rb#L5)
|
1432
1497
|
|
1433
1498
|
> def window_size
|
1434
1499
|
|
@@ -1436,7 +1501,7 @@ Get the window's size
|
|
1436
1501
|
|
1437
1502
|
--
|
1438
1503
|
|
1439
|
-
##### [result](https://github.com/appium/ruby_lib/blob/
|
1504
|
+
##### [result](https://github.com/appium/ruby_lib/blob/95d3a6535472559590c4d043e887d15acc445a1a/lib/appium_lib/android/helper.rb#L6) android
|
1440
1505
|
|
1441
1506
|
> def result
|
1442
1507
|
|
@@ -1444,7 +1509,7 @@ Returns the value of attribute result
|
|
1444
1509
|
|
1445
1510
|
--
|
1446
1511
|
|
1447
|
-
##### [keys](https://github.com/appium/ruby_lib/blob/
|
1512
|
+
##### [keys](https://github.com/appium/ruby_lib/blob/95d3a6535472559590c4d043e887d15acc445a1a/lib/appium_lib/android/helper.rb#L6) android
|
1448
1513
|
|
1449
1514
|
> def keys
|
1450
1515
|
|
@@ -1452,7 +1517,7 @@ Returns the value of attribute keys
|
|
1452
1517
|
|
1453
1518
|
--
|
1454
1519
|
|
1455
|
-
##### [instance](https://github.com/appium/ruby_lib/blob/
|
1520
|
+
##### [instance](https://github.com/appium/ruby_lib/blob/95d3a6535472559590c4d043e887d15acc445a1a/lib/appium_lib/android/helper.rb#L6) android
|
1456
1521
|
|
1457
1522
|
> def instance
|
1458
1523
|
|
@@ -1460,7 +1525,7 @@ Returns the value of attribute instance
|
|
1460
1525
|
|
1461
1526
|
--
|
1462
1527
|
|
1463
|
-
##### [filter](https://github.com/appium/ruby_lib/blob/
|
1528
|
+
##### [filter](https://github.com/appium/ruby_lib/blob/95d3a6535472559590c4d043e887d15acc445a1a/lib/appium_lib/android/helper.rb#L6) android
|
1464
1529
|
|
1465
1530
|
> def filter
|
1466
1531
|
|
@@ -1468,7 +1533,7 @@ Returns the value of attribute filter
|
|
1468
1533
|
|
1469
1534
|
--
|
1470
1535
|
|
1471
|
-
##### [filter=](https://github.com/appium/ruby_lib/blob/
|
1536
|
+
##### [filter=](https://github.com/appium/ruby_lib/blob/95d3a6535472559590c4d043e887d15acc445a1a/lib/appium_lib/android/helper.rb#L9) android
|
1472
1537
|
|
1473
1538
|
> def filter=(value)
|
1474
1539
|
|
@@ -1476,7 +1541,7 @@ convert to string to support symbols
|
|
1476
1541
|
|
1477
1542
|
--
|
1478
1543
|
|
1479
|
-
##### [initialize](https://github.com/appium/ruby_lib/blob/
|
1544
|
+
##### [initialize](https://github.com/appium/ruby_lib/blob/95d3a6535472559590c4d043e887d15acc445a1a/lib/appium_lib/android/helper.rb#L15) android
|
1480
1545
|
|
1481
1546
|
> def initialize
|
1482
1547
|
|
@@ -1488,7 +1553,7 @@ __Returns:__
|
|
1488
1553
|
|
1489
1554
|
--
|
1490
1555
|
|
1491
|
-
##### [reset](https://github.com/appium/ruby_lib/blob/
|
1556
|
+
##### [reset](https://github.com/appium/ruby_lib/blob/95d3a6535472559590c4d043e887d15acc445a1a/lib/appium_lib/android/helper.rb#L21) android
|
1492
1557
|
|
1493
1558
|
> def reset
|
1494
1559
|
|
@@ -1496,7 +1561,7 @@ __Returns:__
|
|
1496
1561
|
|
1497
1562
|
--
|
1498
1563
|
|
1499
|
-
##### [start_element](https://github.com/appium/ruby_lib/blob/
|
1564
|
+
##### [start_element](https://github.com/appium/ruby_lib/blob/95d3a6535472559590c4d043e887d15acc445a1a/lib/appium_lib/android/helper.rb#L28) android
|
1500
1565
|
|
1501
1566
|
> def start_element(name, attrs = [])
|
1502
1567
|
|
@@ -1504,7 +1569,7 @@ http://nokogiri.org/Nokogiri/XML/SAX/Document.html
|
|
1504
1569
|
|
1505
1570
|
--
|
1506
1571
|
|
1507
|
-
##### [_fix_android_native_source](https://github.com/appium/ruby_lib/blob/
|
1572
|
+
##### [_fix_android_native_source](https://github.com/appium/ruby_lib/blob/95d3a6535472559590c4d043e887d15acc445a1a/lib/appium_lib/android/helper.rb#L88) android
|
1508
1573
|
|
1509
1574
|
> def _fix_android_native_source(source)
|
1510
1575
|
|
@@ -1514,7 +1579,7 @@ https://code.google.com/p/android/issues/detail?id=74143
|
|
1514
1579
|
|
1515
1580
|
--
|
1516
1581
|
|
1517
|
-
##### [source](https://github.com/appium/ruby_lib/blob/
|
1582
|
+
##### [source](https://github.com/appium/ruby_lib/blob/95d3a6535472559590c4d043e887d15acc445a1a/lib/appium_lib/android/helper.rb#L116) android
|
1518
1583
|
|
1519
1584
|
> def source
|
1520
1585
|
|
@@ -1526,7 +1591,7 @@ __Returns:__
|
|
1526
1591
|
|
1527
1592
|
--
|
1528
1593
|
|
1529
|
-
##### [get_android_inspect](https://github.com/appium/ruby_lib/blob/
|
1594
|
+
##### [get_android_inspect](https://github.com/appium/ruby_lib/blob/95d3a6535472559590c4d043e887d15acc445a1a/lib/appium_lib/android/helper.rb#L126) android
|
1530
1595
|
|
1531
1596
|
> def get_android_inspect(class_name = false)
|
1532
1597
|
|
@@ -1545,7 +1610,7 @@ __Returns:__
|
|
1545
1610
|
|
1546
1611
|
--
|
1547
1612
|
|
1548
|
-
##### [page](https://github.com/appium/ruby_lib/blob/
|
1613
|
+
##### [page](https://github.com/appium/ruby_lib/blob/95d3a6535472559590c4d043e887d15acc445a1a/lib/appium_lib/android/helper.rb#L152) android
|
1549
1614
|
|
1550
1615
|
> def page(opts = {})
|
1551
1616
|
|
@@ -1564,7 +1629,7 @@ __Returns:__
|
|
1564
1629
|
|
1565
1630
|
--
|
1566
1631
|
|
1567
|
-
##### [current_app](https://github.com/appium/ruby_lib/blob/
|
1632
|
+
##### [current_app](https://github.com/appium/ruby_lib/blob/95d3a6535472559590c4d043e887d15acc445a1a/lib/appium_lib/android/helper.rb#L164) android
|
1568
1633
|
|
1569
1634
|
> def current_app
|
1570
1635
|
|
@@ -1574,7 +1639,7 @@ example line:
|
|
1574
1639
|
|
1575
1640
|
--
|
1576
1641
|
|
1577
|
-
##### [id](https://github.com/appium/ruby_lib/blob/
|
1642
|
+
##### [id](https://github.com/appium/ruby_lib/blob/95d3a6535472559590c4d043e887d15acc445a1a/lib/appium_lib/android/helper.rb#L188) android
|
1578
1643
|
|
1579
1644
|
> def id(id)
|
1580
1645
|
|
@@ -1590,7 +1655,7 @@ __Returns:__
|
|
1590
1655
|
|
1591
1656
|
--
|
1592
1657
|
|
1593
|
-
##### [ids](https://github.com/appium/ruby_lib/blob/
|
1658
|
+
##### [ids](https://github.com/appium/ruby_lib/blob/95d3a6535472559590c4d043e887d15acc445a1a/lib/appium_lib/android/helper.rb#L196) android
|
1594
1659
|
|
1595
1660
|
> def ids(id)
|
1596
1661
|
|
@@ -1606,7 +1671,7 @@ __Returns:__
|
|
1606
1671
|
|
1607
1672
|
--
|
1608
1673
|
|
1609
|
-
##### [ele_index](https://github.com/appium/ruby_lib/blob/
|
1674
|
+
##### [ele_index](https://github.com/appium/ruby_lib/blob/95d3a6535472559590c4d043e887d15acc445a1a/lib/appium_lib/android/helper.rb#L205) android
|
1610
1675
|
|
1611
1676
|
> def ele_index(class_name, index)
|
1612
1677
|
|
@@ -1624,7 +1689,7 @@ __Returns:__
|
|
1624
1689
|
|
1625
1690
|
--
|
1626
1691
|
|
1627
|
-
##### [first_ele](https://github.com/appium/ruby_lib/blob/
|
1692
|
+
##### [first_ele](https://github.com/appium/ruby_lib/blob/95d3a6535472559590c4d043e887d15acc445a1a/lib/appium_lib/android/helper.rb#L223) android
|
1628
1693
|
|
1629
1694
|
> def first_ele(class_name)
|
1630
1695
|
|
@@ -1640,7 +1705,7 @@ __Returns:__
|
|
1640
1705
|
|
1641
1706
|
--
|
1642
1707
|
|
1643
|
-
##### [last_ele](https://github.com/appium/ruby_lib/blob/
|
1708
|
+
##### [last_ele](https://github.com/appium/ruby_lib/blob/95d3a6535472559590c4d043e887d15acc445a1a/lib/appium_lib/android/helper.rb#L230) android
|
1644
1709
|
|
1645
1710
|
> def last_ele(class_name)
|
1646
1711
|
|
@@ -1656,7 +1721,7 @@ __Returns:__
|
|
1656
1721
|
|
1657
1722
|
--
|
1658
1723
|
|
1659
|
-
##### [tag](https://github.com/appium/ruby_lib/blob/
|
1724
|
+
##### [tag](https://github.com/appium/ruby_lib/blob/95d3a6535472559590c4d043e887d15acc445a1a/lib/appium_lib/android/helper.rb#L238) android
|
1660
1725
|
|
1661
1726
|
> def tag(class_name)
|
1662
1727
|
|
@@ -1672,7 +1737,7 @@ __Returns:__
|
|
1672
1737
|
|
1673
1738
|
--
|
1674
1739
|
|
1675
|
-
##### [tags](https://github.com/appium/ruby_lib/blob/
|
1740
|
+
##### [tags](https://github.com/appium/ruby_lib/blob/95d3a6535472559590c4d043e887d15acc445a1a/lib/appium_lib/android/helper.rb#L246) android
|
1676
1741
|
|
1677
1742
|
> def tags(class_name)
|
1678
1743
|
|
@@ -1688,7 +1753,7 @@ __Returns:__
|
|
1688
1753
|
|
1689
1754
|
--
|
1690
1755
|
|
1691
|
-
##### [string_visible_contains](https://github.com/appium/ruby_lib/blob/
|
1756
|
+
##### [string_visible_contains](https://github.com/appium/ruby_lib/blob/95d3a6535472559590c4d043e887d15acc445a1a/lib/appium_lib/android/helper.rb#L288) android
|
1692
1757
|
|
1693
1758
|
> def string_visible_contains(class_name, value)
|
1694
1759
|
|
@@ -1708,7 +1773,7 @@ __Returns:__
|
|
1708
1773
|
|
1709
1774
|
--
|
1710
1775
|
|
1711
|
-
##### [complex_find_contains](https://github.com/appium/ruby_lib/blob/
|
1776
|
+
##### [complex_find_contains](https://github.com/appium/ruby_lib/blob/95d3a6535472559590c4d043e887d15acc445a1a/lib/appium_lib/android/helper.rb#L308) android
|
1712
1777
|
|
1713
1778
|
> def complex_find_contains(element, value)
|
1714
1779
|
|
@@ -1726,7 +1791,7 @@ __Returns:__
|
|
1726
1791
|
|
1727
1792
|
--
|
1728
1793
|
|
1729
|
-
##### [complex_finds_contains](https://github.com/appium/ruby_lib/blob/
|
1794
|
+
##### [complex_finds_contains](https://github.com/appium/ruby_lib/blob/95d3a6535472559590c4d043e887d15acc445a1a/lib/appium_lib/android/helper.rb#L316) android
|
1730
1795
|
|
1731
1796
|
> def complex_finds_contains(element, value)
|
1732
1797
|
|
@@ -1744,7 +1809,7 @@ __Returns:__
|
|
1744
1809
|
|
1745
1810
|
--
|
1746
1811
|
|
1747
|
-
##### [complex_find_exact](https://github.com/appium/ruby_lib/blob/
|
1812
|
+
##### [complex_find_exact](https://github.com/appium/ruby_lib/blob/95d3a6535472559590c4d043e887d15acc445a1a/lib/appium_lib/android/helper.rb#L345) android
|
1748
1813
|
|
1749
1814
|
> def complex_find_exact(class_name, value)
|
1750
1815
|
|
@@ -1762,7 +1827,7 @@ __Returns:__
|
|
1762
1827
|
|
1763
1828
|
--
|
1764
1829
|
|
1765
|
-
##### [complex_finds_exact](https://github.com/appium/ruby_lib/blob/
|
1830
|
+
##### [complex_finds_exact](https://github.com/appium/ruby_lib/blob/95d3a6535472559590c4d043e887d15acc445a1a/lib/appium_lib/android/helper.rb#L353) android
|
1766
1831
|
|
1767
1832
|
> def complex_finds_exact(class_name, value)
|
1768
1833
|
|
@@ -1780,7 +1845,7 @@ __Returns:__
|
|
1780
1845
|
|
1781
1846
|
--
|
1782
1847
|
|
1783
|
-
##### [get_source](https://github.com/appium/ruby_lib/blob/
|
1848
|
+
##### [get_source](https://github.com/appium/ruby_lib/blob/95d3a6535472559590c4d043e887d15acc445a1a/lib/appium_lib/android/helper.rb#L361) android
|
1784
1849
|
|
1785
1850
|
> def get_source
|
1786
1851
|
|
@@ -1794,7 +1859,7 @@ __Returns:__
|
|
1794
1859
|
|
1795
1860
|
--
|
1796
1861
|
|
1797
|
-
##### [TextView](https://github.com/appium/ruby_lib/blob/
|
1862
|
+
##### [TextView](https://github.com/appium/ruby_lib/blob/95d3a6535472559590c4d043e887d15acc445a1a/lib/appium_lib/android/element/text.rb#L4) android
|
1798
1863
|
|
1799
1864
|
> TextView = 'android.widget.TextView'
|
1800
1865
|
|
@@ -1802,7 +1867,7 @@ __Returns:__
|
|
1802
1867
|
|
1803
1868
|
--
|
1804
1869
|
|
1805
|
-
##### [text](https://github.com/appium/ruby_lib/blob/
|
1870
|
+
##### [text](https://github.com/appium/ruby_lib/blob/95d3a6535472559590c4d043e887d15acc445a1a/lib/appium_lib/android/element/text.rb#L10) android
|
1806
1871
|
|
1807
1872
|
> def text(value)
|
1808
1873
|
|
@@ -1819,7 +1884,7 @@ __Returns:__
|
|
1819
1884
|
|
1820
1885
|
--
|
1821
1886
|
|
1822
|
-
##### [texts](https://github.com/appium/ruby_lib/blob/
|
1887
|
+
##### [texts](https://github.com/appium/ruby_lib/blob/95d3a6535472559590c4d043e887d15acc445a1a/lib/appium_lib/android/element/text.rb#L19) android
|
1823
1888
|
|
1824
1889
|
> def texts(value = false)
|
1825
1890
|
|
@@ -1836,7 +1901,7 @@ __Returns:__
|
|
1836
1901
|
|
1837
1902
|
--
|
1838
1903
|
|
1839
|
-
##### [first_text](https://github.com/appium/ruby_lib/blob/
|
1904
|
+
##### [first_text](https://github.com/appium/ruby_lib/blob/95d3a6535472559590c4d043e887d15acc445a1a/lib/appium_lib/android/element/text.rb#L26) android
|
1840
1905
|
|
1841
1906
|
> def first_text
|
1842
1907
|
|
@@ -1848,7 +1913,7 @@ __Returns:__
|
|
1848
1913
|
|
1849
1914
|
--
|
1850
1915
|
|
1851
|
-
##### [last_text](https://github.com/appium/ruby_lib/blob/
|
1916
|
+
##### [last_text](https://github.com/appium/ruby_lib/blob/95d3a6535472559590c4d043e887d15acc445a1a/lib/appium_lib/android/element/text.rb#L32) android
|
1852
1917
|
|
1853
1918
|
> def last_text
|
1854
1919
|
|
@@ -1860,7 +1925,7 @@ __Returns:__
|
|
1860
1925
|
|
1861
1926
|
--
|
1862
1927
|
|
1863
|
-
##### [text_exact](https://github.com/appium/ruby_lib/blob/
|
1928
|
+
##### [text_exact](https://github.com/appium/ruby_lib/blob/95d3a6535472559590c4d043e887d15acc445a1a/lib/appium_lib/android/element/text.rb#L39) android
|
1864
1929
|
|
1865
1930
|
> def text_exact(value)
|
1866
1931
|
|
@@ -1876,7 +1941,7 @@ __Returns:__
|
|
1876
1941
|
|
1877
1942
|
--
|
1878
1943
|
|
1879
|
-
##### [texts_exact](https://github.com/appium/ruby_lib/blob/
|
1944
|
+
##### [texts_exact](https://github.com/appium/ruby_lib/blob/95d3a6535472559590c4d043e887d15acc445a1a/lib/appium_lib/android/element/text.rb#L46) android
|
1880
1945
|
|
1881
1946
|
> def texts_exact(value)
|
1882
1947
|
|
@@ -1892,7 +1957,7 @@ __Returns:__
|
|
1892
1957
|
|
1893
1958
|
--
|
1894
1959
|
|
1895
|
-
##### [_nodeset_to_uiselector](https://github.com/appium/ruby_lib/blob/
|
1960
|
+
##### [_nodeset_to_uiselector](https://github.com/appium/ruby_lib/blob/95d3a6535472559590c4d043e887d15acc445a1a/lib/appium_lib/android/client_xpath.rb#L5) android
|
1896
1961
|
|
1897
1962
|
> def _nodeset_to_uiselector(opts = {})
|
1898
1963
|
|
@@ -1900,7 +1965,7 @@ __Returns:__
|
|
1900
1965
|
|
1901
1966
|
--
|
1902
1967
|
|
1903
|
-
##### [_client_xpath](https://github.com/appium/ruby_lib/blob/
|
1968
|
+
##### [_client_xpath](https://github.com/appium/ruby_lib/blob/95d3a6535472559590c4d043e887d15acc445a1a/lib/appium_lib/android/client_xpath.rb#L20) android
|
1904
1969
|
|
1905
1970
|
> def _client_xpath(opts = {})
|
1906
1971
|
|
@@ -1908,7 +1973,7 @@ __Returns:__
|
|
1908
1973
|
|
1909
1974
|
--
|
1910
1975
|
|
1911
|
-
##### [client_xpath](https://github.com/appium/ruby_lib/blob/
|
1976
|
+
##### [client_xpath](https://github.com/appium/ruby_lib/blob/95d3a6535472559590c4d043e887d15acc445a1a/lib/appium_lib/android/client_xpath.rb#L36) android
|
1912
1977
|
|
1913
1978
|
> def client_xpath(xpath)
|
1914
1979
|
|
@@ -1916,7 +1981,7 @@ __Returns:__
|
|
1916
1981
|
|
1917
1982
|
--
|
1918
1983
|
|
1919
|
-
##### [client_xpaths](https://github.com/appium/ruby_lib/blob/
|
1984
|
+
##### [client_xpaths](https://github.com/appium/ruby_lib/blob/95d3a6535472559590c4d043e887d15acc445a1a/lib/appium_lib/android/client_xpath.rb#L40) android
|
1920
1985
|
|
1921
1986
|
> def client_xpaths(xpath)
|
1922
1987
|
|
@@ -1924,7 +1989,7 @@ __Returns:__
|
|
1924
1989
|
|
1925
1990
|
--
|
1926
1991
|
|
1927
|
-
##### [alert_click](https://github.com/appium/ruby_lib/blob/
|
1992
|
+
##### [alert_click](https://github.com/appium/ruby_lib/blob/95d3a6535472559590c4d043e887d15acc445a1a/lib/appium_lib/android/element/alert.rb#L6) android
|
1928
1993
|
|
1929
1994
|
> def alert_click(value)
|
1930
1995
|
|
@@ -1940,7 +2005,7 @@ __Returns:__
|
|
1940
2005
|
|
1941
2006
|
--
|
1942
2007
|
|
1943
|
-
##### [alert_accept](https://github.com/appium/ruby_lib/blob/
|
2008
|
+
##### [alert_accept](https://github.com/appium/ruby_lib/blob/95d3a6535472559590c4d043e887d15acc445a1a/lib/appium_lib/android/element/alert.rb#L13) android
|
1944
2009
|
|
1945
2010
|
> def alert_accept
|
1946
2011
|
|
@@ -1953,7 +2018,7 @@ __Returns:__
|
|
1953
2018
|
|
1954
2019
|
--
|
1955
2020
|
|
1956
|
-
##### [alert_accept_text](https://github.com/appium/ruby_lib/blob/
|
2021
|
+
##### [alert_accept_text](https://github.com/appium/ruby_lib/blob/95d3a6535472559590c4d043e887d15acc445a1a/lib/appium_lib/android/element/alert.rb#L20) android
|
1957
2022
|
|
1958
2023
|
> def alert_accept_text
|
1959
2024
|
|
@@ -1966,7 +2031,7 @@ __Returns:__
|
|
1966
2031
|
|
1967
2032
|
--
|
1968
2033
|
|
1969
|
-
##### [alert_dismiss](https://github.com/appium/ruby_lib/blob/
|
2034
|
+
##### [alert_dismiss](https://github.com/appium/ruby_lib/blob/95d3a6535472559590c4d043e887d15acc445a1a/lib/appium_lib/android/element/alert.rb#L27) android
|
1970
2035
|
|
1971
2036
|
> def alert_dismiss
|
1972
2037
|
|
@@ -1979,7 +2044,7 @@ __Returns:__
|
|
1979
2044
|
|
1980
2045
|
--
|
1981
2046
|
|
1982
|
-
##### [alert_dismiss_text](https://github.com/appium/ruby_lib/blob/
|
2047
|
+
##### [alert_dismiss_text](https://github.com/appium/ruby_lib/blob/95d3a6535472559590c4d043e887d15acc445a1a/lib/appium_lib/android/element/alert.rb#L34) android
|
1983
2048
|
|
1984
2049
|
> def alert_dismiss_text
|
1985
2050
|
|
@@ -1992,19 +2057,7 @@ __Returns:__
|
|
1992
2057
|
|
1993
2058
|
--
|
1994
2059
|
|
1995
|
-
##### [
|
1996
|
-
|
1997
|
-
> def uiautomator_find
|
1998
|
-
|
1999
|
-
find_element/s can be used with a [UISelector](http://developer.android.com/tools/help/uiautomator/UiSelector.html).
|
2000
|
-
|
2001
|
-
```ruby
|
2002
|
-
find_elements :uiautomator, 'new UiSelector().clickable(true)'
|
2003
|
-
```
|
2004
|
-
|
2005
|
-
--
|
2006
|
-
|
2007
|
-
##### [Button](https://github.com/appium/ruby_lib/blob/d67cbbac43f511515f6e6f53197cfae2bb7671e0/lib/appium_lib/android/element/button.rb#L4) android
|
2060
|
+
##### [Button](https://github.com/appium/ruby_lib/blob/95d3a6535472559590c4d043e887d15acc445a1a/lib/appium_lib/android/element/button.rb#L4) android
|
2008
2061
|
|
2009
2062
|
> Button = 'android.widget.Button'
|
2010
2063
|
|
@@ -2012,7 +2065,7 @@ find_element/s can be used with a [UISelector](http://developer.android.com/tool
|
|
2012
2065
|
|
2013
2066
|
--
|
2014
2067
|
|
2015
|
-
##### [ImageButton](https://github.com/appium/ruby_lib/blob/
|
2068
|
+
##### [ImageButton](https://github.com/appium/ruby_lib/blob/95d3a6535472559590c4d043e887d15acc445a1a/lib/appium_lib/android/element/button.rb#L5) android
|
2016
2069
|
|
2017
2070
|
> ImageButton = 'android.widget.ImageButton'
|
2018
2071
|
|
@@ -2020,7 +2073,7 @@ find_element/s can be used with a [UISelector](http://developer.android.com/tool
|
|
2020
2073
|
|
2021
2074
|
--
|
2022
2075
|
|
2023
|
-
##### [button](https://github.com/appium/ruby_lib/blob/
|
2076
|
+
##### [button](https://github.com/appium/ruby_lib/blob/95d3a6535472559590c4d043e887d15acc445a1a/lib/appium_lib/android/element/button.rb#L43) android
|
2024
2077
|
|
2025
2078
|
> def button(value)
|
2026
2079
|
|
@@ -2037,7 +2090,7 @@ __Returns:__
|
|
2037
2090
|
|
2038
2091
|
--
|
2039
2092
|
|
2040
|
-
##### [buttons](https://github.com/appium/ruby_lib/blob/
|
2093
|
+
##### [buttons](https://github.com/appium/ruby_lib/blob/95d3a6535472559590c4d043e887d15acc445a1a/lib/appium_lib/android/element/button.rb#L60) android
|
2041
2094
|
|
2042
2095
|
> def buttons(value = false)
|
2043
2096
|
|
@@ -2054,7 +2107,7 @@ __Returns:__
|
|
2054
2107
|
|
2055
2108
|
--
|
2056
2109
|
|
2057
|
-
##### [first_button](https://github.com/appium/ruby_lib/blob/
|
2110
|
+
##### [first_button](https://github.com/appium/ruby_lib/blob/95d3a6535472559590c4d043e887d15acc445a1a/lib/appium_lib/android/element/button.rb#L67) android
|
2058
2111
|
|
2059
2112
|
> def first_button
|
2060
2113
|
|
@@ -2066,7 +2119,7 @@ __Returns:__
|
|
2066
2119
|
|
2067
2120
|
--
|
2068
2121
|
|
2069
|
-
##### [last_button](https://github.com/appium/ruby_lib/blob/
|
2122
|
+
##### [last_button](https://github.com/appium/ruby_lib/blob/95d3a6535472559590c4d043e887d15acc445a1a/lib/appium_lib/android/element/button.rb#L73) android
|
2070
2123
|
|
2071
2124
|
> def last_button
|
2072
2125
|
|
@@ -2078,7 +2131,7 @@ __Returns:__
|
|
2078
2131
|
|
2079
2132
|
--
|
2080
2133
|
|
2081
|
-
##### [button_exact](https://github.com/appium/ruby_lib/blob/
|
2134
|
+
##### [button_exact](https://github.com/appium/ruby_lib/blob/95d3a6535472559590c4d043e887d15acc445a1a/lib/appium_lib/android/element/button.rb#L89) android
|
2082
2135
|
|
2083
2136
|
> def button_exact(value)
|
2084
2137
|
|
@@ -2094,7 +2147,7 @@ __Returns:__
|
|
2094
2147
|
|
2095
2148
|
--
|
2096
2149
|
|
2097
|
-
##### [buttons_exact](https://github.com/appium/ruby_lib/blob/
|
2150
|
+
##### [buttons_exact](https://github.com/appium/ruby_lib/blob/95d3a6535472559590c4d043e887d15acc445a1a/lib/appium_lib/android/element/button.rb#L96) android
|
2098
2151
|
|
2099
2152
|
> def buttons_exact(value)
|
2100
2153
|
|
@@ -2110,7 +2163,19 @@ __Returns:__
|
|
2110
2163
|
|
2111
2164
|
--
|
2112
2165
|
|
2113
|
-
##### [
|
2166
|
+
##### [uiautomator_find](https://github.com/appium/ruby_lib/blob/95d3a6535472559590c4d043e887d15acc445a1a/lib/appium_lib/android/mobile_methods.rb#L10) android
|
2167
|
+
|
2168
|
+
> def uiautomator_find
|
2169
|
+
|
2170
|
+
find_element/s can be used with a [UISelector](http://developer.android.com/tools/help/uiautomator/UiSelector.html).
|
2171
|
+
|
2172
|
+
```ruby
|
2173
|
+
find_elements :uiautomator, 'new UiSelector().clickable(true)'
|
2174
|
+
```
|
2175
|
+
|
2176
|
+
--
|
2177
|
+
|
2178
|
+
##### [find](https://github.com/appium/ruby_lib/blob/95d3a6535472559590c4d043e887d15acc445a1a/lib/appium_lib/android/element/generic.rb#L6) android
|
2114
2179
|
|
2115
2180
|
> def find(value)
|
2116
2181
|
|
@@ -2126,7 +2191,7 @@ __Returns:__
|
|
2126
2191
|
|
2127
2192
|
--
|
2128
2193
|
|
2129
|
-
##### [finds](https://github.com/appium/ruby_lib/blob/
|
2194
|
+
##### [finds](https://github.com/appium/ruby_lib/blob/95d3a6535472559590c4d043e887d15acc445a1a/lib/appium_lib/android/element/generic.rb#L13) android
|
2130
2195
|
|
2131
2196
|
> def finds(value)
|
2132
2197
|
|
@@ -2142,7 +2207,7 @@ __Returns:__
|
|
2142
2207
|
|
2143
2208
|
--
|
2144
2209
|
|
2145
|
-
##### [find_exact](https://github.com/appium/ruby_lib/blob/
|
2210
|
+
##### [find_exact](https://github.com/appium/ruby_lib/blob/95d3a6535472559590c4d043e887d15acc445a1a/lib/appium_lib/android/element/generic.rb#L20) android
|
2146
2211
|
|
2147
2212
|
> def find_exact(value)
|
2148
2213
|
|
@@ -2158,7 +2223,7 @@ __Returns:__
|
|
2158
2223
|
|
2159
2224
|
--
|
2160
2225
|
|
2161
|
-
##### [finds_exact](https://github.com/appium/ruby_lib/blob/
|
2226
|
+
##### [finds_exact](https://github.com/appium/ruby_lib/blob/95d3a6535472559590c4d043e887d15acc445a1a/lib/appium_lib/android/element/generic.rb#L27) android
|
2162
2227
|
|
2163
2228
|
> def finds_exact(value)
|
2164
2229
|
|
@@ -2174,7 +2239,7 @@ __Returns:__
|
|
2174
2239
|
|
2175
2240
|
--
|
2176
2241
|
|
2177
|
-
##### [scroll_to](https://github.com/appium/ruby_lib/blob/
|
2242
|
+
##### [scroll_to](https://github.com/appium/ruby_lib/blob/95d3a6535472559590c4d043e887d15acc445a1a/lib/appium_lib/android/element/generic.rb#L39) android
|
2178
2243
|
|
2179
2244
|
> def scroll_to(text)
|
2180
2245
|
|
@@ -2190,7 +2255,7 @@ __Returns:__
|
|
2190
2255
|
|
2191
2256
|
--
|
2192
2257
|
|
2193
|
-
##### [scroll_to_exact](https://github.com/appium/ruby_lib/blob/
|
2258
|
+
##### [scroll_to_exact](https://github.com/appium/ruby_lib/blob/95d3a6535472559590c4d043e887d15acc445a1a/lib/appium_lib/android/element/generic.rb#L51) android
|
2194
2259
|
|
2195
2260
|
> def scroll_to_exact(text)
|
2196
2261
|
|
@@ -2206,7 +2271,7 @@ __Returns:__
|
|
2206
2271
|
|
2207
2272
|
--
|
2208
2273
|
|
2209
|
-
##### [EditText](https://github.com/appium/ruby_lib/blob/
|
2274
|
+
##### [EditText](https://github.com/appium/ruby_lib/blob/95d3a6535472559590c4d043e887d15acc445a1a/lib/appium_lib/android/element/textfield.rb#L3) android
|
2210
2275
|
|
2211
2276
|
> EditText = 'android.widget.EditText'
|
2212
2277
|
|
@@ -2214,7 +2279,7 @@ __Returns:__
|
|
2214
2279
|
|
2215
2280
|
--
|
2216
2281
|
|
2217
|
-
##### [textfield](https://github.com/appium/ruby_lib/blob/
|
2282
|
+
##### [textfield](https://github.com/appium/ruby_lib/blob/95d3a6535472559590c4d043e887d15acc445a1a/lib/appium_lib/android/element/textfield.rb#L9) android
|
2218
2283
|
|
2219
2284
|
> def textfield(value)
|
2220
2285
|
|
@@ -2231,7 +2296,7 @@ __Returns:__
|
|
2231
2296
|
|
2232
2297
|
--
|
2233
2298
|
|
2234
|
-
##### [textfields](https://github.com/appium/ruby_lib/blob/
|
2299
|
+
##### [textfields](https://github.com/appium/ruby_lib/blob/95d3a6535472559590c4d043e887d15acc445a1a/lib/appium_lib/android/element/textfield.rb#L18) android
|
2235
2300
|
|
2236
2301
|
> def textfields(value = false)
|
2237
2302
|
|
@@ -2248,7 +2313,7 @@ __Returns:__
|
|
2248
2313
|
|
2249
2314
|
--
|
2250
2315
|
|
2251
|
-
##### [first_textfield](https://github.com/appium/ruby_lib/blob/
|
2316
|
+
##### [first_textfield](https://github.com/appium/ruby_lib/blob/95d3a6535472559590c4d043e887d15acc445a1a/lib/appium_lib/android/element/textfield.rb#L25) android
|
2252
2317
|
|
2253
2318
|
> def first_textfield
|
2254
2319
|
|
@@ -2260,7 +2325,7 @@ __Returns:__
|
|
2260
2325
|
|
2261
2326
|
--
|
2262
2327
|
|
2263
|
-
##### [last_textfield](https://github.com/appium/ruby_lib/blob/
|
2328
|
+
##### [last_textfield](https://github.com/appium/ruby_lib/blob/95d3a6535472559590c4d043e887d15acc445a1a/lib/appium_lib/android/element/textfield.rb#L31) android
|
2264
2329
|
|
2265
2330
|
> def last_textfield
|
2266
2331
|
|
@@ -2272,7 +2337,7 @@ __Returns:__
|
|
2272
2337
|
|
2273
2338
|
--
|
2274
2339
|
|
2275
|
-
##### [textfield_exact](https://github.com/appium/ruby_lib/blob/
|
2340
|
+
##### [textfield_exact](https://github.com/appium/ruby_lib/blob/95d3a6535472559590c4d043e887d15acc445a1a/lib/appium_lib/android/element/textfield.rb#L38) android
|
2276
2341
|
|
2277
2342
|
> def textfield_exact(value)
|
2278
2343
|
|
@@ -2288,7 +2353,7 @@ __Returns:__
|
|
2288
2353
|
|
2289
2354
|
--
|
2290
2355
|
|
2291
|
-
##### [textfields_exact](https://github.com/appium/ruby_lib/blob/
|
2356
|
+
##### [textfields_exact](https://github.com/appium/ruby_lib/blob/95d3a6535472559590c4d043e887d15acc445a1a/lib/appium_lib/android/element/textfield.rb#L45) android
|
2292
2357
|
|
2293
2358
|
> def textfields_exact(value)
|
2294
2359
|
|
@@ -2304,7 +2369,7 @@ __Returns:__
|
|
2304
2369
|
|
2305
2370
|
--
|
2306
2371
|
|
2307
|
-
##### [value](https://github.com/appium/ruby_lib/blob/
|
2372
|
+
##### [value](https://github.com/appium/ruby_lib/blob/95d3a6535472559590c4d043e887d15acc445a1a/lib/appium_lib/common/patch.rb#L12)
|
2308
2373
|
|
2309
2374
|
> def value
|
2310
2375
|
|
@@ -2314,7 +2379,7 @@ Fixes NoMethodError: undefined method `value' for Selenium::WebDriver::Element
|
|
2314
2379
|
|
2315
2380
|
--
|
2316
2381
|
|
2317
|
-
##### [name](https://github.com/appium/ruby_lib/blob/
|
2382
|
+
##### [name](https://github.com/appium/ruby_lib/blob/95d3a6535472559590c4d043e887d15acc445a1a/lib/appium_lib/common/patch.rb#L19)
|
2318
2383
|
|
2319
2384
|
> def name
|
2320
2385
|
|
@@ -2324,7 +2389,7 @@ Fixes NoMethodError: undefined method `name' for Selenium::WebDriver::Element
|
|
2324
2389
|
|
2325
2390
|
--
|
2326
2391
|
|
2327
|
-
##### [location_rel](https://github.com/appium/ruby_lib/blob/
|
2392
|
+
##### [location_rel](https://github.com/appium/ruby_lib/blob/95d3a6535472559590c4d043e887d15acc445a1a/lib/appium_lib/common/patch.rb#L31)
|
2328
2393
|
|
2329
2394
|
> def location_rel
|
2330
2395
|
|
@@ -2342,7 +2407,7 @@ __Returns:__
|
|
2342
2407
|
|
2343
2408
|
--
|
2344
2409
|
|
2345
|
-
##### [DEFAULT_HEADERS](https://github.com/appium/ruby_lib/blob/
|
2410
|
+
##### [DEFAULT_HEADERS](https://github.com/appium/ruby_lib/blob/95d3a6535472559590c4d043e887d15acc445a1a/lib/appium_lib/common/patch.rb#L147)
|
2346
2411
|
|
2347
2412
|
> DEFAULT_HEADERS = { 'Accept' => CONTENT_TYPE, 'User-Agent' => "appium/ruby_lib/#{::Appium::VERSION}" }
|
2348
2413
|
|