appium_lib 0.17.0 → 0.18.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 +148 -120
- data/docs/docs.md +6 -4
- data/docs/ios_docs.md +124 -124
- data/lib/appium_lib/common/version.rb +2 -2
- data/lib/appium_lib/driver.rb +19 -7
- data/release_notes.md +10 -0
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 8aa87ee3e8eb5f6138ab59fb17c630780633a874
|
4
|
+
data.tar.gz: bd95a6f81729c849df0541e323864f882ead0538
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 22b75068cda737848cedb00d5192d8e0e75da3947e52c285dbe2b2b6accd711f37f0b81565b5c39536d644a5c59010fb8eb2d8968e842ad3223778a623488c04
|
7
|
+
data.tar.gz: d2327f8d5d79140e067b6b7b37038b8b5f62f142837f373e0da10bb14d2eaf789949ca72b6e630717b09da08b6f8079a7334b7b4cffffa86d2a6dc1f9ac466c5
|
data/docs/android_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/8571197b04ea923db6e375bae808bf84dea52c98/lib/appium_lib/common/element/text.rb#L10)
|
2
2
|
|
3
3
|
> def s_texts text=nil
|
4
4
|
|
@@ -15,7 +15,7 @@ __Returns:__
|
|
15
15
|
|
16
16
|
--
|
17
17
|
|
18
|
-
##### [s_texts_names](https://github.com/appium/ruby_lib/blob/
|
18
|
+
##### [s_texts_names](https://github.com/appium/ruby_lib/blob/8571197b04ea923db6e375bae808bf84dea52c98/lib/appium_lib/common/element/text.rb#L18)
|
19
19
|
|
20
20
|
> def s_texts_names
|
21
21
|
|
@@ -23,7 +23,7 @@ __Returns:__
|
|
23
23
|
|
24
24
|
--
|
25
25
|
|
26
|
-
##### [e_s_texts](https://github.com/appium/ruby_lib/blob/
|
26
|
+
##### [e_s_texts](https://github.com/appium/ruby_lib/blob/8571197b04ea923db6e375bae808bf84dea52c98/lib/appium_lib/common/element/text.rb#L24)
|
27
27
|
|
28
28
|
> def e_s_texts
|
29
29
|
|
@@ -35,7 +35,7 @@ __Returns:__
|
|
35
35
|
|
36
36
|
--
|
37
37
|
|
38
|
-
##### [first_s_text](https://github.com/appium/ruby_lib/blob/
|
38
|
+
##### [first_s_text](https://github.com/appium/ruby_lib/blob/8571197b04ea923db6e375bae808bf84dea52c98/lib/appium_lib/common/element/text.rb#L30)
|
39
39
|
|
40
40
|
> def first_s_text
|
41
41
|
|
@@ -47,7 +47,7 @@ __Returns:__
|
|
47
47
|
|
48
48
|
--
|
49
49
|
|
50
|
-
##### [last_s_text](https://github.com/appium/ruby_lib/blob/
|
50
|
+
##### [last_s_text](https://github.com/appium/ruby_lib/blob/8571197b04ea923db6e375bae808bf84dea52c98/lib/appium_lib/common/element/text.rb#L36)
|
51
51
|
|
52
52
|
> def last_s_text
|
53
53
|
|
@@ -59,7 +59,7 @@ __Returns:__
|
|
59
59
|
|
60
60
|
--
|
61
61
|
|
62
|
-
##### [s_text](https://github.com/appium/ruby_lib/blob/
|
62
|
+
##### [s_text](https://github.com/appium/ruby_lib/blob/8571197b04ea923db6e375bae808bf84dea52c98/lib/appium_lib/common/element/text.rb#L43)
|
63
63
|
|
64
64
|
> def s_text text
|
65
65
|
|
@@ -75,7 +75,7 @@ __Returns:__
|
|
75
75
|
|
76
76
|
--
|
77
77
|
|
78
|
-
##### [s_text_exact](https://github.com/appium/ruby_lib/blob/
|
78
|
+
##### [s_text_exact](https://github.com/appium/ruby_lib/blob/8571197b04ea923db6e375bae808bf84dea52c98/lib/appium_lib/common/element/text.rb#L51)
|
79
79
|
|
80
80
|
> def s_text_exact text
|
81
81
|
|
@@ -91,7 +91,7 @@ __Returns:__
|
|
91
91
|
|
92
92
|
--
|
93
93
|
|
94
|
-
##### [s_texts_exact](https://github.com/appium/ruby_lib/blob/
|
94
|
+
##### [s_texts_exact](https://github.com/appium/ruby_lib/blob/8571197b04ea923db6e375bae808bf84dea52c98/lib/appium_lib/common/element/text.rb#L58)
|
95
95
|
|
96
96
|
> def s_texts_exact text
|
97
97
|
|
@@ -107,7 +107,7 @@ __Returns:__
|
|
107
107
|
|
108
108
|
--
|
109
109
|
|
110
|
-
##### [window_size](https://github.com/appium/ruby_lib/blob/
|
110
|
+
##### [window_size](https://github.com/appium/ruby_lib/blob/8571197b04ea923db6e375bae808bf84dea52c98/lib/appium_lib/common/element/window.rb#L5)
|
111
111
|
|
112
112
|
> def window_size
|
113
113
|
|
@@ -115,7 +115,7 @@ Get the window's size
|
|
115
115
|
|
116
116
|
--
|
117
117
|
|
118
|
-
##### [button](https://github.com/appium/ruby_lib/blob/
|
118
|
+
##### [button](https://github.com/appium/ruby_lib/blob/8571197b04ea923db6e375bae808bf84dea52c98/lib/appium_lib/common/element/button.rb#L8)
|
119
119
|
|
120
120
|
> def button text, number=0
|
121
121
|
|
@@ -133,7 +133,7 @@ __Returns:__
|
|
133
133
|
|
134
134
|
--
|
135
135
|
|
136
|
-
##### [buttons](https://github.com/appium/ruby_lib/blob/
|
136
|
+
##### [buttons](https://github.com/appium/ruby_lib/blob/8571197b04ea923db6e375bae808bf84dea52c98/lib/appium_lib/common/element/button.rb#L19)
|
137
137
|
|
138
138
|
> def buttons text=nil
|
139
139
|
|
@@ -149,7 +149,7 @@ __Returns:__
|
|
149
149
|
|
150
150
|
--
|
151
151
|
|
152
|
-
##### [first_button](https://github.com/appium/ruby_lib/blob/
|
152
|
+
##### [first_button](https://github.com/appium/ruby_lib/blob/8571197b04ea923db6e375bae808bf84dea52c98/lib/appium_lib/common/element/button.rb#L26)
|
153
153
|
|
154
154
|
> def first_button
|
155
155
|
|
@@ -161,7 +161,7 @@ __Returns:__
|
|
161
161
|
|
162
162
|
--
|
163
163
|
|
164
|
-
##### [last_button](https://github.com/appium/ruby_lib/blob/
|
164
|
+
##### [last_button](https://github.com/appium/ruby_lib/blob/8571197b04ea923db6e375bae808bf84dea52c98/lib/appium_lib/common/element/button.rb#L32)
|
165
165
|
|
166
166
|
> def last_button
|
167
167
|
|
@@ -173,7 +173,7 @@ __Returns:__
|
|
173
173
|
|
174
174
|
--
|
175
175
|
|
176
|
-
##### [button_exact](https://github.com/appium/ruby_lib/blob/
|
176
|
+
##### [button_exact](https://github.com/appium/ruby_lib/blob/8571197b04ea923db6e375bae808bf84dea52c98/lib/appium_lib/common/element/button.rb#L39)
|
177
177
|
|
178
178
|
> def button_exact text
|
179
179
|
|
@@ -189,7 +189,7 @@ __Returns:__
|
|
189
189
|
|
190
190
|
--
|
191
191
|
|
192
|
-
##### [buttons_exact](https://github.com/appium/ruby_lib/blob/
|
192
|
+
##### [buttons_exact](https://github.com/appium/ruby_lib/blob/8571197b04ea923db6e375bae808bf84dea52c98/lib/appium_lib/common/element/button.rb#L46)
|
193
193
|
|
194
194
|
> def buttons_exact text
|
195
195
|
|
@@ -205,7 +205,7 @@ __Returns:__
|
|
205
205
|
|
206
206
|
--
|
207
207
|
|
208
|
-
##### [e_buttons](https://github.com/appium/ruby_lib/blob/
|
208
|
+
##### [e_buttons](https://github.com/appium/ruby_lib/blob/8571197b04ea923db6e375bae808bf84dea52c98/lib/appium_lib/common/element/button.rb#L52)
|
209
209
|
|
210
210
|
> def e_buttons
|
211
211
|
|
@@ -217,7 +217,7 @@ __Returns:__
|
|
217
217
|
|
218
218
|
--
|
219
219
|
|
220
|
-
##### [button_num](https://github.com/appium/ruby_lib/blob/
|
220
|
+
##### [button_num](https://github.com/appium/ruby_lib/blob/8571197b04ea923db6e375bae808bf84dea52c98/lib/appium_lib/common/element/button.rb#L72)
|
221
221
|
|
222
222
|
> def button_num text, number=1
|
223
223
|
|
@@ -246,7 +246,7 @@ __Returns:__
|
|
246
246
|
|
247
247
|
--
|
248
248
|
|
249
|
-
##### [tag_name_to_android](https://github.com/appium/ruby_lib/blob/
|
249
|
+
##### [tag_name_to_android](https://github.com/appium/ruby_lib/blob/8571197b04ea923db6e375bae808bf84dea52c98/lib/appium_lib/android/helper.rb#L6) android
|
250
250
|
|
251
251
|
> def tag_name_to_android tag_name
|
252
252
|
|
@@ -262,7 +262,7 @@ __Returns:__
|
|
262
262
|
|
263
263
|
--
|
264
264
|
|
265
|
-
##### [find_eles_attr](https://github.com/appium/ruby_lib/blob/
|
265
|
+
##### [find_eles_attr](https://github.com/appium/ruby_lib/blob/8571197b04ea923db6e375bae808bf84dea52c98/lib/appium_lib/android/helper.rb#L198) android
|
266
266
|
|
267
267
|
> def find_eles_attr tag_name, attribute=nil
|
268
268
|
|
@@ -283,7 +283,7 @@ __Returns:__
|
|
283
283
|
|
284
284
|
--
|
285
285
|
|
286
|
-
##### [get_selendroid_inspect](https://github.com/appium/ruby_lib/blob/
|
286
|
+
##### [get_selendroid_inspect](https://github.com/appium/ruby_lib/blob/8571197b04ea923db6e375bae808bf84dea52c98/lib/appium_lib/android/helper.rb#L220) android
|
287
287
|
|
288
288
|
> def get_selendroid_inspect
|
289
289
|
|
@@ -296,7 +296,7 @@ __Returns:__
|
|
296
296
|
|
297
297
|
--
|
298
298
|
|
299
|
-
##### [get_page_class](https://github.com/appium/ruby_lib/blob/
|
299
|
+
##### [get_page_class](https://github.com/appium/ruby_lib/blob/8571197b04ea923db6e375bae808bf84dea52c98/lib/appium_lib/android/helper.rb#L282) android
|
300
300
|
|
301
301
|
> def get_page_class
|
302
302
|
|
@@ -304,7 +304,7 @@ __Returns:__
|
|
304
304
|
|
305
305
|
--
|
306
306
|
|
307
|
-
##### [page_class](https://github.com/appium/ruby_lib/blob/
|
307
|
+
##### [page_class](https://github.com/appium/ruby_lib/blob/8571197b04ea923db6e375bae808bf84dea52c98/lib/appium_lib/android/helper.rb#L310) android
|
308
308
|
|
309
309
|
> def page_class
|
310
310
|
|
@@ -313,7 +313,7 @@ Useful for appium_console.
|
|
313
313
|
|
314
314
|
--
|
315
315
|
|
316
|
-
##### [get_android_inspect](https://github.com/appium/ruby_lib/blob/
|
316
|
+
##### [get_android_inspect](https://github.com/appium/ruby_lib/blob/8571197b04ea923db6e375bae808bf84dea52c98/lib/appium_lib/android/helper.rb#L319) android
|
317
317
|
|
318
318
|
> def get_android_inspect
|
319
319
|
|
@@ -327,7 +327,7 @@ __Returns:__
|
|
327
327
|
|
328
328
|
--
|
329
329
|
|
330
|
-
##### [get_inspect](https://github.com/appium/ruby_lib/blob/
|
330
|
+
##### [get_inspect](https://github.com/appium/ruby_lib/blob/8571197b04ea923db6e375bae808bf84dea52c98/lib/appium_lib/android/helper.rb#L403) android
|
331
331
|
|
332
332
|
> def get_inspect
|
333
333
|
|
@@ -340,7 +340,7 @@ __Returns:__
|
|
340
340
|
|
341
341
|
--
|
342
342
|
|
343
|
-
##### [page](https://github.com/appium/ruby_lib/blob/
|
343
|
+
##### [page](https://github.com/appium/ruby_lib/blob/8571197b04ea923db6e375bae808bf84dea52c98/lib/appium_lib/android/helper.rb#L409) android
|
344
344
|
|
345
345
|
> def page
|
346
346
|
|
@@ -349,7 +349,7 @@ Inspects and prints the current page.
|
|
349
349
|
|
350
350
|
--
|
351
351
|
|
352
|
-
##### [fast_duration](https://github.com/appium/ruby_lib/blob/
|
352
|
+
##### [fast_duration](https://github.com/appium/ruby_lib/blob/8571197b04ea923db6e375bae808bf84dea52c98/lib/appium_lib/android/helper.rb#L421) android
|
353
353
|
|
354
354
|
> def fast_duration
|
355
355
|
|
@@ -363,7 +363,7 @@ We want steps to be exactly 1. If it's zero then a tap is used instead of a swip
|
|
363
363
|
|
364
364
|
--
|
365
365
|
|
366
|
-
##### [current_app](https://github.com/appium/ruby_lib/blob/
|
366
|
+
##### [current_app](https://github.com/appium/ruby_lib/blob/8571197b04ea923db6e375bae808bf84dea52c98/lib/appium_lib/android/helper.rb#L427) android
|
367
367
|
|
368
368
|
> def current_app
|
369
369
|
|
@@ -372,7 +372,7 @@ Works on local host only (not remote).
|
|
372
372
|
|
373
373
|
--
|
374
374
|
|
375
|
-
##### [id](https://github.com/appium/ruby_lib/blob/
|
375
|
+
##### [id](https://github.com/appium/ruby_lib/blob/8571197b04ea923db6e375bae808bf84dea52c98/lib/appium_lib/android/helper.rb#L441) android
|
376
376
|
|
377
377
|
> def id id
|
378
378
|
|
@@ -388,7 +388,7 @@ __Returns:__
|
|
388
388
|
|
389
389
|
--
|
390
390
|
|
391
|
-
##### [alert_click](https://github.com/appium/ruby_lib/blob/
|
391
|
+
##### [alert_click](https://github.com/appium/ruby_lib/blob/8571197b04ea923db6e375bae808bf84dea52c98/lib/appium_lib/android/element/alert.rb#L6) android
|
392
392
|
|
393
393
|
> def alert_click value
|
394
394
|
|
@@ -404,7 +404,7 @@ __Returns:__
|
|
404
404
|
|
405
405
|
--
|
406
406
|
|
407
|
-
##### [alert_accept](https://github.com/appium/ruby_lib/blob/
|
407
|
+
##### [alert_accept](https://github.com/appium/ruby_lib/blob/8571197b04ea923db6e375bae808bf84dea52c98/lib/appium_lib/android/element/alert.rb#L13) android
|
408
408
|
|
409
409
|
> def alert_accept
|
410
410
|
|
@@ -417,7 +417,7 @@ __Returns:__
|
|
417
417
|
|
418
418
|
--
|
419
419
|
|
420
|
-
##### [alert_accept_text](https://github.com/appium/ruby_lib/blob/
|
420
|
+
##### [alert_accept_text](https://github.com/appium/ruby_lib/blob/8571197b04ea923db6e375bae808bf84dea52c98/lib/appium_lib/android/element/alert.rb#L20) android
|
421
421
|
|
422
422
|
> def alert_accept_text
|
423
423
|
|
@@ -430,7 +430,7 @@ __Returns:__
|
|
430
430
|
|
431
431
|
--
|
432
432
|
|
433
|
-
##### [alert_dismiss](https://github.com/appium/ruby_lib/blob/
|
433
|
+
##### [alert_dismiss](https://github.com/appium/ruby_lib/blob/8571197b04ea923db6e375bae808bf84dea52c98/lib/appium_lib/android/element/alert.rb#L27) android
|
434
434
|
|
435
435
|
> def alert_dismiss
|
436
436
|
|
@@ -443,7 +443,7 @@ __Returns:__
|
|
443
443
|
|
444
444
|
--
|
445
445
|
|
446
|
-
##### [alert_dismiss_text](https://github.com/appium/ruby_lib/blob/
|
446
|
+
##### [alert_dismiss_text](https://github.com/appium/ruby_lib/blob/8571197b04ea923db6e375bae808bf84dea52c98/lib/appium_lib/android/element/alert.rb#L34) android
|
447
447
|
|
448
448
|
> def alert_dismiss_text
|
449
449
|
|
@@ -456,7 +456,7 @@ __Returns:__
|
|
456
456
|
|
457
457
|
--
|
458
458
|
|
459
|
-
##### [find](https://github.com/appium/ruby_lib/blob/
|
459
|
+
##### [find](https://github.com/appium/ruby_lib/blob/8571197b04ea923db6e375bae808bf84dea52c98/lib/appium_lib/android/element/generic.rb#L44) android
|
460
460
|
|
461
461
|
> def find val
|
462
462
|
|
@@ -473,7 +473,7 @@ __Returns:__
|
|
473
473
|
|
474
474
|
--
|
475
475
|
|
476
|
-
##### [text](https://github.com/appium/ruby_lib/blob/
|
476
|
+
##### [text](https://github.com/appium/ruby_lib/blob/8571197b04ea923db6e375bae808bf84dea52c98/lib/appium_lib/android/element/generic.rb#L70) android
|
477
477
|
|
478
478
|
> def text text
|
479
479
|
|
@@ -489,7 +489,7 @@ __Returns:__
|
|
489
489
|
|
490
490
|
--
|
491
491
|
|
492
|
-
##### [texts](https://github.com/appium/ruby_lib/blob/
|
492
|
+
##### [texts](https://github.com/appium/ruby_lib/blob/8571197b04ea923db6e375bae808bf84dea52c98/lib/appium_lib/android/element/generic.rb#L79) android
|
493
493
|
|
494
494
|
> def texts text
|
495
495
|
|
@@ -505,7 +505,7 @@ __Returns:__
|
|
505
505
|
|
506
506
|
--
|
507
507
|
|
508
|
-
##### [name](https://github.com/appium/ruby_lib/blob/
|
508
|
+
##### [name](https://github.com/appium/ruby_lib/blob/8571197b04ea923db6e375bae808bf84dea52c98/lib/appium_lib/android/element/generic.rb#L88) android
|
509
509
|
|
510
510
|
> def name name
|
511
511
|
|
@@ -523,7 +523,7 @@ __Returns:__
|
|
523
523
|
|
524
524
|
--
|
525
525
|
|
526
|
-
##### [name_exact](https://github.com/appium/ruby_lib/blob/
|
526
|
+
##### [name_exact](https://github.com/appium/ruby_lib/blob/8571197b04ea923db6e375bae808bf84dea52c98/lib/appium_lib/android/element/generic.rb#L99) android
|
527
527
|
|
528
528
|
> def name_exact name
|
529
529
|
|
@@ -541,7 +541,7 @@ __Returns:__
|
|
541
541
|
|
542
542
|
--
|
543
543
|
|
544
|
-
##### [names](https://github.com/appium/ruby_lib/blob/
|
544
|
+
##### [names](https://github.com/appium/ruby_lib/blob/8571197b04ea923db6e375bae808bf84dea52c98/lib/appium_lib/android/element/generic.rb#L117) android
|
545
545
|
|
546
546
|
> def names name=''
|
547
547
|
|
@@ -559,7 +559,7 @@ __Returns:__
|
|
559
559
|
|
560
560
|
--
|
561
561
|
|
562
|
-
##### [scroll_to](https://github.com/appium/ruby_lib/blob/
|
562
|
+
##### [scroll_to](https://github.com/appium/ruby_lib/blob/8571197b04ea923db6e375bae808bf84dea52c98/lib/appium_lib/android/element/generic.rb#L131) android
|
563
563
|
|
564
564
|
> def scroll_to text
|
565
565
|
|
@@ -575,7 +575,7 @@ __Returns:__
|
|
575
575
|
|
576
576
|
--
|
577
577
|
|
578
|
-
##### [scroll_to_exact](https://github.com/appium/ruby_lib/blob/
|
578
|
+
##### [scroll_to_exact](https://github.com/appium/ruby_lib/blob/8571197b04ea923db6e375bae808bf84dea52c98/lib/appium_lib/android/element/generic.rb#L144) android
|
579
579
|
|
580
580
|
> def scroll_to_exact text
|
581
581
|
|
@@ -591,7 +591,26 @@ __Returns:__
|
|
591
591
|
|
592
592
|
--
|
593
593
|
|
594
|
-
##### [
|
594
|
+
##### [attach_to_tab](https://github.com/appium/ruby_lib/blob/8571197b04ea923db6e375bae808bf84dea52c98/lib/appium_lib/android/webview/webview.rb#L85) android
|
595
|
+
|
596
|
+
> def attach_to_tab opts={}
|
597
|
+
|
598
|
+
```ruby
|
599
|
+
webview = Appium::Android::Webview.attach_to_tab package: 'com.example.Package', url: 'yahoo.com/'
|
600
|
+
webview.location
|
601
|
+
webview.client
|
602
|
+
webview.client.remote_eval Appium::Android::Webview.javascript
|
603
|
+
```
|
604
|
+
|
605
|
+
port: is optional.
|
606
|
+
|
607
|
+
can't be called more than once.
|
608
|
+
|
609
|
+
returns URL of connected tab.
|
610
|
+
|
611
|
+
--
|
612
|
+
|
613
|
+
##### [textfields](https://github.com/appium/ruby_lib/blob/8571197b04ea923db6e375bae808bf84dea52c98/lib/appium_lib/android/element/textfield.rb#L7) android
|
595
614
|
|
596
615
|
> def textfields
|
597
616
|
|
@@ -603,7 +622,7 @@ __Returns:__
|
|
603
622
|
|
604
623
|
--
|
605
624
|
|
606
|
-
##### [e_textfields](https://github.com/appium/ruby_lib/blob/
|
625
|
+
##### [e_textfields](https://github.com/appium/ruby_lib/blob/8571197b04ea923db6e375bae808bf84dea52c98/lib/appium_lib/android/element/textfield.rb#L13) android
|
607
626
|
|
608
627
|
> def e_textfields
|
609
628
|
|
@@ -615,7 +634,7 @@ __Returns:__
|
|
615
634
|
|
616
635
|
--
|
617
636
|
|
618
|
-
##### [first_textfield](https://github.com/appium/ruby_lib/blob/
|
637
|
+
##### [first_textfield](https://github.com/appium/ruby_lib/blob/8571197b04ea923db6e375bae808bf84dea52c98/lib/appium_lib/android/element/textfield.rb#L19) android
|
619
638
|
|
620
639
|
> def first_textfield
|
621
640
|
|
@@ -627,7 +646,7 @@ __Returns:__
|
|
627
646
|
|
628
647
|
--
|
629
648
|
|
630
|
-
##### [last_textfield](https://github.com/appium/ruby_lib/blob/
|
649
|
+
##### [last_textfield](https://github.com/appium/ruby_lib/blob/8571197b04ea923db6e375bae808bf84dea52c98/lib/appium_lib/android/element/textfield.rb#L25) android
|
631
650
|
|
632
651
|
> def last_textfield
|
633
652
|
|
@@ -639,7 +658,7 @@ __Returns:__
|
|
639
658
|
|
640
659
|
--
|
641
660
|
|
642
|
-
##### [textfield](https://github.com/appium/ruby_lib/blob/
|
661
|
+
##### [textfield](https://github.com/appium/ruby_lib/blob/8571197b04ea923db6e375bae808bf84dea52c98/lib/appium_lib/android/element/textfield.rb#L32) android
|
643
662
|
|
644
663
|
> def textfield text
|
645
664
|
|
@@ -655,7 +674,7 @@ __Returns:__
|
|
655
674
|
|
656
675
|
--
|
657
676
|
|
658
|
-
##### [textfield_exact](https://github.com/appium/ruby_lib/blob/
|
677
|
+
##### [textfield_exact](https://github.com/appium/ruby_lib/blob/8571197b04ea923db6e375bae808bf84dea52c98/lib/appium_lib/android/element/textfield.rb#L45) android
|
659
678
|
|
660
679
|
> def textfield_exact text
|
661
680
|
|
@@ -671,7 +690,16 @@ __Returns:__
|
|
671
690
|
|
672
691
|
--
|
673
692
|
|
674
|
-
##### [
|
693
|
+
##### [javascript](https://github.com/appium/ruby_lib/blob/8571197b04ea923db6e375bae808bf84dea52c98/lib/appium_lib/android/webview/javascript.rb#L13) android
|
694
|
+
|
695
|
+
> def javascript
|
696
|
+
|
697
|
+
todo: prevent namespace pollution
|
698
|
+
AppiumWebview = { 'ok': function() { return 'ok'; }, 'ok2': function() { return self.ok(); } }
|
699
|
+
|
700
|
+
--
|
701
|
+
|
702
|
+
##### [wait](https://github.com/appium/ruby_lib/blob/8571197b04ea923db6e375bae808bf84dea52c98/lib/appium_lib/common/helper.rb#L33)
|
675
703
|
|
676
704
|
> def wait max_wait=30, interval=0.5, &block
|
677
705
|
|
@@ -698,7 +726,7 @@ __Returns:__
|
|
698
726
|
|
699
727
|
--
|
700
728
|
|
701
|
-
##### [ignore](https://github.com/appium/ruby_lib/blob/
|
729
|
+
##### [ignore](https://github.com/appium/ruby_lib/blob/8571197b04ea923db6e375bae808bf84dea52c98/lib/appium_lib/common/helper.rb#L45)
|
702
730
|
|
703
731
|
> def ignore &block
|
704
732
|
|
@@ -706,7 +734,7 @@ Return block.call and ignore any exceptions.
|
|
706
734
|
|
707
735
|
--
|
708
736
|
|
709
|
-
##### [wait_true](https://github.com/appium/ruby_lib/blob/
|
737
|
+
##### [wait_true](https://github.com/appium/ruby_lib/blob/8571197b04ea923db6e375bae808bf84dea52c98/lib/appium_lib/common/helper.rb#L55)
|
710
738
|
|
711
739
|
> def wait_true max_wait=30, interval=0.5, &block
|
712
740
|
|
@@ -727,7 +755,7 @@ __Returns:__
|
|
727
755
|
|
728
756
|
--
|
729
757
|
|
730
|
-
##### [back](https://github.com/appium/ruby_lib/blob/
|
758
|
+
##### [back](https://github.com/appium/ruby_lib/blob/8571197b04ea923db6e375bae808bf84dea52c98/lib/appium_lib/common/helper.rb#L68)
|
731
759
|
|
732
760
|
> def back
|
733
761
|
|
@@ -739,7 +767,7 @@ __Returns:__
|
|
739
767
|
|
740
768
|
--
|
741
769
|
|
742
|
-
##### [session_id](https://github.com/appium/ruby_lib/blob/
|
770
|
+
##### [session_id](https://github.com/appium/ruby_lib/blob/8571197b04ea923db6e375bae808bf84dea52c98/lib/appium_lib/common/helper.rb#L73)
|
743
771
|
|
744
772
|
> def session_id
|
745
773
|
|
@@ -747,7 +775,7 @@ For Sauce Labs reporting. Returns the current session id.
|
|
747
775
|
|
748
776
|
--
|
749
777
|
|
750
|
-
##### [xpath](https://github.com/appium/ruby_lib/blob/
|
778
|
+
##### [xpath](https://github.com/appium/ruby_lib/blob/8571197b04ea923db6e375bae808bf84dea52c98/lib/appium_lib/common/helper.rb#L81)
|
751
779
|
|
752
780
|
> def xpath xpath_str
|
753
781
|
|
@@ -763,7 +791,7 @@ __Returns:__
|
|
763
791
|
|
764
792
|
--
|
765
793
|
|
766
|
-
##### [xpaths](https://github.com/appium/ruby_lib/blob/
|
794
|
+
##### [xpaths](https://github.com/appium/ruby_lib/blob/8571197b04ea923db6e375bae808bf84dea52c98/lib/appium_lib/common/helper.rb#L89)
|
767
795
|
|
768
796
|
> def xpaths xpath_str
|
769
797
|
|
@@ -779,7 +807,7 @@ __Returns:__
|
|
779
807
|
|
780
808
|
--
|
781
809
|
|
782
|
-
##### [ele_index](https://github.com/appium/ruby_lib/blob/
|
810
|
+
##### [ele_index](https://github.com/appium/ruby_lib/blob/8571197b04ea923db6e375bae808bf84dea52c98/lib/appium_lib/common/helper.rb#L97)
|
783
811
|
|
784
812
|
> def ele_index tag_name, index
|
785
813
|
|
@@ -797,7 +825,7 @@ __Returns:__
|
|
797
825
|
|
798
826
|
--
|
799
827
|
|
800
|
-
##### [find_eles](https://github.com/appium/ruby_lib/blob/
|
828
|
+
##### [find_eles](https://github.com/appium/ruby_lib/blob/8571197b04ea923db6e375bae808bf84dea52c98/lib/appium_lib/common/helper.rb#L106)
|
801
829
|
|
802
830
|
> def find_eles tag_name
|
803
831
|
|
@@ -813,7 +841,7 @@ __Returns:__
|
|
813
841
|
|
814
842
|
--
|
815
843
|
|
816
|
-
##### [find_ele_by_text](https://github.com/appium/ruby_lib/blob/
|
844
|
+
##### [find_ele_by_text](https://github.com/appium/ruby_lib/blob/8571197b04ea923db6e375bae808bf84dea52c98/lib/appium_lib/common/helper.rb#L114)
|
817
845
|
|
818
846
|
> def find_ele_by_text tag, text
|
819
847
|
|
@@ -831,7 +859,7 @@ __Returns:__
|
|
831
859
|
|
832
860
|
--
|
833
861
|
|
834
|
-
##### [find_eles_by_text](https://github.com/appium/ruby_lib/blob/
|
862
|
+
##### [find_eles_by_text](https://github.com/appium/ruby_lib/blob/8571197b04ea923db6e375bae808bf84dea52c98/lib/appium_lib/common/helper.rb#L122)
|
835
863
|
|
836
864
|
> def find_eles_by_text tag, text
|
837
865
|
|
@@ -849,7 +877,7 @@ __Returns:__
|
|
849
877
|
|
850
878
|
--
|
851
879
|
|
852
|
-
##### [find_ele_by_attr_include](https://github.com/appium/ruby_lib/blob/
|
880
|
+
##### [find_ele_by_attr_include](https://github.com/appium/ruby_lib/blob/8571197b04ea923db6e375bae808bf84dea52c98/lib/appium_lib/common/helper.rb#L131)
|
853
881
|
|
854
882
|
> def find_ele_by_attr_include tag, attr, value
|
855
883
|
|
@@ -869,7 +897,7 @@ __Returns:__
|
|
869
897
|
|
870
898
|
--
|
871
899
|
|
872
|
-
##### [find_eles_by_attr_include](https://github.com/appium/ruby_lib/blob/
|
900
|
+
##### [find_eles_by_attr_include](https://github.com/appium/ruby_lib/blob/8571197b04ea923db6e375bae808bf84dea52c98/lib/appium_lib/common/helper.rb#L140)
|
873
901
|
|
874
902
|
> def find_eles_by_attr_include tag, attr, value
|
875
903
|
|
@@ -889,7 +917,7 @@ __Returns:__
|
|
889
917
|
|
890
918
|
--
|
891
919
|
|
892
|
-
##### [find_ele_by_text_include](https://github.com/appium/ruby_lib/blob/
|
920
|
+
##### [find_ele_by_text_include](https://github.com/appium/ruby_lib/blob/8571197b04ea923db6e375bae808bf84dea52c98/lib/appium_lib/common/helper.rb#L149)
|
893
921
|
|
894
922
|
> def find_ele_by_text_include tag, text
|
895
923
|
|
@@ -908,7 +936,7 @@ __Returns:__
|
|
908
936
|
|
909
937
|
--
|
910
938
|
|
911
|
-
##### [find_eles_by_text_include](https://github.com/appium/ruby_lib/blob/
|
939
|
+
##### [find_eles_by_text_include](https://github.com/appium/ruby_lib/blob/8571197b04ea923db6e375bae808bf84dea52c98/lib/appium_lib/common/helper.rb#L158)
|
912
940
|
|
913
941
|
> def find_eles_by_text_include tag, text
|
914
942
|
|
@@ -927,7 +955,7 @@ __Returns:__
|
|
927
955
|
|
928
956
|
--
|
929
957
|
|
930
|
-
##### [first_ele](https://github.com/appium/ruby_lib/blob/
|
958
|
+
##### [first_ele](https://github.com/appium/ruby_lib/blob/8571197b04ea923db6e375bae808bf84dea52c98/lib/appium_lib/common/helper.rb#L165)
|
931
959
|
|
932
960
|
> def first_ele tag_name
|
933
961
|
|
@@ -943,7 +971,7 @@ __Returns:__
|
|
943
971
|
|
944
972
|
--
|
945
973
|
|
946
|
-
##### [last_ele](https://github.com/appium/ruby_lib/blob/
|
974
|
+
##### [last_ele](https://github.com/appium/ruby_lib/blob/8571197b04ea923db6e375bae808bf84dea52c98/lib/appium_lib/common/helper.rb#L173)
|
947
975
|
|
948
976
|
> def last_ele tag_name
|
949
977
|
|
@@ -959,7 +987,7 @@ __Returns:__
|
|
959
987
|
|
960
988
|
--
|
961
989
|
|
962
|
-
##### [source](https://github.com/appium/ruby_lib/blob/
|
990
|
+
##### [source](https://github.com/appium/ruby_lib/blob/8571197b04ea923db6e375bae808bf84dea52c98/lib/appium_lib/common/helper.rb#L179)
|
963
991
|
|
964
992
|
> def source
|
965
993
|
|
@@ -971,7 +999,7 @@ __Returns:__
|
|
971
999
|
|
972
1000
|
--
|
973
1001
|
|
974
|
-
##### [get_source](https://github.com/appium/ruby_lib/blob/
|
1002
|
+
##### [get_source](https://github.com/appium/ruby_lib/blob/8571197b04ea923db6e375bae808bf84dea52c98/lib/appium_lib/common/helper.rb#L185)
|
975
1003
|
|
976
1004
|
> def get_source
|
977
1005
|
|
@@ -983,7 +1011,7 @@ __Returns:__
|
|
983
1011
|
|
984
1012
|
--
|
985
1013
|
|
986
|
-
##### [find_name](https://github.com/appium/ruby_lib/blob/
|
1014
|
+
##### [find_name](https://github.com/appium/ruby_lib/blob/8571197b04ea923db6e375bae808bf84dea52c98/lib/appium_lib/common/helper.rb#L194)
|
987
1015
|
|
988
1016
|
> def find_name name
|
989
1017
|
|
@@ -999,7 +1027,7 @@ __Returns:__
|
|
999
1027
|
|
1000
1028
|
--
|
1001
1029
|
|
1002
|
-
##### [find_names](https://github.com/appium/ruby_lib/blob/
|
1030
|
+
##### [find_names](https://github.com/appium/ruby_lib/blob/8571197b04ea923db6e375bae808bf84dea52c98/lib/appium_lib/common/helper.rb#L202)
|
1003
1031
|
|
1004
1032
|
> def find_names name
|
1005
1033
|
|
@@ -1015,7 +1043,7 @@ __Returns:__
|
|
1015
1043
|
|
1016
1044
|
--
|
1017
1045
|
|
1018
|
-
##### [tag](https://github.com/appium/ruby_lib/blob/
|
1046
|
+
##### [tag](https://github.com/appium/ruby_lib/blob/8571197b04ea923db6e375bae808bf84dea52c98/lib/appium_lib/common/helper.rb#L210)
|
1019
1047
|
|
1020
1048
|
> def tag tag_name
|
1021
1049
|
|
@@ -1031,7 +1059,7 @@ __Returns:__
|
|
1031
1059
|
|
1032
1060
|
--
|
1033
1061
|
|
1034
|
-
##### [tags](https://github.com/appium/ruby_lib/blob/
|
1062
|
+
##### [tags](https://github.com/appium/ruby_lib/blob/8571197b04ea923db6e375bae808bf84dea52c98/lib/appium_lib/common/helper.rb#L218)
|
1035
1063
|
|
1036
1064
|
> def tags tag_name
|
1037
1065
|
|
@@ -1047,7 +1075,7 @@ __Returns:__
|
|
1047
1075
|
|
1048
1076
|
--
|
1049
1077
|
|
1050
|
-
##### [px_to_window_rel](https://github.com/appium/ruby_lib/blob/
|
1078
|
+
##### [px_to_window_rel](https://github.com/appium/ruby_lib/blob/8571197b04ea923db6e375bae808bf84dea52c98/lib/appium_lib/common/helper.rb#L228)
|
1051
1079
|
|
1052
1080
|
> def px_to_window_rel opts={}
|
1053
1081
|
|
@@ -1059,7 +1087,7 @@ px_to_window_rel x: 50, y: 150
|
|
1059
1087
|
|
1060
1088
|
--
|
1061
1089
|
|
1062
|
-
##### [lazy_load_strings](https://github.com/appium/ruby_lib/blob/
|
1090
|
+
##### [lazy_load_strings](https://github.com/appium/ruby_lib/blob/8571197b04ea923db6e375bae808bf84dea52c98/lib/appium_lib/common/helper.rb#L238)
|
1063
1091
|
|
1064
1092
|
> def lazy_load_strings
|
1065
1093
|
|
@@ -1067,7 +1095,7 @@ px_to_window_rel x: 50, y: 150
|
|
1067
1095
|
|
1068
1096
|
--
|
1069
1097
|
|
1070
|
-
##### [xml_keys](https://github.com/appium/ruby_lib/blob/
|
1098
|
+
##### [xml_keys](https://github.com/appium/ruby_lib/blob/8571197b04ea923db6e375bae808bf84dea52c98/lib/appium_lib/common/helper.rb#L245)
|
1071
1099
|
|
1072
1100
|
> def xml_keys target
|
1073
1101
|
|
@@ -1083,7 +1111,7 @@ __Returns:__
|
|
1083
1111
|
|
1084
1112
|
--
|
1085
1113
|
|
1086
|
-
##### [xml_values](https://github.com/appium/ruby_lib/blob/
|
1114
|
+
##### [xml_values](https://github.com/appium/ruby_lib/blob/8571197b04ea923db6e375bae808bf84dea52c98/lib/appium_lib/common/helper.rb#L253)
|
1087
1115
|
|
1088
1116
|
> def xml_values target
|
1089
1117
|
|
@@ -1099,7 +1127,7 @@ __Returns:__
|
|
1099
1127
|
|
1100
1128
|
--
|
1101
1129
|
|
1102
|
-
##### [resolve_id](https://github.com/appium/ruby_lib/blob/
|
1130
|
+
##### [resolve_id](https://github.com/appium/ruby_lib/blob/8571197b04ea923db6e375bae808bf84dea52c98/lib/appium_lib/common/helper.rb#L261)
|
1103
1131
|
|
1104
1132
|
> def resolve_id id
|
1105
1133
|
|
@@ -1115,7 +1143,7 @@ __Returns:__
|
|
1115
1143
|
|
1116
1144
|
--
|
1117
1145
|
|
1118
|
-
##### [raise_no_element_error](https://github.com/appium/ruby_lib/blob/
|
1146
|
+
##### [raise_no_element_error](https://github.com/appium/ruby_lib/blob/8571197b04ea923db6e375bae808bf84dea52c98/lib/appium_lib/common/helper.rb#L267)
|
1119
1147
|
|
1120
1148
|
> def raise_no_element_error
|
1121
1149
|
|
@@ -1123,7 +1151,7 @@ Used to error when finding a single element fails.
|
|
1123
1151
|
|
1124
1152
|
--
|
1125
1153
|
|
1126
|
-
##### [value](https://github.com/appium/ruby_lib/blob/
|
1154
|
+
##### [value](https://github.com/appium/ruby_lib/blob/8571197b04ea923db6e375bae808bf84dea52c98/lib/appium_lib/common/patch.rb#L32)
|
1127
1155
|
|
1128
1156
|
> def value
|
1129
1157
|
|
@@ -1133,7 +1161,7 @@ Fixes NoMethodError: undefined method `value' for Selenium::WebDriver::Element
|
|
1133
1161
|
|
1134
1162
|
--
|
1135
1163
|
|
1136
|
-
##### [name](https://github.com/appium/ruby_lib/blob/
|
1164
|
+
##### [name](https://github.com/appium/ruby_lib/blob/8571197b04ea923db6e375bae808bf84dea52c98/lib/appium_lib/common/patch.rb#L39)
|
1137
1165
|
|
1138
1166
|
> def name
|
1139
1167
|
|
@@ -1143,7 +1171,7 @@ Fixes NoMethodError: undefined method `name' for Selenium::WebDriver::Element
|
|
1143
1171
|
|
1144
1172
|
--
|
1145
1173
|
|
1146
|
-
##### [tag_name](https://github.com/appium/ruby_lib/blob/
|
1174
|
+
##### [tag_name](https://github.com/appium/ruby_lib/blob/8571197b04ea923db6e375bae808bf84dea52c98/lib/appium_lib/common/patch.rb#L46)
|
1147
1175
|
|
1148
1176
|
> def tag_name
|
1149
1177
|
|
@@ -1153,7 +1181,7 @@ Fixes Selenium::WebDriver::Error::UnknownError: Not yet implemented
|
|
1153
1181
|
|
1154
1182
|
--
|
1155
1183
|
|
1156
|
-
##### [location_rel](https://github.com/appium/ruby_lib/blob/
|
1184
|
+
##### [location_rel](https://github.com/appium/ruby_lib/blob/8571197b04ea923db6e375bae808bf84dea52c98/lib/appium_lib/common/patch.rb#L58)
|
1157
1185
|
|
1158
1186
|
> def location_rel
|
1159
1187
|
|
@@ -1171,7 +1199,7 @@ __Returns:__
|
|
1171
1199
|
|
1172
1200
|
--
|
1173
1201
|
|
1174
|
-
##### [CORE](https://github.com/appium/ruby_lib/blob/
|
1202
|
+
##### [CORE](https://github.com/appium/ruby_lib/blob/8571197b04ea923db6e375bae808bf84dea52c98/lib/appium_lib/driver.rb#L16)
|
1175
1203
|
|
1176
1204
|
> CORE = [ :array, :hash, :class, :file, :dir, :bigdecimal, :rational, :struct, :openstruct, :method, :unboundmethod ]
|
1177
1205
|
|
@@ -1179,7 +1207,7 @@ __Returns:__
|
|
1179
1207
|
|
1180
1208
|
--
|
1181
1209
|
|
1182
|
-
##### [awesome_openstruct](https://github.com/appium/ruby_lib/blob/
|
1210
|
+
##### [awesome_openstruct](https://github.com/appium/ruby_lib/blob/8571197b04ea923db6e375bae808bf84dea52c98/lib/appium_lib/driver.rb#L18)
|
1183
1211
|
|
1184
1212
|
> def awesome_openstruct target
|
1185
1213
|
|
@@ -1187,7 +1215,7 @@ __Returns:__
|
|
1187
1215
|
|
1188
1216
|
--
|
1189
1217
|
|
1190
|
-
##### [load_appium_txt](https://github.com/appium/ruby_lib/blob/
|
1218
|
+
##### [load_appium_txt](https://github.com/appium/ruby_lib/blob/8571197b04ea923db6e375bae808bf84dea52c98/lib/appium_lib/driver.rb#L28)
|
1191
1219
|
|
1192
1220
|
> def load_appium_txt opts
|
1193
1221
|
|
@@ -1204,7 +1232,7 @@ __Returns:__
|
|
1204
1232
|
|
1205
1233
|
--
|
1206
1234
|
|
1207
|
-
##### [promote_singleton_appium_methods](https://github.com/appium/ruby_lib/blob/
|
1235
|
+
##### [promote_singleton_appium_methods](https://github.com/appium/ruby_lib/blob/8571197b04ea923db6e375bae808bf84dea52c98/lib/appium_lib/driver.rb#L156)
|
1208
1236
|
|
1209
1237
|
> def self.promote_singleton_appium_methods main_module
|
1210
1238
|
|
@@ -1212,7 +1240,7 @@ __Returns:__
|
|
1212
1240
|
|
1213
1241
|
--
|
1214
1242
|
|
1215
|
-
##### [promote_appium_methods](https://github.com/appium/ruby_lib/blob/
|
1243
|
+
##### [promote_appium_methods](https://github.com/appium/ruby_lib/blob/8571197b04ea923db6e375bae808bf84dea52c98/lib/appium_lib/driver.rb#L186)
|
1216
1244
|
|
1217
1245
|
> def self.promote_appium_methods class_array
|
1218
1246
|
|
@@ -1230,7 +1258,7 @@ __Parameters:__
|
|
1230
1258
|
|
1231
1259
|
--
|
1232
1260
|
|
1233
|
-
##### [default_wait](https://github.com/appium/ruby_lib/blob/
|
1261
|
+
##### [default_wait](https://github.com/appium/ruby_lib/blob/8571197b04ea923db6e375bae808bf84dea52c98/lib/appium_lib/driver.rb#L544)
|
1234
1262
|
|
1235
1263
|
> def default_wait
|
1236
1264
|
|
@@ -1243,7 +1271,7 @@ __Returns:__
|
|
1243
1271
|
|
1244
1272
|
--
|
1245
1273
|
|
1246
|
-
##### [app_path](https://github.com/appium/ruby_lib/blob/
|
1274
|
+
##### [app_path](https://github.com/appium/ruby_lib/blob/8571197b04ea923db6e375bae808bf84dea52c98/lib/appium_lib/driver.rb#L215)
|
1247
1275
|
|
1248
1276
|
> def app_path
|
1249
1277
|
|
@@ -1251,7 +1279,7 @@ Returns the value of attribute app_path
|
|
1251
1279
|
|
1252
1280
|
--
|
1253
1281
|
|
1254
|
-
##### [app_name](https://github.com/appium/ruby_lib/blob/
|
1282
|
+
##### [app_name](https://github.com/appium/ruby_lib/blob/8571197b04ea923db6e375bae808bf84dea52c98/lib/appium_lib/driver.rb#L215)
|
1255
1283
|
|
1256
1284
|
> def app_name
|
1257
1285
|
|
@@ -1259,7 +1287,7 @@ Returns the value of attribute app_name
|
|
1259
1287
|
|
1260
1288
|
--
|
1261
1289
|
|
1262
|
-
##### [device](https://github.com/appium/ruby_lib/blob/
|
1290
|
+
##### [device](https://github.com/appium/ruby_lib/blob/8571197b04ea923db6e375bae808bf84dea52c98/lib/appium_lib/driver.rb#L215)
|
1263
1291
|
|
1264
1292
|
> def device
|
1265
1293
|
|
@@ -1267,7 +1295,7 @@ Returns the value of attribute device
|
|
1267
1295
|
|
1268
1296
|
--
|
1269
1297
|
|
1270
|
-
##### [app_package](https://github.com/appium/ruby_lib/blob/
|
1298
|
+
##### [app_package](https://github.com/appium/ruby_lib/blob/8571197b04ea923db6e375bae808bf84dea52c98/lib/appium_lib/driver.rb#L215)
|
1271
1299
|
|
1272
1300
|
> def app_package
|
1273
1301
|
|
@@ -1275,7 +1303,7 @@ Returns the value of attribute app_package
|
|
1275
1303
|
|
1276
1304
|
--
|
1277
1305
|
|
1278
|
-
##### [app_activity](https://github.com/appium/ruby_lib/blob/
|
1306
|
+
##### [app_activity](https://github.com/appium/ruby_lib/blob/8571197b04ea923db6e375bae808bf84dea52c98/lib/appium_lib/driver.rb#L215)
|
1279
1307
|
|
1280
1308
|
> def app_activity
|
1281
1309
|
|
@@ -1283,7 +1311,7 @@ Returns the value of attribute app_activity
|
|
1283
1311
|
|
1284
1312
|
--
|
1285
1313
|
|
1286
|
-
##### [app_wait_activity](https://github.com/appium/ruby_lib/blob/
|
1314
|
+
##### [app_wait_activity](https://github.com/appium/ruby_lib/blob/8571197b04ea923db6e375bae808bf84dea52c98/lib/appium_lib/driver.rb#L215)
|
1287
1315
|
|
1288
1316
|
> def app_wait_activity
|
1289
1317
|
|
@@ -1291,7 +1319,7 @@ Returns the value of attribute app_wait_activity
|
|
1291
1319
|
|
1292
1320
|
--
|
1293
1321
|
|
1294
|
-
##### [sauce_username](https://github.com/appium/ruby_lib/blob/
|
1322
|
+
##### [sauce_username](https://github.com/appium/ruby_lib/blob/8571197b04ea923db6e375bae808bf84dea52c98/lib/appium_lib/driver.rb#L215)
|
1295
1323
|
|
1296
1324
|
> def sauce_username
|
1297
1325
|
|
@@ -1299,7 +1327,7 @@ Returns the value of attribute sauce_username
|
|
1299
1327
|
|
1300
1328
|
--
|
1301
1329
|
|
1302
|
-
##### [sauce_access_key](https://github.com/appium/ruby_lib/blob/
|
1330
|
+
##### [sauce_access_key](https://github.com/appium/ruby_lib/blob/8571197b04ea923db6e375bae808bf84dea52c98/lib/appium_lib/driver.rb#L215)
|
1303
1331
|
|
1304
1332
|
> def sauce_access_key
|
1305
1333
|
|
@@ -1307,7 +1335,7 @@ Returns the value of attribute sauce_access_key
|
|
1307
1335
|
|
1308
1336
|
--
|
1309
1337
|
|
1310
|
-
##### [port](https://github.com/appium/ruby_lib/blob/
|
1338
|
+
##### [port](https://github.com/appium/ruby_lib/blob/8571197b04ea923db6e375bae808bf84dea52c98/lib/appium_lib/driver.rb#L215)
|
1311
1339
|
|
1312
1340
|
> def port
|
1313
1341
|
|
@@ -1315,7 +1343,7 @@ Returns the value of attribute port
|
|
1315
1343
|
|
1316
1344
|
--
|
1317
1345
|
|
1318
|
-
##### [debug](https://github.com/appium/ruby_lib/blob/
|
1346
|
+
##### [debug](https://github.com/appium/ruby_lib/blob/8571197b04ea923db6e375bae808bf84dea52c98/lib/appium_lib/driver.rb#L215)
|
1319
1347
|
|
1320
1348
|
> def debug
|
1321
1349
|
|
@@ -1323,7 +1351,7 @@ Returns the value of attribute debug
|
|
1323
1351
|
|
1324
1352
|
--
|
1325
1353
|
|
1326
|
-
##### [export_session](https://github.com/appium/ruby_lib/blob/
|
1354
|
+
##### [export_session](https://github.com/appium/ruby_lib/blob/8571197b04ea923db6e375bae808bf84dea52c98/lib/appium_lib/driver.rb#L215)
|
1327
1355
|
|
1328
1356
|
> def export_session
|
1329
1357
|
|
@@ -1331,7 +1359,7 @@ Returns the value of attribute export_session
|
|
1331
1359
|
|
1332
1360
|
--
|
1333
1361
|
|
1334
|
-
##### [device_cap](https://github.com/appium/ruby_lib/blob/
|
1362
|
+
##### [device_cap](https://github.com/appium/ruby_lib/blob/8571197b04ea923db6e375bae808bf84dea52c98/lib/appium_lib/driver.rb#L215)
|
1335
1363
|
|
1336
1364
|
> def device_cap
|
1337
1365
|
|
@@ -1339,7 +1367,7 @@ Returns the value of attribute device_cap
|
|
1339
1367
|
|
1340
1368
|
--
|
1341
1369
|
|
1342
|
-
##### [compress_xml](https://github.com/appium/ruby_lib/blob/
|
1370
|
+
##### [compress_xml](https://github.com/appium/ruby_lib/blob/8571197b04ea923db6e375bae808bf84dea52c98/lib/appium_lib/driver.rb#L215)
|
1343
1371
|
|
1344
1372
|
> def compress_xml
|
1345
1373
|
|
@@ -1347,7 +1375,7 @@ Returns the value of attribute compress_xml
|
|
1347
1375
|
|
1348
1376
|
--
|
1349
1377
|
|
1350
|
-
##### [custom_url](https://github.com/appium/ruby_lib/blob/
|
1378
|
+
##### [custom_url](https://github.com/appium/ruby_lib/blob/8571197b04ea923db6e375bae808bf84dea52c98/lib/appium_lib/driver.rb#L215)
|
1351
1379
|
|
1352
1380
|
> def custom_url
|
1353
1381
|
|
@@ -1355,7 +1383,7 @@ Returns the value of attribute custom_url
|
|
1355
1383
|
|
1356
1384
|
--
|
1357
1385
|
|
1358
|
-
##### [global_webdriver_http_sleep](https://github.com/appium/ruby_lib/blob/
|
1386
|
+
##### [global_webdriver_http_sleep](https://github.com/appium/ruby_lib/blob/8571197b04ea923db6e375bae808bf84dea52c98/lib/appium_lib/driver.rb#L221)
|
1359
1387
|
|
1360
1388
|
> def global_webdriver_http_sleep
|
1361
1389
|
|
@@ -1363,7 +1391,7 @@ The amount to sleep in seconds before every webdriver http call.
|
|
1363
1391
|
|
1364
1392
|
--
|
1365
1393
|
|
1366
|
-
##### [global_webdriver_http_sleep=](https://github.com/appium/ruby_lib/blob/
|
1394
|
+
##### [global_webdriver_http_sleep=](https://github.com/appium/ruby_lib/blob/8571197b04ea923db6e375bae808bf84dea52c98/lib/appium_lib/driver.rb#L221)
|
1367
1395
|
|
1368
1396
|
> def global_webdriver_http_sleep=(value)
|
1369
1397
|
|
@@ -1371,7 +1399,7 @@ The amount to sleep in seconds before every webdriver http call.
|
|
1371
1399
|
|
1372
1400
|
--
|
1373
1401
|
|
1374
|
-
##### [initialize](https://github.com/appium/ruby_lib/blob/
|
1402
|
+
##### [initialize](https://github.com/appium/ruby_lib/blob/8571197b04ea923db6e375bae808bf84dea52c98/lib/appium_lib/driver.rb#L251)
|
1375
1403
|
|
1376
1404
|
> def initialize opts={}
|
1377
1405
|
|
@@ -1412,7 +1440,7 @@ __Returns:__
|
|
1412
1440
|
|
1413
1441
|
--
|
1414
1442
|
|
1415
|
-
##### [status](https://github.com/appium/ruby_lib/blob/
|
1443
|
+
##### [status](https://github.com/appium/ruby_lib/blob/8571197b04ea923db6e375bae808bf84dea52c98/lib/appium_lib/driver.rb#L363)
|
1416
1444
|
|
1417
1445
|
> def status
|
1418
1446
|
|
@@ -1438,7 +1466,7 @@ __Returns:__
|
|
1438
1466
|
|
1439
1467
|
--
|
1440
1468
|
|
1441
|
-
##### [server_version](https://github.com/appium/ruby_lib/blob/
|
1469
|
+
##### [server_version](https://github.com/appium/ruby_lib/blob/8571197b04ea923db6e375bae808bf84dea52c98/lib/appium_lib/driver.rb#L369)
|
1442
1470
|
|
1443
1471
|
> def server_version
|
1444
1472
|
|
@@ -1450,7 +1478,7 @@ __Returns:__
|
|
1450
1478
|
|
1451
1479
|
--
|
1452
1480
|
|
1453
|
-
##### [absolute_app_path](https://github.com/appium/ruby_lib/blob/
|
1481
|
+
##### [absolute_app_path](https://github.com/appium/ruby_lib/blob/8571197b04ea923db6e375bae808bf84dea52c98/lib/appium_lib/driver.rb#L410)
|
1454
1482
|
|
1455
1483
|
> def absolute_app_path
|
1456
1484
|
|
@@ -1462,7 +1490,7 @@ __Returns:__
|
|
1462
1490
|
|
1463
1491
|
--
|
1464
1492
|
|
1465
|
-
##### [server_url](https://github.com/appium/ruby_lib/blob/
|
1493
|
+
##### [server_url](https://github.com/appium/ruby_lib/blob/8571197b04ea923db6e375bae808bf84dea52c98/lib/appium_lib/driver.rb#L430)
|
1466
1494
|
|
1467
1495
|
> def server_url
|
1468
1496
|
|
@@ -1474,7 +1502,7 @@ __Returns:__
|
|
1474
1502
|
|
1475
1503
|
--
|
1476
1504
|
|
1477
|
-
##### [restart](https://github.com/appium/ruby_lib/blob/
|
1505
|
+
##### [restart](https://github.com/appium/ruby_lib/blob/8571197b04ea923db6e375bae808bf84dea52c98/lib/appium_lib/driver.rb#L441)
|
1478
1506
|
|
1479
1507
|
> def restart
|
1480
1508
|
|
@@ -1486,7 +1514,7 @@ __Returns:__
|
|
1486
1514
|
|
1487
1515
|
--
|
1488
1516
|
|
1489
|
-
##### [driver](https://github.com/appium/ruby_lib/blob/
|
1517
|
+
##### [driver](https://github.com/appium/ruby_lib/blob/8571197b04ea923db6e375bae808bf84dea52c98/lib/appium_lib/driver.rb#L448)
|
1490
1518
|
|
1491
1519
|
> def driver
|
1492
1520
|
|
@@ -1498,7 +1526,7 @@ __Returns:__
|
|
1498
1526
|
|
1499
1527
|
--
|
1500
1528
|
|
1501
|
-
##### [screenshot](https://github.com/appium/ruby_lib/blob/
|
1529
|
+
##### [screenshot](https://github.com/appium/ruby_lib/blob/8571197b04ea923db6e375bae808bf84dea52c98/lib/appium_lib/driver.rb#L458)
|
1502
1530
|
|
1503
1531
|
> def screenshot png_save_path
|
1504
1532
|
|
@@ -1516,7 +1544,7 @@ __Returns:__
|
|
1516
1544
|
|
1517
1545
|
--
|
1518
1546
|
|
1519
|
-
##### [driver_quit](https://github.com/appium/ruby_lib/blob/
|
1547
|
+
##### [driver_quit](https://github.com/appium/ruby_lib/blob/8571197b04ea923db6e375bae808bf84dea52c98/lib/appium_lib/driver.rb#L465)
|
1520
1548
|
|
1521
1549
|
> def driver_quit
|
1522
1550
|
|
@@ -1528,7 +1556,7 @@ __Returns:__
|
|
1528
1556
|
|
1529
1557
|
--
|
1530
1558
|
|
1531
|
-
##### [start_driver](https://github.com/appium/ruby_lib/blob/
|
1559
|
+
##### [start_driver](https://github.com/appium/ruby_lib/blob/8571197b04ea923db6e375bae808bf84dea52c98/lib/appium_lib/driver.rb#L473)
|
1532
1560
|
|
1533
1561
|
> def start_driver
|
1534
1562
|
|
@@ -1540,7 +1568,7 @@ __Returns:__
|
|
1540
1568
|
|
1541
1569
|
--
|
1542
1570
|
|
1543
|
-
##### [no_wait](https://github.com/appium/ruby_lib/blob/
|
1571
|
+
##### [no_wait](https://github.com/appium/ruby_lib/blob/8571197b04ea923db6e375bae808bf84dea52c98/lib/appium_lib/driver.rb#L507)
|
1544
1572
|
|
1545
1573
|
> def no_wait
|
1546
1574
|
|
@@ -1548,7 +1576,7 @@ Set implicit wait and default_wait to zero.
|
|
1548
1576
|
|
1549
1577
|
--
|
1550
1578
|
|
1551
|
-
##### [set_wait](https://github.com/appium/ruby_lib/blob/
|
1579
|
+
##### [set_wait](https://github.com/appium/ruby_lib/blob/8571197b04ea923db6e375bae808bf84dea52c98/lib/appium_lib/driver.rb#L526)
|
1552
1580
|
|
1553
1581
|
> def set_wait timeout=nil
|
1554
1582
|
|
@@ -1573,7 +1601,7 @@ __Returns:__
|
|
1573
1601
|
|
1574
1602
|
--
|
1575
1603
|
|
1576
|
-
##### [exists](https://github.com/appium/ruby_lib/blob/
|
1604
|
+
##### [exists](https://github.com/appium/ruby_lib/blob/8571197b04ea923db6e375bae808bf84dea52c98/lib/appium_lib/driver.rb#L560)
|
1577
1605
|
|
1578
1606
|
> def exists pre_check=0, post_check=@default_wait, &search_block
|
1579
1607
|
|
@@ -1599,7 +1627,7 @@ __Returns:__
|
|
1599
1627
|
|
1600
1628
|
--
|
1601
1629
|
|
1602
|
-
##### [execute_script](https://github.com/appium/ruby_lib/blob/
|
1630
|
+
##### [execute_script](https://github.com/appium/ruby_lib/blob/8571197b04ea923db6e375bae808bf84dea52c98/lib/appium_lib/driver.rb#L584)
|
1603
1631
|
|
1604
1632
|
> def execute_script script, *args
|
1605
1633
|
|
@@ -1617,7 +1645,7 @@ __Returns:__
|
|
1617
1645
|
|
1618
1646
|
--
|
1619
1647
|
|
1620
|
-
##### [mobile](https://github.com/appium/ruby_lib/blob/
|
1648
|
+
##### [mobile](https://github.com/appium/ruby_lib/blob/8571197b04ea923db6e375bae808bf84dea52c98/lib/appium_lib/driver.rb#L600)
|
1621
1649
|
|
1622
1650
|
> def mobile method, *args
|
1623
1651
|
|
@@ -1643,7 +1671,7 @@ __Returns:__
|
|
1643
1671
|
|
1644
1672
|
--
|
1645
1673
|
|
1646
|
-
##### [find_elements](https://github.com/appium/ruby_lib/blob/
|
1674
|
+
##### [find_elements](https://github.com/appium/ruby_lib/blob/8571197b04ea923db6e375bae808bf84dea52c98/lib/appium_lib/driver.rb#L611)
|
1647
1675
|
|
1648
1676
|
> def find_elements *args
|
1649
1677
|
|
@@ -1659,7 +1687,7 @@ __Returns:__
|
|
1659
1687
|
|
1660
1688
|
--
|
1661
1689
|
|
1662
|
-
##### [find_element](https://github.com/appium/ruby_lib/blob/
|
1690
|
+
##### [find_element](https://github.com/appium/ruby_lib/blob/8571197b04ea923db6e375bae808bf84dea52c98/lib/appium_lib/driver.rb#L619)
|
1663
1691
|
|
1664
1692
|
> def find_element *args
|
1665
1693
|
|
@@ -1675,7 +1703,7 @@ __Returns:__
|
|
1675
1703
|
|
1676
1704
|
--
|
1677
1705
|
|
1678
|
-
##### [x](https://github.com/appium/ruby_lib/blob/
|
1706
|
+
##### [x](https://github.com/appium/ruby_lib/blob/8571197b04ea923db6e375bae808bf84dea52c98/lib/appium_lib/driver.rb#L626)
|
1679
1707
|
|
1680
1708
|
> def x
|
1681
1709
|
|