appium_lib 0.16.0 → 0.17.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/appium_lib.gemspec +2 -1
- data/docs/android_docs.md +120 -120
- data/docs/api_19_webview.md +49 -0
- data/docs/ios_docs.md +124 -124
- data/lib/appium_lib.rb +1 -1
- data/lib/appium_lib/android/webview/javascript.rb +76 -0
- data/lib/appium_lib/android/webview/webview.rb +105 -0
- data/lib/appium_lib/common/version.rb +2 -2
- data/lib/appium_lib/driver.rb +27 -21
- data/release_notes.md +6 -0
- metadata +29 -12
@@ -0,0 +1,49 @@
|
|
1
|
+
## Android API 19 Webview Automation
|
2
|
+
|
3
|
+
#### JavaScript evaluation
|
4
|
+
|
5
|
+
```ruby
|
6
|
+
# automate flickr login https://mlogin.yahoo.com/w/login?
|
7
|
+
# first click into the webview, then attach.
|
8
|
+
|
9
|
+
webview = Appium::Android::Webview.attach_to_tab package: 'com.example.Package', url: 'yahoo.com/'
|
10
|
+
webview.client.page_events = true
|
11
|
+
|
12
|
+
# javascript from this commit:
|
13
|
+
# https://github.com/appium/ruby_lib/commit/9b838f4dc280126e4468a177fa4dd83eb2417512
|
14
|
+
js = Appium::Android::Webview.javascript + <<-JS
|
15
|
+
firstEmailInput().value = 'example@example.com';
|
16
|
+
firstPasswordInput().value = 'password'
|
17
|
+
firstSubmitElement().click();
|
18
|
+
JS
|
19
|
+
|
20
|
+
webview.client.remote_eval js
|
21
|
+
webview.client.wait_for(type: WebkitRemote::Event::PageLoaded).last
|
22
|
+
|
23
|
+
# must sleep to let the page load. the page loaded event doesn't mean the page has loaded...
|
24
|
+
sleep 5
|
25
|
+
|
26
|
+
# wait for element to exist on page, then check readystate
|
27
|
+
wait_true { webview.client.remote_eval('firstAuthElement() !== null;') }
|
28
|
+
wait_true { webview.client.remote_eval('document.readyState') == 'complete' }
|
29
|
+
|
30
|
+
js = Appium::Android::Webview.javascript + <<-JS
|
31
|
+
firstAuthElement().click();
|
32
|
+
JS
|
33
|
+
|
34
|
+
webview.client.remote_eval js
|
35
|
+
|
36
|
+
# now we're successfully logge in and authorized on flickr
|
37
|
+
```
|
38
|
+
|
39
|
+
#### uiautomator accessibility
|
40
|
+
|
41
|
+
1. Load a webview. Exit the webview. From now on all webviews will have accessibility enabled.
|
42
|
+
|
43
|
+
```ruby
|
44
|
+
textfield(1).type 'example@example.com'
|
45
|
+
textfield(2).type 'password'
|
46
|
+
name('sign in').click
|
47
|
+
|
48
|
+
name("ok, i'll authorize it").click
|
49
|
+
```
|
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/b9264f66b9dd04eb5221c3a4c4ea17c4eb9ef8aa/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/b9264f66b9dd04eb5221c3a4c4ea17c4eb9ef8aa/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/b9264f66b9dd04eb5221c3a4c4ea17c4eb9ef8aa/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/b9264f66b9dd04eb5221c3a4c4ea17c4eb9ef8aa/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/b9264f66b9dd04eb5221c3a4c4ea17c4eb9ef8aa/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/b9264f66b9dd04eb5221c3a4c4ea17c4eb9ef8aa/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/b9264f66b9dd04eb5221c3a4c4ea17c4eb9ef8aa/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/b9264f66b9dd04eb5221c3a4c4ea17c4eb9ef8aa/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/b9264f66b9dd04eb5221c3a4c4ea17c4eb9ef8aa/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/b9264f66b9dd04eb5221c3a4c4ea17c4eb9ef8aa/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/b9264f66b9dd04eb5221c3a4c4ea17c4eb9ef8aa/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/b9264f66b9dd04eb5221c3a4c4ea17c4eb9ef8aa/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/b9264f66b9dd04eb5221c3a4c4ea17c4eb9ef8aa/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/b9264f66b9dd04eb5221c3a4c4ea17c4eb9ef8aa/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/b9264f66b9dd04eb5221c3a4c4ea17c4eb9ef8aa/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/b9264f66b9dd04eb5221c3a4c4ea17c4eb9ef8aa/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/b9264f66b9dd04eb5221c3a4c4ea17c4eb9ef8aa/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
|
-
##### [find_eles_attr](https://github.com/appium/ruby_lib/blob/
|
249
|
+
##### [find_eles_attr](https://github.com/appium/ruby_lib/blob/b9264f66b9dd04eb5221c3a4c4ea17c4eb9ef8aa/lib/appium_lib/ios/helper.rb#L8) ios
|
250
250
|
|
251
251
|
> def find_eles_attr tag_name, attribute
|
252
252
|
|
@@ -265,7 +265,7 @@ __Returns:__
|
|
265
265
|
|
266
266
|
--
|
267
267
|
|
268
|
-
##### [find_2_eles_attr](https://github.com/appium/ruby_lib/blob/
|
268
|
+
##### [find_2_eles_attr](https://github.com/appium/ruby_lib/blob/b9264f66b9dd04eb5221c3a4c4ea17c4eb9ef8aa/lib/appium_lib/ios/helper.rb#L29) ios
|
269
269
|
|
270
270
|
> def find_2_eles_attr tag_name_1, tag_name_2, attribute
|
271
271
|
|
@@ -286,7 +286,7 @@ __Returns:__
|
|
286
286
|
|
287
287
|
--
|
288
288
|
|
289
|
-
##### [ios_password](https://github.com/appium/ruby_lib/blob/
|
289
|
+
##### [ios_password](https://github.com/appium/ruby_lib/blob/b9264f66b9dd04eb5221c3a4c4ea17c4eb9ef8aa/lib/appium_lib/ios/helper.rb#L50) ios
|
290
290
|
|
291
291
|
> def ios_password length=1
|
292
292
|
|
@@ -304,7 +304,7 @@ __Returns:__
|
|
304
304
|
|
305
305
|
--
|
306
306
|
|
307
|
-
##### [get_page_class](https://github.com/appium/ruby_lib/blob/
|
307
|
+
##### [get_page_class](https://github.com/appium/ruby_lib/blob/b9264f66b9dd04eb5221c3a4c4ea17c4eb9ef8aa/lib/appium_lib/ios/helper.rb#L55) ios
|
308
308
|
|
309
309
|
> def get_page_class
|
310
310
|
|
@@ -312,7 +312,7 @@ Returns a string of class counts.
|
|
312
312
|
|
313
313
|
--
|
314
314
|
|
315
|
-
##### [page_class](https://github.com/appium/ruby_lib/blob/
|
315
|
+
##### [page_class](https://github.com/appium/ruby_lib/blob/b9264f66b9dd04eb5221c3a4c4ea17c4eb9ef8aa/lib/appium_lib/ios/helper.rb#L81) ios
|
316
316
|
|
317
317
|
> def page_class
|
318
318
|
|
@@ -320,7 +320,7 @@ Returns a string of class counts.
|
|
320
320
|
|
321
321
|
--
|
322
322
|
|
323
|
-
##### [get_page](https://github.com/appium/ruby_lib/blob/
|
323
|
+
##### [get_page](https://github.com/appium/ruby_lib/blob/b9264f66b9dd04eb5221c3a4c4ea17c4eb9ef8aa/lib/appium_lib/ios/helper.rb#L93) ios
|
324
324
|
|
325
325
|
> def get_page element=source_window(0)
|
326
326
|
|
@@ -339,7 +339,7 @@ __Returns:__
|
|
339
339
|
|
340
340
|
--
|
341
341
|
|
342
|
-
##### [page](https://github.com/appium/ruby_lib/blob/
|
342
|
+
##### [page](https://github.com/appium/ruby_lib/blob/b9264f66b9dd04eb5221c3a4c4ea17c4eb9ef8aa/lib/appium_lib/ios/helper.rb#L161) ios
|
343
343
|
|
344
344
|
> def page window_number = -1
|
345
345
|
|
@@ -351,7 +351,7 @@ __Returns:__
|
|
351
351
|
|
352
352
|
--
|
353
353
|
|
354
|
-
##### [source_window](https://github.com/appium/ruby_lib/blob/
|
354
|
+
##### [source_window](https://github.com/appium/ruby_lib/blob/b9264f66b9dd04eb5221c3a4c4ea17c4eb9ef8aa/lib/appium_lib/ios/helper.rb#L176) ios
|
355
355
|
|
356
356
|
> def source_window window_number=0
|
357
357
|
|
@@ -367,7 +367,7 @@ __Returns:__
|
|
367
367
|
|
368
368
|
--
|
369
369
|
|
370
|
-
##### [page_window](https://github.com/appium/ruby_lib/blob/
|
370
|
+
##### [page_window](https://github.com/appium/ruby_lib/blob/b9264f66b9dd04eb5221c3a4c4ea17c4eb9ef8aa/lib/appium_lib/ios/helper.rb#L183) ios
|
371
371
|
|
372
372
|
> def page_window window_number=0
|
373
373
|
|
@@ -380,7 +380,7 @@ __Parameters:__
|
|
380
380
|
|
381
381
|
--
|
382
382
|
|
383
|
-
##### [fast_duration](https://github.com/appium/ruby_lib/blob/
|
383
|
+
##### [fast_duration](https://github.com/appium/ruby_lib/blob/b9264f66b9dd04eb5221c3a4c4ea17c4eb9ef8aa/lib/appium_lib/ios/helper.rb#L190) ios
|
384
384
|
|
385
385
|
> def fast_duration
|
386
386
|
|
@@ -392,7 +392,7 @@ __Returns:__
|
|
392
392
|
|
393
393
|
--
|
394
394
|
|
395
|
-
##### [id](https://github.com/appium/ruby_lib/blob/
|
395
|
+
##### [id](https://github.com/appium/ruby_lib/blob/b9264f66b9dd04eb5221c3a4c4ea17c4eb9ef8aa/lib/appium_lib/ios/helper.rb#L197) ios
|
396
396
|
|
397
397
|
> def id id
|
398
398
|
|
@@ -408,7 +408,7 @@ __Returns:__
|
|
408
408
|
|
409
409
|
--
|
410
410
|
|
411
|
-
##### [ios_version](https://github.com/appium/ruby_lib/blob/
|
411
|
+
##### [ios_version](https://github.com/appium/ruby_lib/blob/b9264f66b9dd04eb5221c3a4c4ea17c4eb9ef8aa/lib/appium_lib/ios/helper.rb#L205) ios
|
412
412
|
|
413
413
|
> def ios_version
|
414
414
|
|
@@ -420,7 +420,7 @@ __Returns:__
|
|
420
420
|
|
421
421
|
--
|
422
422
|
|
423
|
-
##### [alert_click](https://github.com/appium/ruby_lib/blob/
|
423
|
+
##### [alert_click](https://github.com/appium/ruby_lib/blob/b9264f66b9dd04eb5221c3a4c4ea17c4eb9ef8aa/lib/appium_lib/ios/element/alert.rb#L14) ios
|
424
424
|
|
425
425
|
> def alert_click value
|
426
426
|
|
@@ -443,7 +443,7 @@ __Returns:__
|
|
443
443
|
|
444
444
|
--
|
445
445
|
|
446
|
-
##### [alert_text](https://github.com/appium/ruby_lib/blob/
|
446
|
+
##### [alert_text](https://github.com/appium/ruby_lib/blob/b9264f66b9dd04eb5221c3a4c4ea17c4eb9ef8aa/lib/appium_lib/ios/element/alert.rb#L21) ios
|
447
447
|
|
448
448
|
> def alert_text
|
449
449
|
|
@@ -455,7 +455,7 @@ __Returns:__
|
|
455
455
|
|
456
456
|
--
|
457
457
|
|
458
|
-
##### [alert_accept](https://github.com/appium/ruby_lib/blob/
|
458
|
+
##### [alert_accept](https://github.com/appium/ruby_lib/blob/b9264f66b9dd04eb5221c3a4c4ea17c4eb9ef8aa/lib/appium_lib/ios/element/alert.rb#L30) ios
|
459
459
|
|
460
460
|
> def alert_accept
|
461
461
|
|
@@ -467,7 +467,7 @@ __Returns:__
|
|
467
467
|
|
468
468
|
--
|
469
469
|
|
470
|
-
##### [alert_accept_text](https://github.com/appium/ruby_lib/blob/
|
470
|
+
##### [alert_accept_text](https://github.com/appium/ruby_lib/blob/b9264f66b9dd04eb5221c3a4c4ea17c4eb9ef8aa/lib/appium_lib/ios/element/alert.rb#L40) ios
|
471
471
|
|
472
472
|
> def alert_accept_text
|
473
473
|
|
@@ -481,7 +481,7 @@ __Returns:__
|
|
481
481
|
|
482
482
|
--
|
483
483
|
|
484
|
-
##### [alert_dismiss](https://github.com/appium/ruby_lib/blob/
|
484
|
+
##### [alert_dismiss](https://github.com/appium/ruby_lib/blob/b9264f66b9dd04eb5221c3a4c4ea17c4eb9ef8aa/lib/appium_lib/ios/element/alert.rb#L64) ios
|
485
485
|
|
486
486
|
> def alert_dismiss
|
487
487
|
|
@@ -493,7 +493,7 @@ __Returns:__
|
|
493
493
|
|
494
494
|
--
|
495
495
|
|
496
|
-
##### [alert_dismiss_text](https://github.com/appium/ruby_lib/blob/
|
496
|
+
##### [alert_dismiss_text](https://github.com/appium/ruby_lib/blob/b9264f66b9dd04eb5221c3a4c4ea17c4eb9ef8aa/lib/appium_lib/ios/element/alert.rb#L74) ios
|
497
497
|
|
498
498
|
> def alert_dismiss_text
|
499
499
|
|
@@ -507,7 +507,7 @@ __Returns:__
|
|
507
507
|
|
508
508
|
--
|
509
509
|
|
510
|
-
##### [find](https://github.com/appium/ruby_lib/blob/
|
510
|
+
##### [find](https://github.com/appium/ruby_lib/blob/b9264f66b9dd04eb5221c3a4c4ea17c4eb9ef8aa/lib/appium_lib/ios/element/generic.rb#L61) ios
|
511
511
|
|
512
512
|
> def find text
|
513
513
|
|
@@ -523,7 +523,7 @@ __Returns:__
|
|
523
523
|
|
524
524
|
--
|
525
525
|
|
526
|
-
##### [finds](https://github.com/appium/ruby_lib/blob/
|
526
|
+
##### [finds](https://github.com/appium/ruby_lib/blob/b9264f66b9dd04eb5221c3a4c4ea17c4eb9ef8aa/lib/appium_lib/ios/element/generic.rb#L83) ios
|
527
527
|
|
528
528
|
> def finds text
|
529
529
|
|
@@ -539,7 +539,7 @@ __Returns:__
|
|
539
539
|
|
540
540
|
--
|
541
541
|
|
542
|
-
##### [text](https://github.com/appium/ruby_lib/blob/
|
542
|
+
##### [text](https://github.com/appium/ruby_lib/blob/b9264f66b9dd04eb5221c3a4c4ea17c4eb9ef8aa/lib/appium_lib/ios/element/generic.rb#L97) ios
|
543
543
|
|
544
544
|
> def text text
|
545
545
|
|
@@ -555,7 +555,7 @@ __Returns:__
|
|
555
555
|
|
556
556
|
--
|
557
557
|
|
558
|
-
##### [texts](https://github.com/appium/ruby_lib/blob/
|
558
|
+
##### [texts](https://github.com/appium/ruby_lib/blob/b9264f66b9dd04eb5221c3a4c4ea17c4eb9ef8aa/lib/appium_lib/ios/element/generic.rb#L105) ios
|
559
559
|
|
560
560
|
> def texts text
|
561
561
|
|
@@ -571,7 +571,7 @@ __Returns:__
|
|
571
571
|
|
572
572
|
--
|
573
573
|
|
574
|
-
##### [name](https://github.com/appium/ruby_lib/blob/
|
574
|
+
##### [name](https://github.com/appium/ruby_lib/blob/b9264f66b9dd04eb5221c3a4c4ea17c4eb9ef8aa/lib/appium_lib/ios/element/generic.rb#L117) ios
|
575
575
|
|
576
576
|
> def name name
|
577
577
|
|
@@ -589,7 +589,7 @@ __Returns:__
|
|
589
589
|
|
590
590
|
--
|
591
591
|
|
592
|
-
##### [name_exact](https://github.com/appium/ruby_lib/blob/
|
592
|
+
##### [name_exact](https://github.com/appium/ruby_lib/blob/b9264f66b9dd04eb5221c3a4c4ea17c4eb9ef8aa/lib/appium_lib/ios/element/generic.rb#L121) ios
|
593
593
|
|
594
594
|
> def name_exact name
|
595
595
|
|
@@ -597,7 +597,7 @@ __Returns:__
|
|
597
597
|
|
598
598
|
--
|
599
599
|
|
600
|
-
##### [names](https://github.com/appium/ruby_lib/blob/
|
600
|
+
##### [names](https://github.com/appium/ruby_lib/blob/b9264f66b9dd04eb5221c3a4c4ea17c4eb9ef8aa/lib/appium_lib/ios/element/generic.rb#L139) ios
|
601
601
|
|
602
602
|
> def names name
|
603
603
|
|
@@ -615,7 +615,7 @@ __Returns:__
|
|
615
615
|
|
616
616
|
--
|
617
617
|
|
618
|
-
##### [locate_single_textfield](https://github.com/appium/ruby_lib/blob/
|
618
|
+
##### [locate_single_textfield](https://github.com/appium/ruby_lib/blob/b9264f66b9dd04eb5221c3a4c4ea17c4eb9ef8aa/lib/appium_lib/ios/element/textfield.rb#L8) ios
|
619
619
|
|
620
620
|
> def locate_single_textfield js
|
621
621
|
|
@@ -626,7 +626,7 @@ to match Android.
|
|
626
626
|
|
627
627
|
--
|
628
628
|
|
629
|
-
##### [textfields](https://github.com/appium/ruby_lib/blob/
|
629
|
+
##### [textfields](https://github.com/appium/ruby_lib/blob/b9264f66b9dd04eb5221c3a4c4ea17c4eb9ef8aa/lib/appium_lib/ios/element/textfield.rb#L18) ios
|
630
630
|
|
631
631
|
> def textfields
|
632
632
|
|
@@ -639,7 +639,7 @@ __Returns:__
|
|
639
639
|
|
640
640
|
--
|
641
641
|
|
642
|
-
##### [e_textfields](https://github.com/appium/ruby_lib/blob/
|
642
|
+
##### [e_textfields](https://github.com/appium/ruby_lib/blob/b9264f66b9dd04eb5221c3a4c4ea17c4eb9ef8aa/lib/appium_lib/ios/element/textfield.rb#L24) ios
|
643
643
|
|
644
644
|
> def e_textfields
|
645
645
|
|
@@ -651,7 +651,7 @@ __Returns:__
|
|
651
651
|
|
652
652
|
--
|
653
653
|
|
654
|
-
##### [first_textfield](https://github.com/appium/ruby_lib/blob/
|
654
|
+
##### [first_textfield](https://github.com/appium/ruby_lib/blob/b9264f66b9dd04eb5221c3a4c4ea17c4eb9ef8aa/lib/appium_lib/ios/element/textfield.rb#L30) ios
|
655
655
|
|
656
656
|
> def first_textfield
|
657
657
|
|
@@ -663,7 +663,7 @@ __Returns:__
|
|
663
663
|
|
664
664
|
--
|
665
665
|
|
666
|
-
##### [last_textfield](https://github.com/appium/ruby_lib/blob/
|
666
|
+
##### [last_textfield](https://github.com/appium/ruby_lib/blob/b9264f66b9dd04eb5221c3a4c4ea17c4eb9ef8aa/lib/appium_lib/ios/element/textfield.rb#L36) ios
|
667
667
|
|
668
668
|
> def last_textfield
|
669
669
|
|
@@ -675,7 +675,7 @@ __Returns:__
|
|
675
675
|
|
676
676
|
--
|
677
677
|
|
678
|
-
##### [textfield](https://github.com/appium/ruby_lib/blob/
|
678
|
+
##### [textfield](https://github.com/appium/ruby_lib/blob/b9264f66b9dd04eb5221c3a4c4ea17c4eb9ef8aa/lib/appium_lib/ios/element/textfield.rb#L43) ios
|
679
679
|
|
680
680
|
> def textfield text
|
681
681
|
|
@@ -691,7 +691,7 @@ __Returns:__
|
|
691
691
|
|
692
692
|
--
|
693
693
|
|
694
|
-
##### [textfield_include](https://github.com/appium/ruby_lib/blob/
|
694
|
+
##### [textfield_include](https://github.com/appium/ruby_lib/blob/b9264f66b9dd04eb5221c3a4c4ea17c4eb9ef8aa/lib/appium_lib/ios/element/textfield.rb#L57) ios
|
695
695
|
|
696
696
|
> def textfield_include text
|
697
697
|
|
@@ -707,7 +707,7 @@ __Returns:__
|
|
707
707
|
|
708
708
|
--
|
709
709
|
|
710
|
-
##### [textfield_exact](https://github.com/appium/ruby_lib/blob/
|
710
|
+
##### [textfield_exact](https://github.com/appium/ruby_lib/blob/b9264f66b9dd04eb5221c3a4c4ea17c4eb9ef8aa/lib/appium_lib/ios/element/textfield.rb#L64) ios
|
711
711
|
|
712
712
|
> def textfield_exact text
|
713
713
|
|
@@ -723,7 +723,7 @@ __Returns:__
|
|
723
723
|
|
724
724
|
--
|
725
725
|
|
726
|
-
##### [textfield_named](https://github.com/appium/ruby_lib/blob/
|
726
|
+
##### [textfield_named](https://github.com/appium/ruby_lib/blob/b9264f66b9dd04eb5221c3a4c4ea17c4eb9ef8aa/lib/appium_lib/ios/element/textfield.rb#L70) ios
|
727
727
|
|
728
728
|
> def textfield_named target_name
|
729
729
|
|
@@ -735,7 +735,7 @@ __Returns:__
|
|
735
735
|
|
736
736
|
--
|
737
737
|
|
738
|
-
##### [wait](https://github.com/appium/ruby_lib/blob/
|
738
|
+
##### [wait](https://github.com/appium/ruby_lib/blob/b9264f66b9dd04eb5221c3a4c4ea17c4eb9ef8aa/lib/appium_lib/common/helper.rb#L33)
|
739
739
|
|
740
740
|
> def wait max_wait=30, interval=0.5, &block
|
741
741
|
|
@@ -762,7 +762,7 @@ __Returns:__
|
|
762
762
|
|
763
763
|
--
|
764
764
|
|
765
|
-
##### [ignore](https://github.com/appium/ruby_lib/blob/
|
765
|
+
##### [ignore](https://github.com/appium/ruby_lib/blob/b9264f66b9dd04eb5221c3a4c4ea17c4eb9ef8aa/lib/appium_lib/common/helper.rb#L45)
|
766
766
|
|
767
767
|
> def ignore &block
|
768
768
|
|
@@ -770,7 +770,7 @@ Return block.call and ignore any exceptions.
|
|
770
770
|
|
771
771
|
--
|
772
772
|
|
773
|
-
##### [wait_true](https://github.com/appium/ruby_lib/blob/
|
773
|
+
##### [wait_true](https://github.com/appium/ruby_lib/blob/b9264f66b9dd04eb5221c3a4c4ea17c4eb9ef8aa/lib/appium_lib/common/helper.rb#L55)
|
774
774
|
|
775
775
|
> def wait_true max_wait=30, interval=0.5, &block
|
776
776
|
|
@@ -791,7 +791,7 @@ __Returns:__
|
|
791
791
|
|
792
792
|
--
|
793
793
|
|
794
|
-
##### [back](https://github.com/appium/ruby_lib/blob/
|
794
|
+
##### [back](https://github.com/appium/ruby_lib/blob/b9264f66b9dd04eb5221c3a4c4ea17c4eb9ef8aa/lib/appium_lib/common/helper.rb#L68)
|
795
795
|
|
796
796
|
> def back
|
797
797
|
|
@@ -803,7 +803,7 @@ __Returns:__
|
|
803
803
|
|
804
804
|
--
|
805
805
|
|
806
|
-
##### [session_id](https://github.com/appium/ruby_lib/blob/
|
806
|
+
##### [session_id](https://github.com/appium/ruby_lib/blob/b9264f66b9dd04eb5221c3a4c4ea17c4eb9ef8aa/lib/appium_lib/common/helper.rb#L73)
|
807
807
|
|
808
808
|
> def session_id
|
809
809
|
|
@@ -811,7 +811,7 @@ For Sauce Labs reporting. Returns the current session id.
|
|
811
811
|
|
812
812
|
--
|
813
813
|
|
814
|
-
##### [xpath](https://github.com/appium/ruby_lib/blob/
|
814
|
+
##### [xpath](https://github.com/appium/ruby_lib/blob/b9264f66b9dd04eb5221c3a4c4ea17c4eb9ef8aa/lib/appium_lib/common/helper.rb#L81)
|
815
815
|
|
816
816
|
> def xpath xpath_str
|
817
817
|
|
@@ -827,7 +827,7 @@ __Returns:__
|
|
827
827
|
|
828
828
|
--
|
829
829
|
|
830
|
-
##### [xpaths](https://github.com/appium/ruby_lib/blob/
|
830
|
+
##### [xpaths](https://github.com/appium/ruby_lib/blob/b9264f66b9dd04eb5221c3a4c4ea17c4eb9ef8aa/lib/appium_lib/common/helper.rb#L89)
|
831
831
|
|
832
832
|
> def xpaths xpath_str
|
833
833
|
|
@@ -843,7 +843,7 @@ __Returns:__
|
|
843
843
|
|
844
844
|
--
|
845
845
|
|
846
|
-
##### [ele_index](https://github.com/appium/ruby_lib/blob/
|
846
|
+
##### [ele_index](https://github.com/appium/ruby_lib/blob/b9264f66b9dd04eb5221c3a4c4ea17c4eb9ef8aa/lib/appium_lib/common/helper.rb#L97)
|
847
847
|
|
848
848
|
> def ele_index tag_name, index
|
849
849
|
|
@@ -861,7 +861,7 @@ __Returns:__
|
|
861
861
|
|
862
862
|
--
|
863
863
|
|
864
|
-
##### [find_eles](https://github.com/appium/ruby_lib/blob/
|
864
|
+
##### [find_eles](https://github.com/appium/ruby_lib/blob/b9264f66b9dd04eb5221c3a4c4ea17c4eb9ef8aa/lib/appium_lib/common/helper.rb#L106)
|
865
865
|
|
866
866
|
> def find_eles tag_name
|
867
867
|
|
@@ -877,7 +877,7 @@ __Returns:__
|
|
877
877
|
|
878
878
|
--
|
879
879
|
|
880
|
-
##### [find_ele_by_text](https://github.com/appium/ruby_lib/blob/
|
880
|
+
##### [find_ele_by_text](https://github.com/appium/ruby_lib/blob/b9264f66b9dd04eb5221c3a4c4ea17c4eb9ef8aa/lib/appium_lib/common/helper.rb#L114)
|
881
881
|
|
882
882
|
> def find_ele_by_text tag, text
|
883
883
|
|
@@ -895,7 +895,7 @@ __Returns:__
|
|
895
895
|
|
896
896
|
--
|
897
897
|
|
898
|
-
##### [find_eles_by_text](https://github.com/appium/ruby_lib/blob/
|
898
|
+
##### [find_eles_by_text](https://github.com/appium/ruby_lib/blob/b9264f66b9dd04eb5221c3a4c4ea17c4eb9ef8aa/lib/appium_lib/common/helper.rb#L122)
|
899
899
|
|
900
900
|
> def find_eles_by_text tag, text
|
901
901
|
|
@@ -913,7 +913,7 @@ __Returns:__
|
|
913
913
|
|
914
914
|
--
|
915
915
|
|
916
|
-
##### [find_ele_by_attr_include](https://github.com/appium/ruby_lib/blob/
|
916
|
+
##### [find_ele_by_attr_include](https://github.com/appium/ruby_lib/blob/b9264f66b9dd04eb5221c3a4c4ea17c4eb9ef8aa/lib/appium_lib/common/helper.rb#L131)
|
917
917
|
|
918
918
|
> def find_ele_by_attr_include tag, attr, value
|
919
919
|
|
@@ -933,7 +933,7 @@ __Returns:__
|
|
933
933
|
|
934
934
|
--
|
935
935
|
|
936
|
-
##### [find_eles_by_attr_include](https://github.com/appium/ruby_lib/blob/
|
936
|
+
##### [find_eles_by_attr_include](https://github.com/appium/ruby_lib/blob/b9264f66b9dd04eb5221c3a4c4ea17c4eb9ef8aa/lib/appium_lib/common/helper.rb#L140)
|
937
937
|
|
938
938
|
> def find_eles_by_attr_include tag, attr, value
|
939
939
|
|
@@ -953,7 +953,7 @@ __Returns:__
|
|
953
953
|
|
954
954
|
--
|
955
955
|
|
956
|
-
##### [find_ele_by_text_include](https://github.com/appium/ruby_lib/blob/
|
956
|
+
##### [find_ele_by_text_include](https://github.com/appium/ruby_lib/blob/b9264f66b9dd04eb5221c3a4c4ea17c4eb9ef8aa/lib/appium_lib/common/helper.rb#L149)
|
957
957
|
|
958
958
|
> def find_ele_by_text_include tag, text
|
959
959
|
|
@@ -972,7 +972,7 @@ __Returns:__
|
|
972
972
|
|
973
973
|
--
|
974
974
|
|
975
|
-
##### [find_eles_by_text_include](https://github.com/appium/ruby_lib/blob/
|
975
|
+
##### [find_eles_by_text_include](https://github.com/appium/ruby_lib/blob/b9264f66b9dd04eb5221c3a4c4ea17c4eb9ef8aa/lib/appium_lib/common/helper.rb#L158)
|
976
976
|
|
977
977
|
> def find_eles_by_text_include tag, text
|
978
978
|
|
@@ -991,7 +991,7 @@ __Returns:__
|
|
991
991
|
|
992
992
|
--
|
993
993
|
|
994
|
-
##### [first_ele](https://github.com/appium/ruby_lib/blob/
|
994
|
+
##### [first_ele](https://github.com/appium/ruby_lib/blob/b9264f66b9dd04eb5221c3a4c4ea17c4eb9ef8aa/lib/appium_lib/common/helper.rb#L165)
|
995
995
|
|
996
996
|
> def first_ele tag_name
|
997
997
|
|
@@ -1007,7 +1007,7 @@ __Returns:__
|
|
1007
1007
|
|
1008
1008
|
--
|
1009
1009
|
|
1010
|
-
##### [last_ele](https://github.com/appium/ruby_lib/blob/
|
1010
|
+
##### [last_ele](https://github.com/appium/ruby_lib/blob/b9264f66b9dd04eb5221c3a4c4ea17c4eb9ef8aa/lib/appium_lib/common/helper.rb#L173)
|
1011
1011
|
|
1012
1012
|
> def last_ele tag_name
|
1013
1013
|
|
@@ -1023,7 +1023,7 @@ __Returns:__
|
|
1023
1023
|
|
1024
1024
|
--
|
1025
1025
|
|
1026
|
-
##### [source](https://github.com/appium/ruby_lib/blob/
|
1026
|
+
##### [source](https://github.com/appium/ruby_lib/blob/b9264f66b9dd04eb5221c3a4c4ea17c4eb9ef8aa/lib/appium_lib/common/helper.rb#L179)
|
1027
1027
|
|
1028
1028
|
> def source
|
1029
1029
|
|
@@ -1035,7 +1035,7 @@ __Returns:__
|
|
1035
1035
|
|
1036
1036
|
--
|
1037
1037
|
|
1038
|
-
##### [get_source](https://github.com/appium/ruby_lib/blob/
|
1038
|
+
##### [get_source](https://github.com/appium/ruby_lib/blob/b9264f66b9dd04eb5221c3a4c4ea17c4eb9ef8aa/lib/appium_lib/common/helper.rb#L185)
|
1039
1039
|
|
1040
1040
|
> def get_source
|
1041
1041
|
|
@@ -1047,7 +1047,7 @@ __Returns:__
|
|
1047
1047
|
|
1048
1048
|
--
|
1049
1049
|
|
1050
|
-
##### [find_name](https://github.com/appium/ruby_lib/blob/
|
1050
|
+
##### [find_name](https://github.com/appium/ruby_lib/blob/b9264f66b9dd04eb5221c3a4c4ea17c4eb9ef8aa/lib/appium_lib/common/helper.rb#L194)
|
1051
1051
|
|
1052
1052
|
> def find_name name
|
1053
1053
|
|
@@ -1063,7 +1063,7 @@ __Returns:__
|
|
1063
1063
|
|
1064
1064
|
--
|
1065
1065
|
|
1066
|
-
##### [find_names](https://github.com/appium/ruby_lib/blob/
|
1066
|
+
##### [find_names](https://github.com/appium/ruby_lib/blob/b9264f66b9dd04eb5221c3a4c4ea17c4eb9ef8aa/lib/appium_lib/common/helper.rb#L202)
|
1067
1067
|
|
1068
1068
|
> def find_names name
|
1069
1069
|
|
@@ -1079,7 +1079,7 @@ __Returns:__
|
|
1079
1079
|
|
1080
1080
|
--
|
1081
1081
|
|
1082
|
-
##### [tag](https://github.com/appium/ruby_lib/blob/
|
1082
|
+
##### [tag](https://github.com/appium/ruby_lib/blob/b9264f66b9dd04eb5221c3a4c4ea17c4eb9ef8aa/lib/appium_lib/common/helper.rb#L210)
|
1083
1083
|
|
1084
1084
|
> def tag tag_name
|
1085
1085
|
|
@@ -1095,7 +1095,7 @@ __Returns:__
|
|
1095
1095
|
|
1096
1096
|
--
|
1097
1097
|
|
1098
|
-
##### [tags](https://github.com/appium/ruby_lib/blob/
|
1098
|
+
##### [tags](https://github.com/appium/ruby_lib/blob/b9264f66b9dd04eb5221c3a4c4ea17c4eb9ef8aa/lib/appium_lib/common/helper.rb#L218)
|
1099
1099
|
|
1100
1100
|
> def tags tag_name
|
1101
1101
|
|
@@ -1111,7 +1111,7 @@ __Returns:__
|
|
1111
1111
|
|
1112
1112
|
--
|
1113
1113
|
|
1114
|
-
##### [px_to_window_rel](https://github.com/appium/ruby_lib/blob/
|
1114
|
+
##### [px_to_window_rel](https://github.com/appium/ruby_lib/blob/b9264f66b9dd04eb5221c3a4c4ea17c4eb9ef8aa/lib/appium_lib/common/helper.rb#L228)
|
1115
1115
|
|
1116
1116
|
> def px_to_window_rel opts={}
|
1117
1117
|
|
@@ -1123,7 +1123,7 @@ px_to_window_rel x: 50, y: 150
|
|
1123
1123
|
|
1124
1124
|
--
|
1125
1125
|
|
1126
|
-
##### [lazy_load_strings](https://github.com/appium/ruby_lib/blob/
|
1126
|
+
##### [lazy_load_strings](https://github.com/appium/ruby_lib/blob/b9264f66b9dd04eb5221c3a4c4ea17c4eb9ef8aa/lib/appium_lib/common/helper.rb#L238)
|
1127
1127
|
|
1128
1128
|
> def lazy_load_strings
|
1129
1129
|
|
@@ -1131,7 +1131,7 @@ px_to_window_rel x: 50, y: 150
|
|
1131
1131
|
|
1132
1132
|
--
|
1133
1133
|
|
1134
|
-
##### [xml_keys](https://github.com/appium/ruby_lib/blob/
|
1134
|
+
##### [xml_keys](https://github.com/appium/ruby_lib/blob/b9264f66b9dd04eb5221c3a4c4ea17c4eb9ef8aa/lib/appium_lib/common/helper.rb#L245)
|
1135
1135
|
|
1136
1136
|
> def xml_keys target
|
1137
1137
|
|
@@ -1147,7 +1147,7 @@ __Returns:__
|
|
1147
1147
|
|
1148
1148
|
--
|
1149
1149
|
|
1150
|
-
##### [xml_values](https://github.com/appium/ruby_lib/blob/
|
1150
|
+
##### [xml_values](https://github.com/appium/ruby_lib/blob/b9264f66b9dd04eb5221c3a4c4ea17c4eb9ef8aa/lib/appium_lib/common/helper.rb#L253)
|
1151
1151
|
|
1152
1152
|
> def xml_values target
|
1153
1153
|
|
@@ -1163,7 +1163,7 @@ __Returns:__
|
|
1163
1163
|
|
1164
1164
|
--
|
1165
1165
|
|
1166
|
-
##### [resolve_id](https://github.com/appium/ruby_lib/blob/
|
1166
|
+
##### [resolve_id](https://github.com/appium/ruby_lib/blob/b9264f66b9dd04eb5221c3a4c4ea17c4eb9ef8aa/lib/appium_lib/common/helper.rb#L261)
|
1167
1167
|
|
1168
1168
|
> def resolve_id id
|
1169
1169
|
|
@@ -1179,7 +1179,7 @@ __Returns:__
|
|
1179
1179
|
|
1180
1180
|
--
|
1181
1181
|
|
1182
|
-
##### [raise_no_element_error](https://github.com/appium/ruby_lib/blob/
|
1182
|
+
##### [raise_no_element_error](https://github.com/appium/ruby_lib/blob/b9264f66b9dd04eb5221c3a4c4ea17c4eb9ef8aa/lib/appium_lib/common/helper.rb#L267)
|
1183
1183
|
|
1184
1184
|
> def raise_no_element_error
|
1185
1185
|
|
@@ -1187,7 +1187,7 @@ Used to error when finding a single element fails.
|
|
1187
1187
|
|
1188
1188
|
--
|
1189
1189
|
|
1190
|
-
##### [value](https://github.com/appium/ruby_lib/blob/
|
1190
|
+
##### [value](https://github.com/appium/ruby_lib/blob/b9264f66b9dd04eb5221c3a4c4ea17c4eb9ef8aa/lib/appium_lib/common/patch.rb#L32)
|
1191
1191
|
|
1192
1192
|
> def value
|
1193
1193
|
|
@@ -1197,7 +1197,7 @@ Fixes NoMethodError: undefined method `value' for Selenium::WebDriver::Element
|
|
1197
1197
|
|
1198
1198
|
--
|
1199
1199
|
|
1200
|
-
##### [name](https://github.com/appium/ruby_lib/blob/
|
1200
|
+
##### [name](https://github.com/appium/ruby_lib/blob/b9264f66b9dd04eb5221c3a4c4ea17c4eb9ef8aa/lib/appium_lib/common/patch.rb#L39)
|
1201
1201
|
|
1202
1202
|
> def name
|
1203
1203
|
|
@@ -1207,7 +1207,7 @@ Fixes NoMethodError: undefined method `name' for Selenium::WebDriver::Element
|
|
1207
1207
|
|
1208
1208
|
--
|
1209
1209
|
|
1210
|
-
##### [tag_name](https://github.com/appium/ruby_lib/blob/
|
1210
|
+
##### [tag_name](https://github.com/appium/ruby_lib/blob/b9264f66b9dd04eb5221c3a4c4ea17c4eb9ef8aa/lib/appium_lib/common/patch.rb#L46)
|
1211
1211
|
|
1212
1212
|
> def tag_name
|
1213
1213
|
|
@@ -1217,7 +1217,7 @@ Fixes Selenium::WebDriver::Error::UnknownError: Not yet implemented
|
|
1217
1217
|
|
1218
1218
|
--
|
1219
1219
|
|
1220
|
-
##### [location_rel](https://github.com/appium/ruby_lib/blob/
|
1220
|
+
##### [location_rel](https://github.com/appium/ruby_lib/blob/b9264f66b9dd04eb5221c3a4c4ea17c4eb9ef8aa/lib/appium_lib/common/patch.rb#L58)
|
1221
1221
|
|
1222
1222
|
> def location_rel
|
1223
1223
|
|
@@ -1235,7 +1235,7 @@ __Returns:__
|
|
1235
1235
|
|
1236
1236
|
--
|
1237
1237
|
|
1238
|
-
##### [CORE](https://github.com/appium/ruby_lib/blob/
|
1238
|
+
##### [CORE](https://github.com/appium/ruby_lib/blob/b9264f66b9dd04eb5221c3a4c4ea17c4eb9ef8aa/lib/appium_lib/driver.rb#L16)
|
1239
1239
|
|
1240
1240
|
> CORE = [ :array, :hash, :class, :file, :dir, :bigdecimal, :rational, :struct, :openstruct, :method, :unboundmethod ]
|
1241
1241
|
|
@@ -1243,7 +1243,7 @@ __Returns:__
|
|
1243
1243
|
|
1244
1244
|
--
|
1245
1245
|
|
1246
|
-
##### [awesome_openstruct](https://github.com/appium/ruby_lib/blob/
|
1246
|
+
##### [awesome_openstruct](https://github.com/appium/ruby_lib/blob/b9264f66b9dd04eb5221c3a4c4ea17c4eb9ef8aa/lib/appium_lib/driver.rb#L18)
|
1247
1247
|
|
1248
1248
|
> def awesome_openstruct target
|
1249
1249
|
|
@@ -1251,7 +1251,7 @@ __Returns:__
|
|
1251
1251
|
|
1252
1252
|
--
|
1253
1253
|
|
1254
|
-
##### [load_appium_txt](https://github.com/appium/ruby_lib/blob/
|
1254
|
+
##### [load_appium_txt](https://github.com/appium/ruby_lib/blob/b9264f66b9dd04eb5221c3a4c4ea17c4eb9ef8aa/lib/appium_lib/driver.rb#L28)
|
1255
1255
|
|
1256
1256
|
> def load_appium_txt opts
|
1257
1257
|
|
@@ -1268,7 +1268,7 @@ __Returns:__
|
|
1268
1268
|
|
1269
1269
|
--
|
1270
1270
|
|
1271
|
-
##### [promote_singleton_appium_methods](https://github.com/appium/ruby_lib/blob/
|
1271
|
+
##### [promote_singleton_appium_methods](https://github.com/appium/ruby_lib/blob/b9264f66b9dd04eb5221c3a4c4ea17c4eb9ef8aa/lib/appium_lib/driver.rb#L154)
|
1272
1272
|
|
1273
1273
|
> def self.promote_singleton_appium_methods main_module
|
1274
1274
|
|
@@ -1276,7 +1276,7 @@ __Returns:__
|
|
1276
1276
|
|
1277
1277
|
--
|
1278
1278
|
|
1279
|
-
##### [promote_appium_methods](https://github.com/appium/ruby_lib/blob/
|
1279
|
+
##### [promote_appium_methods](https://github.com/appium/ruby_lib/blob/b9264f66b9dd04eb5221c3a4c4ea17c4eb9ef8aa/lib/appium_lib/driver.rb#L184)
|
1280
1280
|
|
1281
1281
|
> def self.promote_appium_methods class_array
|
1282
1282
|
|
@@ -1294,7 +1294,7 @@ __Parameters:__
|
|
1294
1294
|
|
1295
1295
|
--
|
1296
1296
|
|
1297
|
-
##### [default_wait](https://github.com/appium/ruby_lib/blob/
|
1297
|
+
##### [default_wait](https://github.com/appium/ruby_lib/blob/b9264f66b9dd04eb5221c3a4c4ea17c4eb9ef8aa/lib/appium_lib/driver.rb#L538)
|
1298
1298
|
|
1299
1299
|
> def default_wait
|
1300
1300
|
|
@@ -1307,7 +1307,7 @@ __Returns:__
|
|
1307
1307
|
|
1308
1308
|
--
|
1309
1309
|
|
1310
|
-
##### [app_path](https://github.com/appium/ruby_lib/blob/
|
1310
|
+
##### [app_path](https://github.com/appium/ruby_lib/blob/b9264f66b9dd04eb5221c3a4c4ea17c4eb9ef8aa/lib/appium_lib/driver.rb#L213)
|
1311
1311
|
|
1312
1312
|
> def app_path
|
1313
1313
|
|
@@ -1315,7 +1315,7 @@ Returns the value of attribute app_path
|
|
1315
1315
|
|
1316
1316
|
--
|
1317
1317
|
|
1318
|
-
##### [app_name](https://github.com/appium/ruby_lib/blob/
|
1318
|
+
##### [app_name](https://github.com/appium/ruby_lib/blob/b9264f66b9dd04eb5221c3a4c4ea17c4eb9ef8aa/lib/appium_lib/driver.rb#L213)
|
1319
1319
|
|
1320
1320
|
> def app_name
|
1321
1321
|
|
@@ -1323,7 +1323,7 @@ Returns the value of attribute app_name
|
|
1323
1323
|
|
1324
1324
|
--
|
1325
1325
|
|
1326
|
-
##### [device](https://github.com/appium/ruby_lib/blob/
|
1326
|
+
##### [device](https://github.com/appium/ruby_lib/blob/b9264f66b9dd04eb5221c3a4c4ea17c4eb9ef8aa/lib/appium_lib/driver.rb#L213)
|
1327
1327
|
|
1328
1328
|
> def device
|
1329
1329
|
|
@@ -1331,7 +1331,7 @@ Returns the value of attribute device
|
|
1331
1331
|
|
1332
1332
|
--
|
1333
1333
|
|
1334
|
-
##### [app_package](https://github.com/appium/ruby_lib/blob/
|
1334
|
+
##### [app_package](https://github.com/appium/ruby_lib/blob/b9264f66b9dd04eb5221c3a4c4ea17c4eb9ef8aa/lib/appium_lib/driver.rb#L213)
|
1335
1335
|
|
1336
1336
|
> def app_package
|
1337
1337
|
|
@@ -1339,7 +1339,7 @@ Returns the value of attribute app_package
|
|
1339
1339
|
|
1340
1340
|
--
|
1341
1341
|
|
1342
|
-
##### [app_activity](https://github.com/appium/ruby_lib/blob/
|
1342
|
+
##### [app_activity](https://github.com/appium/ruby_lib/blob/b9264f66b9dd04eb5221c3a4c4ea17c4eb9ef8aa/lib/appium_lib/driver.rb#L213)
|
1343
1343
|
|
1344
1344
|
> def app_activity
|
1345
1345
|
|
@@ -1347,7 +1347,7 @@ Returns the value of attribute app_activity
|
|
1347
1347
|
|
1348
1348
|
--
|
1349
1349
|
|
1350
|
-
##### [app_wait_activity](https://github.com/appium/ruby_lib/blob/
|
1350
|
+
##### [app_wait_activity](https://github.com/appium/ruby_lib/blob/b9264f66b9dd04eb5221c3a4c4ea17c4eb9ef8aa/lib/appium_lib/driver.rb#L213)
|
1351
1351
|
|
1352
1352
|
> def app_wait_activity
|
1353
1353
|
|
@@ -1355,7 +1355,7 @@ Returns the value of attribute app_wait_activity
|
|
1355
1355
|
|
1356
1356
|
--
|
1357
1357
|
|
1358
|
-
##### [sauce_username](https://github.com/appium/ruby_lib/blob/
|
1358
|
+
##### [sauce_username](https://github.com/appium/ruby_lib/blob/b9264f66b9dd04eb5221c3a4c4ea17c4eb9ef8aa/lib/appium_lib/driver.rb#L213)
|
1359
1359
|
|
1360
1360
|
> def sauce_username
|
1361
1361
|
|
@@ -1363,7 +1363,7 @@ Returns the value of attribute sauce_username
|
|
1363
1363
|
|
1364
1364
|
--
|
1365
1365
|
|
1366
|
-
##### [sauce_access_key](https://github.com/appium/ruby_lib/blob/
|
1366
|
+
##### [sauce_access_key](https://github.com/appium/ruby_lib/blob/b9264f66b9dd04eb5221c3a4c4ea17c4eb9ef8aa/lib/appium_lib/driver.rb#L213)
|
1367
1367
|
|
1368
1368
|
> def sauce_access_key
|
1369
1369
|
|
@@ -1371,7 +1371,7 @@ Returns the value of attribute sauce_access_key
|
|
1371
1371
|
|
1372
1372
|
--
|
1373
1373
|
|
1374
|
-
##### [port](https://github.com/appium/ruby_lib/blob/
|
1374
|
+
##### [port](https://github.com/appium/ruby_lib/blob/b9264f66b9dd04eb5221c3a4c4ea17c4eb9ef8aa/lib/appium_lib/driver.rb#L213)
|
1375
1375
|
|
1376
1376
|
> def port
|
1377
1377
|
|
@@ -1379,7 +1379,7 @@ Returns the value of attribute port
|
|
1379
1379
|
|
1380
1380
|
--
|
1381
1381
|
|
1382
|
-
##### [debug](https://github.com/appium/ruby_lib/blob/
|
1382
|
+
##### [debug](https://github.com/appium/ruby_lib/blob/b9264f66b9dd04eb5221c3a4c4ea17c4eb9ef8aa/lib/appium_lib/driver.rb#L213)
|
1383
1383
|
|
1384
1384
|
> def debug
|
1385
1385
|
|
@@ -1387,7 +1387,7 @@ Returns the value of attribute debug
|
|
1387
1387
|
|
1388
1388
|
--
|
1389
1389
|
|
1390
|
-
##### [export_session](https://github.com/appium/ruby_lib/blob/
|
1390
|
+
##### [export_session](https://github.com/appium/ruby_lib/blob/b9264f66b9dd04eb5221c3a4c4ea17c4eb9ef8aa/lib/appium_lib/driver.rb#L213)
|
1391
1391
|
|
1392
1392
|
> def export_session
|
1393
1393
|
|
@@ -1395,7 +1395,7 @@ Returns the value of attribute export_session
|
|
1395
1395
|
|
1396
1396
|
--
|
1397
1397
|
|
1398
|
-
##### [device_cap](https://github.com/appium/ruby_lib/blob/
|
1398
|
+
##### [device_cap](https://github.com/appium/ruby_lib/blob/b9264f66b9dd04eb5221c3a4c4ea17c4eb9ef8aa/lib/appium_lib/driver.rb#L213)
|
1399
1399
|
|
1400
1400
|
> def device_cap
|
1401
1401
|
|
@@ -1403,7 +1403,7 @@ Returns the value of attribute device_cap
|
|
1403
1403
|
|
1404
1404
|
--
|
1405
1405
|
|
1406
|
-
##### [compress_xml](https://github.com/appium/ruby_lib/blob/
|
1406
|
+
##### [compress_xml](https://github.com/appium/ruby_lib/blob/b9264f66b9dd04eb5221c3a4c4ea17c4eb9ef8aa/lib/appium_lib/driver.rb#L213)
|
1407
1407
|
|
1408
1408
|
> def compress_xml
|
1409
1409
|
|
@@ -1411,7 +1411,7 @@ Returns the value of attribute compress_xml
|
|
1411
1411
|
|
1412
1412
|
--
|
1413
1413
|
|
1414
|
-
##### [custom_url](https://github.com/appium/ruby_lib/blob/
|
1414
|
+
##### [custom_url](https://github.com/appium/ruby_lib/blob/b9264f66b9dd04eb5221c3a4c4ea17c4eb9ef8aa/lib/appium_lib/driver.rb#L213)
|
1415
1415
|
|
1416
1416
|
> def custom_url
|
1417
1417
|
|
@@ -1419,7 +1419,7 @@ Returns the value of attribute custom_url
|
|
1419
1419
|
|
1420
1420
|
--
|
1421
1421
|
|
1422
|
-
##### [global_webdriver_http_sleep](https://github.com/appium/ruby_lib/blob/
|
1422
|
+
##### [global_webdriver_http_sleep](https://github.com/appium/ruby_lib/blob/b9264f66b9dd04eb5221c3a4c4ea17c4eb9ef8aa/lib/appium_lib/driver.rb#L219)
|
1423
1423
|
|
1424
1424
|
> def global_webdriver_http_sleep
|
1425
1425
|
|
@@ -1427,7 +1427,7 @@ The amount to sleep in seconds before every webdriver http call.
|
|
1427
1427
|
|
1428
1428
|
--
|
1429
1429
|
|
1430
|
-
##### [global_webdriver_http_sleep=](https://github.com/appium/ruby_lib/blob/
|
1430
|
+
##### [global_webdriver_http_sleep=](https://github.com/appium/ruby_lib/blob/b9264f66b9dd04eb5221c3a4c4ea17c4eb9ef8aa/lib/appium_lib/driver.rb#L219)
|
1431
1431
|
|
1432
1432
|
> def global_webdriver_http_sleep=(value)
|
1433
1433
|
|
@@ -1435,7 +1435,7 @@ The amount to sleep in seconds before every webdriver http call.
|
|
1435
1435
|
|
1436
1436
|
--
|
1437
1437
|
|
1438
|
-
##### [initialize](https://github.com/appium/ruby_lib/blob/
|
1438
|
+
##### [initialize](https://github.com/appium/ruby_lib/blob/b9264f66b9dd04eb5221c3a4c4ea17c4eb9ef8aa/lib/appium_lib/driver.rb#L249)
|
1439
1439
|
|
1440
1440
|
> def initialize opts={}
|
1441
1441
|
|
@@ -1476,7 +1476,7 @@ __Returns:__
|
|
1476
1476
|
|
1477
1477
|
--
|
1478
1478
|
|
1479
|
-
##### [status](https://github.com/appium/ruby_lib/blob/
|
1479
|
+
##### [status](https://github.com/appium/ruby_lib/blob/b9264f66b9dd04eb5221c3a4c4ea17c4eb9ef8aa/lib/appium_lib/driver.rb#L357)
|
1480
1480
|
|
1481
1481
|
> def status
|
1482
1482
|
|
@@ -1502,7 +1502,7 @@ __Returns:__
|
|
1502
1502
|
|
1503
1503
|
--
|
1504
1504
|
|
1505
|
-
##### [server_version](https://github.com/appium/ruby_lib/blob/
|
1505
|
+
##### [server_version](https://github.com/appium/ruby_lib/blob/b9264f66b9dd04eb5221c3a4c4ea17c4eb9ef8aa/lib/appium_lib/driver.rb#L363)
|
1506
1506
|
|
1507
1507
|
> def server_version
|
1508
1508
|
|
@@ -1514,7 +1514,7 @@ __Returns:__
|
|
1514
1514
|
|
1515
1515
|
--
|
1516
1516
|
|
1517
|
-
##### [absolute_app_path](https://github.com/appium/ruby_lib/blob/
|
1517
|
+
##### [absolute_app_path](https://github.com/appium/ruby_lib/blob/b9264f66b9dd04eb5221c3a4c4ea17c4eb9ef8aa/lib/appium_lib/driver.rb#L404)
|
1518
1518
|
|
1519
1519
|
> def absolute_app_path
|
1520
1520
|
|
@@ -1526,7 +1526,7 @@ __Returns:__
|
|
1526
1526
|
|
1527
1527
|
--
|
1528
1528
|
|
1529
|
-
##### [server_url](https://github.com/appium/ruby_lib/blob/
|
1529
|
+
##### [server_url](https://github.com/appium/ruby_lib/blob/b9264f66b9dd04eb5221c3a4c4ea17c4eb9ef8aa/lib/appium_lib/driver.rb#L424)
|
1530
1530
|
|
1531
1531
|
> def server_url
|
1532
1532
|
|
@@ -1538,7 +1538,7 @@ __Returns:__
|
|
1538
1538
|
|
1539
1539
|
--
|
1540
1540
|
|
1541
|
-
##### [restart](https://github.com/appium/ruby_lib/blob/
|
1541
|
+
##### [restart](https://github.com/appium/ruby_lib/blob/b9264f66b9dd04eb5221c3a4c4ea17c4eb9ef8aa/lib/appium_lib/driver.rb#L435)
|
1542
1542
|
|
1543
1543
|
> def restart
|
1544
1544
|
|
@@ -1550,7 +1550,7 @@ __Returns:__
|
|
1550
1550
|
|
1551
1551
|
--
|
1552
1552
|
|
1553
|
-
##### [driver](https://github.com/appium/ruby_lib/blob/
|
1553
|
+
##### [driver](https://github.com/appium/ruby_lib/blob/b9264f66b9dd04eb5221c3a4c4ea17c4eb9ef8aa/lib/appium_lib/driver.rb#L442)
|
1554
1554
|
|
1555
1555
|
> def driver
|
1556
1556
|
|
@@ -1562,7 +1562,7 @@ __Returns:__
|
|
1562
1562
|
|
1563
1563
|
--
|
1564
1564
|
|
1565
|
-
##### [screenshot](https://github.com/appium/ruby_lib/blob/
|
1565
|
+
##### [screenshot](https://github.com/appium/ruby_lib/blob/b9264f66b9dd04eb5221c3a4c4ea17c4eb9ef8aa/lib/appium_lib/driver.rb#L452)
|
1566
1566
|
|
1567
1567
|
> def screenshot png_save_path
|
1568
1568
|
|
@@ -1580,7 +1580,7 @@ __Returns:__
|
|
1580
1580
|
|
1581
1581
|
--
|
1582
1582
|
|
1583
|
-
##### [driver_quit](https://github.com/appium/ruby_lib/blob/
|
1583
|
+
##### [driver_quit](https://github.com/appium/ruby_lib/blob/b9264f66b9dd04eb5221c3a4c4ea17c4eb9ef8aa/lib/appium_lib/driver.rb#L459)
|
1584
1584
|
|
1585
1585
|
> def driver_quit
|
1586
1586
|
|
@@ -1592,7 +1592,7 @@ __Returns:__
|
|
1592
1592
|
|
1593
1593
|
--
|
1594
1594
|
|
1595
|
-
##### [start_driver](https://github.com/appium/ruby_lib/blob/
|
1595
|
+
##### [start_driver](https://github.com/appium/ruby_lib/blob/b9264f66b9dd04eb5221c3a4c4ea17c4eb9ef8aa/lib/appium_lib/driver.rb#L467)
|
1596
1596
|
|
1597
1597
|
> def start_driver
|
1598
1598
|
|
@@ -1604,7 +1604,7 @@ __Returns:__
|
|
1604
1604
|
|
1605
1605
|
--
|
1606
1606
|
|
1607
|
-
##### [no_wait](https://github.com/appium/ruby_lib/blob/
|
1607
|
+
##### [no_wait](https://github.com/appium/ruby_lib/blob/b9264f66b9dd04eb5221c3a4c4ea17c4eb9ef8aa/lib/appium_lib/driver.rb#L501)
|
1608
1608
|
|
1609
1609
|
> def no_wait
|
1610
1610
|
|
@@ -1612,7 +1612,7 @@ Set implicit wait and default_wait to zero.
|
|
1612
1612
|
|
1613
1613
|
--
|
1614
1614
|
|
1615
|
-
##### [set_wait](https://github.com/appium/ruby_lib/blob/
|
1615
|
+
##### [set_wait](https://github.com/appium/ruby_lib/blob/b9264f66b9dd04eb5221c3a4c4ea17c4eb9ef8aa/lib/appium_lib/driver.rb#L520)
|
1616
1616
|
|
1617
1617
|
> def set_wait timeout=nil
|
1618
1618
|
|
@@ -1637,7 +1637,7 @@ __Returns:__
|
|
1637
1637
|
|
1638
1638
|
--
|
1639
1639
|
|
1640
|
-
##### [exists](https://github.com/appium/ruby_lib/blob/
|
1640
|
+
##### [exists](https://github.com/appium/ruby_lib/blob/b9264f66b9dd04eb5221c3a4c4ea17c4eb9ef8aa/lib/appium_lib/driver.rb#L554)
|
1641
1641
|
|
1642
1642
|
> def exists pre_check=0, post_check=@default_wait, &search_block
|
1643
1643
|
|
@@ -1663,7 +1663,7 @@ __Returns:__
|
|
1663
1663
|
|
1664
1664
|
--
|
1665
1665
|
|
1666
|
-
##### [execute_script](https://github.com/appium/ruby_lib/blob/
|
1666
|
+
##### [execute_script](https://github.com/appium/ruby_lib/blob/b9264f66b9dd04eb5221c3a4c4ea17c4eb9ef8aa/lib/appium_lib/driver.rb#L578)
|
1667
1667
|
|
1668
1668
|
> def execute_script script, *args
|
1669
1669
|
|
@@ -1681,7 +1681,7 @@ __Returns:__
|
|
1681
1681
|
|
1682
1682
|
--
|
1683
1683
|
|
1684
|
-
##### [mobile](https://github.com/appium/ruby_lib/blob/
|
1684
|
+
##### [mobile](https://github.com/appium/ruby_lib/blob/b9264f66b9dd04eb5221c3a4c4ea17c4eb9ef8aa/lib/appium_lib/driver.rb#L594)
|
1685
1685
|
|
1686
1686
|
> def mobile method, *args
|
1687
1687
|
|
@@ -1707,7 +1707,7 @@ __Returns:__
|
|
1707
1707
|
|
1708
1708
|
--
|
1709
1709
|
|
1710
|
-
##### [find_elements](https://github.com/appium/ruby_lib/blob/
|
1710
|
+
##### [find_elements](https://github.com/appium/ruby_lib/blob/b9264f66b9dd04eb5221c3a4c4ea17c4eb9ef8aa/lib/appium_lib/driver.rb#L605)
|
1711
1711
|
|
1712
1712
|
> def find_elements *args
|
1713
1713
|
|
@@ -1723,7 +1723,7 @@ __Returns:__
|
|
1723
1723
|
|
1724
1724
|
--
|
1725
1725
|
|
1726
|
-
##### [find_element](https://github.com/appium/ruby_lib/blob/
|
1726
|
+
##### [find_element](https://github.com/appium/ruby_lib/blob/b9264f66b9dd04eb5221c3a4c4ea17c4eb9ef8aa/lib/appium_lib/driver.rb#L613)
|
1727
1727
|
|
1728
1728
|
> def find_element *args
|
1729
1729
|
|
@@ -1739,7 +1739,7 @@ __Returns:__
|
|
1739
1739
|
|
1740
1740
|
--
|
1741
1741
|
|
1742
|
-
##### [x](https://github.com/appium/ruby_lib/blob/
|
1742
|
+
##### [x](https://github.com/appium/ruby_lib/blob/b9264f66b9dd04eb5221c3a4c4ea17c4eb9ef8aa/lib/appium_lib/driver.rb#L620)
|
1743
1743
|
|
1744
1744
|
> def x
|
1745
1745
|
|