appium_lib 0.19.1 → 0.21.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Rakefile +4 -1
- data/appium_lib.gemspec +8 -9
- data/docs/android_docs.md +120 -148
- data/docs/ios_docs.md +125 -125
- data/lib/appium_lib/common/patch.rb +13 -3
- data/lib/appium_lib/common/version.rb +2 -2
- data/lib/appium_lib/driver.rb +0 -4
- data/lib/appium_lib/ios/element/generic.rb +2 -2
- data/lib/appium_lib/ios/patch.rb +3 -3
- data/readme.md +3 -0
- data/release_notes.md +24 -0
- metadata +62 -36
- data/lib/appium_lib/android/webview/javascript.rb +0 -76
- data/lib/appium_lib/android/webview/webview.rb +0 -105
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 8e5cd8f3f2bd28e772d48d508ff7dde5e5d0edb4
|
4
|
+
data.tar.gz: ac4f37396a637fee7b72d4e4e31ab2ef07d1e7a1
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: c813d90152ccb86949fc81f9dc6e026925115281ee851ac50754665cfaae030e6b101a1e44c4a04fd56f795292113a524792c9b67c17674318695e754403a606
|
7
|
+
data.tar.gz: 1c5ac18bc018a17954b89c7c7f76b979618b732f0ac363e105c01b3d0b719aa8ed2bea52ede82cb0a22e24303808cd8ba3fce5f08152a815d275e9753cb265df
|
data/Rakefile
CHANGED
@@ -78,6 +78,9 @@ task :release => :gem do
|
|
78
78
|
exit!
|
79
79
|
end
|
80
80
|
|
81
|
+
# ensure gems are installed
|
82
|
+
`bundle update`
|
83
|
+
|
81
84
|
# Commit then pull before pushing.
|
82
85
|
tag_name = "v#{version}"
|
83
86
|
raise 'Tag already exists!' if tag_exists tag_name
|
@@ -175,4 +178,4 @@ task :notes do
|
|
175
178
|
end
|
176
179
|
|
177
180
|
File.open('release_notes.md', 'w') { |f| f.write notes.to_s.strip }
|
178
|
-
end
|
181
|
+
end
|
data/appium_lib.gemspec
CHANGED
@@ -24,15 +24,14 @@ Gem::Specification.new do |s|
|
|
24
24
|
s.homepage = 'https://github.com/appium/ruby_lib' # published as appium_lib
|
25
25
|
s.require_paths = [ 'lib' ]
|
26
26
|
|
27
|
-
s.add_runtime_dependency 'selenium-webdriver', '~> 2.39.0'
|
28
|
-
s.add_runtime_dependency 'awesome_print', '~> 1.2.0'
|
29
|
-
s.add_runtime_dependency 'json', '~> 1.8.1'
|
30
|
-
s.add_runtime_dependency 'toml', '~> 0.0.4'
|
31
|
-
s.add_runtime_dependency 'posix-spawn', '~> 0.3.8'
|
32
|
-
|
33
|
-
|
34
|
-
s.add_development_dependency '
|
35
|
-
s.add_development_dependency 'yard', '~> 0.8.7.3'
|
27
|
+
s.add_runtime_dependency 'selenium-webdriver', '~> 2.39', '>= 2.39.0'
|
28
|
+
s.add_runtime_dependency 'awesome_print', '~> 1.2', '>= 1.2.0'
|
29
|
+
s.add_runtime_dependency 'json', '~> 1.8', '>= 1.8.1'
|
30
|
+
s.add_runtime_dependency 'toml', '~> 0.0', '>= 0.0.4'
|
31
|
+
s.add_runtime_dependency 'posix-spawn', '~> 0.3', '>= 0.3.8'
|
32
|
+
|
33
|
+
s.add_development_dependency 'rake', '~> 10.0', '>= 10.0.4'
|
34
|
+
s.add_development_dependency 'yard', '~> 0.8', '>= 0.8.7.3'
|
36
35
|
|
37
36
|
s.files = `git ls-files`.split "\n"
|
38
37
|
end
|
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/db2df39eb6fc09e516e22334dd990699755c0509/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/db2df39eb6fc09e516e22334dd990699755c0509/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/db2df39eb6fc09e516e22334dd990699755c0509/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/db2df39eb6fc09e516e22334dd990699755c0509/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/db2df39eb6fc09e516e22334dd990699755c0509/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/db2df39eb6fc09e516e22334dd990699755c0509/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/db2df39eb6fc09e516e22334dd990699755c0509/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/db2df39eb6fc09e516e22334dd990699755c0509/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/db2df39eb6fc09e516e22334dd990699755c0509/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/db2df39eb6fc09e516e22334dd990699755c0509/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/db2df39eb6fc09e516e22334dd990699755c0509/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/db2df39eb6fc09e516e22334dd990699755c0509/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/db2df39eb6fc09e516e22334dd990699755c0509/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/db2df39eb6fc09e516e22334dd990699755c0509/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/db2df39eb6fc09e516e22334dd990699755c0509/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/db2df39eb6fc09e516e22334dd990699755c0509/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/db2df39eb6fc09e516e22334dd990699755c0509/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/db2df39eb6fc09e516e22334dd990699755c0509/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/db2df39eb6fc09e516e22334dd990699755c0509/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/db2df39eb6fc09e516e22334dd990699755c0509/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/db2df39eb6fc09e516e22334dd990699755c0509/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/db2df39eb6fc09e516e22334dd990699755c0509/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/db2df39eb6fc09e516e22334dd990699755c0509/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/db2df39eb6fc09e516e22334dd990699755c0509/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/db2df39eb6fc09e516e22334dd990699755c0509/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/db2df39eb6fc09e516e22334dd990699755c0509/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/db2df39eb6fc09e516e22334dd990699755c0509/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/db2df39eb6fc09e516e22334dd990699755c0509/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/db2df39eb6fc09e516e22334dd990699755c0509/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/db2df39eb6fc09e516e22334dd990699755c0509/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/db2df39eb6fc09e516e22334dd990699755c0509/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/db2df39eb6fc09e516e22334dd990699755c0509/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/db2df39eb6fc09e516e22334dd990699755c0509/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/db2df39eb6fc09e516e22334dd990699755c0509/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/db2df39eb6fc09e516e22334dd990699755c0509/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/db2df39eb6fc09e516e22334dd990699755c0509/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/db2df39eb6fc09e516e22334dd990699755c0509/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/db2df39eb6fc09e516e22334dd990699755c0509/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/db2df39eb6fc09e516e22334dd990699755c0509/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/db2df39eb6fc09e516e22334dd990699755c0509/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/db2df39eb6fc09e516e22334dd990699755c0509/lib/appium_lib/android/element/generic.rb#L144) android
|
579
579
|
|
580
580
|
> def scroll_to_exact text
|
581
581
|
|
@@ -591,26 +591,7 @@ __Returns:__
|
|
591
591
|
|
592
592
|
--
|
593
593
|
|
594
|
-
##### [
|
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/6fd332b1715d7b8f4b3b3c99e7ca58e5d4d01b52/lib/appium_lib/android/element/textfield.rb#L7) android
|
594
|
+
##### [textfields](https://github.com/appium/ruby_lib/blob/db2df39eb6fc09e516e22334dd990699755c0509/lib/appium_lib/android/element/textfield.rb#L7) android
|
614
595
|
|
615
596
|
> def textfields
|
616
597
|
|
@@ -622,7 +603,7 @@ __Returns:__
|
|
622
603
|
|
623
604
|
--
|
624
605
|
|
625
|
-
##### [e_textfields](https://github.com/appium/ruby_lib/blob/
|
606
|
+
##### [e_textfields](https://github.com/appium/ruby_lib/blob/db2df39eb6fc09e516e22334dd990699755c0509/lib/appium_lib/android/element/textfield.rb#L13) android
|
626
607
|
|
627
608
|
> def e_textfields
|
628
609
|
|
@@ -634,7 +615,7 @@ __Returns:__
|
|
634
615
|
|
635
616
|
--
|
636
617
|
|
637
|
-
##### [first_textfield](https://github.com/appium/ruby_lib/blob/
|
618
|
+
##### [first_textfield](https://github.com/appium/ruby_lib/blob/db2df39eb6fc09e516e22334dd990699755c0509/lib/appium_lib/android/element/textfield.rb#L19) android
|
638
619
|
|
639
620
|
> def first_textfield
|
640
621
|
|
@@ -646,7 +627,7 @@ __Returns:__
|
|
646
627
|
|
647
628
|
--
|
648
629
|
|
649
|
-
##### [last_textfield](https://github.com/appium/ruby_lib/blob/
|
630
|
+
##### [last_textfield](https://github.com/appium/ruby_lib/blob/db2df39eb6fc09e516e22334dd990699755c0509/lib/appium_lib/android/element/textfield.rb#L25) android
|
650
631
|
|
651
632
|
> def last_textfield
|
652
633
|
|
@@ -658,7 +639,7 @@ __Returns:__
|
|
658
639
|
|
659
640
|
--
|
660
641
|
|
661
|
-
##### [textfield](https://github.com/appium/ruby_lib/blob/
|
642
|
+
##### [textfield](https://github.com/appium/ruby_lib/blob/db2df39eb6fc09e516e22334dd990699755c0509/lib/appium_lib/android/element/textfield.rb#L32) android
|
662
643
|
|
663
644
|
> def textfield text
|
664
645
|
|
@@ -674,7 +655,7 @@ __Returns:__
|
|
674
655
|
|
675
656
|
--
|
676
657
|
|
677
|
-
##### [textfield_exact](https://github.com/appium/ruby_lib/blob/
|
658
|
+
##### [textfield_exact](https://github.com/appium/ruby_lib/blob/db2df39eb6fc09e516e22334dd990699755c0509/lib/appium_lib/android/element/textfield.rb#L45) android
|
678
659
|
|
679
660
|
> def textfield_exact text
|
680
661
|
|
@@ -690,16 +671,7 @@ __Returns:__
|
|
690
671
|
|
691
672
|
--
|
692
673
|
|
693
|
-
##### [
|
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/6fd332b1715d7b8f4b3b3c99e7ca58e5d4d01b52/lib/appium_lib/common/helper.rb#L33)
|
674
|
+
##### [wait](https://github.com/appium/ruby_lib/blob/db2df39eb6fc09e516e22334dd990699755c0509/lib/appium_lib/common/helper.rb#L33)
|
703
675
|
|
704
676
|
> def wait max_wait=30, interval=0.5, &block
|
705
677
|
|
@@ -726,7 +698,7 @@ __Returns:__
|
|
726
698
|
|
727
699
|
--
|
728
700
|
|
729
|
-
##### [ignore](https://github.com/appium/ruby_lib/blob/
|
701
|
+
##### [ignore](https://github.com/appium/ruby_lib/blob/db2df39eb6fc09e516e22334dd990699755c0509/lib/appium_lib/common/helper.rb#L45)
|
730
702
|
|
731
703
|
> def ignore &block
|
732
704
|
|
@@ -734,7 +706,7 @@ Return block.call and ignore any exceptions.
|
|
734
706
|
|
735
707
|
--
|
736
708
|
|
737
|
-
##### [wait_true](https://github.com/appium/ruby_lib/blob/
|
709
|
+
##### [wait_true](https://github.com/appium/ruby_lib/blob/db2df39eb6fc09e516e22334dd990699755c0509/lib/appium_lib/common/helper.rb#L55)
|
738
710
|
|
739
711
|
> def wait_true max_wait=30, interval=0.5, &block
|
740
712
|
|
@@ -755,7 +727,7 @@ __Returns:__
|
|
755
727
|
|
756
728
|
--
|
757
729
|
|
758
|
-
##### [back](https://github.com/appium/ruby_lib/blob/
|
730
|
+
##### [back](https://github.com/appium/ruby_lib/blob/db2df39eb6fc09e516e22334dd990699755c0509/lib/appium_lib/common/helper.rb#L68)
|
759
731
|
|
760
732
|
> def back
|
761
733
|
|
@@ -767,7 +739,7 @@ __Returns:__
|
|
767
739
|
|
768
740
|
--
|
769
741
|
|
770
|
-
##### [session_id](https://github.com/appium/ruby_lib/blob/
|
742
|
+
##### [session_id](https://github.com/appium/ruby_lib/blob/db2df39eb6fc09e516e22334dd990699755c0509/lib/appium_lib/common/helper.rb#L73)
|
771
743
|
|
772
744
|
> def session_id
|
773
745
|
|
@@ -775,7 +747,7 @@ For Sauce Labs reporting. Returns the current session id.
|
|
775
747
|
|
776
748
|
--
|
777
749
|
|
778
|
-
##### [xpath](https://github.com/appium/ruby_lib/blob/
|
750
|
+
##### [xpath](https://github.com/appium/ruby_lib/blob/db2df39eb6fc09e516e22334dd990699755c0509/lib/appium_lib/common/helper.rb#L81)
|
779
751
|
|
780
752
|
> def xpath xpath_str
|
781
753
|
|
@@ -791,7 +763,7 @@ __Returns:__
|
|
791
763
|
|
792
764
|
--
|
793
765
|
|
794
|
-
##### [xpaths](https://github.com/appium/ruby_lib/blob/
|
766
|
+
##### [xpaths](https://github.com/appium/ruby_lib/blob/db2df39eb6fc09e516e22334dd990699755c0509/lib/appium_lib/common/helper.rb#L89)
|
795
767
|
|
796
768
|
> def xpaths xpath_str
|
797
769
|
|
@@ -807,7 +779,7 @@ __Returns:__
|
|
807
779
|
|
808
780
|
--
|
809
781
|
|
810
|
-
##### [ele_index](https://github.com/appium/ruby_lib/blob/
|
782
|
+
##### [ele_index](https://github.com/appium/ruby_lib/blob/db2df39eb6fc09e516e22334dd990699755c0509/lib/appium_lib/common/helper.rb#L97)
|
811
783
|
|
812
784
|
> def ele_index tag_name, index
|
813
785
|
|
@@ -825,7 +797,7 @@ __Returns:__
|
|
825
797
|
|
826
798
|
--
|
827
799
|
|
828
|
-
##### [find_eles](https://github.com/appium/ruby_lib/blob/
|
800
|
+
##### [find_eles](https://github.com/appium/ruby_lib/blob/db2df39eb6fc09e516e22334dd990699755c0509/lib/appium_lib/common/helper.rb#L106)
|
829
801
|
|
830
802
|
> def find_eles tag_name
|
831
803
|
|
@@ -841,7 +813,7 @@ __Returns:__
|
|
841
813
|
|
842
814
|
--
|
843
815
|
|
844
|
-
##### [find_ele_by_text](https://github.com/appium/ruby_lib/blob/
|
816
|
+
##### [find_ele_by_text](https://github.com/appium/ruby_lib/blob/db2df39eb6fc09e516e22334dd990699755c0509/lib/appium_lib/common/helper.rb#L114)
|
845
817
|
|
846
818
|
> def find_ele_by_text tag, text
|
847
819
|
|
@@ -859,7 +831,7 @@ __Returns:__
|
|
859
831
|
|
860
832
|
--
|
861
833
|
|
862
|
-
##### [find_eles_by_text](https://github.com/appium/ruby_lib/blob/
|
834
|
+
##### [find_eles_by_text](https://github.com/appium/ruby_lib/blob/db2df39eb6fc09e516e22334dd990699755c0509/lib/appium_lib/common/helper.rb#L122)
|
863
835
|
|
864
836
|
> def find_eles_by_text tag, text
|
865
837
|
|
@@ -877,7 +849,7 @@ __Returns:__
|
|
877
849
|
|
878
850
|
--
|
879
851
|
|
880
|
-
##### [find_ele_by_attr_include](https://github.com/appium/ruby_lib/blob/
|
852
|
+
##### [find_ele_by_attr_include](https://github.com/appium/ruby_lib/blob/db2df39eb6fc09e516e22334dd990699755c0509/lib/appium_lib/common/helper.rb#L131)
|
881
853
|
|
882
854
|
> def find_ele_by_attr_include tag, attr, value
|
883
855
|
|
@@ -897,7 +869,7 @@ __Returns:__
|
|
897
869
|
|
898
870
|
--
|
899
871
|
|
900
|
-
##### [find_eles_by_attr_include](https://github.com/appium/ruby_lib/blob/
|
872
|
+
##### [find_eles_by_attr_include](https://github.com/appium/ruby_lib/blob/db2df39eb6fc09e516e22334dd990699755c0509/lib/appium_lib/common/helper.rb#L140)
|
901
873
|
|
902
874
|
> def find_eles_by_attr_include tag, attr, value
|
903
875
|
|
@@ -917,7 +889,7 @@ __Returns:__
|
|
917
889
|
|
918
890
|
--
|
919
891
|
|
920
|
-
##### [find_ele_by_text_include](https://github.com/appium/ruby_lib/blob/
|
892
|
+
##### [find_ele_by_text_include](https://github.com/appium/ruby_lib/blob/db2df39eb6fc09e516e22334dd990699755c0509/lib/appium_lib/common/helper.rb#L149)
|
921
893
|
|
922
894
|
> def find_ele_by_text_include tag, text
|
923
895
|
|
@@ -936,7 +908,7 @@ __Returns:__
|
|
936
908
|
|
937
909
|
--
|
938
910
|
|
939
|
-
##### [find_eles_by_text_include](https://github.com/appium/ruby_lib/blob/
|
911
|
+
##### [find_eles_by_text_include](https://github.com/appium/ruby_lib/blob/db2df39eb6fc09e516e22334dd990699755c0509/lib/appium_lib/common/helper.rb#L158)
|
940
912
|
|
941
913
|
> def find_eles_by_text_include tag, text
|
942
914
|
|
@@ -955,7 +927,7 @@ __Returns:__
|
|
955
927
|
|
956
928
|
--
|
957
929
|
|
958
|
-
##### [first_ele](https://github.com/appium/ruby_lib/blob/
|
930
|
+
##### [first_ele](https://github.com/appium/ruby_lib/blob/db2df39eb6fc09e516e22334dd990699755c0509/lib/appium_lib/common/helper.rb#L165)
|
959
931
|
|
960
932
|
> def first_ele tag_name
|
961
933
|
|
@@ -971,7 +943,7 @@ __Returns:__
|
|
971
943
|
|
972
944
|
--
|
973
945
|
|
974
|
-
##### [last_ele](https://github.com/appium/ruby_lib/blob/
|
946
|
+
##### [last_ele](https://github.com/appium/ruby_lib/blob/db2df39eb6fc09e516e22334dd990699755c0509/lib/appium_lib/common/helper.rb#L173)
|
975
947
|
|
976
948
|
> def last_ele tag_name
|
977
949
|
|
@@ -987,7 +959,7 @@ __Returns:__
|
|
987
959
|
|
988
960
|
--
|
989
961
|
|
990
|
-
##### [source](https://github.com/appium/ruby_lib/blob/
|
962
|
+
##### [source](https://github.com/appium/ruby_lib/blob/db2df39eb6fc09e516e22334dd990699755c0509/lib/appium_lib/common/helper.rb#L179)
|
991
963
|
|
992
964
|
> def source
|
993
965
|
|
@@ -999,7 +971,7 @@ __Returns:__
|
|
999
971
|
|
1000
972
|
--
|
1001
973
|
|
1002
|
-
##### [get_source](https://github.com/appium/ruby_lib/blob/
|
974
|
+
##### [get_source](https://github.com/appium/ruby_lib/blob/db2df39eb6fc09e516e22334dd990699755c0509/lib/appium_lib/common/helper.rb#L185)
|
1003
975
|
|
1004
976
|
> def get_source
|
1005
977
|
|
@@ -1011,7 +983,7 @@ __Returns:__
|
|
1011
983
|
|
1012
984
|
--
|
1013
985
|
|
1014
|
-
##### [find_name](https://github.com/appium/ruby_lib/blob/
|
986
|
+
##### [find_name](https://github.com/appium/ruby_lib/blob/db2df39eb6fc09e516e22334dd990699755c0509/lib/appium_lib/common/helper.rb#L194)
|
1015
987
|
|
1016
988
|
> def find_name name
|
1017
989
|
|
@@ -1027,7 +999,7 @@ __Returns:__
|
|
1027
999
|
|
1028
1000
|
--
|
1029
1001
|
|
1030
|
-
##### [find_names](https://github.com/appium/ruby_lib/blob/
|
1002
|
+
##### [find_names](https://github.com/appium/ruby_lib/blob/db2df39eb6fc09e516e22334dd990699755c0509/lib/appium_lib/common/helper.rb#L202)
|
1031
1003
|
|
1032
1004
|
> def find_names name
|
1033
1005
|
|
@@ -1043,7 +1015,7 @@ __Returns:__
|
|
1043
1015
|
|
1044
1016
|
--
|
1045
1017
|
|
1046
|
-
##### [tag](https://github.com/appium/ruby_lib/blob/
|
1018
|
+
##### [tag](https://github.com/appium/ruby_lib/blob/db2df39eb6fc09e516e22334dd990699755c0509/lib/appium_lib/common/helper.rb#L210)
|
1047
1019
|
|
1048
1020
|
> def tag tag_name
|
1049
1021
|
|
@@ -1059,7 +1031,7 @@ __Returns:__
|
|
1059
1031
|
|
1060
1032
|
--
|
1061
1033
|
|
1062
|
-
##### [tags](https://github.com/appium/ruby_lib/blob/
|
1034
|
+
##### [tags](https://github.com/appium/ruby_lib/blob/db2df39eb6fc09e516e22334dd990699755c0509/lib/appium_lib/common/helper.rb#L218)
|
1063
1035
|
|
1064
1036
|
> def tags tag_name
|
1065
1037
|
|
@@ -1075,7 +1047,7 @@ __Returns:__
|
|
1075
1047
|
|
1076
1048
|
--
|
1077
1049
|
|
1078
|
-
##### [px_to_window_rel](https://github.com/appium/ruby_lib/blob/
|
1050
|
+
##### [px_to_window_rel](https://github.com/appium/ruby_lib/blob/db2df39eb6fc09e516e22334dd990699755c0509/lib/appium_lib/common/helper.rb#L228)
|
1079
1051
|
|
1080
1052
|
> def px_to_window_rel opts={}
|
1081
1053
|
|
@@ -1087,7 +1059,7 @@ px_to_window_rel x: 50, y: 150
|
|
1087
1059
|
|
1088
1060
|
--
|
1089
1061
|
|
1090
|
-
##### [lazy_load_strings](https://github.com/appium/ruby_lib/blob/
|
1062
|
+
##### [lazy_load_strings](https://github.com/appium/ruby_lib/blob/db2df39eb6fc09e516e22334dd990699755c0509/lib/appium_lib/common/helper.rb#L238)
|
1091
1063
|
|
1092
1064
|
> def lazy_load_strings
|
1093
1065
|
|
@@ -1095,7 +1067,7 @@ px_to_window_rel x: 50, y: 150
|
|
1095
1067
|
|
1096
1068
|
--
|
1097
1069
|
|
1098
|
-
##### [xml_keys](https://github.com/appium/ruby_lib/blob/
|
1070
|
+
##### [xml_keys](https://github.com/appium/ruby_lib/blob/db2df39eb6fc09e516e22334dd990699755c0509/lib/appium_lib/common/helper.rb#L245)
|
1099
1071
|
|
1100
1072
|
> def xml_keys target
|
1101
1073
|
|
@@ -1111,7 +1083,7 @@ __Returns:__
|
|
1111
1083
|
|
1112
1084
|
--
|
1113
1085
|
|
1114
|
-
##### [xml_values](https://github.com/appium/ruby_lib/blob/
|
1086
|
+
##### [xml_values](https://github.com/appium/ruby_lib/blob/db2df39eb6fc09e516e22334dd990699755c0509/lib/appium_lib/common/helper.rb#L253)
|
1115
1087
|
|
1116
1088
|
> def xml_values target
|
1117
1089
|
|
@@ -1127,7 +1099,7 @@ __Returns:__
|
|
1127
1099
|
|
1128
1100
|
--
|
1129
1101
|
|
1130
|
-
##### [resolve_id](https://github.com/appium/ruby_lib/blob/
|
1102
|
+
##### [resolve_id](https://github.com/appium/ruby_lib/blob/db2df39eb6fc09e516e22334dd990699755c0509/lib/appium_lib/common/helper.rb#L261)
|
1131
1103
|
|
1132
1104
|
> def resolve_id id
|
1133
1105
|
|
@@ -1143,7 +1115,7 @@ __Returns:__
|
|
1143
1115
|
|
1144
1116
|
--
|
1145
1117
|
|
1146
|
-
##### [raise_no_element_error](https://github.com/appium/ruby_lib/blob/
|
1118
|
+
##### [raise_no_element_error](https://github.com/appium/ruby_lib/blob/db2df39eb6fc09e516e22334dd990699755c0509/lib/appium_lib/common/helper.rb#L267)
|
1147
1119
|
|
1148
1120
|
> def raise_no_element_error
|
1149
1121
|
|
@@ -1151,7 +1123,7 @@ Used to error when finding a single element fails.
|
|
1151
1123
|
|
1152
1124
|
--
|
1153
1125
|
|
1154
|
-
##### [value](https://github.com/appium/ruby_lib/blob/
|
1126
|
+
##### [value](https://github.com/appium/ruby_lib/blob/db2df39eb6fc09e516e22334dd990699755c0509/lib/appium_lib/common/patch.rb#L32)
|
1155
1127
|
|
1156
1128
|
> def value
|
1157
1129
|
|
@@ -1161,7 +1133,7 @@ Fixes NoMethodError: undefined method `value' for Selenium::WebDriver::Element
|
|
1161
1133
|
|
1162
1134
|
--
|
1163
1135
|
|
1164
|
-
##### [name](https://github.com/appium/ruby_lib/blob/
|
1136
|
+
##### [name](https://github.com/appium/ruby_lib/blob/db2df39eb6fc09e516e22334dd990699755c0509/lib/appium_lib/common/patch.rb#L39)
|
1165
1137
|
|
1166
1138
|
> def name
|
1167
1139
|
|
@@ -1171,7 +1143,7 @@ Fixes NoMethodError: undefined method `name' for Selenium::WebDriver::Element
|
|
1171
1143
|
|
1172
1144
|
--
|
1173
1145
|
|
1174
|
-
##### [location_rel](https://github.com/appium/ruby_lib/blob/
|
1146
|
+
##### [location_rel](https://github.com/appium/ruby_lib/blob/db2df39eb6fc09e516e22334dd990699755c0509/lib/appium_lib/common/patch.rb#L51)
|
1175
1147
|
|
1176
1148
|
> def location_rel
|
1177
1149
|
|
@@ -1189,7 +1161,7 @@ __Returns:__
|
|
1189
1161
|
|
1190
1162
|
--
|
1191
1163
|
|
1192
|
-
##### [CORE](https://github.com/appium/ruby_lib/blob/
|
1164
|
+
##### [CORE](https://github.com/appium/ruby_lib/blob/db2df39eb6fc09e516e22334dd990699755c0509/lib/appium_lib/driver.rb#L16)
|
1193
1165
|
|
1194
1166
|
> CORE = [ :array, :hash, :class, :file, :dir, :bigdecimal, :rational, :struct, :openstruct, :method, :unboundmethod ]
|
1195
1167
|
|
@@ -1197,7 +1169,7 @@ __Returns:__
|
|
1197
1169
|
|
1198
1170
|
--
|
1199
1171
|
|
1200
|
-
##### [awesome_openstruct](https://github.com/appium/ruby_lib/blob/
|
1172
|
+
##### [awesome_openstruct](https://github.com/appium/ruby_lib/blob/db2df39eb6fc09e516e22334dd990699755c0509/lib/appium_lib/driver.rb#L18)
|
1201
1173
|
|
1202
1174
|
> def awesome_openstruct target
|
1203
1175
|
|
@@ -1205,7 +1177,7 @@ __Returns:__
|
|
1205
1177
|
|
1206
1178
|
--
|
1207
1179
|
|
1208
|
-
##### [load_appium_txt](https://github.com/appium/ruby_lib/blob/
|
1180
|
+
##### [load_appium_txt](https://github.com/appium/ruby_lib/blob/db2df39eb6fc09e516e22334dd990699755c0509/lib/appium_lib/driver.rb#L27)
|
1209
1181
|
|
1210
1182
|
> def load_appium_txt opts
|
1211
1183
|
|
@@ -1222,7 +1194,7 @@ __Returns:__
|
|
1222
1194
|
|
1223
1195
|
--
|
1224
1196
|
|
1225
|
-
##### [promote_singleton_appium_methods](https://github.com/appium/ruby_lib/blob/
|
1197
|
+
##### [promote_singleton_appium_methods](https://github.com/appium/ruby_lib/blob/db2df39eb6fc09e516e22334dd990699755c0509/lib/appium_lib/driver.rb#L152)
|
1226
1198
|
|
1227
1199
|
> def self.promote_singleton_appium_methods main_module
|
1228
1200
|
|
@@ -1230,7 +1202,7 @@ __Returns:__
|
|
1230
1202
|
|
1231
1203
|
--
|
1232
1204
|
|
1233
|
-
##### [promote_appium_methods](https://github.com/appium/ruby_lib/blob/
|
1205
|
+
##### [promote_appium_methods](https://github.com/appium/ruby_lib/blob/db2df39eb6fc09e516e22334dd990699755c0509/lib/appium_lib/driver.rb#L182)
|
1234
1206
|
|
1235
1207
|
> def self.promote_appium_methods class_array
|
1236
1208
|
|
@@ -1248,7 +1220,7 @@ __Parameters:__
|
|
1248
1220
|
|
1249
1221
|
--
|
1250
1222
|
|
1251
|
-
##### [default_wait](https://github.com/appium/ruby_lib/blob/
|
1223
|
+
##### [default_wait](https://github.com/appium/ruby_lib/blob/db2df39eb6fc09e516e22334dd990699755c0509/lib/appium_lib/driver.rb#L564)
|
1252
1224
|
|
1253
1225
|
> def default_wait
|
1254
1226
|
|
@@ -1261,7 +1233,7 @@ __Returns:__
|
|
1261
1233
|
|
1262
1234
|
--
|
1263
1235
|
|
1264
|
-
##### [app_path](https://github.com/appium/ruby_lib/blob/
|
1236
|
+
##### [app_path](https://github.com/appium/ruby_lib/blob/db2df39eb6fc09e516e22334dd990699755c0509/lib/appium_lib/driver.rb#L211)
|
1265
1237
|
|
1266
1238
|
> def app_path
|
1267
1239
|
|
@@ -1269,7 +1241,7 @@ Returns the value of attribute app_path
|
|
1269
1241
|
|
1270
1242
|
--
|
1271
1243
|
|
1272
|
-
##### [app_name](https://github.com/appium/ruby_lib/blob/
|
1244
|
+
##### [app_name](https://github.com/appium/ruby_lib/blob/db2df39eb6fc09e516e22334dd990699755c0509/lib/appium_lib/driver.rb#L211)
|
1273
1245
|
|
1274
1246
|
> def app_name
|
1275
1247
|
|
@@ -1277,7 +1249,7 @@ Returns the value of attribute app_name
|
|
1277
1249
|
|
1278
1250
|
--
|
1279
1251
|
|
1280
|
-
##### [device](https://github.com/appium/ruby_lib/blob/
|
1252
|
+
##### [device](https://github.com/appium/ruby_lib/blob/db2df39eb6fc09e516e22334dd990699755c0509/lib/appium_lib/driver.rb#L211)
|
1281
1253
|
|
1282
1254
|
> def device
|
1283
1255
|
|
@@ -1285,7 +1257,7 @@ Returns the value of attribute device
|
|
1285
1257
|
|
1286
1258
|
--
|
1287
1259
|
|
1288
|
-
##### [app_package](https://github.com/appium/ruby_lib/blob/
|
1260
|
+
##### [app_package](https://github.com/appium/ruby_lib/blob/db2df39eb6fc09e516e22334dd990699755c0509/lib/appium_lib/driver.rb#L211)
|
1289
1261
|
|
1290
1262
|
> def app_package
|
1291
1263
|
|
@@ -1293,7 +1265,7 @@ Returns the value of attribute app_package
|
|
1293
1265
|
|
1294
1266
|
--
|
1295
1267
|
|
1296
|
-
##### [app_activity](https://github.com/appium/ruby_lib/blob/
|
1268
|
+
##### [app_activity](https://github.com/appium/ruby_lib/blob/db2df39eb6fc09e516e22334dd990699755c0509/lib/appium_lib/driver.rb#L211)
|
1297
1269
|
|
1298
1270
|
> def app_activity
|
1299
1271
|
|
@@ -1301,7 +1273,7 @@ Returns the value of attribute app_activity
|
|
1301
1273
|
|
1302
1274
|
--
|
1303
1275
|
|
1304
|
-
##### [app_wait_activity](https://github.com/appium/ruby_lib/blob/
|
1276
|
+
##### [app_wait_activity](https://github.com/appium/ruby_lib/blob/db2df39eb6fc09e516e22334dd990699755c0509/lib/appium_lib/driver.rb#L211)
|
1305
1277
|
|
1306
1278
|
> def app_wait_activity
|
1307
1279
|
|
@@ -1309,7 +1281,7 @@ Returns the value of attribute app_wait_activity
|
|
1309
1281
|
|
1310
1282
|
--
|
1311
1283
|
|
1312
|
-
##### [sauce_username](https://github.com/appium/ruby_lib/blob/
|
1284
|
+
##### [sauce_username](https://github.com/appium/ruby_lib/blob/db2df39eb6fc09e516e22334dd990699755c0509/lib/appium_lib/driver.rb#L211)
|
1313
1285
|
|
1314
1286
|
> def sauce_username
|
1315
1287
|
|
@@ -1317,7 +1289,7 @@ Returns the value of attribute sauce_username
|
|
1317
1289
|
|
1318
1290
|
--
|
1319
1291
|
|
1320
|
-
##### [sauce_access_key](https://github.com/appium/ruby_lib/blob/
|
1292
|
+
##### [sauce_access_key](https://github.com/appium/ruby_lib/blob/db2df39eb6fc09e516e22334dd990699755c0509/lib/appium_lib/driver.rb#L211)
|
1321
1293
|
|
1322
1294
|
> def sauce_access_key
|
1323
1295
|
|
@@ -1325,7 +1297,7 @@ Returns the value of attribute sauce_access_key
|
|
1325
1297
|
|
1326
1298
|
--
|
1327
1299
|
|
1328
|
-
##### [port](https://github.com/appium/ruby_lib/blob/
|
1300
|
+
##### [port](https://github.com/appium/ruby_lib/blob/db2df39eb6fc09e516e22334dd990699755c0509/lib/appium_lib/driver.rb#L211)
|
1329
1301
|
|
1330
1302
|
> def port
|
1331
1303
|
|
@@ -1333,7 +1305,7 @@ Returns the value of attribute port
|
|
1333
1305
|
|
1334
1306
|
--
|
1335
1307
|
|
1336
|
-
##### [debug](https://github.com/appium/ruby_lib/blob/
|
1308
|
+
##### [debug](https://github.com/appium/ruby_lib/blob/db2df39eb6fc09e516e22334dd990699755c0509/lib/appium_lib/driver.rb#L211)
|
1337
1309
|
|
1338
1310
|
> def debug
|
1339
1311
|
|
@@ -1341,7 +1313,7 @@ Returns the value of attribute debug
|
|
1341
1313
|
|
1342
1314
|
--
|
1343
1315
|
|
1344
|
-
##### [export_session](https://github.com/appium/ruby_lib/blob/
|
1316
|
+
##### [export_session](https://github.com/appium/ruby_lib/blob/db2df39eb6fc09e516e22334dd990699755c0509/lib/appium_lib/driver.rb#L211)
|
1345
1317
|
|
1346
1318
|
> def export_session
|
1347
1319
|
|
@@ -1349,7 +1321,7 @@ Returns the value of attribute export_session
|
|
1349
1321
|
|
1350
1322
|
--
|
1351
1323
|
|
1352
|
-
##### [device_cap](https://github.com/appium/ruby_lib/blob/
|
1324
|
+
##### [device_cap](https://github.com/appium/ruby_lib/blob/db2df39eb6fc09e516e22334dd990699755c0509/lib/appium_lib/driver.rb#L211)
|
1353
1325
|
|
1354
1326
|
> def device_cap
|
1355
1327
|
|
@@ -1357,7 +1329,7 @@ Returns the value of attribute device_cap
|
|
1357
1329
|
|
1358
1330
|
--
|
1359
1331
|
|
1360
|
-
##### [compress_xml](https://github.com/appium/ruby_lib/blob/
|
1332
|
+
##### [compress_xml](https://github.com/appium/ruby_lib/blob/db2df39eb6fc09e516e22334dd990699755c0509/lib/appium_lib/driver.rb#L211)
|
1361
1333
|
|
1362
1334
|
> def compress_xml
|
1363
1335
|
|
@@ -1365,7 +1337,7 @@ Returns the value of attribute compress_xml
|
|
1365
1337
|
|
1366
1338
|
--
|
1367
1339
|
|
1368
|
-
##### [custom_url](https://github.com/appium/ruby_lib/blob/
|
1340
|
+
##### [custom_url](https://github.com/appium/ruby_lib/blob/db2df39eb6fc09e516e22334dd990699755c0509/lib/appium_lib/driver.rb#L211)
|
1369
1341
|
|
1370
1342
|
> def custom_url
|
1371
1343
|
|
@@ -1373,7 +1345,7 @@ Returns the value of attribute custom_url
|
|
1373
1345
|
|
1374
1346
|
--
|
1375
1347
|
|
1376
|
-
##### [global_webdriver_http_sleep](https://github.com/appium/ruby_lib/blob/
|
1348
|
+
##### [global_webdriver_http_sleep](https://github.com/appium/ruby_lib/blob/db2df39eb6fc09e516e22334dd990699755c0509/lib/appium_lib/driver.rb#L217)
|
1377
1349
|
|
1378
1350
|
> def global_webdriver_http_sleep
|
1379
1351
|
|
@@ -1381,7 +1353,7 @@ The amount to sleep in seconds before every webdriver http call.
|
|
1381
1353
|
|
1382
1354
|
--
|
1383
1355
|
|
1384
|
-
##### [global_webdriver_http_sleep=](https://github.com/appium/ruby_lib/blob/
|
1356
|
+
##### [global_webdriver_http_sleep=](https://github.com/appium/ruby_lib/blob/db2df39eb6fc09e516e22334dd990699755c0509/lib/appium_lib/driver.rb#L217)
|
1385
1357
|
|
1386
1358
|
> def global_webdriver_http_sleep=(value)
|
1387
1359
|
|
@@ -1389,7 +1361,7 @@ The amount to sleep in seconds before every webdriver http call.
|
|
1389
1361
|
|
1390
1362
|
--
|
1391
1363
|
|
1392
|
-
##### [initialize](https://github.com/appium/ruby_lib/blob/
|
1364
|
+
##### [initialize](https://github.com/appium/ruby_lib/blob/db2df39eb6fc09e516e22334dd990699755c0509/lib/appium_lib/driver.rb#L247)
|
1393
1365
|
|
1394
1366
|
> def initialize opts={}
|
1395
1367
|
|
@@ -1430,7 +1402,7 @@ __Returns:__
|
|
1430
1402
|
|
1431
1403
|
--
|
1432
1404
|
|
1433
|
-
##### [status](https://github.com/appium/ruby_lib/blob/
|
1405
|
+
##### [status](https://github.com/appium/ruby_lib/blob/db2df39eb6fc09e516e22334dd990699755c0509/lib/appium_lib/driver.rb#L376)
|
1434
1406
|
|
1435
1407
|
> def status
|
1436
1408
|
|
@@ -1456,7 +1428,7 @@ __Returns:__
|
|
1456
1428
|
|
1457
1429
|
--
|
1458
1430
|
|
1459
|
-
##### [server_version](https://github.com/appium/ruby_lib/blob/
|
1431
|
+
##### [server_version](https://github.com/appium/ruby_lib/blob/db2df39eb6fc09e516e22334dd990699755c0509/lib/appium_lib/driver.rb#L382)
|
1460
1432
|
|
1461
1433
|
> def server_version
|
1462
1434
|
|
@@ -1468,9 +1440,9 @@ __Returns:__
|
|
1468
1440
|
|
1469
1441
|
--
|
1470
1442
|
|
1471
|
-
##### [absolute_app_path](https://github.com/appium/ruby_lib/blob/
|
1443
|
+
##### [absolute_app_path](https://github.com/appium/ruby_lib/blob/db2df39eb6fc09e516e22334dd990699755c0509/lib/appium_lib/driver.rb#L426)
|
1472
1444
|
|
1473
|
-
> def absolute_app_path
|
1445
|
+
> def self.absolute_app_path app_path
|
1474
1446
|
|
1475
1447
|
Converts environment variable APP_PATH to an absolute path.
|
1476
1448
|
|
@@ -1480,7 +1452,7 @@ __Returns:__
|
|
1480
1452
|
|
1481
1453
|
--
|
1482
1454
|
|
1483
|
-
##### [server_url](https://github.com/appium/ruby_lib/blob/
|
1455
|
+
##### [server_url](https://github.com/appium/ruby_lib/blob/db2df39eb6fc09e516e22334dd990699755c0509/lib/appium_lib/driver.rb#L450)
|
1484
1456
|
|
1485
1457
|
> def server_url
|
1486
1458
|
|
@@ -1492,7 +1464,7 @@ __Returns:__
|
|
1492
1464
|
|
1493
1465
|
--
|
1494
1466
|
|
1495
|
-
##### [restart](https://github.com/appium/ruby_lib/blob/
|
1467
|
+
##### [restart](https://github.com/appium/ruby_lib/blob/db2df39eb6fc09e516e22334dd990699755c0509/lib/appium_lib/driver.rb#L461)
|
1496
1468
|
|
1497
1469
|
> def restart
|
1498
1470
|
|
@@ -1504,7 +1476,7 @@ __Returns:__
|
|
1504
1476
|
|
1505
1477
|
--
|
1506
1478
|
|
1507
|
-
##### [driver](https://github.com/appium/ruby_lib/blob/
|
1479
|
+
##### [driver](https://github.com/appium/ruby_lib/blob/db2df39eb6fc09e516e22334dd990699755c0509/lib/appium_lib/driver.rb#L468)
|
1508
1480
|
|
1509
1481
|
> def driver
|
1510
1482
|
|
@@ -1516,7 +1488,7 @@ __Returns:__
|
|
1516
1488
|
|
1517
1489
|
--
|
1518
1490
|
|
1519
|
-
##### [screenshot](https://github.com/appium/ruby_lib/blob/
|
1491
|
+
##### [screenshot](https://github.com/appium/ruby_lib/blob/db2df39eb6fc09e516e22334dd990699755c0509/lib/appium_lib/driver.rb#L478)
|
1520
1492
|
|
1521
1493
|
> def screenshot png_save_path
|
1522
1494
|
|
@@ -1534,7 +1506,7 @@ __Returns:__
|
|
1534
1506
|
|
1535
1507
|
--
|
1536
1508
|
|
1537
|
-
##### [driver_quit](https://github.com/appium/ruby_lib/blob/
|
1509
|
+
##### [driver_quit](https://github.com/appium/ruby_lib/blob/db2df39eb6fc09e516e22334dd990699755c0509/lib/appium_lib/driver.rb#L485)
|
1538
1510
|
|
1539
1511
|
> def driver_quit
|
1540
1512
|
|
@@ -1546,7 +1518,7 @@ __Returns:__
|
|
1546
1518
|
|
1547
1519
|
--
|
1548
1520
|
|
1549
|
-
##### [start_driver](https://github.com/appium/ruby_lib/blob/
|
1521
|
+
##### [start_driver](https://github.com/appium/ruby_lib/blob/db2df39eb6fc09e516e22334dd990699755c0509/lib/appium_lib/driver.rb#L493)
|
1550
1522
|
|
1551
1523
|
> def start_driver
|
1552
1524
|
|
@@ -1558,7 +1530,7 @@ __Returns:__
|
|
1558
1530
|
|
1559
1531
|
--
|
1560
1532
|
|
1561
|
-
##### [no_wait](https://github.com/appium/ruby_lib/blob/
|
1533
|
+
##### [no_wait](https://github.com/appium/ruby_lib/blob/db2df39eb6fc09e516e22334dd990699755c0509/lib/appium_lib/driver.rb#L527)
|
1562
1534
|
|
1563
1535
|
> def no_wait
|
1564
1536
|
|
@@ -1566,7 +1538,7 @@ Set implicit wait and default_wait to zero.
|
|
1566
1538
|
|
1567
1539
|
--
|
1568
1540
|
|
1569
|
-
##### [set_wait](https://github.com/appium/ruby_lib/blob/
|
1541
|
+
##### [set_wait](https://github.com/appium/ruby_lib/blob/db2df39eb6fc09e516e22334dd990699755c0509/lib/appium_lib/driver.rb#L546)
|
1570
1542
|
|
1571
1543
|
> def set_wait timeout=nil
|
1572
1544
|
|
@@ -1591,7 +1563,7 @@ __Returns:__
|
|
1591
1563
|
|
1592
1564
|
--
|
1593
1565
|
|
1594
|
-
##### [exists](https://github.com/appium/ruby_lib/blob/
|
1566
|
+
##### [exists](https://github.com/appium/ruby_lib/blob/db2df39eb6fc09e516e22334dd990699755c0509/lib/appium_lib/driver.rb#L580)
|
1595
1567
|
|
1596
1568
|
> def exists pre_check=0, post_check=@default_wait, &search_block
|
1597
1569
|
|
@@ -1617,7 +1589,7 @@ __Returns:__
|
|
1617
1589
|
|
1618
1590
|
--
|
1619
1591
|
|
1620
|
-
##### [execute_script](https://github.com/appium/ruby_lib/blob/
|
1592
|
+
##### [execute_script](https://github.com/appium/ruby_lib/blob/db2df39eb6fc09e516e22334dd990699755c0509/lib/appium_lib/driver.rb#L604)
|
1621
1593
|
|
1622
1594
|
> def execute_script script, *args
|
1623
1595
|
|
@@ -1635,7 +1607,7 @@ __Returns:__
|
|
1635
1607
|
|
1636
1608
|
--
|
1637
1609
|
|
1638
|
-
##### [mobile](https://github.com/appium/ruby_lib/blob/
|
1610
|
+
##### [mobile](https://github.com/appium/ruby_lib/blob/db2df39eb6fc09e516e22334dd990699755c0509/lib/appium_lib/driver.rb#L620)
|
1639
1611
|
|
1640
1612
|
> def mobile method, *args
|
1641
1613
|
|
@@ -1661,7 +1633,7 @@ __Returns:__
|
|
1661
1633
|
|
1662
1634
|
--
|
1663
1635
|
|
1664
|
-
##### [find_elements](https://github.com/appium/ruby_lib/blob/
|
1636
|
+
##### [find_elements](https://github.com/appium/ruby_lib/blob/db2df39eb6fc09e516e22334dd990699755c0509/lib/appium_lib/driver.rb#L631)
|
1665
1637
|
|
1666
1638
|
> def find_elements *args
|
1667
1639
|
|
@@ -1677,7 +1649,7 @@ __Returns:__
|
|
1677
1649
|
|
1678
1650
|
--
|
1679
1651
|
|
1680
|
-
##### [find_element](https://github.com/appium/ruby_lib/blob/
|
1652
|
+
##### [find_element](https://github.com/appium/ruby_lib/blob/db2df39eb6fc09e516e22334dd990699755c0509/lib/appium_lib/driver.rb#L639)
|
1681
1653
|
|
1682
1654
|
> def find_element *args
|
1683
1655
|
|
@@ -1693,7 +1665,7 @@ __Returns:__
|
|
1693
1665
|
|
1694
1666
|
--
|
1695
1667
|
|
1696
|
-
##### [x](https://github.com/appium/ruby_lib/blob/
|
1668
|
+
##### [x](https://github.com/appium/ruby_lib/blob/db2df39eb6fc09e516e22334dd990699755c0509/lib/appium_lib/driver.rb#L646)
|
1697
1669
|
|
1698
1670
|
> def x
|
1699
1671
|
|