appium_lib 0.7.1 → 0.8.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Rakefile +12 -1
- data/docs/android_docs.md +172 -164
- data/docs/ios_docs.md +174 -118
- data/lib/appium_lib/android/helper.rb +10 -0
- data/lib/appium_lib/common/helper.rb +6 -7
- data/lib/appium_lib/common/version.rb +2 -2
- data/lib/appium_lib/ios/element/textfield.rb +13 -8
- data/lib/appium_lib/ios/helper.rb +9 -0
- data/release_notes.md +9 -0
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 6760391016f0096aed1f48b2f12df3b14292959c
|
4
|
+
data.tar.gz: 6045ef46c85ae72f8789d12b984fbb8e7f021775
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 9a25899234f6b4dc0b2026aded996be04d72eae985c257565c97f85affffcf88ee65cc88e856c484e4f20db56930acea1dc85b3c6f6a295445126f686321e6fe
|
7
|
+
data.tar.gz: 9c0296ad6a1f39d2d3e8ea0f660c4b1e976c16f3a65b24cfa0cc896b2b91a835b5d03a44ef345a7c7dd24b968c515cc4419e8296969ec9a4c5c5f07563245907
|
data/Rakefile
CHANGED
@@ -13,7 +13,7 @@ def version
|
|
13
13
|
@version = @version || File.read(version_file).match(version_rgx)[1]
|
14
14
|
end
|
15
15
|
|
16
|
-
def bump
|
16
|
+
def bump major=false
|
17
17
|
data = File.read version_file
|
18
18
|
|
19
19
|
v_line = data.match version_rgx
|
@@ -25,6 +25,12 @@ def bump
|
|
25
25
|
old_num = v_line[1]
|
26
26
|
new_num = old_num.split('.')
|
27
27
|
new_num[-1] = new_num[-1].to_i + 1
|
28
|
+
|
29
|
+
if major
|
30
|
+
new_num[-1] = 0 # x.y.Z -> x.y.0
|
31
|
+
new_num[-2] = new_num[-2].to_i + 1 # x.Y -> x.Y+1
|
32
|
+
end
|
33
|
+
|
28
34
|
new_num = new_num.join '.'
|
29
35
|
|
30
36
|
new_v = old_v.sub old_num, new_num
|
@@ -46,6 +52,11 @@ task :bump do
|
|
46
52
|
bump
|
47
53
|
end
|
48
54
|
|
55
|
+
desc 'Bump the y version number, set z to zero, update the date.'
|
56
|
+
task :bumpy do
|
57
|
+
bump true
|
58
|
+
end
|
59
|
+
|
49
60
|
desc 'Install gems required for release task'
|
50
61
|
task :dev do
|
51
62
|
sh 'gem install --no-rdoc --no-ri yard'
|
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/1e0f36e22833246873b6ecb8cc4d2bf3544de2c8/lib/appium_lib/common/element/text.rb#L8)
|
2
2
|
|
3
3
|
> def s_texts
|
4
4
|
|
@@ -10,7 +10,7 @@ __Returns:__
|
|
10
10
|
|
11
11
|
--
|
12
12
|
|
13
|
-
##### [e_s_texts](https://github.com/appium/ruby_lib/blob/
|
13
|
+
##### [e_s_texts](https://github.com/appium/ruby_lib/blob/1e0f36e22833246873b6ecb8cc4d2bf3544de2c8/lib/appium_lib/common/element/text.rb#L14)
|
14
14
|
|
15
15
|
> def e_s_texts
|
16
16
|
|
@@ -22,7 +22,7 @@ __Returns:__
|
|
22
22
|
|
23
23
|
--
|
24
24
|
|
25
|
-
##### [first_s_text](https://github.com/appium/ruby_lib/blob/
|
25
|
+
##### [first_s_text](https://github.com/appium/ruby_lib/blob/1e0f36e22833246873b6ecb8cc4d2bf3544de2c8/lib/appium_lib/common/element/text.rb#L20)
|
26
26
|
|
27
27
|
> def first_s_text
|
28
28
|
|
@@ -34,7 +34,7 @@ __Returns:__
|
|
34
34
|
|
35
35
|
--
|
36
36
|
|
37
|
-
##### [last_s_text](https://github.com/appium/ruby_lib/blob/
|
37
|
+
##### [last_s_text](https://github.com/appium/ruby_lib/blob/1e0f36e22833246873b6ecb8cc4d2bf3544de2c8/lib/appium_lib/common/element/text.rb#L26)
|
38
38
|
|
39
39
|
> def last_s_text
|
40
40
|
|
@@ -46,7 +46,7 @@ __Returns:__
|
|
46
46
|
|
47
47
|
--
|
48
48
|
|
49
|
-
##### [s_text](https://github.com/appium/ruby_lib/blob/
|
49
|
+
##### [s_text](https://github.com/appium/ruby_lib/blob/1e0f36e22833246873b6ecb8cc4d2bf3544de2c8/lib/appium_lib/common/element/text.rb#L33)
|
50
50
|
|
51
51
|
> def s_text text
|
52
52
|
|
@@ -62,7 +62,7 @@ __Returns:__
|
|
62
62
|
|
63
63
|
--
|
64
64
|
|
65
|
-
##### [s_text_exact](https://github.com/appium/ruby_lib/blob/
|
65
|
+
##### [s_text_exact](https://github.com/appium/ruby_lib/blob/1e0f36e22833246873b6ecb8cc4d2bf3544de2c8/lib/appium_lib/common/element/text.rb#L41)
|
66
66
|
|
67
67
|
> def s_text_exact text
|
68
68
|
|
@@ -78,7 +78,7 @@ __Returns:__
|
|
78
78
|
|
79
79
|
--
|
80
80
|
|
81
|
-
##### [window_size](https://github.com/appium/ruby_lib/blob/
|
81
|
+
##### [window_size](https://github.com/appium/ruby_lib/blob/1e0f36e22833246873b6ecb8cc4d2bf3544de2c8/lib/appium_lib/common/element/window.rb#L5)
|
82
82
|
|
83
83
|
> def window_size
|
84
84
|
|
@@ -86,7 +86,7 @@ Get the window's size
|
|
86
86
|
|
87
87
|
--
|
88
88
|
|
89
|
-
##### [button](https://github.com/appium/ruby_lib/blob/
|
89
|
+
##### [button](https://github.com/appium/ruby_lib/blob/1e0f36e22833246873b6ecb8cc4d2bf3544de2c8/lib/appium_lib/common/element/button.rb#L8)
|
90
90
|
|
91
91
|
> def button text, number=0
|
92
92
|
|
@@ -104,7 +104,7 @@ __Returns:__
|
|
104
104
|
|
105
105
|
--
|
106
106
|
|
107
|
-
##### [buttons](https://github.com/appium/ruby_lib/blob/
|
107
|
+
##### [buttons](https://github.com/appium/ruby_lib/blob/1e0f36e22833246873b6ecb8cc4d2bf3544de2c8/lib/appium_lib/common/element/button.rb#L19)
|
108
108
|
|
109
109
|
> def buttons text=nil
|
110
110
|
|
@@ -120,7 +120,7 @@ __Returns:__
|
|
120
120
|
|
121
121
|
--
|
122
122
|
|
123
|
-
##### [first_button](https://github.com/appium/ruby_lib/blob/
|
123
|
+
##### [first_button](https://github.com/appium/ruby_lib/blob/1e0f36e22833246873b6ecb8cc4d2bf3544de2c8/lib/appium_lib/common/element/button.rb#L26)
|
124
124
|
|
125
125
|
> def first_button
|
126
126
|
|
@@ -132,7 +132,7 @@ __Returns:__
|
|
132
132
|
|
133
133
|
--
|
134
134
|
|
135
|
-
##### [last_button](https://github.com/appium/ruby_lib/blob/
|
135
|
+
##### [last_button](https://github.com/appium/ruby_lib/blob/1e0f36e22833246873b6ecb8cc4d2bf3544de2c8/lib/appium_lib/common/element/button.rb#L32)
|
136
136
|
|
137
137
|
> def last_button
|
138
138
|
|
@@ -144,7 +144,7 @@ __Returns:__
|
|
144
144
|
|
145
145
|
--
|
146
146
|
|
147
|
-
##### [button_exact](https://github.com/appium/ruby_lib/blob/
|
147
|
+
##### [button_exact](https://github.com/appium/ruby_lib/blob/1e0f36e22833246873b6ecb8cc4d2bf3544de2c8/lib/appium_lib/common/element/button.rb#L39)
|
148
148
|
|
149
149
|
> def button_exact text
|
150
150
|
|
@@ -160,7 +160,7 @@ __Returns:__
|
|
160
160
|
|
161
161
|
--
|
162
162
|
|
163
|
-
##### [buttons_exact](https://github.com/appium/ruby_lib/blob/
|
163
|
+
##### [buttons_exact](https://github.com/appium/ruby_lib/blob/1e0f36e22833246873b6ecb8cc4d2bf3544de2c8/lib/appium_lib/common/element/button.rb#L46)
|
164
164
|
|
165
165
|
> def buttons_exact text
|
166
166
|
|
@@ -176,7 +176,7 @@ __Returns:__
|
|
176
176
|
|
177
177
|
--
|
178
178
|
|
179
|
-
##### [e_buttons](https://github.com/appium/ruby_lib/blob/
|
179
|
+
##### [e_buttons](https://github.com/appium/ruby_lib/blob/1e0f36e22833246873b6ecb8cc4d2bf3544de2c8/lib/appium_lib/common/element/button.rb#L52)
|
180
180
|
|
181
181
|
> def e_buttons
|
182
182
|
|
@@ -188,7 +188,7 @@ __Returns:__
|
|
188
188
|
|
189
189
|
--
|
190
190
|
|
191
|
-
##### [button_num](https://github.com/appium/ruby_lib/blob/
|
191
|
+
##### [button_num](https://github.com/appium/ruby_lib/blob/1e0f36e22833246873b6ecb8cc4d2bf3544de2c8/lib/appium_lib/common/element/button.rb#L72)
|
192
192
|
|
193
193
|
> def button_num text, number=1
|
194
194
|
|
@@ -217,7 +217,7 @@ __Returns:__
|
|
217
217
|
|
218
218
|
--
|
219
219
|
|
220
|
-
##### [tag_name_to_android](https://github.com/appium/ruby_lib/blob/
|
220
|
+
##### [tag_name_to_android](https://github.com/appium/ruby_lib/blob/1e0f36e22833246873b6ecb8cc4d2bf3544de2c8/lib/appium_lib/android/helper.rb#L6) android
|
221
221
|
|
222
222
|
> def tag_name_to_android tag_name
|
223
223
|
|
@@ -233,7 +233,7 @@ __Returns:__
|
|
233
233
|
|
234
234
|
--
|
235
235
|
|
236
|
-
##### [find_eles_attr](https://github.com/appium/ruby_lib/blob/
|
236
|
+
##### [find_eles_attr](https://github.com/appium/ruby_lib/blob/1e0f36e22833246873b6ecb8cc4d2bf3544de2c8/lib/appium_lib/android/helper.rb#L194) android
|
237
237
|
|
238
238
|
> def find_eles_attr tag_name, attribute=nil
|
239
239
|
|
@@ -254,7 +254,7 @@ __Returns:__
|
|
254
254
|
|
255
255
|
--
|
256
256
|
|
257
|
-
##### [get_selendroid_inspect](https://github.com/appium/ruby_lib/blob/
|
257
|
+
##### [get_selendroid_inspect](https://github.com/appium/ruby_lib/blob/1e0f36e22833246873b6ecb8cc4d2bf3544de2c8/lib/appium_lib/android/helper.rb#L216) android
|
258
258
|
|
259
259
|
> def get_selendroid_inspect
|
260
260
|
|
@@ -267,7 +267,7 @@ __Returns:__
|
|
267
267
|
|
268
268
|
--
|
269
269
|
|
270
|
-
##### [get_page_class](https://github.com/appium/ruby_lib/blob/
|
270
|
+
##### [get_page_class](https://github.com/appium/ruby_lib/blob/1e0f36e22833246873b6ecb8cc4d2bf3544de2c8/lib/appium_lib/android/helper.rb#L278) android
|
271
271
|
|
272
272
|
> def get_page_class
|
273
273
|
|
@@ -275,7 +275,7 @@ __Returns:__
|
|
275
275
|
|
276
276
|
--
|
277
277
|
|
278
|
-
##### [page_class](https://github.com/appium/ruby_lib/blob/
|
278
|
+
##### [page_class](https://github.com/appium/ruby_lib/blob/1e0f36e22833246873b6ecb8cc4d2bf3544de2c8/lib/appium_lib/android/helper.rb#L305) android
|
279
279
|
|
280
280
|
> def page_class
|
281
281
|
|
@@ -284,15 +284,7 @@ Useful for appium_console.
|
|
284
284
|
|
285
285
|
--
|
286
286
|
|
287
|
-
##### [
|
288
|
-
|
289
|
-
> def lazy_load_strings
|
290
|
-
|
291
|
-
|
292
|
-
|
293
|
-
--
|
294
|
-
|
295
|
-
##### [get_android_inspect](https://github.com/appium/ruby_lib/blob/c8f3041049c2feb9ac85f67e85523118a6ce5a84/lib/appium_lib/android/helper.rb#L318) android
|
287
|
+
##### [get_android_inspect](https://github.com/appium/ruby_lib/blob/1e0f36e22833246873b6ecb8cc4d2bf3544de2c8/lib/appium_lib/android/helper.rb#L314) android
|
296
288
|
|
297
289
|
> def get_android_inspect
|
298
290
|
|
@@ -306,7 +298,7 @@ __Returns:__
|
|
306
298
|
|
307
299
|
--
|
308
300
|
|
309
|
-
##### [get_inspect](https://github.com/appium/ruby_lib/blob/
|
301
|
+
##### [get_inspect](https://github.com/appium/ruby_lib/blob/1e0f36e22833246873b6ecb8cc4d2bf3544de2c8/lib/appium_lib/android/helper.rb#L392) android
|
310
302
|
|
311
303
|
> def get_inspect
|
312
304
|
|
@@ -319,7 +311,7 @@ __Returns:__
|
|
319
311
|
|
320
312
|
--
|
321
313
|
|
322
|
-
##### [page](https://github.com/appium/ruby_lib/blob/
|
314
|
+
##### [page](https://github.com/appium/ruby_lib/blob/1e0f36e22833246873b6ecb8cc4d2bf3544de2c8/lib/appium_lib/android/helper.rb#L398) android
|
323
315
|
|
324
316
|
> def page
|
325
317
|
|
@@ -328,7 +320,7 @@ Inspects and prints the current page.
|
|
328
320
|
|
329
321
|
--
|
330
322
|
|
331
|
-
##### [fast_duration](https://github.com/appium/ruby_lib/blob/
|
323
|
+
##### [fast_duration](https://github.com/appium/ruby_lib/blob/1e0f36e22833246873b6ecb8cc4d2bf3544de2c8/lib/appium_lib/android/helper.rb#L411) android
|
332
324
|
|
333
325
|
> def fast_duration
|
334
326
|
|
@@ -343,55 +335,7 @@ We want steps to be exactly 1. If it's zero then a tap is used instead of a swip
|
|
343
335
|
|
344
336
|
--
|
345
337
|
|
346
|
-
##### [
|
347
|
-
|
348
|
-
> def xml_keys target
|
349
|
-
|
350
|
-
Search strings.xml's values for target.
|
351
|
-
|
352
|
-
__Parameters:__
|
353
|
-
|
354
|
-
[String] target - the target to search for in strings.xml values
|
355
|
-
|
356
|
-
__Returns:__
|
357
|
-
|
358
|
-
[Array]
|
359
|
-
|
360
|
-
--
|
361
|
-
|
362
|
-
##### [xml_values](https://github.com/appium/ruby_lib/blob/c8f3041049c2feb9ac85f67e85523118a6ce5a84/lib/appium_lib/android/helper.rb#L430) android
|
363
|
-
|
364
|
-
> def xml_values target
|
365
|
-
|
366
|
-
Search strings.xml's keys for target.
|
367
|
-
|
368
|
-
__Parameters:__
|
369
|
-
|
370
|
-
[String] target - the target to search for in strings.xml keys
|
371
|
-
|
372
|
-
__Returns:__
|
373
|
-
|
374
|
-
[Array]
|
375
|
-
|
376
|
-
--
|
377
|
-
|
378
|
-
##### [resolve_id](https://github.com/appium/ruby_lib/blob/c8f3041049c2feb9ac85f67e85523118a6ce5a84/lib/appium_lib/android/helper.rb#L438) android
|
379
|
-
|
380
|
-
> def resolve_id id
|
381
|
-
|
382
|
-
Resolve id in strings.xml and return the value.
|
383
|
-
|
384
|
-
__Parameters:__
|
385
|
-
|
386
|
-
[String] id - the id to resolve
|
387
|
-
|
388
|
-
__Returns:__
|
389
|
-
|
390
|
-
[String]
|
391
|
-
|
392
|
-
--
|
393
|
-
|
394
|
-
##### [current_app](https://github.com/appium/ruby_lib/blob/c8f3041049c2feb9ac85f67e85523118a6ce5a84/lib/appium_lib/android/helper.rb#L445) android
|
338
|
+
##### [current_app](https://github.com/appium/ruby_lib/blob/1e0f36e22833246873b6ecb8cc4d2bf3544de2c8/lib/appium_lib/android/helper.rb#L417) android
|
395
339
|
|
396
340
|
> def current_app
|
397
341
|
|
@@ -400,7 +344,7 @@ Works on local host only (not remote).
|
|
400
344
|
|
401
345
|
--
|
402
346
|
|
403
|
-
##### [alert_click](https://github.com/appium/ruby_lib/blob/
|
347
|
+
##### [alert_click](https://github.com/appium/ruby_lib/blob/1e0f36e22833246873b6ecb8cc4d2bf3544de2c8/lib/appium_lib/android/element/alert.rb#L6) android
|
404
348
|
|
405
349
|
> def alert_click value
|
406
350
|
|
@@ -416,7 +360,7 @@ __Returns:__
|
|
416
360
|
|
417
361
|
--
|
418
362
|
|
419
|
-
##### [alert_accept](https://github.com/appium/ruby_lib/blob/
|
363
|
+
##### [alert_accept](https://github.com/appium/ruby_lib/blob/1e0f36e22833246873b6ecb8cc4d2bf3544de2c8/lib/appium_lib/android/element/alert.rb#L13) android
|
420
364
|
|
421
365
|
> def alert_accept
|
422
366
|
|
@@ -429,7 +373,7 @@ __Returns:__
|
|
429
373
|
|
430
374
|
--
|
431
375
|
|
432
|
-
##### [alert_accept_text](https://github.com/appium/ruby_lib/blob/
|
376
|
+
##### [alert_accept_text](https://github.com/appium/ruby_lib/blob/1e0f36e22833246873b6ecb8cc4d2bf3544de2c8/lib/appium_lib/android/element/alert.rb#L20) android
|
433
377
|
|
434
378
|
> def alert_accept_text
|
435
379
|
|
@@ -442,7 +386,7 @@ __Returns:__
|
|
442
386
|
|
443
387
|
--
|
444
388
|
|
445
|
-
##### [alert_dismiss](https://github.com/appium/ruby_lib/blob/
|
389
|
+
##### [alert_dismiss](https://github.com/appium/ruby_lib/blob/1e0f36e22833246873b6ecb8cc4d2bf3544de2c8/lib/appium_lib/android/element/alert.rb#L27) android
|
446
390
|
|
447
391
|
> def alert_dismiss
|
448
392
|
|
@@ -455,7 +399,7 @@ __Returns:__
|
|
455
399
|
|
456
400
|
--
|
457
401
|
|
458
|
-
##### [alert_dismiss_text](https://github.com/appium/ruby_lib/blob/
|
402
|
+
##### [alert_dismiss_text](https://github.com/appium/ruby_lib/blob/1e0f36e22833246873b6ecb8cc4d2bf3544de2c8/lib/appium_lib/android/element/alert.rb#L34) android
|
459
403
|
|
460
404
|
> def alert_dismiss_text
|
461
405
|
|
@@ -468,7 +412,7 @@ __Returns:__
|
|
468
412
|
|
469
413
|
--
|
470
414
|
|
471
|
-
##### [find](https://github.com/appium/ruby_lib/blob/
|
415
|
+
##### [find](https://github.com/appium/ruby_lib/blob/1e0f36e22833246873b6ecb8cc4d2bf3544de2c8/lib/appium_lib/android/element/generic.rb#L44) android
|
472
416
|
|
473
417
|
> def find val
|
474
418
|
|
@@ -485,7 +429,7 @@ __Returns:__
|
|
485
429
|
|
486
430
|
--
|
487
431
|
|
488
|
-
##### [text](https://github.com/appium/ruby_lib/blob/
|
432
|
+
##### [text](https://github.com/appium/ruby_lib/blob/1e0f36e22833246873b6ecb8cc4d2bf3544de2c8/lib/appium_lib/android/element/generic.rb#L70) android
|
489
433
|
|
490
434
|
> def text text
|
491
435
|
|
@@ -501,7 +445,7 @@ __Returns:__
|
|
501
445
|
|
502
446
|
--
|
503
447
|
|
504
|
-
##### [texts](https://github.com/appium/ruby_lib/blob/
|
448
|
+
##### [texts](https://github.com/appium/ruby_lib/blob/1e0f36e22833246873b6ecb8cc4d2bf3544de2c8/lib/appium_lib/android/element/generic.rb#L79) android
|
505
449
|
|
506
450
|
> def texts text
|
507
451
|
|
@@ -517,7 +461,7 @@ __Returns:__
|
|
517
461
|
|
518
462
|
--
|
519
463
|
|
520
|
-
##### [name](https://github.com/appium/ruby_lib/blob/
|
464
|
+
##### [name](https://github.com/appium/ruby_lib/blob/1e0f36e22833246873b6ecb8cc4d2bf3544de2c8/lib/appium_lib/android/element/generic.rb#L88) android
|
521
465
|
|
522
466
|
> def name name
|
523
467
|
|
@@ -535,7 +479,7 @@ __Returns:__
|
|
535
479
|
|
536
480
|
--
|
537
481
|
|
538
|
-
##### [names](https://github.com/appium/ruby_lib/blob/
|
482
|
+
##### [names](https://github.com/appium/ruby_lib/blob/1e0f36e22833246873b6ecb8cc4d2bf3544de2c8/lib/appium_lib/android/element/generic.rb#L99) android
|
539
483
|
|
540
484
|
> def names name
|
541
485
|
|
@@ -553,7 +497,7 @@ __Returns:__
|
|
553
497
|
|
554
498
|
--
|
555
499
|
|
556
|
-
##### [scroll_to](https://github.com/appium/ruby_lib/blob/
|
500
|
+
##### [scroll_to](https://github.com/appium/ruby_lib/blob/1e0f36e22833246873b6ecb8cc4d2bf3544de2c8/lib/appium_lib/android/element/generic.rb#L108) android
|
557
501
|
|
558
502
|
> def scroll_to text
|
559
503
|
|
@@ -569,7 +513,7 @@ __Returns:__
|
|
569
513
|
|
570
514
|
--
|
571
515
|
|
572
|
-
##### [textfields](https://github.com/appium/ruby_lib/blob/
|
516
|
+
##### [textfields](https://github.com/appium/ruby_lib/blob/1e0f36e22833246873b6ecb8cc4d2bf3544de2c8/lib/appium_lib/android/element/textfield.rb#L7) android
|
573
517
|
|
574
518
|
> def textfields
|
575
519
|
|
@@ -581,7 +525,7 @@ __Returns:__
|
|
581
525
|
|
582
526
|
--
|
583
527
|
|
584
|
-
##### [e_textfields](https://github.com/appium/ruby_lib/blob/
|
528
|
+
##### [e_textfields](https://github.com/appium/ruby_lib/blob/1e0f36e22833246873b6ecb8cc4d2bf3544de2c8/lib/appium_lib/android/element/textfield.rb#L13) android
|
585
529
|
|
586
530
|
> def e_textfields
|
587
531
|
|
@@ -593,7 +537,7 @@ __Returns:__
|
|
593
537
|
|
594
538
|
--
|
595
539
|
|
596
|
-
##### [first_textfield](https://github.com/appium/ruby_lib/blob/
|
540
|
+
##### [first_textfield](https://github.com/appium/ruby_lib/blob/1e0f36e22833246873b6ecb8cc4d2bf3544de2c8/lib/appium_lib/android/element/textfield.rb#L19) android
|
597
541
|
|
598
542
|
> def first_textfield
|
599
543
|
|
@@ -605,7 +549,7 @@ __Returns:__
|
|
605
549
|
|
606
550
|
--
|
607
551
|
|
608
|
-
##### [last_textfield](https://github.com/appium/ruby_lib/blob/
|
552
|
+
##### [last_textfield](https://github.com/appium/ruby_lib/blob/1e0f36e22833246873b6ecb8cc4d2bf3544de2c8/lib/appium_lib/android/element/textfield.rb#L25) android
|
609
553
|
|
610
554
|
> def last_textfield
|
611
555
|
|
@@ -617,7 +561,7 @@ __Returns:__
|
|
617
561
|
|
618
562
|
--
|
619
563
|
|
620
|
-
##### [textfield](https://github.com/appium/ruby_lib/blob/
|
564
|
+
##### [textfield](https://github.com/appium/ruby_lib/blob/1e0f36e22833246873b6ecb8cc4d2bf3544de2c8/lib/appium_lib/android/element/textfield.rb#L32) android
|
621
565
|
|
622
566
|
> def textfield text
|
623
567
|
|
@@ -633,7 +577,7 @@ __Returns:__
|
|
633
577
|
|
634
578
|
--
|
635
579
|
|
636
|
-
##### [textfield_exact](https://github.com/appium/ruby_lib/blob/
|
580
|
+
##### [textfield_exact](https://github.com/appium/ruby_lib/blob/1e0f36e22833246873b6ecb8cc4d2bf3544de2c8/lib/appium_lib/android/element/textfield.rb#L45) android
|
637
581
|
|
638
582
|
> def textfield_exact text
|
639
583
|
|
@@ -649,7 +593,7 @@ __Returns:__
|
|
649
593
|
|
650
594
|
--
|
651
595
|
|
652
|
-
##### [wait](https://github.com/appium/ruby_lib/blob/
|
596
|
+
##### [wait](https://github.com/appium/ruby_lib/blob/1e0f36e22833246873b6ecb8cc4d2bf3544de2c8/lib/appium_lib/common/helper.rb#L33)
|
653
597
|
|
654
598
|
> def wait max_wait=30, interval=0.5, &block
|
655
599
|
|
@@ -676,7 +620,7 @@ __Returns:__
|
|
676
620
|
|
677
621
|
--
|
678
622
|
|
679
|
-
##### [ignore](https://github.com/appium/ruby_lib/blob/
|
623
|
+
##### [ignore](https://github.com/appium/ruby_lib/blob/1e0f36e22833246873b6ecb8cc4d2bf3544de2c8/lib/appium_lib/common/helper.rb#L45)
|
680
624
|
|
681
625
|
> def ignore &block
|
682
626
|
|
@@ -684,7 +628,7 @@ Return block.call and ignore any exceptions.
|
|
684
628
|
|
685
629
|
--
|
686
630
|
|
687
|
-
##### [wait_true](https://github.com/appium/ruby_lib/blob/
|
631
|
+
##### [wait_true](https://github.com/appium/ruby_lib/blob/1e0f36e22833246873b6ecb8cc4d2bf3544de2c8/lib/appium_lib/common/helper.rb#L55)
|
688
632
|
|
689
633
|
> def wait_true max_wait=30, interval=0.5, &block
|
690
634
|
|
@@ -705,7 +649,7 @@ __Returns:__
|
|
705
649
|
|
706
650
|
--
|
707
651
|
|
708
|
-
##### [id](https://github.com/appium/ruby_lib/blob/
|
652
|
+
##### [id](https://github.com/appium/ruby_lib/blob/1e0f36e22833246873b6ecb8cc4d2bf3544de2c8/lib/appium_lib/common/helper.rb#L69)
|
709
653
|
|
710
654
|
> def id id
|
711
655
|
|
@@ -721,7 +665,7 @@ __Returns:__
|
|
721
665
|
|
722
666
|
--
|
723
667
|
|
724
|
-
##### [back](https://github.com/appium/ruby_lib/blob/
|
668
|
+
##### [back](https://github.com/appium/ruby_lib/blob/1e0f36e22833246873b6ecb8cc4d2bf3544de2c8/lib/appium_lib/common/helper.rb#L75)
|
725
669
|
|
726
670
|
> def back
|
727
671
|
|
@@ -733,7 +677,7 @@ __Returns:__
|
|
733
677
|
|
734
678
|
--
|
735
679
|
|
736
|
-
##### [session_id](https://github.com/appium/ruby_lib/blob/
|
680
|
+
##### [session_id](https://github.com/appium/ruby_lib/blob/1e0f36e22833246873b6ecb8cc4d2bf3544de2c8/lib/appium_lib/common/helper.rb#L80)
|
737
681
|
|
738
682
|
> def session_id
|
739
683
|
|
@@ -741,7 +685,7 @@ For Sauce Labs reporting. Returns the current session id.
|
|
741
685
|
|
742
686
|
--
|
743
687
|
|
744
|
-
##### [xpath](https://github.com/appium/ruby_lib/blob/
|
688
|
+
##### [xpath](https://github.com/appium/ruby_lib/blob/1e0f36e22833246873b6ecb8cc4d2bf3544de2c8/lib/appium_lib/common/helper.rb#L88)
|
745
689
|
|
746
690
|
> def xpath xpath_str
|
747
691
|
|
@@ -757,7 +701,7 @@ __Returns:__
|
|
757
701
|
|
758
702
|
--
|
759
703
|
|
760
|
-
##### [xpaths](https://github.com/appium/ruby_lib/blob/
|
704
|
+
##### [xpaths](https://github.com/appium/ruby_lib/blob/1e0f36e22833246873b6ecb8cc4d2bf3544de2c8/lib/appium_lib/common/helper.rb#L96)
|
761
705
|
|
762
706
|
> def xpaths xpath_str
|
763
707
|
|
@@ -773,7 +717,7 @@ __Returns:__
|
|
773
717
|
|
774
718
|
--
|
775
719
|
|
776
|
-
##### [ele_index](https://github.com/appium/ruby_lib/blob/
|
720
|
+
##### [ele_index](https://github.com/appium/ruby_lib/blob/1e0f36e22833246873b6ecb8cc4d2bf3544de2c8/lib/appium_lib/common/helper.rb#L104)
|
777
721
|
|
778
722
|
> def ele_index tag_name, index
|
779
723
|
|
@@ -791,7 +735,7 @@ __Returns:__
|
|
791
735
|
|
792
736
|
--
|
793
737
|
|
794
|
-
##### [find_eles](https://github.com/appium/ruby_lib/blob/
|
738
|
+
##### [find_eles](https://github.com/appium/ruby_lib/blob/1e0f36e22833246873b6ecb8cc4d2bf3544de2c8/lib/appium_lib/common/helper.rb#L112)
|
795
739
|
|
796
740
|
> def find_eles tag_name
|
797
741
|
|
@@ -807,7 +751,7 @@ __Returns:__
|
|
807
751
|
|
808
752
|
--
|
809
753
|
|
810
|
-
##### [find_ele_by_text](https://github.com/appium/ruby_lib/blob/
|
754
|
+
##### [find_ele_by_text](https://github.com/appium/ruby_lib/blob/1e0f36e22833246873b6ecb8cc4d2bf3544de2c8/lib/appium_lib/common/helper.rb#L120)
|
811
755
|
|
812
756
|
> def find_ele_by_text tag, text
|
813
757
|
|
@@ -825,7 +769,7 @@ __Returns:__
|
|
825
769
|
|
826
770
|
--
|
827
771
|
|
828
|
-
##### [find_eles_by_text](https://github.com/appium/ruby_lib/blob/
|
772
|
+
##### [find_eles_by_text](https://github.com/appium/ruby_lib/blob/1e0f36e22833246873b6ecb8cc4d2bf3544de2c8/lib/appium_lib/common/helper.rb#L128)
|
829
773
|
|
830
774
|
> def find_eles_by_text tag, text
|
831
775
|
|
@@ -843,7 +787,7 @@ __Returns:__
|
|
843
787
|
|
844
788
|
--
|
845
789
|
|
846
|
-
##### [find_ele_by_attr_include](https://github.com/appium/ruby_lib/blob/
|
790
|
+
##### [find_ele_by_attr_include](https://github.com/appium/ruby_lib/blob/1e0f36e22833246873b6ecb8cc4d2bf3544de2c8/lib/appium_lib/common/helper.rb#L137)
|
847
791
|
|
848
792
|
> def find_ele_by_attr_include tag, attr, value
|
849
793
|
|
@@ -863,7 +807,7 @@ __Returns:__
|
|
863
807
|
|
864
808
|
--
|
865
809
|
|
866
|
-
##### [find_eles_by_attr_include](https://github.com/appium/ruby_lib/blob/
|
810
|
+
##### [find_eles_by_attr_include](https://github.com/appium/ruby_lib/blob/1e0f36e22833246873b6ecb8cc4d2bf3544de2c8/lib/appium_lib/common/helper.rb#L146)
|
867
811
|
|
868
812
|
> def find_eles_by_attr_include tag, attr, value
|
869
813
|
|
@@ -883,7 +827,7 @@ __Returns:__
|
|
883
827
|
|
884
828
|
--
|
885
829
|
|
886
|
-
##### [find_ele_by_text_include](https://github.com/appium/ruby_lib/blob/
|
830
|
+
##### [find_ele_by_text_include](https://github.com/appium/ruby_lib/blob/1e0f36e22833246873b6ecb8cc4d2bf3544de2c8/lib/appium_lib/common/helper.rb#L155)
|
887
831
|
|
888
832
|
> def find_ele_by_text_include tag, text
|
889
833
|
|
@@ -902,7 +846,7 @@ __Returns:__
|
|
902
846
|
|
903
847
|
--
|
904
848
|
|
905
|
-
##### [find_eles_by_text_include](https://github.com/appium/ruby_lib/blob/
|
849
|
+
##### [find_eles_by_text_include](https://github.com/appium/ruby_lib/blob/1e0f36e22833246873b6ecb8cc4d2bf3544de2c8/lib/appium_lib/common/helper.rb#L164)
|
906
850
|
|
907
851
|
> def find_eles_by_text_include tag, text
|
908
852
|
|
@@ -921,7 +865,7 @@ __Returns:__
|
|
921
865
|
|
922
866
|
--
|
923
867
|
|
924
|
-
##### [first_ele](https://github.com/appium/ruby_lib/blob/
|
868
|
+
##### [first_ele](https://github.com/appium/ruby_lib/blob/1e0f36e22833246873b6ecb8cc4d2bf3544de2c8/lib/appium_lib/common/helper.rb#L171)
|
925
869
|
|
926
870
|
> def first_ele tag_name
|
927
871
|
|
@@ -937,7 +881,7 @@ __Returns:__
|
|
937
881
|
|
938
882
|
--
|
939
883
|
|
940
|
-
##### [last_ele](https://github.com/appium/ruby_lib/blob/
|
884
|
+
##### [last_ele](https://github.com/appium/ruby_lib/blob/1e0f36e22833246873b6ecb8cc4d2bf3544de2c8/lib/appium_lib/common/helper.rb#L179)
|
941
885
|
|
942
886
|
> def last_ele tag_name
|
943
887
|
|
@@ -953,7 +897,7 @@ __Returns:__
|
|
953
897
|
|
954
898
|
--
|
955
899
|
|
956
|
-
##### [source](https://github.com/appium/ruby_lib/blob/
|
900
|
+
##### [source](https://github.com/appium/ruby_lib/blob/1e0f36e22833246873b6ecb8cc4d2bf3544de2c8/lib/appium_lib/common/helper.rb#L185)
|
957
901
|
|
958
902
|
> def source
|
959
903
|
|
@@ -965,7 +909,7 @@ __Returns:__
|
|
965
909
|
|
966
910
|
--
|
967
911
|
|
968
|
-
##### [get_source](https://github.com/appium/ruby_lib/blob/
|
912
|
+
##### [get_source](https://github.com/appium/ruby_lib/blob/1e0f36e22833246873b6ecb8cc4d2bf3544de2c8/lib/appium_lib/common/helper.rb#L191)
|
969
913
|
|
970
914
|
> def get_source
|
971
915
|
|
@@ -977,7 +921,7 @@ __Returns:__
|
|
977
921
|
|
978
922
|
--
|
979
923
|
|
980
|
-
##### [find_name](https://github.com/appium/ruby_lib/blob/
|
924
|
+
##### [find_name](https://github.com/appium/ruby_lib/blob/1e0f36e22833246873b6ecb8cc4d2bf3544de2c8/lib/appium_lib/common/helper.rb#L200)
|
981
925
|
|
982
926
|
> def find_name name
|
983
927
|
|
@@ -993,7 +937,7 @@ __Returns:__
|
|
993
937
|
|
994
938
|
--
|
995
939
|
|
996
|
-
##### [find_names](https://github.com/appium/ruby_lib/blob/
|
940
|
+
##### [find_names](https://github.com/appium/ruby_lib/blob/1e0f36e22833246873b6ecb8cc4d2bf3544de2c8/lib/appium_lib/common/helper.rb#L208)
|
997
941
|
|
998
942
|
> def find_names name
|
999
943
|
|
@@ -1009,7 +953,7 @@ __Returns:__
|
|
1009
953
|
|
1010
954
|
--
|
1011
955
|
|
1012
|
-
##### [tag](https://github.com/appium/ruby_lib/blob/
|
956
|
+
##### [tag](https://github.com/appium/ruby_lib/blob/1e0f36e22833246873b6ecb8cc4d2bf3544de2c8/lib/appium_lib/common/helper.rb#L216)
|
1013
957
|
|
1014
958
|
> def tag tag_name
|
1015
959
|
|
@@ -1025,7 +969,7 @@ __Returns:__
|
|
1025
969
|
|
1026
970
|
--
|
1027
971
|
|
1028
|
-
##### [px_to_window_rel](https://github.com/appium/ruby_lib/blob/
|
972
|
+
##### [px_to_window_rel](https://github.com/appium/ruby_lib/blob/1e0f36e22833246873b6ecb8cc4d2bf3544de2c8/lib/appium_lib/common/helper.rb#L226)
|
1029
973
|
|
1030
974
|
> def px_to_window_rel opts={}
|
1031
975
|
|
@@ -1037,7 +981,63 @@ px_to_window_rel x: 50, y: 150
|
|
1037
981
|
|
1038
982
|
--
|
1039
983
|
|
1040
|
-
##### [
|
984
|
+
##### [lazy_load_strings](https://github.com/appium/ruby_lib/blob/1e0f36e22833246873b6ecb8cc4d2bf3544de2c8/lib/appium_lib/common/helper.rb#L236)
|
985
|
+
|
986
|
+
> def lazy_load_strings
|
987
|
+
|
988
|
+
|
989
|
+
|
990
|
+
--
|
991
|
+
|
992
|
+
##### [xml_keys](https://github.com/appium/ruby_lib/blob/1e0f36e22833246873b6ecb8cc4d2bf3544de2c8/lib/appium_lib/common/helper.rb#L243)
|
993
|
+
|
994
|
+
> def xml_keys target
|
995
|
+
|
996
|
+
Search strings.xml's values for target.
|
997
|
+
|
998
|
+
__Parameters:__
|
999
|
+
|
1000
|
+
[String] target - the target to search for in strings.xml values
|
1001
|
+
|
1002
|
+
__Returns:__
|
1003
|
+
|
1004
|
+
[Array]
|
1005
|
+
|
1006
|
+
--
|
1007
|
+
|
1008
|
+
##### [xml_values](https://github.com/appium/ruby_lib/blob/1e0f36e22833246873b6ecb8cc4d2bf3544de2c8/lib/appium_lib/common/helper.rb#L251)
|
1009
|
+
|
1010
|
+
> def xml_values target
|
1011
|
+
|
1012
|
+
Search strings.xml's keys for target.
|
1013
|
+
|
1014
|
+
__Parameters:__
|
1015
|
+
|
1016
|
+
[String] target - the target to search for in strings.xml keys
|
1017
|
+
|
1018
|
+
__Returns:__
|
1019
|
+
|
1020
|
+
[Array]
|
1021
|
+
|
1022
|
+
--
|
1023
|
+
|
1024
|
+
##### [resolve_id](https://github.com/appium/ruby_lib/blob/1e0f36e22833246873b6ecb8cc4d2bf3544de2c8/lib/appium_lib/common/helper.rb#L259)
|
1025
|
+
|
1026
|
+
> def resolve_id id
|
1027
|
+
|
1028
|
+
Resolve id in strings.xml and return the value.
|
1029
|
+
|
1030
|
+
__Parameters:__
|
1031
|
+
|
1032
|
+
[String] id - the id to resolve
|
1033
|
+
|
1034
|
+
__Returns:__
|
1035
|
+
|
1036
|
+
[String]
|
1037
|
+
|
1038
|
+
--
|
1039
|
+
|
1040
|
+
##### [value](https://github.com/appium/ruby_lib/blob/1e0f36e22833246873b6ecb8cc4d2bf3544de2c8/lib/appium_lib/common/patch.rb#L32)
|
1041
1041
|
|
1042
1042
|
> def value
|
1043
1043
|
|
@@ -1047,7 +1047,7 @@ Fixes NoMethodError: undefined method `value' for Selenium::WebDriver::Element
|
|
1047
1047
|
|
1048
1048
|
--
|
1049
1049
|
|
1050
|
-
##### [name](https://github.com/appium/ruby_lib/blob/
|
1050
|
+
##### [name](https://github.com/appium/ruby_lib/blob/1e0f36e22833246873b6ecb8cc4d2bf3544de2c8/lib/appium_lib/common/patch.rb#L39)
|
1051
1051
|
|
1052
1052
|
> def name
|
1053
1053
|
|
@@ -1057,7 +1057,7 @@ Fixes NoMethodError: undefined method `name' for Selenium::WebDriver::Element
|
|
1057
1057
|
|
1058
1058
|
--
|
1059
1059
|
|
1060
|
-
##### [tag_name](https://github.com/appium/ruby_lib/blob/
|
1060
|
+
##### [tag_name](https://github.com/appium/ruby_lib/blob/1e0f36e22833246873b6ecb8cc4d2bf3544de2c8/lib/appium_lib/common/patch.rb#L46)
|
1061
1061
|
|
1062
1062
|
> def tag_name
|
1063
1063
|
|
@@ -1067,7 +1067,7 @@ Fixes Selenium::WebDriver::Error::UnknownError: Not yet implemented
|
|
1067
1067
|
|
1068
1068
|
--
|
1069
1069
|
|
1070
|
-
##### [location_rel](https://github.com/appium/ruby_lib/blob/
|
1070
|
+
##### [location_rel](https://github.com/appium/ruby_lib/blob/1e0f36e22833246873b6ecb8cc4d2bf3544de2c8/lib/appium_lib/common/patch.rb#L58)
|
1071
1071
|
|
1072
1072
|
> def location_rel
|
1073
1073
|
|
@@ -1085,7 +1085,7 @@ __Returns:__
|
|
1085
1085
|
|
1086
1086
|
--
|
1087
1087
|
|
1088
|
-
##### [CORE](https://github.com/appium/ruby_lib/blob/
|
1088
|
+
##### [CORE](https://github.com/appium/ruby_lib/blob/1e0f36e22833246873b6ecb8cc4d2bf3544de2c8/lib/appium_lib/driver.rb#L16)
|
1089
1089
|
|
1090
1090
|
> CORE = [ :array, :hash, :class, :file, :dir, :bigdecimal, :rational, :struct, :openstruct, :method, :unboundmethod ]
|
1091
1091
|
|
@@ -1093,7 +1093,7 @@ __Returns:__
|
|
1093
1093
|
|
1094
1094
|
--
|
1095
1095
|
|
1096
|
-
##### [awesome_openstruct](https://github.com/appium/ruby_lib/blob/
|
1096
|
+
##### [awesome_openstruct](https://github.com/appium/ruby_lib/blob/1e0f36e22833246873b6ecb8cc4d2bf3544de2c8/lib/appium_lib/driver.rb#L18)
|
1097
1097
|
|
1098
1098
|
> def awesome_openstruct target
|
1099
1099
|
|
@@ -1101,7 +1101,7 @@ __Returns:__
|
|
1101
1101
|
|
1102
1102
|
--
|
1103
1103
|
|
1104
|
-
##### [load_appium_txt](https://github.com/appium/ruby_lib/blob/
|
1104
|
+
##### [load_appium_txt](https://github.com/appium/ruby_lib/blob/1e0f36e22833246873b6ecb8cc4d2bf3544de2c8/lib/appium_lib/driver.rb#L28)
|
1105
1105
|
|
1106
1106
|
> def load_appium_txt opts
|
1107
1107
|
|
@@ -1118,7 +1118,7 @@ __Returns:__
|
|
1118
1118
|
|
1119
1119
|
--
|
1120
1120
|
|
1121
|
-
##### [promote_appium_methods](https://github.com/appium/ruby_lib/blob/
|
1121
|
+
##### [promote_appium_methods](https://github.com/appium/ruby_lib/blob/1e0f36e22833246873b6ecb8cc4d2bf3544de2c8/lib/appium_lib/driver.rb#L165)
|
1122
1122
|
|
1123
1123
|
> def self.promote_appium_methods class_array
|
1124
1124
|
|
@@ -1136,7 +1136,7 @@ __Parameters:__
|
|
1136
1136
|
|
1137
1137
|
--
|
1138
1138
|
|
1139
|
-
##### [default_wait](https://github.com/appium/ruby_lib/blob/
|
1139
|
+
##### [default_wait](https://github.com/appium/ruby_lib/blob/1e0f36e22833246873b6ecb8cc4d2bf3544de2c8/lib/appium_lib/driver.rb#L494)
|
1140
1140
|
|
1141
1141
|
> def default_wait
|
1142
1142
|
|
@@ -1149,7 +1149,7 @@ __Returns:__
|
|
1149
1149
|
|
1150
1150
|
--
|
1151
1151
|
|
1152
|
-
##### [app_path](https://github.com/appium/ruby_lib/blob/
|
1152
|
+
##### [app_path](https://github.com/appium/ruby_lib/blob/1e0f36e22833246873b6ecb8cc4d2bf3544de2c8/lib/appium_lib/driver.rb#L194)
|
1153
1153
|
|
1154
1154
|
> def app_path
|
1155
1155
|
|
@@ -1157,7 +1157,7 @@ Returns the value of attribute app_path
|
|
1157
1157
|
|
1158
1158
|
--
|
1159
1159
|
|
1160
|
-
##### [app_name](https://github.com/appium/ruby_lib/blob/
|
1160
|
+
##### [app_name](https://github.com/appium/ruby_lib/blob/1e0f36e22833246873b6ecb8cc4d2bf3544de2c8/lib/appium_lib/driver.rb#L194)
|
1161
1161
|
|
1162
1162
|
> def app_name
|
1163
1163
|
|
@@ -1165,7 +1165,7 @@ Returns the value of attribute app_name
|
|
1165
1165
|
|
1166
1166
|
--
|
1167
1167
|
|
1168
|
-
##### [device](https://github.com/appium/ruby_lib/blob/
|
1168
|
+
##### [device](https://github.com/appium/ruby_lib/blob/1e0f36e22833246873b6ecb8cc4d2bf3544de2c8/lib/appium_lib/driver.rb#L194)
|
1169
1169
|
|
1170
1170
|
> def device
|
1171
1171
|
|
@@ -1173,7 +1173,7 @@ Returns the value of attribute device
|
|
1173
1173
|
|
1174
1174
|
--
|
1175
1175
|
|
1176
|
-
##### [app_package](https://github.com/appium/ruby_lib/blob/
|
1176
|
+
##### [app_package](https://github.com/appium/ruby_lib/blob/1e0f36e22833246873b6ecb8cc4d2bf3544de2c8/lib/appium_lib/driver.rb#L194)
|
1177
1177
|
|
1178
1178
|
> def app_package
|
1179
1179
|
|
@@ -1181,7 +1181,7 @@ Returns the value of attribute app_package
|
|
1181
1181
|
|
1182
1182
|
--
|
1183
1183
|
|
1184
|
-
##### [app_activity](https://github.com/appium/ruby_lib/blob/
|
1184
|
+
##### [app_activity](https://github.com/appium/ruby_lib/blob/1e0f36e22833246873b6ecb8cc4d2bf3544de2c8/lib/appium_lib/driver.rb#L194)
|
1185
1185
|
|
1186
1186
|
> def app_activity
|
1187
1187
|
|
@@ -1189,7 +1189,7 @@ Returns the value of attribute app_activity
|
|
1189
1189
|
|
1190
1190
|
--
|
1191
1191
|
|
1192
|
-
##### [app_wait_activity](https://github.com/appium/ruby_lib/blob/
|
1192
|
+
##### [app_wait_activity](https://github.com/appium/ruby_lib/blob/1e0f36e22833246873b6ecb8cc4d2bf3544de2c8/lib/appium_lib/driver.rb#L194)
|
1193
1193
|
|
1194
1194
|
> def app_wait_activity
|
1195
1195
|
|
@@ -1197,7 +1197,7 @@ Returns the value of attribute app_wait_activity
|
|
1197
1197
|
|
1198
1198
|
--
|
1199
1199
|
|
1200
|
-
##### [sauce_username](https://github.com/appium/ruby_lib/blob/
|
1200
|
+
##### [sauce_username](https://github.com/appium/ruby_lib/blob/1e0f36e22833246873b6ecb8cc4d2bf3544de2c8/lib/appium_lib/driver.rb#L194)
|
1201
1201
|
|
1202
1202
|
> def sauce_username
|
1203
1203
|
|
@@ -1205,7 +1205,7 @@ Returns the value of attribute sauce_username
|
|
1205
1205
|
|
1206
1206
|
--
|
1207
1207
|
|
1208
|
-
##### [sauce_access_key](https://github.com/appium/ruby_lib/blob/
|
1208
|
+
##### [sauce_access_key](https://github.com/appium/ruby_lib/blob/1e0f36e22833246873b6ecb8cc4d2bf3544de2c8/lib/appium_lib/driver.rb#L194)
|
1209
1209
|
|
1210
1210
|
> def sauce_access_key
|
1211
1211
|
|
@@ -1213,7 +1213,7 @@ Returns the value of attribute sauce_access_key
|
|
1213
1213
|
|
1214
1214
|
--
|
1215
1215
|
|
1216
|
-
##### [port](https://github.com/appium/ruby_lib/blob/
|
1216
|
+
##### [port](https://github.com/appium/ruby_lib/blob/1e0f36e22833246873b6ecb8cc4d2bf3544de2c8/lib/appium_lib/driver.rb#L194)
|
1217
1217
|
|
1218
1218
|
> def port
|
1219
1219
|
|
@@ -1221,7 +1221,7 @@ Returns the value of attribute port
|
|
1221
1221
|
|
1222
1222
|
--
|
1223
1223
|
|
1224
|
-
##### [debug](https://github.com/appium/ruby_lib/blob/
|
1224
|
+
##### [debug](https://github.com/appium/ruby_lib/blob/1e0f36e22833246873b6ecb8cc4d2bf3544de2c8/lib/appium_lib/driver.rb#L194)
|
1225
1225
|
|
1226
1226
|
> def debug
|
1227
1227
|
|
@@ -1229,7 +1229,7 @@ Returns the value of attribute debug
|
|
1229
1229
|
|
1230
1230
|
--
|
1231
1231
|
|
1232
|
-
##### [export_session](https://github.com/appium/ruby_lib/blob/
|
1232
|
+
##### [export_session](https://github.com/appium/ruby_lib/blob/1e0f36e22833246873b6ecb8cc4d2bf3544de2c8/lib/appium_lib/driver.rb#L194)
|
1233
1233
|
|
1234
1234
|
> def export_session
|
1235
1235
|
|
@@ -1237,7 +1237,7 @@ Returns the value of attribute export_session
|
|
1237
1237
|
|
1238
1238
|
--
|
1239
1239
|
|
1240
|
-
##### [device_cap](https://github.com/appium/ruby_lib/blob/
|
1240
|
+
##### [device_cap](https://github.com/appium/ruby_lib/blob/1e0f36e22833246873b6ecb8cc4d2bf3544de2c8/lib/appium_lib/driver.rb#L194)
|
1241
1241
|
|
1242
1242
|
> def device_cap
|
1243
1243
|
|
@@ -1245,7 +1245,7 @@ Returns the value of attribute device_cap
|
|
1245
1245
|
|
1246
1246
|
--
|
1247
1247
|
|
1248
|
-
##### [compress_xml](https://github.com/appium/ruby_lib/blob/
|
1248
|
+
##### [compress_xml](https://github.com/appium/ruby_lib/blob/1e0f36e22833246873b6ecb8cc4d2bf3544de2c8/lib/appium_lib/driver.rb#L194)
|
1249
1249
|
|
1250
1250
|
> def compress_xml
|
1251
1251
|
|
@@ -1253,7 +1253,15 @@ Returns the value of attribute compress_xml
|
|
1253
1253
|
|
1254
1254
|
--
|
1255
1255
|
|
1256
|
-
##### [
|
1256
|
+
##### [custom_url](https://github.com/appium/ruby_lib/blob/1e0f36e22833246873b6ecb8cc4d2bf3544de2c8/lib/appium_lib/driver.rb#L194)
|
1257
|
+
|
1258
|
+
> def custom_url
|
1259
|
+
|
1260
|
+
Returns the value of attribute custom_url
|
1261
|
+
|
1262
|
+
--
|
1263
|
+
|
1264
|
+
##### [global_webdriver_http_sleep](https://github.com/appium/ruby_lib/blob/1e0f36e22833246873b6ecb8cc4d2bf3544de2c8/lib/appium_lib/driver.rb#L200)
|
1257
1265
|
|
1258
1266
|
> def global_webdriver_http_sleep
|
1259
1267
|
|
@@ -1261,7 +1269,7 @@ The amount to sleep in seconds before every webdriver http call.
|
|
1261
1269
|
|
1262
1270
|
--
|
1263
1271
|
|
1264
|
-
##### [global_webdriver_http_sleep=](https://github.com/appium/ruby_lib/blob/
|
1272
|
+
##### [global_webdriver_http_sleep=](https://github.com/appium/ruby_lib/blob/1e0f36e22833246873b6ecb8cc4d2bf3544de2c8/lib/appium_lib/driver.rb#L200)
|
1265
1273
|
|
1266
1274
|
> def global_webdriver_http_sleep=(value)
|
1267
1275
|
|
@@ -1269,7 +1277,7 @@ The amount to sleep in seconds before every webdriver http call.
|
|
1269
1277
|
|
1270
1278
|
--
|
1271
1279
|
|
1272
|
-
##### [initialize](https://github.com/appium/ruby_lib/blob/
|
1280
|
+
##### [initialize](https://github.com/appium/ruby_lib/blob/1e0f36e22833246873b6ecb8cc4d2bf3544de2c8/lib/appium_lib/driver.rb#L230)
|
1273
1281
|
|
1274
1282
|
> def initialize opts={}
|
1275
1283
|
|
@@ -1310,7 +1318,7 @@ __Returns:__
|
|
1310
1318
|
|
1311
1319
|
--
|
1312
1320
|
|
1313
|
-
##### [status](https://github.com/appium/ruby_lib/blob/
|
1321
|
+
##### [status](https://github.com/appium/ruby_lib/blob/1e0f36e22833246873b6ecb8cc4d2bf3544de2c8/lib/appium_lib/driver.rb#L337)
|
1314
1322
|
|
1315
1323
|
> def status
|
1316
1324
|
|
@@ -1336,7 +1344,7 @@ __Returns:__
|
|
1336
1344
|
|
1337
1345
|
--
|
1338
1346
|
|
1339
|
-
##### [server_version](https://github.com/appium/ruby_lib/blob/
|
1347
|
+
##### [server_version](https://github.com/appium/ruby_lib/blob/1e0f36e22833246873b6ecb8cc4d2bf3544de2c8/lib/appium_lib/driver.rb#L343)
|
1340
1348
|
|
1341
1349
|
> def server_version
|
1342
1350
|
|
@@ -1348,7 +1356,7 @@ __Returns:__
|
|
1348
1356
|
|
1349
1357
|
--
|
1350
1358
|
|
1351
|
-
##### [absolute_app_path](https://github.com/appium/ruby_lib/blob/
|
1359
|
+
##### [absolute_app_path](https://github.com/appium/ruby_lib/blob/1e0f36e22833246873b6ecb8cc4d2bf3544de2c8/lib/appium_lib/driver.rb#L383)
|
1352
1360
|
|
1353
1361
|
> def absolute_app_path
|
1354
1362
|
|
@@ -1360,7 +1368,7 @@ __Returns:__
|
|
1360
1368
|
|
1361
1369
|
--
|
1362
1370
|
|
1363
|
-
##### [server_url](https://github.com/appium/ruby_lib/blob/
|
1371
|
+
##### [server_url](https://github.com/appium/ruby_lib/blob/1e0f36e22833246873b6ecb8cc4d2bf3544de2c8/lib/appium_lib/driver.rb#L403)
|
1364
1372
|
|
1365
1373
|
> def server_url
|
1366
1374
|
|
@@ -1372,7 +1380,7 @@ __Returns:__
|
|
1372
1380
|
|
1373
1381
|
--
|
1374
1382
|
|
1375
|
-
##### [restart](https://github.com/appium/ruby_lib/blob/
|
1383
|
+
##### [restart](https://github.com/appium/ruby_lib/blob/1e0f36e22833246873b6ecb8cc4d2bf3544de2c8/lib/appium_lib/driver.rb#L414)
|
1376
1384
|
|
1377
1385
|
> def restart
|
1378
1386
|
|
@@ -1384,7 +1392,7 @@ __Returns:__
|
|
1384
1392
|
|
1385
1393
|
--
|
1386
1394
|
|
1387
|
-
##### [driver](https://github.com/appium/ruby_lib/blob/
|
1395
|
+
##### [driver](https://github.com/appium/ruby_lib/blob/1e0f36e22833246873b6ecb8cc4d2bf3544de2c8/lib/appium_lib/driver.rb#L421)
|
1388
1396
|
|
1389
1397
|
> def driver
|
1390
1398
|
|
@@ -1396,7 +1404,7 @@ __Returns:__
|
|
1396
1404
|
|
1397
1405
|
--
|
1398
1406
|
|
1399
|
-
##### [screenshot](https://github.com/appium/ruby_lib/blob/
|
1407
|
+
##### [screenshot](https://github.com/appium/ruby_lib/blob/1e0f36e22833246873b6ecb8cc4d2bf3544de2c8/lib/appium_lib/driver.rb#L431)
|
1400
1408
|
|
1401
1409
|
> def screenshot png_save_path
|
1402
1410
|
|
@@ -1414,7 +1422,7 @@ __Returns:__
|
|
1414
1422
|
|
1415
1423
|
--
|
1416
1424
|
|
1417
|
-
##### [driver_quit](https://github.com/appium/ruby_lib/blob/
|
1425
|
+
##### [driver_quit](https://github.com/appium/ruby_lib/blob/1e0f36e22833246873b6ecb8cc4d2bf3544de2c8/lib/appium_lib/driver.rb#L438)
|
1418
1426
|
|
1419
1427
|
> def driver_quit
|
1420
1428
|
|
@@ -1426,7 +1434,7 @@ __Returns:__
|
|
1426
1434
|
|
1427
1435
|
--
|
1428
1436
|
|
1429
|
-
##### [start_driver](https://github.com/appium/ruby_lib/blob/
|
1437
|
+
##### [start_driver](https://github.com/appium/ruby_lib/blob/1e0f36e22833246873b6ecb8cc4d2bf3544de2c8/lib/appium_lib/driver.rb#L446)
|
1430
1438
|
|
1431
1439
|
> def start_driver
|
1432
1440
|
|
@@ -1438,7 +1446,7 @@ __Returns:__
|
|
1438
1446
|
|
1439
1447
|
--
|
1440
1448
|
|
1441
|
-
##### [no_wait](https://github.com/appium/ruby_lib/blob/
|
1449
|
+
##### [no_wait](https://github.com/appium/ruby_lib/blob/1e0f36e22833246873b6ecb8cc4d2bf3544de2c8/lib/appium_lib/driver.rb#L480)
|
1442
1450
|
|
1443
1451
|
> def no_wait
|
1444
1452
|
|
@@ -1446,7 +1454,7 @@ Set implicit wait to zero.
|
|
1446
1454
|
|
1447
1455
|
--
|
1448
1456
|
|
1449
|
-
##### [set_wait](https://github.com/appium/ruby_lib/blob/
|
1457
|
+
##### [set_wait](https://github.com/appium/ruby_lib/blob/1e0f36e22833246873b6ecb8cc4d2bf3544de2c8/lib/appium_lib/driver.rb#L487)
|
1450
1458
|
|
1451
1459
|
> def set_wait timeout=@default_wait
|
1452
1460
|
|
@@ -1462,7 +1470,7 @@ __Returns:__
|
|
1462
1470
|
|
1463
1471
|
--
|
1464
1472
|
|
1465
|
-
##### [exists](https://github.com/appium/ruby_lib/blob/
|
1473
|
+
##### [exists](https://github.com/appium/ruby_lib/blob/1e0f36e22833246873b6ecb8cc4d2bf3544de2c8/lib/appium_lib/driver.rb#L510)
|
1466
1474
|
|
1467
1475
|
> def exists pre_check=0, post_check=@default_wait, &search_block
|
1468
1476
|
|
@@ -1488,7 +1496,7 @@ __Returns:__
|
|
1488
1496
|
|
1489
1497
|
--
|
1490
1498
|
|
1491
|
-
##### [execute_script](https://github.com/appium/ruby_lib/blob/
|
1499
|
+
##### [execute_script](https://github.com/appium/ruby_lib/blob/1e0f36e22833246873b6ecb8cc4d2bf3544de2c8/lib/appium_lib/driver.rb#L532)
|
1492
1500
|
|
1493
1501
|
> def execute_script script, *args
|
1494
1502
|
|
@@ -1506,7 +1514,7 @@ __Returns:__
|
|
1506
1514
|
|
1507
1515
|
--
|
1508
1516
|
|
1509
|
-
##### [mobile](https://github.com/appium/ruby_lib/blob/
|
1517
|
+
##### [mobile](https://github.com/appium/ruby_lib/blob/1e0f36e22833246873b6ecb8cc4d2bf3544de2c8/lib/appium_lib/driver.rb#L548)
|
1510
1518
|
|
1511
1519
|
> def mobile method, *args
|
1512
1520
|
|
@@ -1532,7 +1540,7 @@ __Returns:__
|
|
1532
1540
|
|
1533
1541
|
--
|
1534
1542
|
|
1535
|
-
##### [find_elements](https://github.com/appium/ruby_lib/blob/
|
1543
|
+
##### [find_elements](https://github.com/appium/ruby_lib/blob/1e0f36e22833246873b6ecb8cc4d2bf3544de2c8/lib/appium_lib/driver.rb#L559)
|
1536
1544
|
|
1537
1545
|
> def find_elements *args
|
1538
1546
|
|
@@ -1548,7 +1556,7 @@ __Returns:__
|
|
1548
1556
|
|
1549
1557
|
--
|
1550
1558
|
|
1551
|
-
##### [find_element](https://github.com/appium/ruby_lib/blob/
|
1559
|
+
##### [find_element](https://github.com/appium/ruby_lib/blob/1e0f36e22833246873b6ecb8cc4d2bf3544de2c8/lib/appium_lib/driver.rb#L567)
|
1552
1560
|
|
1553
1561
|
> def find_element *args
|
1554
1562
|
|
@@ -1564,7 +1572,7 @@ __Returns:__
|
|
1564
1572
|
|
1565
1573
|
--
|
1566
1574
|
|
1567
|
-
##### [x](https://github.com/appium/ruby_lib/blob/
|
1575
|
+
##### [x](https://github.com/appium/ruby_lib/blob/1e0f36e22833246873b6ecb8cc4d2bf3544de2c8/lib/appium_lib/driver.rb#L574)
|
1568
1576
|
|
1569
1577
|
> def x
|
1570
1578
|
|