appium_lib 0.6.7 → 0.7.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/appium_lib.gemspec +1 -1
- data/docs/android_docs.md +117 -109
- data/docs/docs.md +21 -0
- data/docs/ios_docs.md +116 -108
- data/lib/appium_lib/android/helper.rb +50 -14
- data/lib/appium_lib/common/version.rb +1 -1
- data/lib/appium_lib/driver.rb +5 -4
- data/lib/appium_lib/ios/helper.rb +24 -1
- data/readme.md +1 -1
- data/release_notes.md +10 -0
- metadata +3 -3
data/docs/docs.md
CHANGED
@@ -290,3 +290,24 @@ Dir.glob('./**/AndroidManifest.xml') do |xml|
|
|
290
290
|
end
|
291
291
|
```
|
292
292
|
|
293
|
+
#### Android notes
|
294
|
+
|
295
|
+
list all ids on API 18
|
296
|
+
|
297
|
+
`get_source.to_s.scan(/id\/([^\"]*)\"/)`
|
298
|
+
|
299
|
+
#### iOS notes
|
300
|
+
|
301
|
+
mobile gestures on iOS are known to be crashy. Fix by adding pre/post event sleep.
|
302
|
+
|
303
|
+
```ruby
|
304
|
+
sleep 3
|
305
|
+
mobile :tap, x: 10, y: 100, duration: 0.5
|
306
|
+
sleep 1
|
307
|
+
```
|
308
|
+
|
309
|
+
Accept an alert if it exists.
|
310
|
+
|
311
|
+
```ruby
|
312
|
+
alert_accept if exists { alert_text }
|
313
|
+
```
|
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/a1f5942e907339f1c3968c5af03feb5bde6b1b7c/lib/appium_lib/common/element/text.rb#L8)
|
2
2
|
|
3
3
|
> def s_texts
|
4
4
|
|
@@ -10,7 +10,7 @@ __Returns:__
|
|
10
10
|
|
11
11
|
--
|
12
12
|
|
13
|
-
##### [e_s_texts](https://github.com/appium/ruby_lib/blob/
|
13
|
+
##### [e_s_texts](https://github.com/appium/ruby_lib/blob/a1f5942e907339f1c3968c5af03feb5bde6b1b7c/lib/appium_lib/common/element/text.rb#L14)
|
14
14
|
|
15
15
|
> def e_s_texts
|
16
16
|
|
@@ -22,7 +22,7 @@ __Returns:__
|
|
22
22
|
|
23
23
|
--
|
24
24
|
|
25
|
-
##### [first_s_text](https://github.com/appium/ruby_lib/blob/
|
25
|
+
##### [first_s_text](https://github.com/appium/ruby_lib/blob/a1f5942e907339f1c3968c5af03feb5bde6b1b7c/lib/appium_lib/common/element/text.rb#L20)
|
26
26
|
|
27
27
|
> def first_s_text
|
28
28
|
|
@@ -34,7 +34,7 @@ __Returns:__
|
|
34
34
|
|
35
35
|
--
|
36
36
|
|
37
|
-
##### [last_s_text](https://github.com/appium/ruby_lib/blob/
|
37
|
+
##### [last_s_text](https://github.com/appium/ruby_lib/blob/a1f5942e907339f1c3968c5af03feb5bde6b1b7c/lib/appium_lib/common/element/text.rb#L26)
|
38
38
|
|
39
39
|
> def last_s_text
|
40
40
|
|
@@ -46,7 +46,7 @@ __Returns:__
|
|
46
46
|
|
47
47
|
--
|
48
48
|
|
49
|
-
##### [s_text](https://github.com/appium/ruby_lib/blob/
|
49
|
+
##### [s_text](https://github.com/appium/ruby_lib/blob/a1f5942e907339f1c3968c5af03feb5bde6b1b7c/lib/appium_lib/common/element/text.rb#L33)
|
50
50
|
|
51
51
|
> def s_text text
|
52
52
|
|
@@ -62,7 +62,7 @@ __Returns:__
|
|
62
62
|
|
63
63
|
--
|
64
64
|
|
65
|
-
##### [s_text_exact](https://github.com/appium/ruby_lib/blob/
|
65
|
+
##### [s_text_exact](https://github.com/appium/ruby_lib/blob/a1f5942e907339f1c3968c5af03feb5bde6b1b7c/lib/appium_lib/common/element/text.rb#L41)
|
66
66
|
|
67
67
|
> def s_text_exact text
|
68
68
|
|
@@ -78,7 +78,7 @@ __Returns:__
|
|
78
78
|
|
79
79
|
--
|
80
80
|
|
81
|
-
##### [window_size](https://github.com/appium/ruby_lib/blob/
|
81
|
+
##### [window_size](https://github.com/appium/ruby_lib/blob/a1f5942e907339f1c3968c5af03feb5bde6b1b7c/lib/appium_lib/common/element/window.rb#L5)
|
82
82
|
|
83
83
|
> def window_size
|
84
84
|
|
@@ -86,7 +86,7 @@ Get the window's size
|
|
86
86
|
|
87
87
|
--
|
88
88
|
|
89
|
-
##### [button](https://github.com/appium/ruby_lib/blob/
|
89
|
+
##### [button](https://github.com/appium/ruby_lib/blob/a1f5942e907339f1c3968c5af03feb5bde6b1b7c/lib/appium_lib/common/element/button.rb#L8)
|
90
90
|
|
91
91
|
> def button text, number=0
|
92
92
|
|
@@ -104,7 +104,7 @@ __Returns:__
|
|
104
104
|
|
105
105
|
--
|
106
106
|
|
107
|
-
##### [buttons](https://github.com/appium/ruby_lib/blob/
|
107
|
+
##### [buttons](https://github.com/appium/ruby_lib/blob/a1f5942e907339f1c3968c5af03feb5bde6b1b7c/lib/appium_lib/common/element/button.rb#L19)
|
108
108
|
|
109
109
|
> def buttons text=nil
|
110
110
|
|
@@ -120,7 +120,7 @@ __Returns:__
|
|
120
120
|
|
121
121
|
--
|
122
122
|
|
123
|
-
##### [first_button](https://github.com/appium/ruby_lib/blob/
|
123
|
+
##### [first_button](https://github.com/appium/ruby_lib/blob/a1f5942e907339f1c3968c5af03feb5bde6b1b7c/lib/appium_lib/common/element/button.rb#L26)
|
124
124
|
|
125
125
|
> def first_button
|
126
126
|
|
@@ -132,7 +132,7 @@ __Returns:__
|
|
132
132
|
|
133
133
|
--
|
134
134
|
|
135
|
-
##### [last_button](https://github.com/appium/ruby_lib/blob/
|
135
|
+
##### [last_button](https://github.com/appium/ruby_lib/blob/a1f5942e907339f1c3968c5af03feb5bde6b1b7c/lib/appium_lib/common/element/button.rb#L32)
|
136
136
|
|
137
137
|
> def last_button
|
138
138
|
|
@@ -144,7 +144,7 @@ __Returns:__
|
|
144
144
|
|
145
145
|
--
|
146
146
|
|
147
|
-
##### [button_exact](https://github.com/appium/ruby_lib/blob/
|
147
|
+
##### [button_exact](https://github.com/appium/ruby_lib/blob/a1f5942e907339f1c3968c5af03feb5bde6b1b7c/lib/appium_lib/common/element/button.rb#L39)
|
148
148
|
|
149
149
|
> def button_exact text
|
150
150
|
|
@@ -160,7 +160,7 @@ __Returns:__
|
|
160
160
|
|
161
161
|
--
|
162
162
|
|
163
|
-
##### [buttons_exact](https://github.com/appium/ruby_lib/blob/
|
163
|
+
##### [buttons_exact](https://github.com/appium/ruby_lib/blob/a1f5942e907339f1c3968c5af03feb5bde6b1b7c/lib/appium_lib/common/element/button.rb#L46)
|
164
164
|
|
165
165
|
> def buttons_exact text
|
166
166
|
|
@@ -176,7 +176,7 @@ __Returns:__
|
|
176
176
|
|
177
177
|
--
|
178
178
|
|
179
|
-
##### [e_buttons](https://github.com/appium/ruby_lib/blob/
|
179
|
+
##### [e_buttons](https://github.com/appium/ruby_lib/blob/a1f5942e907339f1c3968c5af03feb5bde6b1b7c/lib/appium_lib/common/element/button.rb#L52)
|
180
180
|
|
181
181
|
> def e_buttons
|
182
182
|
|
@@ -188,7 +188,7 @@ __Returns:__
|
|
188
188
|
|
189
189
|
--
|
190
190
|
|
191
|
-
##### [button_num](https://github.com/appium/ruby_lib/blob/
|
191
|
+
##### [button_num](https://github.com/appium/ruby_lib/blob/a1f5942e907339f1c3968c5af03feb5bde6b1b7c/lib/appium_lib/common/element/button.rb#L72)
|
192
192
|
|
193
193
|
> def button_num text, number=1
|
194
194
|
|
@@ -217,7 +217,7 @@ __Returns:__
|
|
217
217
|
|
218
218
|
--
|
219
219
|
|
220
|
-
##### [find_eles_attr](https://github.com/appium/ruby_lib/blob/
|
220
|
+
##### [find_eles_attr](https://github.com/appium/ruby_lib/blob/a1f5942e907339f1c3968c5af03feb5bde6b1b7c/lib/appium_lib/ios/helper.rb#L8) ios
|
221
221
|
|
222
222
|
> def find_eles_attr tag_name, attribute
|
223
223
|
|
@@ -236,7 +236,7 @@ __Returns:__
|
|
236
236
|
|
237
237
|
--
|
238
238
|
|
239
|
-
##### [find_2_eles_attr](https://github.com/appium/ruby_lib/blob/
|
239
|
+
##### [find_2_eles_attr](https://github.com/appium/ruby_lib/blob/a1f5942e907339f1c3968c5af03feb5bde6b1b7c/lib/appium_lib/ios/helper.rb#L29) ios
|
240
240
|
|
241
241
|
> def find_2_eles_attr tag_name_1, tag_name_2, attribute
|
242
242
|
|
@@ -257,7 +257,7 @@ __Returns:__
|
|
257
257
|
|
258
258
|
--
|
259
259
|
|
260
|
-
##### [password](https://github.com/appium/ruby_lib/blob/
|
260
|
+
##### [password](https://github.com/appium/ruby_lib/blob/a1f5942e907339f1c3968c5af03feb5bde6b1b7c/lib/appium_lib/ios/helper.rb#L50) ios
|
261
261
|
|
262
262
|
> def password length=1
|
263
263
|
|
@@ -275,7 +275,7 @@ __Returns:__
|
|
275
275
|
|
276
276
|
--
|
277
277
|
|
278
|
-
##### [get_page_class](https://github.com/appium/ruby_lib/blob/
|
278
|
+
##### [get_page_class](https://github.com/appium/ruby_lib/blob/a1f5942e907339f1c3968c5af03feb5bde6b1b7c/lib/appium_lib/ios/helper.rb#L55) ios
|
279
279
|
|
280
280
|
> def get_page_class
|
281
281
|
|
@@ -283,7 +283,7 @@ Returns a string of class counts.
|
|
283
283
|
|
284
284
|
--
|
285
285
|
|
286
|
-
##### [page_class](https://github.com/appium/ruby_lib/blob/
|
286
|
+
##### [page_class](https://github.com/appium/ruby_lib/blob/a1f5942e907339f1c3968c5af03feb5bde6b1b7c/lib/appium_lib/ios/helper.rb#L81) ios
|
287
287
|
|
288
288
|
> def page_class
|
289
289
|
|
@@ -291,7 +291,7 @@ Returns a string of class counts.
|
|
291
291
|
|
292
292
|
--
|
293
293
|
|
294
|
-
##### [get_page](https://github.com/appium/ruby_lib/blob/
|
294
|
+
##### [get_page](https://github.com/appium/ruby_lib/blob/a1f5942e907339f1c3968c5af03feb5bde6b1b7c/lib/appium_lib/ios/helper.rb#L90) ios
|
295
295
|
|
296
296
|
> def get_page element=get_source
|
297
297
|
|
@@ -307,7 +307,7 @@ __Returns:__
|
|
307
307
|
|
308
308
|
--
|
309
309
|
|
310
|
-
##### [page](https://github.com/appium/ruby_lib/blob/
|
310
|
+
##### [page](https://github.com/appium/ruby_lib/blob/a1f5942e907339f1c3968c5af03feb5bde6b1b7c/lib/appium_lib/ios/helper.rb#L135) ios
|
311
311
|
|
312
312
|
> def page
|
313
313
|
|
@@ -319,7 +319,7 @@ __Returns:__
|
|
319
319
|
|
320
320
|
--
|
321
321
|
|
322
|
-
##### [source_window](https://github.com/appium/ruby_lib/blob/
|
322
|
+
##### [source_window](https://github.com/appium/ruby_lib/blob/a1f5942e907339f1c3968c5af03feb5bde6b1b7c/lib/appium_lib/ios/helper.rb#L143) ios
|
323
323
|
|
324
324
|
> def source_window window_number=0
|
325
325
|
|
@@ -335,7 +335,7 @@ __Returns:__
|
|
335
335
|
|
336
336
|
--
|
337
337
|
|
338
|
-
##### [page_window](https://github.com/appium/ruby_lib/blob/
|
338
|
+
##### [page_window](https://github.com/appium/ruby_lib/blob/a1f5942e907339f1c3968c5af03feb5bde6b1b7c/lib/appium_lib/ios/helper.rb#L150) ios
|
339
339
|
|
340
340
|
> def page_window window_number=0
|
341
341
|
|
@@ -348,7 +348,7 @@ __Parameters:__
|
|
348
348
|
|
349
349
|
--
|
350
350
|
|
351
|
-
##### [fast_duration](https://github.com/appium/ruby_lib/blob/
|
351
|
+
##### [fast_duration](https://github.com/appium/ruby_lib/blob/a1f5942e907339f1c3968c5af03feb5bde6b1b7c/lib/appium_lib/ios/helper.rb#L157) ios
|
352
352
|
|
353
353
|
> def fast_duration
|
354
354
|
|
@@ -360,7 +360,7 @@ __Returns:__
|
|
360
360
|
|
361
361
|
--
|
362
362
|
|
363
|
-
##### [alert_click](https://github.com/appium/ruby_lib/blob/
|
363
|
+
##### [alert_click](https://github.com/appium/ruby_lib/blob/a1f5942e907339f1c3968c5af03feb5bde6b1b7c/lib/appium_lib/ios/element/alert.rb#L14) ios
|
364
364
|
|
365
365
|
> def alert_click value
|
366
366
|
|
@@ -383,7 +383,7 @@ __Returns:__
|
|
383
383
|
|
384
384
|
--
|
385
385
|
|
386
|
-
##### [alert_text](https://github.com/appium/ruby_lib/blob/
|
386
|
+
##### [alert_text](https://github.com/appium/ruby_lib/blob/a1f5942e907339f1c3968c5af03feb5bde6b1b7c/lib/appium_lib/ios/element/alert.rb#L21) ios
|
387
387
|
|
388
388
|
> def alert_text
|
389
389
|
|
@@ -395,7 +395,7 @@ __Returns:__
|
|
395
395
|
|
396
396
|
--
|
397
397
|
|
398
|
-
##### [alert_accept](https://github.com/appium/ruby_lib/blob/
|
398
|
+
##### [alert_accept](https://github.com/appium/ruby_lib/blob/a1f5942e907339f1c3968c5af03feb5bde6b1b7c/lib/appium_lib/ios/element/alert.rb#L30) ios
|
399
399
|
|
400
400
|
> def alert_accept
|
401
401
|
|
@@ -407,7 +407,7 @@ __Returns:__
|
|
407
407
|
|
408
408
|
--
|
409
409
|
|
410
|
-
##### [alert_accept_text](https://github.com/appium/ruby_lib/blob/
|
410
|
+
##### [alert_accept_text](https://github.com/appium/ruby_lib/blob/a1f5942e907339f1c3968c5af03feb5bde6b1b7c/lib/appium_lib/ios/element/alert.rb#L39) ios
|
411
411
|
|
412
412
|
> def alert_accept_text
|
413
413
|
|
@@ -420,7 +420,7 @@ __Returns:__
|
|
420
420
|
|
421
421
|
--
|
422
422
|
|
423
|
-
##### [alert_dismiss](https://github.com/appium/ruby_lib/blob/
|
423
|
+
##### [alert_dismiss](https://github.com/appium/ruby_lib/blob/a1f5942e907339f1c3968c5af03feb5bde6b1b7c/lib/appium_lib/ios/element/alert.rb#L48) ios
|
424
424
|
|
425
425
|
> def alert_dismiss
|
426
426
|
|
@@ -432,7 +432,7 @@ __Returns:__
|
|
432
432
|
|
433
433
|
--
|
434
434
|
|
435
|
-
##### [alert_dismiss_text](https://github.com/appium/ruby_lib/blob/
|
435
|
+
##### [alert_dismiss_text](https://github.com/appium/ruby_lib/blob/a1f5942e907339f1c3968c5af03feb5bde6b1b7c/lib/appium_lib/ios/element/alert.rb#L57) ios
|
436
436
|
|
437
437
|
> def alert_dismiss_text
|
438
438
|
|
@@ -445,7 +445,7 @@ __Returns:__
|
|
445
445
|
|
446
446
|
--
|
447
447
|
|
448
|
-
##### [find](https://github.com/appium/ruby_lib/blob/
|
448
|
+
##### [find](https://github.com/appium/ruby_lib/blob/a1f5942e907339f1c3968c5af03feb5bde6b1b7c/lib/appium_lib/ios/element/generic.rb#L61) ios
|
449
449
|
|
450
450
|
> def find text
|
451
451
|
|
@@ -461,7 +461,7 @@ __Returns:__
|
|
461
461
|
|
462
462
|
--
|
463
463
|
|
464
|
-
##### [finds](https://github.com/appium/ruby_lib/blob/
|
464
|
+
##### [finds](https://github.com/appium/ruby_lib/blob/a1f5942e907339f1c3968c5af03feb5bde6b1b7c/lib/appium_lib/ios/element/generic.rb#L83) ios
|
465
465
|
|
466
466
|
> def finds text
|
467
467
|
|
@@ -477,7 +477,7 @@ __Returns:__
|
|
477
477
|
|
478
478
|
--
|
479
479
|
|
480
|
-
##### [text](https://github.com/appium/ruby_lib/blob/
|
480
|
+
##### [text](https://github.com/appium/ruby_lib/blob/a1f5942e907339f1c3968c5af03feb5bde6b1b7c/lib/appium_lib/ios/element/generic.rb#L97) ios
|
481
481
|
|
482
482
|
> def text text
|
483
483
|
|
@@ -493,7 +493,7 @@ __Returns:__
|
|
493
493
|
|
494
494
|
--
|
495
495
|
|
496
|
-
##### [texts](https://github.com/appium/ruby_lib/blob/
|
496
|
+
##### [texts](https://github.com/appium/ruby_lib/blob/a1f5942e907339f1c3968c5af03feb5bde6b1b7c/lib/appium_lib/ios/element/generic.rb#L105) ios
|
497
497
|
|
498
498
|
> def texts text
|
499
499
|
|
@@ -509,7 +509,7 @@ __Returns:__
|
|
509
509
|
|
510
510
|
--
|
511
511
|
|
512
|
-
##### [name](https://github.com/appium/ruby_lib/blob/
|
512
|
+
##### [name](https://github.com/appium/ruby_lib/blob/a1f5942e907339f1c3968c5af03feb5bde6b1b7c/lib/appium_lib/ios/element/generic.rb#L117) ios
|
513
513
|
|
514
514
|
> def name name
|
515
515
|
|
@@ -527,7 +527,7 @@ __Returns:__
|
|
527
527
|
|
528
528
|
--
|
529
529
|
|
530
|
-
##### [names](https://github.com/appium/ruby_lib/blob/
|
530
|
+
##### [names](https://github.com/appium/ruby_lib/blob/a1f5942e907339f1c3968c5af03feb5bde6b1b7c/lib/appium_lib/ios/element/generic.rb#L126) ios
|
531
531
|
|
532
532
|
> def names name
|
533
533
|
|
@@ -545,7 +545,7 @@ __Returns:__
|
|
545
545
|
|
546
546
|
--
|
547
547
|
|
548
|
-
##### [textfields](https://github.com/appium/ruby_lib/blob/
|
548
|
+
##### [textfields](https://github.com/appium/ruby_lib/blob/a1f5942e907339f1c3968c5af03feb5bde6b1b7c/lib/appium_lib/ios/element/textfield.rb#L10) ios
|
549
549
|
|
550
550
|
> def textfields
|
551
551
|
|
@@ -557,7 +557,7 @@ __Returns:__
|
|
557
557
|
|
558
558
|
--
|
559
559
|
|
560
|
-
##### [e_textfields](https://github.com/appium/ruby_lib/blob/
|
560
|
+
##### [e_textfields](https://github.com/appium/ruby_lib/blob/a1f5942e907339f1c3968c5af03feb5bde6b1b7c/lib/appium_lib/ios/element/textfield.rb#L16) ios
|
561
561
|
|
562
562
|
> def e_textfields
|
563
563
|
|
@@ -569,7 +569,7 @@ __Returns:__
|
|
569
569
|
|
570
570
|
--
|
571
571
|
|
572
|
-
##### [first_textfield](https://github.com/appium/ruby_lib/blob/
|
572
|
+
##### [first_textfield](https://github.com/appium/ruby_lib/blob/a1f5942e907339f1c3968c5af03feb5bde6b1b7c/lib/appium_lib/ios/element/textfield.rb#L22) ios
|
573
573
|
|
574
574
|
> def first_textfield
|
575
575
|
|
@@ -581,7 +581,7 @@ __Returns:__
|
|
581
581
|
|
582
582
|
--
|
583
583
|
|
584
|
-
##### [last_textfield](https://github.com/appium/ruby_lib/blob/
|
584
|
+
##### [last_textfield](https://github.com/appium/ruby_lib/blob/a1f5942e907339f1c3968c5af03feb5bde6b1b7c/lib/appium_lib/ios/element/textfield.rb#L29) ios
|
585
585
|
|
586
586
|
> def last_textfield
|
587
587
|
|
@@ -593,7 +593,7 @@ __Returns:__
|
|
593
593
|
|
594
594
|
--
|
595
595
|
|
596
|
-
##### [textfield](https://github.com/appium/ruby_lib/blob/
|
596
|
+
##### [textfield](https://github.com/appium/ruby_lib/blob/a1f5942e907339f1c3968c5af03feb5bde6b1b7c/lib/appium_lib/ios/element/textfield.rb#L37) ios
|
597
597
|
|
598
598
|
> def textfield text
|
599
599
|
|
@@ -609,7 +609,7 @@ __Returns:__
|
|
609
609
|
|
610
610
|
--
|
611
611
|
|
612
|
-
##### [textfield_include](https://github.com/appium/ruby_lib/blob/
|
612
|
+
##### [textfield_include](https://github.com/appium/ruby_lib/blob/a1f5942e907339f1c3968c5af03feb5bde6b1b7c/lib/appium_lib/ios/element/textfield.rb#L51) ios
|
613
613
|
|
614
614
|
> def textfield_include text
|
615
615
|
|
@@ -625,7 +625,7 @@ __Returns:__
|
|
625
625
|
|
626
626
|
--
|
627
627
|
|
628
|
-
##### [textfield_exact](https://github.com/appium/ruby_lib/blob/
|
628
|
+
##### [textfield_exact](https://github.com/appium/ruby_lib/blob/a1f5942e907339f1c3968c5af03feb5bde6b1b7c/lib/appium_lib/ios/element/textfield.rb#L64) ios
|
629
629
|
|
630
630
|
> def textfield_exact text
|
631
631
|
|
@@ -641,7 +641,7 @@ __Returns:__
|
|
641
641
|
|
642
642
|
--
|
643
643
|
|
644
|
-
##### [wait](https://github.com/appium/ruby_lib/blob/
|
644
|
+
##### [wait](https://github.com/appium/ruby_lib/blob/a1f5942e907339f1c3968c5af03feb5bde6b1b7c/lib/appium_lib/common/helper.rb#L33)
|
645
645
|
|
646
646
|
> def wait max_wait=30, interval=0.5, &block
|
647
647
|
|
@@ -668,7 +668,7 @@ __Returns:__
|
|
668
668
|
|
669
669
|
--
|
670
670
|
|
671
|
-
##### [ignore](https://github.com/appium/ruby_lib/blob/
|
671
|
+
##### [ignore](https://github.com/appium/ruby_lib/blob/a1f5942e907339f1c3968c5af03feb5bde6b1b7c/lib/appium_lib/common/helper.rb#L45)
|
672
672
|
|
673
673
|
> def ignore &block
|
674
674
|
|
@@ -676,7 +676,7 @@ Return block.call and ignore any exceptions.
|
|
676
676
|
|
677
677
|
--
|
678
678
|
|
679
|
-
##### [wait_true](https://github.com/appium/ruby_lib/blob/
|
679
|
+
##### [wait_true](https://github.com/appium/ruby_lib/blob/a1f5942e907339f1c3968c5af03feb5bde6b1b7c/lib/appium_lib/common/helper.rb#L55)
|
680
680
|
|
681
681
|
> def wait_true max_wait=30, interval=0.5, &block
|
682
682
|
|
@@ -697,7 +697,7 @@ __Returns:__
|
|
697
697
|
|
698
698
|
--
|
699
699
|
|
700
|
-
##### [id](https://github.com/appium/ruby_lib/blob/
|
700
|
+
##### [id](https://github.com/appium/ruby_lib/blob/a1f5942e907339f1c3968c5af03feb5bde6b1b7c/lib/appium_lib/common/helper.rb#L69)
|
701
701
|
|
702
702
|
> def id id
|
703
703
|
|
@@ -713,7 +713,7 @@ __Returns:__
|
|
713
713
|
|
714
714
|
--
|
715
715
|
|
716
|
-
##### [back](https://github.com/appium/ruby_lib/blob/
|
716
|
+
##### [back](https://github.com/appium/ruby_lib/blob/a1f5942e907339f1c3968c5af03feb5bde6b1b7c/lib/appium_lib/common/helper.rb#L75)
|
717
717
|
|
718
718
|
> def back
|
719
719
|
|
@@ -725,7 +725,7 @@ __Returns:__
|
|
725
725
|
|
726
726
|
--
|
727
727
|
|
728
|
-
##### [session_id](https://github.com/appium/ruby_lib/blob/
|
728
|
+
##### [session_id](https://github.com/appium/ruby_lib/blob/a1f5942e907339f1c3968c5af03feb5bde6b1b7c/lib/appium_lib/common/helper.rb#L80)
|
729
729
|
|
730
730
|
> def session_id
|
731
731
|
|
@@ -733,7 +733,7 @@ For Sauce Labs reporting. Returns the current session id.
|
|
733
733
|
|
734
734
|
--
|
735
735
|
|
736
|
-
##### [xpath](https://github.com/appium/ruby_lib/blob/
|
736
|
+
##### [xpath](https://github.com/appium/ruby_lib/blob/a1f5942e907339f1c3968c5af03feb5bde6b1b7c/lib/appium_lib/common/helper.rb#L88)
|
737
737
|
|
738
738
|
> def xpath xpath_str
|
739
739
|
|
@@ -749,7 +749,7 @@ __Returns:__
|
|
749
749
|
|
750
750
|
--
|
751
751
|
|
752
|
-
##### [xpaths](https://github.com/appium/ruby_lib/blob/
|
752
|
+
##### [xpaths](https://github.com/appium/ruby_lib/blob/a1f5942e907339f1c3968c5af03feb5bde6b1b7c/lib/appium_lib/common/helper.rb#L96)
|
753
753
|
|
754
754
|
> def xpaths xpath_str
|
755
755
|
|
@@ -765,7 +765,7 @@ __Returns:__
|
|
765
765
|
|
766
766
|
--
|
767
767
|
|
768
|
-
##### [ele_index](https://github.com/appium/ruby_lib/blob/
|
768
|
+
##### [ele_index](https://github.com/appium/ruby_lib/blob/a1f5942e907339f1c3968c5af03feb5bde6b1b7c/lib/appium_lib/common/helper.rb#L104)
|
769
769
|
|
770
770
|
> def ele_index tag_name, index
|
771
771
|
|
@@ -783,7 +783,7 @@ __Returns:__
|
|
783
783
|
|
784
784
|
--
|
785
785
|
|
786
|
-
##### [find_eles](https://github.com/appium/ruby_lib/blob/
|
786
|
+
##### [find_eles](https://github.com/appium/ruby_lib/blob/a1f5942e907339f1c3968c5af03feb5bde6b1b7c/lib/appium_lib/common/helper.rb#L112)
|
787
787
|
|
788
788
|
> def find_eles tag_name
|
789
789
|
|
@@ -799,7 +799,7 @@ __Returns:__
|
|
799
799
|
|
800
800
|
--
|
801
801
|
|
802
|
-
##### [find_ele_by_text](https://github.com/appium/ruby_lib/blob/
|
802
|
+
##### [find_ele_by_text](https://github.com/appium/ruby_lib/blob/a1f5942e907339f1c3968c5af03feb5bde6b1b7c/lib/appium_lib/common/helper.rb#L120)
|
803
803
|
|
804
804
|
> def find_ele_by_text tag, text
|
805
805
|
|
@@ -817,7 +817,7 @@ __Returns:__
|
|
817
817
|
|
818
818
|
--
|
819
819
|
|
820
|
-
##### [find_eles_by_text](https://github.com/appium/ruby_lib/blob/
|
820
|
+
##### [find_eles_by_text](https://github.com/appium/ruby_lib/blob/a1f5942e907339f1c3968c5af03feb5bde6b1b7c/lib/appium_lib/common/helper.rb#L128)
|
821
821
|
|
822
822
|
> def find_eles_by_text tag, text
|
823
823
|
|
@@ -835,7 +835,7 @@ __Returns:__
|
|
835
835
|
|
836
836
|
--
|
837
837
|
|
838
|
-
##### [find_ele_by_attr_include](https://github.com/appium/ruby_lib/blob/
|
838
|
+
##### [find_ele_by_attr_include](https://github.com/appium/ruby_lib/blob/a1f5942e907339f1c3968c5af03feb5bde6b1b7c/lib/appium_lib/common/helper.rb#L137)
|
839
839
|
|
840
840
|
> def find_ele_by_attr_include tag, attr, value
|
841
841
|
|
@@ -855,7 +855,7 @@ __Returns:__
|
|
855
855
|
|
856
856
|
--
|
857
857
|
|
858
|
-
##### [find_eles_by_attr_include](https://github.com/appium/ruby_lib/blob/
|
858
|
+
##### [find_eles_by_attr_include](https://github.com/appium/ruby_lib/blob/a1f5942e907339f1c3968c5af03feb5bde6b1b7c/lib/appium_lib/common/helper.rb#L146)
|
859
859
|
|
860
860
|
> def find_eles_by_attr_include tag, attr, value
|
861
861
|
|
@@ -875,7 +875,7 @@ __Returns:__
|
|
875
875
|
|
876
876
|
--
|
877
877
|
|
878
|
-
##### [find_ele_by_text_include](https://github.com/appium/ruby_lib/blob/
|
878
|
+
##### [find_ele_by_text_include](https://github.com/appium/ruby_lib/blob/a1f5942e907339f1c3968c5af03feb5bde6b1b7c/lib/appium_lib/common/helper.rb#L155)
|
879
879
|
|
880
880
|
> def find_ele_by_text_include tag, text
|
881
881
|
|
@@ -894,7 +894,7 @@ __Returns:__
|
|
894
894
|
|
895
895
|
--
|
896
896
|
|
897
|
-
##### [find_eles_by_text_include](https://github.com/appium/ruby_lib/blob/
|
897
|
+
##### [find_eles_by_text_include](https://github.com/appium/ruby_lib/blob/a1f5942e907339f1c3968c5af03feb5bde6b1b7c/lib/appium_lib/common/helper.rb#L164)
|
898
898
|
|
899
899
|
> def find_eles_by_text_include tag, text
|
900
900
|
|
@@ -913,7 +913,7 @@ __Returns:__
|
|
913
913
|
|
914
914
|
--
|
915
915
|
|
916
|
-
##### [first_ele](https://github.com/appium/ruby_lib/blob/
|
916
|
+
##### [first_ele](https://github.com/appium/ruby_lib/blob/a1f5942e907339f1c3968c5af03feb5bde6b1b7c/lib/appium_lib/common/helper.rb#L171)
|
917
917
|
|
918
918
|
> def first_ele tag_name
|
919
919
|
|
@@ -929,7 +929,7 @@ __Returns:__
|
|
929
929
|
|
930
930
|
--
|
931
931
|
|
932
|
-
##### [last_ele](https://github.com/appium/ruby_lib/blob/
|
932
|
+
##### [last_ele](https://github.com/appium/ruby_lib/blob/a1f5942e907339f1c3968c5af03feb5bde6b1b7c/lib/appium_lib/common/helper.rb#L179)
|
933
933
|
|
934
934
|
> def last_ele tag_name
|
935
935
|
|
@@ -945,7 +945,7 @@ __Returns:__
|
|
945
945
|
|
946
946
|
--
|
947
947
|
|
948
|
-
##### [source](https://github.com/appium/ruby_lib/blob/
|
948
|
+
##### [source](https://github.com/appium/ruby_lib/blob/a1f5942e907339f1c3968c5af03feb5bde6b1b7c/lib/appium_lib/common/helper.rb#L185)
|
949
949
|
|
950
950
|
> def source
|
951
951
|
|
@@ -957,7 +957,7 @@ __Returns:__
|
|
957
957
|
|
958
958
|
--
|
959
959
|
|
960
|
-
##### [get_source](https://github.com/appium/ruby_lib/blob/
|
960
|
+
##### [get_source](https://github.com/appium/ruby_lib/blob/a1f5942e907339f1c3968c5af03feb5bde6b1b7c/lib/appium_lib/common/helper.rb#L191)
|
961
961
|
|
962
962
|
> def get_source
|
963
963
|
|
@@ -969,7 +969,7 @@ __Returns:__
|
|
969
969
|
|
970
970
|
--
|
971
971
|
|
972
|
-
##### [find_name](https://github.com/appium/ruby_lib/blob/
|
972
|
+
##### [find_name](https://github.com/appium/ruby_lib/blob/a1f5942e907339f1c3968c5af03feb5bde6b1b7c/lib/appium_lib/common/helper.rb#L200)
|
973
973
|
|
974
974
|
> def find_name name
|
975
975
|
|
@@ -985,7 +985,7 @@ __Returns:__
|
|
985
985
|
|
986
986
|
--
|
987
987
|
|
988
|
-
##### [find_names](https://github.com/appium/ruby_lib/blob/
|
988
|
+
##### [find_names](https://github.com/appium/ruby_lib/blob/a1f5942e907339f1c3968c5af03feb5bde6b1b7c/lib/appium_lib/common/helper.rb#L208)
|
989
989
|
|
990
990
|
> def find_names name
|
991
991
|
|
@@ -1001,7 +1001,7 @@ __Returns:__
|
|
1001
1001
|
|
1002
1002
|
--
|
1003
1003
|
|
1004
|
-
##### [tag](https://github.com/appium/ruby_lib/blob/
|
1004
|
+
##### [tag](https://github.com/appium/ruby_lib/blob/a1f5942e907339f1c3968c5af03feb5bde6b1b7c/lib/appium_lib/common/helper.rb#L216)
|
1005
1005
|
|
1006
1006
|
> def tag tag_name
|
1007
1007
|
|
@@ -1017,7 +1017,7 @@ __Returns:__
|
|
1017
1017
|
|
1018
1018
|
--
|
1019
1019
|
|
1020
|
-
##### [px_to_window_rel](https://github.com/appium/ruby_lib/blob/
|
1020
|
+
##### [px_to_window_rel](https://github.com/appium/ruby_lib/blob/a1f5942e907339f1c3968c5af03feb5bde6b1b7c/lib/appium_lib/common/helper.rb#L226)
|
1021
1021
|
|
1022
1022
|
> def px_to_window_rel opts={}
|
1023
1023
|
|
@@ -1029,7 +1029,7 @@ px_to_window_rel x: 50, y: 150
|
|
1029
1029
|
|
1030
1030
|
--
|
1031
1031
|
|
1032
|
-
##### [value](https://github.com/appium/ruby_lib/blob/
|
1032
|
+
##### [value](https://github.com/appium/ruby_lib/blob/a1f5942e907339f1c3968c5af03feb5bde6b1b7c/lib/appium_lib/common/patch.rb#L32)
|
1033
1033
|
|
1034
1034
|
> def value
|
1035
1035
|
|
@@ -1039,7 +1039,7 @@ Fixes NoMethodError: undefined method `value' for Selenium::WebDriver::Element
|
|
1039
1039
|
|
1040
1040
|
--
|
1041
1041
|
|
1042
|
-
##### [name](https://github.com/appium/ruby_lib/blob/
|
1042
|
+
##### [name](https://github.com/appium/ruby_lib/blob/a1f5942e907339f1c3968c5af03feb5bde6b1b7c/lib/appium_lib/common/patch.rb#L39)
|
1043
1043
|
|
1044
1044
|
> def name
|
1045
1045
|
|
@@ -1049,7 +1049,7 @@ Fixes NoMethodError: undefined method `name' for Selenium::WebDriver::Element
|
|
1049
1049
|
|
1050
1050
|
--
|
1051
1051
|
|
1052
|
-
##### [tag_name](https://github.com/appium/ruby_lib/blob/
|
1052
|
+
##### [tag_name](https://github.com/appium/ruby_lib/blob/a1f5942e907339f1c3968c5af03feb5bde6b1b7c/lib/appium_lib/common/patch.rb#L46)
|
1053
1053
|
|
1054
1054
|
> def tag_name
|
1055
1055
|
|
@@ -1059,7 +1059,7 @@ Fixes Selenium::WebDriver::Error::UnknownError: Not yet implemented
|
|
1059
1059
|
|
1060
1060
|
--
|
1061
1061
|
|
1062
|
-
##### [location_rel](https://github.com/appium/ruby_lib/blob/
|
1062
|
+
##### [location_rel](https://github.com/appium/ruby_lib/blob/a1f5942e907339f1c3968c5af03feb5bde6b1b7c/lib/appium_lib/common/patch.rb#L58)
|
1063
1063
|
|
1064
1064
|
> def location_rel
|
1065
1065
|
|
@@ -1077,7 +1077,7 @@ __Returns:__
|
|
1077
1077
|
|
1078
1078
|
--
|
1079
1079
|
|
1080
|
-
##### [CORE](https://github.com/appium/ruby_lib/blob/
|
1080
|
+
##### [CORE](https://github.com/appium/ruby_lib/blob/a1f5942e907339f1c3968c5af03feb5bde6b1b7c/lib/appium_lib/driver.rb#L16)
|
1081
1081
|
|
1082
1082
|
> CORE = [ :array, :hash, :class, :file, :dir, :bigdecimal, :rational, :struct, :openstruct, :method, :unboundmethod ]
|
1083
1083
|
|
@@ -1085,7 +1085,7 @@ __Returns:__
|
|
1085
1085
|
|
1086
1086
|
--
|
1087
1087
|
|
1088
|
-
##### [awesome_openstruct](https://github.com/appium/ruby_lib/blob/
|
1088
|
+
##### [awesome_openstruct](https://github.com/appium/ruby_lib/blob/a1f5942e907339f1c3968c5af03feb5bde6b1b7c/lib/appium_lib/driver.rb#L18)
|
1089
1089
|
|
1090
1090
|
> def awesome_openstruct target
|
1091
1091
|
|
@@ -1093,7 +1093,7 @@ __Returns:__
|
|
1093
1093
|
|
1094
1094
|
--
|
1095
1095
|
|
1096
|
-
##### [load_appium_txt](https://github.com/appium/ruby_lib/blob/
|
1096
|
+
##### [load_appium_txt](https://github.com/appium/ruby_lib/blob/a1f5942e907339f1c3968c5af03feb5bde6b1b7c/lib/appium_lib/driver.rb#L28)
|
1097
1097
|
|
1098
1098
|
> def load_appium_txt opts
|
1099
1099
|
|
@@ -1110,7 +1110,7 @@ __Returns:__
|
|
1110
1110
|
|
1111
1111
|
--
|
1112
1112
|
|
1113
|
-
##### [promote_appium_methods](https://github.com/appium/ruby_lib/blob/
|
1113
|
+
##### [promote_appium_methods](https://github.com/appium/ruby_lib/blob/a1f5942e907339f1c3968c5af03feb5bde6b1b7c/lib/appium_lib/driver.rb#L165)
|
1114
1114
|
|
1115
1115
|
> def self.promote_appium_methods class_array
|
1116
1116
|
|
@@ -1128,7 +1128,7 @@ __Parameters:__
|
|
1128
1128
|
|
1129
1129
|
--
|
1130
1130
|
|
1131
|
-
##### [default_wait](https://github.com/appium/ruby_lib/blob/
|
1131
|
+
##### [default_wait](https://github.com/appium/ruby_lib/blob/a1f5942e907339f1c3968c5af03feb5bde6b1b7c/lib/appium_lib/driver.rb#L490)
|
1132
1132
|
|
1133
1133
|
> def default_wait
|
1134
1134
|
|
@@ -1141,7 +1141,7 @@ __Returns:__
|
|
1141
1141
|
|
1142
1142
|
--
|
1143
1143
|
|
1144
|
-
##### [app_path](https://github.com/appium/ruby_lib/blob/
|
1144
|
+
##### [app_path](https://github.com/appium/ruby_lib/blob/a1f5942e907339f1c3968c5af03feb5bde6b1b7c/lib/appium_lib/driver.rb#L194)
|
1145
1145
|
|
1146
1146
|
> def app_path
|
1147
1147
|
|
@@ -1149,7 +1149,7 @@ Returns the value of attribute app_path
|
|
1149
1149
|
|
1150
1150
|
--
|
1151
1151
|
|
1152
|
-
##### [app_name](https://github.com/appium/ruby_lib/blob/
|
1152
|
+
##### [app_name](https://github.com/appium/ruby_lib/blob/a1f5942e907339f1c3968c5af03feb5bde6b1b7c/lib/appium_lib/driver.rb#L194)
|
1153
1153
|
|
1154
1154
|
> def app_name
|
1155
1155
|
|
@@ -1157,7 +1157,7 @@ Returns the value of attribute app_name
|
|
1157
1157
|
|
1158
1158
|
--
|
1159
1159
|
|
1160
|
-
##### [device](https://github.com/appium/ruby_lib/blob/
|
1160
|
+
##### [device](https://github.com/appium/ruby_lib/blob/a1f5942e907339f1c3968c5af03feb5bde6b1b7c/lib/appium_lib/driver.rb#L194)
|
1161
1161
|
|
1162
1162
|
> def device
|
1163
1163
|
|
@@ -1165,7 +1165,7 @@ Returns the value of attribute device
|
|
1165
1165
|
|
1166
1166
|
--
|
1167
1167
|
|
1168
|
-
##### [app_package](https://github.com/appium/ruby_lib/blob/
|
1168
|
+
##### [app_package](https://github.com/appium/ruby_lib/blob/a1f5942e907339f1c3968c5af03feb5bde6b1b7c/lib/appium_lib/driver.rb#L194)
|
1169
1169
|
|
1170
1170
|
> def app_package
|
1171
1171
|
|
@@ -1173,7 +1173,7 @@ Returns the value of attribute app_package
|
|
1173
1173
|
|
1174
1174
|
--
|
1175
1175
|
|
1176
|
-
##### [app_activity](https://github.com/appium/ruby_lib/blob/
|
1176
|
+
##### [app_activity](https://github.com/appium/ruby_lib/blob/a1f5942e907339f1c3968c5af03feb5bde6b1b7c/lib/appium_lib/driver.rb#L194)
|
1177
1177
|
|
1178
1178
|
> def app_activity
|
1179
1179
|
|
@@ -1181,7 +1181,7 @@ Returns the value of attribute app_activity
|
|
1181
1181
|
|
1182
1182
|
--
|
1183
1183
|
|
1184
|
-
##### [app_wait_activity](https://github.com/appium/ruby_lib/blob/
|
1184
|
+
##### [app_wait_activity](https://github.com/appium/ruby_lib/blob/a1f5942e907339f1c3968c5af03feb5bde6b1b7c/lib/appium_lib/driver.rb#L194)
|
1185
1185
|
|
1186
1186
|
> def app_wait_activity
|
1187
1187
|
|
@@ -1189,7 +1189,7 @@ Returns the value of attribute app_wait_activity
|
|
1189
1189
|
|
1190
1190
|
--
|
1191
1191
|
|
1192
|
-
##### [sauce_username](https://github.com/appium/ruby_lib/blob/
|
1192
|
+
##### [sauce_username](https://github.com/appium/ruby_lib/blob/a1f5942e907339f1c3968c5af03feb5bde6b1b7c/lib/appium_lib/driver.rb#L194)
|
1193
1193
|
|
1194
1194
|
> def sauce_username
|
1195
1195
|
|
@@ -1197,7 +1197,7 @@ Returns the value of attribute sauce_username
|
|
1197
1197
|
|
1198
1198
|
--
|
1199
1199
|
|
1200
|
-
##### [sauce_access_key](https://github.com/appium/ruby_lib/blob/
|
1200
|
+
##### [sauce_access_key](https://github.com/appium/ruby_lib/blob/a1f5942e907339f1c3968c5af03feb5bde6b1b7c/lib/appium_lib/driver.rb#L194)
|
1201
1201
|
|
1202
1202
|
> def sauce_access_key
|
1203
1203
|
|
@@ -1205,7 +1205,7 @@ Returns the value of attribute sauce_access_key
|
|
1205
1205
|
|
1206
1206
|
--
|
1207
1207
|
|
1208
|
-
##### [port](https://github.com/appium/ruby_lib/blob/
|
1208
|
+
##### [port](https://github.com/appium/ruby_lib/blob/a1f5942e907339f1c3968c5af03feb5bde6b1b7c/lib/appium_lib/driver.rb#L194)
|
1209
1209
|
|
1210
1210
|
> def port
|
1211
1211
|
|
@@ -1213,7 +1213,7 @@ Returns the value of attribute port
|
|
1213
1213
|
|
1214
1214
|
--
|
1215
1215
|
|
1216
|
-
##### [debug](https://github.com/appium/ruby_lib/blob/
|
1216
|
+
##### [debug](https://github.com/appium/ruby_lib/blob/a1f5942e907339f1c3968c5af03feb5bde6b1b7c/lib/appium_lib/driver.rb#L194)
|
1217
1217
|
|
1218
1218
|
> def debug
|
1219
1219
|
|
@@ -1221,7 +1221,7 @@ Returns the value of attribute debug
|
|
1221
1221
|
|
1222
1222
|
--
|
1223
1223
|
|
1224
|
-
##### [export_session](https://github.com/appium/ruby_lib/blob/
|
1224
|
+
##### [export_session](https://github.com/appium/ruby_lib/blob/a1f5942e907339f1c3968c5af03feb5bde6b1b7c/lib/appium_lib/driver.rb#L194)
|
1225
1225
|
|
1226
1226
|
> def export_session
|
1227
1227
|
|
@@ -1229,7 +1229,15 @@ Returns the value of attribute export_session
|
|
1229
1229
|
|
1230
1230
|
--
|
1231
1231
|
|
1232
|
-
##### [
|
1232
|
+
##### [device_cap](https://github.com/appium/ruby_lib/blob/a1f5942e907339f1c3968c5af03feb5bde6b1b7c/lib/appium_lib/driver.rb#L194)
|
1233
|
+
|
1234
|
+
> def device_cap
|
1235
|
+
|
1236
|
+
Returns the value of attribute device_cap
|
1237
|
+
|
1238
|
+
--
|
1239
|
+
|
1240
|
+
##### [global_webdriver_http_sleep](https://github.com/appium/ruby_lib/blob/a1f5942e907339f1c3968c5af03feb5bde6b1b7c/lib/appium_lib/driver.rb#L200)
|
1233
1241
|
|
1234
1242
|
> def global_webdriver_http_sleep
|
1235
1243
|
|
@@ -1237,7 +1245,7 @@ The amount to sleep in seconds before every webdriver http call.
|
|
1237
1245
|
|
1238
1246
|
--
|
1239
1247
|
|
1240
|
-
##### [global_webdriver_http_sleep=](https://github.com/appium/ruby_lib/blob/
|
1248
|
+
##### [global_webdriver_http_sleep=](https://github.com/appium/ruby_lib/blob/a1f5942e907339f1c3968c5af03feb5bde6b1b7c/lib/appium_lib/driver.rb#L200)
|
1241
1249
|
|
1242
1250
|
> def global_webdriver_http_sleep=(value)
|
1243
1251
|
|
@@ -1245,7 +1253,7 @@ The amount to sleep in seconds before every webdriver http call.
|
|
1245
1253
|
|
1246
1254
|
--
|
1247
1255
|
|
1248
|
-
##### [initialize](https://github.com/appium/ruby_lib/blob/
|
1256
|
+
##### [initialize](https://github.com/appium/ruby_lib/blob/a1f5942e907339f1c3968c5af03feb5bde6b1b7c/lib/appium_lib/driver.rb#L230)
|
1249
1257
|
|
1250
1258
|
> def initialize opts={}
|
1251
1259
|
|
@@ -1286,7 +1294,7 @@ __Returns:__
|
|
1286
1294
|
|
1287
1295
|
--
|
1288
1296
|
|
1289
|
-
##### [status](https://github.com/appium/ruby_lib/blob/
|
1297
|
+
##### [status](https://github.com/appium/ruby_lib/blob/a1f5942e907339f1c3968c5af03feb5bde6b1b7c/lib/appium_lib/driver.rb#L333)
|
1290
1298
|
|
1291
1299
|
> def status
|
1292
1300
|
|
@@ -1312,7 +1320,7 @@ __Returns:__
|
|
1312
1320
|
|
1313
1321
|
--
|
1314
1322
|
|
1315
|
-
##### [server_version](https://github.com/appium/ruby_lib/blob/
|
1323
|
+
##### [server_version](https://github.com/appium/ruby_lib/blob/a1f5942e907339f1c3968c5af03feb5bde6b1b7c/lib/appium_lib/driver.rb#L339)
|
1316
1324
|
|
1317
1325
|
> def server_version
|
1318
1326
|
|
@@ -1324,7 +1332,7 @@ __Returns:__
|
|
1324
1332
|
|
1325
1333
|
--
|
1326
1334
|
|
1327
|
-
##### [absolute_app_path](https://github.com/appium/ruby_lib/blob/
|
1335
|
+
##### [absolute_app_path](https://github.com/appium/ruby_lib/blob/a1f5942e907339f1c3968c5af03feb5bde6b1b7c/lib/appium_lib/driver.rb#L380)
|
1328
1336
|
|
1329
1337
|
> def absolute_app_path
|
1330
1338
|
|
@@ -1336,7 +1344,7 @@ __Returns:__
|
|
1336
1344
|
|
1337
1345
|
--
|
1338
1346
|
|
1339
|
-
##### [server_url](https://github.com/appium/ruby_lib/blob/
|
1347
|
+
##### [server_url](https://github.com/appium/ruby_lib/blob/a1f5942e907339f1c3968c5af03feb5bde6b1b7c/lib/appium_lib/driver.rb#L400)
|
1340
1348
|
|
1341
1349
|
> def server_url
|
1342
1350
|
|
@@ -1348,7 +1356,7 @@ __Returns:__
|
|
1348
1356
|
|
1349
1357
|
--
|
1350
1358
|
|
1351
|
-
##### [restart](https://github.com/appium/ruby_lib/blob/
|
1359
|
+
##### [restart](https://github.com/appium/ruby_lib/blob/a1f5942e907339f1c3968c5af03feb5bde6b1b7c/lib/appium_lib/driver.rb#L410)
|
1352
1360
|
|
1353
1361
|
> def restart
|
1354
1362
|
|
@@ -1360,7 +1368,7 @@ __Returns:__
|
|
1360
1368
|
|
1361
1369
|
--
|
1362
1370
|
|
1363
|
-
##### [driver](https://github.com/appium/ruby_lib/blob/
|
1371
|
+
##### [driver](https://github.com/appium/ruby_lib/blob/a1f5942e907339f1c3968c5af03feb5bde6b1b7c/lib/appium_lib/driver.rb#L417)
|
1364
1372
|
|
1365
1373
|
> def driver
|
1366
1374
|
|
@@ -1372,7 +1380,7 @@ __Returns:__
|
|
1372
1380
|
|
1373
1381
|
--
|
1374
1382
|
|
1375
|
-
##### [screenshot](https://github.com/appium/ruby_lib/blob/
|
1383
|
+
##### [screenshot](https://github.com/appium/ruby_lib/blob/a1f5942e907339f1c3968c5af03feb5bde6b1b7c/lib/appium_lib/driver.rb#L427)
|
1376
1384
|
|
1377
1385
|
> def screenshot png_save_path
|
1378
1386
|
|
@@ -1390,7 +1398,7 @@ __Returns:__
|
|
1390
1398
|
|
1391
1399
|
--
|
1392
1400
|
|
1393
|
-
##### [driver_quit](https://github.com/appium/ruby_lib/blob/
|
1401
|
+
##### [driver_quit](https://github.com/appium/ruby_lib/blob/a1f5942e907339f1c3968c5af03feb5bde6b1b7c/lib/appium_lib/driver.rb#L434)
|
1394
1402
|
|
1395
1403
|
> def driver_quit
|
1396
1404
|
|
@@ -1402,7 +1410,7 @@ __Returns:__
|
|
1402
1410
|
|
1403
1411
|
--
|
1404
1412
|
|
1405
|
-
##### [start_driver](https://github.com/appium/ruby_lib/blob/
|
1413
|
+
##### [start_driver](https://github.com/appium/ruby_lib/blob/a1f5942e907339f1c3968c5af03feb5bde6b1b7c/lib/appium_lib/driver.rb#L442)
|
1406
1414
|
|
1407
1415
|
> def start_driver
|
1408
1416
|
|
@@ -1414,7 +1422,7 @@ __Returns:__
|
|
1414
1422
|
|
1415
1423
|
--
|
1416
1424
|
|
1417
|
-
##### [no_wait](https://github.com/appium/ruby_lib/blob/
|
1425
|
+
##### [no_wait](https://github.com/appium/ruby_lib/blob/a1f5942e907339f1c3968c5af03feb5bde6b1b7c/lib/appium_lib/driver.rb#L476)
|
1418
1426
|
|
1419
1427
|
> def no_wait
|
1420
1428
|
|
@@ -1422,7 +1430,7 @@ Set implicit wait to zero.
|
|
1422
1430
|
|
1423
1431
|
--
|
1424
1432
|
|
1425
|
-
##### [set_wait](https://github.com/appium/ruby_lib/blob/
|
1433
|
+
##### [set_wait](https://github.com/appium/ruby_lib/blob/a1f5942e907339f1c3968c5af03feb5bde6b1b7c/lib/appium_lib/driver.rb#L483)
|
1426
1434
|
|
1427
1435
|
> def set_wait timeout=@default_wait
|
1428
1436
|
|
@@ -1438,7 +1446,7 @@ __Returns:__
|
|
1438
1446
|
|
1439
1447
|
--
|
1440
1448
|
|
1441
|
-
##### [exists](https://github.com/appium/ruby_lib/blob/
|
1449
|
+
##### [exists](https://github.com/appium/ruby_lib/blob/a1f5942e907339f1c3968c5af03feb5bde6b1b7c/lib/appium_lib/driver.rb#L506)
|
1442
1450
|
|
1443
1451
|
> def exists pre_check=0, post_check=@default_wait, &search_block
|
1444
1452
|
|
@@ -1464,7 +1472,7 @@ __Returns:__
|
|
1464
1472
|
|
1465
1473
|
--
|
1466
1474
|
|
1467
|
-
##### [execute_script](https://github.com/appium/ruby_lib/blob/
|
1475
|
+
##### [execute_script](https://github.com/appium/ruby_lib/blob/a1f5942e907339f1c3968c5af03feb5bde6b1b7c/lib/appium_lib/driver.rb#L528)
|
1468
1476
|
|
1469
1477
|
> def execute_script script, *args
|
1470
1478
|
|
@@ -1482,7 +1490,7 @@ __Returns:__
|
|
1482
1490
|
|
1483
1491
|
--
|
1484
1492
|
|
1485
|
-
##### [mobile](https://github.com/appium/ruby_lib/blob/
|
1493
|
+
##### [mobile](https://github.com/appium/ruby_lib/blob/a1f5942e907339f1c3968c5af03feb5bde6b1b7c/lib/appium_lib/driver.rb#L544)
|
1486
1494
|
|
1487
1495
|
> def mobile method, *args
|
1488
1496
|
|
@@ -1508,7 +1516,7 @@ __Returns:__
|
|
1508
1516
|
|
1509
1517
|
--
|
1510
1518
|
|
1511
|
-
##### [find_elements](https://github.com/appium/ruby_lib/blob/
|
1519
|
+
##### [find_elements](https://github.com/appium/ruby_lib/blob/a1f5942e907339f1c3968c5af03feb5bde6b1b7c/lib/appium_lib/driver.rb#L555)
|
1512
1520
|
|
1513
1521
|
> def find_elements *args
|
1514
1522
|
|
@@ -1524,7 +1532,7 @@ __Returns:__
|
|
1524
1532
|
|
1525
1533
|
--
|
1526
1534
|
|
1527
|
-
##### [find_element](https://github.com/appium/ruby_lib/blob/
|
1535
|
+
##### [find_element](https://github.com/appium/ruby_lib/blob/a1f5942e907339f1c3968c5af03feb5bde6b1b7c/lib/appium_lib/driver.rb#L563)
|
1528
1536
|
|
1529
1537
|
> def find_element *args
|
1530
1538
|
|
@@ -1540,7 +1548,7 @@ __Returns:__
|
|
1540
1548
|
|
1541
1549
|
--
|
1542
1550
|
|
1543
|
-
##### [x](https://github.com/appium/ruby_lib/blob/
|
1551
|
+
##### [x](https://github.com/appium/ruby_lib/blob/a1f5942e907339f1c3968c5af03feb5bde6b1b7c/lib/appium_lib/driver.rb#L570)
|
1544
1552
|
|
1545
1553
|
> def x
|
1546
1554
|
|