appium_lib 9.3.4 → 9.3.5
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +18 -0
- data/android_tests/lib/android/specs/android/element/generic.rb +13 -2
- data/android_tests/lib/android/specs/common/command.rb +3 -0
- data/android_tests/lib/android/specs/common/device.rb +12 -0
- data/android_tests/lib/android/specs/common/device_touchaction.rb +3 -1
- data/docs/android_docs.md +286 -229
- data/docs/ios_docs.md +314 -243
- data/docs/ios_xcuitest.md +7 -0
- data/ios_tests/lib/ios/specs/device/device.rb +23 -3
- data/ios_tests/lib/ios/specs/ios/mobile_methods.rb +20 -0
- data/lib/appium_lib/android/element/generic.rb +14 -10
- data/lib/appium_lib/android/helper.rb +5 -5
- data/lib/appium_lib/common/command.rb +3 -0
- data/lib/appium_lib/common/version.rb +2 -2
- data/lib/appium_lib/device/device.rb +25 -1
- data/lib/appium_lib/device/multi_touch.rb +3 -0
- data/lib/appium_lib/device/touch_actions.rb +10 -0
- data/lib/appium_lib/ios/mobile_methods.rb +14 -0
- data/release_notes.md +11 -0
- metadata +3 -2
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/11cdf97bf9c4a90ac4e7c7dcf518cfb3fcd99ef2/lib/appium_lib/driver.rb#L75)
|
2
2
|
|
3
3
|
> def self.load_settings(opts = {})
|
4
4
|
|
@@ -27,7 +27,7 @@ __Returns:__
|
|
27
27
|
|
28
28
|
--
|
29
29
|
|
30
|
-
##### [load_appium_txt](https://github.com/appium/ruby_lib/blob/
|
30
|
+
##### [load_appium_txt](https://github.com/appium/ruby_lib/blob/11cdf97bf9c4a90ac4e7c7dcf518cfb3fcd99ef2/lib/appium_lib/driver.rb#L111)
|
31
31
|
|
32
32
|
> def self.load_settings(opts = {})
|
33
33
|
|
@@ -57,7 +57,7 @@ __Returns:__
|
|
57
57
|
|
58
58
|
--
|
59
59
|
|
60
|
-
##### [expand_required_files](https://github.com/appium/ruby_lib/blob/
|
60
|
+
##### [expand_required_files](https://github.com/appium/ruby_lib/blob/11cdf97bf9c4a90ac4e7c7dcf518cfb3fcd99ef2/lib/appium_lib/driver.rb#L117)
|
61
61
|
|
62
62
|
> def self.expand_required_files(base_dir, file_paths)
|
63
63
|
|
@@ -75,7 +75,7 @@ __Returns:__
|
|
75
75
|
|
76
76
|
--
|
77
77
|
|
78
|
-
##### [symbolize_keys](https://github.com/appium/ruby_lib/blob/
|
78
|
+
##### [symbolize_keys](https://github.com/appium/ruby_lib/blob/11cdf97bf9c4a90ac4e7c7dcf518cfb3fcd99ef2/lib/appium_lib/driver.rb#L149)
|
79
79
|
|
80
80
|
> def self.symbolize_keys(hash)
|
81
81
|
|
@@ -86,7 +86,7 @@ https://github.com/rails/docrails/blob/a3b1105ada3da64acfa3843b164b14b734456a50/
|
|
86
86
|
|
87
87
|
--
|
88
88
|
|
89
|
-
##### [promote_singleton_appium_methods](https://github.com/appium/ruby_lib/blob/
|
89
|
+
##### [promote_singleton_appium_methods](https://github.com/appium/ruby_lib/blob/11cdf97bf9c4a90ac4e7c7dcf518cfb3fcd99ef2/lib/appium_lib/driver.rb#L170)
|
90
90
|
|
91
91
|
> def self.promote_singleton_appium_methods(modules)
|
92
92
|
|
@@ -104,7 +104,7 @@ otherwise, the array of modules will be used as the promotion target.
|
|
104
104
|
|
105
105
|
--
|
106
106
|
|
107
|
-
##### [promote_appium_methods](https://github.com/appium/ruby_lib/blob/
|
107
|
+
##### [promote_appium_methods](https://github.com/appium/ruby_lib/blob/11cdf97bf9c4a90ac4e7c7dcf518cfb3fcd99ef2/lib/appium_lib/driver.rb#L223)
|
108
108
|
|
109
109
|
> def self.promote_appium_methods(class_array)
|
110
110
|
|
@@ -134,7 +134,7 @@ __Parameters:__
|
|
134
134
|
|
135
135
|
--
|
136
136
|
|
137
|
-
##### [init_caps_for_appium](https://github.com/appium/ruby_lib/blob/
|
137
|
+
##### [init_caps_for_appium](https://github.com/appium/ruby_lib/blob/11cdf97bf9c4a90ac4e7c7dcf518cfb3fcd99ef2/lib/appium_lib/driver.rb#L258)
|
138
138
|
|
139
139
|
> def self.init_caps_for_appium(opts_caps = {})
|
140
140
|
|
@@ -153,7 +153,7 @@ __Returns:__
|
|
153
153
|
|
154
154
|
--
|
155
155
|
|
156
|
-
##### [global_webdriver_http_sleep](https://github.com/appium/ruby_lib/blob/
|
156
|
+
##### [global_webdriver_http_sleep](https://github.com/appium/ruby_lib/blob/11cdf97bf9c4a90ac4e7c7dcf518cfb3fcd99ef2/lib/appium_lib/driver.rb#L276)
|
157
157
|
|
158
158
|
> def global_webdriver_http_sleep
|
159
159
|
|
@@ -161,7 +161,7 @@ The amount to sleep in seconds before every webdriver http call.
|
|
161
161
|
|
162
162
|
--
|
163
163
|
|
164
|
-
##### [global_webdriver_http_sleep=](https://github.com/appium/ruby_lib/blob/
|
164
|
+
##### [global_webdriver_http_sleep=](https://github.com/appium/ruby_lib/blob/11cdf97bf9c4a90ac4e7c7dcf518cfb3fcd99ef2/lib/appium_lib/driver.rb#L276)
|
165
165
|
|
166
166
|
> def global_webdriver_http_sleep=(value)
|
167
167
|
|
@@ -169,7 +169,7 @@ The amount to sleep in seconds before every webdriver http call.
|
|
169
169
|
|
170
170
|
--
|
171
171
|
|
172
|
-
##### [caps](https://github.com/appium/ruby_lib/blob/
|
172
|
+
##### [caps](https://github.com/appium/ruby_lib/blob/11cdf97bf9c4a90ac4e7c7dcf518cfb3fcd99ef2/lib/appium_lib/driver.rb#L278)
|
173
173
|
|
174
174
|
> def caps
|
175
175
|
|
@@ -177,7 +177,7 @@ Selenium webdriver capabilities
|
|
177
177
|
|
178
178
|
--
|
179
179
|
|
180
|
-
##### [caps=](https://github.com/appium/ruby_lib/blob/
|
180
|
+
##### [caps=](https://github.com/appium/ruby_lib/blob/11cdf97bf9c4a90ac4e7c7dcf518cfb3fcd99ef2/lib/appium_lib/driver.rb#L278)
|
181
181
|
|
182
182
|
> def caps=(value)
|
183
183
|
|
@@ -185,7 +185,7 @@ Selenium webdriver capabilities
|
|
185
185
|
|
186
186
|
--
|
187
187
|
|
188
|
-
##### [custom_url](https://github.com/appium/ruby_lib/blob/
|
188
|
+
##### [custom_url](https://github.com/appium/ruby_lib/blob/11cdf97bf9c4a90ac4e7c7dcf518cfb3fcd99ef2/lib/appium_lib/driver.rb#L280)
|
189
189
|
|
190
190
|
> def custom_url
|
191
191
|
|
@@ -193,7 +193,7 @@ Custom URL for the selenium server
|
|
193
193
|
|
194
194
|
--
|
195
195
|
|
196
|
-
##### [custom_url=](https://github.com/appium/ruby_lib/blob/
|
196
|
+
##### [custom_url=](https://github.com/appium/ruby_lib/blob/11cdf97bf9c4a90ac4e7c7dcf518cfb3fcd99ef2/lib/appium_lib/driver.rb#L280)
|
197
197
|
|
198
198
|
> def custom_url=(value)
|
199
199
|
|
@@ -201,7 +201,7 @@ Custom URL for the selenium server
|
|
201
201
|
|
202
202
|
--
|
203
203
|
|
204
|
-
##### [export_session](https://github.com/appium/ruby_lib/blob/
|
204
|
+
##### [export_session](https://github.com/appium/ruby_lib/blob/11cdf97bf9c4a90ac4e7c7dcf518cfb3fcd99ef2/lib/appium_lib/driver.rb#L282)
|
205
205
|
|
206
206
|
> def export_session
|
207
207
|
|
@@ -209,7 +209,7 @@ Export session id to textfile in /tmp for 3rd party tools
|
|
209
209
|
|
210
210
|
--
|
211
211
|
|
212
|
-
##### [export_session=](https://github.com/appium/ruby_lib/blob/
|
212
|
+
##### [export_session=](https://github.com/appium/ruby_lib/blob/11cdf97bf9c4a90ac4e7c7dcf518cfb3fcd99ef2/lib/appium_lib/driver.rb#L282)
|
213
213
|
|
214
214
|
> def export_session=(value)
|
215
215
|
|
@@ -217,7 +217,7 @@ Export session id to textfile in /tmp for 3rd party tools
|
|
217
217
|
|
218
218
|
--
|
219
219
|
|
220
|
-
##### [default_wait](https://github.com/appium/ruby_lib/blob/
|
220
|
+
##### [default_wait](https://github.com/appium/ruby_lib/blob/11cdf97bf9c4a90ac4e7c7dcf518cfb3fcd99ef2/lib/appium_lib/driver.rb#L287)
|
221
221
|
|
222
222
|
> def default_wait
|
223
223
|
|
@@ -231,7 +231,7 @@ __Returns:__
|
|
231
231
|
|
232
232
|
--
|
233
233
|
|
234
|
-
##### [sauce_username](https://github.com/appium/ruby_lib/blob/
|
234
|
+
##### [sauce_username](https://github.com/appium/ruby_lib/blob/11cdf97bf9c4a90ac4e7c7dcf518cfb3fcd99ef2/lib/appium_lib/driver.rb#L289)
|
235
235
|
|
236
236
|
> def sauce_username
|
237
237
|
|
@@ -239,7 +239,7 @@ Username for use on Sauce Labs. Set `false` to disable Sauce, even when SAUCE_US
|
|
239
239
|
|
240
240
|
--
|
241
241
|
|
242
|
-
##### [sauce_username=](https://github.com/appium/ruby_lib/blob/
|
242
|
+
##### [sauce_username=](https://github.com/appium/ruby_lib/blob/11cdf97bf9c4a90ac4e7c7dcf518cfb3fcd99ef2/lib/appium_lib/driver.rb#L289)
|
243
243
|
|
244
244
|
> def sauce_username=(value)
|
245
245
|
|
@@ -247,7 +247,7 @@ Username for use on Sauce Labs. Set `false` to disable Sauce, even when SAUCE_US
|
|
247
247
|
|
248
248
|
--
|
249
249
|
|
250
|
-
##### [sauce_access_key](https://github.com/appium/ruby_lib/blob/
|
250
|
+
##### [sauce_access_key](https://github.com/appium/ruby_lib/blob/11cdf97bf9c4a90ac4e7c7dcf518cfb3fcd99ef2/lib/appium_lib/driver.rb#L291)
|
251
251
|
|
252
252
|
> def sauce_access_key
|
253
253
|
|
@@ -255,7 +255,7 @@ Access Key for use on Sauce Labs. Set `false` to disable Sauce, even when SAUCE_
|
|
255
255
|
|
256
256
|
--
|
257
257
|
|
258
|
-
##### [sauce_access_key=](https://github.com/appium/ruby_lib/blob/
|
258
|
+
##### [sauce_access_key=](https://github.com/appium/ruby_lib/blob/11cdf97bf9c4a90ac4e7c7dcf518cfb3fcd99ef2/lib/appium_lib/driver.rb#L291)
|
259
259
|
|
260
260
|
> def sauce_access_key=(value)
|
261
261
|
|
@@ -263,7 +263,7 @@ Access Key for use on Sauce Labs. Set `false` to disable Sauce, even when SAUCE_
|
|
263
263
|
|
264
264
|
--
|
265
265
|
|
266
|
-
##### [sauce_endpoint](https://github.com/appium/ruby_lib/blob/
|
266
|
+
##### [sauce_endpoint](https://github.com/appium/ruby_lib/blob/11cdf97bf9c4a90ac4e7c7dcf518cfb3fcd99ef2/lib/appium_lib/driver.rb#L293)
|
267
267
|
|
268
268
|
> def sauce_endpoint
|
269
269
|
|
@@ -271,7 +271,7 @@ Override the Sauce Appium endpoint to allow e.g. TestObject tests
|
|
271
271
|
|
272
272
|
--
|
273
273
|
|
274
|
-
##### [sauce_endpoint=](https://github.com/appium/ruby_lib/blob/
|
274
|
+
##### [sauce_endpoint=](https://github.com/appium/ruby_lib/blob/11cdf97bf9c4a90ac4e7c7dcf518cfb3fcd99ef2/lib/appium_lib/driver.rb#L293)
|
275
275
|
|
276
276
|
> def sauce_endpoint=(value)
|
277
277
|
|
@@ -279,7 +279,7 @@ Override the Sauce Appium endpoint to allow e.g. TestObject tests
|
|
279
279
|
|
280
280
|
--
|
281
281
|
|
282
|
-
##### [appium_port](https://github.com/appium/ruby_lib/blob/
|
282
|
+
##### [appium_port](https://github.com/appium/ruby_lib/blob/11cdf97bf9c4a90ac4e7c7dcf518cfb3fcd99ef2/lib/appium_lib/driver.rb#L295)
|
283
283
|
|
284
284
|
> def appium_port
|
285
285
|
|
@@ -287,7 +287,7 @@ Appium's server port
|
|
287
287
|
|
288
288
|
--
|
289
289
|
|
290
|
-
##### [appium_port=](https://github.com/appium/ruby_lib/blob/
|
290
|
+
##### [appium_port=](https://github.com/appium/ruby_lib/blob/11cdf97bf9c4a90ac4e7c7dcf518cfb3fcd99ef2/lib/appium_lib/driver.rb#L295)
|
291
291
|
|
292
292
|
> def appium_port=(value)
|
293
293
|
|
@@ -295,7 +295,7 @@ Appium's server port
|
|
295
295
|
|
296
296
|
--
|
297
297
|
|
298
|
-
##### [appium_device](https://github.com/appium/ruby_lib/blob/
|
298
|
+
##### [appium_device](https://github.com/appium/ruby_lib/blob/11cdf97bf9c4a90ac4e7c7dcf518cfb3fcd99ef2/lib/appium_lib/driver.rb#L297)
|
299
299
|
|
300
300
|
> def appium_device
|
301
301
|
|
@@ -303,7 +303,7 @@ Device type to request from the appium server
|
|
303
303
|
|
304
304
|
--
|
305
305
|
|
306
|
-
##### [appium_device=](https://github.com/appium/ruby_lib/blob/
|
306
|
+
##### [appium_device=](https://github.com/appium/ruby_lib/blob/11cdf97bf9c4a90ac4e7c7dcf518cfb3fcd99ef2/lib/appium_lib/driver.rb#L297)
|
307
307
|
|
308
308
|
> def appium_device=(value)
|
309
309
|
|
@@ -311,7 +311,7 @@ Device type to request from the appium server
|
|
311
311
|
|
312
312
|
--
|
313
313
|
|
314
|
-
##### [automation_name](https://github.com/appium/ruby_lib/blob/
|
314
|
+
##### [automation_name](https://github.com/appium/ruby_lib/blob/11cdf97bf9c4a90ac4e7c7dcf518cfb3fcd99ef2/lib/appium_lib/driver.rb#L300)
|
315
315
|
|
316
316
|
> def automation_name
|
317
317
|
|
@@ -320,7 +320,7 @@ If automation_name is nil, it is not set both client side and server side.
|
|
320
320
|
|
321
321
|
--
|
322
322
|
|
323
|
-
##### [appium_server_status](https://github.com/appium/ruby_lib/blob/
|
323
|
+
##### [appium_server_status](https://github.com/appium/ruby_lib/blob/11cdf97bf9c4a90ac4e7c7dcf518cfb3fcd99ef2/lib/appium_lib/driver.rb#L302)
|
324
324
|
|
325
325
|
> def appium_server_status
|
326
326
|
|
@@ -328,7 +328,7 @@ Appium's server version
|
|
328
328
|
|
329
329
|
--
|
330
330
|
|
331
|
-
##### [appium_debug](https://github.com/appium/ruby_lib/blob/
|
331
|
+
##### [appium_debug](https://github.com/appium/ruby_lib/blob/11cdf97bf9c4a90ac4e7c7dcf518cfb3fcd99ef2/lib/appium_lib/driver.rb#L304)
|
332
332
|
|
333
333
|
> def appium_debug
|
334
334
|
|
@@ -336,7 +336,7 @@ Boolean debug mode for the Appium Ruby bindings
|
|
336
336
|
|
337
337
|
--
|
338
338
|
|
339
|
-
##### [appium_debug=](https://github.com/appium/ruby_lib/blob/
|
339
|
+
##### [appium_debug=](https://github.com/appium/ruby_lib/blob/11cdf97bf9c4a90ac4e7c7dcf518cfb3fcd99ef2/lib/appium_lib/driver.rb#L304)
|
340
340
|
|
341
341
|
> def appium_debug=(value)
|
342
342
|
|
@@ -344,7 +344,7 @@ Boolean debug mode for the Appium Ruby bindings
|
|
344
344
|
|
345
345
|
--
|
346
346
|
|
347
|
-
##### [listener](https://github.com/appium/ruby_lib/blob/
|
347
|
+
##### [listener](https://github.com/appium/ruby_lib/blob/11cdf97bf9c4a90ac4e7c7dcf518cfb3fcd99ef2/lib/appium_lib/driver.rb#L306)
|
348
348
|
|
349
349
|
> def listener
|
350
350
|
|
@@ -352,7 +352,7 @@ instance of AbstractEventListener for logging support
|
|
352
352
|
|
353
353
|
--
|
354
354
|
|
355
|
-
##### [listener=](https://github.com/appium/ruby_lib/blob/
|
355
|
+
##### [listener=](https://github.com/appium/ruby_lib/blob/11cdf97bf9c4a90ac4e7c7dcf518cfb3fcd99ef2/lib/appium_lib/driver.rb#L306)
|
356
356
|
|
357
357
|
> def listener=(value)
|
358
358
|
|
@@ -360,7 +360,7 @@ instance of AbstractEventListener for logging support
|
|
360
360
|
|
361
361
|
--
|
362
362
|
|
363
|
-
##### [driver](https://github.com/appium/ruby_lib/blob/
|
363
|
+
##### [driver](https://github.com/appium/ruby_lib/blob/11cdf97bf9c4a90ac4e7c7dcf518cfb3fcd99ef2/lib/appium_lib/driver.rb#L309)
|
364
364
|
|
365
365
|
> def driver
|
366
366
|
|
@@ -372,7 +372,7 @@ __Returns:__
|
|
372
372
|
|
373
373
|
--
|
374
374
|
|
375
|
-
##### [http_client](https://github.com/appium/ruby_lib/blob/
|
375
|
+
##### [http_client](https://github.com/appium/ruby_lib/blob/11cdf97bf9c4a90ac4e7c7dcf518cfb3fcd99ef2/lib/appium_lib/driver.rb#L312)
|
376
376
|
|
377
377
|
> def http_client
|
378
378
|
|
@@ -384,7 +384,7 @@ __Returns:__
|
|
384
384
|
|
385
385
|
--
|
386
386
|
|
387
|
-
##### [appium_wait_timeout](https://github.com/appium/ruby_lib/blob/
|
387
|
+
##### [appium_wait_timeout](https://github.com/appium/ruby_lib/blob/11cdf97bf9c4a90ac4e7c7dcf518cfb3fcd99ef2/lib/appium_lib/driver.rb#L317)
|
388
388
|
|
389
389
|
> def appium_wait_timeout
|
390
390
|
|
@@ -398,7 +398,7 @@ __Returns:__
|
|
398
398
|
|
399
399
|
--
|
400
400
|
|
401
|
-
##### [appium_wait_interval](https://github.com/appium/ruby_lib/blob/
|
401
|
+
##### [appium_wait_interval](https://github.com/appium/ruby_lib/blob/11cdf97bf9c4a90ac4e7c7dcf518cfb3fcd99ef2/lib/appium_lib/driver.rb#L322)
|
402
402
|
|
403
403
|
> def appium_wait_interval
|
404
404
|
|
@@ -412,7 +412,7 @@ __Returns:__
|
|
412
412
|
|
413
413
|
--
|
414
414
|
|
415
|
-
##### [initialize](https://github.com/appium/ruby_lib/blob/
|
415
|
+
##### [initialize](https://github.com/appium/ruby_lib/blob/11cdf97bf9c4a90ac4e7c7dcf518cfb3fcd99ef2/lib/appium_lib/driver.rb#L362)
|
416
416
|
|
417
417
|
> def initialize(opts = {})
|
418
418
|
|
@@ -428,7 +428,7 @@ __Returns:__
|
|
428
428
|
|
429
429
|
--
|
430
430
|
|
431
|
-
##### [driver_attributes](https://github.com/appium/ruby_lib/blob/
|
431
|
+
##### [driver_attributes](https://github.com/appium/ruby_lib/blob/11cdf97bf9c4a90ac4e7c7dcf518cfb3fcd99ef2/lib/appium_lib/driver.rb#L440)
|
432
432
|
|
433
433
|
> def driver_attributes
|
434
434
|
|
@@ -436,7 +436,7 @@ Returns a hash of the driver attributes
|
|
436
436
|
|
437
437
|
--
|
438
438
|
|
439
|
-
##### [device_is_android?](https://github.com/appium/ruby_lib/blob/
|
439
|
+
##### [device_is_android?](https://github.com/appium/ruby_lib/blob/11cdf97bf9c4a90ac4e7c7dcf518cfb3fcd99ef2/lib/appium_lib/driver.rb#L465)
|
440
440
|
|
441
441
|
> def device_is_android?
|
442
442
|
|
@@ -448,7 +448,7 @@ __Returns:__
|
|
448
448
|
|
449
449
|
--
|
450
450
|
|
451
|
-
##### [automation_name_is_xcuitest?](https://github.com/appium/ruby_lib/blob/
|
451
|
+
##### [automation_name_is_xcuitest?](https://github.com/appium/ruby_lib/blob/11cdf97bf9c4a90ac4e7c7dcf518cfb3fcd99ef2/lib/appium_lib/driver.rb#L471)
|
452
452
|
|
453
453
|
> def automation_name_is_xcuitest?
|
454
454
|
|
@@ -460,7 +460,7 @@ __Returns:__
|
|
460
460
|
|
461
461
|
--
|
462
462
|
|
463
|
-
##### [check_server_version_xcuitest](https://github.com/appium/ruby_lib/blob/
|
463
|
+
##### [check_server_version_xcuitest](https://github.com/appium/ruby_lib/blob/11cdf97bf9c4a90ac4e7c7dcf518cfb3fcd99ef2/lib/appium_lib/driver.rb#L478)
|
464
464
|
|
465
465
|
> def check_server_version_xcuitest
|
466
466
|
|
@@ -473,7 +473,7 @@ __Returns:__
|
|
473
473
|
|
474
474
|
--
|
475
475
|
|
476
|
-
##### [appium_server_version](https://github.com/appium/ruby_lib/blob/
|
476
|
+
##### [appium_server_version](https://github.com/appium/ruby_lib/blob/11cdf97bf9c4a90ac4e7c7dcf518cfb3fcd99ef2/lib/appium_lib/driver.rb#L497)
|
477
477
|
|
478
478
|
> def appium_server_version
|
479
479
|
|
@@ -494,7 +494,7 @@ __Returns:__
|
|
494
494
|
|
495
495
|
--
|
496
496
|
|
497
|
-
##### [appium_client_version](https://github.com/appium/ruby_lib/blob/
|
497
|
+
##### [appium_client_version](https://github.com/appium/ruby_lib/blob/11cdf97bf9c4a90ac4e7c7dcf518cfb3fcd99ef2/lib/appium_lib/driver.rb#L510)
|
498
498
|
|
499
499
|
> def appium_client_version
|
500
500
|
|
@@ -512,7 +512,7 @@ __Returns:__
|
|
512
512
|
|
513
513
|
--
|
514
514
|
|
515
|
-
##### [absolute_app_path](https://github.com/appium/ruby_lib/blob/
|
515
|
+
##### [absolute_app_path](https://github.com/appium/ruby_lib/blob/11cdf97bf9c4a90ac4e7c7dcf518cfb3fcd99ef2/lib/appium_lib/driver.rb#L522)
|
516
516
|
|
517
517
|
> def self.absolute_app_path(opts)
|
518
518
|
|
@@ -529,7 +529,7 @@ __Returns:__
|
|
529
529
|
|
530
530
|
--
|
531
531
|
|
532
|
-
##### [server_url](https://github.com/appium/ruby_lib/blob/
|
532
|
+
##### [server_url](https://github.com/appium/ruby_lib/blob/11cdf97bf9c4a90ac4e7c7dcf518cfb3fcd99ef2/lib/appium_lib/driver.rb#L555)
|
533
533
|
|
534
534
|
> def server_url
|
535
535
|
|
@@ -541,7 +541,7 @@ __Returns:__
|
|
541
541
|
|
542
542
|
--
|
543
543
|
|
544
|
-
##### [restart](https://github.com/appium/ruby_lib/blob/
|
544
|
+
##### [restart](https://github.com/appium/ruby_lib/blob/11cdf97bf9c4a90ac4e7c7dcf518cfb3fcd99ef2/lib/appium_lib/driver.rb#L566)
|
545
545
|
|
546
546
|
> def restart
|
547
547
|
|
@@ -553,7 +553,7 @@ __Returns:__
|
|
553
553
|
|
554
554
|
--
|
555
555
|
|
556
|
-
##### [screenshot](https://github.com/appium/ruby_lib/blob/
|
556
|
+
##### [screenshot](https://github.com/appium/ruby_lib/blob/11cdf97bf9c4a90ac4e7c7dcf518cfb3fcd99ef2/lib/appium_lib/driver.rb#L577)
|
557
557
|
|
558
558
|
> def screenshot(png_save_path)
|
559
559
|
|
@@ -571,7 +571,7 @@ __Returns:__
|
|
571
571
|
|
572
572
|
--
|
573
573
|
|
574
|
-
##### [driver_quit](https://github.com/appium/ruby_lib/blob/
|
574
|
+
##### [driver_quit](https://github.com/appium/ruby_lib/blob/11cdf97bf9c4a90ac4e7c7dcf518cfb3fcd99ef2/lib/appium_lib/driver.rb#L584)
|
575
575
|
|
576
576
|
> def driver_quit
|
577
577
|
|
@@ -583,7 +583,7 @@ __Returns:__
|
|
583
583
|
|
584
584
|
--
|
585
585
|
|
586
|
-
##### [start_driver](https://github.com/appium/ruby_lib/blob/
|
586
|
+
##### [start_driver](https://github.com/appium/ruby_lib/blob/11cdf97bf9c4a90ac4e7c7dcf518cfb3fcd99ef2/lib/appium_lib/driver.rb#L594)
|
587
587
|
|
588
588
|
> def start_driver
|
589
589
|
|
@@ -595,7 +595,7 @@ __Returns:__
|
|
595
595
|
|
596
596
|
--
|
597
597
|
|
598
|
-
##### [no_wait](https://github.com/appium/ruby_lib/blob/
|
598
|
+
##### [no_wait](https://github.com/appium/ruby_lib/blob/11cdf97bf9c4a90ac4e7c7dcf518cfb3fcd99ef2/lib/appium_lib/driver.rb#L632)
|
599
599
|
|
600
600
|
> def no_wait
|
601
601
|
|
@@ -603,7 +603,7 @@ Set implicit wait to zero.
|
|
603
603
|
|
604
604
|
--
|
605
605
|
|
606
|
-
##### [set_wait](https://github.com/appium/ruby_lib/blob/
|
606
|
+
##### [set_wait](https://github.com/appium/ruby_lib/blob/11cdf97bf9c4a90ac4e7c7dcf518cfb3fcd99ef2/lib/appium_lib/driver.rb#L646)
|
607
607
|
|
608
608
|
> def set_wait(timeout = nil)
|
609
609
|
|
@@ -625,7 +625,7 @@ __Returns:__
|
|
625
625
|
|
626
626
|
--
|
627
627
|
|
628
|
-
##### [exists](https://github.com/appium/ruby_lib/blob/
|
628
|
+
##### [exists](https://github.com/appium/ruby_lib/blob/11cdf97bf9c4a90ac4e7c7dcf518cfb3fcd99ef2/lib/appium_lib/driver.rb#L663)
|
629
629
|
|
630
630
|
> def exists(pre_check = 0, post_check = @default_wait)
|
631
631
|
|
@@ -649,7 +649,7 @@ __Returns:__
|
|
649
649
|
|
650
650
|
--
|
651
651
|
|
652
|
-
##### [execute_script](https://github.com/appium/ruby_lib/blob/
|
652
|
+
##### [execute_script](https://github.com/appium/ruby_lib/blob/11cdf97bf9c4a90ac4e7c7dcf518cfb3fcd99ef2/lib/appium_lib/driver.rb#L687)
|
653
653
|
|
654
654
|
> def execute_script(script, *args)
|
655
655
|
|
@@ -667,7 +667,7 @@ __Returns:__
|
|
667
667
|
|
668
668
|
--
|
669
669
|
|
670
|
-
##### [find_elements](https://github.com/appium/ruby_lib/blob/
|
670
|
+
##### [find_elements](https://github.com/appium/ruby_lib/blob/11cdf97bf9c4a90ac4e7c7dcf518cfb3fcd99ef2/lib/appium_lib/driver.rb#L695)
|
671
671
|
|
672
672
|
> def find_elements(*args)
|
673
673
|
|
@@ -683,7 +683,7 @@ __Returns:__
|
|
683
683
|
|
684
684
|
--
|
685
685
|
|
686
|
-
##### [find_element](https://github.com/appium/ruby_lib/blob/
|
686
|
+
##### [find_element](https://github.com/appium/ruby_lib/blob/11cdf97bf9c4a90ac4e7c7dcf518cfb3fcd99ef2/lib/appium_lib/driver.rb#L703)
|
687
687
|
|
688
688
|
> def find_element(*args)
|
689
689
|
|
@@ -699,7 +699,7 @@ __Returns:__
|
|
699
699
|
|
700
700
|
--
|
701
701
|
|
702
|
-
##### [set_location](https://github.com/appium/ruby_lib/blob/
|
702
|
+
##### [set_location](https://github.com/appium/ruby_lib/blob/11cdf97bf9c4a90ac4e7c7dcf518cfb3fcd99ef2/lib/appium_lib/driver.rb#L716)
|
703
703
|
|
704
704
|
> def set_location(opts = {})
|
705
705
|
|
@@ -715,7 +715,7 @@ __Returns:__
|
|
715
715
|
|
716
716
|
--
|
717
717
|
|
718
|
-
##### [x](https://github.com/appium/ruby_lib/blob/
|
718
|
+
##### [x](https://github.com/appium/ruby_lib/blob/11cdf97bf9c4a90ac4e7c7dcf518cfb3fcd99ef2/lib/appium_lib/driver.rb#L726)
|
719
719
|
|
720
720
|
> def x
|
721
721
|
|
@@ -728,7 +728,7 @@ __Returns:__
|
|
728
728
|
|
729
729
|
--
|
730
730
|
|
731
|
-
##### [set_automation_name_if_nil](https://github.com/appium/ruby_lib/blob/
|
731
|
+
##### [set_automation_name_if_nil](https://github.com/appium/ruby_lib/blob/11cdf97bf9c4a90ac4e7c7dcf518cfb3fcd99ef2/lib/appium_lib/driver.rb#L735)
|
732
732
|
|
733
733
|
> def set_automation_name_if_nil
|
734
734
|
|
@@ -737,7 +737,7 @@ Since @automation_name is set only client side before start_driver is called.
|
|
737
737
|
|
738
738
|
--
|
739
739
|
|
740
|
-
##### [logger=](https://github.com/appium/ruby_lib/blob/
|
740
|
+
##### [logger=](https://github.com/appium/ruby_lib/blob/11cdf97bf9c4a90ac4e7c7dcf518cfb3fcd99ef2/lib/appium_lib/logger.rb#L13)
|
741
741
|
|
742
742
|
> def logger=(value)
|
743
743
|
|
@@ -749,7 +749,7 @@ __Parameters:__
|
|
749
749
|
|
750
750
|
--
|
751
751
|
|
752
|
-
##### [logger](https://github.com/appium/ruby_lib/blob/
|
752
|
+
##### [logger](https://github.com/appium/ruby_lib/blob/11cdf97bf9c4a90ac4e7c7dcf518cfb3fcd99ef2/lib/appium_lib/logger.rb#L17)
|
753
753
|
|
754
754
|
> def logger
|
755
755
|
|
@@ -757,7 +757,7 @@ __Parameters:__
|
|
757
757
|
|
758
758
|
--
|
759
759
|
|
760
|
-
##### [app_strings](https://github.com/appium/ruby_lib/blob/
|
760
|
+
##### [app_strings](https://github.com/appium/ruby_lib/blob/11cdf97bf9c4a90ac4e7c7dcf518cfb3fcd99ef2/lib/appium_lib/device/device.rb#L7)
|
761
761
|
|
762
762
|
> def app_strings
|
763
763
|
|
@@ -768,7 +768,7 @@ app_strings #=> "TransitionsTitle"=>"Transitions", "WebTitle"=>"Web"
|
|
768
768
|
|
769
769
|
--
|
770
770
|
|
771
|
-
##### [background_app](https://github.com/appium/ruby_lib/blob/
|
771
|
+
##### [background_app](https://github.com/appium/ruby_lib/blob/11cdf97bf9c4a90ac4e7c7dcf518cfb3fcd99ef2/lib/appium_lib/device/device.rb#L13)
|
772
772
|
|
773
773
|
> def background_app
|
774
774
|
|
@@ -777,7 +777,7 @@ This is a blocking application
|
|
777
777
|
|
778
778
|
--
|
779
779
|
|
780
|
-
##### [current_activity](https://github.com/appium/ruby_lib/blob/
|
780
|
+
##### [current_activity](https://github.com/appium/ruby_lib/blob/11cdf97bf9c4a90ac4e7c7dcf518cfb3fcd99ef2/lib/appium_lib/device/device.rb#L24)
|
781
781
|
|
782
782
|
> def current_activity
|
783
783
|
|
@@ -785,7 +785,52 @@ This is a blocking application
|
|
785
785
|
|
786
786
|
--
|
787
787
|
|
788
|
-
##### [
|
788
|
+
##### [get_system_bars](https://github.com/appium/ruby_lib/blob/11cdf97bf9c4a90ac4e7c7dcf518cfb3fcd99ef2/lib/appium_lib/device/device.rb#L26)
|
789
|
+
|
790
|
+
> def get_system_bars
|
791
|
+
|
792
|
+
Get system bar's information
|
793
|
+
```ruby
|
794
|
+
get_system_bars
|
795
|
+
```
|
796
|
+
|
797
|
+
__Returns:__
|
798
|
+
|
799
|
+
[String] System bar
|
800
|
+
|
801
|
+
--
|
802
|
+
|
803
|
+
##### [get_display_density](https://github.com/appium/ruby_lib/blob/11cdf97bf9c4a90ac4e7c7dcf518cfb3fcd99ef2/lib/appium_lib/device/device.rb#L34)
|
804
|
+
|
805
|
+
> def get_display_density
|
806
|
+
|
807
|
+
Get connected device's density.
|
808
|
+
```ruby
|
809
|
+
get_display_density # 320
|
810
|
+
```
|
811
|
+
|
812
|
+
__Returns:__
|
813
|
+
|
814
|
+
[Integer] The size of density
|
815
|
+
|
816
|
+
--
|
817
|
+
|
818
|
+
##### [is_keyboard_shown](https://github.com/appium/ruby_lib/blob/11cdf97bf9c4a90ac4e7c7dcf518cfb3fcd99ef2/lib/appium_lib/device/device.rb#L42)
|
819
|
+
|
820
|
+
> def is_keyboard_shown
|
821
|
+
|
822
|
+
Get whether keyboard is displayed or not.
|
823
|
+
```ruby
|
824
|
+
is_keyboard_shown # false
|
825
|
+
```
|
826
|
+
|
827
|
+
__Returns:__
|
828
|
+
|
829
|
+
[Bool] Return true if keyboard is shown. Return false if keyboard is hidden.
|
830
|
+
|
831
|
+
--
|
832
|
+
|
833
|
+
##### [launch_app](https://github.com/appium/ruby_lib/blob/11cdf97bf9c4a90ac4e7c7dcf518cfb3fcd99ef2/lib/appium_lib/device/device.rb#L50)
|
789
834
|
|
790
835
|
> def launch_app
|
791
836
|
|
@@ -793,7 +838,7 @@ Start the simulator and application configured with desired capabilities
|
|
793
838
|
|
794
839
|
--
|
795
840
|
|
796
|
-
##### [reset](https://github.com/appium/ruby_lib/blob/
|
841
|
+
##### [reset](https://github.com/appium/ruby_lib/blob/11cdf97bf9c4a90ac4e7c7dcf518cfb3fcd99ef2/lib/appium_lib/device/device.rb#L53)
|
797
842
|
|
798
843
|
> def reset
|
799
844
|
|
@@ -801,7 +846,7 @@ Reset the device, relaunching the application.
|
|
801
846
|
|
802
847
|
--
|
803
848
|
|
804
|
-
##### [shake](https://github.com/appium/ruby_lib/blob/
|
849
|
+
##### [shake](https://github.com/appium/ruby_lib/blob/11cdf97bf9c4a90ac4e7c7dcf518cfb3fcd99ef2/lib/appium_lib/device/device.rb#L56)
|
805
850
|
|
806
851
|
> def shake
|
807
852
|
|
@@ -809,7 +854,7 @@ Cause the device to shake
|
|
809
854
|
|
810
855
|
--
|
811
856
|
|
812
|
-
##### [toggle_flight_mode](https://github.com/appium/ruby_lib/blob/
|
857
|
+
##### [toggle_flight_mode](https://github.com/appium/ruby_lib/blob/11cdf97bf9c4a90ac4e7c7dcf518cfb3fcd99ef2/lib/appium_lib/device/device.rb#L59)
|
813
858
|
|
814
859
|
> def toggle_flight_mode
|
815
860
|
|
@@ -817,7 +862,7 @@ Toggle flight mode on or off
|
|
817
862
|
|
818
863
|
--
|
819
864
|
|
820
|
-
##### [device_locked?](https://github.com/appium/ruby_lib/blob/
|
865
|
+
##### [device_locked?](https://github.com/appium/ruby_lib/blob/11cdf97bf9c4a90ac4e7c7dcf518cfb3fcd99ef2/lib/appium_lib/device/device.rb#L62)
|
821
866
|
|
822
867
|
> def device_locked?
|
823
868
|
|
@@ -825,7 +870,7 @@ Toggle flight mode on or off
|
|
825
870
|
|
826
871
|
--
|
827
872
|
|
828
|
-
##### [hide_keyboard](https://github.com/appium/ruby_lib/blob/
|
873
|
+
##### [hide_keyboard](https://github.com/appium/ruby_lib/blob/11cdf97bf9c4a90ac4e7c7dcf518cfb3fcd99ef2/lib/appium_lib/device/device.rb#L64)
|
829
874
|
|
830
875
|
> def hide_keyboard
|
831
876
|
|
@@ -838,7 +883,7 @@ Defaults to 'Done'.
|
|
838
883
|
|
839
884
|
--
|
840
885
|
|
841
|
-
##### [press_keycode](https://github.com/appium/ruby_lib/blob/
|
886
|
+
##### [press_keycode](https://github.com/appium/ruby_lib/blob/11cdf97bf9c4a90ac4e7c7dcf518cfb3fcd99ef2/lib/appium_lib/device/device.rb#L73)
|
842
887
|
|
843
888
|
> def press_keycode
|
844
889
|
|
@@ -853,7 +898,7 @@ __Parameters:__
|
|
853
898
|
|
854
899
|
--
|
855
900
|
|
856
|
-
##### [long_press_keycode](https://github.com/appium/ruby_lib/blob/
|
901
|
+
##### [long_press_keycode](https://github.com/appium/ruby_lib/blob/11cdf97bf9c4a90ac4e7c7dcf518cfb3fcd99ef2/lib/appium_lib/device/device.rb#L79)
|
857
902
|
|
858
903
|
> def long_press_keycode
|
859
904
|
|
@@ -868,7 +913,7 @@ __Parameters:__
|
|
868
913
|
|
869
914
|
--
|
870
915
|
|
871
|
-
##### [push_file](https://github.com/appium/ruby_lib/blob/
|
916
|
+
##### [push_file](https://github.com/appium/ruby_lib/blob/11cdf97bf9c4a90ac4e7c7dcf518cfb3fcd99ef2/lib/appium_lib/device/device.rb#L85)
|
872
917
|
|
873
918
|
> def push_file
|
874
919
|
|
@@ -882,7 +927,7 @@ __Parameters:__
|
|
882
927
|
|
883
928
|
--
|
884
929
|
|
885
|
-
##### [pull_file](https://github.com/appium/ruby_lib/blob/
|
930
|
+
##### [pull_file](https://github.com/appium/ruby_lib/blob/11cdf97bf9c4a90ac4e7c7dcf518cfb3fcd99ef2/lib/appium_lib/device/device.rb#L90)
|
886
931
|
|
887
932
|
> def pull_file
|
888
933
|
|
@@ -899,7 +944,7 @@ __Parameters:__
|
|
899
944
|
|
900
945
|
--
|
901
946
|
|
902
|
-
##### [pull_folder](https://github.com/appium/ruby_lib/blob/
|
947
|
+
##### [pull_folder](https://github.com/appium/ruby_lib/blob/11cdf97bf9c4a90ac4e7c7dcf518cfb3fcd99ef2/lib/appium_lib/device/device.rb#L100)
|
903
948
|
|
904
949
|
> def pull_folder
|
905
950
|
|
@@ -914,7 +959,7 @@ __Parameters:__
|
|
914
959
|
|
915
960
|
--
|
916
961
|
|
917
|
-
##### [touch_id](https://github.com/appium/ruby_lib/blob/
|
962
|
+
##### [touch_id](https://github.com/appium/ruby_lib/blob/11cdf97bf9c4a90ac4e7c7dcf518cfb3fcd99ef2/lib/appium_lib/device/device.rb#L108)
|
918
963
|
|
919
964
|
> def touch_id
|
920
965
|
|
@@ -931,7 +976,7 @@ Defaults to true.
|
|
931
976
|
|
932
977
|
--
|
933
978
|
|
934
|
-
##### [end_coverage](https://github.com/appium/ruby_lib/blob/
|
979
|
+
##### [end_coverage](https://github.com/appium/ruby_lib/blob/11cdf97bf9c4a90ac4e7c7dcf518cfb3fcd99ef2/lib/appium_lib/device/device.rb#L117)
|
935
980
|
|
936
981
|
> def end_coverage
|
937
982
|
|
@@ -945,7 +990,7 @@ __Parameters:__
|
|
945
990
|
|
946
991
|
--
|
947
992
|
|
948
|
-
##### [get_settings](https://github.com/appium/ruby_lib/blob/
|
993
|
+
##### [get_settings](https://github.com/appium/ruby_lib/blob/11cdf97bf9c4a90ac4e7c7dcf518cfb3fcd99ef2/lib/appium_lib/device/device.rb#L122)
|
949
994
|
|
950
995
|
> def get_settings
|
951
996
|
|
@@ -953,7 +998,7 @@ Get appium Settings for current test session
|
|
953
998
|
|
954
999
|
--
|
955
1000
|
|
956
|
-
##### [update_settings](https://github.com/appium/ruby_lib/blob/
|
1001
|
+
##### [update_settings](https://github.com/appium/ruby_lib/blob/11cdf97bf9c4a90ac4e7c7dcf518cfb3fcd99ef2/lib/appium_lib/device/device.rb#L125)
|
957
1002
|
|
958
1003
|
> def update_settings
|
959
1004
|
|
@@ -965,7 +1010,7 @@ __Parameters:__
|
|
965
1010
|
|
966
1011
|
--
|
967
1012
|
|
968
|
-
##### [start_activity](https://github.com/appium/ruby_lib/blob/
|
1013
|
+
##### [start_activity](https://github.com/appium/ruby_lib/blob/11cdf97bf9c4a90ac4e7c7dcf518cfb3fcd99ef2/lib/appium_lib/device/device.rb#L129)
|
969
1014
|
|
970
1015
|
> def start_activity
|
971
1016
|
|
@@ -979,7 +1024,7 @@ start_activity app_package: 'io.appium.android.apis',
|
|
979
1024
|
|
980
1025
|
--
|
981
1026
|
|
982
|
-
##### [get_network_connection](https://github.com/appium/ruby_lib/blob/
|
1027
|
+
##### [get_network_connection](https://github.com/appium/ruby_lib/blob/11cdf97bf9c4a90ac4e7c7dcf518cfb3fcd99ef2/lib/appium_lib/device/device.rb#L143)
|
983
1028
|
|
984
1029
|
> def get_network_connection
|
985
1030
|
|
@@ -988,7 +1033,7 @@ See set_network_connection method for return value
|
|
988
1033
|
|
989
1034
|
--
|
990
1035
|
|
991
|
-
##### [set_network_connection](https://github.com/appium/ruby_lib/blob/
|
1036
|
+
##### [set_network_connection](https://github.com/appium/ruby_lib/blob/11cdf97bf9c4a90ac4e7c7dcf518cfb3fcd99ef2/lib/appium_lib/device/device.rb#L147)
|
992
1037
|
|
993
1038
|
> def set_network_connection
|
994
1039
|
|
@@ -1007,7 +1052,7 @@ __Parameters:__
|
|
1007
1052
|
|
1008
1053
|
--
|
1009
1054
|
|
1010
|
-
##### [set_immediate_value](https://github.com/appium/ruby_lib/blob/
|
1055
|
+
##### [set_immediate_value](https://github.com/appium/ruby_lib/blob/11cdf97bf9c4a90ac4e7c7dcf518cfb3fcd99ef2/lib/appium_lib/device/device.rb#L160)
|
1011
1056
|
|
1012
1057
|
> def set_immediate_value
|
1013
1058
|
|
@@ -1021,7 +1066,7 @@ set_immediate_value element, 'hello'
|
|
1021
1066
|
|
1022
1067
|
--
|
1023
1068
|
|
1024
|
-
##### [get_performance_data_types](https://github.com/appium/ruby_lib/blob/
|
1069
|
+
##### [get_performance_data_types](https://github.com/appium/ruby_lib/blob/11cdf97bf9c4a90ac4e7c7dcf518cfb3fcd99ef2/lib/appium_lib/device/device.rb#L169)
|
1025
1070
|
|
1026
1071
|
> def get_performance_data_types
|
1027
1072
|
|
@@ -1035,7 +1080,7 @@ get_performance_data_types #=> ["cpuinfo", "batteryinfo", "networkinfo", "memory
|
|
1035
1080
|
|
1036
1081
|
--
|
1037
1082
|
|
1038
|
-
##### [extend_search_contexts](https://github.com/appium/ruby_lib/blob/
|
1083
|
+
##### [extend_search_contexts](https://github.com/appium/ruby_lib/blob/11cdf97bf9c4a90ac4e7c7dcf518cfb3fcd99ef2/lib/appium_lib/device/device.rb#L424)
|
1039
1084
|
|
1040
1085
|
> def extend_search_contexts
|
1041
1086
|
|
@@ -1043,7 +1088,7 @@ get_performance_data_types #=> ["cpuinfo", "batteryinfo", "networkinfo", "memory
|
|
1043
1088
|
|
1044
1089
|
--
|
1045
1090
|
|
1046
|
-
##### [find_element](https://github.com/appium/ruby_lib/blob/
|
1091
|
+
##### [find_element](https://github.com/appium/ruby_lib/blob/11cdf97bf9c4a90ac4e7c7dcf518cfb3fcd99ef2/lib/appium_lib/device/device.rb#L424)
|
1047
1092
|
|
1048
1093
|
> def find_element
|
1049
1094
|
|
@@ -1051,7 +1096,7 @@ get_performance_data_types #=> ["cpuinfo", "batteryinfo", "networkinfo", "memory
|
|
1051
1096
|
|
1052
1097
|
--
|
1053
1098
|
|
1054
|
-
##### [find_elements](https://github.com/appium/ruby_lib/blob/
|
1099
|
+
##### [find_elements](https://github.com/appium/ruby_lib/blob/11cdf97bf9c4a90ac4e7c7dcf518cfb3fcd99ef2/lib/appium_lib/device/device.rb#L424)
|
1055
1100
|
|
1056
1101
|
> def find_elements
|
1057
1102
|
|
@@ -1063,7 +1108,7 @@ find_element/s with their accessibility_id
|
|
1063
1108
|
|
1064
1109
|
--
|
1065
1110
|
|
1066
|
-
##### [add_touch_actions](https://github.com/appium/ruby_lib/blob/
|
1111
|
+
##### [add_touch_actions](https://github.com/appium/ruby_lib/blob/11cdf97bf9c4a90ac4e7c7dcf518cfb3fcd99ef2/lib/appium_lib/device/device.rb#L455)
|
1067
1112
|
|
1068
1113
|
> def add_touch_actions
|
1069
1114
|
|
@@ -1071,7 +1116,7 @@ find_element/s with their accessibility_id
|
|
1071
1116
|
|
1072
1117
|
--
|
1073
1118
|
|
1074
|
-
##### [add_ime_actions](https://github.com/appium/ruby_lib/blob/
|
1119
|
+
##### [add_ime_actions](https://github.com/appium/ruby_lib/blob/11cdf97bf9c4a90ac4e7c7dcf518cfb3fcd99ef2/lib/appium_lib/device/device.rb#L478)
|
1075
1120
|
|
1076
1121
|
> def add_ime_actions
|
1077
1122
|
|
@@ -1079,7 +1124,7 @@ find_element/s with their accessibility_id
|
|
1079
1124
|
|
1080
1125
|
--
|
1081
1126
|
|
1082
|
-
##### [set_context](https://github.com/appium/ruby_lib/blob/
|
1127
|
+
##### [set_context](https://github.com/appium/ruby_lib/blob/11cdf97bf9c4a90ac4e7c7dcf518cfb3fcd99ef2/lib/appium_lib/device/device.rb#L553)
|
1083
1128
|
|
1084
1129
|
> def set_context
|
1085
1130
|
|
@@ -1094,7 +1139,7 @@ __Parameters:__
|
|
1094
1139
|
|
1095
1140
|
--
|
1096
1141
|
|
1097
|
-
##### [current_context](https://github.com/appium/ruby_lib/blob/
|
1142
|
+
##### [current_context](https://github.com/appium/ruby_lib/blob/11cdf97bf9c4a90ac4e7c7dcf518cfb3fcd99ef2/lib/appium_lib/device/device.rb#L561)
|
1098
1143
|
|
1099
1144
|
> def current_context
|
1100
1145
|
|
@@ -1106,7 +1151,7 @@ __Returns:__
|
|
1106
1151
|
|
1107
1152
|
--
|
1108
1153
|
|
1109
|
-
##### [available_contexts](https://github.com/appium/ruby_lib/blob/
|
1154
|
+
##### [available_contexts](https://github.com/appium/ruby_lib/blob/11cdf97bf9c4a90ac4e7c7dcf518cfb3fcd99ef2/lib/appium_lib/device/device.rb#L564)
|
1110
1155
|
|
1111
1156
|
> def available_contexts
|
1112
1157
|
|
@@ -1118,7 +1163,7 @@ __Returns:__
|
|
1118
1163
|
|
1119
1164
|
--
|
1120
1165
|
|
1121
|
-
##### [within_context](https://github.com/appium/ruby_lib/blob/
|
1166
|
+
##### [within_context](https://github.com/appium/ruby_lib/blob/11cdf97bf9c4a90ac4e7c7dcf518cfb3fcd99ef2/lib/appium_lib/device/device.rb#L574)
|
1122
1167
|
|
1123
1168
|
> def within_context(context)
|
1124
1169
|
|
@@ -1134,7 +1179,7 @@ __Parameters:__
|
|
1134
1179
|
|
1135
1180
|
--
|
1136
1181
|
|
1137
|
-
##### [switch_to_default_context](https://github.com/appium/ruby_lib/blob/
|
1182
|
+
##### [switch_to_default_context](https://github.com/appium/ruby_lib/blob/11cdf97bf9c4a90ac4e7c7dcf518cfb3fcd99ef2/lib/appium_lib/device/device.rb#L582)
|
1138
1183
|
|
1139
1184
|
> def switch_to_default_context
|
1140
1185
|
|
@@ -1142,7 +1187,7 @@ Change to the default context. This is equivalent to `set_context nil`.
|
|
1142
1187
|
|
1143
1188
|
--
|
1144
1189
|
|
1145
|
-
##### [pinch](https://github.com/appium/ruby_lib/blob/
|
1190
|
+
##### [pinch](https://github.com/appium/ruby_lib/blob/11cdf97bf9c4a90ac4e7c7dcf518cfb3fcd99ef2/lib/appium_lib/device/multi_touch.rb#L28)
|
1146
1191
|
|
1147
1192
|
> def pinch(percentage = 25, auto_perform = true)
|
1148
1193
|
|
@@ -1161,7 +1206,7 @@ __Parameters:__
|
|
1161
1206
|
|
1162
1207
|
--
|
1163
1208
|
|
1164
|
-
##### [zoom](https://github.com/appium/ruby_lib/blob/
|
1209
|
+
##### [zoom](https://github.com/appium/ruby_lib/blob/11cdf97bf9c4a90ac4e7c7dcf518cfb3fcd99ef2/lib/appium_lib/device/multi_touch.rb#L57)
|
1165
1210
|
|
1166
1211
|
> def zoom(percentage = 200, auto_perform = true)
|
1167
1212
|
|
@@ -1180,7 +1225,7 @@ __Parameters:__
|
|
1180
1225
|
|
1181
1226
|
--
|
1182
1227
|
|
1183
|
-
##### [pinch_for_xcuitest](https://github.com/appium/ruby_lib/blob/
|
1228
|
+
##### [pinch_for_xcuitest](https://github.com/appium/ruby_lib/blob/11cdf97bf9c4a90ac4e7c7dcf518cfb3fcd99ef2/lib/appium_lib/device/multi_touch.rb#L79)
|
1184
1229
|
|
1185
1230
|
> def pinch_for_xcuitest(rate)
|
1186
1231
|
|
@@ -1188,7 +1233,7 @@ __Parameters:__
|
|
1188
1233
|
|
1189
1234
|
--
|
1190
1235
|
|
1191
|
-
##### [pinch_android](https://github.com/appium/ruby_lib/blob/
|
1236
|
+
##### [pinch_android](https://github.com/appium/ruby_lib/blob/11cdf97bf9c4a90ac4e7c7dcf518cfb3fcd99ef2/lib/appium_lib/device/multi_touch.rb#L94)
|
1192
1237
|
|
1193
1238
|
> def pinch_android(rate)
|
1194
1239
|
|
@@ -1196,7 +1241,7 @@ __Parameters:__
|
|
1196
1241
|
|
1197
1242
|
--
|
1198
1243
|
|
1199
|
-
##### [pinch_ios](https://github.com/appium/ruby_lib/blob/
|
1244
|
+
##### [pinch_ios](https://github.com/appium/ruby_lib/blob/11cdf97bf9c4a90ac4e7c7dcf518cfb3fcd99ef2/lib/appium_lib/device/multi_touch.rb#L108)
|
1200
1245
|
|
1201
1246
|
> def pinch_ios(rate)
|
1202
1247
|
|
@@ -1204,7 +1249,7 @@ __Parameters:__
|
|
1204
1249
|
|
1205
1250
|
--
|
1206
1251
|
|
1207
|
-
##### [zoom_for_xcuitest](https://github.com/appium/ruby_lib/blob/
|
1252
|
+
##### [zoom_for_xcuitest](https://github.com/appium/ruby_lib/blob/11cdf97bf9c4a90ac4e7c7dcf518cfb3fcd99ef2/lib/appium_lib/device/multi_touch.rb#L122)
|
1208
1253
|
|
1209
1254
|
> def zoom_for_xcuitest(rate)
|
1210
1255
|
|
@@ -1212,7 +1257,7 @@ __Parameters:__
|
|
1212
1257
|
|
1213
1258
|
--
|
1214
1259
|
|
1215
|
-
##### [zoom_android](https://github.com/appium/ruby_lib/blob/
|
1260
|
+
##### [zoom_android](https://github.com/appium/ruby_lib/blob/11cdf97bf9c4a90ac4e7c7dcf518cfb3fcd99ef2/lib/appium_lib/device/multi_touch.rb#L137)
|
1216
1261
|
|
1217
1262
|
> def zoom_android(rate)
|
1218
1263
|
|
@@ -1220,7 +1265,7 @@ __Parameters:__
|
|
1220
1265
|
|
1221
1266
|
--
|
1222
1267
|
|
1223
|
-
##### [zoom_ios](https://github.com/appium/ruby_lib/blob/
|
1268
|
+
##### [zoom_ios](https://github.com/appium/ruby_lib/blob/11cdf97bf9c4a90ac4e7c7dcf518cfb3fcd99ef2/lib/appium_lib/device/multi_touch.rb#L151)
|
1224
1269
|
|
1225
1270
|
> def zoom_ios(rate)
|
1226
1271
|
|
@@ -1228,7 +1273,15 @@ __Parameters:__
|
|
1228
1273
|
|
1229
1274
|
--
|
1230
1275
|
|
1231
|
-
##### [
|
1276
|
+
##### [actions](https://github.com/appium/ruby_lib/blob/11cdf97bf9c4a90ac4e7c7dcf518cfb3fcd99ef2/lib/appium_lib/device/multi_touch.rb#L166)
|
1277
|
+
|
1278
|
+
> def actions
|
1279
|
+
|
1280
|
+
self
|
1281
|
+
|
1282
|
+
--
|
1283
|
+
|
1284
|
+
##### [initialize](https://github.com/appium/ruby_lib/blob/11cdf97bf9c4a90ac4e7c7dcf518cfb3fcd99ef2/lib/appium_lib/device/multi_touch.rb#L169)
|
1232
1285
|
|
1233
1286
|
> def initialize
|
1234
1287
|
|
@@ -1240,7 +1293,7 @@ __Returns:__
|
|
1240
1293
|
|
1241
1294
|
--
|
1242
1295
|
|
1243
|
-
##### [add](https://github.com/appium/ruby_lib/blob/
|
1296
|
+
##### [add](https://github.com/appium/ruby_lib/blob/11cdf97bf9c4a90ac4e7c7dcf518cfb3fcd99ef2/lib/appium_lib/device/multi_touch.rb#L175)
|
1244
1297
|
|
1245
1298
|
> def add(chain)
|
1246
1299
|
|
@@ -1252,7 +1305,7 @@ __Parameters:__
|
|
1252
1305
|
|
1253
1306
|
--
|
1254
1307
|
|
1255
|
-
##### [perform](https://github.com/appium/ruby_lib/blob/
|
1308
|
+
##### [perform](https://github.com/appium/ruby_lib/blob/11cdf97bf9c4a90ac4e7c7dcf518cfb3fcd99ef2/lib/appium_lib/device/multi_touch.rb#L180)
|
1256
1309
|
|
1257
1310
|
> def perform
|
1258
1311
|
|
@@ -1260,7 +1313,7 @@ Ask Appium to perform the actions
|
|
1260
1313
|
|
1261
1314
|
--
|
1262
1315
|
|
1263
|
-
##### [ACTIONS](https://github.com/appium/ruby_lib/blob/
|
1316
|
+
##### [ACTIONS](https://github.com/appium/ruby_lib/blob/11cdf97bf9c4a90ac4e7c7dcf518cfb3fcd99ef2/lib/appium_lib/device/touch_actions.rb#L20)
|
1264
1317
|
|
1265
1318
|
> ACTIONS = [:move_to, :long_press, :double_tap, :two_finger_tap, :press, :release, :tap, :wait, :perform].freeze
|
1266
1319
|
|
@@ -1268,7 +1321,7 @@ Ask Appium to perform the actions
|
|
1268
1321
|
|
1269
1322
|
--
|
1270
1323
|
|
1271
|
-
##### [COMPLEX_ACTIONS](https://github.com/appium/ruby_lib/blob/
|
1324
|
+
##### [COMPLEX_ACTIONS](https://github.com/appium/ruby_lib/blob/11cdf97bf9c4a90ac4e7c7dcf518cfb3fcd99ef2/lib/appium_lib/device/touch_actions.rb#L21)
|
1272
1325
|
|
1273
1326
|
> COMPLEX_ACTIONS = [:swipe].freeze
|
1274
1327
|
|
@@ -1276,7 +1329,7 @@ Ask Appium to perform the actions
|
|
1276
1329
|
|
1277
1330
|
--
|
1278
1331
|
|
1279
|
-
##### [actions](https://github.com/appium/ruby_lib/blob/
|
1332
|
+
##### [actions](https://github.com/appium/ruby_lib/blob/11cdf97bf9c4a90ac4e7c7dcf518cfb3fcd99ef2/lib/appium_lib/device/touch_actions.rb#L35)
|
1280
1333
|
|
1281
1334
|
> def actions
|
1282
1335
|
|
@@ -1284,7 +1337,7 @@ Returns the value of attribute actions
|
|
1284
1337
|
|
1285
1338
|
--
|
1286
1339
|
|
1287
|
-
##### [initialize](https://github.com/appium/ruby_lib/blob/
|
1340
|
+
##### [initialize](https://github.com/appium/ruby_lib/blob/11cdf97bf9c4a90ac4e7c7dcf518cfb3fcd99ef2/lib/appium_lib/device/touch_actions.rb#L37)
|
1288
1341
|
|
1289
1342
|
> def initialize
|
1290
1343
|
|
@@ -1296,7 +1349,7 @@ __Returns:__
|
|
1296
1349
|
|
1297
1350
|
--
|
1298
1351
|
|
1299
|
-
##### [move_to](https://github.com/appium/ruby_lib/blob/
|
1352
|
+
##### [move_to](https://github.com/appium/ruby_lib/blob/11cdf97bf9c4a90ac4e7c7dcf518cfb3fcd99ef2/lib/appium_lib/device/touch_actions.rb#L48)
|
1300
1353
|
|
1301
1354
|
> def move_to(opts)
|
1302
1355
|
|
@@ -1310,7 +1363,7 @@ __Parameters:__
|
|
1310
1363
|
|
1311
1364
|
--
|
1312
1365
|
|
1313
|
-
##### [long_press](https://github.com/appium/ruby_lib/blob/
|
1366
|
+
##### [long_press](https://github.com/appium/ruby_lib/blob/11cdf97bf9c4a90ac4e7c7dcf518cfb3fcd99ef2/lib/appium_lib/device/touch_actions.rb#L62)
|
1314
1367
|
|
1315
1368
|
> def long_press(opts)
|
1316
1369
|
|
@@ -1331,7 +1384,7 @@ __Parameters:__
|
|
1331
1384
|
|
1332
1385
|
--
|
1333
1386
|
|
1334
|
-
##### [press](https://github.com/appium/ruby_lib/blob/
|
1387
|
+
##### [press](https://github.com/appium/ruby_lib/blob/11cdf97bf9c4a90ac4e7c7dcf518cfb3fcd99ef2/lib/appium_lib/device/touch_actions.rb#L74)
|
1335
1388
|
|
1336
1389
|
> def press(opts)
|
1337
1390
|
|
@@ -1344,7 +1397,7 @@ __Parameters:__
|
|
1344
1397
|
|
1345
1398
|
--
|
1346
1399
|
|
1347
|
-
##### [release](https://github.com/appium/ruby_lib/blob/
|
1400
|
+
##### [release](https://github.com/appium/ruby_lib/blob/11cdf97bf9c4a90ac4e7c7dcf518cfb3fcd99ef2/lib/appium_lib/device/touch_actions.rb#L85)
|
1348
1401
|
|
1349
1402
|
> def release(opts = nil)
|
1350
1403
|
|
@@ -1356,7 +1409,7 @@ __Parameters:__
|
|
1356
1409
|
|
1357
1410
|
--
|
1358
1411
|
|
1359
|
-
##### [tap](https://github.com/appium/ruby_lib/blob/
|
1412
|
+
##### [tap](https://github.com/appium/ruby_lib/blob/11cdf97bf9c4a90ac4e7c7dcf518cfb3fcd99ef2/lib/appium_lib/device/touch_actions.rb#L97)
|
1360
1413
|
|
1361
1414
|
> def tap(opts)
|
1362
1415
|
|
@@ -1369,7 +1422,7 @@ __Parameters:__
|
|
1369
1422
|
|
1370
1423
|
--
|
1371
1424
|
|
1372
|
-
##### [double_tap](https://github.com/appium/ruby_lib/blob/
|
1425
|
+
##### [double_tap](https://github.com/appium/ruby_lib/blob/11cdf97bf9c4a90ac4e7c7dcf518cfb3fcd99ef2/lib/appium_lib/device/touch_actions.rb#L110)
|
1373
1426
|
|
1374
1427
|
> def double_tap(opts)
|
1375
1428
|
|
@@ -1381,7 +1434,7 @@ __Parameters:__
|
|
1381
1434
|
|
1382
1435
|
--
|
1383
1436
|
|
1384
|
-
##### [two_finger_tap](https://github.com/appium/ruby_lib/blob/
|
1437
|
+
##### [two_finger_tap](https://github.com/appium/ruby_lib/blob/11cdf97bf9c4a90ac4e7c7dcf518cfb3fcd99ef2/lib/appium_lib/device/touch_actions.rb#L121)
|
1385
1438
|
|
1386
1439
|
> def two_finger_tap(opts)
|
1387
1440
|
|
@@ -1393,7 +1446,7 @@ __Parameters:__
|
|
1393
1446
|
|
1394
1447
|
--
|
1395
1448
|
|
1396
|
-
##### [wait](https://github.com/appium/ruby_lib/blob/
|
1449
|
+
##### [wait](https://github.com/appium/ruby_lib/blob/11cdf97bf9c4a90ac4e7c7dcf518cfb3fcd99ef2/lib/appium_lib/device/touch_actions.rb#L129)
|
1397
1450
|
|
1398
1451
|
> def wait(milliseconds)
|
1399
1452
|
|
@@ -1405,7 +1458,7 @@ __Parameters:__
|
|
1405
1458
|
|
1406
1459
|
--
|
1407
1460
|
|
1408
|
-
##### [swipe](https://github.com/appium/ruby_lib/blob/
|
1461
|
+
##### [swipe](https://github.com/appium/ruby_lib/blob/11cdf97bf9c4a90ac4e7c7dcf518cfb3fcd99ef2/lib/appium_lib/device/touch_actions.rb#L152)
|
1409
1462
|
|
1410
1463
|
> def swipe(opts, ele = nil)
|
1411
1464
|
|
@@ -1426,7 +1479,7 @@ __Parameters:__
|
|
1426
1479
|
|
1427
1480
|
--
|
1428
1481
|
|
1429
|
-
##### [perform](https://github.com/appium/ruby_lib/blob/
|
1482
|
+
##### [perform](https://github.com/appium/ruby_lib/blob/11cdf97bf9c4a90ac4e7c7dcf518cfb3fcd99ef2/lib/appium_lib/device/touch_actions.rb#L177)
|
1430
1483
|
|
1431
1484
|
> def perform
|
1432
1485
|
|
@@ -1434,7 +1487,7 @@ Ask the driver to perform all actions in this action chain.
|
|
1434
1487
|
|
1435
1488
|
--
|
1436
1489
|
|
1437
|
-
##### [cancel](https://github.com/appium/ruby_lib/blob/
|
1490
|
+
##### [cancel](https://github.com/appium/ruby_lib/blob/11cdf97bf9c4a90ac4e7c7dcf518cfb3fcd99ef2/lib/appium_lib/device/touch_actions.rb#L184)
|
1438
1491
|
|
1439
1492
|
> def cancel
|
1440
1493
|
|
@@ -1442,7 +1495,7 @@ Does nothing, currently.
|
|
1442
1495
|
|
1443
1496
|
--
|
1444
1497
|
|
1445
|
-
##### [swipe_coordinates](https://github.com/appium/ruby_lib/blob/
|
1498
|
+
##### [swipe_coordinates](https://github.com/appium/ruby_lib/blob/11cdf97bf9c4a90ac4e7c7dcf518cfb3fcd99ef2/lib/appium_lib/device/touch_actions.rb#L190)
|
1446
1499
|
|
1447
1500
|
> def swipe_coordinates(end_x: nil, end_y: nil, offset_x: nil, offset_y: nil)
|
1448
1501
|
|
@@ -1450,7 +1503,7 @@ Does nothing, currently.
|
|
1450
1503
|
|
1451
1504
|
--
|
1452
1505
|
|
1453
|
-
##### [chain_method](https://github.com/appium/ruby_lib/blob/
|
1506
|
+
##### [chain_method](https://github.com/appium/ruby_lib/blob/11cdf97bf9c4a90ac4e7c7dcf518cfb3fcd99ef2/lib/appium_lib/device/touch_actions.rb#L208)
|
1454
1507
|
|
1455
1508
|
> def chain_method(method, args = nil)
|
1456
1509
|
|
@@ -1458,7 +1511,7 @@ Does nothing, currently.
|
|
1458
1511
|
|
1459
1512
|
--
|
1460
1513
|
|
1461
|
-
##### [args_with_ele_ref](https://github.com/appium/ruby_lib/blob/
|
1514
|
+
##### [args_with_ele_ref](https://github.com/appium/ruby_lib/blob/11cdf97bf9c4a90ac4e7c7dcf518cfb3fcd99ef2/lib/appium_lib/device/touch_actions.rb#L214)
|
1462
1515
|
|
1463
1516
|
> def args_with_ele_ref(args)
|
1464
1517
|
|
@@ -1466,7 +1519,7 @@ Does nothing, currently.
|
|
1466
1519
|
|
1467
1520
|
--
|
1468
1521
|
|
1469
|
-
##### [_generic_wait](https://github.com/appium/ruby_lib/blob/
|
1522
|
+
##### [_generic_wait](https://github.com/appium/ruby_lib/blob/11cdf97bf9c4a90ac4e7c7dcf518cfb3fcd99ef2/lib/appium_lib/common/wait.rb#L9)
|
1470
1523
|
|
1471
1524
|
> def _generic_wait(opts = {})
|
1472
1525
|
|
@@ -1475,7 +1528,7 @@ https://github.com/SeleniumHQ/selenium/blob/cf501dda3f0ed12233de51ce8170c0e8090f
|
|
1475
1528
|
|
1476
1529
|
--
|
1477
1530
|
|
1478
|
-
##### [_process_wait_opts](https://github.com/appium/ruby_lib/blob/
|
1531
|
+
##### [_process_wait_opts](https://github.com/appium/ruby_lib/blob/11cdf97bf9c4a90ac4e7c7dcf518cfb3fcd99ef2/lib/appium_lib/common/wait.rb#L48)
|
1479
1532
|
|
1480
1533
|
> def _process_wait_opts(opts)
|
1481
1534
|
|
@@ -1483,7 +1536,7 @@ process opts before calling _generic_wait
|
|
1483
1536
|
|
1484
1537
|
--
|
1485
1538
|
|
1486
|
-
##### [wait_true](https://github.com/appium/ruby_lib/blob/
|
1539
|
+
##### [wait_true](https://github.com/appium/ruby_lib/blob/11cdf97bf9c4a90ac4e7c7dcf518cfb3fcd99ef2/lib/appium_lib/common/wait.rb#L69)
|
1487
1540
|
|
1488
1541
|
> def wait_true(opts = {}, &block)
|
1489
1542
|
|
@@ -1503,7 +1556,7 @@ __Parameters:__
|
|
1503
1556
|
|
1504
1557
|
--
|
1505
1558
|
|
1506
|
-
##### [wait](https://github.com/appium/ruby_lib/blob/
|
1559
|
+
##### [wait](https://github.com/appium/ruby_lib/blob/11cdf97bf9c4a90ac4e7c7dcf518cfb3fcd99ef2/lib/appium_lib/common/wait.rb#L87)
|
1507
1560
|
|
1508
1561
|
> def wait(opts = {}, &block)
|
1509
1562
|
|
@@ -1521,7 +1574,7 @@ __Parameters:__
|
|
1521
1574
|
|
1522
1575
|
--
|
1523
1576
|
|
1524
|
-
##### [ignore](https://github.com/appium/ruby_lib/blob/
|
1577
|
+
##### [ignore](https://github.com/appium/ruby_lib/blob/11cdf97bf9c4a90ac4e7c7dcf518cfb3fcd99ef2/lib/appium_lib/common/helper.rb#L24)
|
1525
1578
|
|
1526
1579
|
> def ignore
|
1527
1580
|
|
@@ -1529,7 +1582,7 @@ Return yield and ignore any exceptions.
|
|
1529
1582
|
|
1530
1583
|
--
|
1531
1584
|
|
1532
|
-
##### [back](https://github.com/appium/ruby_lib/blob/
|
1585
|
+
##### [back](https://github.com/appium/ruby_lib/blob/11cdf97bf9c4a90ac4e7c7dcf518cfb3fcd99ef2/lib/appium_lib/common/helper.rb#L31)
|
1533
1586
|
|
1534
1587
|
> def back
|
1535
1588
|
|
@@ -1541,7 +1594,7 @@ __Returns:__
|
|
1541
1594
|
|
1542
1595
|
--
|
1543
1596
|
|
1544
|
-
##### [session_id](https://github.com/appium/ruby_lib/blob/
|
1597
|
+
##### [session_id](https://github.com/appium/ruby_lib/blob/11cdf97bf9c4a90ac4e7c7dcf518cfb3fcd99ef2/lib/appium_lib/common/helper.rb#L36)
|
1545
1598
|
|
1546
1599
|
> def session_id
|
1547
1600
|
|
@@ -1549,7 +1602,7 @@ For Sauce Labs reporting. Returns the current session id.
|
|
1549
1602
|
|
1550
1603
|
--
|
1551
1604
|
|
1552
|
-
##### [xpath](https://github.com/appium/ruby_lib/blob/
|
1605
|
+
##### [xpath](https://github.com/appium/ruby_lib/blob/11cdf97bf9c4a90ac4e7c7dcf518cfb3fcd99ef2/lib/appium_lib/common/helper.rb#L44)
|
1553
1606
|
|
1554
1607
|
> def xpath(xpath_str)
|
1555
1608
|
|
@@ -1565,7 +1618,7 @@ __Returns:__
|
|
1565
1618
|
|
1566
1619
|
--
|
1567
1620
|
|
1568
|
-
##### [xpaths](https://github.com/appium/ruby_lib/blob/
|
1621
|
+
##### [xpaths](https://github.com/appium/ruby_lib/blob/11cdf97bf9c4a90ac4e7c7dcf518cfb3fcd99ef2/lib/appium_lib/common/helper.rb#L52)
|
1569
1622
|
|
1570
1623
|
> def xpaths(xpath_str)
|
1571
1624
|
|
@@ -1581,7 +1634,7 @@ __Returns:__
|
|
1581
1634
|
|
1582
1635
|
--
|
1583
1636
|
|
1584
|
-
##### [_print_source](https://github.com/appium/ruby_lib/blob/
|
1637
|
+
##### [_print_source](https://github.com/appium/ruby_lib/blob/11cdf97bf9c4a90ac4e7c7dcf518cfb3fcd99ef2/lib/appium_lib/common/helper.rb#L56)
|
1585
1638
|
|
1586
1639
|
> def _print_source(source)
|
1587
1640
|
|
@@ -1589,7 +1642,7 @@ __Returns:__
|
|
1589
1642
|
|
1590
1643
|
--
|
1591
1644
|
|
1592
|
-
##### [result](https://github.com/appium/ruby_lib/blob/
|
1645
|
+
##### [result](https://github.com/appium/ruby_lib/blob/11cdf97bf9c4a90ac4e7c7dcf518cfb3fcd99ef2/lib/appium_lib/common/helper.rb#L69)
|
1593
1646
|
|
1594
1647
|
> def result
|
1595
1648
|
|
@@ -1597,7 +1650,7 @@ Returns the value of attribute result
|
|
1597
1650
|
|
1598
1651
|
--
|
1599
1652
|
|
1600
|
-
##### [initialize](https://github.com/appium/ruby_lib/blob/
|
1653
|
+
##### [initialize](https://github.com/appium/ruby_lib/blob/11cdf97bf9c4a90ac4e7c7dcf518cfb3fcd99ef2/lib/appium_lib/common/helper.rb#L71)
|
1601
1654
|
|
1602
1655
|
> def initialize
|
1603
1656
|
|
@@ -1609,7 +1662,7 @@ __Returns:__
|
|
1609
1662
|
|
1610
1663
|
--
|
1611
1664
|
|
1612
|
-
##### [reset](https://github.com/appium/ruby_lib/blob/
|
1665
|
+
##### [reset](https://github.com/appium/ruby_lib/blob/11cdf97bf9c4a90ac4e7c7dcf518cfb3fcd99ef2/lib/appium_lib/common/helper.rb#L75)
|
1613
1666
|
|
1614
1667
|
> def reset
|
1615
1668
|
|
@@ -1617,7 +1670,7 @@ __Returns:__
|
|
1617
1670
|
|
1618
1671
|
--
|
1619
1672
|
|
1620
|
-
##### [start_element](https://github.com/appium/ruby_lib/blob/
|
1673
|
+
##### [start_element](https://github.com/appium/ruby_lib/blob/11cdf97bf9c4a90ac4e7c7dcf518cfb3fcd99ef2/lib/appium_lib/common/helper.rb#L80)
|
1621
1674
|
|
1622
1675
|
> def start_element(name, attrs = [])
|
1623
1676
|
|
@@ -1625,7 +1678,7 @@ http://nokogiri.org/Nokogiri/XML/SAX/Document.html
|
|
1625
1678
|
|
1626
1679
|
--
|
1627
1680
|
|
1628
|
-
##### [formatted_result](https://github.com/appium/ruby_lib/blob/
|
1681
|
+
##### [formatted_result](https://github.com/appium/ruby_lib/blob/11cdf97bf9c4a90ac4e7c7dcf518cfb3fcd99ef2/lib/appium_lib/common/helper.rb#L86)
|
1629
1682
|
|
1630
1683
|
> def formatted_result
|
1631
1684
|
|
@@ -1633,7 +1686,7 @@ http://nokogiri.org/Nokogiri/XML/SAX/Document.html
|
|
1633
1686
|
|
1634
1687
|
--
|
1635
1688
|
|
1636
|
-
##### [get_page_class](https://github.com/appium/ruby_lib/blob/
|
1689
|
+
##### [get_page_class](https://github.com/appium/ruby_lib/blob/11cdf97bf9c4a90ac4e7c7dcf518cfb3fcd99ef2/lib/appium_lib/common/helper.rb#L97)
|
1637
1690
|
|
1638
1691
|
> def get_page_class
|
1639
1692
|
|
@@ -1641,7 +1694,7 @@ Returns a string of class counts of visible elements.
|
|
1641
1694
|
|
1642
1695
|
--
|
1643
1696
|
|
1644
|
-
##### [page_class](https://github.com/appium/ruby_lib/blob/
|
1697
|
+
##### [page_class](https://github.com/appium/ruby_lib/blob/11cdf97bf9c4a90ac4e7c7dcf518cfb3fcd99ef2/lib/appium_lib/common/helper.rb#L108)
|
1645
1698
|
|
1646
1699
|
> def page_class
|
1647
1700
|
|
@@ -1650,7 +1703,7 @@ Useful for appium_console.
|
|
1650
1703
|
|
1651
1704
|
--
|
1652
1705
|
|
1653
|
-
##### [px_to_window_rel](https://github.com/appium/ruby_lib/blob/
|
1706
|
+
##### [px_to_window_rel](https://github.com/appium/ruby_lib/blob/11cdf97bf9c4a90ac4e7c7dcf518cfb3fcd99ef2/lib/appium_lib/common/helper.rb#L118)
|
1654
1707
|
|
1655
1708
|
> def px_to_window_rel(opts = {})
|
1656
1709
|
|
@@ -1662,7 +1715,7 @@ px_to_window_rel x: 50, y: 150
|
|
1662
1715
|
|
1663
1716
|
--
|
1664
1717
|
|
1665
|
-
##### [xml_keys](https://github.com/appium/ruby_lib/blob/
|
1718
|
+
##### [xml_keys](https://github.com/appium/ruby_lib/blob/11cdf97bf9c4a90ac4e7c7dcf518cfb3fcd99ef2/lib/appium_lib/common/helper.rb#L137)
|
1666
1719
|
|
1667
1720
|
> def xml_keys(target)
|
1668
1721
|
|
@@ -1678,7 +1731,7 @@ __Returns:__
|
|
1678
1731
|
|
1679
1732
|
--
|
1680
1733
|
|
1681
|
-
##### [xml_values](https://github.com/appium/ruby_lib/blob/
|
1734
|
+
##### [xml_values](https://github.com/appium/ruby_lib/blob/11cdf97bf9c4a90ac4e7c7dcf518cfb3fcd99ef2/lib/appium_lib/common/helper.rb#L145)
|
1682
1735
|
|
1683
1736
|
> def xml_values(target)
|
1684
1737
|
|
@@ -1694,7 +1747,7 @@ __Returns:__
|
|
1694
1747
|
|
1695
1748
|
--
|
1696
1749
|
|
1697
|
-
##### [resolve_id](https://github.com/appium/ruby_lib/blob/
|
1750
|
+
##### [resolve_id](https://github.com/appium/ruby_lib/blob/11cdf97bf9c4a90ac4e7c7dcf518cfb3fcd99ef2/lib/appium_lib/common/helper.rb#L153)
|
1698
1751
|
|
1699
1752
|
> def resolve_id(id)
|
1700
1753
|
|
@@ -1710,7 +1763,7 @@ __Returns:__
|
|
1710
1763
|
|
1711
1764
|
--
|
1712
1765
|
|
1713
|
-
##### [filter](https://github.com/appium/ruby_lib/blob/
|
1766
|
+
##### [filter](https://github.com/appium/ruby_lib/blob/11cdf97bf9c4a90ac4e7c7dcf518cfb3fcd99ef2/lib/appium_lib/common/helper.rb#L159)
|
1714
1767
|
|
1715
1768
|
> def filter
|
1716
1769
|
|
@@ -1718,7 +1771,7 @@ Returns the value of attribute filter
|
|
1718
1771
|
|
1719
1772
|
--
|
1720
1773
|
|
1721
|
-
##### [filter=](https://github.com/appium/ruby_lib/blob/
|
1774
|
+
##### [filter=](https://github.com/appium/ruby_lib/blob/11cdf97bf9c4a90ac4e7c7dcf518cfb3fcd99ef2/lib/appium_lib/common/helper.rb#L162)
|
1722
1775
|
|
1723
1776
|
> def filter=(value)
|
1724
1777
|
|
@@ -1726,7 +1779,7 @@ convert to string to support symbols
|
|
1726
1779
|
|
1727
1780
|
--
|
1728
1781
|
|
1729
|
-
##### [initialize](https://github.com/appium/ruby_lib/blob/
|
1782
|
+
##### [initialize](https://github.com/appium/ruby_lib/blob/11cdf97bf9c4a90ac4e7c7dcf518cfb3fcd99ef2/lib/appium_lib/common/helper.rb#L168)
|
1730
1783
|
|
1731
1784
|
> def initialize
|
1732
1785
|
|
@@ -1738,7 +1791,7 @@ __Returns:__
|
|
1738
1791
|
|
1739
1792
|
--
|
1740
1793
|
|
1741
|
-
##### [reset](https://github.com/appium/ruby_lib/blob/
|
1794
|
+
##### [reset](https://github.com/appium/ruby_lib/blob/11cdf97bf9c4a90ac4e7c7dcf518cfb3fcd99ef2/lib/appium_lib/common/helper.rb#L173)
|
1742
1795
|
|
1743
1796
|
> def reset
|
1744
1797
|
|
@@ -1746,7 +1799,7 @@ __Returns:__
|
|
1746
1799
|
|
1747
1800
|
--
|
1748
1801
|
|
1749
|
-
##### [result](https://github.com/appium/ruby_lib/blob/
|
1802
|
+
##### [result](https://github.com/appium/ruby_lib/blob/11cdf97bf9c4a90ac4e7c7dcf518cfb3fcd99ef2/lib/appium_lib/common/helper.rb#L179)
|
1750
1803
|
|
1751
1804
|
> def result
|
1752
1805
|
|
@@ -1754,7 +1807,7 @@ __Returns:__
|
|
1754
1807
|
|
1755
1808
|
--
|
1756
1809
|
|
1757
|
-
##### [start_element](https://github.com/appium/ruby_lib/blob/
|
1810
|
+
##### [start_element](https://github.com/appium/ruby_lib/blob/11cdf97bf9c4a90ac4e7c7dcf518cfb3fcd99ef2/lib/appium_lib/common/helper.rb#L195)
|
1758
1811
|
|
1759
1812
|
> def start_element(name, attrs = [])
|
1760
1813
|
|
@@ -1762,7 +1815,7 @@ __Returns:__
|
|
1762
1815
|
|
1763
1816
|
--
|
1764
1817
|
|
1765
|
-
##### [end_element](https://github.com/appium/ruby_lib/blob/
|
1818
|
+
##### [end_element](https://github.com/appium/ruby_lib/blob/11cdf97bf9c4a90ac4e7c7dcf518cfb3fcd99ef2/lib/appium_lib/common/helper.rb#L204)
|
1766
1819
|
|
1767
1820
|
> def end_element(name)
|
1768
1821
|
|
@@ -1770,7 +1823,7 @@ __Returns:__
|
|
1770
1823
|
|
1771
1824
|
--
|
1772
1825
|
|
1773
|
-
##### [characters](https://github.com/appium/ruby_lib/blob/
|
1826
|
+
##### [characters](https://github.com/appium/ruby_lib/blob/11cdf97bf9c4a90ac4e7c7dcf518cfb3fcd99ef2/lib/appium_lib/common/helper.rb#L210)
|
1774
1827
|
|
1775
1828
|
> def characters(chars)
|
1776
1829
|
|
@@ -1778,7 +1831,7 @@ __Returns:__
|
|
1778
1831
|
|
1779
1832
|
--
|
1780
1833
|
|
1781
|
-
##### [_no_such_element](https://github.com/appium/ruby_lib/blob/
|
1834
|
+
##### [_no_such_element](https://github.com/appium/ruby_lib/blob/11cdf97bf9c4a90ac4e7c7dcf518cfb3fcd99ef2/lib/appium_lib/common/helper.rb#L217)
|
1782
1835
|
|
1783
1836
|
> def _no_such_element
|
1784
1837
|
|
@@ -1786,7 +1839,7 @@ __Returns:__
|
|
1786
1839
|
|
1787
1840
|
--
|
1788
1841
|
|
1789
|
-
##### [COMMAND_NO_ARG](https://github.com/appium/ruby_lib/blob/
|
1842
|
+
##### [COMMAND_NO_ARG](https://github.com/appium/ruby_lib/blob/11cdf97bf9c4a90ac4e7c7dcf518cfb3fcd99ef2/lib/appium_lib/common/command.rb#L4)
|
1790
1843
|
|
1791
1844
|
> COMMAND_NO_ARG = {
|
1792
1845
|
|
@@ -1794,7 +1847,7 @@ __Returns:__
|
|
1794
1847
|
|
1795
1848
|
--
|
1796
1849
|
|
1797
|
-
##### [COMMAND](https://github.com/appium/ruby_lib/blob/
|
1850
|
+
##### [COMMAND](https://github.com/appium/ruby_lib/blob/11cdf97bf9c4a90ac4e7c7dcf518cfb3fcd99ef2/lib/appium_lib/common/command.rb#L27)
|
1798
1851
|
|
1799
1852
|
> COMMAND = {
|
1800
1853
|
|
@@ -1802,7 +1855,7 @@ __Returns:__
|
|
1802
1855
|
|
1803
1856
|
--
|
1804
1857
|
|
1805
|
-
##### [window_size](https://github.com/appium/ruby_lib/blob/
|
1858
|
+
##### [window_size](https://github.com/appium/ruby_lib/blob/11cdf97bf9c4a90ac4e7c7dcf518cfb3fcd99ef2/lib/appium_lib/common/element/window.rb#L5)
|
1806
1859
|
|
1807
1860
|
> def window_size
|
1808
1861
|
|
@@ -1810,7 +1863,7 @@ Get the window's size
|
|
1810
1863
|
|
1811
1864
|
--
|
1812
1865
|
|
1813
|
-
##### [FINDERS](https://github.com/appium/ruby_lib/blob/
|
1866
|
+
##### [FINDERS](https://github.com/appium/ruby_lib/blob/11cdf97bf9c4a90ac4e7c7dcf518cfb3fcd99ef2/lib/appium_lib/common/search_context.rb#L5)
|
1814
1867
|
|
1815
1868
|
> FINDERS = {
|
1816
1869
|
|
@@ -1818,7 +1871,7 @@ rubocop:disable Style/MutableConstant
|
|
1818
1871
|
|
1819
1872
|
--
|
1820
1873
|
|
1821
|
-
##### [filter](https://github.com/appium/ruby_lib/blob/
|
1874
|
+
##### [filter](https://github.com/appium/ruby_lib/blob/11cdf97bf9c4a90ac4e7c7dcf518cfb3fcd99ef2/lib/appium_lib/ios/helper.rb#L4) ios
|
1822
1875
|
|
1823
1876
|
> def filter
|
1824
1877
|
|
@@ -1826,7 +1879,7 @@ Returns the value of attribute filter
|
|
1826
1879
|
|
1827
1880
|
--
|
1828
1881
|
|
1829
|
-
##### [filter=](https://github.com/appium/ruby_lib/blob/
|
1882
|
+
##### [filter=](https://github.com/appium/ruby_lib/blob/11cdf97bf9c4a90ac4e7c7dcf518cfb3fcd99ef2/lib/appium_lib/ios/helper.rb#L4) ios
|
1830
1883
|
|
1831
1884
|
> def filter=(value)
|
1832
1885
|
|
@@ -1838,7 +1891,7 @@ __Parameters:__
|
|
1838
1891
|
|
1839
1892
|
--
|
1840
1893
|
|
1841
|
-
##### [start_element](https://github.com/appium/ruby_lib/blob/
|
1894
|
+
##### [start_element](https://github.com/appium/ruby_lib/blob/11cdf97bf9c4a90ac4e7c7dcf518cfb3fcd99ef2/lib/appium_lib/ios/helper.rb#L6) ios
|
1842
1895
|
|
1843
1896
|
> def start_element(type, attrs = [])
|
1844
1897
|
|
@@ -1846,7 +1899,7 @@ __Parameters:__
|
|
1846
1899
|
|
1847
1900
|
--
|
1848
1901
|
|
1849
|
-
##### [_print_attr](https://github.com/appium/ruby_lib/blob/
|
1902
|
+
##### [_print_attr](https://github.com/appium/ruby_lib/blob/11cdf97bf9c4a90ac4e7c7dcf518cfb3fcd99ef2/lib/appium_lib/ios/helper.rb#L15) ios
|
1850
1903
|
|
1851
1904
|
> def _print_attr(type, name, label, value, hint)
|
1852
1905
|
|
@@ -1854,7 +1907,7 @@ __Parameters:__
|
|
1854
1907
|
|
1855
1908
|
--
|
1856
1909
|
|
1857
|
-
##### [ios_password](https://github.com/appium/ruby_lib/blob/
|
1910
|
+
##### [ios_password](https://github.com/appium/ruby_lib/blob/11cdf97bf9c4a90ac4e7c7dcf518cfb3fcd99ef2/lib/appium_lib/ios/helper.rb#L41) ios
|
1858
1911
|
|
1859
1912
|
> def ios_password(length = 1)
|
1860
1913
|
|
@@ -1872,7 +1925,7 @@ __Returns:__
|
|
1872
1925
|
|
1873
1926
|
--
|
1874
1927
|
|
1875
|
-
##### [get_page](https://github.com/appium/ruby_lib/blob/
|
1928
|
+
##### [get_page](https://github.com/appium/ruby_lib/blob/11cdf97bf9c4a90ac4e7c7dcf518cfb3fcd99ef2/lib/appium_lib/ios/helper.rb#L53) ios
|
1876
1929
|
|
1877
1930
|
> def get_page(element = source_window(0), class_name = nil)
|
1878
1931
|
|
@@ -1893,7 +1946,7 @@ __Returns:__
|
|
1893
1946
|
|
1894
1947
|
--
|
1895
1948
|
|
1896
|
-
##### [page](https://github.com/appium/ruby_lib/blob/
|
1949
|
+
##### [page](https://github.com/appium/ruby_lib/blob/11cdf97bf9c4a90ac4e7c7dcf518cfb3fcd99ef2/lib/appium_lib/ios/helper.rb#L139) ios
|
1897
1950
|
|
1898
1951
|
> def page(opts = {})
|
1899
1952
|
|
@@ -1919,7 +1972,7 @@ __Returns:__
|
|
1919
1972
|
|
1920
1973
|
--
|
1921
1974
|
|
1922
|
-
##### [source_window](https://github.com/appium/ruby_lib/blob/
|
1975
|
+
##### [source_window](https://github.com/appium/ruby_lib/blob/11cdf97bf9c4a90ac4e7c7dcf518cfb3fcd99ef2/lib/appium_lib/ios/helper.rb#L170) ios
|
1923
1976
|
|
1924
1977
|
> def source_window(_window_number = 0)
|
1925
1978
|
|
@@ -1935,7 +1988,7 @@ __Returns:__
|
|
1935
1988
|
|
1936
1989
|
--
|
1937
1990
|
|
1938
|
-
##### [page_window](https://github.com/appium/ruby_lib/blob/
|
1991
|
+
##### [page_window](https://github.com/appium/ruby_lib/blob/11cdf97bf9c4a90ac4e7c7dcf518cfb3fcd99ef2/lib/appium_lib/ios/helper.rb#L185) ios
|
1939
1992
|
|
1940
1993
|
> def page_window(window_number = 0)
|
1941
1994
|
|
@@ -1953,7 +2006,7 @@ __Returns:__
|
|
1953
2006
|
|
1954
2007
|
--
|
1955
2008
|
|
1956
|
-
##### [id](https://github.com/appium/ruby_lib/blob/
|
2009
|
+
##### [id](https://github.com/appium/ruby_lib/blob/11cdf97bf9c4a90ac4e7c7dcf518cfb3fcd99ef2/lib/appium_lib/ios/helper.rb#L193) ios
|
1957
2010
|
|
1958
2011
|
> def id(id)
|
1959
2012
|
|
@@ -1969,7 +2022,7 @@ __Returns:__
|
|
1969
2022
|
|
1970
2023
|
--
|
1971
2024
|
|
1972
|
-
##### [ios_version](https://github.com/appium/ruby_lib/blob/
|
2025
|
+
##### [ios_version](https://github.com/appium/ruby_lib/blob/11cdf97bf9c4a90ac4e7c7dcf518cfb3fcd99ef2/lib/appium_lib/ios/helper.rb#L199) ios
|
1973
2026
|
|
1974
2027
|
> def ios_version
|
1975
2028
|
|
@@ -1981,7 +2034,7 @@ __Returns:__
|
|
1981
2034
|
|
1982
2035
|
--
|
1983
2036
|
|
1984
|
-
##### [ele_index](https://github.com/appium/ruby_lib/blob/
|
2037
|
+
##### [ele_index](https://github.com/appium/ruby_lib/blob/11cdf97bf9c4a90ac4e7c7dcf518cfb3fcd99ef2/lib/appium_lib/ios/helper.rb#L212) ios
|
1985
2038
|
|
1986
2039
|
> def ele_index(class_name, index)
|
1987
2040
|
|
@@ -1999,7 +2052,7 @@ __Returns:__
|
|
1999
2052
|
|
2000
2053
|
--
|
2001
2054
|
|
2002
|
-
##### [find_ele_by_attr](https://github.com/appium/ruby_lib/blob/
|
2055
|
+
##### [find_ele_by_attr](https://github.com/appium/ruby_lib/blob/11cdf97bf9c4a90ac4e7c7dcf518cfb3fcd99ef2/lib/appium_lib/ios/helper.rb#L248) ios
|
2003
2056
|
|
2004
2057
|
> def find_ele_by_attr(class_name, attr, value)
|
2005
2058
|
|
@@ -2021,7 +2074,7 @@ __Returns:__
|
|
2021
2074
|
|
2022
2075
|
--
|
2023
2076
|
|
2024
|
-
##### [find_eles_by_attr](https://github.com/appium/ruby_lib/blob/
|
2077
|
+
##### [find_eles_by_attr](https://github.com/appium/ruby_lib/blob/11cdf97bf9c4a90ac4e7c7dcf518cfb3fcd99ef2/lib/appium_lib/ios/helper.rb#L259) ios
|
2025
2078
|
|
2026
2079
|
> def find_eles_by_attr(class_name, attr, value)
|
2027
2080
|
|
@@ -2043,7 +2096,7 @@ __Returns:__
|
|
2043
2096
|
|
2044
2097
|
--
|
2045
2098
|
|
2046
|
-
##### [find_ele_by_predicate](https://github.com/appium/ruby_lib/blob/
|
2099
|
+
##### [find_ele_by_predicate](https://github.com/appium/ruby_lib/blob/11cdf97bf9c4a90ac4e7c7dcf518cfb3fcd99ef2/lib/appium_lib/ios/helper.rb#L280) ios
|
2047
2100
|
|
2048
2101
|
> def find_ele_by_predicate(class_name: '*', value:)
|
2049
2102
|
|
@@ -2060,7 +2113,7 @@ __Returns:__
|
|
2060
2113
|
|
2061
2114
|
--
|
2062
2115
|
|
2063
|
-
##### [find_eles_by_predicate](https://github.com/appium/ruby_lib/blob/
|
2116
|
+
##### [find_eles_by_predicate](https://github.com/appium/ruby_lib/blob/11cdf97bf9c4a90ac4e7c7dcf518cfb3fcd99ef2/lib/appium_lib/ios/helper.rb#L291) ios
|
2064
2117
|
|
2065
2118
|
> def find_eles_by_predicate(class_name: '*', value:)
|
2066
2119
|
|
@@ -2079,7 +2132,7 @@ __Returns:__
|
|
2079
2132
|
|
2080
2133
|
--
|
2081
2134
|
|
2082
|
-
##### [find_ele_by_attr_include](https://github.com/appium/ruby_lib/blob/
|
2135
|
+
##### [find_ele_by_attr_include](https://github.com/appium/ruby_lib/blob/11cdf97bf9c4a90ac4e7c7dcf518cfb3fcd99ef2/lib/appium_lib/ios/helper.rb#L307) ios
|
2083
2136
|
|
2084
2137
|
> def find_ele_by_attr_include(class_name, attr, value)
|
2085
2138
|
|
@@ -2100,7 +2153,7 @@ __Returns:__
|
|
2100
2153
|
|
2101
2154
|
--
|
2102
2155
|
|
2103
|
-
##### [find_eles_by_attr_include](https://github.com/appium/ruby_lib/blob/
|
2156
|
+
##### [find_eles_by_attr_include](https://github.com/appium/ruby_lib/blob/11cdf97bf9c4a90ac4e7c7dcf518cfb3fcd99ef2/lib/appium_lib/ios/helper.rb#L317) ios
|
2104
2157
|
|
2105
2158
|
> def find_eles_by_attr_include(class_name, attr, value)
|
2106
2159
|
|
@@ -2121,7 +2174,7 @@ __Returns:__
|
|
2121
2174
|
|
2122
2175
|
--
|
2123
2176
|
|
2124
|
-
##### [find_ele_by_predicate_include](https://github.com/appium/ruby_lib/blob/
|
2177
|
+
##### [find_ele_by_predicate_include](https://github.com/appium/ruby_lib/blob/11cdf97bf9c4a90ac4e7c7dcf518cfb3fcd99ef2/lib/appium_lib/ios/helper.rb#L325) ios
|
2125
2178
|
|
2126
2179
|
> def find_ele_by_predicate_include(class_name: '*', value:)
|
2127
2180
|
|
@@ -2138,7 +2191,7 @@ __Returns:__
|
|
2138
2191
|
|
2139
2192
|
--
|
2140
2193
|
|
2141
|
-
##### [find_eles_by_predicate_include](https://github.com/appium/ruby_lib/blob/
|
2194
|
+
##### [find_eles_by_predicate_include](https://github.com/appium/ruby_lib/blob/11cdf97bf9c4a90ac4e7c7dcf518cfb3fcd99ef2/lib/appium_lib/ios/helper.rb#L336) ios
|
2142
2195
|
|
2143
2196
|
> def find_eles_by_predicate_include(class_name: '*', value:)
|
2144
2197
|
|
@@ -2157,7 +2210,7 @@ __Returns:__
|
|
2157
2210
|
|
2158
2211
|
--
|
2159
2212
|
|
2160
|
-
##### [first_ele](https://github.com/appium/ruby_lib/blob/
|
2213
|
+
##### [first_ele](https://github.com/appium/ruby_lib/blob/11cdf97bf9c4a90ac4e7c7dcf518cfb3fcd99ef2/lib/appium_lib/ios/helper.rb#L349) ios
|
2161
2214
|
|
2162
2215
|
> def first_ele(class_name)
|
2163
2216
|
|
@@ -2173,7 +2226,7 @@ __Returns:__
|
|
2173
2226
|
|
2174
2227
|
--
|
2175
2228
|
|
2176
|
-
##### [last_ele](https://github.com/appium/ruby_lib/blob/
|
2229
|
+
##### [last_ele](https://github.com/appium/ruby_lib/blob/11cdf97bf9c4a90ac4e7c7dcf518cfb3fcd99ef2/lib/appium_lib/ios/helper.rb#L356) ios
|
2177
2230
|
|
2178
2231
|
> def last_ele(class_name)
|
2179
2232
|
|
@@ -2189,7 +2242,7 @@ __Returns:__
|
|
2189
2242
|
|
2190
2243
|
--
|
2191
2244
|
|
2192
|
-
##### [tag](https://github.com/appium/ruby_lib/blob/
|
2245
|
+
##### [tag](https://github.com/appium/ruby_lib/blob/11cdf97bf9c4a90ac4e7c7dcf518cfb3fcd99ef2/lib/appium_lib/ios/helper.rb#L370) ios
|
2193
2246
|
|
2194
2247
|
> def tag(class_name)
|
2195
2248
|
|
@@ -2205,7 +2258,7 @@ __Returns:__
|
|
2205
2258
|
|
2206
2259
|
--
|
2207
2260
|
|
2208
|
-
##### [tags](https://github.com/appium/ruby_lib/blob/
|
2261
|
+
##### [tags](https://github.com/appium/ruby_lib/blob/11cdf97bf9c4a90ac4e7c7dcf518cfb3fcd99ef2/lib/appium_lib/ios/helper.rb#L382) ios
|
2209
2262
|
|
2210
2263
|
> def tags(class_name)
|
2211
2264
|
|
@@ -2221,7 +2274,7 @@ __Returns:__
|
|
2221
2274
|
|
2222
2275
|
--
|
2223
2276
|
|
2224
|
-
##### [tags_include](https://github.com/appium/ruby_lib/blob/
|
2277
|
+
##### [tags_include](https://github.com/appium/ruby_lib/blob/11cdf97bf9c4a90ac4e7c7dcf518cfb3fcd99ef2/lib/appium_lib/ios/helper.rb#L398) ios
|
2225
2278
|
|
2226
2279
|
> def tags_include(class_names:, value: nil)
|
2227
2280
|
|
@@ -2241,7 +2294,7 @@ __Returns:__
|
|
2241
2294
|
|
2242
2295
|
--
|
2243
2296
|
|
2244
|
-
##### [tags_exact](https://github.com/appium/ruby_lib/blob/
|
2297
|
+
##### [tags_exact](https://github.com/appium/ruby_lib/blob/11cdf97bf9c4a90ac4e7c7dcf518cfb3fcd99ef2/lib/appium_lib/ios/helper.rb#L427) ios
|
2245
2298
|
|
2246
2299
|
> def tags_exact(class_names:, value: nil)
|
2247
2300
|
|
@@ -2261,7 +2314,7 @@ __Returns:__
|
|
2261
2314
|
|
2262
2315
|
--
|
2263
2316
|
|
2264
|
-
##### [ele_by_json_visible_contains](https://github.com/appium/ruby_lib/blob/
|
2317
|
+
##### [ele_by_json_visible_contains](https://github.com/appium/ruby_lib/blob/11cdf97bf9c4a90ac4e7c7dcf518cfb3fcd99ef2/lib/appium_lib/ios/helper.rb#L478) ios
|
2265
2318
|
|
2266
2319
|
> def ele_by_json_visible_contains(element, value)
|
2267
2320
|
|
@@ -2280,7 +2333,7 @@ __Returns:__
|
|
2280
2333
|
|
2281
2334
|
--
|
2282
2335
|
|
2283
|
-
##### [eles_by_json_visible_contains](https://github.com/appium/ruby_lib/blob/
|
2336
|
+
##### [eles_by_json_visible_contains](https://github.com/appium/ruby_lib/blob/11cdf97bf9c4a90ac4e7c7dcf518cfb3fcd99ef2/lib/appium_lib/ios/helper.rb#L487) ios
|
2284
2337
|
|
2285
2338
|
> def eles_by_json_visible_contains(element, value)
|
2286
2339
|
|
@@ -2299,7 +2352,7 @@ __Returns:__
|
|
2299
2352
|
|
2300
2353
|
--
|
2301
2354
|
|
2302
|
-
##### [ele_by_json_visible_exact](https://github.com/appium/ruby_lib/blob/
|
2355
|
+
##### [ele_by_json_visible_exact](https://github.com/appium/ruby_lib/blob/11cdf97bf9c4a90ac4e7c7dcf518cfb3fcd99ef2/lib/appium_lib/ios/helper.rb#L517) ios
|
2303
2356
|
|
2304
2357
|
> def ele_by_json_visible_exact(element, value)
|
2305
2358
|
|
@@ -2318,7 +2371,7 @@ __Returns:__
|
|
2318
2371
|
|
2319
2372
|
--
|
2320
2373
|
|
2321
|
-
##### [eles_by_json_visible_exact](https://github.com/appium/ruby_lib/blob/
|
2374
|
+
##### [eles_by_json_visible_exact](https://github.com/appium/ruby_lib/blob/11cdf97bf9c4a90ac4e7c7dcf518cfb3fcd99ef2/lib/appium_lib/ios/helper.rb#L526) ios
|
2322
2375
|
|
2323
2376
|
> def eles_by_json_visible_exact(element, value)
|
2324
2377
|
|
@@ -2337,7 +2390,7 @@ __Returns:__
|
|
2337
2390
|
|
2338
2391
|
--
|
2339
2392
|
|
2340
|
-
##### [_all_pred](https://github.com/appium/ruby_lib/blob/
|
2393
|
+
##### [_all_pred](https://github.com/appium/ruby_lib/blob/11cdf97bf9c4a90ac4e7c7dcf518cfb3fcd99ef2/lib/appium_lib/ios/helper.rb#L591) ios
|
2341
2394
|
|
2342
2395
|
> def _all_pred(opts)
|
2343
2396
|
|
@@ -2347,7 +2400,7 @@ visible - if true, only visible elements are returned. default true
|
|
2347
2400
|
|
2348
2401
|
--
|
2349
2402
|
|
2350
|
-
##### [ele_with_pred](https://github.com/appium/ruby_lib/blob/
|
2403
|
+
##### [ele_with_pred](https://github.com/appium/ruby_lib/blob/11cdf97bf9c4a90ac4e7c7dcf518cfb3fcd99ef2/lib/appium_lib/ios/helper.rb#L604) ios
|
2351
2404
|
|
2352
2405
|
> def ele_with_pred(opts)
|
2353
2406
|
|
@@ -2363,7 +2416,7 @@ __Returns:__
|
|
2363
2416
|
|
2364
2417
|
--
|
2365
2418
|
|
2366
|
-
##### [eles_with_pred](https://github.com/appium/ruby_lib/blob/
|
2419
|
+
##### [eles_with_pred](https://github.com/appium/ruby_lib/blob/11cdf97bf9c4a90ac4e7c7dcf518cfb3fcd99ef2/lib/appium_lib/ios/helper.rb#L615) ios
|
2367
2420
|
|
2368
2421
|
> def eles_with_pred(opts)
|
2369
2422
|
|
@@ -2379,7 +2432,7 @@ __Returns:__
|
|
2379
2432
|
|
2380
2433
|
--
|
2381
2434
|
|
2382
|
-
##### [source](https://github.com/appium/ruby_lib/blob/
|
2435
|
+
##### [source](https://github.com/appium/ruby_lib/blob/11cdf97bf9c4a90ac4e7c7dcf518cfb3fcd99ef2/lib/appium_lib/ios/helper.rb#L621) ios
|
2383
2436
|
|
2384
2437
|
> def source
|
2385
2438
|
|
@@ -2391,7 +2444,7 @@ __Returns:__
|
|
2391
2444
|
|
2392
2445
|
--
|
2393
2446
|
|
2394
|
-
##### [_validate_object](https://github.com/appium/ruby_lib/blob/
|
2447
|
+
##### [_validate_object](https://github.com/appium/ruby_lib/blob/11cdf97bf9c4a90ac4e7c7dcf518cfb3fcd99ef2/lib/appium_lib/ios/helper.rb#L625) ios
|
2395
2448
|
|
2396
2449
|
> def _validate_object(*objects)
|
2397
2450
|
|
@@ -2399,7 +2452,7 @@ __Returns:__
|
|
2399
2452
|
|
2400
2453
|
--
|
2401
2454
|
|
2402
|
-
##### [_by_json](https://github.com/appium/ruby_lib/blob/
|
2455
|
+
##### [_by_json](https://github.com/appium/ruby_lib/blob/11cdf97bf9c4a90ac4e7c7dcf518cfb3fcd99ef2/lib/appium_lib/ios/helper.rb#L674) ios
|
2403
2456
|
|
2404
2457
|
> def _by_json(opts)
|
2405
2458
|
|
@@ -2434,7 +2487,7 @@ opts = {
|
|
2434
2487
|
|
2435
2488
|
--
|
2436
2489
|
|
2437
|
-
##### [eles_by_json](https://github.com/appium/ruby_lib/blob/
|
2490
|
+
##### [eles_by_json](https://github.com/appium/ruby_lib/blob/11cdf97bf9c4a90ac4e7c7dcf518cfb3fcd99ef2/lib/appium_lib/ios/helper.rb#L724) ios
|
2438
2491
|
|
2439
2492
|
> def eles_by_json(opts)
|
2440
2493
|
|
@@ -2453,7 +2506,7 @@ eles_by_json({
|
|
2453
2506
|
|
2454
2507
|
--
|
2455
2508
|
|
2456
|
-
##### [ele_by_json](https://github.com/appium/ruby_lib/blob/
|
2509
|
+
##### [ele_by_json](https://github.com/appium/ruby_lib/blob/11cdf97bf9c4a90ac4e7c7dcf518cfb3fcd99ef2/lib/appium_lib/ios/helper.rb#L730) ios
|
2457
2510
|
|
2458
2511
|
> def ele_by_json(opts)
|
2459
2512
|
|
@@ -2461,7 +2514,7 @@ see eles_by_json
|
|
2461
2514
|
|
2462
2515
|
--
|
2463
2516
|
|
2464
|
-
##### [get_source](https://github.com/appium/ruby_lib/blob/
|
2517
|
+
##### [get_source](https://github.com/appium/ruby_lib/blob/11cdf97bf9c4a90ac4e7c7dcf518cfb3fcd99ef2/lib/appium_lib/ios/helper.rb#L740) ios
|
2465
2518
|
|
2466
2519
|
> def get_source
|
2467
2520
|
|
@@ -2474,7 +2527,7 @@ __Returns:__
|
|
2474
2527
|
|
2475
2528
|
--
|
2476
2529
|
|
2477
|
-
##### [UIAStaticText](https://github.com/appium/ruby_lib/blob/
|
2530
|
+
##### [UIAStaticText](https://github.com/appium/ruby_lib/blob/11cdf97bf9c4a90ac4e7c7dcf518cfb3fcd99ef2/lib/appium_lib/ios/element/text.rb#L4) ios
|
2478
2531
|
|
2479
2532
|
> UIAStaticText = 'UIAStaticText'.freeze
|
2480
2533
|
|
@@ -2482,7 +2535,7 @@ __Returns:__
|
|
2482
2535
|
|
2483
2536
|
--
|
2484
2537
|
|
2485
|
-
##### [XCUIElementTypeStaticText](https://github.com/appium/ruby_lib/blob/
|
2538
|
+
##### [XCUIElementTypeStaticText](https://github.com/appium/ruby_lib/blob/11cdf97bf9c4a90ac4e7c7dcf518cfb3fcd99ef2/lib/appium_lib/ios/element/text.rb#L5) ios
|
2486
2539
|
|
2487
2540
|
> XCUIElementTypeStaticText = 'XCUIElementTypeStaticText'.freeze
|
2488
2541
|
|
@@ -2490,7 +2543,7 @@ __Returns:__
|
|
2490
2543
|
|
2491
2544
|
--
|
2492
2545
|
|
2493
|
-
##### [static_text_class](https://github.com/appium/ruby_lib/blob/
|
2546
|
+
##### [static_text_class](https://github.com/appium/ruby_lib/blob/11cdf97bf9c4a90ac4e7c7dcf518cfb3fcd99ef2/lib/appium_lib/ios/element/text.rb#L8) ios
|
2494
2547
|
|
2495
2548
|
> def static_text_class
|
2496
2549
|
|
@@ -2502,7 +2555,7 @@ __Returns:__
|
|
2502
2555
|
|
2503
2556
|
--
|
2504
2557
|
|
2505
|
-
##### [text](https://github.com/appium/ruby_lib/blob/
|
2558
|
+
##### [text](https://github.com/appium/ruby_lib/blob/11cdf97bf9c4a90ac4e7c7dcf518cfb3fcd99ef2/lib/appium_lib/ios/element/text.rb#L16) ios
|
2506
2559
|
|
2507
2560
|
> def text(value)
|
2508
2561
|
|
@@ -2519,7 +2572,7 @@ __Returns:__
|
|
2519
2572
|
|
2520
2573
|
--
|
2521
2574
|
|
2522
|
-
##### [texts](https://github.com/appium/ruby_lib/blob/
|
2575
|
+
##### [texts](https://github.com/appium/ruby_lib/blob/11cdf97bf9c4a90ac4e7c7dcf518cfb3fcd99ef2/lib/appium_lib/ios/element/text.rb#L30) ios
|
2523
2576
|
|
2524
2577
|
> def texts(value = false)
|
2525
2578
|
|
@@ -2536,7 +2589,7 @@ __Returns:__
|
|
2536
2589
|
|
2537
2590
|
--
|
2538
2591
|
|
2539
|
-
##### [first_text](https://github.com/appium/ruby_lib/blob/
|
2592
|
+
##### [first_text](https://github.com/appium/ruby_lib/blob/11cdf97bf9c4a90ac4e7c7dcf518cfb3fcd99ef2/lib/appium_lib/ios/element/text.rb#L43) ios
|
2540
2593
|
|
2541
2594
|
> def first_text
|
2542
2595
|
|
@@ -2548,7 +2601,7 @@ __Returns:__
|
|
2548
2601
|
|
2549
2602
|
--
|
2550
2603
|
|
2551
|
-
##### [last_text](https://github.com/appium/ruby_lib/blob/
|
2604
|
+
##### [last_text](https://github.com/appium/ruby_lib/blob/11cdf97bf9c4a90ac4e7c7dcf518cfb3fcd99ef2/lib/appium_lib/ios/element/text.rb#L49) ios
|
2552
2605
|
|
2553
2606
|
> def last_text
|
2554
2607
|
|
@@ -2560,7 +2613,7 @@ __Returns:__
|
|
2560
2613
|
|
2561
2614
|
--
|
2562
2615
|
|
2563
|
-
##### [text_exact](https://github.com/appium/ruby_lib/blob/
|
2616
|
+
##### [text_exact](https://github.com/appium/ruby_lib/blob/11cdf97bf9c4a90ac4e7c7dcf518cfb3fcd99ef2/lib/appium_lib/ios/element/text.rb#L56) ios
|
2564
2617
|
|
2565
2618
|
> def text_exact(value)
|
2566
2619
|
|
@@ -2576,7 +2629,7 @@ __Returns:__
|
|
2576
2629
|
|
2577
2630
|
--
|
2578
2631
|
|
2579
|
-
##### [texts_exact](https://github.com/appium/ruby_lib/blob/
|
2632
|
+
##### [texts_exact](https://github.com/appium/ruby_lib/blob/11cdf97bf9c4a90ac4e7c7dcf518cfb3fcd99ef2/lib/appium_lib/ios/element/text.rb#L67) ios
|
2580
2633
|
|
2581
2634
|
> def texts_exact(value)
|
2582
2635
|
|
@@ -2592,7 +2645,7 @@ __Returns:__
|
|
2592
2645
|
|
2593
2646
|
--
|
2594
2647
|
|
2595
|
-
##### [alert_accept](https://github.com/appium/ruby_lib/blob/
|
2648
|
+
##### [alert_accept](https://github.com/appium/ruby_lib/blob/11cdf97bf9c4a90ac4e7c7dcf518cfb3fcd99ef2/lib/appium_lib/ios/element/alert.rb#L5) ios
|
2596
2649
|
|
2597
2650
|
> def alert_accept
|
2598
2651
|
|
@@ -2604,7 +2657,7 @@ __Returns:__
|
|
2604
2657
|
|
2605
2658
|
--
|
2606
2659
|
|
2607
|
-
##### [alert_dismiss](https://github.com/appium/ruby_lib/blob/
|
2660
|
+
##### [alert_dismiss](https://github.com/appium/ruby_lib/blob/11cdf97bf9c4a90ac4e7c7dcf518cfb3fcd99ef2/lib/appium_lib/ios/element/alert.rb#L13) ios
|
2608
2661
|
|
2609
2662
|
> def alert_dismiss
|
2610
2663
|
|
@@ -2616,7 +2669,7 @@ __Returns:__
|
|
2616
2669
|
|
2617
2670
|
--
|
2618
2671
|
|
2619
|
-
##### [UIAButton](https://github.com/appium/ruby_lib/blob/
|
2672
|
+
##### [UIAButton](https://github.com/appium/ruby_lib/blob/11cdf97bf9c4a90ac4e7c7dcf518cfb3fcd99ef2/lib/appium_lib/ios/element/button.rb#L4) ios
|
2620
2673
|
|
2621
2674
|
> UIAButton = 'UIAButton'.freeze
|
2622
2675
|
|
@@ -2624,7 +2677,7 @@ __Returns:__
|
|
2624
2677
|
|
2625
2678
|
--
|
2626
2679
|
|
2627
|
-
##### [XCUIElementTypeButton](https://github.com/appium/ruby_lib/blob/
|
2680
|
+
##### [XCUIElementTypeButton](https://github.com/appium/ruby_lib/blob/11cdf97bf9c4a90ac4e7c7dcf518cfb3fcd99ef2/lib/appium_lib/ios/element/button.rb#L5) ios
|
2628
2681
|
|
2629
2682
|
> XCUIElementTypeButton = 'XCUIElementTypeButton'.freeze
|
2630
2683
|
|
@@ -2632,7 +2685,7 @@ __Returns:__
|
|
2632
2685
|
|
2633
2686
|
--
|
2634
2687
|
|
2635
|
-
##### [button_class](https://github.com/appium/ruby_lib/blob/
|
2688
|
+
##### [button_class](https://github.com/appium/ruby_lib/blob/11cdf97bf9c4a90ac4e7c7dcf518cfb3fcd99ef2/lib/appium_lib/ios/element/button.rb#L8) ios
|
2636
2689
|
|
2637
2690
|
> def button_class
|
2638
2691
|
|
@@ -2644,7 +2697,7 @@ __Returns:__
|
|
2644
2697
|
|
2645
2698
|
--
|
2646
2699
|
|
2647
|
-
##### [button](https://github.com/appium/ruby_lib/blob/
|
2700
|
+
##### [button](https://github.com/appium/ruby_lib/blob/11cdf97bf9c4a90ac4e7c7dcf518cfb3fcd99ef2/lib/appium_lib/ios/element/button.rb#L16) ios
|
2648
2701
|
|
2649
2702
|
> def button(value)
|
2650
2703
|
|
@@ -2661,7 +2714,7 @@ __Returns:__
|
|
2661
2714
|
|
2662
2715
|
--
|
2663
2716
|
|
2664
|
-
##### [buttons](https://github.com/appium/ruby_lib/blob/
|
2717
|
+
##### [buttons](https://github.com/appium/ruby_lib/blob/11cdf97bf9c4a90ac4e7c7dcf518cfb3fcd99ef2/lib/appium_lib/ios/element/button.rb#L31) ios
|
2665
2718
|
|
2666
2719
|
> def buttons(value = false)
|
2667
2720
|
|
@@ -2678,7 +2731,7 @@ __Returns:__
|
|
2678
2731
|
|
2679
2732
|
--
|
2680
2733
|
|
2681
|
-
##### [first_button](https://github.com/appium/ruby_lib/blob/
|
2734
|
+
##### [first_button](https://github.com/appium/ruby_lib/blob/11cdf97bf9c4a90ac4e7c7dcf518cfb3fcd99ef2/lib/appium_lib/ios/element/button.rb#L44) ios
|
2682
2735
|
|
2683
2736
|
> def first_button
|
2684
2737
|
|
@@ -2690,7 +2743,7 @@ __Returns:__
|
|
2690
2743
|
|
2691
2744
|
--
|
2692
2745
|
|
2693
|
-
##### [last_button](https://github.com/appium/ruby_lib/blob/
|
2746
|
+
##### [last_button](https://github.com/appium/ruby_lib/blob/11cdf97bf9c4a90ac4e7c7dcf518cfb3fcd99ef2/lib/appium_lib/ios/element/button.rb#L52) ios
|
2694
2747
|
|
2695
2748
|
> def last_button
|
2696
2749
|
|
@@ -2704,7 +2757,7 @@ __Returns:__
|
|
2704
2757
|
|
2705
2758
|
--
|
2706
2759
|
|
2707
|
-
##### [button_exact](https://github.com/appium/ruby_lib/blob/
|
2760
|
+
##### [button_exact](https://github.com/appium/ruby_lib/blob/11cdf97bf9c4a90ac4e7c7dcf518cfb3fcd99ef2/lib/appium_lib/ios/element/button.rb#L59) ios
|
2708
2761
|
|
2709
2762
|
> def button_exact(value)
|
2710
2763
|
|
@@ -2720,7 +2773,7 @@ __Returns:__
|
|
2720
2773
|
|
2721
2774
|
--
|
2722
2775
|
|
2723
|
-
##### [buttons_exact](https://github.com/appium/ruby_lib/blob/
|
2776
|
+
##### [buttons_exact](https://github.com/appium/ruby_lib/blob/11cdf97bf9c4a90ac4e7c7dcf518cfb3fcd99ef2/lib/appium_lib/ios/element/button.rb#L70) ios
|
2724
2777
|
|
2725
2778
|
> def buttons_exact(value)
|
2726
2779
|
|
@@ -2736,7 +2789,7 @@ __Returns:__
|
|
2736
2789
|
|
2737
2790
|
--
|
2738
2791
|
|
2739
|
-
##### [uiautomation_find](https://github.com/appium/ruby_lib/blob/
|
2792
|
+
##### [uiautomation_find](https://github.com/appium/ruby_lib/blob/11cdf97bf9c4a90ac4e7c7dcf518cfb3fcd99ef2/lib/appium_lib/ios/mobile_methods.rb#L32) ios
|
2740
2793
|
|
2741
2794
|
> def uiautomation_find
|
2742
2795
|
|
@@ -2748,7 +2801,7 @@ find_element/s can be used with a [UIAutomation command](https://developer.apple
|
|
2748
2801
|
|
2749
2802
|
--
|
2750
2803
|
|
2751
|
-
##### [ios_predicate_string_find](https://github.com/appium/ruby_lib/blob/
|
2804
|
+
##### [ios_predicate_string_find](https://github.com/appium/ruby_lib/blob/11cdf97bf9c4a90ac4e7c7dcf518cfb3fcd99ef2/lib/appium_lib/ios/mobile_methods.rb#L32) ios
|
2752
2805
|
|
2753
2806
|
> def ios_predicate_string_find
|
2754
2807
|
|
@@ -2762,7 +2815,25 @@ find_element/s can be used with a [Predicates](https://developer.apple.com/libra
|
|
2762
2815
|
|
2763
2816
|
--
|
2764
2817
|
|
2765
|
-
##### [
|
2818
|
+
##### [ios_class_chain_find](https://github.com/appium/ruby_lib/blob/11cdf97bf9c4a90ac4e7c7dcf518cfb3fcd99ef2/lib/appium_lib/ios/mobile_methods.rb#L32) ios
|
2819
|
+
|
2820
|
+
> def ios_class_chain_find
|
2821
|
+
|
2822
|
+
Only for XCUITest(WebDriverAgent)
|
2823
|
+
find_element/s can be used with a [class chain]( https://github.com/facebook/WebDriverAgent/wiki/Queries)
|
2824
|
+
|
2825
|
+
```ruby
|
2826
|
+
# select the third child button of the first child window element
|
2827
|
+
find_elements :class_chain, 'XCUIElementTypeWindow/XCUIElementTypeButton[3]'
|
2828
|
+
# select all the children windows
|
2829
|
+
find_elements :class_chain, 'XCUIElementTypeWindow'
|
2830
|
+
# select the second last child of the second child window
|
2831
|
+
find_elements :class_chain, 'XCUIElementTypeWindow[2]/XCUIElementTypeAny[-2]'
|
2832
|
+
```
|
2833
|
+
|
2834
|
+
--
|
2835
|
+
|
2836
|
+
##### [find](https://github.com/appium/ruby_lib/blob/11cdf97bf9c4a90ac4e7c7dcf518cfb3fcd99ef2/lib/appium_lib/ios/element/generic.rb#L6) ios
|
2766
2837
|
|
2767
2838
|
> def find(value)
|
2768
2839
|
|
@@ -2778,7 +2849,7 @@ __Returns:__
|
|
2778
2849
|
|
2779
2850
|
--
|
2780
2851
|
|
2781
|
-
##### [finds](https://github.com/appium/ruby_lib/blob/
|
2852
|
+
##### [finds](https://github.com/appium/ruby_lib/blob/11cdf97bf9c4a90ac4e7c7dcf518cfb3fcd99ef2/lib/appium_lib/ios/element/generic.rb#L17) ios
|
2782
2853
|
|
2783
2854
|
> def finds(value)
|
2784
2855
|
|
@@ -2794,7 +2865,7 @@ __Returns:__
|
|
2794
2865
|
|
2795
2866
|
--
|
2796
2867
|
|
2797
|
-
##### [find_exact](https://github.com/appium/ruby_lib/blob/
|
2868
|
+
##### [find_exact](https://github.com/appium/ruby_lib/blob/11cdf97bf9c4a90ac4e7c7dcf518cfb3fcd99ef2/lib/appium_lib/ios/element/generic.rb#L29) ios
|
2798
2869
|
|
2799
2870
|
> def find_exact(value)
|
2800
2871
|
|
@@ -2810,7 +2881,7 @@ __Returns:__
|
|
2810
2881
|
|
2811
2882
|
--
|
2812
2883
|
|
2813
|
-
##### [finds_exact](https://github.com/appium/ruby_lib/blob/
|
2884
|
+
##### [finds_exact](https://github.com/appium/ruby_lib/blob/11cdf97bf9c4a90ac4e7c7dcf518cfb3fcd99ef2/lib/appium_lib/ios/element/generic.rb#L40) ios
|
2814
2885
|
|
2815
2886
|
> def finds_exact(value)
|
2816
2887
|
|
@@ -2826,7 +2897,7 @@ __Returns:__
|
|
2826
2897
|
|
2827
2898
|
--
|
2828
2899
|
|
2829
|
-
##### [raise_error_if_no_element](https://github.com/appium/ruby_lib/blob/
|
2900
|
+
##### [raise_error_if_no_element](https://github.com/appium/ruby_lib/blob/11cdf97bf9c4a90ac4e7c7dcf518cfb3fcd99ef2/lib/appium_lib/ios/element/generic.rb#L51) ios
|
2830
2901
|
|
2831
2902
|
> def raise_error_if_no_element(element)
|
2832
2903
|
|
@@ -2834,7 +2905,7 @@ __Returns:__
|
|
2834
2905
|
|
2835
2906
|
--
|
2836
2907
|
|
2837
|
-
##### [select_visible_elements](https://github.com/appium/ruby_lib/blob/
|
2908
|
+
##### [select_visible_elements](https://github.com/appium/ruby_lib/blob/11cdf97bf9c4a90ac4e7c7dcf518cfb3fcd99ef2/lib/appium_lib/ios/element/generic.rb#L58) ios
|
2838
2909
|
|
2839
2910
|
> def select_visible_elements(elements)
|
2840
2911
|
|
@@ -2842,7 +2913,7 @@ Return visible elements.
|
|
2842
2913
|
|
2843
2914
|
--
|
2844
2915
|
|
2845
|
-
##### [UIATextField](https://github.com/appium/ruby_lib/blob/
|
2916
|
+
##### [UIATextField](https://github.com/appium/ruby_lib/blob/11cdf97bf9c4a90ac4e7c7dcf518cfb3fcd99ef2/lib/appium_lib/ios/element/textfield.rb#L3) ios
|
2846
2917
|
|
2847
2918
|
> UIATextField = 'UIATextField'.freeze
|
2848
2919
|
|
@@ -2850,7 +2921,7 @@ Return visible elements.
|
|
2850
2921
|
|
2851
2922
|
--
|
2852
2923
|
|
2853
|
-
##### [UIASecureTextField](https://github.com/appium/ruby_lib/blob/
|
2924
|
+
##### [UIASecureTextField](https://github.com/appium/ruby_lib/blob/11cdf97bf9c4a90ac4e7c7dcf518cfb3fcd99ef2/lib/appium_lib/ios/element/textfield.rb#L4) ios
|
2854
2925
|
|
2855
2926
|
> UIASecureTextField = 'UIASecureTextField'.freeze
|
2856
2927
|
|
@@ -2858,7 +2929,7 @@ Return visible elements.
|
|
2858
2929
|
|
2859
2930
|
--
|
2860
2931
|
|
2861
|
-
##### [XCUIElementTypeTextField](https://github.com/appium/ruby_lib/blob/
|
2932
|
+
##### [XCUIElementTypeTextField](https://github.com/appium/ruby_lib/blob/11cdf97bf9c4a90ac4e7c7dcf518cfb3fcd99ef2/lib/appium_lib/ios/element/textfield.rb#L6) ios
|
2862
2933
|
|
2863
2934
|
> XCUIElementTypeTextField = 'XCUIElementTypeTextField'.freeze
|
2864
2935
|
|
@@ -2866,7 +2937,7 @@ Return visible elements.
|
|
2866
2937
|
|
2867
2938
|
--
|
2868
2939
|
|
2869
|
-
##### [XCUIElementTypeSecureTextField](https://github.com/appium/ruby_lib/blob/
|
2940
|
+
##### [XCUIElementTypeSecureTextField](https://github.com/appium/ruby_lib/blob/11cdf97bf9c4a90ac4e7c7dcf518cfb3fcd99ef2/lib/appium_lib/ios/element/textfield.rb#L7) ios
|
2870
2941
|
|
2871
2942
|
> XCUIElementTypeSecureTextField = 'XCUIElementTypeSecureTextField'.freeze
|
2872
2943
|
|
@@ -2874,7 +2945,7 @@ Return visible elements.
|
|
2874
2945
|
|
2875
2946
|
--
|
2876
2947
|
|
2877
|
-
##### [text_field_class](https://github.com/appium/ruby_lib/blob/
|
2948
|
+
##### [text_field_class](https://github.com/appium/ruby_lib/blob/11cdf97bf9c4a90ac4e7c7dcf518cfb3fcd99ef2/lib/appium_lib/ios/element/textfield.rb#L10) ios
|
2878
2949
|
|
2879
2950
|
> def text_field_class
|
2880
2951
|
|
@@ -2886,7 +2957,7 @@ __Returns:__
|
|
2886
2957
|
|
2887
2958
|
--
|
2888
2959
|
|
2889
|
-
##### [secure_text_field_class](https://github.com/appium/ruby_lib/blob/
|
2960
|
+
##### [secure_text_field_class](https://github.com/appium/ruby_lib/blob/11cdf97bf9c4a90ac4e7c7dcf518cfb3fcd99ef2/lib/appium_lib/ios/element/textfield.rb#L15) ios
|
2890
2961
|
|
2891
2962
|
> def secure_text_field_class
|
2892
2963
|
|
@@ -2898,7 +2969,7 @@ __Returns:__
|
|
2898
2969
|
|
2899
2970
|
--
|
2900
2971
|
|
2901
|
-
##### [_textfield_visible](https://github.com/appium/ruby_lib/blob/
|
2972
|
+
##### [_textfield_visible](https://github.com/appium/ruby_lib/blob/11cdf97bf9c4a90ac4e7c7dcf518cfb3fcd99ef2/lib/appium_lib/ios/element/textfield.rb#L35) ios
|
2902
2973
|
|
2903
2974
|
> def _textfield_visible
|
2904
2975
|
|
@@ -2906,7 +2977,7 @@ Appium
|
|
2906
2977
|
|
2907
2978
|
--
|
2908
2979
|
|
2909
|
-
##### [_textfield_exact_string](https://github.com/appium/ruby_lib/blob/
|
2980
|
+
##### [_textfield_exact_string](https://github.com/appium/ruby_lib/blob/11cdf97bf9c4a90ac4e7c7dcf518cfb3fcd99ef2/lib/appium_lib/ios/element/textfield.rb#L40) ios
|
2910
2981
|
|
2911
2982
|
> def _textfield_exact_string(value)
|
2912
2983
|
|
@@ -2914,7 +2985,7 @@ Appium
|
|
2914
2985
|
|
2915
2986
|
--
|
2916
2987
|
|
2917
|
-
##### [_textfield_contains_string](https://github.com/appium/ruby_lib/blob/
|
2988
|
+
##### [_textfield_contains_string](https://github.com/appium/ruby_lib/blob/11cdf97bf9c4a90ac4e7c7dcf518cfb3fcd99ef2/lib/appium_lib/ios/element/textfield.rb#L47) ios
|
2918
2989
|
|
2919
2990
|
> def _textfield_contains_string(value)
|
2920
2991
|
|
@@ -2922,7 +2993,7 @@ Appium
|
|
2922
2993
|
|
2923
2994
|
--
|
2924
2995
|
|
2925
|
-
##### [textfield](https://github.com/appium/ruby_lib/blob/
|
2996
|
+
##### [textfield](https://github.com/appium/ruby_lib/blob/11cdf97bf9c4a90ac4e7c7dcf518cfb3fcd99ef2/lib/appium_lib/ios/element/textfield.rb#L60) ios
|
2926
2997
|
|
2927
2998
|
> def textfield(value)
|
2928
2999
|
|
@@ -2940,7 +3011,7 @@ __Returns:__
|
|
2940
3011
|
|
2941
3012
|
--
|
2942
3013
|
|
2943
|
-
##### [textfields](https://github.com/appium/ruby_lib/blob/
|
3014
|
+
##### [textfields](https://github.com/appium/ruby_lib/blob/11cdf97bf9c4a90ac4e7c7dcf518cfb3fcd99ef2/lib/appium_lib/ios/element/textfield.rb#L86) ios
|
2944
3015
|
|
2945
3016
|
> def textfields(value = false)
|
2946
3017
|
|
@@ -2957,7 +3028,7 @@ __Returns:__
|
|
2957
3028
|
|
2958
3029
|
--
|
2959
3030
|
|
2960
|
-
##### [first_textfield](https://github.com/appium/ruby_lib/blob/
|
3031
|
+
##### [first_textfield](https://github.com/appium/ruby_lib/blob/11cdf97bf9c4a90ac4e7c7dcf518cfb3fcd99ef2/lib/appium_lib/ios/element/textfield.rb#L100) ios
|
2961
3032
|
|
2962
3033
|
> def first_textfield
|
2963
3034
|
|
@@ -2969,7 +3040,7 @@ __Returns:__
|
|
2969
3040
|
|
2970
3041
|
--
|
2971
3042
|
|
2972
|
-
##### [last_textfield](https://github.com/appium/ruby_lib/blob/
|
3043
|
+
##### [last_textfield](https://github.com/appium/ruby_lib/blob/11cdf97bf9c4a90ac4e7c7dcf518cfb3fcd99ef2/lib/appium_lib/ios/element/textfield.rb#L110) ios
|
2973
3044
|
|
2974
3045
|
> def last_textfield
|
2975
3046
|
|
@@ -2981,7 +3052,7 @@ __Returns:__
|
|
2981
3052
|
|
2982
3053
|
--
|
2983
3054
|
|
2984
|
-
##### [textfield_exact](https://github.com/appium/ruby_lib/blob/
|
3055
|
+
##### [textfield_exact](https://github.com/appium/ruby_lib/blob/11cdf97bf9c4a90ac4e7c7dcf518cfb3fcd99ef2/lib/appium_lib/ios/element/textfield.rb#L123) ios
|
2985
3056
|
|
2986
3057
|
> def textfield_exact(value)
|
2987
3058
|
|
@@ -2997,7 +3068,7 @@ __Returns:__
|
|
2997
3068
|
|
2998
3069
|
--
|
2999
3070
|
|
3000
|
-
##### [textfields_exact](https://github.com/appium/ruby_lib/blob/
|
3071
|
+
##### [textfields_exact](https://github.com/appium/ruby_lib/blob/11cdf97bf9c4a90ac4e7c7dcf518cfb3fcd99ef2/lib/appium_lib/ios/element/textfield.rb#L134) ios
|
3001
3072
|
|
3002
3073
|
> def textfields_exact(value)
|
3003
3074
|
|
@@ -3013,7 +3084,7 @@ __Returns:__
|
|
3013
3084
|
|
3014
3085
|
--
|
3015
3086
|
|
3016
|
-
##### [value](https://github.com/appium/ruby_lib/blob/
|
3087
|
+
##### [value](https://github.com/appium/ruby_lib/blob/11cdf97bf9c4a90ac4e7c7dcf518cfb3fcd99ef2/lib/appium_lib/common/patch.rb#L12)
|
3017
3088
|
|
3018
3089
|
> def value
|
3019
3090
|
|
@@ -3023,7 +3094,7 @@ Fixes NoMethodError: undefined method `value' for Selenium::WebDriver::Element
|
|
3023
3094
|
|
3024
3095
|
--
|
3025
3096
|
|
3026
|
-
##### [name](https://github.com/appium/ruby_lib/blob/
|
3097
|
+
##### [name](https://github.com/appium/ruby_lib/blob/11cdf97bf9c4a90ac4e7c7dcf518cfb3fcd99ef2/lib/appium_lib/common/patch.rb#L19)
|
3027
3098
|
|
3028
3099
|
> def name
|
3029
3100
|
|
@@ -3033,7 +3104,7 @@ Fixes NoMethodError: undefined method `name' for Selenium::WebDriver::Element
|
|
3033
3104
|
|
3034
3105
|
--
|
3035
3106
|
|
3036
|
-
##### [location_rel](https://github.com/appium/ruby_lib/blob/
|
3107
|
+
##### [location_rel](https://github.com/appium/ruby_lib/blob/11cdf97bf9c4a90ac4e7c7dcf518cfb3fcd99ef2/lib/appium_lib/common/patch.rb#L31)
|
3037
3108
|
|
3038
3109
|
> def location_rel
|
3039
3110
|
|
@@ -3051,7 +3122,7 @@ __Returns:__
|
|
3051
3122
|
|
3052
3123
|
--
|
3053
3124
|
|
3054
|
-
##### [DEFAULT_HEADERS](https://github.com/appium/ruby_lib/blob/
|
3125
|
+
##### [DEFAULT_HEADERS](https://github.com/appium/ruby_lib/blob/11cdf97bf9c4a90ac4e7c7dcf518cfb3fcd99ef2/lib/appium_lib/common/patch.rb#L152)
|
3055
3126
|
|
3056
3127
|
> DEFAULT_HEADERS = { 'Accept' => CONTENT_TYPE, 'User-Agent' => "appium/ruby_lib/#{::Appium::VERSION}" }.freeze
|
3057
3128
|
|
@@ -3059,7 +3130,7 @@ __Returns:__
|
|
3059
3130
|
|
3060
3131
|
--
|
3061
3132
|
|
3062
|
-
##### [patch_remote_driver_commands](https://github.com/appium/ruby_lib/blob/
|
3133
|
+
##### [patch_remote_driver_commands](https://github.com/appium/ruby_lib/blob/11cdf97bf9c4a90ac4e7c7dcf518cfb3fcd99ef2/lib/appium_lib/common/patch.rb#L155)
|
3063
3134
|
|
3064
3135
|
> def patch_remote_driver_commands
|
3065
3136
|
|