appium_lib 9.0.0 → 9.1.0
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 +4 -4
- data/.rubocop.yml +21 -0
- data/android_tests/lib/android/specs/android/helper.rb +3 -5
- data/android_tests/lib/android/specs/common/command.rb +47 -0
- data/android_tests/lib/android/specs/common/helper.rb +8 -8
- data/android_tests/lib/android/specs/common/web_context.rb +1 -1
- data/android_tests/lib/android/specs/driver.rb +19 -11
- data/android_tests/lib/format.rb +3 -3
- data/android_tests/lib/run.rb +7 -5
- data/android_tests/readme.md +1 -1
- data/appium_lib.gemspec +6 -7
- data/contributing.md +10 -0
- data/docs/android_docs.md +252 -217
- data/docs/ios_docs.md +257 -222
- data/docs/ios_xcuitest.md +32 -4
- data/ios_tests/lib/common.rb +11 -55
- data/ios_tests/lib/ios/specs/common/command.rb +44 -0
- data/ios_tests/lib/ios/specs/common/helper.rb +8 -8
- data/ios_tests/lib/ios/specs/device/device.rb +5 -5
- data/ios_tests/lib/ios/specs/driver.rb +34 -15
- data/ios_tests/lib/ios/specs/ios/element/textfield.rb +1 -1
- data/ios_tests/readme.md +1 -1
- data/ios_tests/upload/sauce_storage.rb +10 -8
- data/lib/appium_lib/android/element/button.rb +3 -3
- data/lib/appium_lib/android/element/text.rb +1 -1
- data/lib/appium_lib/android/element/textfield.rb +1 -1
- data/lib/appium_lib/android/helper.rb +12 -12
- data/lib/appium_lib/android/mobile_methods.rb +1 -3
- data/lib/appium_lib/common/command.rb +55 -0
- data/lib/appium_lib/common/helper.rb +7 -7
- data/lib/appium_lib/common/patch.rb +21 -8
- data/lib/appium_lib/common/search_context.rb +10 -0
- data/lib/appium_lib/common/version.rb +2 -2
- data/lib/appium_lib/common/wait.rb +8 -14
- data/lib/appium_lib/device/device.rb +65 -83
- data/lib/appium_lib/device/multi_touch.rb +2 -2
- data/lib/appium_lib/device/touch_actions.rb +4 -7
- data/lib/appium_lib/driver.rb +66 -38
- data/lib/appium_lib/ios/element/alert.rb +4 -4
- data/lib/appium_lib/ios/element/textfield.rb +3 -3
- data/lib/appium_lib/ios/errors.rb +6 -0
- data/lib/appium_lib/ios/helper.rb +25 -25
- data/lib/appium_lib/ios/mobile_methods.rb +2 -4
- data/readme.md +3 -1
- data/release_notes.md +13 -0
- metadata +23 -12
data/docs/ios_docs.md
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
##### [load_settings](https://github.com/appium/ruby_lib/blob/
|
1
|
+
##### [load_settings](https://github.com/appium/ruby_lib/blob/ba9ec64031f242b3065674b1e4f8b236b391f9fa/lib/appium_lib/driver.rb#L74)
|
2
2
|
|
3
3
|
> def self.load_settings(opts = {})
|
4
4
|
|
@@ -26,7 +26,7 @@ __Returns:__
|
|
26
26
|
|
27
27
|
--
|
28
28
|
|
29
|
-
##### [load_appium_txt](https://github.com/appium/ruby_lib/blob/
|
29
|
+
##### [load_appium_txt](https://github.com/appium/ruby_lib/blob/ba9ec64031f242b3065674b1e4f8b236b391f9fa/lib/appium_lib/driver.rb#L110)
|
30
30
|
|
31
31
|
> def self.load_settings(opts = {})
|
32
32
|
|
@@ -43,6 +43,7 @@ port = 8080
|
|
43
43
|
:app is expanded
|
44
44
|
:require is expanded
|
45
45
|
all keys are converted to symbols
|
46
|
+
rubocop:disable Style/Alias
|
46
47
|
|
47
48
|
__Parameters:__
|
48
49
|
|
@@ -54,7 +55,7 @@ __Returns:__
|
|
54
55
|
|
55
56
|
--
|
56
57
|
|
57
|
-
##### [expand_required_files](https://github.com/appium/ruby_lib/blob/
|
58
|
+
##### [expand_required_files](https://github.com/appium/ruby_lib/blob/ba9ec64031f242b3065674b1e4f8b236b391f9fa/lib/appium_lib/driver.rb#L116)
|
58
59
|
|
59
60
|
> def self.expand_required_files(base_dir, file_paths)
|
60
61
|
|
@@ -72,7 +73,7 @@ __Returns:__
|
|
72
73
|
|
73
74
|
--
|
74
75
|
|
75
|
-
##### [symbolize_keys](https://github.com/appium/ruby_lib/blob/
|
76
|
+
##### [symbolize_keys](https://github.com/appium/ruby_lib/blob/ba9ec64031f242b3065674b1e4f8b236b391f9fa/lib/appium_lib/driver.rb#L148)
|
76
77
|
|
77
78
|
> def self.symbolize_keys(hash)
|
78
79
|
|
@@ -83,7 +84,7 @@ https://github.com/rails/docrails/blob/a3b1105ada3da64acfa3843b164b14b734456a50/
|
|
83
84
|
|
84
85
|
--
|
85
86
|
|
86
|
-
##### [promote_singleton_appium_methods](https://github.com/appium/ruby_lib/blob/
|
87
|
+
##### [promote_singleton_appium_methods](https://github.com/appium/ruby_lib/blob/ba9ec64031f242b3065674b1e4f8b236b391f9fa/lib/appium_lib/driver.rb#L169)
|
87
88
|
|
88
89
|
> def self.promote_singleton_appium_methods(modules)
|
89
90
|
|
@@ -101,7 +102,7 @@ otherwise, the array of modules will be used as the promotion target.
|
|
101
102
|
|
102
103
|
--
|
103
104
|
|
104
|
-
##### [promote_appium_methods](https://github.com/appium/ruby_lib/blob/
|
105
|
+
##### [promote_appium_methods](https://github.com/appium/ruby_lib/blob/ba9ec64031f242b3065674b1e4f8b236b391f9fa/lib/appium_lib/driver.rb#L222)
|
105
106
|
|
106
107
|
> def self.promote_appium_methods(class_array)
|
107
108
|
|
@@ -131,7 +132,17 @@ __Parameters:__
|
|
131
132
|
|
132
133
|
--
|
133
134
|
|
134
|
-
##### [
|
135
|
+
##### [init_caps_for_appium](https://github.com/appium/ruby_lib/blob/ba9ec64031f242b3065674b1e4f8b236b391f9fa/lib/appium_lib/driver.rb#L254)
|
136
|
+
|
137
|
+
> def self.init_caps_for_appium(opts_caps = {})
|
138
|
+
|
139
|
+
except for browser_name, default capability is equal to ::Selenium::WebDriver::Remote::Capabilities.firefox
|
140
|
+
Because Selenium::WebDriver::Remote::Bridge uses Capabilities.firefox by default
|
141
|
+
https://github.com/SeleniumHQ/selenium/blob/selenium-3.0.1/rb/lib/selenium/webdriver/remote/bridge.rb#L67
|
142
|
+
|
143
|
+
--
|
144
|
+
|
145
|
+
##### [global_webdriver_http_sleep](https://github.com/appium/ruby_lib/blob/ba9ec64031f242b3065674b1e4f8b236b391f9fa/lib/appium_lib/driver.rb#L272)
|
135
146
|
|
136
147
|
> def global_webdriver_http_sleep
|
137
148
|
|
@@ -139,7 +150,7 @@ The amount to sleep in seconds before every webdriver http call.
|
|
139
150
|
|
140
151
|
--
|
141
152
|
|
142
|
-
##### [global_webdriver_http_sleep=](https://github.com/appium/ruby_lib/blob/
|
153
|
+
##### [global_webdriver_http_sleep=](https://github.com/appium/ruby_lib/blob/ba9ec64031f242b3065674b1e4f8b236b391f9fa/lib/appium_lib/driver.rb#L272)
|
143
154
|
|
144
155
|
> def global_webdriver_http_sleep=(value)
|
145
156
|
|
@@ -147,7 +158,7 @@ The amount to sleep in seconds before every webdriver http call.
|
|
147
158
|
|
148
159
|
--
|
149
160
|
|
150
|
-
##### [caps](https://github.com/appium/ruby_lib/blob/
|
161
|
+
##### [caps](https://github.com/appium/ruby_lib/blob/ba9ec64031f242b3065674b1e4f8b236b391f9fa/lib/appium_lib/driver.rb#L274)
|
151
162
|
|
152
163
|
> def caps
|
153
164
|
|
@@ -155,7 +166,7 @@ Selenium webdriver capabilities
|
|
155
166
|
|
156
167
|
--
|
157
168
|
|
158
|
-
##### [caps=](https://github.com/appium/ruby_lib/blob/
|
169
|
+
##### [caps=](https://github.com/appium/ruby_lib/blob/ba9ec64031f242b3065674b1e4f8b236b391f9fa/lib/appium_lib/driver.rb#L274)
|
159
170
|
|
160
171
|
> def caps=(value)
|
161
172
|
|
@@ -163,7 +174,7 @@ Selenium webdriver capabilities
|
|
163
174
|
|
164
175
|
--
|
165
176
|
|
166
|
-
##### [custom_url](https://github.com/appium/ruby_lib/blob/
|
177
|
+
##### [custom_url](https://github.com/appium/ruby_lib/blob/ba9ec64031f242b3065674b1e4f8b236b391f9fa/lib/appium_lib/driver.rb#L276)
|
167
178
|
|
168
179
|
> def custom_url
|
169
180
|
|
@@ -171,7 +182,7 @@ Custom URL for the selenium server
|
|
171
182
|
|
172
183
|
--
|
173
184
|
|
174
|
-
##### [custom_url=](https://github.com/appium/ruby_lib/blob/
|
185
|
+
##### [custom_url=](https://github.com/appium/ruby_lib/blob/ba9ec64031f242b3065674b1e4f8b236b391f9fa/lib/appium_lib/driver.rb#L276)
|
175
186
|
|
176
187
|
> def custom_url=(value)
|
177
188
|
|
@@ -179,7 +190,7 @@ Custom URL for the selenium server
|
|
179
190
|
|
180
191
|
--
|
181
192
|
|
182
|
-
##### [export_session](https://github.com/appium/ruby_lib/blob/
|
193
|
+
##### [export_session](https://github.com/appium/ruby_lib/blob/ba9ec64031f242b3065674b1e4f8b236b391f9fa/lib/appium_lib/driver.rb#L278)
|
183
194
|
|
184
195
|
> def export_session
|
185
196
|
|
@@ -187,7 +198,7 @@ Export session id to textfile in /tmp for 3rd party tools
|
|
187
198
|
|
188
199
|
--
|
189
200
|
|
190
|
-
##### [export_session=](https://github.com/appium/ruby_lib/blob/
|
201
|
+
##### [export_session=](https://github.com/appium/ruby_lib/blob/ba9ec64031f242b3065674b1e4f8b236b391f9fa/lib/appium_lib/driver.rb#L278)
|
191
202
|
|
192
203
|
> def export_session=(value)
|
193
204
|
|
@@ -195,7 +206,7 @@ Export session id to textfile in /tmp for 3rd party tools
|
|
195
206
|
|
196
207
|
--
|
197
208
|
|
198
|
-
##### [default_wait](https://github.com/appium/ruby_lib/blob/
|
209
|
+
##### [default_wait](https://github.com/appium/ruby_lib/blob/ba9ec64031f242b3065674b1e4f8b236b391f9fa/lib/appium_lib/driver.rb#L283)
|
199
210
|
|
200
211
|
> def default_wait
|
201
212
|
|
@@ -209,7 +220,7 @@ __Returns:__
|
|
209
220
|
|
210
221
|
--
|
211
222
|
|
212
|
-
##### [default_wait=](https://github.com/appium/ruby_lib/blob/
|
223
|
+
##### [default_wait=](https://github.com/appium/ruby_lib/blob/ba9ec64031f242b3065674b1e4f8b236b391f9fa/lib/appium_lib/driver.rb#L283)
|
213
224
|
|
214
225
|
> def default_wait=(value)
|
215
226
|
|
@@ -223,7 +234,7 @@ __Returns:__
|
|
223
234
|
|
224
235
|
--
|
225
236
|
|
226
|
-
##### [last_waits](https://github.com/appium/ruby_lib/blob/
|
237
|
+
##### [last_waits](https://github.com/appium/ruby_lib/blob/ba9ec64031f242b3065674b1e4f8b236b391f9fa/lib/appium_lib/driver.rb#L285)
|
227
238
|
|
228
239
|
> def last_waits
|
229
240
|
|
@@ -231,7 +242,7 @@ Array of previous wait time values
|
|
231
242
|
|
232
243
|
--
|
233
244
|
|
234
|
-
##### [last_waits=](https://github.com/appium/ruby_lib/blob/
|
245
|
+
##### [last_waits=](https://github.com/appium/ruby_lib/blob/ba9ec64031f242b3065674b1e4f8b236b391f9fa/lib/appium_lib/driver.rb#L285)
|
235
246
|
|
236
247
|
> def last_waits=(value)
|
237
248
|
|
@@ -239,7 +250,7 @@ Array of previous wait time values
|
|
239
250
|
|
240
251
|
--
|
241
252
|
|
242
|
-
##### [sauce_username](https://github.com/appium/ruby_lib/blob/
|
253
|
+
##### [sauce_username](https://github.com/appium/ruby_lib/blob/ba9ec64031f242b3065674b1e4f8b236b391f9fa/lib/appium_lib/driver.rb#L287)
|
243
254
|
|
244
255
|
> def sauce_username
|
245
256
|
|
@@ -247,7 +258,7 @@ Username for use on Sauce Labs
|
|
247
258
|
|
248
259
|
--
|
249
260
|
|
250
|
-
##### [sauce_username=](https://github.com/appium/ruby_lib/blob/
|
261
|
+
##### [sauce_username=](https://github.com/appium/ruby_lib/blob/ba9ec64031f242b3065674b1e4f8b236b391f9fa/lib/appium_lib/driver.rb#L287)
|
251
262
|
|
252
263
|
> def sauce_username=(value)
|
253
264
|
|
@@ -255,7 +266,7 @@ Username for use on Sauce Labs
|
|
255
266
|
|
256
267
|
--
|
257
268
|
|
258
|
-
##### [sauce_access_key](https://github.com/appium/ruby_lib/blob/
|
269
|
+
##### [sauce_access_key](https://github.com/appium/ruby_lib/blob/ba9ec64031f242b3065674b1e4f8b236b391f9fa/lib/appium_lib/driver.rb#L289)
|
259
270
|
|
260
271
|
> def sauce_access_key
|
261
272
|
|
@@ -263,7 +274,7 @@ Access Key for use on Sauce Labs
|
|
263
274
|
|
264
275
|
--
|
265
276
|
|
266
|
-
##### [sauce_access_key=](https://github.com/appium/ruby_lib/blob/
|
277
|
+
##### [sauce_access_key=](https://github.com/appium/ruby_lib/blob/ba9ec64031f242b3065674b1e4f8b236b391f9fa/lib/appium_lib/driver.rb#L289)
|
267
278
|
|
268
279
|
> def sauce_access_key=(value)
|
269
280
|
|
@@ -271,7 +282,7 @@ Access Key for use on Sauce Labs
|
|
271
282
|
|
272
283
|
--
|
273
284
|
|
274
|
-
##### [appium_port](https://github.com/appium/ruby_lib/blob/
|
285
|
+
##### [appium_port](https://github.com/appium/ruby_lib/blob/ba9ec64031f242b3065674b1e4f8b236b391f9fa/lib/appium_lib/driver.rb#L291)
|
275
286
|
|
276
287
|
> def appium_port
|
277
288
|
|
@@ -279,7 +290,7 @@ Appium's server port
|
|
279
290
|
|
280
291
|
--
|
281
292
|
|
282
|
-
##### [appium_port=](https://github.com/appium/ruby_lib/blob/
|
293
|
+
##### [appium_port=](https://github.com/appium/ruby_lib/blob/ba9ec64031f242b3065674b1e4f8b236b391f9fa/lib/appium_lib/driver.rb#L291)
|
283
294
|
|
284
295
|
> def appium_port=(value)
|
285
296
|
|
@@ -287,7 +298,7 @@ Appium's server port
|
|
287
298
|
|
288
299
|
--
|
289
300
|
|
290
|
-
##### [appium_device](https://github.com/appium/ruby_lib/blob/
|
301
|
+
##### [appium_device](https://github.com/appium/ruby_lib/blob/ba9ec64031f242b3065674b1e4f8b236b391f9fa/lib/appium_lib/driver.rb#L293)
|
291
302
|
|
292
303
|
> def appium_device
|
293
304
|
|
@@ -295,7 +306,7 @@ Device type to request from the appium server
|
|
295
306
|
|
296
307
|
--
|
297
308
|
|
298
|
-
##### [appium_device=](https://github.com/appium/ruby_lib/blob/
|
309
|
+
##### [appium_device=](https://github.com/appium/ruby_lib/blob/ba9ec64031f242b3065674b1e4f8b236b391f9fa/lib/appium_lib/driver.rb#L293)
|
299
310
|
|
300
311
|
> def appium_device=(value)
|
301
312
|
|
@@ -303,7 +314,7 @@ Device type to request from the appium server
|
|
303
314
|
|
304
315
|
--
|
305
316
|
|
306
|
-
##### [automation_name](https://github.com/appium/ruby_lib/blob/
|
317
|
+
##### [automation_name](https://github.com/appium/ruby_lib/blob/ba9ec64031f242b3065674b1e4f8b236b391f9fa/lib/appium_lib/driver.rb#L295)
|
307
318
|
|
308
319
|
> def automation_name
|
309
320
|
|
@@ -311,7 +322,7 @@ Automation name sent to appium server
|
|
311
322
|
|
312
323
|
--
|
313
324
|
|
314
|
-
##### [appium_server_version](https://github.com/appium/ruby_lib/blob/
|
325
|
+
##### [appium_server_version](https://github.com/appium/ruby_lib/blob/ba9ec64031f242b3065674b1e4f8b236b391f9fa/lib/appium_lib/driver.rb#L297)
|
315
326
|
|
316
327
|
> def appium_server_version
|
317
328
|
|
@@ -332,7 +343,7 @@ __Returns:__
|
|
332
343
|
|
333
344
|
--
|
334
345
|
|
335
|
-
##### [appium_debug](https://github.com/appium/ruby_lib/blob/
|
346
|
+
##### [appium_debug](https://github.com/appium/ruby_lib/blob/ba9ec64031f242b3065674b1e4f8b236b391f9fa/lib/appium_lib/driver.rb#L299)
|
336
347
|
|
337
348
|
> def appium_debug
|
338
349
|
|
@@ -340,7 +351,7 @@ Boolean debug mode for the Appium Ruby bindings
|
|
340
351
|
|
341
352
|
--
|
342
353
|
|
343
|
-
##### [appium_debug=](https://github.com/appium/ruby_lib/blob/
|
354
|
+
##### [appium_debug=](https://github.com/appium/ruby_lib/blob/ba9ec64031f242b3065674b1e4f8b236b391f9fa/lib/appium_lib/driver.rb#L299)
|
344
355
|
|
345
356
|
> def appium_debug=(value)
|
346
357
|
|
@@ -348,7 +359,7 @@ Boolean debug mode for the Appium Ruby bindings
|
|
348
359
|
|
349
360
|
--
|
350
361
|
|
351
|
-
##### [listener](https://github.com/appium/ruby_lib/blob/
|
362
|
+
##### [listener](https://github.com/appium/ruby_lib/blob/ba9ec64031f242b3065674b1e4f8b236b391f9fa/lib/appium_lib/driver.rb#L301)
|
352
363
|
|
353
364
|
> def listener
|
354
365
|
|
@@ -356,7 +367,7 @@ instance of AbstractEventListener for logging support
|
|
356
367
|
|
357
368
|
--
|
358
369
|
|
359
|
-
##### [listener=](https://github.com/appium/ruby_lib/blob/
|
370
|
+
##### [listener=](https://github.com/appium/ruby_lib/blob/ba9ec64031f242b3065674b1e4f8b236b391f9fa/lib/appium_lib/driver.rb#L301)
|
360
371
|
|
361
372
|
> def listener=(value)
|
362
373
|
|
@@ -364,7 +375,7 @@ instance of AbstractEventListener for logging support
|
|
364
375
|
|
365
376
|
--
|
366
377
|
|
367
|
-
##### [driver](https://github.com/appium/ruby_lib/blob/
|
378
|
+
##### [driver](https://github.com/appium/ruby_lib/blob/ba9ec64031f242b3065674b1e4f8b236b391f9fa/lib/appium_lib/driver.rb#L304)
|
368
379
|
|
369
380
|
> def driver
|
370
381
|
|
@@ -376,7 +387,7 @@ __Returns:__
|
|
376
387
|
|
377
388
|
--
|
378
389
|
|
379
|
-
##### [initialize](https://github.com/appium/ruby_lib/blob/
|
390
|
+
##### [initialize](https://github.com/appium/ruby_lib/blob/ba9ec64031f242b3065674b1e4f8b236b391f9fa/lib/appium_lib/driver.rb#L325)
|
380
391
|
|
381
392
|
> def initialize(opts = {})
|
382
393
|
|
@@ -407,7 +418,7 @@ __Returns:__
|
|
407
418
|
|
408
419
|
--
|
409
420
|
|
410
|
-
##### [driver_attributes](https://github.com/appium/ruby_lib/blob/
|
421
|
+
##### [driver_attributes](https://github.com/appium/ruby_lib/blob/ba9ec64031f242b3065674b1e4f8b236b391f9fa/lib/appium_lib/driver.rb#L398)
|
411
422
|
|
412
423
|
> def driver_attributes
|
413
424
|
|
@@ -415,7 +426,7 @@ Returns a hash of the driver attributes
|
|
415
426
|
|
416
427
|
--
|
417
428
|
|
418
|
-
##### [device_is_android?](https://github.com/appium/ruby_lib/blob/
|
429
|
+
##### [device_is_android?](https://github.com/appium/ruby_lib/blob/ba9ec64031f242b3065674b1e4f8b236b391f9fa/lib/appium_lib/driver.rb#L420)
|
419
430
|
|
420
431
|
> def device_is_android?
|
421
432
|
|
@@ -427,7 +438,7 @@ __Returns:__
|
|
427
438
|
|
428
439
|
--
|
429
440
|
|
430
|
-
##### [automation_name_is_xcuitest?](https://github.com/appium/ruby_lib/blob/
|
441
|
+
##### [automation_name_is_xcuitest?](https://github.com/appium/ruby_lib/blob/ba9ec64031f242b3065674b1e4f8b236b391f9fa/lib/appium_lib/driver.rb#L426)
|
431
442
|
|
432
443
|
> def automation_name_is_xcuitest?
|
433
444
|
|
@@ -439,7 +450,7 @@ __Returns:__
|
|
439
450
|
|
440
451
|
--
|
441
452
|
|
442
|
-
##### [check_server_version_xcuitest](https://github.com/appium/ruby_lib/blob/
|
453
|
+
##### [check_server_version_xcuitest](https://github.com/appium/ruby_lib/blob/ba9ec64031f242b3065674b1e4f8b236b391f9fa/lib/appium_lib/driver.rb#L433)
|
443
454
|
|
444
455
|
> def check_server_version_xcuitest
|
445
456
|
|
@@ -452,7 +463,7 @@ __Returns:__
|
|
452
463
|
|
453
464
|
--
|
454
465
|
|
455
|
-
##### [absolute_app_path](https://github.com/appium/ruby_lib/blob/
|
466
|
+
##### [absolute_app_path](https://github.com/appium/ruby_lib/blob/ba9ec64031f242b3065674b1e4f8b236b391f9fa/lib/appium_lib/driver.rb#L464)
|
456
467
|
|
457
468
|
> def self.absolute_app_path(opts)
|
458
469
|
|
@@ -469,7 +480,7 @@ __Returns:__
|
|
469
480
|
|
470
481
|
--
|
471
482
|
|
472
|
-
##### [server_url](https://github.com/appium/ruby_lib/blob/
|
483
|
+
##### [server_url](https://github.com/appium/ruby_lib/blob/ba9ec64031f242b3065674b1e4f8b236b391f9fa/lib/appium_lib/driver.rb#L497)
|
473
484
|
|
474
485
|
> def server_url
|
475
486
|
|
@@ -481,7 +492,7 @@ __Returns:__
|
|
481
492
|
|
482
493
|
--
|
483
494
|
|
484
|
-
##### [restart](https://github.com/appium/ruby_lib/blob/
|
495
|
+
##### [restart](https://github.com/appium/ruby_lib/blob/ba9ec64031f242b3065674b1e4f8b236b391f9fa/lib/appium_lib/driver.rb#L508)
|
485
496
|
|
486
497
|
> def restart
|
487
498
|
|
@@ -493,7 +504,7 @@ __Returns:__
|
|
493
504
|
|
494
505
|
--
|
495
506
|
|
496
|
-
##### [screenshot](https://github.com/appium/ruby_lib/blob/
|
507
|
+
##### [screenshot](https://github.com/appium/ruby_lib/blob/ba9ec64031f242b3065674b1e4f8b236b391f9fa/lib/appium_lib/driver.rb#L519)
|
497
508
|
|
498
509
|
> def screenshot(png_save_path)
|
499
510
|
|
@@ -511,7 +522,7 @@ __Returns:__
|
|
511
522
|
|
512
523
|
--
|
513
524
|
|
514
|
-
##### [driver_quit](https://github.com/appium/ruby_lib/blob/
|
525
|
+
##### [driver_quit](https://github.com/appium/ruby_lib/blob/ba9ec64031f242b3065674b1e4f8b236b391f9fa/lib/appium_lib/driver.rb#L526)
|
515
526
|
|
516
527
|
> def driver_quit
|
517
528
|
|
@@ -523,7 +534,7 @@ __Returns:__
|
|
523
534
|
|
524
535
|
--
|
525
536
|
|
526
|
-
##### [start_driver](https://github.com/appium/ruby_lib/blob/
|
537
|
+
##### [start_driver](https://github.com/appium/ruby_lib/blob/ba9ec64031f242b3065674b1e4f8b236b391f9fa/lib/appium_lib/driver.rb#L536)
|
527
538
|
|
528
539
|
> def start_driver
|
529
540
|
|
@@ -535,7 +546,7 @@ __Returns:__
|
|
535
546
|
|
536
547
|
--
|
537
548
|
|
538
|
-
##### [no_wait](https://github.com/appium/ruby_lib/blob/
|
549
|
+
##### [no_wait](https://github.com/appium/ruby_lib/blob/ba9ec64031f242b3065674b1e4f8b236b391f9fa/lib/appium_lib/driver.rb#L573)
|
539
550
|
|
540
551
|
> def no_wait
|
541
552
|
|
@@ -543,7 +554,7 @@ Set implicit wait and default_wait to zero.
|
|
543
554
|
|
544
555
|
--
|
545
556
|
|
546
|
-
##### [set_wait](https://github.com/appium/ruby_lib/blob/
|
557
|
+
##### [set_wait](https://github.com/appium/ruby_lib/blob/ba9ec64031f242b3065674b1e4f8b236b391f9fa/lib/appium_lib/driver.rb#L592)
|
547
558
|
|
548
559
|
> def set_wait(timeout = nil)
|
549
560
|
|
@@ -568,7 +579,7 @@ __Returns:__
|
|
568
579
|
|
569
580
|
--
|
570
581
|
|
571
|
-
##### [exists](https://github.com/appium/ruby_lib/blob/
|
582
|
+
##### [exists](https://github.com/appium/ruby_lib/blob/ba9ec64031f242b3065674b1e4f8b236b391f9fa/lib/appium_lib/driver.rb#L619)
|
572
583
|
|
573
584
|
> def exists(pre_check = 0, post_check = @default_wait, &search_block)
|
574
585
|
|
@@ -594,7 +605,7 @@ __Returns:__
|
|
594
605
|
|
595
606
|
--
|
596
607
|
|
597
|
-
##### [execute_script](https://github.com/appium/ruby_lib/blob/
|
608
|
+
##### [execute_script](https://github.com/appium/ruby_lib/blob/ba9ec64031f242b3065674b1e4f8b236b391f9fa/lib/appium_lib/driver.rb#L643)
|
598
609
|
|
599
610
|
> def execute_script(script, *args)
|
600
611
|
|
@@ -612,7 +623,7 @@ __Returns:__
|
|
612
623
|
|
613
624
|
--
|
614
625
|
|
615
|
-
##### [find_elements](https://github.com/appium/ruby_lib/blob/
|
626
|
+
##### [find_elements](https://github.com/appium/ruby_lib/blob/ba9ec64031f242b3065674b1e4f8b236b391f9fa/lib/appium_lib/driver.rb#L651)
|
616
627
|
|
617
628
|
> def find_elements(*args)
|
618
629
|
|
@@ -628,7 +639,7 @@ __Returns:__
|
|
628
639
|
|
629
640
|
--
|
630
641
|
|
631
|
-
##### [find_element](https://github.com/appium/ruby_lib/blob/
|
642
|
+
##### [find_element](https://github.com/appium/ruby_lib/blob/ba9ec64031f242b3065674b1e4f8b236b391f9fa/lib/appium_lib/driver.rb#L659)
|
632
643
|
|
633
644
|
> def find_element(*args)
|
634
645
|
|
@@ -644,7 +655,7 @@ __Returns:__
|
|
644
655
|
|
645
656
|
--
|
646
657
|
|
647
|
-
##### [set_location](https://github.com/appium/ruby_lib/blob/
|
658
|
+
##### [set_location](https://github.com/appium/ruby_lib/blob/ba9ec64031f242b3065674b1e4f8b236b391f9fa/lib/appium_lib/driver.rb#L672)
|
648
659
|
|
649
660
|
> def set_location(opts = {})
|
650
661
|
|
@@ -660,7 +671,7 @@ __Returns:__
|
|
660
671
|
|
661
672
|
--
|
662
673
|
|
663
|
-
##### [x](https://github.com/appium/ruby_lib/blob/
|
674
|
+
##### [x](https://github.com/appium/ruby_lib/blob/ba9ec64031f242b3065674b1e4f8b236b391f9fa/lib/appium_lib/driver.rb#L682)
|
664
675
|
|
665
676
|
> def x
|
666
677
|
|
@@ -673,7 +684,7 @@ __Returns:__
|
|
673
684
|
|
674
685
|
--
|
675
686
|
|
676
|
-
##### [logger=](https://github.com/appium/ruby_lib/blob/
|
687
|
+
##### [logger=](https://github.com/appium/ruby_lib/blob/ba9ec64031f242b3065674b1e4f8b236b391f9fa/lib/appium_lib/logger.rb#L13)
|
677
688
|
|
678
689
|
> def logger=(value)
|
679
690
|
|
@@ -685,7 +696,7 @@ __Parameters:__
|
|
685
696
|
|
686
697
|
--
|
687
698
|
|
688
|
-
##### [logger](https://github.com/appium/ruby_lib/blob/
|
699
|
+
##### [logger](https://github.com/appium/ruby_lib/blob/ba9ec64031f242b3065674b1e4f8b236b391f9fa/lib/appium_lib/logger.rb#L17)
|
689
700
|
|
690
701
|
> def logger
|
691
702
|
|
@@ -693,15 +704,7 @@ __Parameters:__
|
|
693
704
|
|
694
705
|
--
|
695
706
|
|
696
|
-
##### [
|
697
|
-
|
698
|
-
> NoArgMethods = {
|
699
|
-
|
700
|
-
|
701
|
-
|
702
|
-
--
|
703
|
-
|
704
|
-
##### [app_strings](https://github.com/appium/ruby_lib/blob/54ff9c45df80ce901b718347e79e761f93a4316b/lib/appium_lib/device/device.rb#L25)
|
707
|
+
##### [app_strings](https://github.com/appium/ruby_lib/blob/ba9ec64031f242b3065674b1e4f8b236b391f9fa/lib/appium_lib/device/device.rb#L7)
|
705
708
|
|
706
709
|
> def app_strings
|
707
710
|
|
@@ -712,7 +715,7 @@ app_strings #=> "TransitionsTitle"=>"Transitions", "WebTitle"=>"Web"
|
|
712
715
|
|
713
716
|
--
|
714
717
|
|
715
|
-
##### [background_app](https://github.com/appium/ruby_lib/blob/
|
718
|
+
##### [background_app](https://github.com/appium/ruby_lib/blob/ba9ec64031f242b3065674b1e4f8b236b391f9fa/lib/appium_lib/device/device.rb#L13)
|
716
719
|
|
717
720
|
> def background_app
|
718
721
|
|
@@ -721,7 +724,7 @@ This is a blocking application
|
|
721
724
|
|
722
725
|
--
|
723
726
|
|
724
|
-
##### [current_activity](https://github.com/appium/ruby_lib/blob/
|
727
|
+
##### [current_activity](https://github.com/appium/ruby_lib/blob/ba9ec64031f242b3065674b1e4f8b236b391f9fa/lib/appium_lib/device/device.rb#L18)
|
725
728
|
|
726
729
|
> def current_activity
|
727
730
|
|
@@ -729,7 +732,7 @@ This is a blocking application
|
|
729
732
|
|
730
733
|
--
|
731
734
|
|
732
|
-
##### [launch_app](https://github.com/appium/ruby_lib/blob/
|
735
|
+
##### [launch_app](https://github.com/appium/ruby_lib/blob/ba9ec64031f242b3065674b1e4f8b236b391f9fa/lib/appium_lib/device/device.rb#L20)
|
733
736
|
|
734
737
|
> def launch_app
|
735
738
|
|
@@ -737,7 +740,7 @@ Start the simulator and application configured with desired capabilities
|
|
737
740
|
|
738
741
|
--
|
739
742
|
|
740
|
-
##### [reset](https://github.com/appium/ruby_lib/blob/
|
743
|
+
##### [reset](https://github.com/appium/ruby_lib/blob/ba9ec64031f242b3065674b1e4f8b236b391f9fa/lib/appium_lib/device/device.rb#L23)
|
741
744
|
|
742
745
|
> def reset
|
743
746
|
|
@@ -745,7 +748,7 @@ Reset the device, relaunching the application.
|
|
745
748
|
|
746
749
|
--
|
747
750
|
|
748
|
-
##### [shake](https://github.com/appium/ruby_lib/blob/
|
751
|
+
##### [shake](https://github.com/appium/ruby_lib/blob/ba9ec64031f242b3065674b1e4f8b236b391f9fa/lib/appium_lib/device/device.rb#L26)
|
749
752
|
|
750
753
|
> def shake
|
751
754
|
|
@@ -753,7 +756,7 @@ Cause the device to shake
|
|
753
756
|
|
754
757
|
--
|
755
758
|
|
756
|
-
##### [toggle_flight_mode](https://github.com/appium/ruby_lib/blob/
|
759
|
+
##### [toggle_flight_mode](https://github.com/appium/ruby_lib/blob/ba9ec64031f242b3065674b1e4f8b236b391f9fa/lib/appium_lib/device/device.rb#L29)
|
757
760
|
|
758
761
|
> def toggle_flight_mode
|
759
762
|
|
@@ -761,7 +764,7 @@ Toggle flight mode on or off
|
|
761
764
|
|
762
765
|
--
|
763
766
|
|
764
|
-
##### [device_locked?](https://github.com/appium/ruby_lib/blob/
|
767
|
+
##### [device_locked?](https://github.com/appium/ruby_lib/blob/ba9ec64031f242b3065674b1e4f8b236b391f9fa/lib/appium_lib/device/device.rb#L32)
|
765
768
|
|
766
769
|
> def device_locked?
|
767
770
|
|
@@ -769,7 +772,7 @@ Toggle flight mode on or off
|
|
769
772
|
|
770
773
|
--
|
771
774
|
|
772
|
-
##### [hide_keyboard](https://github.com/appium/ruby_lib/blob/
|
775
|
+
##### [hide_keyboard](https://github.com/appium/ruby_lib/blob/ba9ec64031f242b3065674b1e4f8b236b391f9fa/lib/appium_lib/device/device.rb#L34)
|
773
776
|
|
774
777
|
> def hide_keyboard
|
775
778
|
|
@@ -782,7 +785,7 @@ Defaults to 'Done'.
|
|
782
785
|
|
783
786
|
--
|
784
787
|
|
785
|
-
##### [press_keycode](https://github.com/appium/ruby_lib/blob/
|
788
|
+
##### [press_keycode](https://github.com/appium/ruby_lib/blob/ba9ec64031f242b3065674b1e4f8b236b391f9fa/lib/appium_lib/device/device.rb#L43)
|
786
789
|
|
787
790
|
> def press_keycode
|
788
791
|
|
@@ -797,7 +800,7 @@ __Parameters:__
|
|
797
800
|
|
798
801
|
--
|
799
802
|
|
800
|
-
##### [long_press_keycode](https://github.com/appium/ruby_lib/blob/
|
803
|
+
##### [long_press_keycode](https://github.com/appium/ruby_lib/blob/ba9ec64031f242b3065674b1e4f8b236b391f9fa/lib/appium_lib/device/device.rb#L49)
|
801
804
|
|
802
805
|
> def long_press_keycode
|
803
806
|
|
@@ -812,7 +815,7 @@ __Parameters:__
|
|
812
815
|
|
813
816
|
--
|
814
817
|
|
815
|
-
##### [push_file](https://github.com/appium/ruby_lib/blob/
|
818
|
+
##### [push_file](https://github.com/appium/ruby_lib/blob/ba9ec64031f242b3065674b1e4f8b236b391f9fa/lib/appium_lib/device/device.rb#L55)
|
816
819
|
|
817
820
|
> def push_file
|
818
821
|
|
@@ -826,7 +829,7 @@ __Parameters:__
|
|
826
829
|
|
827
830
|
--
|
828
831
|
|
829
|
-
##### [pull_file](https://github.com/appium/ruby_lib/blob/
|
832
|
+
##### [pull_file](https://github.com/appium/ruby_lib/blob/ba9ec64031f242b3065674b1e4f8b236b391f9fa/lib/appium_lib/device/device.rb#L60)
|
830
833
|
|
831
834
|
> def pull_file
|
832
835
|
|
@@ -843,7 +846,7 @@ __Parameters:__
|
|
843
846
|
|
844
847
|
--
|
845
848
|
|
846
|
-
##### [pull_folder](https://github.com/appium/ruby_lib/blob/
|
849
|
+
##### [pull_folder](https://github.com/appium/ruby_lib/blob/ba9ec64031f242b3065674b1e4f8b236b391f9fa/lib/appium_lib/device/device.rb#L70)
|
847
850
|
|
848
851
|
> def pull_folder
|
849
852
|
|
@@ -858,7 +861,7 @@ __Parameters:__
|
|
858
861
|
|
859
862
|
--
|
860
863
|
|
861
|
-
##### [touch_id](https://github.com/appium/ruby_lib/blob/
|
864
|
+
##### [touch_id](https://github.com/appium/ruby_lib/blob/ba9ec64031f242b3065674b1e4f8b236b391f9fa/lib/appium_lib/device/device.rb#L78)
|
862
865
|
|
863
866
|
> def touch_id
|
864
867
|
|
@@ -875,7 +878,7 @@ Defaults to true.
|
|
875
878
|
|
876
879
|
--
|
877
880
|
|
878
|
-
##### [end_coverage](https://github.com/appium/ruby_lib/blob/
|
881
|
+
##### [end_coverage](https://github.com/appium/ruby_lib/blob/ba9ec64031f242b3065674b1e4f8b236b391f9fa/lib/appium_lib/device/device.rb#L87)
|
879
882
|
|
880
883
|
> def end_coverage
|
881
884
|
|
@@ -889,7 +892,7 @@ __Parameters:__
|
|
889
892
|
|
890
893
|
--
|
891
894
|
|
892
|
-
##### [get_settings](https://github.com/appium/ruby_lib/blob/
|
895
|
+
##### [get_settings](https://github.com/appium/ruby_lib/blob/ba9ec64031f242b3065674b1e4f8b236b391f9fa/lib/appium_lib/device/device.rb#L92)
|
893
896
|
|
894
897
|
> def get_settings
|
895
898
|
|
@@ -897,7 +900,7 @@ Get appium Settings for current test session
|
|
897
900
|
|
898
901
|
--
|
899
902
|
|
900
|
-
##### [extend_search_contexts](https://github.com/appium/ruby_lib/blob/
|
903
|
+
##### [extend_search_contexts](https://github.com/appium/ruby_lib/blob/ba9ec64031f242b3065674b1e4f8b236b391f9fa/lib/appium_lib/device/device.rb#L356)
|
901
904
|
|
902
905
|
> def extend_search_contexts
|
903
906
|
|
@@ -905,7 +908,7 @@ Get appium Settings for current test session
|
|
905
908
|
|
906
909
|
--
|
907
910
|
|
908
|
-
##### [find_element](https://github.com/appium/ruby_lib/blob/
|
911
|
+
##### [find_element](https://github.com/appium/ruby_lib/blob/ba9ec64031f242b3065674b1e4f8b236b391f9fa/lib/appium_lib/device/device.rb#L356)
|
909
912
|
|
910
913
|
> def find_element
|
911
914
|
|
@@ -913,7 +916,7 @@ Get appium Settings for current test session
|
|
913
916
|
|
914
917
|
--
|
915
918
|
|
916
|
-
##### [find_elements](https://github.com/appium/ruby_lib/blob/
|
919
|
+
##### [find_elements](https://github.com/appium/ruby_lib/blob/ba9ec64031f242b3065674b1e4f8b236b391f9fa/lib/appium_lib/device/device.rb#L356)
|
917
920
|
|
918
921
|
> def find_elements
|
919
922
|
|
@@ -925,7 +928,7 @@ find_element/s with their accessibility_id
|
|
925
928
|
|
926
929
|
--
|
927
930
|
|
928
|
-
##### [add_touch_actions](https://github.com/appium/ruby_lib/blob/
|
931
|
+
##### [add_touch_actions](https://github.com/appium/ruby_lib/blob/ba9ec64031f242b3065674b1e4f8b236b391f9fa/lib/appium_lib/device/device.rb#L388)
|
929
932
|
|
930
933
|
> def add_touch_actions
|
931
934
|
|
@@ -933,7 +936,7 @@ find_element/s with their accessibility_id
|
|
933
936
|
|
934
937
|
--
|
935
938
|
|
936
|
-
##### [add_ime_actions](https://github.com/appium/ruby_lib/blob/
|
939
|
+
##### [add_ime_actions](https://github.com/appium/ruby_lib/blob/ba9ec64031f242b3065674b1e4f8b236b391f9fa/lib/appium_lib/device/device.rb#L411)
|
937
940
|
|
938
941
|
> def add_ime_actions
|
939
942
|
|
@@ -941,7 +944,7 @@ find_element/s with their accessibility_id
|
|
941
944
|
|
942
945
|
--
|
943
946
|
|
944
|
-
##### [set_context](https://github.com/appium/ruby_lib/blob/
|
947
|
+
##### [set_context](https://github.com/appium/ruby_lib/blob/ba9ec64031f242b3065674b1e4f8b236b391f9fa/lib/appium_lib/device/device.rb#L486)
|
945
948
|
|
946
949
|
> def set_context
|
947
950
|
|
@@ -956,7 +959,7 @@ __Parameters:__
|
|
956
959
|
|
957
960
|
--
|
958
961
|
|
959
|
-
##### [current_context](https://github.com/appium/ruby_lib/blob/
|
962
|
+
##### [current_context](https://github.com/appium/ruby_lib/blob/ba9ec64031f242b3065674b1e4f8b236b391f9fa/lib/appium_lib/device/device.rb#L494)
|
960
963
|
|
961
964
|
> def current_context
|
962
965
|
|
@@ -968,7 +971,7 @@ __Returns:__
|
|
968
971
|
|
969
972
|
--
|
970
973
|
|
971
|
-
##### [available_contexts](https://github.com/appium/ruby_lib/blob/
|
974
|
+
##### [available_contexts](https://github.com/appium/ruby_lib/blob/ba9ec64031f242b3065674b1e4f8b236b391f9fa/lib/appium_lib/device/device.rb#L497)
|
972
975
|
|
973
976
|
> def available_contexts
|
974
977
|
|
@@ -980,7 +983,7 @@ __Returns:__
|
|
980
983
|
|
981
984
|
--
|
982
985
|
|
983
|
-
##### [within_context](https://github.com/appium/ruby_lib/blob/
|
986
|
+
##### [within_context](https://github.com/appium/ruby_lib/blob/ba9ec64031f242b3065674b1e4f8b236b391f9fa/lib/appium_lib/device/device.rb#L507)
|
984
987
|
|
985
988
|
> def within_context(context)
|
986
989
|
|
@@ -996,7 +999,7 @@ __Parameters:__
|
|
996
999
|
|
997
1000
|
--
|
998
1001
|
|
999
|
-
##### [switch_to_default_context](https://github.com/appium/ruby_lib/blob/
|
1002
|
+
##### [switch_to_default_context](https://github.com/appium/ruby_lib/blob/ba9ec64031f242b3065674b1e4f8b236b391f9fa/lib/appium_lib/device/device.rb#L515)
|
1000
1003
|
|
1001
1004
|
> def switch_to_default_context
|
1002
1005
|
|
@@ -1004,7 +1007,7 @@ Change to the default context. This is equivalent to `set_context nil`.
|
|
1004
1007
|
|
1005
1008
|
--
|
1006
1009
|
|
1007
|
-
##### [pinch](https://github.com/appium/ruby_lib/blob/
|
1010
|
+
##### [pinch](https://github.com/appium/ruby_lib/blob/ba9ec64031f242b3065674b1e4f8b236b391f9fa/lib/appium_lib/device/multi_touch.rb#L28)
|
1008
1011
|
|
1009
1012
|
> def pinch(percentage = 25, auto_perform = true)
|
1010
1013
|
|
@@ -1023,7 +1026,7 @@ __Parameters:__
|
|
1023
1026
|
|
1024
1027
|
--
|
1025
1028
|
|
1026
|
-
##### [zoom](https://github.com/appium/ruby_lib/blob/
|
1029
|
+
##### [zoom](https://github.com/appium/ruby_lib/blob/ba9ec64031f242b3065674b1e4f8b236b391f9fa/lib/appium_lib/device/multi_touch.rb#L64)
|
1027
1030
|
|
1028
1031
|
> def zoom(percentage = 200, auto_perform = true)
|
1029
1032
|
|
@@ -1042,7 +1045,7 @@ __Parameters:__
|
|
1042
1045
|
|
1043
1046
|
--
|
1044
1047
|
|
1045
|
-
##### [initialize](https://github.com/appium/ruby_lib/blob/
|
1048
|
+
##### [initialize](https://github.com/appium/ruby_lib/blob/ba9ec64031f242b3065674b1e4f8b236b391f9fa/lib/appium_lib/device/multi_touch.rb#L95)
|
1046
1049
|
|
1047
1050
|
> def initialize
|
1048
1051
|
|
@@ -1054,7 +1057,7 @@ __Returns:__
|
|
1054
1057
|
|
1055
1058
|
--
|
1056
1059
|
|
1057
|
-
##### [add](https://github.com/appium/ruby_lib/blob/
|
1060
|
+
##### [add](https://github.com/appium/ruby_lib/blob/ba9ec64031f242b3065674b1e4f8b236b391f9fa/lib/appium_lib/device/multi_touch.rb#L101)
|
1058
1061
|
|
1059
1062
|
> def add(chain)
|
1060
1063
|
|
@@ -1066,7 +1069,7 @@ __Parameters:__
|
|
1066
1069
|
|
1067
1070
|
--
|
1068
1071
|
|
1069
|
-
##### [perform](https://github.com/appium/ruby_lib/blob/
|
1072
|
+
##### [perform](https://github.com/appium/ruby_lib/blob/ba9ec64031f242b3065674b1e4f8b236b391f9fa/lib/appium_lib/device/multi_touch.rb#L106)
|
1070
1073
|
|
1071
1074
|
> def perform
|
1072
1075
|
|
@@ -1074,23 +1077,23 @@ Ask Appium to perform the actions
|
|
1074
1077
|
|
1075
1078
|
--
|
1076
1079
|
|
1077
|
-
##### [ACTIONS](https://github.com/appium/ruby_lib/blob/
|
1080
|
+
##### [ACTIONS](https://github.com/appium/ruby_lib/blob/ba9ec64031f242b3065674b1e4f8b236b391f9fa/lib/appium_lib/device/touch_actions.rb#L11)
|
1078
1081
|
|
1079
|
-
> ACTIONS = [:move_to, :long_press, :double_tap, :two_finger_tap, :press, :release, :tap, :wait, :perform]
|
1082
|
+
> ACTIONS = [:move_to, :long_press, :double_tap, :two_finger_tap, :press, :release, :tap, :wait, :perform].freeze
|
1080
1083
|
|
1081
1084
|
|
1082
1085
|
|
1083
1086
|
--
|
1084
1087
|
|
1085
|
-
##### [COMPLEX_ACTIONS](https://github.com/appium/ruby_lib/blob/
|
1088
|
+
##### [COMPLEX_ACTIONS](https://github.com/appium/ruby_lib/blob/ba9ec64031f242b3065674b1e4f8b236b391f9fa/lib/appium_lib/device/touch_actions.rb#L12)
|
1086
1089
|
|
1087
|
-
> COMPLEX_ACTIONS = [:swipe]
|
1090
|
+
> COMPLEX_ACTIONS = [:swipe].freeze
|
1088
1091
|
|
1089
1092
|
|
1090
1093
|
|
1091
1094
|
--
|
1092
1095
|
|
1093
|
-
##### [actions](https://github.com/appium/ruby_lib/blob/
|
1096
|
+
##### [actions](https://github.com/appium/ruby_lib/blob/ba9ec64031f242b3065674b1e4f8b236b391f9fa/lib/appium_lib/device/touch_actions.rb#L26)
|
1094
1097
|
|
1095
1098
|
> def actions
|
1096
1099
|
|
@@ -1098,7 +1101,7 @@ Returns the value of attribute actions
|
|
1098
1101
|
|
1099
1102
|
--
|
1100
1103
|
|
1101
|
-
##### [initialize](https://github.com/appium/ruby_lib/blob/
|
1104
|
+
##### [initialize](https://github.com/appium/ruby_lib/blob/ba9ec64031f242b3065674b1e4f8b236b391f9fa/lib/appium_lib/device/touch_actions.rb#L28)
|
1102
1105
|
|
1103
1106
|
> def initialize
|
1104
1107
|
|
@@ -1110,7 +1113,7 @@ __Returns:__
|
|
1110
1113
|
|
1111
1114
|
--
|
1112
1115
|
|
1113
|
-
##### [move_to](https://github.com/appium/ruby_lib/blob/
|
1116
|
+
##### [move_to](https://github.com/appium/ruby_lib/blob/ba9ec64031f242b3065674b1e4f8b236b391f9fa/lib/appium_lib/device/touch_actions.rb#L36)
|
1114
1117
|
|
1115
1118
|
> def move_to(opts)
|
1116
1119
|
|
@@ -1122,7 +1125,7 @@ __Parameters:__
|
|
1122
1125
|
|
1123
1126
|
--
|
1124
1127
|
|
1125
|
-
##### [long_press](https://github.com/appium/ruby_lib/blob/
|
1128
|
+
##### [long_press](https://github.com/appium/ruby_lib/blob/ba9ec64031f242b3065674b1e4f8b236b391f9fa/lib/appium_lib/device/touch_actions.rb#L46)
|
1126
1129
|
|
1127
1130
|
> def long_press(opts)
|
1128
1131
|
|
@@ -1140,7 +1143,7 @@ __Parameters:__
|
|
1140
1143
|
|
1141
1144
|
--
|
1142
1145
|
|
1143
|
-
##### [press](https://github.com/appium/ruby_lib/blob/
|
1146
|
+
##### [press](https://github.com/appium/ruby_lib/blob/ba9ec64031f242b3065674b1e4f8b236b391f9fa/lib/appium_lib/device/touch_actions.rb#L58)
|
1144
1147
|
|
1145
1148
|
> def press(opts)
|
1146
1149
|
|
@@ -1153,7 +1156,7 @@ __Parameters:__
|
|
1153
1156
|
|
1154
1157
|
--
|
1155
1158
|
|
1156
|
-
##### [release](https://github.com/appium/ruby_lib/blob/
|
1159
|
+
##### [release](https://github.com/appium/ruby_lib/blob/ba9ec64031f242b3065674b1e4f8b236b391f9fa/lib/appium_lib/device/touch_actions.rb#L69)
|
1157
1160
|
|
1158
1161
|
> def release(opts = nil)
|
1159
1162
|
|
@@ -1165,7 +1168,7 @@ __Parameters:__
|
|
1165
1168
|
|
1166
1169
|
--
|
1167
1170
|
|
1168
|
-
##### [tap](https://github.com/appium/ruby_lib/blob/
|
1171
|
+
##### [tap](https://github.com/appium/ruby_lib/blob/ba9ec64031f242b3065674b1e4f8b236b391f9fa/lib/appium_lib/device/touch_actions.rb#L80)
|
1169
1172
|
|
1170
1173
|
> def tap(opts)
|
1171
1174
|
|
@@ -1177,7 +1180,7 @@ __Parameters:__
|
|
1177
1180
|
|
1178
1181
|
--
|
1179
1182
|
|
1180
|
-
##### [double_tap](https://github.com/appium/ruby_lib/blob/
|
1183
|
+
##### [double_tap](https://github.com/appium/ruby_lib/blob/ba9ec64031f242b3065674b1e4f8b236b391f9fa/lib/appium_lib/device/touch_actions.rb#L93)
|
1181
1184
|
|
1182
1185
|
> def double_tap(opts)
|
1183
1186
|
|
@@ -1189,7 +1192,7 @@ __Parameters:__
|
|
1189
1192
|
|
1190
1193
|
--
|
1191
1194
|
|
1192
|
-
##### [two_finger_tap](https://github.com/appium/ruby_lib/blob/
|
1195
|
+
##### [two_finger_tap](https://github.com/appium/ruby_lib/blob/ba9ec64031f242b3065674b1e4f8b236b391f9fa/lib/appium_lib/device/touch_actions.rb#L104)
|
1193
1196
|
|
1194
1197
|
> def two_finger_tap(opts)
|
1195
1198
|
|
@@ -1201,7 +1204,7 @@ __Parameters:__
|
|
1201
1204
|
|
1202
1205
|
--
|
1203
1206
|
|
1204
|
-
##### [wait](https://github.com/appium/ruby_lib/blob/
|
1207
|
+
##### [wait](https://github.com/appium/ruby_lib/blob/ba9ec64031f242b3065674b1e4f8b236b391f9fa/lib/appium_lib/device/touch_actions.rb#L112)
|
1205
1208
|
|
1206
1209
|
> def wait(milliseconds)
|
1207
1210
|
|
@@ -1213,7 +1216,7 @@ __Parameters:__
|
|
1213
1216
|
|
1214
1217
|
--
|
1215
1218
|
|
1216
|
-
##### [swipe](https://github.com/appium/ruby_lib/blob/
|
1219
|
+
##### [swipe](https://github.com/appium/ruby_lib/blob/ba9ec64031f242b3065674b1e4f8b236b391f9fa/lib/appium_lib/device/touch_actions.rb#L127)
|
1217
1220
|
|
1218
1221
|
> def swipe(opts, ele = nil)
|
1219
1222
|
|
@@ -1227,7 +1230,7 @@ __Parameters:__
|
|
1227
1230
|
|
1228
1231
|
--
|
1229
1232
|
|
1230
|
-
##### [perform](https://github.com/appium/ruby_lib/blob/
|
1233
|
+
##### [perform](https://github.com/appium/ruby_lib/blob/ba9ec64031f242b3065674b1e4f8b236b391f9fa/lib/appium_lib/device/touch_actions.rb#L162)
|
1231
1234
|
|
1232
1235
|
> def perform
|
1233
1236
|
|
@@ -1235,7 +1238,7 @@ Ask the driver to perform all actions in this action chain.
|
|
1235
1238
|
|
1236
1239
|
--
|
1237
1240
|
|
1238
|
-
##### [cancel](https://github.com/appium/ruby_lib/blob/
|
1241
|
+
##### [cancel](https://github.com/appium/ruby_lib/blob/ba9ec64031f242b3065674b1e4f8b236b391f9fa/lib/appium_lib/device/touch_actions.rb#L168)
|
1239
1242
|
|
1240
1243
|
> def cancel
|
1241
1244
|
|
@@ -1243,7 +1246,7 @@ Does nothing, currently.
|
|
1243
1246
|
|
1244
1247
|
--
|
1245
1248
|
|
1246
|
-
##### [chain_method](https://github.com/appium/ruby_lib/blob/
|
1249
|
+
##### [chain_method](https://github.com/appium/ruby_lib/blob/ba9ec64031f242b3065674b1e4f8b236b391f9fa/lib/appium_lib/device/touch_actions.rb#L176)
|
1247
1250
|
|
1248
1251
|
> def chain_method(method, args = nil)
|
1249
1252
|
|
@@ -1251,7 +1254,7 @@ Does nothing, currently.
|
|
1251
1254
|
|
1252
1255
|
--
|
1253
1256
|
|
1254
|
-
##### [args_with_ele_ref](https://github.com/appium/ruby_lib/blob/
|
1257
|
+
##### [args_with_ele_ref](https://github.com/appium/ruby_lib/blob/ba9ec64031f242b3065674b1e4f8b236b391f9fa/lib/appium_lib/device/touch_actions.rb#L182)
|
1255
1258
|
|
1256
1259
|
> def args_with_ele_ref(args)
|
1257
1260
|
|
@@ -1259,7 +1262,7 @@ Does nothing, currently.
|
|
1259
1262
|
|
1260
1263
|
--
|
1261
1264
|
|
1262
|
-
##### [_generic_wait](https://github.com/appium/ruby_lib/blob/
|
1265
|
+
##### [_generic_wait](https://github.com/appium/ruby_lib/blob/ba9ec64031f242b3065674b1e4f8b236b391f9fa/lib/appium_lib/common/wait.rb#L9)
|
1263
1266
|
|
1264
1267
|
> def _generic_wait(opts = {}, &block)
|
1265
1268
|
|
@@ -1268,7 +1271,7 @@ https://github.com/SeleniumHQ/selenium/blob/cf501dda3f0ed12233de51ce8170c0e8090f
|
|
1268
1271
|
|
1269
1272
|
--
|
1270
1273
|
|
1271
|
-
##### [_process_wait_opts](https://github.com/appium/ruby_lib/blob/
|
1274
|
+
##### [_process_wait_opts](https://github.com/appium/ruby_lib/blob/ba9ec64031f242b3065674b1e4f8b236b391f9fa/lib/appium_lib/common/wait.rb#L48)
|
1272
1275
|
|
1273
1276
|
> def _process_wait_opts(opts)
|
1274
1277
|
|
@@ -1276,7 +1279,7 @@ process opts before calling _generic_wait
|
|
1276
1279
|
|
1277
1280
|
--
|
1278
1281
|
|
1279
|
-
##### [wait_true](https://github.com/appium/ruby_lib/blob/
|
1282
|
+
##### [wait_true](https://github.com/appium/ruby_lib/blob/ba9ec64031f242b3065674b1e4f8b236b391f9fa/lib/appium_lib/common/wait.rb#L69)
|
1280
1283
|
|
1281
1284
|
> def wait_true(opts = {}, &block)
|
1282
1285
|
|
@@ -1296,7 +1299,7 @@ __Parameters:__
|
|
1296
1299
|
|
1297
1300
|
--
|
1298
1301
|
|
1299
|
-
##### [wait](https://github.com/appium/ruby_lib/blob/
|
1302
|
+
##### [wait](https://github.com/appium/ruby_lib/blob/ba9ec64031f242b3065674b1e4f8b236b391f9fa/lib/appium_lib/common/wait.rb#L87)
|
1300
1303
|
|
1301
1304
|
> def wait(opts = {}, &block)
|
1302
1305
|
|
@@ -1314,7 +1317,7 @@ __Parameters:__
|
|
1314
1317
|
|
1315
1318
|
--
|
1316
1319
|
|
1317
|
-
##### [ignore](https://github.com/appium/ruby_lib/blob/
|
1320
|
+
##### [ignore](https://github.com/appium/ruby_lib/blob/ba9ec64031f242b3065674b1e4f8b236b391f9fa/lib/appium_lib/common/helper.rb#L24)
|
1318
1321
|
|
1319
1322
|
> def ignore(&block)
|
1320
1323
|
|
@@ -1322,7 +1325,7 @@ Return block.call and ignore any exceptions.
|
|
1322
1325
|
|
1323
1326
|
--
|
1324
1327
|
|
1325
|
-
##### [back](https://github.com/appium/ruby_lib/blob/
|
1328
|
+
##### [back](https://github.com/appium/ruby_lib/blob/ba9ec64031f242b3065674b1e4f8b236b391f9fa/lib/appium_lib/common/helper.rb#L31)
|
1326
1329
|
|
1327
1330
|
> def back
|
1328
1331
|
|
@@ -1334,7 +1337,7 @@ __Returns:__
|
|
1334
1337
|
|
1335
1338
|
--
|
1336
1339
|
|
1337
|
-
##### [session_id](https://github.com/appium/ruby_lib/blob/
|
1340
|
+
##### [session_id](https://github.com/appium/ruby_lib/blob/ba9ec64031f242b3065674b1e4f8b236b391f9fa/lib/appium_lib/common/helper.rb#L36)
|
1338
1341
|
|
1339
1342
|
> def session_id
|
1340
1343
|
|
@@ -1342,7 +1345,7 @@ For Sauce Labs reporting. Returns the current session id.
|
|
1342
1345
|
|
1343
1346
|
--
|
1344
1347
|
|
1345
|
-
##### [xpath](https://github.com/appium/ruby_lib/blob/
|
1348
|
+
##### [xpath](https://github.com/appium/ruby_lib/blob/ba9ec64031f242b3065674b1e4f8b236b391f9fa/lib/appium_lib/common/helper.rb#L44)
|
1346
1349
|
|
1347
1350
|
> def xpath(xpath_str)
|
1348
1351
|
|
@@ -1358,7 +1361,7 @@ __Returns:__
|
|
1358
1361
|
|
1359
1362
|
--
|
1360
1363
|
|
1361
|
-
##### [xpaths](https://github.com/appium/ruby_lib/blob/
|
1364
|
+
##### [xpaths](https://github.com/appium/ruby_lib/blob/ba9ec64031f242b3065674b1e4f8b236b391f9fa/lib/appium_lib/common/helper.rb#L52)
|
1362
1365
|
|
1363
1366
|
> def xpaths(xpath_str)
|
1364
1367
|
|
@@ -1374,7 +1377,7 @@ __Returns:__
|
|
1374
1377
|
|
1375
1378
|
--
|
1376
1379
|
|
1377
|
-
##### [_print_source](https://github.com/appium/ruby_lib/blob/
|
1380
|
+
##### [_print_source](https://github.com/appium/ruby_lib/blob/ba9ec64031f242b3065674b1e4f8b236b391f9fa/lib/appium_lib/common/helper.rb#L56)
|
1378
1381
|
|
1379
1382
|
> def _print_source(source)
|
1380
1383
|
|
@@ -1382,7 +1385,7 @@ __Returns:__
|
|
1382
1385
|
|
1383
1386
|
--
|
1384
1387
|
|
1385
|
-
##### [result](https://github.com/appium/ruby_lib/blob/
|
1388
|
+
##### [result](https://github.com/appium/ruby_lib/blob/ba9ec64031f242b3065674b1e4f8b236b391f9fa/lib/appium_lib/common/helper.rb#L69)
|
1386
1389
|
|
1387
1390
|
> def result
|
1388
1391
|
|
@@ -1390,7 +1393,7 @@ Returns the value of attribute result
|
|
1390
1393
|
|
1391
1394
|
--
|
1392
1395
|
|
1393
|
-
##### [initialize](https://github.com/appium/ruby_lib/blob/
|
1396
|
+
##### [initialize](https://github.com/appium/ruby_lib/blob/ba9ec64031f242b3065674b1e4f8b236b391f9fa/lib/appium_lib/common/helper.rb#L71)
|
1394
1397
|
|
1395
1398
|
> def initialize
|
1396
1399
|
|
@@ -1402,7 +1405,7 @@ __Returns:__
|
|
1402
1405
|
|
1403
1406
|
--
|
1404
1407
|
|
1405
|
-
##### [reset](https://github.com/appium/ruby_lib/blob/
|
1408
|
+
##### [reset](https://github.com/appium/ruby_lib/blob/ba9ec64031f242b3065674b1e4f8b236b391f9fa/lib/appium_lib/common/helper.rb#L75)
|
1406
1409
|
|
1407
1410
|
> def reset
|
1408
1411
|
|
@@ -1410,7 +1413,7 @@ __Returns:__
|
|
1410
1413
|
|
1411
1414
|
--
|
1412
1415
|
|
1413
|
-
##### [start_element](https://github.com/appium/ruby_lib/blob/
|
1416
|
+
##### [start_element](https://github.com/appium/ruby_lib/blob/ba9ec64031f242b3065674b1e4f8b236b391f9fa/lib/appium_lib/common/helper.rb#L80)
|
1414
1417
|
|
1415
1418
|
> def start_element(name, attrs = [])
|
1416
1419
|
|
@@ -1418,7 +1421,7 @@ http://nokogiri.org/Nokogiri/XML/SAX/Document.html
|
|
1418
1421
|
|
1419
1422
|
--
|
1420
1423
|
|
1421
|
-
##### [formatted_result](https://github.com/appium/ruby_lib/blob/
|
1424
|
+
##### [formatted_result](https://github.com/appium/ruby_lib/blob/ba9ec64031f242b3065674b1e4f8b236b391f9fa/lib/appium_lib/common/helper.rb#L86)
|
1422
1425
|
|
1423
1426
|
> def formatted_result
|
1424
1427
|
|
@@ -1426,7 +1429,7 @@ http://nokogiri.org/Nokogiri/XML/SAX/Document.html
|
|
1426
1429
|
|
1427
1430
|
--
|
1428
1431
|
|
1429
|
-
##### [get_page_class](https://github.com/appium/ruby_lib/blob/
|
1432
|
+
##### [get_page_class](https://github.com/appium/ruby_lib/blob/ba9ec64031f242b3065674b1e4f8b236b391f9fa/lib/appium_lib/common/helper.rb#L97)
|
1430
1433
|
|
1431
1434
|
> def get_page_class
|
1432
1435
|
|
@@ -1434,7 +1437,7 @@ Returns a string of class counts of visible elements.
|
|
1434
1437
|
|
1435
1438
|
--
|
1436
1439
|
|
1437
|
-
##### [page_class](https://github.com/appium/ruby_lib/blob/
|
1440
|
+
##### [page_class](https://github.com/appium/ruby_lib/blob/ba9ec64031f242b3065674b1e4f8b236b391f9fa/lib/appium_lib/common/helper.rb#L108)
|
1438
1441
|
|
1439
1442
|
> def page_class
|
1440
1443
|
|
@@ -1443,7 +1446,7 @@ Useful for appium_console.
|
|
1443
1446
|
|
1444
1447
|
--
|
1445
1448
|
|
1446
|
-
##### [px_to_window_rel](https://github.com/appium/ruby_lib/blob/
|
1449
|
+
##### [px_to_window_rel](https://github.com/appium/ruby_lib/blob/ba9ec64031f242b3065674b1e4f8b236b391f9fa/lib/appium_lib/common/helper.rb#L118)
|
1447
1450
|
|
1448
1451
|
> def px_to_window_rel(opts = {})
|
1449
1452
|
|
@@ -1455,7 +1458,7 @@ px_to_window_rel x: 50, y: 150
|
|
1455
1458
|
|
1456
1459
|
--
|
1457
1460
|
|
1458
|
-
##### [xml_keys](https://github.com/appium/ruby_lib/blob/
|
1461
|
+
##### [xml_keys](https://github.com/appium/ruby_lib/blob/ba9ec64031f242b3065674b1e4f8b236b391f9fa/lib/appium_lib/common/helper.rb#L137)
|
1459
1462
|
|
1460
1463
|
> def xml_keys(target)
|
1461
1464
|
|
@@ -1471,7 +1474,7 @@ __Returns:__
|
|
1471
1474
|
|
1472
1475
|
--
|
1473
1476
|
|
1474
|
-
##### [xml_values](https://github.com/appium/ruby_lib/blob/
|
1477
|
+
##### [xml_values](https://github.com/appium/ruby_lib/blob/ba9ec64031f242b3065674b1e4f8b236b391f9fa/lib/appium_lib/common/helper.rb#L145)
|
1475
1478
|
|
1476
1479
|
> def xml_values(target)
|
1477
1480
|
|
@@ -1487,7 +1490,7 @@ __Returns:__
|
|
1487
1490
|
|
1488
1491
|
--
|
1489
1492
|
|
1490
|
-
##### [resolve_id](https://github.com/appium/ruby_lib/blob/
|
1493
|
+
##### [resolve_id](https://github.com/appium/ruby_lib/blob/ba9ec64031f242b3065674b1e4f8b236b391f9fa/lib/appium_lib/common/helper.rb#L153)
|
1491
1494
|
|
1492
1495
|
> def resolve_id(id)
|
1493
1496
|
|
@@ -1503,7 +1506,7 @@ __Returns:__
|
|
1503
1506
|
|
1504
1507
|
--
|
1505
1508
|
|
1506
|
-
##### [filter](https://github.com/appium/ruby_lib/blob/
|
1509
|
+
##### [filter](https://github.com/appium/ruby_lib/blob/ba9ec64031f242b3065674b1e4f8b236b391f9fa/lib/appium_lib/common/helper.rb#L159)
|
1507
1510
|
|
1508
1511
|
> def filter
|
1509
1512
|
|
@@ -1511,7 +1514,7 @@ Returns the value of attribute filter
|
|
1511
1514
|
|
1512
1515
|
--
|
1513
1516
|
|
1514
|
-
##### [filter=](https://github.com/appium/ruby_lib/blob/
|
1517
|
+
##### [filter=](https://github.com/appium/ruby_lib/blob/ba9ec64031f242b3065674b1e4f8b236b391f9fa/lib/appium_lib/common/helper.rb#L162)
|
1515
1518
|
|
1516
1519
|
> def filter=(value)
|
1517
1520
|
|
@@ -1519,7 +1522,7 @@ convert to string to support symbols
|
|
1519
1522
|
|
1520
1523
|
--
|
1521
1524
|
|
1522
|
-
##### [initialize](https://github.com/appium/ruby_lib/blob/
|
1525
|
+
##### [initialize](https://github.com/appium/ruby_lib/blob/ba9ec64031f242b3065674b1e4f8b236b391f9fa/lib/appium_lib/common/helper.rb#L168)
|
1523
1526
|
|
1524
1527
|
> def initialize
|
1525
1528
|
|
@@ -1531,7 +1534,7 @@ __Returns:__
|
|
1531
1534
|
|
1532
1535
|
--
|
1533
1536
|
|
1534
|
-
##### [reset](https://github.com/appium/ruby_lib/blob/
|
1537
|
+
##### [reset](https://github.com/appium/ruby_lib/blob/ba9ec64031f242b3065674b1e4f8b236b391f9fa/lib/appium_lib/common/helper.rb#L173)
|
1535
1538
|
|
1536
1539
|
> def reset
|
1537
1540
|
|
@@ -1539,7 +1542,7 @@ __Returns:__
|
|
1539
1542
|
|
1540
1543
|
--
|
1541
1544
|
|
1542
|
-
##### [result](https://github.com/appium/ruby_lib/blob/
|
1545
|
+
##### [result](https://github.com/appium/ruby_lib/blob/ba9ec64031f242b3065674b1e4f8b236b391f9fa/lib/appium_lib/common/helper.rb#L179)
|
1543
1546
|
|
1544
1547
|
> def result
|
1545
1548
|
|
@@ -1547,7 +1550,7 @@ __Returns:__
|
|
1547
1550
|
|
1548
1551
|
--
|
1549
1552
|
|
1550
|
-
##### [start_element](https://github.com/appium/ruby_lib/blob/
|
1553
|
+
##### [start_element](https://github.com/appium/ruby_lib/blob/ba9ec64031f242b3065674b1e4f8b236b391f9fa/lib/appium_lib/common/helper.rb#L195)
|
1551
1554
|
|
1552
1555
|
> def start_element(name, attrs = [])
|
1553
1556
|
|
@@ -1555,7 +1558,7 @@ __Returns:__
|
|
1555
1558
|
|
1556
1559
|
--
|
1557
1560
|
|
1558
|
-
##### [end_element](https://github.com/appium/ruby_lib/blob/
|
1561
|
+
##### [end_element](https://github.com/appium/ruby_lib/blob/ba9ec64031f242b3065674b1e4f8b236b391f9fa/lib/appium_lib/common/helper.rb#L204)
|
1559
1562
|
|
1560
1563
|
> def end_element(name)
|
1561
1564
|
|
@@ -1563,7 +1566,7 @@ __Returns:__
|
|
1563
1566
|
|
1564
1567
|
--
|
1565
1568
|
|
1566
|
-
##### [characters](https://github.com/appium/ruby_lib/blob/
|
1569
|
+
##### [characters](https://github.com/appium/ruby_lib/blob/ba9ec64031f242b3065674b1e4f8b236b391f9fa/lib/appium_lib/common/helper.rb#L210)
|
1567
1570
|
|
1568
1571
|
> def characters(chars)
|
1569
1572
|
|
@@ -1571,7 +1574,7 @@ __Returns:__
|
|
1571
1574
|
|
1572
1575
|
--
|
1573
1576
|
|
1574
|
-
##### [_no_such_element](https://github.com/appium/ruby_lib/blob/
|
1577
|
+
##### [_no_such_element](https://github.com/appium/ruby_lib/blob/ba9ec64031f242b3065674b1e4f8b236b391f9fa/lib/appium_lib/common/helper.rb#L217)
|
1575
1578
|
|
1576
1579
|
> def _no_such_element
|
1577
1580
|
|
@@ -1579,7 +1582,31 @@ __Returns:__
|
|
1579
1582
|
|
1580
1583
|
--
|
1581
1584
|
|
1582
|
-
##### [
|
1585
|
+
##### [COMMAND_NO_ARG](https://github.com/appium/ruby_lib/blob/ba9ec64031f242b3065674b1e4f8b236b391f9fa/lib/appium_lib/common/command.rb#L4)
|
1586
|
+
|
1587
|
+
> COMMAND_NO_ARG = {
|
1588
|
+
|
1589
|
+
|
1590
|
+
|
1591
|
+
--
|
1592
|
+
|
1593
|
+
##### [COMMAND](https://github.com/appium/ruby_lib/blob/ba9ec64031f242b3065674b1e4f8b236b391f9fa/lib/appium_lib/common/command.rb#L23)
|
1594
|
+
|
1595
|
+
> COMMAND = {
|
1596
|
+
|
1597
|
+
|
1598
|
+
|
1599
|
+
--
|
1600
|
+
|
1601
|
+
##### [FINDERS](https://github.com/appium/ruby_lib/blob/ba9ec64031f242b3065674b1e4f8b236b391f9fa/lib/appium_lib/common/search_context.rb#L5)
|
1602
|
+
|
1603
|
+
> FINDERS = {
|
1604
|
+
|
1605
|
+
rubocop:disable Style/MutableConstant
|
1606
|
+
|
1607
|
+
--
|
1608
|
+
|
1609
|
+
##### [window_size](https://github.com/appium/ruby_lib/blob/ba9ec64031f242b3065674b1e4f8b236b391f9fa/lib/appium_lib/common/element/window.rb#L5)
|
1583
1610
|
|
1584
1611
|
> def window_size
|
1585
1612
|
|
@@ -1587,7 +1614,7 @@ Get the window's size
|
|
1587
1614
|
|
1588
1615
|
--
|
1589
1616
|
|
1590
|
-
##### [filter](https://github.com/appium/ruby_lib/blob/
|
1617
|
+
##### [filter](https://github.com/appium/ruby_lib/blob/ba9ec64031f242b3065674b1e4f8b236b391f9fa/lib/appium_lib/ios/helper.rb#L4) ios
|
1591
1618
|
|
1592
1619
|
> def filter
|
1593
1620
|
|
@@ -1595,7 +1622,7 @@ Returns the value of attribute filter
|
|
1595
1622
|
|
1596
1623
|
--
|
1597
1624
|
|
1598
|
-
##### [filter=](https://github.com/appium/ruby_lib/blob/
|
1625
|
+
##### [filter=](https://github.com/appium/ruby_lib/blob/ba9ec64031f242b3065674b1e4f8b236b391f9fa/lib/appium_lib/ios/helper.rb#L4) ios
|
1599
1626
|
|
1600
1627
|
> def filter=(value)
|
1601
1628
|
|
@@ -1607,7 +1634,7 @@ __Parameters:__
|
|
1607
1634
|
|
1608
1635
|
--
|
1609
1636
|
|
1610
|
-
##### [start_element](https://github.com/appium/ruby_lib/blob/
|
1637
|
+
##### [start_element](https://github.com/appium/ruby_lib/blob/ba9ec64031f242b3065674b1e4f8b236b391f9fa/lib/appium_lib/ios/helper.rb#L6) ios
|
1611
1638
|
|
1612
1639
|
> def start_element(type, attrs = [])
|
1613
1640
|
|
@@ -1615,7 +1642,7 @@ __Parameters:__
|
|
1615
1642
|
|
1616
1643
|
--
|
1617
1644
|
|
1618
|
-
##### [_print_attr](https://github.com/appium/ruby_lib/blob/
|
1645
|
+
##### [_print_attr](https://github.com/appium/ruby_lib/blob/ba9ec64031f242b3065674b1e4f8b236b391f9fa/lib/appium_lib/ios/helper.rb#L15) ios
|
1619
1646
|
|
1620
1647
|
> def _print_attr(type, name, label, value, hint)
|
1621
1648
|
|
@@ -1623,7 +1650,7 @@ __Parameters:__
|
|
1623
1650
|
|
1624
1651
|
--
|
1625
1652
|
|
1626
|
-
##### [ios_password](https://github.com/appium/ruby_lib/blob/
|
1653
|
+
##### [ios_password](https://github.com/appium/ruby_lib/blob/ba9ec64031f242b3065674b1e4f8b236b391f9fa/lib/appium_lib/ios/helper.rb#L44) ios
|
1627
1654
|
|
1628
1655
|
> def ios_password(length = 1)
|
1629
1656
|
|
@@ -1641,7 +1668,7 @@ __Returns:__
|
|
1641
1668
|
|
1642
1669
|
--
|
1643
1670
|
|
1644
|
-
##### [get_page](https://github.com/appium/ruby_lib/blob/
|
1671
|
+
##### [get_page](https://github.com/appium/ruby_lib/blob/ba9ec64031f242b3065674b1e4f8b236b391f9fa/lib/appium_lib/ios/helper.rb#L56) ios
|
1645
1672
|
|
1646
1673
|
> def get_page(element = source_window(0), class_name = nil)
|
1647
1674
|
|
@@ -1662,7 +1689,7 @@ __Returns:__
|
|
1662
1689
|
|
1663
1690
|
--
|
1664
1691
|
|
1665
|
-
##### [page](https://github.com/appium/ruby_lib/blob/
|
1692
|
+
##### [page](https://github.com/appium/ruby_lib/blob/ba9ec64031f242b3065674b1e4f8b236b391f9fa/lib/appium_lib/ios/helper.rb#L165) ios
|
1666
1693
|
|
1667
1694
|
> def page(opts = {})
|
1668
1695
|
|
@@ -1688,7 +1715,7 @@ __Returns:__
|
|
1688
1715
|
|
1689
1716
|
--
|
1690
1717
|
|
1691
|
-
##### [source_window](https://github.com/appium/ruby_lib/blob/
|
1718
|
+
##### [source_window](https://github.com/appium/ruby_lib/blob/ba9ec64031f242b3065674b1e4f8b236b391f9fa/lib/appium_lib/ios/helper.rb#L196) ios
|
1692
1719
|
|
1693
1720
|
> def source_window(_window_number = 0)
|
1694
1721
|
|
@@ -1704,7 +1731,7 @@ __Returns:__
|
|
1704
1731
|
|
1705
1732
|
--
|
1706
1733
|
|
1707
|
-
##### [page_window](https://github.com/appium/ruby_lib/blob/
|
1734
|
+
##### [page_window](https://github.com/appium/ruby_lib/blob/ba9ec64031f242b3065674b1e4f8b236b391f9fa/lib/appium_lib/ios/helper.rb#L211) ios
|
1708
1735
|
|
1709
1736
|
> def page_window(window_number = 0)
|
1710
1737
|
|
@@ -1722,7 +1749,7 @@ __Returns:__
|
|
1722
1749
|
|
1723
1750
|
--
|
1724
1751
|
|
1725
|
-
##### [id](https://github.com/appium/ruby_lib/blob/
|
1752
|
+
##### [id](https://github.com/appium/ruby_lib/blob/ba9ec64031f242b3065674b1e4f8b236b391f9fa/lib/appium_lib/ios/helper.rb#L219) ios
|
1726
1753
|
|
1727
1754
|
> def id(id)
|
1728
1755
|
|
@@ -1738,7 +1765,7 @@ __Returns:__
|
|
1738
1765
|
|
1739
1766
|
--
|
1740
1767
|
|
1741
|
-
##### [ios_version](https://github.com/appium/ruby_lib/blob/
|
1768
|
+
##### [ios_version](https://github.com/appium/ruby_lib/blob/ba9ec64031f242b3065674b1e4f8b236b391f9fa/lib/appium_lib/ios/helper.rb#L225) ios
|
1742
1769
|
|
1743
1770
|
> def ios_version
|
1744
1771
|
|
@@ -1750,7 +1777,7 @@ __Returns:__
|
|
1750
1777
|
|
1751
1778
|
--
|
1752
1779
|
|
1753
|
-
##### [ele_index](https://github.com/appium/ruby_lib/blob/
|
1780
|
+
##### [ele_index](https://github.com/appium/ruby_lib/blob/ba9ec64031f242b3065674b1e4f8b236b391f9fa/lib/appium_lib/ios/helper.rb#L238) ios
|
1754
1781
|
|
1755
1782
|
> def ele_index(class_name, index)
|
1756
1783
|
|
@@ -1768,7 +1795,7 @@ __Returns:__
|
|
1768
1795
|
|
1769
1796
|
--
|
1770
1797
|
|
1771
|
-
##### [find_ele_by_attr](https://github.com/appium/ruby_lib/blob/
|
1798
|
+
##### [find_ele_by_attr](https://github.com/appium/ruby_lib/blob/ba9ec64031f242b3065674b1e4f8b236b391f9fa/lib/appium_lib/ios/helper.rb#L273) ios
|
1772
1799
|
|
1773
1800
|
> def find_ele_by_attr(class_name, attr, value)
|
1774
1801
|
|
@@ -1789,7 +1816,7 @@ __Returns:__
|
|
1789
1816
|
|
1790
1817
|
--
|
1791
1818
|
|
1792
|
-
##### [find_eles_by_attr](https://github.com/appium/ruby_lib/blob/
|
1819
|
+
##### [find_eles_by_attr](https://github.com/appium/ruby_lib/blob/ba9ec64031f242b3065674b1e4f8b236b391f9fa/lib/appium_lib/ios/helper.rb#L283) ios
|
1793
1820
|
|
1794
1821
|
> def find_eles_by_attr(class_name, attr, value)
|
1795
1822
|
|
@@ -1810,7 +1837,7 @@ __Returns:__
|
|
1810
1837
|
|
1811
1838
|
--
|
1812
1839
|
|
1813
|
-
##### [find_ele_by_attr_include](https://github.com/appium/ruby_lib/blob/
|
1840
|
+
##### [find_ele_by_attr_include](https://github.com/appium/ruby_lib/blob/ba9ec64031f242b3065674b1e4f8b236b391f9fa/lib/appium_lib/ios/helper.rb#L306) ios
|
1814
1841
|
|
1815
1842
|
> def find_ele_by_attr_include(class_name, attr, value)
|
1816
1843
|
|
@@ -1831,7 +1858,7 @@ __Returns:__
|
|
1831
1858
|
|
1832
1859
|
--
|
1833
1860
|
|
1834
|
-
##### [find_eles_by_attr_include](https://github.com/appium/ruby_lib/blob/
|
1861
|
+
##### [find_eles_by_attr_include](https://github.com/appium/ruby_lib/blob/ba9ec64031f242b3065674b1e4f8b236b391f9fa/lib/appium_lib/ios/helper.rb#L316) ios
|
1835
1862
|
|
1836
1863
|
> def find_eles_by_attr_include(class_name, attr, value)
|
1837
1864
|
|
@@ -1852,7 +1879,7 @@ __Returns:__
|
|
1852
1879
|
|
1853
1880
|
--
|
1854
1881
|
|
1855
|
-
##### [first_ele](https://github.com/appium/ruby_lib/blob/
|
1882
|
+
##### [first_ele](https://github.com/appium/ruby_lib/blob/ba9ec64031f242b3065674b1e4f8b236b391f9fa/lib/appium_lib/ios/helper.rb#L323) ios
|
1856
1883
|
|
1857
1884
|
> def first_ele(class_name)
|
1858
1885
|
|
@@ -1868,7 +1895,7 @@ __Returns:__
|
|
1868
1895
|
|
1869
1896
|
--
|
1870
1897
|
|
1871
|
-
##### [last_ele](https://github.com/appium/ruby_lib/blob/
|
1898
|
+
##### [last_ele](https://github.com/appium/ruby_lib/blob/ba9ec64031f242b3065674b1e4f8b236b391f9fa/lib/appium_lib/ios/helper.rb#L334) ios
|
1872
1899
|
|
1873
1900
|
> def last_ele(class_name)
|
1874
1901
|
|
@@ -1884,7 +1911,7 @@ __Returns:__
|
|
1884
1911
|
|
1885
1912
|
--
|
1886
1913
|
|
1887
|
-
##### [tag](https://github.com/appium/ruby_lib/blob/
|
1914
|
+
##### [tag](https://github.com/appium/ruby_lib/blob/ba9ec64031f242b3065674b1e4f8b236b391f9fa/lib/appium_lib/ios/helper.rb#L348) ios
|
1888
1915
|
|
1889
1916
|
> def tag(class_name)
|
1890
1917
|
|
@@ -1900,7 +1927,7 @@ __Returns:__
|
|
1900
1927
|
|
1901
1928
|
--
|
1902
1929
|
|
1903
|
-
##### [tags](https://github.com/appium/ruby_lib/blob/
|
1930
|
+
##### [tags](https://github.com/appium/ruby_lib/blob/ba9ec64031f242b3065674b1e4f8b236b391f9fa/lib/appium_lib/ios/helper.rb#L360) ios
|
1904
1931
|
|
1905
1932
|
> def tags(class_name)
|
1906
1933
|
|
@@ -1916,7 +1943,7 @@ __Returns:__
|
|
1916
1943
|
|
1917
1944
|
--
|
1918
1945
|
|
1919
|
-
##### [ele_by_json_visible_contains](https://github.com/appium/ruby_lib/blob/
|
1946
|
+
##### [ele_by_json_visible_contains](https://github.com/appium/ruby_lib/blob/ba9ec64031f242b3065674b1e4f8b236b391f9fa/lib/appium_lib/ios/helper.rb#L397) ios
|
1920
1947
|
|
1921
1948
|
> def ele_by_json_visible_contains(element, value)
|
1922
1949
|
|
@@ -1935,7 +1962,7 @@ __Returns:__
|
|
1935
1962
|
|
1936
1963
|
--
|
1937
1964
|
|
1938
|
-
##### [eles_by_json_visible_contains](https://github.com/appium/ruby_lib/blob/
|
1965
|
+
##### [eles_by_json_visible_contains](https://github.com/appium/ruby_lib/blob/ba9ec64031f242b3065674b1e4f8b236b391f9fa/lib/appium_lib/ios/helper.rb#L406) ios
|
1939
1966
|
|
1940
1967
|
> def eles_by_json_visible_contains(element, value)
|
1941
1968
|
|
@@ -1954,7 +1981,7 @@ __Returns:__
|
|
1954
1981
|
|
1955
1982
|
--
|
1956
1983
|
|
1957
|
-
##### [ele_by_json_visible_exact](https://github.com/appium/ruby_lib/blob/
|
1984
|
+
##### [ele_by_json_visible_exact](https://github.com/appium/ruby_lib/blob/ba9ec64031f242b3065674b1e4f8b236b391f9fa/lib/appium_lib/ios/helper.rb#L436) ios
|
1958
1985
|
|
1959
1986
|
> def ele_by_json_visible_exact(element, value)
|
1960
1987
|
|
@@ -1973,7 +2000,7 @@ __Returns:__
|
|
1973
2000
|
|
1974
2001
|
--
|
1975
2002
|
|
1976
|
-
##### [eles_by_json_visible_exact](https://github.com/appium/ruby_lib/blob/
|
2003
|
+
##### [eles_by_json_visible_exact](https://github.com/appium/ruby_lib/blob/ba9ec64031f242b3065674b1e4f8b236b391f9fa/lib/appium_lib/ios/helper.rb#L445) ios
|
1977
2004
|
|
1978
2005
|
> def eles_by_json_visible_exact(element, value)
|
1979
2006
|
|
@@ -1992,7 +2019,7 @@ __Returns:__
|
|
1992
2019
|
|
1993
2020
|
--
|
1994
2021
|
|
1995
|
-
##### [_all_pred](https://github.com/appium/ruby_lib/blob/
|
2022
|
+
##### [_all_pred](https://github.com/appium/ruby_lib/blob/ba9ec64031f242b3065674b1e4f8b236b391f9fa/lib/appium_lib/ios/helper.rb#L510) ios
|
1996
2023
|
|
1997
2024
|
> def _all_pred(opts)
|
1998
2025
|
|
@@ -2002,7 +2029,7 @@ visible - if true, only visible elements are returned. default true
|
|
2002
2029
|
|
2003
2030
|
--
|
2004
2031
|
|
2005
|
-
##### [ele_with_pred](https://github.com/appium/ruby_lib/blob/
|
2032
|
+
##### [ele_with_pred](https://github.com/appium/ruby_lib/blob/ba9ec64031f242b3065674b1e4f8b236b391f9fa/lib/appium_lib/ios/helper.rb#L523) ios
|
2006
2033
|
|
2007
2034
|
> def ele_with_pred(opts)
|
2008
2035
|
|
@@ -2018,7 +2045,7 @@ __Returns:__
|
|
2018
2045
|
|
2019
2046
|
--
|
2020
2047
|
|
2021
|
-
##### [eles_with_pred](https://github.com/appium/ruby_lib/blob/
|
2048
|
+
##### [eles_with_pred](https://github.com/appium/ruby_lib/blob/ba9ec64031f242b3065674b1e4f8b236b391f9fa/lib/appium_lib/ios/helper.rb#L534) ios
|
2022
2049
|
|
2023
2050
|
> def eles_with_pred(opts)
|
2024
2051
|
|
@@ -2034,7 +2061,7 @@ __Returns:__
|
|
2034
2061
|
|
2035
2062
|
--
|
2036
2063
|
|
2037
|
-
##### [source](https://github.com/appium/ruby_lib/blob/
|
2064
|
+
##### [source](https://github.com/appium/ruby_lib/blob/ba9ec64031f242b3065674b1e4f8b236b391f9fa/lib/appium_lib/ios/helper.rb#L540) ios
|
2038
2065
|
|
2039
2066
|
> def source
|
2040
2067
|
|
@@ -2046,7 +2073,7 @@ __Returns:__
|
|
2046
2073
|
|
2047
2074
|
--
|
2048
2075
|
|
2049
|
-
##### [_validate_object](https://github.com/appium/ruby_lib/blob/
|
2076
|
+
##### [_validate_object](https://github.com/appium/ruby_lib/blob/ba9ec64031f242b3065674b1e4f8b236b391f9fa/lib/appium_lib/ios/helper.rb#L544) ios
|
2050
2077
|
|
2051
2078
|
> def _validate_object(*objects)
|
2052
2079
|
|
@@ -2054,7 +2081,7 @@ __Returns:__
|
|
2054
2081
|
|
2055
2082
|
--
|
2056
2083
|
|
2057
|
-
##### [_by_json](https://github.com/appium/ruby_lib/blob/
|
2084
|
+
##### [_by_json](https://github.com/appium/ruby_lib/blob/ba9ec64031f242b3065674b1e4f8b236b391f9fa/lib/appium_lib/ios/helper.rb#L593) ios
|
2058
2085
|
|
2059
2086
|
> def _by_json(opts)
|
2060
2087
|
|
@@ -2089,7 +2116,7 @@ opts = {
|
|
2089
2116
|
|
2090
2117
|
--
|
2091
2118
|
|
2092
|
-
##### [eles_by_json](https://github.com/appium/ruby_lib/blob/
|
2119
|
+
##### [eles_by_json](https://github.com/appium/ruby_lib/blob/ba9ec64031f242b3065674b1e4f8b236b391f9fa/lib/appium_lib/ios/helper.rb#L643) ios
|
2093
2120
|
|
2094
2121
|
> def eles_by_json(opts)
|
2095
2122
|
|
@@ -2108,7 +2135,7 @@ eles_by_json({
|
|
2108
2135
|
|
2109
2136
|
--
|
2110
2137
|
|
2111
|
-
##### [ele_by_json](https://github.com/appium/ruby_lib/blob/
|
2138
|
+
##### [ele_by_json](https://github.com/appium/ruby_lib/blob/ba9ec64031f242b3065674b1e4f8b236b391f9fa/lib/appium_lib/ios/helper.rb#L649) ios
|
2112
2139
|
|
2113
2140
|
> def ele_by_json(opts)
|
2114
2141
|
|
@@ -2116,7 +2143,7 @@ see eles_by_json
|
|
2116
2143
|
|
2117
2144
|
--
|
2118
2145
|
|
2119
|
-
##### [get_source](https://github.com/appium/ruby_lib/blob/
|
2146
|
+
##### [get_source](https://github.com/appium/ruby_lib/blob/ba9ec64031f242b3065674b1e4f8b236b391f9fa/lib/appium_lib/ios/helper.rb#L659) ios
|
2120
2147
|
|
2121
2148
|
> def get_source
|
2122
2149
|
|
@@ -2129,7 +2156,7 @@ __Returns:__
|
|
2129
2156
|
|
2130
2157
|
--
|
2131
2158
|
|
2132
|
-
##### [IAStaticText](https://github.com/appium/ruby_lib/blob/
|
2159
|
+
##### [IAStaticText](https://github.com/appium/ruby_lib/blob/ba9ec64031f242b3065674b1e4f8b236b391f9fa/lib/appium_lib/ios/element/text.rb#L4) ios
|
2133
2160
|
|
2134
2161
|
> IAStaticText = 'UIAStaticText'.freeze
|
2135
2162
|
|
@@ -2137,7 +2164,7 @@ __Returns:__
|
|
2137
2164
|
|
2138
2165
|
--
|
2139
2166
|
|
2140
|
-
##### [XCUIElementTypeStaticText](https://github.com/appium/ruby_lib/blob/
|
2167
|
+
##### [XCUIElementTypeStaticText](https://github.com/appium/ruby_lib/blob/ba9ec64031f242b3065674b1e4f8b236b391f9fa/lib/appium_lib/ios/element/text.rb#L5) ios
|
2141
2168
|
|
2142
2169
|
> XCUIElementTypeStaticText = 'XCUIElementTypeStaticText'.freeze
|
2143
2170
|
|
@@ -2145,7 +2172,7 @@ __Returns:__
|
|
2145
2172
|
|
2146
2173
|
--
|
2147
2174
|
|
2148
|
-
##### [static_text_class](https://github.com/appium/ruby_lib/blob/
|
2175
|
+
##### [static_text_class](https://github.com/appium/ruby_lib/blob/ba9ec64031f242b3065674b1e4f8b236b391f9fa/lib/appium_lib/ios/element/text.rb#L8) ios
|
2149
2176
|
|
2150
2177
|
> def static_text_class
|
2151
2178
|
|
@@ -2157,7 +2184,7 @@ __Returns:__
|
|
2157
2184
|
|
2158
2185
|
--
|
2159
2186
|
|
2160
|
-
##### [text](https://github.com/appium/ruby_lib/blob/
|
2187
|
+
##### [text](https://github.com/appium/ruby_lib/blob/ba9ec64031f242b3065674b1e4f8b236b391f9fa/lib/appium_lib/ios/element/text.rb#L16) ios
|
2161
2188
|
|
2162
2189
|
> def text(value)
|
2163
2190
|
|
@@ -2174,7 +2201,7 @@ __Returns:__
|
|
2174
2201
|
|
2175
2202
|
--
|
2176
2203
|
|
2177
|
-
##### [texts](https://github.com/appium/ruby_lib/blob/
|
2204
|
+
##### [texts](https://github.com/appium/ruby_lib/blob/ba9ec64031f242b3065674b1e4f8b236b391f9fa/lib/appium_lib/ios/element/text.rb#L30) ios
|
2178
2205
|
|
2179
2206
|
> def texts(value = false)
|
2180
2207
|
|
@@ -2191,7 +2218,7 @@ __Returns:__
|
|
2191
2218
|
|
2192
2219
|
--
|
2193
2220
|
|
2194
|
-
##### [first_text](https://github.com/appium/ruby_lib/blob/
|
2221
|
+
##### [first_text](https://github.com/appium/ruby_lib/blob/ba9ec64031f242b3065674b1e4f8b236b391f9fa/lib/appium_lib/ios/element/text.rb#L42) ios
|
2195
2222
|
|
2196
2223
|
> def first_text
|
2197
2224
|
|
@@ -2203,7 +2230,7 @@ __Returns:__
|
|
2203
2230
|
|
2204
2231
|
--
|
2205
2232
|
|
2206
|
-
##### [last_text](https://github.com/appium/ruby_lib/blob/
|
2233
|
+
##### [last_text](https://github.com/appium/ruby_lib/blob/ba9ec64031f242b3065674b1e4f8b236b391f9fa/lib/appium_lib/ios/element/text.rb#L48) ios
|
2207
2234
|
|
2208
2235
|
> def last_text
|
2209
2236
|
|
@@ -2215,7 +2242,7 @@ __Returns:__
|
|
2215
2242
|
|
2216
2243
|
--
|
2217
2244
|
|
2218
|
-
##### [text_exact](https://github.com/appium/ruby_lib/blob/
|
2245
|
+
##### [text_exact](https://github.com/appium/ruby_lib/blob/ba9ec64031f242b3065674b1e4f8b236b391f9fa/lib/appium_lib/ios/element/text.rb#L55) ios
|
2219
2246
|
|
2220
2247
|
> def text_exact(value)
|
2221
2248
|
|
@@ -2231,7 +2258,7 @@ __Returns:__
|
|
2231
2258
|
|
2232
2259
|
--
|
2233
2260
|
|
2234
|
-
##### [texts_exact](https://github.com/appium/ruby_lib/blob/
|
2261
|
+
##### [texts_exact](https://github.com/appium/ruby_lib/blob/ba9ec64031f242b3065674b1e4f8b236b391f9fa/lib/appium_lib/ios/element/text.rb#L66) ios
|
2235
2262
|
|
2236
2263
|
> def texts_exact(value)
|
2237
2264
|
|
@@ -2247,7 +2274,7 @@ __Returns:__
|
|
2247
2274
|
|
2248
2275
|
--
|
2249
2276
|
|
2250
|
-
##### [alert_accept](https://github.com/appium/ruby_lib/blob/
|
2277
|
+
##### [alert_accept](https://github.com/appium/ruby_lib/blob/ba9ec64031f242b3065674b1e4f8b236b391f9fa/lib/appium_lib/ios/element/alert.rb#L5) ios
|
2251
2278
|
|
2252
2279
|
> def alert_accept
|
2253
2280
|
|
@@ -2259,7 +2286,7 @@ __Returns:__
|
|
2259
2286
|
|
2260
2287
|
--
|
2261
2288
|
|
2262
|
-
##### [alert_dismiss](https://github.com/appium/ruby_lib/blob/
|
2289
|
+
##### [alert_dismiss](https://github.com/appium/ruby_lib/blob/ba9ec64031f242b3065674b1e4f8b236b391f9fa/lib/appium_lib/ios/element/alert.rb#L13) ios
|
2263
2290
|
|
2264
2291
|
> def alert_dismiss
|
2265
2292
|
|
@@ -2271,7 +2298,7 @@ __Returns:__
|
|
2271
2298
|
|
2272
2299
|
--
|
2273
2300
|
|
2274
|
-
##### [uiautomation_find](https://github.com/appium/ruby_lib/blob/
|
2301
|
+
##### [uiautomation_find](https://github.com/appium/ruby_lib/blob/ba9ec64031f242b3065674b1e4f8b236b391f9fa/lib/appium_lib/ios/mobile_methods.rb#L10) ios
|
2275
2302
|
|
2276
2303
|
> def uiautomation_find
|
2277
2304
|
|
@@ -2283,7 +2310,7 @@ find_element/s can be used with a [UIAutomation command](https://developer.apple
|
|
2283
2310
|
|
2284
2311
|
--
|
2285
2312
|
|
2286
|
-
##### [UIAButton](https://github.com/appium/ruby_lib/blob/
|
2313
|
+
##### [UIAButton](https://github.com/appium/ruby_lib/blob/ba9ec64031f242b3065674b1e4f8b236b391f9fa/lib/appium_lib/ios/element/button.rb#L4) ios
|
2287
2314
|
|
2288
2315
|
> UIAButton = 'UIAButton'.freeze
|
2289
2316
|
|
@@ -2291,7 +2318,7 @@ find_element/s can be used with a [UIAutomation command](https://developer.apple
|
|
2291
2318
|
|
2292
2319
|
--
|
2293
2320
|
|
2294
|
-
##### [XCUIElementTypeButton](https://github.com/appium/ruby_lib/blob/
|
2321
|
+
##### [XCUIElementTypeButton](https://github.com/appium/ruby_lib/blob/ba9ec64031f242b3065674b1e4f8b236b391f9fa/lib/appium_lib/ios/element/button.rb#L5) ios
|
2295
2322
|
|
2296
2323
|
> XCUIElementTypeButton = 'XCUIElementTypeButton'.freeze
|
2297
2324
|
|
@@ -2299,7 +2326,7 @@ find_element/s can be used with a [UIAutomation command](https://developer.apple
|
|
2299
2326
|
|
2300
2327
|
--
|
2301
2328
|
|
2302
|
-
##### [button_class](https://github.com/appium/ruby_lib/blob/
|
2329
|
+
##### [button_class](https://github.com/appium/ruby_lib/blob/ba9ec64031f242b3065674b1e4f8b236b391f9fa/lib/appium_lib/ios/element/button.rb#L8) ios
|
2303
2330
|
|
2304
2331
|
> def button_class
|
2305
2332
|
|
@@ -2311,7 +2338,7 @@ __Returns:__
|
|
2311
2338
|
|
2312
2339
|
--
|
2313
2340
|
|
2314
|
-
##### [button](https://github.com/appium/ruby_lib/blob/
|
2341
|
+
##### [button](https://github.com/appium/ruby_lib/blob/ba9ec64031f242b3065674b1e4f8b236b391f9fa/lib/appium_lib/ios/element/button.rb#L16) ios
|
2315
2342
|
|
2316
2343
|
> def button(value)
|
2317
2344
|
|
@@ -2328,7 +2355,7 @@ __Returns:__
|
|
2328
2355
|
|
2329
2356
|
--
|
2330
2357
|
|
2331
|
-
##### [buttons](https://github.com/appium/ruby_lib/blob/
|
2358
|
+
##### [buttons](https://github.com/appium/ruby_lib/blob/ba9ec64031f242b3065674b1e4f8b236b391f9fa/lib/appium_lib/ios/element/button.rb#L31) ios
|
2332
2359
|
|
2333
2360
|
> def buttons(value = false)
|
2334
2361
|
|
@@ -2345,7 +2372,7 @@ __Returns:__
|
|
2345
2372
|
|
2346
2373
|
--
|
2347
2374
|
|
2348
|
-
##### [first_button](https://github.com/appium/ruby_lib/blob/
|
2375
|
+
##### [first_button](https://github.com/appium/ruby_lib/blob/ba9ec64031f242b3065674b1e4f8b236b391f9fa/lib/appium_lib/ios/element/button.rb#L43) ios
|
2349
2376
|
|
2350
2377
|
> def first_button
|
2351
2378
|
|
@@ -2357,7 +2384,7 @@ __Returns:__
|
|
2357
2384
|
|
2358
2385
|
--
|
2359
2386
|
|
2360
|
-
##### [last_button](https://github.com/appium/ruby_lib/blob/
|
2387
|
+
##### [last_button](https://github.com/appium/ruby_lib/blob/ba9ec64031f242b3065674b1e4f8b236b391f9fa/lib/appium_lib/ios/element/button.rb#L51) ios
|
2361
2388
|
|
2362
2389
|
> def last_button
|
2363
2390
|
|
@@ -2371,7 +2398,7 @@ __Returns:__
|
|
2371
2398
|
|
2372
2399
|
--
|
2373
2400
|
|
2374
|
-
##### [button_exact](https://github.com/appium/ruby_lib/blob/
|
2401
|
+
##### [button_exact](https://github.com/appium/ruby_lib/blob/ba9ec64031f242b3065674b1e4f8b236b391f9fa/lib/appium_lib/ios/element/button.rb#L58) ios
|
2375
2402
|
|
2376
2403
|
> def button_exact(value)
|
2377
2404
|
|
@@ -2387,7 +2414,7 @@ __Returns:__
|
|
2387
2414
|
|
2388
2415
|
--
|
2389
2416
|
|
2390
|
-
##### [buttons_exact](https://github.com/appium/ruby_lib/blob/
|
2417
|
+
##### [buttons_exact](https://github.com/appium/ruby_lib/blob/ba9ec64031f242b3065674b1e4f8b236b391f9fa/lib/appium_lib/ios/element/button.rb#L69) ios
|
2391
2418
|
|
2392
2419
|
> def buttons_exact(value)
|
2393
2420
|
|
@@ -2403,7 +2430,7 @@ __Returns:__
|
|
2403
2430
|
|
2404
2431
|
--
|
2405
2432
|
|
2406
|
-
##### [find](https://github.com/appium/ruby_lib/blob/
|
2433
|
+
##### [find](https://github.com/appium/ruby_lib/blob/ba9ec64031f242b3065674b1e4f8b236b391f9fa/lib/appium_lib/ios/element/generic.rb#L6) ios
|
2407
2434
|
|
2408
2435
|
> def find(value)
|
2409
2436
|
|
@@ -2419,7 +2446,7 @@ __Returns:__
|
|
2419
2446
|
|
2420
2447
|
--
|
2421
2448
|
|
2422
|
-
##### [finds](https://github.com/appium/ruby_lib/blob/
|
2449
|
+
##### [finds](https://github.com/appium/ruby_lib/blob/ba9ec64031f242b3065674b1e4f8b236b391f9fa/lib/appium_lib/ios/element/generic.rb#L17) ios
|
2423
2450
|
|
2424
2451
|
> def finds(value)
|
2425
2452
|
|
@@ -2435,7 +2462,7 @@ __Returns:__
|
|
2435
2462
|
|
2436
2463
|
--
|
2437
2464
|
|
2438
|
-
##### [find_exact](https://github.com/appium/ruby_lib/blob/
|
2465
|
+
##### [find_exact](https://github.com/appium/ruby_lib/blob/ba9ec64031f242b3065674b1e4f8b236b391f9fa/lib/appium_lib/ios/element/generic.rb#L28) ios
|
2439
2466
|
|
2440
2467
|
> def find_exact(value)
|
2441
2468
|
|
@@ -2451,7 +2478,7 @@ __Returns:__
|
|
2451
2478
|
|
2452
2479
|
--
|
2453
2480
|
|
2454
|
-
##### [finds_exact](https://github.com/appium/ruby_lib/blob/
|
2481
|
+
##### [finds_exact](https://github.com/appium/ruby_lib/blob/ba9ec64031f242b3065674b1e4f8b236b391f9fa/lib/appium_lib/ios/element/generic.rb#L39) ios
|
2455
2482
|
|
2456
2483
|
> def finds_exact(value)
|
2457
2484
|
|
@@ -2467,7 +2494,7 @@ __Returns:__
|
|
2467
2494
|
|
2468
2495
|
--
|
2469
2496
|
|
2470
|
-
##### [UIATextField](https://github.com/appium/ruby_lib/blob/
|
2497
|
+
##### [UIATextField](https://github.com/appium/ruby_lib/blob/ba9ec64031f242b3065674b1e4f8b236b391f9fa/lib/appium_lib/ios/element/textfield.rb#L3) ios
|
2471
2498
|
|
2472
2499
|
> UIATextField = 'UIATextField'.freeze
|
2473
2500
|
|
@@ -2475,7 +2502,7 @@ __Returns:__
|
|
2475
2502
|
|
2476
2503
|
--
|
2477
2504
|
|
2478
|
-
##### [UIASecureTextField](https://github.com/appium/ruby_lib/blob/
|
2505
|
+
##### [UIASecureTextField](https://github.com/appium/ruby_lib/blob/ba9ec64031f242b3065674b1e4f8b236b391f9fa/lib/appium_lib/ios/element/textfield.rb#L4) ios
|
2479
2506
|
|
2480
2507
|
> UIASecureTextField = 'UIASecureTextField'.freeze
|
2481
2508
|
|
@@ -2483,7 +2510,7 @@ __Returns:__
|
|
2483
2510
|
|
2484
2511
|
--
|
2485
2512
|
|
2486
|
-
##### [XCUIElementTypeTextField](https://github.com/appium/ruby_lib/blob/
|
2513
|
+
##### [XCUIElementTypeTextField](https://github.com/appium/ruby_lib/blob/ba9ec64031f242b3065674b1e4f8b236b391f9fa/lib/appium_lib/ios/element/textfield.rb#L6) ios
|
2487
2514
|
|
2488
2515
|
> XCUIElementTypeTextField = 'XCUIElementTypeTextField'.freeze
|
2489
2516
|
|
@@ -2491,7 +2518,7 @@ __Returns:__
|
|
2491
2518
|
|
2492
2519
|
--
|
2493
2520
|
|
2494
|
-
##### [XCUIElementTypeSecureTextField](https://github.com/appium/ruby_lib/blob/
|
2521
|
+
##### [XCUIElementTypeSecureTextField](https://github.com/appium/ruby_lib/blob/ba9ec64031f242b3065674b1e4f8b236b391f9fa/lib/appium_lib/ios/element/textfield.rb#L7) ios
|
2495
2522
|
|
2496
2523
|
> XCUIElementTypeSecureTextField = 'XCUIElementTypeSecureTextField'.freeze
|
2497
2524
|
|
@@ -2499,7 +2526,7 @@ __Returns:__
|
|
2499
2526
|
|
2500
2527
|
--
|
2501
2528
|
|
2502
|
-
##### [text_field_class](https://github.com/appium/ruby_lib/blob/
|
2529
|
+
##### [text_field_class](https://github.com/appium/ruby_lib/blob/ba9ec64031f242b3065674b1e4f8b236b391f9fa/lib/appium_lib/ios/element/textfield.rb#L10) ios
|
2503
2530
|
|
2504
2531
|
> def text_field_class
|
2505
2532
|
|
@@ -2511,7 +2538,7 @@ __Returns:__
|
|
2511
2538
|
|
2512
2539
|
--
|
2513
2540
|
|
2514
|
-
##### [secure_text_field_class](https://github.com/appium/ruby_lib/blob/
|
2541
|
+
##### [secure_text_field_class](https://github.com/appium/ruby_lib/blob/ba9ec64031f242b3065674b1e4f8b236b391f9fa/lib/appium_lib/ios/element/textfield.rb#L15) ios
|
2515
2542
|
|
2516
2543
|
> def secure_text_field_class
|
2517
2544
|
|
@@ -2523,7 +2550,7 @@ __Returns:__
|
|
2523
2550
|
|
2524
2551
|
--
|
2525
2552
|
|
2526
|
-
##### [_textfield_visible](https://github.com/appium/ruby_lib/blob/
|
2553
|
+
##### [_textfield_visible](https://github.com/appium/ruby_lib/blob/ba9ec64031f242b3065674b1e4f8b236b391f9fa/lib/appium_lib/ios/element/textfield.rb#L40) ios
|
2527
2554
|
|
2528
2555
|
> def _textfield_visible
|
2529
2556
|
|
@@ -2531,7 +2558,7 @@ Appium
|
|
2531
2558
|
|
2532
2559
|
--
|
2533
2560
|
|
2534
|
-
##### [_textfield_exact_string](https://github.com/appium/ruby_lib/blob/
|
2561
|
+
##### [_textfield_exact_string](https://github.com/appium/ruby_lib/blob/ba9ec64031f242b3065674b1e4f8b236b391f9fa/lib/appium_lib/ios/element/textfield.rb#L45) ios
|
2535
2562
|
|
2536
2563
|
> def _textfield_exact_string(value)
|
2537
2564
|
|
@@ -2539,7 +2566,7 @@ Appium
|
|
2539
2566
|
|
2540
2567
|
--
|
2541
2568
|
|
2542
|
-
##### [_textfield_contains_string](https://github.com/appium/ruby_lib/blob/
|
2569
|
+
##### [_textfield_contains_string](https://github.com/appium/ruby_lib/blob/ba9ec64031f242b3065674b1e4f8b236b391f9fa/lib/appium_lib/ios/element/textfield.rb#L52) ios
|
2543
2570
|
|
2544
2571
|
> def _textfield_contains_string(value)
|
2545
2572
|
|
@@ -2547,7 +2574,7 @@ Appium
|
|
2547
2574
|
|
2548
2575
|
--
|
2549
2576
|
|
2550
|
-
##### [textfield](https://github.com/appium/ruby_lib/blob/
|
2577
|
+
##### [textfield](https://github.com/appium/ruby_lib/blob/ba9ec64031f242b3065674b1e4f8b236b391f9fa/lib/appium_lib/ios/element/textfield.rb#L65) ios
|
2551
2578
|
|
2552
2579
|
> def textfield(value)
|
2553
2580
|
|
@@ -2565,7 +2592,7 @@ __Returns:__
|
|
2565
2592
|
|
2566
2593
|
--
|
2567
2594
|
|
2568
|
-
##### [textfields](https://github.com/appium/ruby_lib/blob/
|
2595
|
+
##### [textfields](https://github.com/appium/ruby_lib/blob/ba9ec64031f242b3065674b1e4f8b236b391f9fa/lib/appium_lib/ios/element/textfield.rb#L91) ios
|
2569
2596
|
|
2570
2597
|
> def textfields(value = false)
|
2571
2598
|
|
@@ -2582,7 +2609,7 @@ __Returns:__
|
|
2582
2609
|
|
2583
2610
|
--
|
2584
2611
|
|
2585
|
-
##### [first_textfield](https://github.com/appium/ruby_lib/blob/
|
2612
|
+
##### [first_textfield](https://github.com/appium/ruby_lib/blob/ba9ec64031f242b3065674b1e4f8b236b391f9fa/lib/appium_lib/ios/element/textfield.rb#L103) ios
|
2586
2613
|
|
2587
2614
|
> def first_textfield
|
2588
2615
|
|
@@ -2594,7 +2621,7 @@ __Returns:__
|
|
2594
2621
|
|
2595
2622
|
--
|
2596
2623
|
|
2597
|
-
##### [last_textfield](https://github.com/appium/ruby_lib/blob/
|
2624
|
+
##### [last_textfield](https://github.com/appium/ruby_lib/blob/ba9ec64031f242b3065674b1e4f8b236b391f9fa/lib/appium_lib/ios/element/textfield.rb#L113) ios
|
2598
2625
|
|
2599
2626
|
> def last_textfield
|
2600
2627
|
|
@@ -2606,7 +2633,7 @@ __Returns:__
|
|
2606
2633
|
|
2607
2634
|
--
|
2608
2635
|
|
2609
|
-
##### [textfield_exact](https://github.com/appium/ruby_lib/blob/
|
2636
|
+
##### [textfield_exact](https://github.com/appium/ruby_lib/blob/ba9ec64031f242b3065674b1e4f8b236b391f9fa/lib/appium_lib/ios/element/textfield.rb#L126) ios
|
2610
2637
|
|
2611
2638
|
> def textfield_exact(value)
|
2612
2639
|
|
@@ -2622,7 +2649,7 @@ __Returns:__
|
|
2622
2649
|
|
2623
2650
|
--
|
2624
2651
|
|
2625
|
-
##### [textfields_exact](https://github.com/appium/ruby_lib/blob/
|
2652
|
+
##### [textfields_exact](https://github.com/appium/ruby_lib/blob/ba9ec64031f242b3065674b1e4f8b236b391f9fa/lib/appium_lib/ios/element/textfield.rb#L137) ios
|
2626
2653
|
|
2627
2654
|
> def textfields_exact(value)
|
2628
2655
|
|
@@ -2638,7 +2665,7 @@ __Returns:__
|
|
2638
2665
|
|
2639
2666
|
--
|
2640
2667
|
|
2641
|
-
##### [value](https://github.com/appium/ruby_lib/blob/
|
2668
|
+
##### [value](https://github.com/appium/ruby_lib/blob/ba9ec64031f242b3065674b1e4f8b236b391f9fa/lib/appium_lib/common/patch.rb#L12)
|
2642
2669
|
|
2643
2670
|
> def value
|
2644
2671
|
|
@@ -2648,7 +2675,7 @@ Fixes NoMethodError: undefined method `value' for Selenium::WebDriver::Element
|
|
2648
2675
|
|
2649
2676
|
--
|
2650
2677
|
|
2651
|
-
##### [name](https://github.com/appium/ruby_lib/blob/
|
2678
|
+
##### [name](https://github.com/appium/ruby_lib/blob/ba9ec64031f242b3065674b1e4f8b236b391f9fa/lib/appium_lib/common/patch.rb#L19)
|
2652
2679
|
|
2653
2680
|
> def name
|
2654
2681
|
|
@@ -2658,7 +2685,7 @@ Fixes NoMethodError: undefined method `name' for Selenium::WebDriver::Element
|
|
2658
2685
|
|
2659
2686
|
--
|
2660
2687
|
|
2661
|
-
##### [location_rel](https://github.com/appium/ruby_lib/blob/
|
2688
|
+
##### [location_rel](https://github.com/appium/ruby_lib/blob/ba9ec64031f242b3065674b1e4f8b236b391f9fa/lib/appium_lib/common/patch.rb#L31)
|
2662
2689
|
|
2663
2690
|
> def location_rel
|
2664
2691
|
|
@@ -2676,9 +2703,17 @@ __Returns:__
|
|
2676
2703
|
|
2677
2704
|
--
|
2678
2705
|
|
2679
|
-
##### [DEFAULT_HEADERS](https://github.com/appium/ruby_lib/blob/
|
2706
|
+
##### [DEFAULT_HEADERS](https://github.com/appium/ruby_lib/blob/ba9ec64031f242b3065674b1e4f8b236b391f9fa/lib/appium_lib/common/patch.rb#L152)
|
2707
|
+
|
2708
|
+
> DEFAULT_HEADERS = { 'Accept' => CONTENT_TYPE, 'User-Agent' => "appium/ruby_lib/#{::Appium::VERSION}" }.freeze
|
2709
|
+
|
2710
|
+
|
2711
|
+
|
2712
|
+
--
|
2713
|
+
|
2714
|
+
##### [patch_remote_driver_commands](https://github.com/appium/ruby_lib/blob/ba9ec64031f242b3065674b1e4f8b236b391f9fa/lib/appium_lib/common/patch.rb#L155)
|
2680
2715
|
|
2681
|
-
>
|
2716
|
+
> def patch_remote_driver_commands
|
2682
2717
|
|
2683
2718
|
|
2684
2719
|
|