appium_lib 0.12.0 → 0.13.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/docs/android_docs.md +126 -118
- data/docs/docs.md +1 -0
- data/docs/ios_docs.md +134 -124
- data/lib/appium_lib/android/element/generic.rb +40 -4
- data/lib/appium_lib/common/helper.rb +8 -0
- data/lib/appium_lib/common/version.rb +2 -2
- data/lib/appium_lib/driver.rb +2 -1
- data/lib/appium_lib/ios/element/generic.rb +13 -0
- data/lib/appium_lib/ios/element/textfield.rb +10 -0
- data/lib/appium_lib/ios/helper.rb +8 -1
- data/release_notes.md +24 -0
- metadata +3 -3
data/docs/docs.md
CHANGED
|
@@ -15,6 +15,7 @@
|
|
|
15
15
|
- [mechanic names of elements](https://github.com/jaykz52/mechanic/blob/8c490e1d225f384847e47ffdafb47cc2248bb96c/src/mechanic-core.js#L28)
|
|
16
16
|
- [All methods supported by Appium](https://github.com/appium/appium/wiki/JSON-Wire-Protocol:-Supported-Methods)
|
|
17
17
|
- [Appium's mobile gesture docs](https://github.com/appium/appium/wiki/Automating-mobile-gestures)
|
|
18
|
+
- [MiniTest Expectations](http://ruby-doc.org/stdlib-2.0.0/libdoc/minitest/spec/rdoc/MiniTest/Expectations.html)
|
|
18
19
|
|
|
19
20
|
--
|
|
20
21
|
|
data/docs/ios_docs.md
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
##### [s_texts](https://github.com/appium/ruby_lib/blob/
|
|
1
|
+
##### [s_texts](https://github.com/appium/ruby_lib/blob/c92bd3710be09731aa8ba4547a3e19af9eeaceab/lib/appium_lib/common/element/text.rb#L10)
|
|
2
2
|
|
|
3
3
|
> def s_texts text=nil
|
|
4
4
|
|
|
@@ -15,7 +15,15 @@ __Returns:__
|
|
|
15
15
|
|
|
16
16
|
--
|
|
17
17
|
|
|
18
|
-
##### [
|
|
18
|
+
##### [s_texts_names](https://github.com/appium/ruby_lib/blob/c92bd3710be09731aa8ba4547a3e19af9eeaceab/lib/appium_lib/common/element/text.rb#L18)
|
|
19
|
+
|
|
20
|
+
> def s_texts_names
|
|
21
|
+
|
|
22
|
+
|
|
23
|
+
|
|
24
|
+
--
|
|
25
|
+
|
|
26
|
+
##### [e_s_texts](https://github.com/appium/ruby_lib/blob/c92bd3710be09731aa8ba4547a3e19af9eeaceab/lib/appium_lib/common/element/text.rb#L24)
|
|
19
27
|
|
|
20
28
|
> def e_s_texts
|
|
21
29
|
|
|
@@ -27,7 +35,7 @@ __Returns:__
|
|
|
27
35
|
|
|
28
36
|
--
|
|
29
37
|
|
|
30
|
-
##### [first_s_text](https://github.com/appium/ruby_lib/blob/
|
|
38
|
+
##### [first_s_text](https://github.com/appium/ruby_lib/blob/c92bd3710be09731aa8ba4547a3e19af9eeaceab/lib/appium_lib/common/element/text.rb#L30)
|
|
31
39
|
|
|
32
40
|
> def first_s_text
|
|
33
41
|
|
|
@@ -39,7 +47,7 @@ __Returns:__
|
|
|
39
47
|
|
|
40
48
|
--
|
|
41
49
|
|
|
42
|
-
##### [last_s_text](https://github.com/appium/ruby_lib/blob/
|
|
50
|
+
##### [last_s_text](https://github.com/appium/ruby_lib/blob/c92bd3710be09731aa8ba4547a3e19af9eeaceab/lib/appium_lib/common/element/text.rb#L36)
|
|
43
51
|
|
|
44
52
|
> def last_s_text
|
|
45
53
|
|
|
@@ -51,7 +59,7 @@ __Returns:__
|
|
|
51
59
|
|
|
52
60
|
--
|
|
53
61
|
|
|
54
|
-
##### [s_text](https://github.com/appium/ruby_lib/blob/
|
|
62
|
+
##### [s_text](https://github.com/appium/ruby_lib/blob/c92bd3710be09731aa8ba4547a3e19af9eeaceab/lib/appium_lib/common/element/text.rb#L43)
|
|
55
63
|
|
|
56
64
|
> def s_text text
|
|
57
65
|
|
|
@@ -67,7 +75,7 @@ __Returns:__
|
|
|
67
75
|
|
|
68
76
|
--
|
|
69
77
|
|
|
70
|
-
##### [s_text_exact](https://github.com/appium/ruby_lib/blob/
|
|
78
|
+
##### [s_text_exact](https://github.com/appium/ruby_lib/blob/c92bd3710be09731aa8ba4547a3e19af9eeaceab/lib/appium_lib/common/element/text.rb#L51)
|
|
71
79
|
|
|
72
80
|
> def s_text_exact text
|
|
73
81
|
|
|
@@ -83,7 +91,7 @@ __Returns:__
|
|
|
83
91
|
|
|
84
92
|
--
|
|
85
93
|
|
|
86
|
-
##### [s_texts_exact](https://github.com/appium/ruby_lib/blob/
|
|
94
|
+
##### [s_texts_exact](https://github.com/appium/ruby_lib/blob/c92bd3710be09731aa8ba4547a3e19af9eeaceab/lib/appium_lib/common/element/text.rb#L58)
|
|
87
95
|
|
|
88
96
|
> def s_texts_exact text
|
|
89
97
|
|
|
@@ -99,7 +107,7 @@ __Returns:__
|
|
|
99
107
|
|
|
100
108
|
--
|
|
101
109
|
|
|
102
|
-
##### [window_size](https://github.com/appium/ruby_lib/blob/
|
|
110
|
+
##### [window_size](https://github.com/appium/ruby_lib/blob/c92bd3710be09731aa8ba4547a3e19af9eeaceab/lib/appium_lib/common/element/window.rb#L5)
|
|
103
111
|
|
|
104
112
|
> def window_size
|
|
105
113
|
|
|
@@ -107,7 +115,7 @@ Get the window's size
|
|
|
107
115
|
|
|
108
116
|
--
|
|
109
117
|
|
|
110
|
-
##### [button](https://github.com/appium/ruby_lib/blob/
|
|
118
|
+
##### [button](https://github.com/appium/ruby_lib/blob/c92bd3710be09731aa8ba4547a3e19af9eeaceab/lib/appium_lib/common/element/button.rb#L8)
|
|
111
119
|
|
|
112
120
|
> def button text, number=0
|
|
113
121
|
|
|
@@ -125,7 +133,7 @@ __Returns:__
|
|
|
125
133
|
|
|
126
134
|
--
|
|
127
135
|
|
|
128
|
-
##### [buttons](https://github.com/appium/ruby_lib/blob/
|
|
136
|
+
##### [buttons](https://github.com/appium/ruby_lib/blob/c92bd3710be09731aa8ba4547a3e19af9eeaceab/lib/appium_lib/common/element/button.rb#L19)
|
|
129
137
|
|
|
130
138
|
> def buttons text=nil
|
|
131
139
|
|
|
@@ -141,7 +149,7 @@ __Returns:__
|
|
|
141
149
|
|
|
142
150
|
--
|
|
143
151
|
|
|
144
|
-
##### [first_button](https://github.com/appium/ruby_lib/blob/
|
|
152
|
+
##### [first_button](https://github.com/appium/ruby_lib/blob/c92bd3710be09731aa8ba4547a3e19af9eeaceab/lib/appium_lib/common/element/button.rb#L26)
|
|
145
153
|
|
|
146
154
|
> def first_button
|
|
147
155
|
|
|
@@ -153,7 +161,7 @@ __Returns:__
|
|
|
153
161
|
|
|
154
162
|
--
|
|
155
163
|
|
|
156
|
-
##### [last_button](https://github.com/appium/ruby_lib/blob/
|
|
164
|
+
##### [last_button](https://github.com/appium/ruby_lib/blob/c92bd3710be09731aa8ba4547a3e19af9eeaceab/lib/appium_lib/common/element/button.rb#L32)
|
|
157
165
|
|
|
158
166
|
> def last_button
|
|
159
167
|
|
|
@@ -165,7 +173,7 @@ __Returns:__
|
|
|
165
173
|
|
|
166
174
|
--
|
|
167
175
|
|
|
168
|
-
##### [button_exact](https://github.com/appium/ruby_lib/blob/
|
|
176
|
+
##### [button_exact](https://github.com/appium/ruby_lib/blob/c92bd3710be09731aa8ba4547a3e19af9eeaceab/lib/appium_lib/common/element/button.rb#L39)
|
|
169
177
|
|
|
170
178
|
> def button_exact text
|
|
171
179
|
|
|
@@ -181,7 +189,7 @@ __Returns:__
|
|
|
181
189
|
|
|
182
190
|
--
|
|
183
191
|
|
|
184
|
-
##### [buttons_exact](https://github.com/appium/ruby_lib/blob/
|
|
192
|
+
##### [buttons_exact](https://github.com/appium/ruby_lib/blob/c92bd3710be09731aa8ba4547a3e19af9eeaceab/lib/appium_lib/common/element/button.rb#L46)
|
|
185
193
|
|
|
186
194
|
> def buttons_exact text
|
|
187
195
|
|
|
@@ -197,7 +205,7 @@ __Returns:__
|
|
|
197
205
|
|
|
198
206
|
--
|
|
199
207
|
|
|
200
|
-
##### [e_buttons](https://github.com/appium/ruby_lib/blob/
|
|
208
|
+
##### [e_buttons](https://github.com/appium/ruby_lib/blob/c92bd3710be09731aa8ba4547a3e19af9eeaceab/lib/appium_lib/common/element/button.rb#L52)
|
|
201
209
|
|
|
202
210
|
> def e_buttons
|
|
203
211
|
|
|
@@ -209,7 +217,7 @@ __Returns:__
|
|
|
209
217
|
|
|
210
218
|
--
|
|
211
219
|
|
|
212
|
-
##### [button_num](https://github.com/appium/ruby_lib/blob/
|
|
220
|
+
##### [button_num](https://github.com/appium/ruby_lib/blob/c92bd3710be09731aa8ba4547a3e19af9eeaceab/lib/appium_lib/common/element/button.rb#L72)
|
|
213
221
|
|
|
214
222
|
> def button_num text, number=1
|
|
215
223
|
|
|
@@ -238,7 +246,7 @@ __Returns:__
|
|
|
238
246
|
|
|
239
247
|
--
|
|
240
248
|
|
|
241
|
-
##### [find_eles_attr](https://github.com/appium/ruby_lib/blob/
|
|
249
|
+
##### [find_eles_attr](https://github.com/appium/ruby_lib/blob/c92bd3710be09731aa8ba4547a3e19af9eeaceab/lib/appium_lib/ios/helper.rb#L8) ios
|
|
242
250
|
|
|
243
251
|
> def find_eles_attr tag_name, attribute
|
|
244
252
|
|
|
@@ -257,7 +265,7 @@ __Returns:__
|
|
|
257
265
|
|
|
258
266
|
--
|
|
259
267
|
|
|
260
|
-
##### [find_2_eles_attr](https://github.com/appium/ruby_lib/blob/
|
|
268
|
+
##### [find_2_eles_attr](https://github.com/appium/ruby_lib/blob/c92bd3710be09731aa8ba4547a3e19af9eeaceab/lib/appium_lib/ios/helper.rb#L29) ios
|
|
261
269
|
|
|
262
270
|
> def find_2_eles_attr tag_name_1, tag_name_2, attribute
|
|
263
271
|
|
|
@@ -278,7 +286,7 @@ __Returns:__
|
|
|
278
286
|
|
|
279
287
|
--
|
|
280
288
|
|
|
281
|
-
##### [password](https://github.com/appium/ruby_lib/blob/
|
|
289
|
+
##### [password](https://github.com/appium/ruby_lib/blob/c92bd3710be09731aa8ba4547a3e19af9eeaceab/lib/appium_lib/ios/helper.rb#L50) ios
|
|
282
290
|
|
|
283
291
|
> def password length=1
|
|
284
292
|
|
|
@@ -296,7 +304,7 @@ __Returns:__
|
|
|
296
304
|
|
|
297
305
|
--
|
|
298
306
|
|
|
299
|
-
##### [get_page_class](https://github.com/appium/ruby_lib/blob/
|
|
307
|
+
##### [get_page_class](https://github.com/appium/ruby_lib/blob/c92bd3710be09731aa8ba4547a3e19af9eeaceab/lib/appium_lib/ios/helper.rb#L55) ios
|
|
300
308
|
|
|
301
309
|
> def get_page_class
|
|
302
310
|
|
|
@@ -304,7 +312,7 @@ Returns a string of class counts.
|
|
|
304
312
|
|
|
305
313
|
--
|
|
306
314
|
|
|
307
|
-
##### [page_class](https://github.com/appium/ruby_lib/blob/
|
|
315
|
+
##### [page_class](https://github.com/appium/ruby_lib/blob/c92bd3710be09731aa8ba4547a3e19af9eeaceab/lib/appium_lib/ios/helper.rb#L81) ios
|
|
308
316
|
|
|
309
317
|
> def page_class
|
|
310
318
|
|
|
@@ -312,7 +320,7 @@ Returns a string of class counts.
|
|
|
312
320
|
|
|
313
321
|
--
|
|
314
322
|
|
|
315
|
-
##### [get_page](https://github.com/appium/ruby_lib/blob/
|
|
323
|
+
##### [get_page](https://github.com/appium/ruby_lib/blob/c92bd3710be09731aa8ba4547a3e19af9eeaceab/lib/appium_lib/ios/helper.rb#L93) ios
|
|
316
324
|
|
|
317
325
|
> def get_page element=source_window(0)
|
|
318
326
|
|
|
@@ -331,9 +339,9 @@ __Returns:__
|
|
|
331
339
|
|
|
332
340
|
--
|
|
333
341
|
|
|
334
|
-
##### [page](https://github.com/appium/ruby_lib/blob/
|
|
342
|
+
##### [page](https://github.com/appium/ruby_lib/blob/c92bd3710be09731aa8ba4547a3e19af9eeaceab/lib/appium_lib/ios/helper.rb#L154) ios
|
|
335
343
|
|
|
336
|
-
> def page window_number =
|
|
344
|
+
> def page window_number = -1
|
|
337
345
|
|
|
338
346
|
Prints a string of interesting elements to the console.
|
|
339
347
|
|
|
@@ -343,7 +351,7 @@ __Returns:__
|
|
|
343
351
|
|
|
344
352
|
--
|
|
345
353
|
|
|
346
|
-
##### [source_window](https://github.com/appium/ruby_lib/blob/
|
|
354
|
+
##### [source_window](https://github.com/appium/ruby_lib/blob/c92bd3710be09731aa8ba4547a3e19af9eeaceab/lib/appium_lib/ios/helper.rb#L169) ios
|
|
347
355
|
|
|
348
356
|
> def source_window window_number=0
|
|
349
357
|
|
|
@@ -359,7 +367,7 @@ __Returns:__
|
|
|
359
367
|
|
|
360
368
|
--
|
|
361
369
|
|
|
362
|
-
##### [page_window](https://github.com/appium/ruby_lib/blob/
|
|
370
|
+
##### [page_window](https://github.com/appium/ruby_lib/blob/c92bd3710be09731aa8ba4547a3e19af9eeaceab/lib/appium_lib/ios/helper.rb#L176) ios
|
|
363
371
|
|
|
364
372
|
> def page_window window_number=0
|
|
365
373
|
|
|
@@ -372,7 +380,7 @@ __Parameters:__
|
|
|
372
380
|
|
|
373
381
|
--
|
|
374
382
|
|
|
375
|
-
##### [fast_duration](https://github.com/appium/ruby_lib/blob/
|
|
383
|
+
##### [fast_duration](https://github.com/appium/ruby_lib/blob/c92bd3710be09731aa8ba4547a3e19af9eeaceab/lib/appium_lib/ios/helper.rb#L183) ios
|
|
376
384
|
|
|
377
385
|
> def fast_duration
|
|
378
386
|
|
|
@@ -384,7 +392,7 @@ __Returns:__
|
|
|
384
392
|
|
|
385
393
|
--
|
|
386
394
|
|
|
387
|
-
##### [id](https://github.com/appium/ruby_lib/blob/
|
|
395
|
+
##### [id](https://github.com/appium/ruby_lib/blob/c92bd3710be09731aa8ba4547a3e19af9eeaceab/lib/appium_lib/ios/helper.rb#L190) ios
|
|
388
396
|
|
|
389
397
|
> def id id
|
|
390
398
|
|
|
@@ -400,7 +408,7 @@ __Returns:__
|
|
|
400
408
|
|
|
401
409
|
--
|
|
402
410
|
|
|
403
|
-
##### [alert_click](https://github.com/appium/ruby_lib/blob/
|
|
411
|
+
##### [alert_click](https://github.com/appium/ruby_lib/blob/c92bd3710be09731aa8ba4547a3e19af9eeaceab/lib/appium_lib/ios/element/alert.rb#L14) ios
|
|
404
412
|
|
|
405
413
|
> def alert_click value
|
|
406
414
|
|
|
@@ -423,7 +431,7 @@ __Returns:__
|
|
|
423
431
|
|
|
424
432
|
--
|
|
425
433
|
|
|
426
|
-
##### [alert_text](https://github.com/appium/ruby_lib/blob/
|
|
434
|
+
##### [alert_text](https://github.com/appium/ruby_lib/blob/c92bd3710be09731aa8ba4547a3e19af9eeaceab/lib/appium_lib/ios/element/alert.rb#L21) ios
|
|
427
435
|
|
|
428
436
|
> def alert_text
|
|
429
437
|
|
|
@@ -435,7 +443,7 @@ __Returns:__
|
|
|
435
443
|
|
|
436
444
|
--
|
|
437
445
|
|
|
438
|
-
##### [alert_accept](https://github.com/appium/ruby_lib/blob/
|
|
446
|
+
##### [alert_accept](https://github.com/appium/ruby_lib/blob/c92bd3710be09731aa8ba4547a3e19af9eeaceab/lib/appium_lib/ios/element/alert.rb#L30) ios
|
|
439
447
|
|
|
440
448
|
> def alert_accept
|
|
441
449
|
|
|
@@ -447,12 +455,13 @@ __Returns:__
|
|
|
447
455
|
|
|
448
456
|
--
|
|
449
457
|
|
|
450
|
-
##### [alert_accept_text](https://github.com/appium/ruby_lib/blob/
|
|
458
|
+
##### [alert_accept_text](https://github.com/appium/ruby_lib/blob/c92bd3710be09731aa8ba4547a3e19af9eeaceab/lib/appium_lib/ios/element/alert.rb#L40) ios
|
|
451
459
|
|
|
452
460
|
> def alert_accept_text
|
|
453
461
|
|
|
454
462
|
Get the text of the alert's accept button.
|
|
455
|
-
The last button is considered "accept."
|
|
463
|
+
The last button is considered "accept." on iOS 6
|
|
464
|
+
The first button is considered "accept." on iOS 7
|
|
456
465
|
|
|
457
466
|
__Returns:__
|
|
458
467
|
|
|
@@ -460,7 +469,7 @@ __Returns:__
|
|
|
460
469
|
|
|
461
470
|
--
|
|
462
471
|
|
|
463
|
-
##### [alert_dismiss](https://github.com/appium/ruby_lib/blob/
|
|
472
|
+
##### [alert_dismiss](https://github.com/appium/ruby_lib/blob/c92bd3710be09731aa8ba4547a3e19af9eeaceab/lib/appium_lib/ios/element/alert.rb#L64) ios
|
|
464
473
|
|
|
465
474
|
> def alert_dismiss
|
|
466
475
|
|
|
@@ -472,12 +481,13 @@ __Returns:__
|
|
|
472
481
|
|
|
473
482
|
--
|
|
474
483
|
|
|
475
|
-
##### [alert_dismiss_text](https://github.com/appium/ruby_lib/blob/
|
|
484
|
+
##### [alert_dismiss_text](https://github.com/appium/ruby_lib/blob/c92bd3710be09731aa8ba4547a3e19af9eeaceab/lib/appium_lib/ios/element/alert.rb#L74) ios
|
|
476
485
|
|
|
477
486
|
> def alert_dismiss_text
|
|
478
487
|
|
|
479
488
|
Get the text of the alert's dismiss button.
|
|
480
|
-
The first button is considered "dismiss."
|
|
489
|
+
The first button is considered "dismiss." on iOS 6
|
|
490
|
+
The last button is considered "dismiss." on iOS 7
|
|
481
491
|
|
|
482
492
|
__Returns:__
|
|
483
493
|
|
|
@@ -485,7 +495,7 @@ __Returns:__
|
|
|
485
495
|
|
|
486
496
|
--
|
|
487
497
|
|
|
488
|
-
##### [find](https://github.com/appium/ruby_lib/blob/
|
|
498
|
+
##### [find](https://github.com/appium/ruby_lib/blob/c92bd3710be09731aa8ba4547a3e19af9eeaceab/lib/appium_lib/ios/element/generic.rb#L61) ios
|
|
489
499
|
|
|
490
500
|
> def find text
|
|
491
501
|
|
|
@@ -501,7 +511,7 @@ __Returns:__
|
|
|
501
511
|
|
|
502
512
|
--
|
|
503
513
|
|
|
504
|
-
##### [finds](https://github.com/appium/ruby_lib/blob/
|
|
514
|
+
##### [finds](https://github.com/appium/ruby_lib/blob/c92bd3710be09731aa8ba4547a3e19af9eeaceab/lib/appium_lib/ios/element/generic.rb#L83) ios
|
|
505
515
|
|
|
506
516
|
> def finds text
|
|
507
517
|
|
|
@@ -517,7 +527,7 @@ __Returns:__
|
|
|
517
527
|
|
|
518
528
|
--
|
|
519
529
|
|
|
520
|
-
##### [text](https://github.com/appium/ruby_lib/blob/
|
|
530
|
+
##### [text](https://github.com/appium/ruby_lib/blob/c92bd3710be09731aa8ba4547a3e19af9eeaceab/lib/appium_lib/ios/element/generic.rb#L97) ios
|
|
521
531
|
|
|
522
532
|
> def text text
|
|
523
533
|
|
|
@@ -533,7 +543,7 @@ __Returns:__
|
|
|
533
543
|
|
|
534
544
|
--
|
|
535
545
|
|
|
536
|
-
##### [texts](https://github.com/appium/ruby_lib/blob/
|
|
546
|
+
##### [texts](https://github.com/appium/ruby_lib/blob/c92bd3710be09731aa8ba4547a3e19af9eeaceab/lib/appium_lib/ios/element/generic.rb#L105) ios
|
|
537
547
|
|
|
538
548
|
> def texts text
|
|
539
549
|
|
|
@@ -549,7 +559,7 @@ __Returns:__
|
|
|
549
559
|
|
|
550
560
|
--
|
|
551
561
|
|
|
552
|
-
##### [name](https://github.com/appium/ruby_lib/blob/
|
|
562
|
+
##### [name](https://github.com/appium/ruby_lib/blob/c92bd3710be09731aa8ba4547a3e19af9eeaceab/lib/appium_lib/ios/element/generic.rb#L117) ios
|
|
553
563
|
|
|
554
564
|
> def name name
|
|
555
565
|
|
|
@@ -567,7 +577,7 @@ __Returns:__
|
|
|
567
577
|
|
|
568
578
|
--
|
|
569
579
|
|
|
570
|
-
##### [names](https://github.com/appium/ruby_lib/blob/
|
|
580
|
+
##### [names](https://github.com/appium/ruby_lib/blob/c92bd3710be09731aa8ba4547a3e19af9eeaceab/lib/appium_lib/ios/element/generic.rb#L126) ios
|
|
571
581
|
|
|
572
582
|
> def names name
|
|
573
583
|
|
|
@@ -585,7 +595,7 @@ __Returns:__
|
|
|
585
595
|
|
|
586
596
|
--
|
|
587
597
|
|
|
588
|
-
##### [locate_single_textfield](https://github.com/appium/ruby_lib/blob/
|
|
598
|
+
##### [locate_single_textfield](https://github.com/appium/ruby_lib/blob/c92bd3710be09731aa8ba4547a3e19af9eeaceab/lib/appium_lib/ios/element/textfield.rb#L8) ios
|
|
589
599
|
|
|
590
600
|
> def locate_single_textfield js
|
|
591
601
|
|
|
@@ -596,7 +606,7 @@ to match Android.
|
|
|
596
606
|
|
|
597
607
|
--
|
|
598
608
|
|
|
599
|
-
##### [textfields](https://github.com/appium/ruby_lib/blob/
|
|
609
|
+
##### [textfields](https://github.com/appium/ruby_lib/blob/c92bd3710be09731aa8ba4547a3e19af9eeaceab/lib/appium_lib/ios/element/textfield.rb#L18) ios
|
|
600
610
|
|
|
601
611
|
> def textfields
|
|
602
612
|
|
|
@@ -609,7 +619,7 @@ __Returns:__
|
|
|
609
619
|
|
|
610
620
|
--
|
|
611
621
|
|
|
612
|
-
##### [e_textfields](https://github.com/appium/ruby_lib/blob/
|
|
622
|
+
##### [e_textfields](https://github.com/appium/ruby_lib/blob/c92bd3710be09731aa8ba4547a3e19af9eeaceab/lib/appium_lib/ios/element/textfield.rb#L24) ios
|
|
613
623
|
|
|
614
624
|
> def e_textfields
|
|
615
625
|
|
|
@@ -621,7 +631,7 @@ __Returns:__
|
|
|
621
631
|
|
|
622
632
|
--
|
|
623
633
|
|
|
624
|
-
##### [first_textfield](https://github.com/appium/ruby_lib/blob/
|
|
634
|
+
##### [first_textfield](https://github.com/appium/ruby_lib/blob/c92bd3710be09731aa8ba4547a3e19af9eeaceab/lib/appium_lib/ios/element/textfield.rb#L30) ios
|
|
625
635
|
|
|
626
636
|
> def first_textfield
|
|
627
637
|
|
|
@@ -633,7 +643,7 @@ __Returns:__
|
|
|
633
643
|
|
|
634
644
|
--
|
|
635
645
|
|
|
636
|
-
##### [last_textfield](https://github.com/appium/ruby_lib/blob/
|
|
646
|
+
##### [last_textfield](https://github.com/appium/ruby_lib/blob/c92bd3710be09731aa8ba4547a3e19af9eeaceab/lib/appium_lib/ios/element/textfield.rb#L36) ios
|
|
637
647
|
|
|
638
648
|
> def last_textfield
|
|
639
649
|
|
|
@@ -645,7 +655,7 @@ __Returns:__
|
|
|
645
655
|
|
|
646
656
|
--
|
|
647
657
|
|
|
648
|
-
##### [textfield](https://github.com/appium/ruby_lib/blob/
|
|
658
|
+
##### [textfield](https://github.com/appium/ruby_lib/blob/c92bd3710be09731aa8ba4547a3e19af9eeaceab/lib/appium_lib/ios/element/textfield.rb#L43) ios
|
|
649
659
|
|
|
650
660
|
> def textfield text
|
|
651
661
|
|
|
@@ -661,7 +671,7 @@ __Returns:__
|
|
|
661
671
|
|
|
662
672
|
--
|
|
663
673
|
|
|
664
|
-
##### [textfield_include](https://github.com/appium/ruby_lib/blob/
|
|
674
|
+
##### [textfield_include](https://github.com/appium/ruby_lib/blob/c92bd3710be09731aa8ba4547a3e19af9eeaceab/lib/appium_lib/ios/element/textfield.rb#L57) ios
|
|
665
675
|
|
|
666
676
|
> def textfield_include text
|
|
667
677
|
|
|
@@ -677,7 +687,7 @@ __Returns:__
|
|
|
677
687
|
|
|
678
688
|
--
|
|
679
689
|
|
|
680
|
-
##### [textfield_exact](https://github.com/appium/ruby_lib/blob/
|
|
690
|
+
##### [textfield_exact](https://github.com/appium/ruby_lib/blob/c92bd3710be09731aa8ba4547a3e19af9eeaceab/lib/appium_lib/ios/element/textfield.rb#L64) ios
|
|
681
691
|
|
|
682
692
|
> def textfield_exact text
|
|
683
693
|
|
|
@@ -693,7 +703,7 @@ __Returns:__
|
|
|
693
703
|
|
|
694
704
|
--
|
|
695
705
|
|
|
696
|
-
##### [wait](https://github.com/appium/ruby_lib/blob/
|
|
706
|
+
##### [wait](https://github.com/appium/ruby_lib/blob/c92bd3710be09731aa8ba4547a3e19af9eeaceab/lib/appium_lib/common/helper.rb#L33)
|
|
697
707
|
|
|
698
708
|
> def wait max_wait=-1, interval=0.5, &block
|
|
699
709
|
|
|
@@ -720,7 +730,7 @@ __Returns:__
|
|
|
720
730
|
|
|
721
731
|
--
|
|
722
732
|
|
|
723
|
-
##### [ignore](https://github.com/appium/ruby_lib/blob/
|
|
733
|
+
##### [ignore](https://github.com/appium/ruby_lib/blob/c92bd3710be09731aa8ba4547a3e19af9eeaceab/lib/appium_lib/common/helper.rb#L53)
|
|
724
734
|
|
|
725
735
|
> def ignore &block
|
|
726
736
|
|
|
@@ -728,7 +738,7 @@ Return block.call and ignore any exceptions.
|
|
|
728
738
|
|
|
729
739
|
--
|
|
730
740
|
|
|
731
|
-
##### [wait_true](https://github.com/appium/ruby_lib/blob/
|
|
741
|
+
##### [wait_true](https://github.com/appium/ruby_lib/blob/c92bd3710be09731aa8ba4547a3e19af9eeaceab/lib/appium_lib/common/helper.rb#L63)
|
|
732
742
|
|
|
733
743
|
> def wait_true max_wait=-1, interval=0.5, &block
|
|
734
744
|
|
|
@@ -749,7 +759,7 @@ __Returns:__
|
|
|
749
759
|
|
|
750
760
|
--
|
|
751
761
|
|
|
752
|
-
##### [back](https://github.com/appium/ruby_lib/blob/
|
|
762
|
+
##### [back](https://github.com/appium/ruby_lib/blob/c92bd3710be09731aa8ba4547a3e19af9eeaceab/lib/appium_lib/common/helper.rb#L84)
|
|
753
763
|
|
|
754
764
|
> def back
|
|
755
765
|
|
|
@@ -761,7 +771,7 @@ __Returns:__
|
|
|
761
771
|
|
|
762
772
|
--
|
|
763
773
|
|
|
764
|
-
##### [session_id](https://github.com/appium/ruby_lib/blob/
|
|
774
|
+
##### [session_id](https://github.com/appium/ruby_lib/blob/c92bd3710be09731aa8ba4547a3e19af9eeaceab/lib/appium_lib/common/helper.rb#L89)
|
|
765
775
|
|
|
766
776
|
> def session_id
|
|
767
777
|
|
|
@@ -769,7 +779,7 @@ For Sauce Labs reporting. Returns the current session id.
|
|
|
769
779
|
|
|
770
780
|
--
|
|
771
781
|
|
|
772
|
-
##### [xpath](https://github.com/appium/ruby_lib/blob/
|
|
782
|
+
##### [xpath](https://github.com/appium/ruby_lib/blob/c92bd3710be09731aa8ba4547a3e19af9eeaceab/lib/appium_lib/common/helper.rb#L97)
|
|
773
783
|
|
|
774
784
|
> def xpath xpath_str
|
|
775
785
|
|
|
@@ -785,7 +795,7 @@ __Returns:__
|
|
|
785
795
|
|
|
786
796
|
--
|
|
787
797
|
|
|
788
|
-
##### [xpaths](https://github.com/appium/ruby_lib/blob/
|
|
798
|
+
##### [xpaths](https://github.com/appium/ruby_lib/blob/c92bd3710be09731aa8ba4547a3e19af9eeaceab/lib/appium_lib/common/helper.rb#L105)
|
|
789
799
|
|
|
790
800
|
> def xpaths xpath_str
|
|
791
801
|
|
|
@@ -801,7 +811,7 @@ __Returns:__
|
|
|
801
811
|
|
|
802
812
|
--
|
|
803
813
|
|
|
804
|
-
##### [ele_index](https://github.com/appium/ruby_lib/blob/
|
|
814
|
+
##### [ele_index](https://github.com/appium/ruby_lib/blob/c92bd3710be09731aa8ba4547a3e19af9eeaceab/lib/appium_lib/common/helper.rb#L113)
|
|
805
815
|
|
|
806
816
|
> def ele_index tag_name, index
|
|
807
817
|
|
|
@@ -819,7 +829,7 @@ __Returns:__
|
|
|
819
829
|
|
|
820
830
|
--
|
|
821
831
|
|
|
822
|
-
##### [find_eles](https://github.com/appium/ruby_lib/blob/
|
|
832
|
+
##### [find_eles](https://github.com/appium/ruby_lib/blob/c92bd3710be09731aa8ba4547a3e19af9eeaceab/lib/appium_lib/common/helper.rb#L122)
|
|
823
833
|
|
|
824
834
|
> def find_eles tag_name
|
|
825
835
|
|
|
@@ -835,7 +845,7 @@ __Returns:__
|
|
|
835
845
|
|
|
836
846
|
--
|
|
837
847
|
|
|
838
|
-
##### [find_ele_by_text](https://github.com/appium/ruby_lib/blob/
|
|
848
|
+
##### [find_ele_by_text](https://github.com/appium/ruby_lib/blob/c92bd3710be09731aa8ba4547a3e19af9eeaceab/lib/appium_lib/common/helper.rb#L130)
|
|
839
849
|
|
|
840
850
|
> def find_ele_by_text tag, text
|
|
841
851
|
|
|
@@ -853,7 +863,7 @@ __Returns:__
|
|
|
853
863
|
|
|
854
864
|
--
|
|
855
865
|
|
|
856
|
-
##### [find_eles_by_text](https://github.com/appium/ruby_lib/blob/
|
|
866
|
+
##### [find_eles_by_text](https://github.com/appium/ruby_lib/blob/c92bd3710be09731aa8ba4547a3e19af9eeaceab/lib/appium_lib/common/helper.rb#L138)
|
|
857
867
|
|
|
858
868
|
> def find_eles_by_text tag, text
|
|
859
869
|
|
|
@@ -871,7 +881,7 @@ __Returns:__
|
|
|
871
881
|
|
|
872
882
|
--
|
|
873
883
|
|
|
874
|
-
##### [find_ele_by_attr_include](https://github.com/appium/ruby_lib/blob/
|
|
884
|
+
##### [find_ele_by_attr_include](https://github.com/appium/ruby_lib/blob/c92bd3710be09731aa8ba4547a3e19af9eeaceab/lib/appium_lib/common/helper.rb#L147)
|
|
875
885
|
|
|
876
886
|
> def find_ele_by_attr_include tag, attr, value
|
|
877
887
|
|
|
@@ -891,7 +901,7 @@ __Returns:__
|
|
|
891
901
|
|
|
892
902
|
--
|
|
893
903
|
|
|
894
|
-
##### [find_eles_by_attr_include](https://github.com/appium/ruby_lib/blob/
|
|
904
|
+
##### [find_eles_by_attr_include](https://github.com/appium/ruby_lib/blob/c92bd3710be09731aa8ba4547a3e19af9eeaceab/lib/appium_lib/common/helper.rb#L156)
|
|
895
905
|
|
|
896
906
|
> def find_eles_by_attr_include tag, attr, value
|
|
897
907
|
|
|
@@ -911,7 +921,7 @@ __Returns:__
|
|
|
911
921
|
|
|
912
922
|
--
|
|
913
923
|
|
|
914
|
-
##### [find_ele_by_text_include](https://github.com/appium/ruby_lib/blob/
|
|
924
|
+
##### [find_ele_by_text_include](https://github.com/appium/ruby_lib/blob/c92bd3710be09731aa8ba4547a3e19af9eeaceab/lib/appium_lib/common/helper.rb#L165)
|
|
915
925
|
|
|
916
926
|
> def find_ele_by_text_include tag, text
|
|
917
927
|
|
|
@@ -930,7 +940,7 @@ __Returns:__
|
|
|
930
940
|
|
|
931
941
|
--
|
|
932
942
|
|
|
933
|
-
##### [find_eles_by_text_include](https://github.com/appium/ruby_lib/blob/
|
|
943
|
+
##### [find_eles_by_text_include](https://github.com/appium/ruby_lib/blob/c92bd3710be09731aa8ba4547a3e19af9eeaceab/lib/appium_lib/common/helper.rb#L174)
|
|
934
944
|
|
|
935
945
|
> def find_eles_by_text_include tag, text
|
|
936
946
|
|
|
@@ -949,7 +959,7 @@ __Returns:__
|
|
|
949
959
|
|
|
950
960
|
--
|
|
951
961
|
|
|
952
|
-
##### [first_ele](https://github.com/appium/ruby_lib/blob/
|
|
962
|
+
##### [first_ele](https://github.com/appium/ruby_lib/blob/c92bd3710be09731aa8ba4547a3e19af9eeaceab/lib/appium_lib/common/helper.rb#L181)
|
|
953
963
|
|
|
954
964
|
> def first_ele tag_name
|
|
955
965
|
|
|
@@ -965,7 +975,7 @@ __Returns:__
|
|
|
965
975
|
|
|
966
976
|
--
|
|
967
977
|
|
|
968
|
-
##### [last_ele](https://github.com/appium/ruby_lib/blob/
|
|
978
|
+
##### [last_ele](https://github.com/appium/ruby_lib/blob/c92bd3710be09731aa8ba4547a3e19af9eeaceab/lib/appium_lib/common/helper.rb#L189)
|
|
969
979
|
|
|
970
980
|
> def last_ele tag_name
|
|
971
981
|
|
|
@@ -981,7 +991,7 @@ __Returns:__
|
|
|
981
991
|
|
|
982
992
|
--
|
|
983
993
|
|
|
984
|
-
##### [source](https://github.com/appium/ruby_lib/blob/
|
|
994
|
+
##### [source](https://github.com/appium/ruby_lib/blob/c92bd3710be09731aa8ba4547a3e19af9eeaceab/lib/appium_lib/common/helper.rb#L195)
|
|
985
995
|
|
|
986
996
|
> def source
|
|
987
997
|
|
|
@@ -993,7 +1003,7 @@ __Returns:__
|
|
|
993
1003
|
|
|
994
1004
|
--
|
|
995
1005
|
|
|
996
|
-
##### [get_source](https://github.com/appium/ruby_lib/blob/
|
|
1006
|
+
##### [get_source](https://github.com/appium/ruby_lib/blob/c92bd3710be09731aa8ba4547a3e19af9eeaceab/lib/appium_lib/common/helper.rb#L201)
|
|
997
1007
|
|
|
998
1008
|
> def get_source
|
|
999
1009
|
|
|
@@ -1005,7 +1015,7 @@ __Returns:__
|
|
|
1005
1015
|
|
|
1006
1016
|
--
|
|
1007
1017
|
|
|
1008
|
-
##### [find_name](https://github.com/appium/ruby_lib/blob/
|
|
1018
|
+
##### [find_name](https://github.com/appium/ruby_lib/blob/c92bd3710be09731aa8ba4547a3e19af9eeaceab/lib/appium_lib/common/helper.rb#L210)
|
|
1009
1019
|
|
|
1010
1020
|
> def find_name name
|
|
1011
1021
|
|
|
@@ -1021,7 +1031,7 @@ __Returns:__
|
|
|
1021
1031
|
|
|
1022
1032
|
--
|
|
1023
1033
|
|
|
1024
|
-
##### [find_names](https://github.com/appium/ruby_lib/blob/
|
|
1034
|
+
##### [find_names](https://github.com/appium/ruby_lib/blob/c92bd3710be09731aa8ba4547a3e19af9eeaceab/lib/appium_lib/common/helper.rb#L218)
|
|
1025
1035
|
|
|
1026
1036
|
> def find_names name
|
|
1027
1037
|
|
|
@@ -1037,7 +1047,7 @@ __Returns:__
|
|
|
1037
1047
|
|
|
1038
1048
|
--
|
|
1039
1049
|
|
|
1040
|
-
##### [tag](https://github.com/appium/ruby_lib/blob/
|
|
1050
|
+
##### [tag](https://github.com/appium/ruby_lib/blob/c92bd3710be09731aa8ba4547a3e19af9eeaceab/lib/appium_lib/common/helper.rb#L226)
|
|
1041
1051
|
|
|
1042
1052
|
> def tag tag_name
|
|
1043
1053
|
|
|
@@ -1053,7 +1063,7 @@ __Returns:__
|
|
|
1053
1063
|
|
|
1054
1064
|
--
|
|
1055
1065
|
|
|
1056
|
-
##### [px_to_window_rel](https://github.com/appium/ruby_lib/blob/
|
|
1066
|
+
##### [px_to_window_rel](https://github.com/appium/ruby_lib/blob/c92bd3710be09731aa8ba4547a3e19af9eeaceab/lib/appium_lib/common/helper.rb#L236)
|
|
1057
1067
|
|
|
1058
1068
|
> def px_to_window_rel opts={}
|
|
1059
1069
|
|
|
@@ -1065,7 +1075,7 @@ px_to_window_rel x: 50, y: 150
|
|
|
1065
1075
|
|
|
1066
1076
|
--
|
|
1067
1077
|
|
|
1068
|
-
##### [lazy_load_strings](https://github.com/appium/ruby_lib/blob/
|
|
1078
|
+
##### [lazy_load_strings](https://github.com/appium/ruby_lib/blob/c92bd3710be09731aa8ba4547a3e19af9eeaceab/lib/appium_lib/common/helper.rb#L246)
|
|
1069
1079
|
|
|
1070
1080
|
> def lazy_load_strings
|
|
1071
1081
|
|
|
@@ -1073,7 +1083,7 @@ px_to_window_rel x: 50, y: 150
|
|
|
1073
1083
|
|
|
1074
1084
|
--
|
|
1075
1085
|
|
|
1076
|
-
##### [xml_keys](https://github.com/appium/ruby_lib/blob/
|
|
1086
|
+
##### [xml_keys](https://github.com/appium/ruby_lib/blob/c92bd3710be09731aa8ba4547a3e19af9eeaceab/lib/appium_lib/common/helper.rb#L253)
|
|
1077
1087
|
|
|
1078
1088
|
> def xml_keys target
|
|
1079
1089
|
|
|
@@ -1089,7 +1099,7 @@ __Returns:__
|
|
|
1089
1099
|
|
|
1090
1100
|
--
|
|
1091
1101
|
|
|
1092
|
-
##### [xml_values](https://github.com/appium/ruby_lib/blob/
|
|
1102
|
+
##### [xml_values](https://github.com/appium/ruby_lib/blob/c92bd3710be09731aa8ba4547a3e19af9eeaceab/lib/appium_lib/common/helper.rb#L261)
|
|
1093
1103
|
|
|
1094
1104
|
> def xml_values target
|
|
1095
1105
|
|
|
@@ -1105,7 +1115,7 @@ __Returns:__
|
|
|
1105
1115
|
|
|
1106
1116
|
--
|
|
1107
1117
|
|
|
1108
|
-
##### [resolve_id](https://github.com/appium/ruby_lib/blob/
|
|
1118
|
+
##### [resolve_id](https://github.com/appium/ruby_lib/blob/c92bd3710be09731aa8ba4547a3e19af9eeaceab/lib/appium_lib/common/helper.rb#L269)
|
|
1109
1119
|
|
|
1110
1120
|
> def resolve_id id
|
|
1111
1121
|
|
|
@@ -1121,7 +1131,7 @@ __Returns:__
|
|
|
1121
1131
|
|
|
1122
1132
|
--
|
|
1123
1133
|
|
|
1124
|
-
##### [raise_no_element_error](https://github.com/appium/ruby_lib/blob/
|
|
1134
|
+
##### [raise_no_element_error](https://github.com/appium/ruby_lib/blob/c92bd3710be09731aa8ba4547a3e19af9eeaceab/lib/appium_lib/common/helper.rb#L275)
|
|
1125
1135
|
|
|
1126
1136
|
> def raise_no_element_error
|
|
1127
1137
|
|
|
@@ -1129,7 +1139,7 @@ Used to error when finding a single element fails.
|
|
|
1129
1139
|
|
|
1130
1140
|
--
|
|
1131
1141
|
|
|
1132
|
-
##### [value](https://github.com/appium/ruby_lib/blob/
|
|
1142
|
+
##### [value](https://github.com/appium/ruby_lib/blob/c92bd3710be09731aa8ba4547a3e19af9eeaceab/lib/appium_lib/common/patch.rb#L32)
|
|
1133
1143
|
|
|
1134
1144
|
> def value
|
|
1135
1145
|
|
|
@@ -1139,7 +1149,7 @@ Fixes NoMethodError: undefined method `value' for Selenium::WebDriver::Element
|
|
|
1139
1149
|
|
|
1140
1150
|
--
|
|
1141
1151
|
|
|
1142
|
-
##### [name](https://github.com/appium/ruby_lib/blob/
|
|
1152
|
+
##### [name](https://github.com/appium/ruby_lib/blob/c92bd3710be09731aa8ba4547a3e19af9eeaceab/lib/appium_lib/common/patch.rb#L39)
|
|
1143
1153
|
|
|
1144
1154
|
> def name
|
|
1145
1155
|
|
|
@@ -1149,7 +1159,7 @@ Fixes NoMethodError: undefined method `name' for Selenium::WebDriver::Element
|
|
|
1149
1159
|
|
|
1150
1160
|
--
|
|
1151
1161
|
|
|
1152
|
-
##### [tag_name](https://github.com/appium/ruby_lib/blob/
|
|
1162
|
+
##### [tag_name](https://github.com/appium/ruby_lib/blob/c92bd3710be09731aa8ba4547a3e19af9eeaceab/lib/appium_lib/common/patch.rb#L46)
|
|
1153
1163
|
|
|
1154
1164
|
> def tag_name
|
|
1155
1165
|
|
|
@@ -1159,7 +1169,7 @@ Fixes Selenium::WebDriver::Error::UnknownError: Not yet implemented
|
|
|
1159
1169
|
|
|
1160
1170
|
--
|
|
1161
1171
|
|
|
1162
|
-
##### [location_rel](https://github.com/appium/ruby_lib/blob/
|
|
1172
|
+
##### [location_rel](https://github.com/appium/ruby_lib/blob/c92bd3710be09731aa8ba4547a3e19af9eeaceab/lib/appium_lib/common/patch.rb#L58)
|
|
1163
1173
|
|
|
1164
1174
|
> def location_rel
|
|
1165
1175
|
|
|
@@ -1177,7 +1187,7 @@ __Returns:__
|
|
|
1177
1187
|
|
|
1178
1188
|
--
|
|
1179
1189
|
|
|
1180
|
-
##### [CORE](https://github.com/appium/ruby_lib/blob/
|
|
1190
|
+
##### [CORE](https://github.com/appium/ruby_lib/blob/c92bd3710be09731aa8ba4547a3e19af9eeaceab/lib/appium_lib/driver.rb#L16)
|
|
1181
1191
|
|
|
1182
1192
|
> CORE = [ :array, :hash, :class, :file, :dir, :bigdecimal, :rational, :struct, :openstruct, :method, :unboundmethod ]
|
|
1183
1193
|
|
|
@@ -1185,7 +1195,7 @@ __Returns:__
|
|
|
1185
1195
|
|
|
1186
1196
|
--
|
|
1187
1197
|
|
|
1188
|
-
##### [awesome_openstruct](https://github.com/appium/ruby_lib/blob/
|
|
1198
|
+
##### [awesome_openstruct](https://github.com/appium/ruby_lib/blob/c92bd3710be09731aa8ba4547a3e19af9eeaceab/lib/appium_lib/driver.rb#L18)
|
|
1189
1199
|
|
|
1190
1200
|
> def awesome_openstruct target
|
|
1191
1201
|
|
|
@@ -1193,7 +1203,7 @@ __Returns:__
|
|
|
1193
1203
|
|
|
1194
1204
|
--
|
|
1195
1205
|
|
|
1196
|
-
##### [load_appium_txt](https://github.com/appium/ruby_lib/blob/
|
|
1206
|
+
##### [load_appium_txt](https://github.com/appium/ruby_lib/blob/c92bd3710be09731aa8ba4547a3e19af9eeaceab/lib/appium_lib/driver.rb#L28)
|
|
1197
1207
|
|
|
1198
1208
|
> def load_appium_txt opts
|
|
1199
1209
|
|
|
@@ -1210,7 +1220,7 @@ __Returns:__
|
|
|
1210
1220
|
|
|
1211
1221
|
--
|
|
1212
1222
|
|
|
1213
|
-
##### [promote_singleton_appium_methods](https://github.com/appium/ruby_lib/blob/
|
|
1223
|
+
##### [promote_singleton_appium_methods](https://github.com/appium/ruby_lib/blob/c92bd3710be09731aa8ba4547a3e19af9eeaceab/lib/appium_lib/driver.rb#L154)
|
|
1214
1224
|
|
|
1215
1225
|
> def self.promote_singleton_appium_methods main_module
|
|
1216
1226
|
|
|
@@ -1218,7 +1228,7 @@ __Returns:__
|
|
|
1218
1228
|
|
|
1219
1229
|
--
|
|
1220
1230
|
|
|
1221
|
-
##### [promote_appium_methods](https://github.com/appium/ruby_lib/blob/
|
|
1231
|
+
##### [promote_appium_methods](https://github.com/appium/ruby_lib/blob/c92bd3710be09731aa8ba4547a3e19af9eeaceab/lib/appium_lib/driver.rb#L184)
|
|
1222
1232
|
|
|
1223
1233
|
> def self.promote_appium_methods class_array
|
|
1224
1234
|
|
|
@@ -1236,7 +1246,7 @@ __Parameters:__
|
|
|
1236
1246
|
|
|
1237
1247
|
--
|
|
1238
1248
|
|
|
1239
|
-
##### [default_wait](https://github.com/appium/ruby_lib/blob/
|
|
1249
|
+
##### [default_wait](https://github.com/appium/ruby_lib/blob/c92bd3710be09731aa8ba4547a3e19af9eeaceab/lib/appium_lib/driver.rb#L515)
|
|
1240
1250
|
|
|
1241
1251
|
> def default_wait
|
|
1242
1252
|
|
|
@@ -1249,7 +1259,7 @@ __Returns:__
|
|
|
1249
1259
|
|
|
1250
1260
|
--
|
|
1251
1261
|
|
|
1252
|
-
##### [app_path](https://github.com/appium/ruby_lib/blob/
|
|
1262
|
+
##### [app_path](https://github.com/appium/ruby_lib/blob/c92bd3710be09731aa8ba4547a3e19af9eeaceab/lib/appium_lib/driver.rb#L213)
|
|
1253
1263
|
|
|
1254
1264
|
> def app_path
|
|
1255
1265
|
|
|
@@ -1257,7 +1267,7 @@ Returns the value of attribute app_path
|
|
|
1257
1267
|
|
|
1258
1268
|
--
|
|
1259
1269
|
|
|
1260
|
-
##### [app_name](https://github.com/appium/ruby_lib/blob/
|
|
1270
|
+
##### [app_name](https://github.com/appium/ruby_lib/blob/c92bd3710be09731aa8ba4547a3e19af9eeaceab/lib/appium_lib/driver.rb#L213)
|
|
1261
1271
|
|
|
1262
1272
|
> def app_name
|
|
1263
1273
|
|
|
@@ -1265,7 +1275,7 @@ Returns the value of attribute app_name
|
|
|
1265
1275
|
|
|
1266
1276
|
--
|
|
1267
1277
|
|
|
1268
|
-
##### [device](https://github.com/appium/ruby_lib/blob/
|
|
1278
|
+
##### [device](https://github.com/appium/ruby_lib/blob/c92bd3710be09731aa8ba4547a3e19af9eeaceab/lib/appium_lib/driver.rb#L213)
|
|
1269
1279
|
|
|
1270
1280
|
> def device
|
|
1271
1281
|
|
|
@@ -1273,7 +1283,7 @@ Returns the value of attribute device
|
|
|
1273
1283
|
|
|
1274
1284
|
--
|
|
1275
1285
|
|
|
1276
|
-
##### [app_package](https://github.com/appium/ruby_lib/blob/
|
|
1286
|
+
##### [app_package](https://github.com/appium/ruby_lib/blob/c92bd3710be09731aa8ba4547a3e19af9eeaceab/lib/appium_lib/driver.rb#L213)
|
|
1277
1287
|
|
|
1278
1288
|
> def app_package
|
|
1279
1289
|
|
|
@@ -1281,7 +1291,7 @@ Returns the value of attribute app_package
|
|
|
1281
1291
|
|
|
1282
1292
|
--
|
|
1283
1293
|
|
|
1284
|
-
##### [app_activity](https://github.com/appium/ruby_lib/blob/
|
|
1294
|
+
##### [app_activity](https://github.com/appium/ruby_lib/blob/c92bd3710be09731aa8ba4547a3e19af9eeaceab/lib/appium_lib/driver.rb#L213)
|
|
1285
1295
|
|
|
1286
1296
|
> def app_activity
|
|
1287
1297
|
|
|
@@ -1289,7 +1299,7 @@ Returns the value of attribute app_activity
|
|
|
1289
1299
|
|
|
1290
1300
|
--
|
|
1291
1301
|
|
|
1292
|
-
##### [app_wait_activity](https://github.com/appium/ruby_lib/blob/
|
|
1302
|
+
##### [app_wait_activity](https://github.com/appium/ruby_lib/blob/c92bd3710be09731aa8ba4547a3e19af9eeaceab/lib/appium_lib/driver.rb#L213)
|
|
1293
1303
|
|
|
1294
1304
|
> def app_wait_activity
|
|
1295
1305
|
|
|
@@ -1297,7 +1307,7 @@ Returns the value of attribute app_wait_activity
|
|
|
1297
1307
|
|
|
1298
1308
|
--
|
|
1299
1309
|
|
|
1300
|
-
##### [sauce_username](https://github.com/appium/ruby_lib/blob/
|
|
1310
|
+
##### [sauce_username](https://github.com/appium/ruby_lib/blob/c92bd3710be09731aa8ba4547a3e19af9eeaceab/lib/appium_lib/driver.rb#L213)
|
|
1301
1311
|
|
|
1302
1312
|
> def sauce_username
|
|
1303
1313
|
|
|
@@ -1305,7 +1315,7 @@ Returns the value of attribute sauce_username
|
|
|
1305
1315
|
|
|
1306
1316
|
--
|
|
1307
1317
|
|
|
1308
|
-
##### [sauce_access_key](https://github.com/appium/ruby_lib/blob/
|
|
1318
|
+
##### [sauce_access_key](https://github.com/appium/ruby_lib/blob/c92bd3710be09731aa8ba4547a3e19af9eeaceab/lib/appium_lib/driver.rb#L213)
|
|
1309
1319
|
|
|
1310
1320
|
> def sauce_access_key
|
|
1311
1321
|
|
|
@@ -1313,7 +1323,7 @@ Returns the value of attribute sauce_access_key
|
|
|
1313
1323
|
|
|
1314
1324
|
--
|
|
1315
1325
|
|
|
1316
|
-
##### [port](https://github.com/appium/ruby_lib/blob/
|
|
1326
|
+
##### [port](https://github.com/appium/ruby_lib/blob/c92bd3710be09731aa8ba4547a3e19af9eeaceab/lib/appium_lib/driver.rb#L213)
|
|
1317
1327
|
|
|
1318
1328
|
> def port
|
|
1319
1329
|
|
|
@@ -1321,7 +1331,7 @@ Returns the value of attribute port
|
|
|
1321
1331
|
|
|
1322
1332
|
--
|
|
1323
1333
|
|
|
1324
|
-
##### [debug](https://github.com/appium/ruby_lib/blob/
|
|
1334
|
+
##### [debug](https://github.com/appium/ruby_lib/blob/c92bd3710be09731aa8ba4547a3e19af9eeaceab/lib/appium_lib/driver.rb#L213)
|
|
1325
1335
|
|
|
1326
1336
|
> def debug
|
|
1327
1337
|
|
|
@@ -1329,7 +1339,7 @@ Returns the value of attribute debug
|
|
|
1329
1339
|
|
|
1330
1340
|
--
|
|
1331
1341
|
|
|
1332
|
-
##### [export_session](https://github.com/appium/ruby_lib/blob/
|
|
1342
|
+
##### [export_session](https://github.com/appium/ruby_lib/blob/c92bd3710be09731aa8ba4547a3e19af9eeaceab/lib/appium_lib/driver.rb#L213)
|
|
1333
1343
|
|
|
1334
1344
|
> def export_session
|
|
1335
1345
|
|
|
@@ -1337,7 +1347,7 @@ Returns the value of attribute export_session
|
|
|
1337
1347
|
|
|
1338
1348
|
--
|
|
1339
1349
|
|
|
1340
|
-
##### [device_cap](https://github.com/appium/ruby_lib/blob/
|
|
1350
|
+
##### [device_cap](https://github.com/appium/ruby_lib/blob/c92bd3710be09731aa8ba4547a3e19af9eeaceab/lib/appium_lib/driver.rb#L213)
|
|
1341
1351
|
|
|
1342
1352
|
> def device_cap
|
|
1343
1353
|
|
|
@@ -1345,7 +1355,7 @@ Returns the value of attribute device_cap
|
|
|
1345
1355
|
|
|
1346
1356
|
--
|
|
1347
1357
|
|
|
1348
|
-
##### [compress_xml](https://github.com/appium/ruby_lib/blob/
|
|
1358
|
+
##### [compress_xml](https://github.com/appium/ruby_lib/blob/c92bd3710be09731aa8ba4547a3e19af9eeaceab/lib/appium_lib/driver.rb#L213)
|
|
1349
1359
|
|
|
1350
1360
|
> def compress_xml
|
|
1351
1361
|
|
|
@@ -1353,7 +1363,7 @@ Returns the value of attribute compress_xml
|
|
|
1353
1363
|
|
|
1354
1364
|
--
|
|
1355
1365
|
|
|
1356
|
-
##### [custom_url](https://github.com/appium/ruby_lib/blob/
|
|
1366
|
+
##### [custom_url](https://github.com/appium/ruby_lib/blob/c92bd3710be09731aa8ba4547a3e19af9eeaceab/lib/appium_lib/driver.rb#L213)
|
|
1357
1367
|
|
|
1358
1368
|
> def custom_url
|
|
1359
1369
|
|
|
@@ -1361,7 +1371,7 @@ Returns the value of attribute custom_url
|
|
|
1361
1371
|
|
|
1362
1372
|
--
|
|
1363
1373
|
|
|
1364
|
-
##### [global_webdriver_http_sleep](https://github.com/appium/ruby_lib/blob/
|
|
1374
|
+
##### [global_webdriver_http_sleep](https://github.com/appium/ruby_lib/blob/c92bd3710be09731aa8ba4547a3e19af9eeaceab/lib/appium_lib/driver.rb#L219)
|
|
1365
1375
|
|
|
1366
1376
|
> def global_webdriver_http_sleep
|
|
1367
1377
|
|
|
@@ -1369,7 +1379,7 @@ The amount to sleep in seconds before every webdriver http call.
|
|
|
1369
1379
|
|
|
1370
1380
|
--
|
|
1371
1381
|
|
|
1372
|
-
##### [global_webdriver_http_sleep=](https://github.com/appium/ruby_lib/blob/
|
|
1382
|
+
##### [global_webdriver_http_sleep=](https://github.com/appium/ruby_lib/blob/c92bd3710be09731aa8ba4547a3e19af9eeaceab/lib/appium_lib/driver.rb#L219)
|
|
1373
1383
|
|
|
1374
1384
|
> def global_webdriver_http_sleep=(value)
|
|
1375
1385
|
|
|
@@ -1377,7 +1387,7 @@ The amount to sleep in seconds before every webdriver http call.
|
|
|
1377
1387
|
|
|
1378
1388
|
--
|
|
1379
1389
|
|
|
1380
|
-
##### [initialize](https://github.com/appium/ruby_lib/blob/
|
|
1390
|
+
##### [initialize](https://github.com/appium/ruby_lib/blob/c92bd3710be09731aa8ba4547a3e19af9eeaceab/lib/appium_lib/driver.rb#L249)
|
|
1381
1391
|
|
|
1382
1392
|
> def initialize opts={}
|
|
1383
1393
|
|
|
@@ -1418,7 +1428,7 @@ __Returns:__
|
|
|
1418
1428
|
|
|
1419
1429
|
--
|
|
1420
1430
|
|
|
1421
|
-
##### [status](https://github.com/appium/ruby_lib/blob/
|
|
1431
|
+
##### [status](https://github.com/appium/ruby_lib/blob/c92bd3710be09731aa8ba4547a3e19af9eeaceab/lib/appium_lib/driver.rb#L356)
|
|
1422
1432
|
|
|
1423
1433
|
> def status
|
|
1424
1434
|
|
|
@@ -1444,7 +1454,7 @@ __Returns:__
|
|
|
1444
1454
|
|
|
1445
1455
|
--
|
|
1446
1456
|
|
|
1447
|
-
##### [server_version](https://github.com/appium/ruby_lib/blob/
|
|
1457
|
+
##### [server_version](https://github.com/appium/ruby_lib/blob/c92bd3710be09731aa8ba4547a3e19af9eeaceab/lib/appium_lib/driver.rb#L362)
|
|
1448
1458
|
|
|
1449
1459
|
> def server_version
|
|
1450
1460
|
|
|
@@ -1456,7 +1466,7 @@ __Returns:__
|
|
|
1456
1466
|
|
|
1457
1467
|
--
|
|
1458
1468
|
|
|
1459
|
-
##### [absolute_app_path](https://github.com/appium/ruby_lib/blob/
|
|
1469
|
+
##### [absolute_app_path](https://github.com/appium/ruby_lib/blob/c92bd3710be09731aa8ba4547a3e19af9eeaceab/lib/appium_lib/driver.rb#L402)
|
|
1460
1470
|
|
|
1461
1471
|
> def absolute_app_path
|
|
1462
1472
|
|
|
@@ -1468,7 +1478,7 @@ __Returns:__
|
|
|
1468
1478
|
|
|
1469
1479
|
--
|
|
1470
1480
|
|
|
1471
|
-
##### [server_url](https://github.com/appium/ruby_lib/blob/
|
|
1481
|
+
##### [server_url](https://github.com/appium/ruby_lib/blob/c92bd3710be09731aa8ba4547a3e19af9eeaceab/lib/appium_lib/driver.rb#L422)
|
|
1472
1482
|
|
|
1473
1483
|
> def server_url
|
|
1474
1484
|
|
|
@@ -1480,7 +1490,7 @@ __Returns:__
|
|
|
1480
1490
|
|
|
1481
1491
|
--
|
|
1482
1492
|
|
|
1483
|
-
##### [restart](https://github.com/appium/ruby_lib/blob/
|
|
1493
|
+
##### [restart](https://github.com/appium/ruby_lib/blob/c92bd3710be09731aa8ba4547a3e19af9eeaceab/lib/appium_lib/driver.rb#L433)
|
|
1484
1494
|
|
|
1485
1495
|
> def restart
|
|
1486
1496
|
|
|
@@ -1492,7 +1502,7 @@ __Returns:__
|
|
|
1492
1502
|
|
|
1493
1503
|
--
|
|
1494
1504
|
|
|
1495
|
-
##### [driver](https://github.com/appium/ruby_lib/blob/
|
|
1505
|
+
##### [driver](https://github.com/appium/ruby_lib/blob/c92bd3710be09731aa8ba4547a3e19af9eeaceab/lib/appium_lib/driver.rb#L440)
|
|
1496
1506
|
|
|
1497
1507
|
> def driver
|
|
1498
1508
|
|
|
@@ -1504,7 +1514,7 @@ __Returns:__
|
|
|
1504
1514
|
|
|
1505
1515
|
--
|
|
1506
1516
|
|
|
1507
|
-
##### [screenshot](https://github.com/appium/ruby_lib/blob/
|
|
1517
|
+
##### [screenshot](https://github.com/appium/ruby_lib/blob/c92bd3710be09731aa8ba4547a3e19af9eeaceab/lib/appium_lib/driver.rb#L450)
|
|
1508
1518
|
|
|
1509
1519
|
> def screenshot png_save_path
|
|
1510
1520
|
|
|
@@ -1522,7 +1532,7 @@ __Returns:__
|
|
|
1522
1532
|
|
|
1523
1533
|
--
|
|
1524
1534
|
|
|
1525
|
-
##### [driver_quit](https://github.com/appium/ruby_lib/blob/
|
|
1535
|
+
##### [driver_quit](https://github.com/appium/ruby_lib/blob/c92bd3710be09731aa8ba4547a3e19af9eeaceab/lib/appium_lib/driver.rb#L457)
|
|
1526
1536
|
|
|
1527
1537
|
> def driver_quit
|
|
1528
1538
|
|
|
@@ -1534,7 +1544,7 @@ __Returns:__
|
|
|
1534
1544
|
|
|
1535
1545
|
--
|
|
1536
1546
|
|
|
1537
|
-
##### [start_driver](https://github.com/appium/ruby_lib/blob/
|
|
1547
|
+
##### [start_driver](https://github.com/appium/ruby_lib/blob/c92bd3710be09731aa8ba4547a3e19af9eeaceab/lib/appium_lib/driver.rb#L465)
|
|
1538
1548
|
|
|
1539
1549
|
> def start_driver
|
|
1540
1550
|
|
|
@@ -1546,19 +1556,19 @@ __Returns:__
|
|
|
1546
1556
|
|
|
1547
1557
|
--
|
|
1548
1558
|
|
|
1549
|
-
##### [no_wait](https://github.com/appium/ruby_lib/blob/
|
|
1559
|
+
##### [no_wait](https://github.com/appium/ruby_lib/blob/c92bd3710be09731aa8ba4547a3e19af9eeaceab/lib/appium_lib/driver.rb#L499)
|
|
1550
1560
|
|
|
1551
1561
|
> def no_wait
|
|
1552
1562
|
|
|
1553
|
-
Set implicit wait to zero.
|
|
1563
|
+
Set implicit wait and default_wait to zero.
|
|
1554
1564
|
|
|
1555
1565
|
--
|
|
1556
1566
|
|
|
1557
|
-
##### [set_wait](https://github.com/appium/ruby_lib/blob/
|
|
1567
|
+
##### [set_wait](https://github.com/appium/ruby_lib/blob/c92bd3710be09731aa8ba4547a3e19af9eeaceab/lib/appium_lib/driver.rb#L507)
|
|
1558
1568
|
|
|
1559
1569
|
> def set_wait timeout=@default_wait
|
|
1560
1570
|
|
|
1561
|
-
Set implicit wait to timeout, defaults to 30.
|
|
1571
|
+
Set implicit wait and default_wait to timeout, defaults to 30.
|
|
1562
1572
|
|
|
1563
1573
|
__Parameters:__
|
|
1564
1574
|
|
|
@@ -1570,7 +1580,7 @@ __Returns:__
|
|
|
1570
1580
|
|
|
1571
1581
|
--
|
|
1572
1582
|
|
|
1573
|
-
##### [exists](https://github.com/appium/ruby_lib/blob/
|
|
1583
|
+
##### [exists](https://github.com/appium/ruby_lib/blob/c92bd3710be09731aa8ba4547a3e19af9eeaceab/lib/appium_lib/driver.rb#L531)
|
|
1574
1584
|
|
|
1575
1585
|
> def exists pre_check=0, post_check=@default_wait, &search_block
|
|
1576
1586
|
|
|
@@ -1596,7 +1606,7 @@ __Returns:__
|
|
|
1596
1606
|
|
|
1597
1607
|
--
|
|
1598
1608
|
|
|
1599
|
-
##### [execute_script](https://github.com/appium/ruby_lib/blob/
|
|
1609
|
+
##### [execute_script](https://github.com/appium/ruby_lib/blob/c92bd3710be09731aa8ba4547a3e19af9eeaceab/lib/appium_lib/driver.rb#L553)
|
|
1600
1610
|
|
|
1601
1611
|
> def execute_script script, *args
|
|
1602
1612
|
|
|
@@ -1614,7 +1624,7 @@ __Returns:__
|
|
|
1614
1624
|
|
|
1615
1625
|
--
|
|
1616
1626
|
|
|
1617
|
-
##### [mobile](https://github.com/appium/ruby_lib/blob/
|
|
1627
|
+
##### [mobile](https://github.com/appium/ruby_lib/blob/c92bd3710be09731aa8ba4547a3e19af9eeaceab/lib/appium_lib/driver.rb#L569)
|
|
1618
1628
|
|
|
1619
1629
|
> def mobile method, *args
|
|
1620
1630
|
|
|
@@ -1640,7 +1650,7 @@ __Returns:__
|
|
|
1640
1650
|
|
|
1641
1651
|
--
|
|
1642
1652
|
|
|
1643
|
-
##### [find_elements](https://github.com/appium/ruby_lib/blob/
|
|
1653
|
+
##### [find_elements](https://github.com/appium/ruby_lib/blob/c92bd3710be09731aa8ba4547a3e19af9eeaceab/lib/appium_lib/driver.rb#L580)
|
|
1644
1654
|
|
|
1645
1655
|
> def find_elements *args
|
|
1646
1656
|
|
|
@@ -1656,7 +1666,7 @@ __Returns:__
|
|
|
1656
1666
|
|
|
1657
1667
|
--
|
|
1658
1668
|
|
|
1659
|
-
##### [find_element](https://github.com/appium/ruby_lib/blob/
|
|
1669
|
+
##### [find_element](https://github.com/appium/ruby_lib/blob/c92bd3710be09731aa8ba4547a3e19af9eeaceab/lib/appium_lib/driver.rb#L588)
|
|
1660
1670
|
|
|
1661
1671
|
> def find_element *args
|
|
1662
1672
|
|
|
@@ -1672,7 +1682,7 @@ __Returns:__
|
|
|
1672
1682
|
|
|
1673
1683
|
--
|
|
1674
1684
|
|
|
1675
|
-
##### [x](https://github.com/appium/ruby_lib/blob/
|
|
1685
|
+
##### [x](https://github.com/appium/ruby_lib/blob/c92bd3710be09731aa8ba4547a3e19af9eeaceab/lib/appium_lib/driver.rb#L595)
|
|
1676
1686
|
|
|
1677
1687
|
> def x
|
|
1678
1688
|
|