appium_lib 9.8.1 → 9.8.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/CHANGELOG.md +10 -0
- data/appium_lib.gemspec +2 -2
- data/docs/android_docs.md +227 -172
- data/docs/ios_docs.md +373 -224
- data/docs/w3c.md +30 -0
- data/lib/appium_lib/android/android.rb +2 -0
- data/lib/appium_lib/android/common/command/command.rb +21 -0
- data/lib/appium_lib/android/espresso/bridge.rb +1 -0
- data/lib/appium_lib/android/uiautomator2/bridge.rb +1 -0
- data/lib/appium_lib/driver.rb +35 -3
- data/lib/appium_lib/ios/xcuitest/bridge.rb +2 -1
- data/lib/appium_lib/ios/xcuitest/command.rb +1 -0
- data/lib/appium_lib/ios/xcuitest/command/multi_app_handler.rb +125 -0
- data/lib/appium_lib/ios/xcuitest/command/pasteboard.rb +1 -1
- data/lib/appium_lib/ios/xcuitest/command/source.rb +1 -0
- data/lib/appium_lib/version.rb +2 -2
- data/release_notes.md +9 -0
- metadata +9 -6
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/d2a48f235b29f5150524d2894b38df79d9cc4f52/lib/appium_lib/appium.rb#L45)
|
2
2
|
|
3
3
|
> def 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/d2a48f235b29f5150524d2894b38df79d9cc4f52/lib/appium_lib/appium.rb#L79)
|
31
31
|
|
32
32
|
> def load_settings(opts = {})
|
33
33
|
|
@@ -56,7 +56,7 @@ __Returns:__
|
|
56
56
|
|
57
57
|
--
|
58
58
|
|
59
|
-
##### [expand_required_files](https://github.com/appium/ruby_lib/blob/
|
59
|
+
##### [expand_required_files](https://github.com/appium/ruby_lib/blob/d2a48f235b29f5150524d2894b38df79d9cc4f52/lib/appium_lib/appium.rb#L84)
|
60
60
|
|
61
61
|
> def expand_required_files(base_dir, file_paths)
|
62
62
|
|
@@ -74,7 +74,7 @@ __Returns:__
|
|
74
74
|
|
75
75
|
--
|
76
76
|
|
77
|
-
##### [promote_singleton_appium_methods](https://github.com/appium/ruby_lib/blob/
|
77
|
+
##### [promote_singleton_appium_methods](https://github.com/appium/ruby_lib/blob/d2a48f235b29f5150524d2894b38df79d9cc4f52/lib/appium_lib/appium.rb#L126)
|
78
78
|
|
79
79
|
> def promote_singleton_appium_methods(modules, driver = $driver)
|
80
80
|
|
@@ -98,7 +98,7 @@ __Parameters:__
|
|
98
98
|
|
99
99
|
--
|
100
100
|
|
101
|
-
##### [promote_appium_methods](https://github.com/appium/ruby_lib/blob/
|
101
|
+
##### [promote_appium_methods](https://github.com/appium/ruby_lib/blob/d2a48f235b29f5150524d2894b38df79d9cc4f52/lib/appium_lib/appium.rb#L181)
|
102
102
|
|
103
103
|
> def promote_appium_methods(class_array, driver = $driver)
|
104
104
|
|
@@ -116,7 +116,7 @@ __Parameters:__
|
|
116
116
|
|
117
117
|
--
|
118
118
|
|
119
|
-
##### [global_webdriver_http_sleep](https://github.com/appium/ruby_lib/blob/
|
119
|
+
##### [global_webdriver_http_sleep](https://github.com/appium/ruby_lib/blob/d2a48f235b29f5150524d2894b38df79d9cc4f52/lib/appium_lib/driver.rb#L24)
|
120
120
|
|
121
121
|
> def global_webdriver_http_sleep
|
122
122
|
|
@@ -124,7 +124,7 @@ The amount to sleep in seconds before every webdriver http call.
|
|
124
124
|
|
125
125
|
--
|
126
126
|
|
127
|
-
##### [global_webdriver_http_sleep=](https://github.com/appium/ruby_lib/blob/
|
127
|
+
##### [global_webdriver_http_sleep=](https://github.com/appium/ruby_lib/blob/d2a48f235b29f5150524d2894b38df79d9cc4f52/lib/appium_lib/driver.rb#L24)
|
128
128
|
|
129
129
|
> def global_webdriver_http_sleep=(value)
|
130
130
|
|
@@ -132,7 +132,7 @@ The amount to sleep in seconds before every webdriver http call.
|
|
132
132
|
|
133
133
|
--
|
134
134
|
|
135
|
-
##### [sauce](https://github.com/appium/ruby_lib/blob/
|
135
|
+
##### [sauce](https://github.com/appium/ruby_lib/blob/d2a48f235b29f5150524d2894b38df79d9cc4f52/lib/appium_lib/driver.rb#L27)
|
136
136
|
|
137
137
|
> def sauce
|
138
138
|
|
@@ -140,7 +140,7 @@ SauceLab's settings
|
|
140
140
|
|
141
141
|
--
|
142
142
|
|
143
|
-
##### [sauce_username](https://github.com/appium/ruby_lib/blob/
|
143
|
+
##### [sauce_username](https://github.com/appium/ruby_lib/blob/d2a48f235b29f5150524d2894b38df79d9cc4f52/lib/appium_lib/driver.rb#L30)
|
144
144
|
|
145
145
|
> def sauce_username
|
146
146
|
|
@@ -149,7 +149,7 @@ same as @sauce.username
|
|
149
149
|
|
150
150
|
--
|
151
151
|
|
152
|
-
##### [sauce_access_key](https://github.com/appium/ruby_lib/blob/
|
152
|
+
##### [sauce_access_key](https://github.com/appium/ruby_lib/blob/d2a48f235b29f5150524d2894b38df79d9cc4f52/lib/appium_lib/driver.rb#L33)
|
153
153
|
|
154
154
|
> def sauce_access_key
|
155
155
|
|
@@ -158,7 +158,7 @@ same as @sauce.access_key
|
|
158
158
|
|
159
159
|
--
|
160
160
|
|
161
|
-
##### [sauce_endpoint](https://github.com/appium/ruby_lib/blob/
|
161
|
+
##### [sauce_endpoint](https://github.com/appium/ruby_lib/blob/d2a48f235b29f5150524d2894b38df79d9cc4f52/lib/appium_lib/driver.rb#L36)
|
162
162
|
|
163
163
|
> def sauce_endpoint
|
164
164
|
|
@@ -167,7 +167,7 @@ same as @sauce.endpoint
|
|
167
167
|
|
168
168
|
--
|
169
169
|
|
170
|
-
##### [caps](https://github.com/appium/ruby_lib/blob/
|
170
|
+
##### [caps](https://github.com/appium/ruby_lib/blob/d2a48f235b29f5150524d2894b38df79d9cc4f52/lib/appium_lib/driver.rb#L40)
|
171
171
|
|
172
172
|
> def caps
|
173
173
|
|
@@ -176,7 +176,7 @@ read http://www.rubydoc.info/github/appium/ruby_lib_core/Appium/Core/Driver
|
|
176
176
|
|
177
177
|
--
|
178
178
|
|
179
|
-
##### [custom_url](https://github.com/appium/ruby_lib/blob/
|
179
|
+
##### [custom_url](https://github.com/appium/ruby_lib/blob/d2a48f235b29f5150524d2894b38df79d9cc4f52/lib/appium_lib/driver.rb#L41)
|
180
180
|
|
181
181
|
> def custom_url
|
182
182
|
|
@@ -184,7 +184,7 @@ Returns the value of attribute custom_url
|
|
184
184
|
|
185
185
|
--
|
186
186
|
|
187
|
-
##### [export_session](https://github.com/appium/ruby_lib/blob/
|
187
|
+
##### [export_session](https://github.com/appium/ruby_lib/blob/d2a48f235b29f5150524d2894b38df79d9cc4f52/lib/appium_lib/driver.rb#L42)
|
188
188
|
|
189
189
|
> def export_session
|
190
190
|
|
@@ -192,7 +192,7 @@ Returns the value of attribute export_session
|
|
192
192
|
|
193
193
|
--
|
194
194
|
|
195
|
-
##### [export_session_path](https://github.com/appium/ruby_lib/blob/
|
195
|
+
##### [export_session_path](https://github.com/appium/ruby_lib/blob/d2a48f235b29f5150524d2894b38df79d9cc4f52/lib/appium_lib/driver.rb#L43)
|
196
196
|
|
197
197
|
> def export_session_path
|
198
198
|
|
@@ -200,7 +200,7 @@ Returns the value of attribute export_session_path
|
|
200
200
|
|
201
201
|
--
|
202
202
|
|
203
|
-
##### [default_wait](https://github.com/appium/ruby_lib/blob/
|
203
|
+
##### [default_wait](https://github.com/appium/ruby_lib/blob/d2a48f235b29f5150524d2894b38df79d9cc4f52/lib/appium_lib/driver.rb#L44)
|
204
204
|
|
205
205
|
> def default_wait
|
206
206
|
|
@@ -208,7 +208,7 @@ Returns the value of attribute default_wait
|
|
208
208
|
|
209
209
|
--
|
210
210
|
|
211
|
-
##### [appium_port](https://github.com/appium/ruby_lib/blob/
|
211
|
+
##### [appium_port](https://github.com/appium/ruby_lib/blob/d2a48f235b29f5150524d2894b38df79d9cc4f52/lib/appium_lib/driver.rb#L45)
|
212
212
|
|
213
213
|
> def appium_port
|
214
214
|
|
@@ -216,7 +216,7 @@ Returns the value of attribute appium_port
|
|
216
216
|
|
217
217
|
--
|
218
218
|
|
219
|
-
##### [appium_device](https://github.com/appium/ruby_lib/blob/
|
219
|
+
##### [appium_device](https://github.com/appium/ruby_lib/blob/d2a48f235b29f5150524d2894b38df79d9cc4f52/lib/appium_lib/driver.rb#L46)
|
220
220
|
|
221
221
|
> def appium_device
|
222
222
|
|
@@ -224,7 +224,7 @@ Returns the value of attribute appium_device
|
|
224
224
|
|
225
225
|
--
|
226
226
|
|
227
|
-
##### [automation_name](https://github.com/appium/ruby_lib/blob/
|
227
|
+
##### [automation_name](https://github.com/appium/ruby_lib/blob/d2a48f235b29f5150524d2894b38df79d9cc4f52/lib/appium_lib/driver.rb#L47)
|
228
228
|
|
229
229
|
> def automation_name
|
230
230
|
|
@@ -232,7 +232,7 @@ Returns the value of attribute automation_name
|
|
232
232
|
|
233
233
|
--
|
234
234
|
|
235
|
-
##### [listener](https://github.com/appium/ruby_lib/blob/
|
235
|
+
##### [listener](https://github.com/appium/ruby_lib/blob/d2a48f235b29f5150524d2894b38df79d9cc4f52/lib/appium_lib/driver.rb#L48)
|
236
236
|
|
237
237
|
> def listener
|
238
238
|
|
@@ -240,7 +240,7 @@ Returns the value of attribute listener
|
|
240
240
|
|
241
241
|
--
|
242
242
|
|
243
|
-
##### [http_client](https://github.com/appium/ruby_lib/blob/
|
243
|
+
##### [http_client](https://github.com/appium/ruby_lib/blob/d2a48f235b29f5150524d2894b38df79d9cc4f52/lib/appium_lib/driver.rb#L49)
|
244
244
|
|
245
245
|
> def http_client
|
246
246
|
|
@@ -248,7 +248,7 @@ Returns the value of attribute http_client
|
|
248
248
|
|
249
249
|
--
|
250
250
|
|
251
|
-
##### [appium_wait_timeout](https://github.com/appium/ruby_lib/blob/
|
251
|
+
##### [appium_wait_timeout](https://github.com/appium/ruby_lib/blob/d2a48f235b29f5150524d2894b38df79d9cc4f52/lib/appium_lib/driver.rb#L50)
|
252
252
|
|
253
253
|
> def appium_wait_timeout
|
254
254
|
|
@@ -256,7 +256,7 @@ Returns the value of attribute appium_wait_timeout
|
|
256
256
|
|
257
257
|
--
|
258
258
|
|
259
|
-
##### [appium_wait_interval](https://github.com/appium/ruby_lib/blob/
|
259
|
+
##### [appium_wait_interval](https://github.com/appium/ruby_lib/blob/d2a48f235b29f5150524d2894b38df79d9cc4f52/lib/appium_lib/driver.rb#L51)
|
260
260
|
|
261
261
|
> def appium_wait_interval
|
262
262
|
|
@@ -264,7 +264,7 @@ Returns the value of attribute appium_wait_interval
|
|
264
264
|
|
265
265
|
--
|
266
266
|
|
267
|
-
##### [appium_server_status](https://github.com/appium/ruby_lib/blob/
|
267
|
+
##### [appium_server_status](https://github.com/appium/ruby_lib/blob/d2a48f235b29f5150524d2894b38df79d9cc4f52/lib/appium_lib/driver.rb#L54)
|
268
268
|
|
269
269
|
> def appium_server_status
|
270
270
|
|
@@ -272,7 +272,7 @@ Appium's server version
|
|
272
272
|
|
273
273
|
--
|
274
274
|
|
275
|
-
##### [appium_debug](https://github.com/appium/ruby_lib/blob/
|
275
|
+
##### [appium_debug](https://github.com/appium/ruby_lib/blob/d2a48f235b29f5150524d2894b38df79d9cc4f52/lib/appium_lib/driver.rb#L56)
|
276
276
|
|
277
277
|
> def appium_debug
|
278
278
|
|
@@ -280,7 +280,7 @@ Boolean debug mode for the Appium Ruby bindings
|
|
280
280
|
|
281
281
|
--
|
282
282
|
|
283
|
-
##### [driver](https://github.com/appium/ruby_lib/blob/
|
283
|
+
##### [driver](https://github.com/appium/ruby_lib/blob/d2a48f235b29f5150524d2894b38df79d9cc4f52/lib/appium_lib/driver.rb#L59)
|
284
284
|
|
285
285
|
> def driver
|
286
286
|
|
@@ -292,7 +292,7 @@ __Returns:__
|
|
292
292
|
|
293
293
|
--
|
294
294
|
|
295
|
-
##### [core](https://github.com/appium/ruby_lib/blob/
|
295
|
+
##### [core](https://github.com/appium/ruby_lib/blob/d2a48f235b29f5150524d2894b38df79d9cc4f52/lib/appium_lib/driver.rb#L61)
|
296
296
|
|
297
297
|
> def core
|
298
298
|
|
@@ -300,7 +300,7 @@ Instance of Appium::Core::Driver
|
|
300
300
|
|
301
301
|
--
|
302
302
|
|
303
|
-
##### [initialize](https://github.com/appium/ruby_lib/blob/
|
303
|
+
##### [initialize](https://github.com/appium/ruby_lib/blob/d2a48f235b29f5150524d2894b38df79d9cc4f52/lib/appium_lib/driver.rb#L125)
|
304
304
|
|
305
305
|
> def initialize(opts = {}, global_driver = nil)
|
306
306
|
|
@@ -319,7 +319,7 @@ __Returns:__
|
|
319
319
|
|
320
320
|
--
|
321
321
|
|
322
|
-
##### [driver_attributes](https://github.com/appium/ruby_lib/blob/
|
322
|
+
##### [driver_attributes](https://github.com/appium/ruby_lib/blob/d2a48f235b29f5150524d2894b38df79d9cc4f52/lib/appium_lib/driver.rb#L235)
|
323
323
|
|
324
324
|
> def driver_attributes
|
325
325
|
|
@@ -327,7 +327,7 @@ Returns a hash of the driver attributes
|
|
327
327
|
|
328
328
|
--
|
329
329
|
|
330
|
-
##### [device_is_android?](https://github.com/appium/ruby_lib/blob/
|
330
|
+
##### [device_is_android?](https://github.com/appium/ruby_lib/blob/d2a48f235b29f5150524d2894b38df79d9cc4f52/lib/appium_lib/driver.rb#L255)
|
331
331
|
|
332
332
|
> def device_is_android?
|
333
333
|
|
@@ -339,7 +339,7 @@ __Returns:__
|
|
339
339
|
|
340
340
|
--
|
341
341
|
|
342
|
-
##### [device_is_ios?](https://github.com/appium/ruby_lib/blob/
|
342
|
+
##### [device_is_ios?](https://github.com/appium/ruby_lib/blob/d2a48f235b29f5150524d2894b38df79d9cc4f52/lib/appium_lib/driver.rb#L259)
|
343
343
|
|
344
344
|
> def device_is_ios?
|
345
345
|
|
@@ -351,7 +351,7 @@ __Returns:__
|
|
351
351
|
|
352
352
|
--
|
353
353
|
|
354
|
-
##### [device_is_windows?](https://github.com/appium/ruby_lib/blob/
|
354
|
+
##### [device_is_windows?](https://github.com/appium/ruby_lib/blob/d2a48f235b29f5150524d2894b38df79d9cc4f52/lib/appium_lib/driver.rb#L263)
|
355
355
|
|
356
356
|
> def device_is_windows?
|
357
357
|
|
@@ -363,7 +363,7 @@ __Returns:__
|
|
363
363
|
|
364
364
|
--
|
365
365
|
|
366
|
-
##### [automation_name_is_uiautomator2?](https://github.com/appium/ruby_lib/blob/
|
366
|
+
##### [automation_name_is_uiautomator2?](https://github.com/appium/ruby_lib/blob/d2a48f235b29f5150524d2894b38df79d9cc4f52/lib/appium_lib/driver.rb#L269)
|
367
367
|
|
368
368
|
> def automation_name_is_uiautomator2?
|
369
369
|
|
@@ -375,7 +375,7 @@ __Returns:__
|
|
375
375
|
|
376
376
|
--
|
377
377
|
|
378
|
-
##### [automation_name_is_espresso?](https://github.com/appium/ruby_lib/blob/
|
378
|
+
##### [automation_name_is_espresso?](https://github.com/appium/ruby_lib/blob/d2a48f235b29f5150524d2894b38df79d9cc4f52/lib/appium_lib/driver.rb#L275)
|
379
379
|
|
380
380
|
> def automation_name_is_espresso?
|
381
381
|
|
@@ -387,7 +387,7 @@ __Returns:__
|
|
387
387
|
|
388
388
|
--
|
389
389
|
|
390
|
-
##### [automation_name_is_xcuitest?](https://github.com/appium/ruby_lib/blob/
|
390
|
+
##### [automation_name_is_xcuitest?](https://github.com/appium/ruby_lib/blob/d2a48f235b29f5150524d2894b38df79d9cc4f52/lib/appium_lib/driver.rb#L281)
|
391
391
|
|
392
392
|
> def automation_name_is_xcuitest?
|
393
393
|
|
@@ -399,7 +399,29 @@ __Returns:__
|
|
399
399
|
|
400
400
|
--
|
401
401
|
|
402
|
-
##### [
|
402
|
+
##### [dialect](https://github.com/appium/ruby_lib/blob/d2a48f235b29f5150524d2894b38df79d9cc4f52/lib/appium_lib/driver.rb#L301)
|
403
|
+
|
404
|
+
> def dialect
|
405
|
+
|
406
|
+
Get the dialect value whether current driver is OSS or W3C
|
407
|
+
|
408
|
+
__Returns:__
|
409
|
+
|
410
|
+
[:oss | :w3c] @example
|
411
|
+
|
412
|
+
if dialect == :w3c
|
413
|
+
driver.action
|
414
|
+
.move_to_location(500, 500).pointer_down(:left)
|
415
|
+
.move_to_location(0, 700)
|
416
|
+
.release.perform
|
417
|
+
else
|
418
|
+
action = TouchAction.new(driver).press(x: 500, y: 500).move_to(500, 700).release
|
419
|
+
action.perform
|
420
|
+
end
|
421
|
+
|
422
|
+
--
|
423
|
+
|
424
|
+
##### [check_server_version_xcuitest](https://github.com/appium/ruby_lib/blob/d2a48f235b29f5150524d2894b38df79d9cc4f52/lib/appium_lib/driver.rb#L308)
|
403
425
|
|
404
426
|
> def check_server_version_xcuitest
|
405
427
|
|
@@ -412,7 +434,7 @@ __Returns:__
|
|
412
434
|
|
413
435
|
--
|
414
436
|
|
415
|
-
##### [appium_server_version](https://github.com/appium/ruby_lib/blob/
|
437
|
+
##### [appium_server_version](https://github.com/appium/ruby_lib/blob/d2a48f235b29f5150524d2894b38df79d9cc4f52/lib/appium_lib/driver.rb#L329)
|
416
438
|
|
417
439
|
> def appium_server_version
|
418
440
|
|
@@ -424,7 +446,7 @@ __Returns:__
|
|
424
446
|
|
425
447
|
--
|
426
448
|
|
427
|
-
##### [remote_status](https://github.com/appium/ruby_lib/blob/
|
449
|
+
##### [remote_status](https://github.com/appium/ruby_lib/blob/d2a48f235b29f5150524d2894b38df79d9cc4f52/lib/appium_lib/driver.rb#L336)
|
428
450
|
|
429
451
|
> def appium_server_version
|
430
452
|
|
@@ -436,7 +458,7 @@ __Returns:__
|
|
436
458
|
|
437
459
|
--
|
438
460
|
|
439
|
-
##### [platform_version](https://github.com/appium/ruby_lib/blob/
|
461
|
+
##### [platform_version](https://github.com/appium/ruby_lib/blob/d2a48f235b29f5150524d2894b38df79d9cc4f52/lib/appium_lib/driver.rb#L340)
|
440
462
|
|
441
463
|
> def platform_version
|
442
464
|
|
@@ -448,7 +470,7 @@ __Returns:__
|
|
448
470
|
|
449
471
|
--
|
450
472
|
|
451
|
-
##### [appium_client_version](https://github.com/appium/ruby_lib/blob/
|
473
|
+
##### [appium_client_version](https://github.com/appium/ruby_lib/blob/d2a48f235b29f5150524d2894b38df79d9cc4f52/lib/appium_lib/driver.rb#L353)
|
452
474
|
|
453
475
|
> def appium_client_version
|
454
476
|
|
@@ -460,7 +482,7 @@ __Returns:__
|
|
460
482
|
|
461
483
|
--
|
462
484
|
|
463
|
-
##### [absolute_app_path](https://github.com/appium/ruby_lib/blob/
|
485
|
+
##### [absolute_app_path](https://github.com/appium/ruby_lib/blob/d2a48f235b29f5150524d2894b38df79d9cc4f52/lib/appium_lib/driver.rb#L365)
|
464
486
|
|
465
487
|
> def self.absolute_app_path(opts)
|
466
488
|
|
@@ -477,7 +499,7 @@ __Returns:__
|
|
477
499
|
|
478
500
|
--
|
479
501
|
|
480
|
-
##### [server_url](https://github.com/appium/ruby_lib/blob/
|
502
|
+
##### [server_url](https://github.com/appium/ruby_lib/blob/d2a48f235b29f5150524d2894b38df79d9cc4f52/lib/appium_lib/driver.rb#L398)
|
481
503
|
|
482
504
|
> def server_url
|
483
505
|
|
@@ -489,7 +511,7 @@ __Returns:__
|
|
489
511
|
|
490
512
|
--
|
491
513
|
|
492
|
-
##### [restart](https://github.com/appium/ruby_lib/blob/
|
514
|
+
##### [restart](https://github.com/appium/ruby_lib/blob/d2a48f235b29f5150524d2894b38df79d9cc4f52/lib/appium_lib/driver.rb#L406)
|
493
515
|
|
494
516
|
> def restart
|
495
517
|
|
@@ -501,7 +523,7 @@ __Returns:__
|
|
501
523
|
|
502
524
|
--
|
503
525
|
|
504
|
-
##### [screenshot](https://github.com/appium/ruby_lib/blob/
|
526
|
+
##### [screenshot](https://github.com/appium/ruby_lib/blob/d2a48f235b29f5150524d2894b38df79d9cc4f52/lib/appium_lib/driver.rb#L419)
|
505
527
|
|
506
528
|
> def screenshot(png_save_path)
|
507
529
|
|
@@ -513,11 +535,29 @@ __Parameters:__
|
|
513
535
|
|
514
536
|
__Returns:__
|
515
537
|
|
516
|
-
[
|
538
|
+
[File]
|
517
539
|
|
518
540
|
--
|
519
541
|
|
520
|
-
##### [
|
542
|
+
##### [element_screenshot](https://github.com/appium/ruby_lib/blob/d2a48f235b29f5150524d2894b38df79d9cc4f52/lib/appium_lib/driver.rb#L433)
|
543
|
+
|
544
|
+
> def element_screenshot(element, png_save_path)
|
545
|
+
|
546
|
+
Takes a png screenshot of particular element's area
|
547
|
+
|
548
|
+
__Parameters:__
|
549
|
+
|
550
|
+
[String] element - Element take a screenshot
|
551
|
+
|
552
|
+
[String] png_save_path - the full path to save the png
|
553
|
+
|
554
|
+
__Returns:__
|
555
|
+
|
556
|
+
[File]
|
557
|
+
|
558
|
+
--
|
559
|
+
|
560
|
+
##### [driver_quit](https://github.com/appium/ruby_lib/blob/d2a48f235b29f5150524d2894b38df79d9cc4f52/lib/appium_lib/driver.rb#L440)
|
521
561
|
|
522
562
|
> def driver_quit
|
523
563
|
|
@@ -529,7 +569,7 @@ __Returns:__
|
|
529
569
|
|
530
570
|
--
|
531
571
|
|
532
|
-
##### [quit_driver](https://github.com/appium/ruby_lib/blob/
|
572
|
+
##### [quit_driver](https://github.com/appium/ruby_lib/blob/d2a48f235b29f5150524d2894b38df79d9cc4f52/lib/appium_lib/driver.rb#L443)
|
533
573
|
|
534
574
|
> def driver_quit
|
535
575
|
|
@@ -541,7 +581,7 @@ __Returns:__
|
|
541
581
|
|
542
582
|
--
|
543
583
|
|
544
|
-
##### [window_size](https://github.com/appium/ruby_lib/blob/
|
584
|
+
##### [window_size](https://github.com/appium/ruby_lib/blob/d2a48f235b29f5150524d2894b38df79d9cc4f52/lib/appium_lib/driver.rb#L454)
|
545
585
|
|
546
586
|
> def window_size
|
547
587
|
|
@@ -553,7 +593,7 @@ __Returns:__
|
|
553
593
|
|
554
594
|
--
|
555
595
|
|
556
|
-
##### [start_driver](https://github.com/appium/ruby_lib/blob/
|
596
|
+
##### [start_driver](https://github.com/appium/ruby_lib/blob/d2a48f235b29f5150524d2894b38df79d9cc4f52/lib/appium_lib/driver.rb#L486)
|
557
597
|
|
558
598
|
> def start_driver(http_client_ops =
|
559
599
|
|
@@ -573,7 +613,7 @@ __Returns:__
|
|
573
613
|
|
574
614
|
--
|
575
615
|
|
576
|
-
##### [set_implicit_wait](https://github.com/appium/ruby_lib/blob/
|
616
|
+
##### [set_implicit_wait](https://github.com/appium/ruby_lib/blob/d2a48f235b29f5150524d2894b38df79d9cc4f52/lib/appium_lib/driver.rb#L508)
|
577
617
|
|
578
618
|
> def set_implicit_wait(wait)
|
579
619
|
|
@@ -581,7 +621,7 @@ To ignore error for Espresso Driver
|
|
581
621
|
|
582
622
|
--
|
583
623
|
|
584
|
-
##### [no_wait](https://github.com/appium/ruby_lib/blob/
|
624
|
+
##### [no_wait](https://github.com/appium/ruby_lib/blob/d2a48f235b29f5150524d2894b38df79d9cc4f52/lib/appium_lib/driver.rb#L518)
|
585
625
|
|
586
626
|
> def no_wait
|
587
627
|
|
@@ -589,7 +629,7 @@ Set implicit wait to zero.
|
|
589
629
|
|
590
630
|
--
|
591
631
|
|
592
|
-
##### [set_wait](https://github.com/appium/ruby_lib/blob/
|
632
|
+
##### [set_wait](https://github.com/appium/ruby_lib/blob/d2a48f235b29f5150524d2894b38df79d9cc4f52/lib/appium_lib/driver.rb#L532)
|
593
633
|
|
594
634
|
> def set_wait(timeout = nil)
|
595
635
|
|
@@ -605,7 +645,7 @@ __Returns:__
|
|
605
645
|
|
606
646
|
--
|
607
647
|
|
608
|
-
##### [exists](https://github.com/appium/ruby_lib/blob/
|
648
|
+
##### [exists](https://github.com/appium/ruby_lib/blob/d2a48f235b29f5150524d2894b38df79d9cc4f52/lib/appium_lib/driver.rb#L549)
|
609
649
|
|
610
650
|
> def exists(pre_check = 0, post_check = @core.default_wait)
|
611
651
|
|
@@ -629,7 +669,7 @@ __Returns:__
|
|
629
669
|
|
630
670
|
--
|
631
671
|
|
632
|
-
##### [execute_script](https://github.com/appium/ruby_lib/blob/
|
672
|
+
##### [execute_script](https://github.com/appium/ruby_lib/blob/d2a48f235b29f5150524d2894b38df79d9cc4f52/lib/appium_lib/driver.rb#L573)
|
633
673
|
|
634
674
|
> def execute_script(script, *args)
|
635
675
|
|
@@ -647,7 +687,7 @@ __Returns:__
|
|
647
687
|
|
648
688
|
--
|
649
689
|
|
650
|
-
##### [find_elements](https://github.com/appium/ruby_lib/blob/
|
690
|
+
##### [find_elements](https://github.com/appium/ruby_lib/blob/d2a48f235b29f5150524d2894b38df79d9cc4f52/lib/appium_lib/driver.rb#L595)
|
651
691
|
|
652
692
|
> def find_elements(*args)
|
653
693
|
|
@@ -667,7 +707,7 @@ __Returns:__
|
|
667
707
|
|
668
708
|
--
|
669
709
|
|
670
|
-
##### [find_element](https://github.com/appium/ruby_lib/blob/
|
710
|
+
##### [find_element](https://github.com/appium/ruby_lib/blob/d2a48f235b29f5150524d2894b38df79d9cc4f52/lib/appium_lib/driver.rb#L610)
|
671
711
|
|
672
712
|
> def find_element(*args)
|
673
713
|
|
@@ -685,7 +725,7 @@ __Returns:__
|
|
685
725
|
|
686
726
|
--
|
687
727
|
|
688
|
-
##### [set_location](https://github.com/appium/ruby_lib/blob/
|
728
|
+
##### [set_location](https://github.com/appium/ruby_lib/blob/d2a48f235b29f5150524d2894b38df79d9cc4f52/lib/appium_lib/driver.rb#L623)
|
689
729
|
|
690
730
|
> def set_location(opts = {})
|
691
731
|
|
@@ -701,7 +741,7 @@ __Returns:__
|
|
701
741
|
|
702
742
|
--
|
703
743
|
|
704
|
-
##### [x](https://github.com/appium/ruby_lib/blob/
|
744
|
+
##### [x](https://github.com/appium/ruby_lib/blob/d2a48f235b29f5150524d2894b38df79d9cc4f52/lib/appium_lib/driver.rb#L633)
|
705
745
|
|
706
746
|
> def x
|
707
747
|
|
@@ -714,7 +754,7 @@ __Returns:__
|
|
714
754
|
|
715
755
|
--
|
716
756
|
|
717
|
-
##### [username](https://github.com/appium/ruby_lib/blob/
|
757
|
+
##### [username](https://github.com/appium/ruby_lib/blob/d2a48f235b29f5150524d2894b38df79d9cc4f52/lib/appium_lib/sauce_labs.rb#L4)
|
718
758
|
|
719
759
|
> def username
|
720
760
|
|
@@ -722,7 +762,7 @@ Username for use on Sauce Labs. Set `false` to disable Sauce, even when SAUCE_US
|
|
722
762
|
|
723
763
|
--
|
724
764
|
|
725
|
-
##### [access_key](https://github.com/appium/ruby_lib/blob/
|
765
|
+
##### [access_key](https://github.com/appium/ruby_lib/blob/d2a48f235b29f5150524d2894b38df79d9cc4f52/lib/appium_lib/sauce_labs.rb#L6)
|
726
766
|
|
727
767
|
> def access_key
|
728
768
|
|
@@ -730,7 +770,7 @@ Access Key for use on Sauce Labs. Set `false` to disable Sauce, even when SAUCE_
|
|
730
770
|
|
731
771
|
--
|
732
772
|
|
733
|
-
##### [endpoint](https://github.com/appium/ruby_lib/blob/
|
773
|
+
##### [endpoint](https://github.com/appium/ruby_lib/blob/d2a48f235b29f5150524d2894b38df79d9cc4f52/lib/appium_lib/sauce_labs.rb#L8)
|
734
774
|
|
735
775
|
> def endpoint
|
736
776
|
|
@@ -738,7 +778,7 @@ Override the Sauce Appium endpoint to allow e.g. TestObject tests. Default is 'o
|
|
738
778
|
|
739
779
|
--
|
740
780
|
|
741
|
-
##### [initialize](https://github.com/appium/ruby_lib/blob/
|
781
|
+
##### [initialize](https://github.com/appium/ruby_lib/blob/d2a48f235b29f5150524d2894b38df79d9cc4f52/lib/appium_lib/sauce_labs.rb#L33)
|
742
782
|
|
743
783
|
> def initialize(appium_lib_opts)
|
744
784
|
|
@@ -754,7 +794,7 @@ __Returns:__
|
|
754
794
|
|
755
795
|
--
|
756
796
|
|
757
|
-
##### [sauce_server_url?](https://github.com/appium/ruby_lib/blob/
|
797
|
+
##### [sauce_server_url?](https://github.com/appium/ruby_lib/blob/d2a48f235b29f5150524d2894b38df79d9cc4f52/lib/appium_lib/sauce_labs.rb#L53)
|
758
798
|
|
759
799
|
> def sauce_server_url?
|
760
800
|
|
@@ -766,7 +806,7 @@ __Returns:__
|
|
766
806
|
|
767
807
|
--
|
768
808
|
|
769
|
-
##### [server_url](https://github.com/appium/ruby_lib/blob/
|
809
|
+
##### [server_url](https://github.com/appium/ruby_lib/blob/d2a48f235b29f5150524d2894b38df79d9cc4f52/lib/appium_lib/sauce_labs.rb#L66)
|
770
810
|
|
771
811
|
> def server_url
|
772
812
|
|
@@ -778,7 +818,7 @@ __Returns:__
|
|
778
818
|
|
779
819
|
--
|
780
820
|
|
781
|
-
##### [get_log](https://github.com/appium/ruby_lib/blob/
|
821
|
+
##### [get_log](https://github.com/appium/ruby_lib/blob/d2a48f235b29f5150524d2894b38df79d9cc4f52/lib/appium_lib/common/log.rb#L11)
|
782
822
|
|
783
823
|
> def get_log(type)
|
784
824
|
|
@@ -794,7 +834,7 @@ __Returns:__
|
|
794
834
|
|
795
835
|
--
|
796
836
|
|
797
|
-
##### [get_available_log_types](https://github.com/appium/ruby_lib/blob/
|
837
|
+
##### [get_available_log_types](https://github.com/appium/ruby_lib/blob/d2a48f235b29f5150524d2894b38df79d9cc4f52/lib/appium_lib/common/log.rb#L23)
|
798
838
|
|
799
839
|
> def get_available_log_types
|
800
840
|
|
@@ -806,7 +846,7 @@ __Returns:__
|
|
806
846
|
|
807
847
|
--
|
808
848
|
|
809
|
-
##### [initialize](https://github.com/appium/ruby_lib/blob/
|
849
|
+
##### [initialize](https://github.com/appium/ruby_lib/blob/d2a48f235b29f5150524d2894b38df79d9cc4f52/lib/appium_lib/common/wait.rb#L6)
|
810
850
|
|
811
851
|
> def initialize(opts = {})
|
812
852
|
|
@@ -818,7 +858,7 @@ __Returns:__
|
|
818
858
|
|
819
859
|
--
|
820
860
|
|
821
|
-
##### [wait_true](https://github.com/appium/ruby_lib/blob/
|
861
|
+
##### [wait_true](https://github.com/appium/ruby_lib/blob/d2a48f235b29f5150524d2894b38df79d9cc4f52/lib/appium_lib/common/wait.rb#L26)
|
822
862
|
|
823
863
|
> def wait_true(opts = {})
|
824
864
|
|
@@ -838,7 +878,7 @@ __Parameters:__
|
|
838
878
|
|
839
879
|
--
|
840
880
|
|
841
|
-
##### [wait](https://github.com/appium/ruby_lib/blob/
|
881
|
+
##### [wait](https://github.com/appium/ruby_lib/blob/d2a48f235b29f5150524d2894b38df79d9cc4f52/lib/appium_lib/common/wait.rb#L43)
|
842
882
|
|
843
883
|
> def wait(opts = {})
|
844
884
|
|
@@ -856,7 +896,7 @@ __Parameters:__
|
|
856
896
|
|
857
897
|
--
|
858
898
|
|
859
|
-
##### [add_touch_actions](https://github.com/appium/ruby_lib/blob/
|
899
|
+
##### [add_touch_actions](https://github.com/appium/ruby_lib/blob/d2a48f235b29f5150524d2894b38df79d9cc4f52/lib/appium_lib/common/device.rb#L12)
|
860
900
|
|
861
901
|
> def add_touch_actions
|
862
902
|
|
@@ -864,7 +904,7 @@ __Parameters:__
|
|
864
904
|
|
865
905
|
--
|
866
906
|
|
867
|
-
##### [ignore](https://github.com/appium/ruby_lib/blob/
|
907
|
+
##### [ignore](https://github.com/appium/ruby_lib/blob/d2a48f235b29f5150524d2894b38df79d9cc4f52/lib/appium_lib/common/helper.rb#L16)
|
868
908
|
|
869
909
|
> def ignore
|
870
910
|
|
@@ -872,7 +912,7 @@ Return yield and ignore any exceptions.
|
|
872
912
|
|
873
913
|
--
|
874
914
|
|
875
|
-
##### [back](https://github.com/appium/ruby_lib/blob/
|
915
|
+
##### [back](https://github.com/appium/ruby_lib/blob/d2a48f235b29f5150524d2894b38df79d9cc4f52/lib/appium_lib/common/helper.rb#L23)
|
876
916
|
|
877
917
|
> def back
|
878
918
|
|
@@ -884,7 +924,7 @@ __Returns:__
|
|
884
924
|
|
885
925
|
--
|
886
926
|
|
887
|
-
##### [session_id](https://github.com/appium/ruby_lib/blob/
|
927
|
+
##### [session_id](https://github.com/appium/ruby_lib/blob/d2a48f235b29f5150524d2894b38df79d9cc4f52/lib/appium_lib/common/helper.rb#L34)
|
888
928
|
|
889
929
|
> def session_id
|
890
930
|
|
@@ -896,7 +936,7 @@ __Returns:__
|
|
896
936
|
|
897
937
|
--
|
898
938
|
|
899
|
-
##### [xpath](https://github.com/appium/ruby_lib/blob/
|
939
|
+
##### [xpath](https://github.com/appium/ruby_lib/blob/d2a48f235b29f5150524d2894b38df79d9cc4f52/lib/appium_lib/common/helper.rb#L42)
|
900
940
|
|
901
941
|
> def xpath(xpath_str)
|
902
942
|
|
@@ -912,7 +952,7 @@ __Returns:__
|
|
912
952
|
|
913
953
|
--
|
914
954
|
|
915
|
-
##### [xpaths](https://github.com/appium/ruby_lib/blob/
|
955
|
+
##### [xpaths](https://github.com/appium/ruby_lib/blob/d2a48f235b29f5150524d2894b38df79d9cc4f52/lib/appium_lib/common/helper.rb#L50)
|
916
956
|
|
917
957
|
> def xpaths(xpath_str)
|
918
958
|
|
@@ -928,7 +968,7 @@ __Returns:__
|
|
928
968
|
|
929
969
|
--
|
930
970
|
|
931
|
-
##### [result](https://github.com/appium/ruby_lib/blob/
|
971
|
+
##### [result](https://github.com/appium/ruby_lib/blob/d2a48f235b29f5150524d2894b38df79d9cc4f52/lib/appium_lib/common/helper.rb#L60)
|
932
972
|
|
933
973
|
> def result
|
934
974
|
|
@@ -936,7 +976,7 @@ Returns the value of attribute result
|
|
936
976
|
|
937
977
|
--
|
938
978
|
|
939
|
-
##### [initialize](https://github.com/appium/ruby_lib/blob/
|
979
|
+
##### [initialize](https://github.com/appium/ruby_lib/blob/d2a48f235b29f5150524d2894b38df79d9cc4f52/lib/appium_lib/common/helper.rb#L62)
|
940
980
|
|
941
981
|
> def initialize
|
942
982
|
|
@@ -948,7 +988,7 @@ __Returns:__
|
|
948
988
|
|
949
989
|
--
|
950
990
|
|
951
|
-
##### [reset](https://github.com/appium/ruby_lib/blob/
|
991
|
+
##### [reset](https://github.com/appium/ruby_lib/blob/d2a48f235b29f5150524d2894b38df79d9cc4f52/lib/appium_lib/common/helper.rb#L66)
|
952
992
|
|
953
993
|
> def reset
|
954
994
|
|
@@ -956,7 +996,7 @@ __Returns:__
|
|
956
996
|
|
957
997
|
--
|
958
998
|
|
959
|
-
##### [start_element](https://github.com/appium/ruby_lib/blob/
|
999
|
+
##### [start_element](https://github.com/appium/ruby_lib/blob/d2a48f235b29f5150524d2894b38df79d9cc4f52/lib/appium_lib/common/helper.rb#L71)
|
960
1000
|
|
961
1001
|
> def start_element(name, attrs = [], driver = $driver)
|
962
1002
|
|
@@ -964,7 +1004,7 @@ http://nokogiri.org/Nokogiri/XML/SAX/Document.html
|
|
964
1004
|
|
965
1005
|
--
|
966
1006
|
|
967
|
-
##### [formatted_result](https://github.com/appium/ruby_lib/blob/
|
1007
|
+
##### [formatted_result](https://github.com/appium/ruby_lib/blob/d2a48f235b29f5150524d2894b38df79d9cc4f52/lib/appium_lib/common/helper.rb#L77)
|
968
1008
|
|
969
1009
|
> def formatted_result
|
970
1010
|
|
@@ -972,7 +1012,7 @@ http://nokogiri.org/Nokogiri/XML/SAX/Document.html
|
|
972
1012
|
|
973
1013
|
--
|
974
1014
|
|
975
|
-
##### [get_page_class](https://github.com/appium/ruby_lib/blob/
|
1015
|
+
##### [get_page_class](https://github.com/appium/ruby_lib/blob/d2a48f235b29f5150524d2894b38df79d9cc4f52/lib/appium_lib/common/helper.rb#L96)
|
976
1016
|
|
977
1017
|
> def get_page_class
|
978
1018
|
|
@@ -984,7 +1024,7 @@ __Returns:__
|
|
984
1024
|
|
985
1025
|
--
|
986
1026
|
|
987
|
-
##### [page_class](https://github.com/appium/ruby_lib/blob/
|
1027
|
+
##### [page_class](https://github.com/appium/ruby_lib/blob/d2a48f235b29f5150524d2894b38df79d9cc4f52/lib/appium_lib/common/helper.rb#L121)
|
988
1028
|
|
989
1029
|
> def page_class
|
990
1030
|
|
@@ -997,7 +1037,7 @@ __Returns:__
|
|
997
1037
|
|
998
1038
|
--
|
999
1039
|
|
1000
|
-
##### [source](https://github.com/appium/ruby_lib/blob/
|
1040
|
+
##### [source](https://github.com/appium/ruby_lib/blob/d2a48f235b29f5150524d2894b38df79d9cc4f52/lib/appium_lib/common/helper.rb#L128)
|
1001
1041
|
|
1002
1042
|
> def source
|
1003
1043
|
|
@@ -1009,7 +1049,7 @@ __Returns:__
|
|
1009
1049
|
|
1010
1050
|
--
|
1011
1051
|
|
1012
|
-
##### [get_source](https://github.com/appium/ruby_lib/blob/
|
1052
|
+
##### [get_source](https://github.com/appium/ruby_lib/blob/d2a48f235b29f5150524d2894b38df79d9cc4f52/lib/appium_lib/common/helper.rb#L135)
|
1013
1053
|
|
1014
1054
|
> def get_source
|
1015
1055
|
|
@@ -1022,7 +1062,7 @@ __Returns:__
|
|
1022
1062
|
|
1023
1063
|
--
|
1024
1064
|
|
1025
|
-
##### [px_to_window_rel](https://github.com/appium/ruby_lib/blob/
|
1065
|
+
##### [px_to_window_rel](https://github.com/appium/ruby_lib/blob/d2a48f235b29f5150524d2894b38df79d9cc4f52/lib/appium_lib/common/helper.rb#L145)
|
1026
1066
|
|
1027
1067
|
> def px_to_window_rel(opts = {}, driver = $driver)
|
1028
1068
|
|
@@ -1030,7 +1070,7 @@ Converts pixel values to window relative values
|
|
1030
1070
|
|
1031
1071
|
--
|
1032
1072
|
|
1033
|
-
##### [xml_keys](https://github.com/appium/ruby_lib/blob/
|
1073
|
+
##### [xml_keys](https://github.com/appium/ruby_lib/blob/d2a48f235b29f5150524d2894b38df79d9cc4f52/lib/appium_lib/common/helper.rb#L164)
|
1034
1074
|
|
1035
1075
|
> def xml_keys(target)
|
1036
1076
|
|
@@ -1046,7 +1086,7 @@ __Returns:__
|
|
1046
1086
|
|
1047
1087
|
--
|
1048
1088
|
|
1049
|
-
##### [xml_values](https://github.com/appium/ruby_lib/blob/
|
1089
|
+
##### [xml_values](https://github.com/appium/ruby_lib/blob/d2a48f235b29f5150524d2894b38df79d9cc4f52/lib/appium_lib/common/helper.rb#L172)
|
1050
1090
|
|
1051
1091
|
> def xml_values(target)
|
1052
1092
|
|
@@ -1062,7 +1102,7 @@ __Returns:__
|
|
1062
1102
|
|
1063
1103
|
--
|
1064
1104
|
|
1065
|
-
##### [resolve_id](https://github.com/appium/ruby_lib/blob/
|
1105
|
+
##### [resolve_id](https://github.com/appium/ruby_lib/blob/d2a48f235b29f5150524d2894b38df79d9cc4f52/lib/appium_lib/common/helper.rb#L180)
|
1066
1106
|
|
1067
1107
|
> def resolve_id(id)
|
1068
1108
|
|
@@ -1078,7 +1118,7 @@ __Returns:__
|
|
1078
1118
|
|
1079
1119
|
--
|
1080
1120
|
|
1081
|
-
##### [filter](https://github.com/appium/ruby_lib/blob/
|
1121
|
+
##### [filter](https://github.com/appium/ruby_lib/blob/d2a48f235b29f5150524d2894b38df79d9cc4f52/lib/appium_lib/common/helper.rb#L187)
|
1082
1122
|
|
1083
1123
|
> def filter
|
1084
1124
|
|
@@ -1086,7 +1126,7 @@ Returns the value of attribute filter
|
|
1086
1126
|
|
1087
1127
|
--
|
1088
1128
|
|
1089
|
-
##### [filter=](https://github.com/appium/ruby_lib/blob/
|
1129
|
+
##### [filter=](https://github.com/appium/ruby_lib/blob/d2a48f235b29f5150524d2894b38df79d9cc4f52/lib/appium_lib/common/helper.rb#L190)
|
1090
1130
|
|
1091
1131
|
> def filter=(value)
|
1092
1132
|
|
@@ -1094,7 +1134,7 @@ convert to string to support symbols
|
|
1094
1134
|
|
1095
1135
|
--
|
1096
1136
|
|
1097
|
-
##### [initialize](https://github.com/appium/ruby_lib/blob/
|
1137
|
+
##### [initialize](https://github.com/appium/ruby_lib/blob/d2a48f235b29f5150524d2894b38df79d9cc4f52/lib/appium_lib/common/helper.rb#L196)
|
1098
1138
|
|
1099
1139
|
> def initialize
|
1100
1140
|
|
@@ -1106,7 +1146,7 @@ __Returns:__
|
|
1106
1146
|
|
1107
1147
|
--
|
1108
1148
|
|
1109
|
-
##### [reset](https://github.com/appium/ruby_lib/blob/
|
1149
|
+
##### [reset](https://github.com/appium/ruby_lib/blob/d2a48f235b29f5150524d2894b38df79d9cc4f52/lib/appium_lib/common/helper.rb#L201)
|
1110
1150
|
|
1111
1151
|
> def reset
|
1112
1152
|
|
@@ -1114,7 +1154,7 @@ __Returns:__
|
|
1114
1154
|
|
1115
1155
|
--
|
1116
1156
|
|
1117
|
-
##### [result](https://github.com/appium/ruby_lib/blob/
|
1157
|
+
##### [result](https://github.com/appium/ruby_lib/blob/d2a48f235b29f5150524d2894b38df79d9cc4f52/lib/appium_lib/common/helper.rb#L207)
|
1118
1158
|
|
1119
1159
|
> def result
|
1120
1160
|
|
@@ -1122,7 +1162,7 @@ __Returns:__
|
|
1122
1162
|
|
1123
1163
|
--
|
1124
1164
|
|
1125
|
-
##### [start_element](https://github.com/appium/ruby_lib/blob/
|
1165
|
+
##### [start_element](https://github.com/appium/ruby_lib/blob/d2a48f235b29f5150524d2894b38df79d9cc4f52/lib/appium_lib/common/helper.rb#L223)
|
1126
1166
|
|
1127
1167
|
> def start_element(name, attrs = [])
|
1128
1168
|
|
@@ -1130,7 +1170,7 @@ __Returns:__
|
|
1130
1170
|
|
1131
1171
|
--
|
1132
1172
|
|
1133
|
-
##### [end_element](https://github.com/appium/ruby_lib/blob/
|
1173
|
+
##### [end_element](https://github.com/appium/ruby_lib/blob/d2a48f235b29f5150524d2894b38df79d9cc4f52/lib/appium_lib/common/helper.rb#L232)
|
1134
1174
|
|
1135
1175
|
> def end_element(name)
|
1136
1176
|
|
@@ -1138,7 +1178,7 @@ __Returns:__
|
|
1138
1178
|
|
1139
1179
|
--
|
1140
1180
|
|
1141
|
-
##### [characters](https://github.com/appium/ruby_lib/blob/
|
1181
|
+
##### [characters](https://github.com/appium/ruby_lib/blob/d2a48f235b29f5150524d2894b38df79d9cc4f52/lib/appium_lib/common/helper.rb#L238)
|
1142
1182
|
|
1143
1183
|
> def characters(chars)
|
1144
1184
|
|
@@ -1146,7 +1186,7 @@ __Returns:__
|
|
1146
1186
|
|
1147
1187
|
--
|
1148
1188
|
|
1149
|
-
##### [DEFAULT_HEADERS](https://github.com/appium/ruby_lib/blob/
|
1189
|
+
##### [DEFAULT_HEADERS](https://github.com/appium/ruby_lib/blob/d2a48f235b29f5150524d2894b38df79d9cc4f52/lib/appium_lib/common/http_client.rb#L8)
|
1150
1190
|
|
1151
1191
|
> DEFAULT_HEADERS = { 'Accept' => CONTENT_TYPE, 'User-Agent' => "appium/ruby_lib/#{::Appium::VERSION}" }.freeze
|
1152
1192
|
|
@@ -1154,7 +1194,7 @@ Default HTTP client inherit Appium::Core::Base::Http::Default, but has different
|
|
1154
1194
|
|
1155
1195
|
--
|
1156
1196
|
|
1157
|
-
##### [pinch](https://github.com/appium/ruby_lib/blob/
|
1197
|
+
##### [pinch](https://github.com/appium/ruby_lib/blob/d2a48f235b29f5150524d2894b38df79d9cc4f52/lib/appium_lib/common/multi_touch.rb#L51)
|
1158
1198
|
|
1159
1199
|
> def pinch(percentage = 25, auto_perform = true, driver = $driver)
|
1160
1200
|
|
@@ -1174,7 +1214,7 @@ __Parameters:__
|
|
1174
1214
|
|
1175
1215
|
--
|
1176
1216
|
|
1177
|
-
##### [zoom](https://github.com/appium/ruby_lib/blob/
|
1217
|
+
##### [zoom](https://github.com/appium/ruby_lib/blob/d2a48f235b29f5150524d2894b38df79d9cc4f52/lib/appium_lib/common/multi_touch.rb#L95)
|
1178
1218
|
|
1179
1219
|
> def zoom(percentage = 200, auto_perform = true, driver = $driver)
|
1180
1220
|
|
@@ -1194,7 +1234,7 @@ __Parameters:__
|
|
1194
1234
|
|
1195
1235
|
--
|
1196
1236
|
|
1197
|
-
##### [initialize](https://github.com/appium/ruby_lib/blob/
|
1237
|
+
##### [initialize](https://github.com/appium/ruby_lib/blob/d2a48f235b29f5150524d2894b38df79d9cc4f52/lib/appium_lib/common/multi_touch.rb#L216)
|
1198
1238
|
|
1199
1239
|
> def initialize(driver = $driver)
|
1200
1240
|
|
@@ -1206,7 +1246,7 @@ __Returns:__
|
|
1206
1246
|
|
1207
1247
|
--
|
1208
1248
|
|
1209
|
-
##### [COMPLEX_ACTIONS](https://github.com/appium/ruby_lib/blob/
|
1249
|
+
##### [COMPLEX_ACTIONS](https://github.com/appium/ruby_lib/blob/d2a48f235b29f5150524d2894b38df79d9cc4f52/lib/appium_lib/common/touch_actions.rb#L33)
|
1210
1250
|
|
1211
1251
|
> COMPLEX_ACTIONS = ::Appium::Core::TouchAction::COMPLEX_ACTIONS
|
1212
1252
|
|
@@ -1214,7 +1254,7 @@ __Returns:__
|
|
1214
1254
|
|
1215
1255
|
--
|
1216
1256
|
|
1217
|
-
##### [initialize](https://github.com/appium/ruby_lib/blob/
|
1257
|
+
##### [initialize](https://github.com/appium/ruby_lib/blob/d2a48f235b29f5150524d2894b38df79d9cc4f52/lib/appium_lib/common/touch_actions.rb#L47)
|
1218
1258
|
|
1219
1259
|
> def initialize(driver = $driver)
|
1220
1260
|
|
@@ -1226,7 +1266,7 @@ __Returns:__
|
|
1226
1266
|
|
1227
1267
|
--
|
1228
1268
|
|
1229
|
-
##### [swipe](https://github.com/appium/ruby_lib/blob/
|
1269
|
+
##### [swipe](https://github.com/appium/ruby_lib/blob/d2a48f235b29f5150524d2894b38df79d9cc4f52/lib/appium_lib/common/touch_actions.rb#L51)
|
1230
1270
|
|
1231
1271
|
> def swipe(opts, ele = nil)
|
1232
1272
|
|
@@ -1234,7 +1274,7 @@ __Returns:__
|
|
1234
1274
|
|
1235
1275
|
--
|
1236
1276
|
|
1237
|
-
##### [for](https://github.com/appium/ruby_lib/blob/
|
1277
|
+
##### [for](https://github.com/appium/ruby_lib/blob/d2a48f235b29f5150524d2894b38df79d9cc4f52/lib/appium_lib/ios/ios.rb#L15) ios
|
1238
1278
|
|
1239
1279
|
> def self.for(target)
|
1240
1280
|
|
@@ -1242,7 +1282,7 @@ __Returns:__
|
|
1242
1282
|
|
1243
1283
|
--
|
1244
1284
|
|
1245
|
-
##### [UIAStaticText](https://github.com/appium/ruby_lib/blob/
|
1285
|
+
##### [UIAStaticText](https://github.com/appium/ruby_lib/blob/d2a48f235b29f5150524d2894b38df79d9cc4f52/lib/appium_lib/ios/element/text.rb#L4) ios
|
1246
1286
|
|
1247
1287
|
> UIAStaticText = 'UIAStaticText'.freeze
|
1248
1288
|
|
@@ -1250,7 +1290,7 @@ __Returns:__
|
|
1250
1290
|
|
1251
1291
|
--
|
1252
1292
|
|
1253
|
-
##### [XCUIElementTypeStaticText](https://github.com/appium/ruby_lib/blob/
|
1293
|
+
##### [XCUIElementTypeStaticText](https://github.com/appium/ruby_lib/blob/d2a48f235b29f5150524d2894b38df79d9cc4f52/lib/appium_lib/ios/element/text.rb#L5) ios
|
1254
1294
|
|
1255
1295
|
> XCUIElementTypeStaticText = 'XCUIElementTypeStaticText'.freeze
|
1256
1296
|
|
@@ -1258,7 +1298,7 @@ __Returns:__
|
|
1258
1298
|
|
1259
1299
|
--
|
1260
1300
|
|
1261
|
-
##### [static_text_class](https://github.com/appium/ruby_lib/blob/
|
1301
|
+
##### [static_text_class](https://github.com/appium/ruby_lib/blob/d2a48f235b29f5150524d2894b38df79d9cc4f52/lib/appium_lib/ios/element/text.rb#L8) ios
|
1262
1302
|
|
1263
1303
|
> def static_text_class
|
1264
1304
|
|
@@ -1270,7 +1310,7 @@ __Returns:__
|
|
1270
1310
|
|
1271
1311
|
--
|
1272
1312
|
|
1273
|
-
##### [text](https://github.com/appium/ruby_lib/blob/
|
1313
|
+
##### [text](https://github.com/appium/ruby_lib/blob/d2a48f235b29f5150524d2894b38df79d9cc4f52/lib/appium_lib/ios/element/text.rb#L16) ios
|
1274
1314
|
|
1275
1315
|
> def text(value)
|
1276
1316
|
|
@@ -1287,7 +1327,7 @@ __Returns:__
|
|
1287
1327
|
|
1288
1328
|
--
|
1289
1329
|
|
1290
|
-
##### [texts](https://github.com/appium/ruby_lib/blob/
|
1330
|
+
##### [texts](https://github.com/appium/ruby_lib/blob/d2a48f235b29f5150524d2894b38df79d9cc4f52/lib/appium_lib/ios/element/text.rb#L25) ios
|
1291
1331
|
|
1292
1332
|
> def texts(value = false)
|
1293
1333
|
|
@@ -1304,7 +1344,7 @@ __Returns:__
|
|
1304
1344
|
|
1305
1345
|
--
|
1306
1346
|
|
1307
|
-
##### [first_text](https://github.com/appium/ruby_lib/blob/
|
1347
|
+
##### [first_text](https://github.com/appium/ruby_lib/blob/d2a48f235b29f5150524d2894b38df79d9cc4f52/lib/appium_lib/ios/element/text.rb#L32) ios
|
1308
1348
|
|
1309
1349
|
> def first_text
|
1310
1350
|
|
@@ -1316,7 +1356,7 @@ __Returns:__
|
|
1316
1356
|
|
1317
1357
|
--
|
1318
1358
|
|
1319
|
-
##### [last_text](https://github.com/appium/ruby_lib/blob/
|
1359
|
+
##### [last_text](https://github.com/appium/ruby_lib/blob/d2a48f235b29f5150524d2894b38df79d9cc4f52/lib/appium_lib/ios/element/text.rb#L38) ios
|
1320
1360
|
|
1321
1361
|
> def last_text
|
1322
1362
|
|
@@ -1328,7 +1368,7 @@ __Returns:__
|
|
1328
1368
|
|
1329
1369
|
--
|
1330
1370
|
|
1331
|
-
##### [text_exact](https://github.com/appium/ruby_lib/blob/
|
1371
|
+
##### [text_exact](https://github.com/appium/ruby_lib/blob/d2a48f235b29f5150524d2894b38df79d9cc4f52/lib/appium_lib/ios/element/text.rb#L45) ios
|
1332
1372
|
|
1333
1373
|
> def text_exact(value)
|
1334
1374
|
|
@@ -1344,7 +1384,7 @@ __Returns:__
|
|
1344
1384
|
|
1345
1385
|
--
|
1346
1386
|
|
1347
|
-
##### [texts_exact](https://github.com/appium/ruby_lib/blob/
|
1387
|
+
##### [texts_exact](https://github.com/appium/ruby_lib/blob/d2a48f235b29f5150524d2894b38df79d9cc4f52/lib/appium_lib/ios/element/text.rb#L52) ios
|
1348
1388
|
|
1349
1389
|
> def texts_exact(value)
|
1350
1390
|
|
@@ -1360,7 +1400,7 @@ __Returns:__
|
|
1360
1400
|
|
1361
1401
|
--
|
1362
1402
|
|
1363
|
-
##### [filter](https://github.com/appium/ruby_lib/blob/
|
1403
|
+
##### [filter](https://github.com/appium/ruby_lib/blob/d2a48f235b29f5150524d2894b38df79d9cc4f52/lib/appium_lib/ios/common/helper.rb#L5) ios
|
1364
1404
|
|
1365
1405
|
> def filter
|
1366
1406
|
|
@@ -1368,7 +1408,7 @@ Returns the value of attribute filter
|
|
1368
1408
|
|
1369
1409
|
--
|
1370
1410
|
|
1371
|
-
##### [filter=](https://github.com/appium/ruby_lib/blob/
|
1411
|
+
##### [filter=](https://github.com/appium/ruby_lib/blob/d2a48f235b29f5150524d2894b38df79d9cc4f52/lib/appium_lib/ios/common/helper.rb#L5) ios
|
1372
1412
|
|
1373
1413
|
> def filter=(value)
|
1374
1414
|
|
@@ -1380,7 +1420,7 @@ __Parameters:__
|
|
1380
1420
|
|
1381
1421
|
--
|
1382
1422
|
|
1383
|
-
##### [start_element](https://github.com/appium/ruby_lib/blob/
|
1423
|
+
##### [start_element](https://github.com/appium/ruby_lib/blob/d2a48f235b29f5150524d2894b38df79d9cc4f52/lib/appium_lib/ios/common/helper.rb#L7) ios
|
1384
1424
|
|
1385
1425
|
> def start_element(type, attrs = [])
|
1386
1426
|
|
@@ -1388,7 +1428,7 @@ __Parameters:__
|
|
1388
1428
|
|
1389
1429
|
--
|
1390
1430
|
|
1391
|
-
##### [ios_password](https://github.com/appium/ruby_lib/blob/
|
1431
|
+
##### [ios_password](https://github.com/appium/ruby_lib/blob/d2a48f235b29f5150524d2894b38df79d9cc4f52/lib/appium_lib/ios/common/helper.rb#L44) ios
|
1392
1432
|
|
1393
1433
|
> def ios_password(length = 1)
|
1394
1434
|
|
@@ -1406,7 +1446,7 @@ __Returns:__
|
|
1406
1446
|
|
1407
1447
|
--
|
1408
1448
|
|
1409
|
-
##### [page](https://github.com/appium/ruby_lib/blob/
|
1449
|
+
##### [page](https://github.com/appium/ruby_lib/blob/d2a48f235b29f5150524d2894b38df79d9cc4f52/lib/appium_lib/ios/common/helper.rb#L60) ios
|
1410
1450
|
|
1411
1451
|
> def page(opts = {})
|
1412
1452
|
|
@@ -1424,7 +1464,7 @@ __Returns:__
|
|
1424
1464
|
|
1425
1465
|
--
|
1426
1466
|
|
1427
|
-
##### [id](https://github.com/appium/ruby_lib/blob/
|
1467
|
+
##### [id](https://github.com/appium/ruby_lib/blob/d2a48f235b29f5150524d2894b38df79d9cc4f52/lib/appium_lib/ios/common/helper.rb#L85) ios
|
1428
1468
|
|
1429
1469
|
> def id(id)
|
1430
1470
|
|
@@ -1440,7 +1480,7 @@ __Returns:__
|
|
1440
1480
|
|
1441
1481
|
--
|
1442
1482
|
|
1443
|
-
##### [ele_index](https://github.com/appium/ruby_lib/blob/
|
1483
|
+
##### [ele_index](https://github.com/appium/ruby_lib/blob/d2a48f235b29f5150524d2894b38df79d9cc4f52/lib/appium_lib/ios/common/helper.rb#L93) ios
|
1444
1484
|
|
1445
1485
|
> def ele_index(class_name, index)
|
1446
1486
|
|
@@ -1458,7 +1498,7 @@ __Returns:__
|
|
1458
1498
|
|
1459
1499
|
--
|
1460
1500
|
|
1461
|
-
##### [find_ele_by_attr](https://github.com/appium/ruby_lib/blob/
|
1501
|
+
##### [find_ele_by_attr](https://github.com/appium/ruby_lib/blob/d2a48f235b29f5150524d2894b38df79d9cc4f52/lib/appium_lib/ios/common/helper.rb#L121) ios
|
1462
1502
|
|
1463
1503
|
> def find_ele_by_attr(class_name, attr, value)
|
1464
1504
|
|
@@ -1480,7 +1520,7 @@ __Returns:__
|
|
1480
1520
|
|
1481
1521
|
--
|
1482
1522
|
|
1483
|
-
##### [find_eles_by_attr](https://github.com/appium/ruby_lib/blob/
|
1523
|
+
##### [find_eles_by_attr](https://github.com/appium/ruby_lib/blob/d2a48f235b29f5150524d2894b38df79d9cc4f52/lib/appium_lib/ios/common/helper.rb#L132) ios
|
1484
1524
|
|
1485
1525
|
> def find_eles_by_attr(class_name, attr, value)
|
1486
1526
|
|
@@ -1502,7 +1542,7 @@ __Returns:__
|
|
1502
1542
|
|
1503
1543
|
--
|
1504
1544
|
|
1505
|
-
##### [find_ele_by_predicate](https://github.com/appium/ruby_lib/blob/
|
1545
|
+
##### [find_ele_by_predicate](https://github.com/appium/ruby_lib/blob/d2a48f235b29f5150524d2894b38df79d9cc4f52/lib/appium_lib/ios/common/helper.rb#L145) ios
|
1506
1546
|
|
1507
1547
|
> def find_ele_by_predicate(class_name: '*', value:)
|
1508
1548
|
|
@@ -1519,7 +1559,7 @@ __Returns:__
|
|
1519
1559
|
|
1520
1560
|
--
|
1521
1561
|
|
1522
|
-
##### [find_eles_by_predicate](https://github.com/appium/ruby_lib/blob/
|
1562
|
+
##### [find_eles_by_predicate](https://github.com/appium/ruby_lib/blob/d2a48f235b29f5150524d2894b38df79d9cc4f52/lib/appium_lib/ios/common/helper.rb#L156) ios
|
1523
1563
|
|
1524
1564
|
> def find_eles_by_predicate(class_name: '*', value:)
|
1525
1565
|
|
@@ -1538,7 +1578,7 @@ __Returns:__
|
|
1538
1578
|
|
1539
1579
|
--
|
1540
1580
|
|
1541
|
-
##### [find_ele_by_attr_include](https://github.com/appium/ruby_lib/blob/
|
1581
|
+
##### [find_ele_by_attr_include](https://github.com/appium/ruby_lib/blob/d2a48f235b29f5150524d2894b38df79d9cc4f52/lib/appium_lib/ios/common/helper.rb#L172) ios
|
1542
1582
|
|
1543
1583
|
> def find_ele_by_attr_include(class_name, attr, value)
|
1544
1584
|
|
@@ -1559,7 +1599,7 @@ __Returns:__
|
|
1559
1599
|
|
1560
1600
|
--
|
1561
1601
|
|
1562
|
-
##### [find_eles_by_attr_include](https://github.com/appium/ruby_lib/blob/
|
1602
|
+
##### [find_eles_by_attr_include](https://github.com/appium/ruby_lib/blob/d2a48f235b29f5150524d2894b38df79d9cc4f52/lib/appium_lib/ios/common/helper.rb#L182) ios
|
1563
1603
|
|
1564
1604
|
> def find_eles_by_attr_include(class_name, attr, value)
|
1565
1605
|
|
@@ -1580,7 +1620,7 @@ __Returns:__
|
|
1580
1620
|
|
1581
1621
|
--
|
1582
1622
|
|
1583
|
-
##### [find_ele_by_predicate_include](https://github.com/appium/ruby_lib/blob/
|
1623
|
+
##### [find_ele_by_predicate_include](https://github.com/appium/ruby_lib/blob/d2a48f235b29f5150524d2894b38df79d9cc4f52/lib/appium_lib/ios/common/helper.rb#L190) ios
|
1584
1624
|
|
1585
1625
|
> def find_ele_by_predicate_include(class_name: '*', value:)
|
1586
1626
|
|
@@ -1597,7 +1637,7 @@ __Returns:__
|
|
1597
1637
|
|
1598
1638
|
--
|
1599
1639
|
|
1600
|
-
##### [find_eles_by_predicate_include](https://github.com/appium/ruby_lib/blob/
|
1640
|
+
##### [find_eles_by_predicate_include](https://github.com/appium/ruby_lib/blob/d2a48f235b29f5150524d2894b38df79d9cc4f52/lib/appium_lib/ios/common/helper.rb#L201) ios
|
1601
1641
|
|
1602
1642
|
> def find_eles_by_predicate_include(class_name: '*', value:)
|
1603
1643
|
|
@@ -1616,7 +1656,7 @@ __Returns:__
|
|
1616
1656
|
|
1617
1657
|
--
|
1618
1658
|
|
1619
|
-
##### [first_ele](https://github.com/appium/ruby_lib/blob/
|
1659
|
+
##### [first_ele](https://github.com/appium/ruby_lib/blob/d2a48f235b29f5150524d2894b38df79d9cc4f52/lib/appium_lib/ios/common/helper.rb#L214) ios
|
1620
1660
|
|
1621
1661
|
> def first_ele(class_name)
|
1622
1662
|
|
@@ -1632,7 +1672,7 @@ __Returns:__
|
|
1632
1672
|
|
1633
1673
|
--
|
1634
1674
|
|
1635
|
-
##### [last_ele](https://github.com/appium/ruby_lib/blob/
|
1675
|
+
##### [last_ele](https://github.com/appium/ruby_lib/blob/d2a48f235b29f5150524d2894b38df79d9cc4f52/lib/appium_lib/ios/common/helper.rb#L221) ios
|
1636
1676
|
|
1637
1677
|
> def last_ele(class_name)
|
1638
1678
|
|
@@ -1648,7 +1688,7 @@ __Returns:__
|
|
1648
1688
|
|
1649
1689
|
--
|
1650
1690
|
|
1651
|
-
##### [tag](https://github.com/appium/ruby_lib/blob/
|
1691
|
+
##### [tag](https://github.com/appium/ruby_lib/blob/d2a48f235b29f5150524d2894b38df79d9cc4f52/lib/appium_lib/ios/common/helper.rb#L229) ios
|
1652
1692
|
|
1653
1693
|
> def tag(class_name)
|
1654
1694
|
|
@@ -1664,7 +1704,7 @@ __Returns:__
|
|
1664
1704
|
|
1665
1705
|
--
|
1666
1706
|
|
1667
|
-
##### [tags](https://github.com/appium/ruby_lib/blob/
|
1707
|
+
##### [tags](https://github.com/appium/ruby_lib/blob/d2a48f235b29f5150524d2894b38df79d9cc4f52/lib/appium_lib/ios/common/helper.rb#L237) ios
|
1668
1708
|
|
1669
1709
|
> def tags(class_name)
|
1670
1710
|
|
@@ -1680,7 +1720,7 @@ __Returns:__
|
|
1680
1720
|
|
1681
1721
|
--
|
1682
1722
|
|
1683
|
-
##### [tags_include](https://github.com/appium/ruby_lib/blob/
|
1723
|
+
##### [tags_include](https://github.com/appium/ruby_lib/blob/d2a48f235b29f5150524d2894b38df79d9cc4f52/lib/appium_lib/ios/common/helper.rb#L248) ios
|
1684
1724
|
|
1685
1725
|
> def tags_include(class_names:, value: nil)
|
1686
1726
|
|
@@ -1700,7 +1740,7 @@ __Returns:__
|
|
1700
1740
|
|
1701
1741
|
--
|
1702
1742
|
|
1703
|
-
##### [tags_exact](https://github.com/appium/ruby_lib/blob/
|
1743
|
+
##### [tags_exact](https://github.com/appium/ruby_lib/blob/d2a48f235b29f5150524d2894b38df79d9cc4f52/lib/appium_lib/ios/common/helper.rb#L263) ios
|
1704
1744
|
|
1705
1745
|
> def tags_exact(class_names:, value: nil)
|
1706
1746
|
|
@@ -1720,7 +1760,7 @@ __Returns:__
|
|
1720
1760
|
|
1721
1761
|
--
|
1722
1762
|
|
1723
|
-
##### [ele_by_json_visible_contains](https://github.com/appium/ruby_lib/blob/
|
1763
|
+
##### [ele_by_json_visible_contains](https://github.com/appium/ruby_lib/blob/d2a48f235b29f5150524d2894b38df79d9cc4f52/lib/appium_lib/ios/common/helper.rb#L300) ios
|
1724
1764
|
|
1725
1765
|
> def ele_by_json_visible_contains(element, value)
|
1726
1766
|
|
@@ -1739,7 +1779,7 @@ __Returns:__
|
|
1739
1779
|
|
1740
1780
|
--
|
1741
1781
|
|
1742
|
-
##### [eles_by_json_visible_contains](https://github.com/appium/ruby_lib/blob/
|
1782
|
+
##### [eles_by_json_visible_contains](https://github.com/appium/ruby_lib/blob/d2a48f235b29f5150524d2894b38df79d9cc4f52/lib/appium_lib/ios/common/helper.rb#L309) ios
|
1743
1783
|
|
1744
1784
|
> def eles_by_json_visible_contains(element, value)
|
1745
1785
|
|
@@ -1758,7 +1798,7 @@ __Returns:__
|
|
1758
1798
|
|
1759
1799
|
--
|
1760
1800
|
|
1761
|
-
##### [ele_by_json_visible_exact](https://github.com/appium/ruby_lib/blob/
|
1801
|
+
##### [ele_by_json_visible_exact](https://github.com/appium/ruby_lib/blob/d2a48f235b29f5150524d2894b38df79d9cc4f52/lib/appium_lib/ios/common/helper.rb#L339) ios
|
1762
1802
|
|
1763
1803
|
> def ele_by_json_visible_exact(element, value)
|
1764
1804
|
|
@@ -1777,7 +1817,7 @@ __Returns:__
|
|
1777
1817
|
|
1778
1818
|
--
|
1779
1819
|
|
1780
|
-
##### [eles_by_json_visible_exact](https://github.com/appium/ruby_lib/blob/
|
1820
|
+
##### [eles_by_json_visible_exact](https://github.com/appium/ruby_lib/blob/d2a48f235b29f5150524d2894b38df79d9cc4f52/lib/appium_lib/ios/common/helper.rb#L348) ios
|
1781
1821
|
|
1782
1822
|
> def eles_by_json_visible_exact(element, value)
|
1783
1823
|
|
@@ -1796,7 +1836,7 @@ __Returns:__
|
|
1796
1836
|
|
1797
1837
|
--
|
1798
1838
|
|
1799
|
-
##### [_all_pred](https://github.com/appium/ruby_lib/blob/
|
1839
|
+
##### [_all_pred](https://github.com/appium/ruby_lib/blob/d2a48f235b29f5150524d2894b38df79d9cc4f52/lib/appium_lib/ios/common/helper.rb#L357) ios
|
1800
1840
|
|
1801
1841
|
> def _all_pred(opts)
|
1802
1842
|
|
@@ -1806,7 +1846,7 @@ visible - if true, only visible elements are returned. default true
|
|
1806
1846
|
|
1807
1847
|
--
|
1808
1848
|
|
1809
|
-
##### [ele_with_pred](https://github.com/appium/ruby_lib/blob/
|
1849
|
+
##### [ele_with_pred](https://github.com/appium/ruby_lib/blob/d2a48f235b29f5150524d2894b38df79d9cc4f52/lib/appium_lib/ios/common/helper.rb#L370) ios
|
1810
1850
|
|
1811
1851
|
> def ele_with_pred(opts)
|
1812
1852
|
|
@@ -1822,7 +1862,7 @@ __Returns:__
|
|
1822
1862
|
|
1823
1863
|
--
|
1824
1864
|
|
1825
|
-
##### [eles_with_pred](https://github.com/appium/ruby_lib/blob/
|
1865
|
+
##### [eles_with_pred](https://github.com/appium/ruby_lib/blob/d2a48f235b29f5150524d2894b38df79d9cc4f52/lib/appium_lib/ios/common/helper.rb#L381) ios
|
1826
1866
|
|
1827
1867
|
> def eles_with_pred(opts)
|
1828
1868
|
|
@@ -1838,7 +1878,7 @@ __Returns:__
|
|
1838
1878
|
|
1839
1879
|
--
|
1840
1880
|
|
1841
|
-
##### [_validate_object](https://github.com/appium/ruby_lib/blob/
|
1881
|
+
##### [_validate_object](https://github.com/appium/ruby_lib/blob/d2a48f235b29f5150524d2894b38df79d9cc4f52/lib/appium_lib/ios/common/helper.rb#L385) ios
|
1842
1882
|
|
1843
1883
|
> def _validate_object(*objects)
|
1844
1884
|
|
@@ -1846,7 +1886,7 @@ __Returns:__
|
|
1846
1886
|
|
1847
1887
|
--
|
1848
1888
|
|
1849
|
-
##### [_by_json](https://github.com/appium/ruby_lib/blob/
|
1889
|
+
##### [_by_json](https://github.com/appium/ruby_lib/blob/d2a48f235b29f5150524d2894b38df79d9cc4f52/lib/appium_lib/ios/common/helper.rb#L434) ios
|
1850
1890
|
|
1851
1891
|
> def _by_json(opts)
|
1852
1892
|
|
@@ -1881,7 +1921,7 @@ opts = {
|
|
1881
1921
|
|
1882
1922
|
--
|
1883
1923
|
|
1884
|
-
##### [eles_by_json](https://github.com/appium/ruby_lib/blob/
|
1924
|
+
##### [eles_by_json](https://github.com/appium/ruby_lib/blob/d2a48f235b29f5150524d2894b38df79d9cc4f52/lib/appium_lib/ios/common/helper.rb#L484) ios
|
1885
1925
|
|
1886
1926
|
> def eles_by_json(opts)
|
1887
1927
|
|
@@ -1900,7 +1940,7 @@ eles_by_json({
|
|
1900
1940
|
|
1901
1941
|
--
|
1902
1942
|
|
1903
|
-
##### [ele_by_json](https://github.com/appium/ruby_lib/blob/
|
1943
|
+
##### [ele_by_json](https://github.com/appium/ruby_lib/blob/d2a48f235b29f5150524d2894b38df79d9cc4f52/lib/appium_lib/ios/common/helper.rb#L490) ios
|
1904
1944
|
|
1905
1945
|
> def ele_by_json(opts)
|
1906
1946
|
|
@@ -1908,7 +1948,7 @@ see eles_by_json
|
|
1908
1948
|
|
1909
1949
|
--
|
1910
1950
|
|
1911
|
-
##### [alert_accept](https://github.com/appium/ruby_lib/blob/
|
1951
|
+
##### [alert_accept](https://github.com/appium/ruby_lib/blob/d2a48f235b29f5150524d2894b38df79d9cc4f52/lib/appium_lib/ios/element/alert.rb#L5) ios
|
1912
1952
|
|
1913
1953
|
> def alert_accept
|
1914
1954
|
|
@@ -1920,7 +1960,7 @@ __Returns:__
|
|
1920
1960
|
|
1921
1961
|
--
|
1922
1962
|
|
1923
|
-
##### [alert_dismiss](https://github.com/appium/ruby_lib/blob/
|
1963
|
+
##### [alert_dismiss](https://github.com/appium/ruby_lib/blob/d2a48f235b29f5150524d2894b38df79d9cc4f52/lib/appium_lib/ios/element/alert.rb#L13) ios
|
1924
1964
|
|
1925
1965
|
> def alert_dismiss
|
1926
1966
|
|
@@ -1932,7 +1972,7 @@ __Returns:__
|
|
1932
1972
|
|
1933
1973
|
--
|
1934
1974
|
|
1935
|
-
##### [UIAButton](https://github.com/appium/ruby_lib/blob/
|
1975
|
+
##### [UIAButton](https://github.com/appium/ruby_lib/blob/d2a48f235b29f5150524d2894b38df79d9cc4f52/lib/appium_lib/ios/element/button.rb#L4) ios
|
1936
1976
|
|
1937
1977
|
> UIAButton = 'UIAButton'.freeze
|
1938
1978
|
|
@@ -1940,7 +1980,7 @@ __Returns:__
|
|
1940
1980
|
|
1941
1981
|
--
|
1942
1982
|
|
1943
|
-
##### [XCUIElementTypeButton](https://github.com/appium/ruby_lib/blob/
|
1983
|
+
##### [XCUIElementTypeButton](https://github.com/appium/ruby_lib/blob/d2a48f235b29f5150524d2894b38df79d9cc4f52/lib/appium_lib/ios/element/button.rb#L5) ios
|
1944
1984
|
|
1945
1985
|
> XCUIElementTypeButton = 'XCUIElementTypeButton'.freeze
|
1946
1986
|
|
@@ -1948,7 +1988,7 @@ __Returns:__
|
|
1948
1988
|
|
1949
1989
|
--
|
1950
1990
|
|
1951
|
-
##### [button_class](https://github.com/appium/ruby_lib/blob/
|
1991
|
+
##### [button_class](https://github.com/appium/ruby_lib/blob/d2a48f235b29f5150524d2894b38df79d9cc4f52/lib/appium_lib/ios/element/button.rb#L8) ios
|
1952
1992
|
|
1953
1993
|
> def button_class
|
1954
1994
|
|
@@ -1960,7 +2000,7 @@ __Returns:__
|
|
1960
2000
|
|
1961
2001
|
--
|
1962
2002
|
|
1963
|
-
##### [button](https://github.com/appium/ruby_lib/blob/
|
2003
|
+
##### [button](https://github.com/appium/ruby_lib/blob/d2a48f235b29f5150524d2894b38df79d9cc4f52/lib/appium_lib/ios/element/button.rb#L16) ios
|
1964
2004
|
|
1965
2005
|
> def button(value)
|
1966
2006
|
|
@@ -1977,7 +2017,7 @@ __Returns:__
|
|
1977
2017
|
|
1978
2018
|
--
|
1979
2019
|
|
1980
|
-
##### [buttons](https://github.com/appium/ruby_lib/blob/
|
2020
|
+
##### [buttons](https://github.com/appium/ruby_lib/blob/d2a48f235b29f5150524d2894b38df79d9cc4f52/lib/appium_lib/ios/element/button.rb#L26) ios
|
1981
2021
|
|
1982
2022
|
> def buttons(value = false)
|
1983
2023
|
|
@@ -1994,7 +2034,7 @@ __Returns:__
|
|
1994
2034
|
|
1995
2035
|
--
|
1996
2036
|
|
1997
|
-
##### [first_button](https://github.com/appium/ruby_lib/blob/
|
2037
|
+
##### [first_button](https://github.com/appium/ruby_lib/blob/d2a48f235b29f5150524d2894b38df79d9cc4f52/lib/appium_lib/ios/element/button.rb#L33) ios
|
1998
2038
|
|
1999
2039
|
> def first_button
|
2000
2040
|
|
@@ -2006,7 +2046,7 @@ __Returns:__
|
|
2006
2046
|
|
2007
2047
|
--
|
2008
2048
|
|
2009
|
-
##### [last_button](https://github.com/appium/ruby_lib/blob/
|
2049
|
+
##### [last_button](https://github.com/appium/ruby_lib/blob/d2a48f235b29f5150524d2894b38df79d9cc4f52/lib/appium_lib/ios/element/button.rb#L41) ios
|
2010
2050
|
|
2011
2051
|
> def last_button
|
2012
2052
|
|
@@ -2020,7 +2060,7 @@ __Returns:__
|
|
2020
2060
|
|
2021
2061
|
--
|
2022
2062
|
|
2023
|
-
##### [button_exact](https://github.com/appium/ruby_lib/blob/
|
2063
|
+
##### [button_exact](https://github.com/appium/ruby_lib/blob/d2a48f235b29f5150524d2894b38df79d9cc4f52/lib/appium_lib/ios/element/button.rb#L48) ios
|
2024
2064
|
|
2025
2065
|
> def button_exact(value)
|
2026
2066
|
|
@@ -2036,7 +2076,7 @@ __Returns:__
|
|
2036
2076
|
|
2037
2077
|
--
|
2038
2078
|
|
2039
|
-
##### [buttons_exact](https://github.com/appium/ruby_lib/blob/
|
2079
|
+
##### [buttons_exact](https://github.com/appium/ruby_lib/blob/d2a48f235b29f5150524d2894b38df79d9cc4f52/lib/appium_lib/ios/element/button.rb#L55) ios
|
2040
2080
|
|
2041
2081
|
> def buttons_exact(value)
|
2042
2082
|
|
@@ -2052,7 +2092,7 @@ __Returns:__
|
|
2052
2092
|
|
2053
2093
|
--
|
2054
2094
|
|
2055
|
-
##### [find](https://github.com/appium/ruby_lib/blob/
|
2095
|
+
##### [find](https://github.com/appium/ruby_lib/blob/d2a48f235b29f5150524d2894b38df79d9cc4f52/lib/appium_lib/ios/element/generic.rb#L6) ios
|
2056
2096
|
|
2057
2097
|
> def find(value)
|
2058
2098
|
|
@@ -2068,7 +2108,7 @@ __Returns:__
|
|
2068
2108
|
|
2069
2109
|
--
|
2070
2110
|
|
2071
|
-
##### [finds](https://github.com/appium/ruby_lib/blob/
|
2111
|
+
##### [finds](https://github.com/appium/ruby_lib/blob/d2a48f235b29f5150524d2894b38df79d9cc4f52/lib/appium_lib/ios/element/generic.rb#L13) ios
|
2072
2112
|
|
2073
2113
|
> def finds(value)
|
2074
2114
|
|
@@ -2084,7 +2124,7 @@ __Returns:__
|
|
2084
2124
|
|
2085
2125
|
--
|
2086
2126
|
|
2087
|
-
##### [find_exact](https://github.com/appium/ruby_lib/blob/
|
2127
|
+
##### [find_exact](https://github.com/appium/ruby_lib/blob/d2a48f235b29f5150524d2894b38df79d9cc4f52/lib/appium_lib/ios/element/generic.rb#L20) ios
|
2088
2128
|
|
2089
2129
|
> def find_exact(value)
|
2090
2130
|
|
@@ -2100,7 +2140,7 @@ __Returns:__
|
|
2100
2140
|
|
2101
2141
|
--
|
2102
2142
|
|
2103
|
-
##### [finds_exact](https://github.com/appium/ruby_lib/blob/
|
2143
|
+
##### [finds_exact](https://github.com/appium/ruby_lib/blob/d2a48f235b29f5150524d2894b38df79d9cc4f52/lib/appium_lib/ios/element/generic.rb#L27) ios
|
2104
2144
|
|
2105
2145
|
> def finds_exact(value)
|
2106
2146
|
|
@@ -2116,7 +2156,7 @@ __Returns:__
|
|
2116
2156
|
|
2117
2157
|
--
|
2118
2158
|
|
2119
|
-
##### [raise_error_if_no_element](https://github.com/appium/ruby_lib/blob/
|
2159
|
+
##### [raise_error_if_no_element](https://github.com/appium/ruby_lib/blob/d2a48f235b29f5150524d2894b38df79d9cc4f52/lib/appium_lib/ios/element/generic.rb#L33) ios
|
2120
2160
|
|
2121
2161
|
> def raise_error_if_no_element(element)
|
2122
2162
|
|
@@ -2124,7 +2164,7 @@ __Returns:__
|
|
2124
2164
|
|
2125
2165
|
--
|
2126
2166
|
|
2127
|
-
##### [select_visible_elements](https://github.com/appium/ruby_lib/blob/
|
2167
|
+
##### [select_visible_elements](https://github.com/appium/ruby_lib/blob/d2a48f235b29f5150524d2894b38df79d9cc4f52/lib/appium_lib/ios/element/generic.rb#L40) ios
|
2128
2168
|
|
2129
2169
|
> def select_visible_elements(elements)
|
2130
2170
|
|
@@ -2132,7 +2172,7 @@ Return visible elements.
|
|
2132
2172
|
|
2133
2173
|
--
|
2134
2174
|
|
2135
|
-
##### [for](https://github.com/appium/ruby_lib/blob/
|
2175
|
+
##### [for](https://github.com/appium/ruby_lib/blob/d2a48f235b29f5150524d2894b38df79d9cc4f52/lib/appium_lib/ios/xcuitest/bridge.rb#L7) ios
|
2136
2176
|
|
2137
2177
|
> def self.for(target)
|
2138
2178
|
|
@@ -2140,7 +2180,7 @@ Return visible elements.
|
|
2140
2180
|
|
2141
2181
|
--
|
2142
2182
|
|
2143
|
-
##### [last_ele](https://github.com/appium/ruby_lib/blob/
|
2183
|
+
##### [last_ele](https://github.com/appium/ruby_lib/blob/d2a48f235b29f5150524d2894b38df79d9cc4f52/lib/appium_lib/ios/xcuitest/helper.rb#L26) ios
|
2144
2184
|
|
2145
2185
|
> def last_ele(class_name)
|
2146
2186
|
|
@@ -2156,7 +2196,7 @@ __Returns:__
|
|
2156
2196
|
|
2157
2197
|
--
|
2158
2198
|
|
2159
|
-
##### [tag](https://github.com/appium/ruby_lib/blob/
|
2199
|
+
##### [tag](https://github.com/appium/ruby_lib/blob/d2a48f235b29f5150524d2894b38df79d9cc4f52/lib/appium_lib/ios/xcuitest/helper.rb#L36) ios
|
2160
2200
|
|
2161
2201
|
> def tag(class_name)
|
2162
2202
|
|
@@ -2172,7 +2212,7 @@ __Returns:__
|
|
2172
2212
|
|
2173
2213
|
--
|
2174
2214
|
|
2175
|
-
##### [tags](https://github.com/appium/ruby_lib/blob/
|
2215
|
+
##### [tags](https://github.com/appium/ruby_lib/blob/d2a48f235b29f5150524d2894b38df79d9cc4f52/lib/appium_lib/ios/xcuitest/helper.rb#L44) ios
|
2176
2216
|
|
2177
2217
|
> def tags(class_name)
|
2178
2218
|
|
@@ -2188,7 +2228,7 @@ __Returns:__
|
|
2188
2228
|
|
2189
2229
|
--
|
2190
2230
|
|
2191
|
-
##### [tags_include](https://github.com/appium/ruby_lib/blob/
|
2231
|
+
##### [tags_include](https://github.com/appium/ruby_lib/blob/d2a48f235b29f5150524d2894b38df79d9cc4f52/lib/appium_lib/ios/xcuitest/helper.rb#L56) ios
|
2192
2232
|
|
2193
2233
|
> def tags_include(class_names:, value: nil)
|
2194
2234
|
|
@@ -2208,7 +2248,7 @@ __Returns:__
|
|
2208
2248
|
|
2209
2249
|
--
|
2210
2250
|
|
2211
|
-
##### [tags_exact](https://github.com/appium/ruby_lib/blob/
|
2251
|
+
##### [tags_exact](https://github.com/appium/ruby_lib/blob/d2a48f235b29f5150524d2894b38df79d9cc4f52/lib/appium_lib/ios/xcuitest/helper.rb#L79) ios
|
2212
2252
|
|
2213
2253
|
> def tags_exact(class_names:, value: nil)
|
2214
2254
|
|
@@ -2228,7 +2268,7 @@ __Returns:__
|
|
2228
2268
|
|
2229
2269
|
--
|
2230
2270
|
|
2231
|
-
##### [UIATextField](https://github.com/appium/ruby_lib/blob/
|
2271
|
+
##### [UIATextField](https://github.com/appium/ruby_lib/blob/d2a48f235b29f5150524d2894b38df79d9cc4f52/lib/appium_lib/ios/element/textfield.rb#L3) ios
|
2232
2272
|
|
2233
2273
|
> UIATextField = 'UIATextField'.freeze
|
2234
2274
|
|
@@ -2236,7 +2276,7 @@ __Returns:__
|
|
2236
2276
|
|
2237
2277
|
--
|
2238
2278
|
|
2239
|
-
##### [UIASecureTextField](https://github.com/appium/ruby_lib/blob/
|
2279
|
+
##### [UIASecureTextField](https://github.com/appium/ruby_lib/blob/d2a48f235b29f5150524d2894b38df79d9cc4f52/lib/appium_lib/ios/element/textfield.rb#L4) ios
|
2240
2280
|
|
2241
2281
|
> UIASecureTextField = 'UIASecureTextField'.freeze
|
2242
2282
|
|
@@ -2244,7 +2284,7 @@ __Returns:__
|
|
2244
2284
|
|
2245
2285
|
--
|
2246
2286
|
|
2247
|
-
##### [XCUIElementTypeTextField](https://github.com/appium/ruby_lib/blob/
|
2287
|
+
##### [XCUIElementTypeTextField](https://github.com/appium/ruby_lib/blob/d2a48f235b29f5150524d2894b38df79d9cc4f52/lib/appium_lib/ios/element/textfield.rb#L6) ios
|
2248
2288
|
|
2249
2289
|
> XCUIElementTypeTextField = 'XCUIElementTypeTextField'.freeze
|
2250
2290
|
|
@@ -2252,7 +2292,7 @@ __Returns:__
|
|
2252
2292
|
|
2253
2293
|
--
|
2254
2294
|
|
2255
|
-
##### [XCUIElementTypeSecureTextField](https://github.com/appium/ruby_lib/blob/
|
2295
|
+
##### [XCUIElementTypeSecureTextField](https://github.com/appium/ruby_lib/blob/d2a48f235b29f5150524d2894b38df79d9cc4f52/lib/appium_lib/ios/element/textfield.rb#L7) ios
|
2256
2296
|
|
2257
2297
|
> XCUIElementTypeSecureTextField = 'XCUIElementTypeSecureTextField'.freeze
|
2258
2298
|
|
@@ -2260,7 +2300,7 @@ __Returns:__
|
|
2260
2300
|
|
2261
2301
|
--
|
2262
2302
|
|
2263
|
-
##### [text_field_class](https://github.com/appium/ruby_lib/blob/
|
2303
|
+
##### [text_field_class](https://github.com/appium/ruby_lib/blob/d2a48f235b29f5150524d2894b38df79d9cc4f52/lib/appium_lib/ios/element/textfield.rb#L10) ios
|
2264
2304
|
|
2265
2305
|
> def text_field_class
|
2266
2306
|
|
@@ -2272,7 +2312,7 @@ __Returns:__
|
|
2272
2312
|
|
2273
2313
|
--
|
2274
2314
|
|
2275
|
-
##### [secure_text_field_class](https://github.com/appium/ruby_lib/blob/
|
2315
|
+
##### [secure_text_field_class](https://github.com/appium/ruby_lib/blob/d2a48f235b29f5150524d2894b38df79d9cc4f52/lib/appium_lib/ios/element/textfield.rb#L15) ios
|
2276
2316
|
|
2277
2317
|
> def secure_text_field_class
|
2278
2318
|
|
@@ -2284,7 +2324,7 @@ __Returns:__
|
|
2284
2324
|
|
2285
2325
|
--
|
2286
2326
|
|
2287
|
-
##### [textfield](https://github.com/appium/ruby_lib/blob/
|
2327
|
+
##### [textfield](https://github.com/appium/ruby_lib/blob/d2a48f235b29f5150524d2894b38df79d9cc4f52/lib/appium_lib/ios/element/textfield.rb#L24) ios
|
2288
2328
|
|
2289
2329
|
> def textfield(value)
|
2290
2330
|
|
@@ -2302,7 +2342,7 @@ __Returns:__
|
|
2302
2342
|
|
2303
2343
|
--
|
2304
2344
|
|
2305
|
-
##### [textfields](https://github.com/appium/ruby_lib/blob/
|
2345
|
+
##### [textfields](https://github.com/appium/ruby_lib/blob/d2a48f235b29f5150524d2894b38df79d9cc4f52/lib/appium_lib/ios/element/textfield.rb#L42) ios
|
2306
2346
|
|
2307
2347
|
> def textfields(value = false)
|
2308
2348
|
|
@@ -2319,7 +2359,7 @@ __Returns:__
|
|
2319
2359
|
|
2320
2360
|
--
|
2321
2361
|
|
2322
|
-
##### [first_textfield](https://github.com/appium/ruby_lib/blob/
|
2362
|
+
##### [first_textfield](https://github.com/appium/ruby_lib/blob/d2a48f235b29f5150524d2894b38df79d9cc4f52/lib/appium_lib/ios/element/textfield.rb#L49) ios
|
2323
2363
|
|
2324
2364
|
> def first_textfield
|
2325
2365
|
|
@@ -2331,7 +2371,7 @@ __Returns:__
|
|
2331
2371
|
|
2332
2372
|
--
|
2333
2373
|
|
2334
|
-
##### [last_textfield](https://github.com/appium/ruby_lib/blob/
|
2374
|
+
##### [last_textfield](https://github.com/appium/ruby_lib/blob/d2a48f235b29f5150524d2894b38df79d9cc4f52/lib/appium_lib/ios/element/textfield.rb#L55) ios
|
2335
2375
|
|
2336
2376
|
> def last_textfield
|
2337
2377
|
|
@@ -2343,7 +2383,7 @@ __Returns:__
|
|
2343
2383
|
|
2344
2384
|
--
|
2345
2385
|
|
2346
|
-
##### [textfield_exact](https://github.com/appium/ruby_lib/blob/
|
2386
|
+
##### [textfield_exact](https://github.com/appium/ruby_lib/blob/d2a48f235b29f5150524d2894b38df79d9cc4f52/lib/appium_lib/ios/element/textfield.rb#L64) ios
|
2347
2387
|
|
2348
2388
|
> def textfield_exact(value)
|
2349
2389
|
|
@@ -2359,7 +2399,7 @@ __Returns:__
|
|
2359
2399
|
|
2360
2400
|
--
|
2361
2401
|
|
2362
|
-
##### [textfields_exact](https://github.com/appium/ruby_lib/blob/
|
2402
|
+
##### [textfields_exact](https://github.com/appium/ruby_lib/blob/d2a48f235b29f5150524d2894b38df79d9cc4f52/lib/appium_lib/ios/element/textfield.rb#L71) ios
|
2363
2403
|
|
2364
2404
|
> def textfields_exact(value)
|
2365
2405
|
|
@@ -2375,7 +2415,7 @@ __Returns:__
|
|
2375
2415
|
|
2376
2416
|
--
|
2377
2417
|
|
2378
|
-
##### [_textfield_visible](https://github.com/appium/ruby_lib/blob/
|
2418
|
+
##### [_textfield_visible](https://github.com/appium/ruby_lib/blob/d2a48f235b29f5150524d2894b38df79d9cc4f52/lib/appium_lib/ios/element/textfield.rb#L78) ios
|
2379
2419
|
|
2380
2420
|
> def _textfield_visible
|
2381
2421
|
|
@@ -2383,7 +2423,7 @@ Appium
|
|
2383
2423
|
|
2384
2424
|
--
|
2385
2425
|
|
2386
|
-
##### [_textfield_exact_string](https://github.com/appium/ruby_lib/blob/
|
2426
|
+
##### [_textfield_exact_string](https://github.com/appium/ruby_lib/blob/d2a48f235b29f5150524d2894b38df79d9cc4f52/lib/appium_lib/ios/element/textfield.rb#L83) ios
|
2387
2427
|
|
2388
2428
|
> def _textfield_exact_string(value)
|
2389
2429
|
|
@@ -2391,7 +2431,7 @@ Appium
|
|
2391
2431
|
|
2392
2432
|
--
|
2393
2433
|
|
2394
|
-
##### [_textfield_contains_string](https://github.com/appium/ruby_lib/blob/
|
2434
|
+
##### [_textfield_contains_string](https://github.com/appium/ruby_lib/blob/d2a48f235b29f5150524d2894b38df79d9cc4f52/lib/appium_lib/ios/element/textfield.rb#L90) ios
|
2395
2435
|
|
2396
2436
|
> def _textfield_contains_string(value)
|
2397
2437
|
|
@@ -2399,7 +2439,7 @@ Appium
|
|
2399
2439
|
|
2400
2440
|
--
|
2401
2441
|
|
2402
|
-
##### [static_text_class](https://github.com/appium/ruby_lib/blob/
|
2442
|
+
##### [static_text_class](https://github.com/appium/ruby_lib/blob/d2a48f235b29f5150524d2894b38df79d9cc4f52/lib/appium_lib/ios/xcuitest/element/text.rb#L9) ios
|
2403
2443
|
|
2404
2444
|
> def static_text_class
|
2405
2445
|
|
@@ -2411,7 +2451,7 @@ __Returns:__
|
|
2411
2451
|
|
2412
2452
|
--
|
2413
2453
|
|
2414
|
-
##### [text](https://github.com/appium/ruby_lib/blob/
|
2454
|
+
##### [text](https://github.com/appium/ruby_lib/blob/d2a48f235b29f5150524d2894b38df79d9cc4f52/lib/appium_lib/ios/xcuitest/element/text.rb#L17) ios
|
2415
2455
|
|
2416
2456
|
> def text(value)
|
2417
2457
|
|
@@ -2428,7 +2468,7 @@ __Returns:__
|
|
2428
2468
|
|
2429
2469
|
--
|
2430
2470
|
|
2431
|
-
##### [texts](https://github.com/appium/ruby_lib/blob/
|
2471
|
+
##### [texts](https://github.com/appium/ruby_lib/blob/d2a48f235b29f5150524d2894b38df79d9cc4f52/lib/appium_lib/ios/xcuitest/element/text.rb#L26) ios
|
2432
2472
|
|
2433
2473
|
> def texts(value = false)
|
2434
2474
|
|
@@ -2445,7 +2485,7 @@ __Returns:__
|
|
2445
2485
|
|
2446
2486
|
--
|
2447
2487
|
|
2448
|
-
##### [first_text](https://github.com/appium/ruby_lib/blob/
|
2488
|
+
##### [first_text](https://github.com/appium/ruby_lib/blob/d2a48f235b29f5150524d2894b38df79d9cc4f52/lib/appium_lib/ios/xcuitest/element/text.rb#L34) ios
|
2449
2489
|
|
2450
2490
|
> def first_text
|
2451
2491
|
|
@@ -2457,7 +2497,7 @@ __Returns:__
|
|
2457
2497
|
|
2458
2498
|
--
|
2459
2499
|
|
2460
|
-
##### [last_text](https://github.com/appium/ruby_lib/blob/
|
2500
|
+
##### [last_text](https://github.com/appium/ruby_lib/blob/d2a48f235b29f5150524d2894b38df79d9cc4f52/lib/appium_lib/ios/xcuitest/element/text.rb#L40) ios
|
2461
2501
|
|
2462
2502
|
> def last_text
|
2463
2503
|
|
@@ -2469,7 +2509,7 @@ __Returns:__
|
|
2469
2509
|
|
2470
2510
|
--
|
2471
2511
|
|
2472
|
-
##### [text_exact](https://github.com/appium/ruby_lib/blob/
|
2512
|
+
##### [text_exact](https://github.com/appium/ruby_lib/blob/d2a48f235b29f5150524d2894b38df79d9cc4f52/lib/appium_lib/ios/xcuitest/element/text.rb#L47) ios
|
2473
2513
|
|
2474
2514
|
> def text_exact(value)
|
2475
2515
|
|
@@ -2485,7 +2525,7 @@ __Returns:__
|
|
2485
2525
|
|
2486
2526
|
--
|
2487
2527
|
|
2488
|
-
##### [texts_exact](https://github.com/appium/ruby_lib/blob/
|
2528
|
+
##### [texts_exact](https://github.com/appium/ruby_lib/blob/d2a48f235b29f5150524d2894b38df79d9cc4f52/lib/appium_lib/ios/xcuitest/element/text.rb#L54) ios
|
2489
2529
|
|
2490
2530
|
> def texts_exact(value)
|
2491
2531
|
|
@@ -2501,7 +2541,7 @@ __Returns:__
|
|
2501
2541
|
|
2502
2542
|
--
|
2503
2543
|
|
2504
|
-
##### [xcuitest_source](https://github.com/appium/ruby_lib/blob/
|
2544
|
+
##### [xcuitest_source](https://github.com/appium/ruby_lib/blob/d2a48f235b29f5150524d2894b38df79d9cc4f52/lib/appium_lib/ios/xcuitest/command/source.rb#L12) ios
|
2505
2545
|
|
2506
2546
|
> def xcuitest_source(format: :xml)
|
2507
2547
|
|
@@ -2515,7 +2555,7 @@ __Parameters:__
|
|
2515
2555
|
|
2516
2556
|
--
|
2517
2557
|
|
2518
|
-
##### [button_class](https://github.com/appium/ruby_lib/blob/
|
2558
|
+
##### [button_class](https://github.com/appium/ruby_lib/blob/d2a48f235b29f5150524d2894b38df79d9cc4f52/lib/appium_lib/ios/xcuitest/element/button.rb#L9) ios
|
2519
2559
|
|
2520
2560
|
> def button_class
|
2521
2561
|
|
@@ -2527,7 +2567,7 @@ __Returns:__
|
|
2527
2567
|
|
2528
2568
|
--
|
2529
2569
|
|
2530
|
-
##### [button](https://github.com/appium/ruby_lib/blob/
|
2570
|
+
##### [button](https://github.com/appium/ruby_lib/blob/d2a48f235b29f5150524d2894b38df79d9cc4f52/lib/appium_lib/ios/xcuitest/element/button.rb#L17) ios
|
2531
2571
|
|
2532
2572
|
> def button(value)
|
2533
2573
|
|
@@ -2544,7 +2584,7 @@ __Returns:__
|
|
2544
2584
|
|
2545
2585
|
--
|
2546
2586
|
|
2547
|
-
##### [buttons](https://github.com/appium/ruby_lib/blob/
|
2587
|
+
##### [buttons](https://github.com/appium/ruby_lib/blob/d2a48f235b29f5150524d2894b38df79d9cc4f52/lib/appium_lib/ios/xcuitest/element/button.rb#L27) ios
|
2548
2588
|
|
2549
2589
|
> def buttons(value = false)
|
2550
2590
|
|
@@ -2561,7 +2601,7 @@ __Returns:__
|
|
2561
2601
|
|
2562
2602
|
--
|
2563
2603
|
|
2564
|
-
##### [first_button](https://github.com/appium/ruby_lib/blob/
|
2604
|
+
##### [first_button](https://github.com/appium/ruby_lib/blob/d2a48f235b29f5150524d2894b38df79d9cc4f52/lib/appium_lib/ios/xcuitest/element/button.rb#L35) ios
|
2565
2605
|
|
2566
2606
|
> def first_button
|
2567
2607
|
|
@@ -2573,7 +2613,7 @@ __Returns:__
|
|
2573
2613
|
|
2574
2614
|
--
|
2575
2615
|
|
2576
|
-
##### [last_button](https://github.com/appium/ruby_lib/blob/
|
2616
|
+
##### [last_button](https://github.com/appium/ruby_lib/blob/d2a48f235b29f5150524d2894b38df79d9cc4f52/lib/appium_lib/ios/xcuitest/element/button.rb#L43) ios
|
2577
2617
|
|
2578
2618
|
> def last_button
|
2579
2619
|
|
@@ -2587,7 +2627,7 @@ __Returns:__
|
|
2587
2627
|
|
2588
2628
|
--
|
2589
2629
|
|
2590
|
-
##### [button_exact](https://github.com/appium/ruby_lib/blob/
|
2630
|
+
##### [button_exact](https://github.com/appium/ruby_lib/blob/d2a48f235b29f5150524d2894b38df79d9cc4f52/lib/appium_lib/ios/xcuitest/element/button.rb#L50) ios
|
2591
2631
|
|
2592
2632
|
> def button_exact(value)
|
2593
2633
|
|
@@ -2603,7 +2643,7 @@ __Returns:__
|
|
2603
2643
|
|
2604
2644
|
--
|
2605
2645
|
|
2606
|
-
##### [buttons_exact](https://github.com/appium/ruby_lib/blob/
|
2646
|
+
##### [buttons_exact](https://github.com/appium/ruby_lib/blob/d2a48f235b29f5150524d2894b38df79d9cc4f52/lib/appium_lib/ios/xcuitest/element/button.rb#L57) ios
|
2607
2647
|
|
2608
2648
|
> def buttons_exact(value)
|
2609
2649
|
|
@@ -2619,7 +2659,7 @@ __Returns:__
|
|
2619
2659
|
|
2620
2660
|
--
|
2621
2661
|
|
2622
|
-
##### [find](https://github.com/appium/ruby_lib/blob/
|
2662
|
+
##### [find](https://github.com/appium/ruby_lib/blob/d2a48f235b29f5150524d2894b38df79d9cc4f52/lib/appium_lib/ios/xcuitest/element/generic.rb#L8) ios
|
2623
2663
|
|
2624
2664
|
> def find(value)
|
2625
2665
|
|
@@ -2635,7 +2675,7 @@ __Returns:__
|
|
2635
2675
|
|
2636
2676
|
--
|
2637
2677
|
|
2638
|
-
##### [finds](https://github.com/appium/ruby_lib/blob/
|
2678
|
+
##### [finds](https://github.com/appium/ruby_lib/blob/d2a48f235b29f5150524d2894b38df79d9cc4f52/lib/appium_lib/ios/xcuitest/element/generic.rb#L15) ios
|
2639
2679
|
|
2640
2680
|
> def finds(value)
|
2641
2681
|
|
@@ -2651,7 +2691,7 @@ __Returns:__
|
|
2651
2691
|
|
2652
2692
|
--
|
2653
2693
|
|
2654
|
-
##### [find_exact](https://github.com/appium/ruby_lib/blob/
|
2694
|
+
##### [find_exact](https://github.com/appium/ruby_lib/blob/d2a48f235b29f5150524d2894b38df79d9cc4f52/lib/appium_lib/ios/xcuitest/element/generic.rb#L23) ios
|
2655
2695
|
|
2656
2696
|
> def find_exact(value)
|
2657
2697
|
|
@@ -2667,7 +2707,7 @@ __Returns:__
|
|
2667
2707
|
|
2668
2708
|
--
|
2669
2709
|
|
2670
|
-
##### [finds_exact](https://github.com/appium/ruby_lib/blob/
|
2710
|
+
##### [finds_exact](https://github.com/appium/ruby_lib/blob/d2a48f235b29f5150524d2894b38df79d9cc4f52/lib/appium_lib/ios/xcuitest/element/generic.rb#L30) ios
|
2671
2711
|
|
2672
2712
|
> def finds_exact(value)
|
2673
2713
|
|
@@ -2683,7 +2723,7 @@ __Returns:__
|
|
2683
2723
|
|
2684
2724
|
--
|
2685
2725
|
|
2686
|
-
##### [raise_error_if_no_element](https://github.com/appium/ruby_lib/blob/
|
2726
|
+
##### [raise_error_if_no_element](https://github.com/appium/ruby_lib/blob/d2a48f235b29f5150524d2894b38df79d9cc4f52/lib/appium_lib/ios/xcuitest/element/generic.rb#L37) ios
|
2687
2727
|
|
2688
2728
|
> def raise_error_if_no_element(element)
|
2689
2729
|
|
@@ -2691,7 +2731,7 @@ __Returns:__
|
|
2691
2731
|
|
2692
2732
|
--
|
2693
2733
|
|
2694
|
-
##### [select_visible_elements](https://github.com/appium/ruby_lib/blob/
|
2734
|
+
##### [select_visible_elements](https://github.com/appium/ruby_lib/blob/d2a48f235b29f5150524d2894b38df79d9cc4f52/lib/appium_lib/ios/xcuitest/element/generic.rb#L44) ios
|
2695
2735
|
|
2696
2736
|
> def select_visible_elements(elements)
|
2697
2737
|
|
@@ -2699,7 +2739,7 @@ Return visible elements.
|
|
2699
2739
|
|
2700
2740
|
--
|
2701
2741
|
|
2702
|
-
##### [swipe](https://github.com/appium/ruby_lib/blob/
|
2742
|
+
##### [swipe](https://github.com/appium/ruby_lib/blob/d2a48f235b29f5150524d2894b38df79d9cc4f52/lib/appium_lib/ios/xcuitest/command/gestures.rb#L11) ios
|
2703
2743
|
|
2704
2744
|
> def swipe(direction:, element: nil)
|
2705
2745
|
|
@@ -2713,7 +2753,7 @@ __Parameters:__
|
|
2713
2753
|
|
2714
2754
|
--
|
2715
2755
|
|
2716
|
-
##### [scroll](https://github.com/appium/ruby_lib/blob/
|
2756
|
+
##### [scroll](https://github.com/appium/ruby_lib/blob/d2a48f235b29f5150524d2894b38df79d9cc4f52/lib/appium_lib/ios/xcuitest/command/gestures.rb#L29) ios
|
2717
2757
|
|
2718
2758
|
> def scroll(direction:, name: nil, element: nil, to_visible: nil, predicate_string: nil)
|
2719
2759
|
|
@@ -2727,7 +2767,7 @@ __Parameters:__
|
|
2727
2767
|
|
2728
2768
|
--
|
2729
2769
|
|
2730
|
-
##### [pinch](https://github.com/appium/ruby_lib/blob/
|
2770
|
+
##### [pinch](https://github.com/appium/ruby_lib/blob/d2a48f235b29f5150524d2894b38df79d9cc4f52/lib/appium_lib/ios/xcuitest/command/gestures.rb#L48) ios
|
2731
2771
|
|
2732
2772
|
> def pinch(scale:, velocity: 1.0, element: nil)
|
2733
2773
|
|
@@ -2743,7 +2783,7 @@ __Parameters:__
|
|
2743
2783
|
|
2744
2784
|
--
|
2745
2785
|
|
2746
|
-
##### [double_tap](https://github.com/appium/ruby_lib/blob/
|
2786
|
+
##### [double_tap](https://github.com/appium/ruby_lib/blob/d2a48f235b29f5150524d2894b38df79d9cc4f52/lib/appium_lib/ios/xcuitest/command/gestures.rb#L63) ios
|
2747
2787
|
|
2748
2788
|
> def double_tap(x: nil, y: nil, element: nil)
|
2749
2789
|
|
@@ -2759,7 +2799,7 @@ __Parameters:__
|
|
2759
2799
|
|
2760
2800
|
--
|
2761
2801
|
|
2762
|
-
##### [touch_and_hold](https://github.com/appium/ruby_lib/blob/
|
2802
|
+
##### [touch_and_hold](https://github.com/appium/ruby_lib/blob/d2a48f235b29f5150524d2894b38df79d9cc4f52/lib/appium_lib/ios/xcuitest/command/gestures.rb#L80) ios
|
2763
2803
|
|
2764
2804
|
> def touch_and_hold(x: nil, y: nil, element: nil, duration: 1.0)
|
2765
2805
|
|
@@ -2777,7 +2817,7 @@ __Parameters:__
|
|
2777
2817
|
|
2778
2818
|
--
|
2779
2819
|
|
2780
|
-
##### [two_finger_tap](https://github.com/appium/ruby_lib/blob/
|
2820
|
+
##### [two_finger_tap](https://github.com/appium/ruby_lib/blob/d2a48f235b29f5150524d2894b38df79d9cc4f52/lib/appium_lib/ios/xcuitest/command/gestures.rb#L93) ios
|
2781
2821
|
|
2782
2822
|
> def two_finger_tap(element:)
|
2783
2823
|
|
@@ -2793,7 +2833,7 @@ two_finger_tap element: find_element(:accessibility_id, "some item")
|
|
2793
2833
|
|
2794
2834
|
--
|
2795
2835
|
|
2796
|
-
##### [tap](https://github.com/appium/ruby_lib/blob/
|
2836
|
+
##### [tap](https://github.com/appium/ruby_lib/blob/d2a48f235b29f5150524d2894b38df79d9cc4f52/lib/appium_lib/ios/xcuitest/command/gestures.rb#L108) ios
|
2797
2837
|
|
2798
2838
|
> def tap(x:, y:, element: nil)
|
2799
2839
|
|
@@ -2809,7 +2849,7 @@ __Parameters:__
|
|
2809
2849
|
|
2810
2850
|
--
|
2811
2851
|
|
2812
|
-
##### [drag_from_to_for_duration](https://github.com/appium/ruby_lib/blob/
|
2852
|
+
##### [drag_from_to_for_duration](https://github.com/appium/ruby_lib/blob/d2a48f235b29f5150524d2894b38df79d9cc4f52/lib/appium_lib/ios/xcuitest/command/gestures.rb#L128) ios
|
2813
2853
|
|
2814
2854
|
> def drag_from_to_for_duration(from_x:, from_y:, to_x:, to_y:, duration: 1.0, element: nil)
|
2815
2855
|
|
@@ -2832,7 +2872,7 @@ drag point should be before to start dragging. Mandatory parameter
|
|
2832
2872
|
|
2833
2873
|
--
|
2834
2874
|
|
2835
|
-
##### [select_picker_wheel](https://github.com/appium/ruby_lib/blob/
|
2875
|
+
##### [select_picker_wheel](https://github.com/appium/ruby_lib/blob/d2a48f235b29f5150524d2894b38df79d9cc4f52/lib/appium_lib/ios/xcuitest/command/gestures.rb#L145) ios
|
2836
2876
|
|
2837
2877
|
> def select_picker_wheel(element:, order:, offset: nil)
|
2838
2878
|
|
@@ -2849,7 +2889,7 @@ __Parameters:__
|
|
2849
2889
|
|
2850
2890
|
--
|
2851
2891
|
|
2852
|
-
##### [alert](https://github.com/appium/ruby_lib/blob/
|
2892
|
+
##### [alert](https://github.com/appium/ruby_lib/blob/d2a48f235b29f5150524d2894b38df79d9cc4f52/lib/appium_lib/ios/xcuitest/command/gestures.rb#L163) ios
|
2853
2893
|
|
2854
2894
|
> def alert(action:, button_label: nil)
|
2855
2895
|
|
@@ -2864,7 +2904,7 @@ This is an optional parameter and is only valid in combination with accept and d
|
|
2864
2904
|
|
2865
2905
|
--
|
2866
2906
|
|
2867
|
-
##### [text_field_class](https://github.com/appium/ruby_lib/blob/
|
2907
|
+
##### [text_field_class](https://github.com/appium/ruby_lib/blob/d2a48f235b29f5150524d2894b38df79d9cc4f52/lib/appium_lib/ios/xcuitest/element/textfield.rb#L9) ios
|
2868
2908
|
|
2869
2909
|
> def text_field_class
|
2870
2910
|
|
@@ -2876,7 +2916,7 @@ __Returns:__
|
|
2876
2916
|
|
2877
2917
|
--
|
2878
2918
|
|
2879
|
-
##### [secure_text_field_class](https://github.com/appium/ruby_lib/blob/
|
2919
|
+
##### [secure_text_field_class](https://github.com/appium/ruby_lib/blob/d2a48f235b29f5150524d2894b38df79d9cc4f52/lib/appium_lib/ios/xcuitest/element/textfield.rb#L14) ios
|
2880
2920
|
|
2881
2921
|
> def secure_text_field_class
|
2882
2922
|
|
@@ -2888,7 +2928,7 @@ __Returns:__
|
|
2888
2928
|
|
2889
2929
|
--
|
2890
2930
|
|
2891
|
-
##### [textfield](https://github.com/appium/ruby_lib/blob/
|
2931
|
+
##### [textfield](https://github.com/appium/ruby_lib/blob/d2a48f235b29f5150524d2894b38df79d9cc4f52/lib/appium_lib/ios/xcuitest/element/textfield.rb#L23) ios
|
2892
2932
|
|
2893
2933
|
> def textfield(value)
|
2894
2934
|
|
@@ -2906,7 +2946,7 @@ __Returns:__
|
|
2906
2946
|
|
2907
2947
|
--
|
2908
2948
|
|
2909
|
-
##### [textfields](https://github.com/appium/ruby_lib/blob/
|
2949
|
+
##### [textfields](https://github.com/appium/ruby_lib/blob/d2a48f235b29f5150524d2894b38df79d9cc4f52/lib/appium_lib/ios/xcuitest/element/textfield.rb#L41) ios
|
2910
2950
|
|
2911
2951
|
> def textfields(value = false)
|
2912
2952
|
|
@@ -2923,7 +2963,7 @@ __Returns:__
|
|
2923
2963
|
|
2924
2964
|
--
|
2925
2965
|
|
2926
|
-
##### [first_textfield](https://github.com/appium/ruby_lib/blob/
|
2966
|
+
##### [first_textfield](https://github.com/appium/ruby_lib/blob/d2a48f235b29f5150524d2894b38df79d9cc4f52/lib/appium_lib/ios/xcuitest/element/textfield.rb#L50) ios
|
2927
2967
|
|
2928
2968
|
> def first_textfield
|
2929
2969
|
|
@@ -2935,7 +2975,7 @@ __Returns:__
|
|
2935
2975
|
|
2936
2976
|
--
|
2937
2977
|
|
2938
|
-
##### [last_textfield](https://github.com/appium/ruby_lib/blob/
|
2978
|
+
##### [last_textfield](https://github.com/appium/ruby_lib/blob/d2a48f235b29f5150524d2894b38df79d9cc4f52/lib/appium_lib/ios/xcuitest/element/textfield.rb#L56) ios
|
2939
2979
|
|
2940
2980
|
> def last_textfield
|
2941
2981
|
|
@@ -2947,7 +2987,7 @@ __Returns:__
|
|
2947
2987
|
|
2948
2988
|
--
|
2949
2989
|
|
2950
|
-
##### [textfield_exact](https://github.com/appium/ruby_lib/blob/
|
2990
|
+
##### [textfield_exact](https://github.com/appium/ruby_lib/blob/d2a48f235b29f5150524d2894b38df79d9cc4f52/lib/appium_lib/ios/xcuitest/element/textfield.rb#L65) ios
|
2951
2991
|
|
2952
2992
|
> def textfield_exact(value)
|
2953
2993
|
|
@@ -2963,7 +3003,7 @@ __Returns:__
|
|
2963
3003
|
|
2964
3004
|
--
|
2965
3005
|
|
2966
|
-
##### [textfields_exact](https://github.com/appium/ruby_lib/blob/
|
3006
|
+
##### [textfields_exact](https://github.com/appium/ruby_lib/blob/d2a48f235b29f5150524d2894b38df79d9cc4f52/lib/appium_lib/ios/xcuitest/element/textfield.rb#L72) ios
|
2967
3007
|
|
2968
3008
|
> def textfields_exact(value)
|
2969
3009
|
|
@@ -2979,7 +3019,7 @@ __Returns:__
|
|
2979
3019
|
|
2980
3020
|
--
|
2981
3021
|
|
2982
|
-
##### [set_pasteboard](https://github.com/appium/ruby_lib/blob/
|
3022
|
+
##### [set_pasteboard](https://github.com/appium/ruby_lib/blob/d2a48f235b29f5150524d2894b38df79d9cc4f52/lib/appium_lib/ios/xcuitest/command/pasteboard.rb#L12) ios
|
2983
3023
|
|
2984
3024
|
> def set_pasteboard(content:, encoding: nil)
|
2985
3025
|
|
@@ -2994,7 +3034,7 @@ The parameter is mandatory
|
|
2994
3034
|
|
2995
3035
|
--
|
2996
3036
|
|
2997
|
-
##### [get_pasteboard](https://github.com/appium/ruby_lib/blob/
|
3037
|
+
##### [get_pasteboard](https://github.com/appium/ruby_lib/blob/d2a48f235b29f5150524d2894b38df79d9cc4f52/lib/appium_lib/ios/xcuitest/command/pasteboard.rb#L24) ios
|
2998
3038
|
|
2999
3039
|
> def get_pasteboard(encoding: nil)
|
3000
3040
|
|
@@ -3006,3 +3046,112 @@ __Parameters:__
|
|
3006
3046
|
|
3007
3047
|
--
|
3008
3048
|
|
3049
|
+
##### [xcuitest_install_app](https://github.com/appium/ruby_lib/blob/d2a48f235b29f5150524d2894b38df79d9cc4f52/lib/appium_lib/ios/xcuitest/command/multi_app_handler.rb#L21) ios
|
3050
|
+
|
3051
|
+
> def xcuitest_install_app(app:)
|
3052
|
+
|
3053
|
+
Installs given application to the device under test. If the same application is already installed
|
3054
|
+
then it's going to be installed over it, which allows to test upgrades.
|
3055
|
+
Be careful while reinstalling the main application under test - make sure you called terminateApp
|
3056
|
+
for it first, otherwise WebDriverAgent will detect it as a potential application crash.
|
3057
|
+
|
3058
|
+
__Parameters:__
|
3059
|
+
|
3060
|
+
[String] app - The path to an existing .ipa/.app file on the server file system, zipped .app file
|
3061
|
+
or an URL pointing to a remote .ipa/.zip file. Mandatory argument.
|
3062
|
+
|
3063
|
+
--
|
3064
|
+
|
3065
|
+
##### [xcuitest_app_installed?](https://github.com/appium/ruby_lib/blob/d2a48f235b29f5150524d2894b38df79d9cc4f52/lib/appium_lib/ios/xcuitest/command/multi_app_handler.rb#L35) ios
|
3066
|
+
|
3067
|
+
> def xcuitest_app_installed?(bundle_id:)
|
3068
|
+
|
3069
|
+
Verifies whether the application with given bundle identifier is installed on the device.
|
3070
|
+
|
3071
|
+
__Parameters:__
|
3072
|
+
|
3073
|
+
[String] bundle_id - The bundle identifier of the application, which is going to be verified.
|
3074
|
+
|
3075
|
+
__Returns:__
|
3076
|
+
|
3077
|
+
[boolean]
|
3078
|
+
|
3079
|
+
--
|
3080
|
+
|
3081
|
+
##### [xcuitest_remove_app](https://github.com/appium/ruby_lib/blob/d2a48f235b29f5150524d2894b38df79d9cc4f52/lib/appium_lib/ios/xcuitest/command/multi_app_handler.rb#L50) ios
|
3082
|
+
|
3083
|
+
> def xcuitest_remove_app(bundle_id:)
|
3084
|
+
|
3085
|
+
Uninstalls an existing application from the device under test. This endpoint does not verify
|
3086
|
+
whether the application is already installed or not before uninstalling it.
|
3087
|
+
|
3088
|
+
__Parameters:__
|
3089
|
+
|
3090
|
+
[String] bundle_id - The bundle identifier of the application, which is going to be uninstalled.
|
3091
|
+
|
3092
|
+
--
|
3093
|
+
|
3094
|
+
##### [xcuitest_launch_app](https://github.com/appium/ruby_lib/blob/d2a48f235b29f5150524d2894b38df79d9cc4f52/lib/appium_lib/ios/xcuitest/command/multi_app_handler.rb#L65) ios
|
3095
|
+
|
3096
|
+
> def xcuitest_launch_app(bundle_id:)
|
3097
|
+
|
3098
|
+
Executes an existing application on the device. If the application is already running then
|
3099
|
+
it will be brought to the foreground.
|
3100
|
+
|
3101
|
+
__Parameters:__
|
3102
|
+
|
3103
|
+
[String] bundle_id - The bundle identifier of the application, which is going to be executed.
|
3104
|
+
|
3105
|
+
--
|
3106
|
+
|
3107
|
+
##### [xcuitest_terminate_app](https://github.com/appium/ruby_lib/blob/d2a48f235b29f5150524d2894b38df79d9cc4f52/lib/appium_lib/ios/xcuitest/command/multi_app_handler.rb#L80) ios
|
3108
|
+
|
3109
|
+
> def xcuitest_terminate_app(bundle_id:)
|
3110
|
+
|
3111
|
+
Terminates an existing application on the device. If the application is not running then
|
3112
|
+
the returned result will be false, otherwise true.
|
3113
|
+
|
3114
|
+
__Parameters:__
|
3115
|
+
|
3116
|
+
[String] bundle_id - The bundle identifier of the application, which is going to be terminated.
|
3117
|
+
|
3118
|
+
--
|
3119
|
+
|
3120
|
+
##### [xcuitest_query_app_status](https://github.com/appium/ruby_lib/blob/d2a48f235b29f5150524d2894b38df79d9cc4f52/lib/appium_lib/ios/xcuitest/command/multi_app_handler.rb#L102) ios
|
3121
|
+
|
3122
|
+
> def xcuitest_query_app_status(bundle_id:)
|
3123
|
+
|
3124
|
+
Get the status of an existing application on the device.
|
3125
|
+
State:
|
3126
|
+
0: The current application state cannot be determined/is unknown
|
3127
|
+
1: The application is not running
|
3128
|
+
2: The application is running in the background and is suspended
|
3129
|
+
3: The application is running in the background and is not suspended
|
3130
|
+
4: The application is running in the foreground
|
3131
|
+
|
3132
|
+
For more details: https://developer.apple.com/documentation/xctest/xcuiapplicationstate
|
3133
|
+
|
3134
|
+
__Parameters:__
|
3135
|
+
|
3136
|
+
[String] bundle_id - A target app's bundle id
|
3137
|
+
|
3138
|
+
__Returns:__
|
3139
|
+
|
3140
|
+
[0|1|2|3|4] A number of the state
|
3141
|
+
|
3142
|
+
--
|
3143
|
+
|
3144
|
+
##### [xcuitest_activate_app](https://github.com/appium/ruby_lib/blob/d2a48f235b29f5150524d2894b38df79d9cc4f52/lib/appium_lib/ios/xcuitest/command/multi_app_handler.rb#L118) ios
|
3145
|
+
|
3146
|
+
> def xcuitest_activate_app(bundle_id:)
|
3147
|
+
|
3148
|
+
Activates an existing application on the device under test and moves it to the foreground.
|
3149
|
+
The application should be already running in order to activate it.
|
3150
|
+
The call is ignored if the application is already in foreground.
|
3151
|
+
|
3152
|
+
__Parameters:__
|
3153
|
+
|
3154
|
+
[String] bundle_id - The bundle identifier of the application, which is going to be brought to the foreground.
|
3155
|
+
|
3156
|
+
--
|
3157
|
+
|