appium_lib 0.5.0 → 0.5.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +8 -8
- data/docs/android_docs.md +172 -128
- data/docs/ios_docs.md +160 -130
- data/lib/appium_lib/android/element/generic.rb +3 -1
- data/lib/appium_lib/common/version.rb +1 -1
- data/release_notes.md +20 -0
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,15 +1,15 @@
|
|
1
1
|
---
|
2
2
|
!binary "U0hBMQ==":
|
3
3
|
metadata.gz: !binary |-
|
4
|
-
|
4
|
+
N2I1NmNiZjA4NDc2YzQyYmJhZDI0NTQyMWRiNWFiOTMzMzIxMDI4NQ==
|
5
5
|
data.tar.gz: !binary |-
|
6
|
-
|
6
|
+
ZTFiM2NkZWRmYzczMDM0MWE5NDAyMGM2ZTdlMWQxNDEwMDkwMzg4Nw==
|
7
7
|
!binary "U0hBNTEy":
|
8
8
|
metadata.gz: !binary |-
|
9
|
-
|
10
|
-
|
11
|
-
|
9
|
+
N2FmYjE3YjdiYzk2NTNiMjg4MzYwM2M0OGQ5NDZkZmUxMTY2Zjc4NWUxMzg4
|
10
|
+
YWFiYzUzZGZhOTE2MzY4YzQyZjVkMjU0MDc4OWQ2MWE2NGU0ZGYwNWYwNzI3
|
11
|
+
NjljMTgwMDZmZTg1MjVlMjE1YWEwOGJlY2ZmYTcyYjk0MTVmMTE=
|
12
12
|
data.tar.gz: !binary |-
|
13
|
-
|
14
|
-
|
15
|
-
|
13
|
+
ZWEzN2UxOWY3MTg2ZDkwMDk5MDQ2YTU3ZDczYWU4M2YzYjUyYzhlMGQ5NjQz
|
14
|
+
ZjFmODc1MmRhYTJmNWM5N2Q4MTlmMmZlNWMxNWYyMTFiZWM3M2NiOTM5MjY5
|
15
|
+
Nzc0YmRkMzQ2NDQxMjVlZTJhNTRkZmM0ODk0MmExMTcxNDRhYjY=
|
data/docs/android_docs.md
CHANGED
@@ -1,4 +1,34 @@
|
|
1
|
-
##### [
|
1
|
+
##### [load_appium_txt](https://github.com/appium/ruby_lib/blob/de58f7164230d7551df8462d65d0e43a3d0cfdab/lib/appium_lib/driver.rb#L12)
|
2
|
+
|
3
|
+
> def load_appium_txt opts
|
4
|
+
|
5
|
+
Load appium.txt (toml format) into system ENV
|
6
|
+
the basedir of this file + appium.txt is what's used
|
7
|
+
|
8
|
+
__Parameters:__
|
9
|
+
|
10
|
+
[Hash] opts - file: '/path/to/appium.txt', verbose: true
|
11
|
+
|
12
|
+
__Returns:__
|
13
|
+
|
14
|
+
[nil]
|
15
|
+
|
16
|
+
--
|
17
|
+
|
18
|
+
##### [default_wait](https://github.com/appium/ruby_lib/blob/de58f7164230d7551df8462d65d0e43a3d0cfdab/lib/appium_lib/driver.rb#L344)
|
19
|
+
|
20
|
+
> def default_wait
|
21
|
+
|
22
|
+
Returns the default client side wait.
|
23
|
+
This value is independent of what the server is using
|
24
|
+
|
25
|
+
__Returns:__
|
26
|
+
|
27
|
+
[Integer]
|
28
|
+
|
29
|
+
--
|
30
|
+
|
31
|
+
##### [app_path](https://github.com/appium/ruby_lib/blob/de58f7164230d7551df8462d65d0e43a3d0cfdab/lib/appium_lib/driver.rb#L87)
|
2
32
|
|
3
33
|
> def app_path
|
4
34
|
|
@@ -6,7 +36,7 @@ Returns the value of attribute app_path
|
|
6
36
|
|
7
37
|
--
|
8
38
|
|
9
|
-
##### [app_name](https://github.com/appium/ruby_lib/blob/
|
39
|
+
##### [app_name](https://github.com/appium/ruby_lib/blob/de58f7164230d7551df8462d65d0e43a3d0cfdab/lib/appium_lib/driver.rb#L87)
|
10
40
|
|
11
41
|
> def app_name
|
12
42
|
|
@@ -14,7 +44,15 @@ Returns the value of attribute app_name
|
|
14
44
|
|
15
45
|
--
|
16
46
|
|
17
|
-
##### [
|
47
|
+
##### [selendroid](https://github.com/appium/ruby_lib/blob/de58f7164230d7551df8462d65d0e43a3d0cfdab/lib/appium_lib/driver.rb#L87)
|
48
|
+
|
49
|
+
> def selendroid
|
50
|
+
|
51
|
+
Returns the value of attribute selendroid
|
52
|
+
|
53
|
+
--
|
54
|
+
|
55
|
+
##### [app_package](https://github.com/appium/ruby_lib/blob/de58f7164230d7551df8462d65d0e43a3d0cfdab/lib/appium_lib/driver.rb#L87)
|
18
56
|
|
19
57
|
> def app_package
|
20
58
|
|
@@ -22,7 +60,7 @@ Returns the value of attribute app_package
|
|
22
60
|
|
23
61
|
--
|
24
62
|
|
25
|
-
##### [app_activity](https://github.com/appium/ruby_lib/blob/
|
63
|
+
##### [app_activity](https://github.com/appium/ruby_lib/blob/de58f7164230d7551df8462d65d0e43a3d0cfdab/lib/appium_lib/driver.rb#L87)
|
26
64
|
|
27
65
|
> def app_activity
|
28
66
|
|
@@ -30,7 +68,7 @@ Returns the value of attribute app_activity
|
|
30
68
|
|
31
69
|
--
|
32
70
|
|
33
|
-
##### [app_wait_activity](https://github.com/appium/ruby_lib/blob/
|
71
|
+
##### [app_wait_activity](https://github.com/appium/ruby_lib/blob/de58f7164230d7551df8462d65d0e43a3d0cfdab/lib/appium_lib/driver.rb#L87)
|
34
72
|
|
35
73
|
> def app_wait_activity
|
36
74
|
|
@@ -38,7 +76,7 @@ Returns the value of attribute app_wait_activity
|
|
38
76
|
|
39
77
|
--
|
40
78
|
|
41
|
-
##### [sauce_username](https://github.com/appium/ruby_lib/blob/
|
79
|
+
##### [sauce_username](https://github.com/appium/ruby_lib/blob/de58f7164230d7551df8462d65d0e43a3d0cfdab/lib/appium_lib/driver.rb#L87)
|
42
80
|
|
43
81
|
> def sauce_username
|
44
82
|
|
@@ -46,7 +84,7 @@ Returns the value of attribute sauce_username
|
|
46
84
|
|
47
85
|
--
|
48
86
|
|
49
|
-
##### [sauce_access_key](https://github.com/appium/ruby_lib/blob/
|
87
|
+
##### [sauce_access_key](https://github.com/appium/ruby_lib/blob/de58f7164230d7551df8462d65d0e43a3d0cfdab/lib/appium_lib/driver.rb#L87)
|
50
88
|
|
51
89
|
> def sauce_access_key
|
52
90
|
|
@@ -54,7 +92,7 @@ Returns the value of attribute sauce_access_key
|
|
54
92
|
|
55
93
|
--
|
56
94
|
|
57
|
-
##### [port](https://github.com/appium/ruby_lib/blob/
|
95
|
+
##### [port](https://github.com/appium/ruby_lib/blob/de58f7164230d7551df8462d65d0e43a3d0cfdab/lib/appium_lib/driver.rb#L87)
|
58
96
|
|
59
97
|
> def port
|
60
98
|
|
@@ -62,7 +100,7 @@ Returns the value of attribute port
|
|
62
100
|
|
63
101
|
--
|
64
102
|
|
65
|
-
##### [os](https://github.com/appium/ruby_lib/blob/
|
103
|
+
##### [os](https://github.com/appium/ruby_lib/blob/de58f7164230d7551df8462d65d0e43a3d0cfdab/lib/appium_lib/driver.rb#L87)
|
66
104
|
|
67
105
|
> def os
|
68
106
|
|
@@ -70,7 +108,7 @@ Returns the value of attribute os
|
|
70
108
|
|
71
109
|
--
|
72
110
|
|
73
|
-
##### [debug](https://github.com/appium/ruby_lib/blob/
|
111
|
+
##### [debug](https://github.com/appium/ruby_lib/blob/de58f7164230d7551df8462d65d0e43a3d0cfdab/lib/appium_lib/driver.rb#L87)
|
74
112
|
|
75
113
|
> def debug
|
76
114
|
|
@@ -78,9 +116,9 @@ Returns the value of attribute debug
|
|
78
116
|
|
79
117
|
--
|
80
118
|
|
81
|
-
##### [initialize](https://github.com/appium/ruby_lib/blob/
|
119
|
+
##### [initialize](https://github.com/appium/ruby_lib/blob/de58f7164230d7551df8462d65d0e43a3d0cfdab/lib/appium_lib/driver.rb#L117)
|
82
120
|
|
83
|
-
> def initialize
|
121
|
+
> def initialize opts={}
|
84
122
|
|
85
123
|
Creates a new driver.
|
86
124
|
|
@@ -109,7 +147,7 @@ Appium::Driver.new(apk).start_driver
|
|
109
147
|
|
110
148
|
__Parameters:__
|
111
149
|
|
112
|
-
[Object]
|
150
|
+
[Object] opts - A hash containing various options.
|
113
151
|
|
114
152
|
__Returns:__
|
115
153
|
|
@@ -117,7 +155,7 @@ __Returns:__
|
|
117
155
|
|
118
156
|
--
|
119
157
|
|
120
|
-
##### [status](https://github.com/appium/ruby_lib/blob/
|
158
|
+
##### [status](https://github.com/appium/ruby_lib/blob/de58f7164230d7551df8462d65d0e43a3d0cfdab/lib/appium_lib/driver.rb#L204)
|
121
159
|
|
122
160
|
> def status
|
123
161
|
|
@@ -125,7 +163,7 @@ Returns the status payload
|
|
125
163
|
|
126
164
|
--
|
127
165
|
|
128
|
-
##### [server_version](https://github.com/appium/ruby_lib/blob/
|
166
|
+
##### [server_version](https://github.com/appium/ruby_lib/blob/de58f7164230d7551df8462d65d0e43a3d0cfdab/lib/appium_lib/driver.rb#L210)
|
129
167
|
|
130
168
|
> def server_version
|
131
169
|
|
@@ -137,7 +175,7 @@ __Returns:__
|
|
137
175
|
|
138
176
|
--
|
139
177
|
|
140
|
-
##### [absolute_app_path](https://github.com/appium/ruby_lib/blob/
|
178
|
+
##### [absolute_app_path](https://github.com/appium/ruby_lib/blob/de58f7164230d7551df8462d65d0e43a3d0cfdab/lib/appium_lib/driver.rb#L251)
|
141
179
|
|
142
180
|
> def absolute_app_path
|
143
181
|
|
@@ -149,7 +187,7 @@ __Returns:__
|
|
149
187
|
|
150
188
|
--
|
151
189
|
|
152
|
-
##### [server_url](https://github.com/appium/ruby_lib/blob/
|
190
|
+
##### [server_url](https://github.com/appium/ruby_lib/blob/de58f7164230d7551df8462d65d0e43a3d0cfdab/lib/appium_lib/driver.rb#L265)
|
153
191
|
|
154
192
|
> def server_url
|
155
193
|
|
@@ -161,7 +199,7 @@ __Returns:__
|
|
161
199
|
|
162
200
|
--
|
163
201
|
|
164
|
-
##### [restart](https://github.com/appium/ruby_lib/blob/
|
202
|
+
##### [restart](https://github.com/appium/ruby_lib/blob/de58f7164230d7551df8462d65d0e43a3d0cfdab/lib/appium_lib/driver.rb#L275)
|
165
203
|
|
166
204
|
> def restart
|
167
205
|
|
@@ -173,7 +211,7 @@ __Returns:__
|
|
173
211
|
|
174
212
|
--
|
175
213
|
|
176
|
-
##### [driver](https://github.com/appium/ruby_lib/blob/
|
214
|
+
##### [driver](https://github.com/appium/ruby_lib/blob/de58f7164230d7551df8462d65d0e43a3d0cfdab/lib/appium_lib/driver.rb#L282)
|
177
215
|
|
178
216
|
> def driver
|
179
217
|
|
@@ -185,12 +223,14 @@ __Returns:__
|
|
185
223
|
|
186
224
|
--
|
187
225
|
|
188
|
-
##### [screenshot](https://github.com/appium/ruby_lib/blob/
|
226
|
+
##### [screenshot](https://github.com/appium/ruby_lib/blob/de58f7164230d7551df8462d65d0e43a3d0cfdab/lib/appium_lib/driver.rb#L292)
|
189
227
|
|
190
228
|
> def screenshot png_save_path
|
191
229
|
|
192
230
|
Takes a png screenshot and saves to the target path.
|
193
231
|
|
232
|
+
Example: screenshot '/tmp/hi.png'
|
233
|
+
|
194
234
|
__Parameters:__
|
195
235
|
|
196
236
|
[String] png_save_path - the full path to save the png
|
@@ -201,7 +241,7 @@ __Returns:__
|
|
201
241
|
|
202
242
|
--
|
203
243
|
|
204
|
-
##### [driver_quit](https://github.com/appium/ruby_lib/blob/
|
244
|
+
##### [driver_quit](https://github.com/appium/ruby_lib/blob/de58f7164230d7551df8462d65d0e43a3d0cfdab/lib/appium_lib/driver.rb#L298)
|
205
245
|
|
206
246
|
> def driver_quit
|
207
247
|
|
@@ -213,23 +253,19 @@ __Returns:__
|
|
213
253
|
|
214
254
|
--
|
215
255
|
|
216
|
-
##### [start_driver](https://github.com/appium/ruby_lib/blob/
|
256
|
+
##### [start_driver](https://github.com/appium/ruby_lib/blob/de58f7164230d7551df8462d65d0e43a3d0cfdab/lib/appium_lib/driver.rb#L306)
|
217
257
|
|
218
|
-
> def start_driver
|
258
|
+
> def start_driver
|
219
259
|
|
220
260
|
Creates a new global driver and quits the old one if it exists.
|
221
261
|
|
222
|
-
__Parameters:__
|
223
|
-
|
224
|
-
[Integer] wait - seconds to wait before timing out a command. defaults to 30 seconds
|
225
|
-
|
226
262
|
__Returns:__
|
227
263
|
|
228
264
|
[Selenium::WebDriver] the new global driver
|
229
265
|
|
230
266
|
--
|
231
267
|
|
232
|
-
##### [no_wait](https://github.com/appium/ruby_lib/blob/
|
268
|
+
##### [no_wait](https://github.com/appium/ruby_lib/blob/de58f7164230d7551df8462d65d0e43a3d0cfdab/lib/appium_lib/driver.rb#L330)
|
233
269
|
|
234
270
|
> def no_wait
|
235
271
|
|
@@ -237,7 +273,7 @@ Set implicit wait to zero.
|
|
237
273
|
|
238
274
|
--
|
239
275
|
|
240
|
-
##### [set_wait](https://github.com/appium/ruby_lib/blob/
|
276
|
+
##### [set_wait](https://github.com/appium/ruby_lib/blob/de58f7164230d7551df8462d65d0e43a3d0cfdab/lib/appium_lib/driver.rb#L337)
|
241
277
|
|
242
278
|
> def set_wait timeout=@default_wait
|
243
279
|
|
@@ -253,22 +289,9 @@ __Returns:__
|
|
253
289
|
|
254
290
|
--
|
255
291
|
|
256
|
-
##### [
|
292
|
+
##### [exists](https://github.com/appium/ruby_lib/blob/de58f7164230d7551df8462d65d0e43a3d0cfdab/lib/appium_lib/driver.rb#L360)
|
257
293
|
|
258
|
-
> def default_wait
|
259
|
-
|
260
|
-
Returns the default client side wait.
|
261
|
-
This value is independent of what the server is using
|
262
|
-
|
263
|
-
__Returns:__
|
264
|
-
|
265
|
-
[Integer]
|
266
|
-
|
267
|
-
--
|
268
|
-
|
269
|
-
##### [exists](https://github.com/appium/ruby_lib/blob/849594bdd87bf6133cbb64c43d0a02f427f17467/lib/appium_lib/driver.rb#L306)
|
270
|
-
|
271
|
-
> def exists &search_block
|
294
|
+
> def exists pre_check=0, post_check=@default_wait, &search_block
|
272
295
|
|
273
296
|
Returns existence of element.
|
274
297
|
|
@@ -278,6 +301,12 @@ exists { button('sign in') } ? puts('true') : puts('false')
|
|
278
301
|
|
279
302
|
__Parameters:__
|
280
303
|
|
304
|
+
[Integer] pre_check - the amount in seconds to set the
|
305
|
+
wait to before checking existance
|
306
|
+
|
307
|
+
[Integer] post_check - the amount in seconds to set the
|
308
|
+
wait to after checking existance
|
309
|
+
|
281
310
|
[Block] search_block - the block to call
|
282
311
|
|
283
312
|
__Returns:__
|
@@ -286,7 +315,7 @@ __Returns:__
|
|
286
315
|
|
287
316
|
--
|
288
317
|
|
289
|
-
##### [execute_script](https://github.com/appium/ruby_lib/blob/
|
318
|
+
##### [execute_script](https://github.com/appium/ruby_lib/blob/de58f7164230d7551df8462d65d0e43a3d0cfdab/lib/appium_lib/driver.rb#L382)
|
290
319
|
|
291
320
|
> def execute_script script, *args
|
292
321
|
|
@@ -304,7 +333,7 @@ __Returns:__
|
|
304
333
|
|
305
334
|
--
|
306
335
|
|
307
|
-
##### [mobile](https://github.com/appium/ruby_lib/blob/
|
336
|
+
##### [mobile](https://github.com/appium/ruby_lib/blob/de58f7164230d7551df8462d65d0e43a3d0cfdab/lib/appium_lib/driver.rb#L398)
|
308
337
|
|
309
338
|
> def mobile method, *args
|
310
339
|
|
@@ -330,7 +359,7 @@ __Returns:__
|
|
330
359
|
|
331
360
|
--
|
332
361
|
|
333
|
-
##### [find_elements](https://github.com/appium/ruby_lib/blob/
|
362
|
+
##### [find_elements](https://github.com/appium/ruby_lib/blob/de58f7164230d7551df8462d65d0e43a3d0cfdab/lib/appium_lib/driver.rb#L409)
|
334
363
|
|
335
364
|
> def find_elements *args
|
336
365
|
|
@@ -346,7 +375,7 @@ __Returns:__
|
|
346
375
|
|
347
376
|
--
|
348
377
|
|
349
|
-
##### [find_element](https://github.com/appium/ruby_lib/blob/
|
378
|
+
##### [find_element](https://github.com/appium/ruby_lib/blob/de58f7164230d7551df8462d65d0e43a3d0cfdab/lib/appium_lib/driver.rb#L417)
|
350
379
|
|
351
380
|
> def find_element *args
|
352
381
|
|
@@ -362,7 +391,7 @@ __Returns:__
|
|
362
391
|
|
363
392
|
--
|
364
393
|
|
365
|
-
##### [x](https://github.com/appium/ruby_lib/blob/
|
394
|
+
##### [x](https://github.com/appium/ruby_lib/blob/de58f7164230d7551df8462d65d0e43a3d0cfdab/lib/appium_lib/driver.rb#L424)
|
366
395
|
|
367
396
|
> def x
|
368
397
|
|
@@ -375,7 +404,7 @@ __Returns:__
|
|
375
404
|
|
376
405
|
--
|
377
406
|
|
378
|
-
##### [wait](https://github.com/appium/ruby_lib/blob/
|
407
|
+
##### [wait](https://github.com/appium/ruby_lib/blob/de58f7164230d7551df8462d65d0e43a3d0cfdab/lib/appium_lib/common/helper.rb#L33)
|
379
408
|
|
380
409
|
> def wait max_wait=30, interval=0.5, &block
|
381
410
|
|
@@ -389,7 +418,8 @@ Give up after 30 seconds.
|
|
389
418
|
|
390
419
|
__Parameters:__
|
391
420
|
|
392
|
-
[Integer] max_wait - the maximum time in seconds to wait for
|
421
|
+
[Integer] max_wait - the maximum time in seconds to wait for.
|
422
|
+
Note that max wait 0 means infinity.
|
393
423
|
|
394
424
|
[Float] interval - the time in seconds to wait after calling the block
|
395
425
|
|
@@ -401,7 +431,7 @@ __Returns:__
|
|
401
431
|
|
402
432
|
--
|
403
433
|
|
404
|
-
##### [wait_true](https://github.com/appium/ruby_lib/blob/
|
434
|
+
##### [wait_true](https://github.com/appium/ruby_lib/blob/de58f7164230d7551df8462d65d0e43a3d0cfdab/lib/appium_lib/common/helper.rb#L50)
|
405
435
|
|
406
436
|
> def wait_true max_wait=30, interval=0.5, &block
|
407
437
|
|
@@ -422,7 +452,7 @@ __Returns:__
|
|
422
452
|
|
423
453
|
--
|
424
454
|
|
425
|
-
##### [id](https://github.com/appium/ruby_lib/blob/
|
455
|
+
##### [id](https://github.com/appium/ruby_lib/blob/de58f7164230d7551df8462d65d0e43a3d0cfdab/lib/appium_lib/common/helper.rb#L64)
|
426
456
|
|
427
457
|
> def id id
|
428
458
|
|
@@ -438,7 +468,7 @@ __Returns:__
|
|
438
468
|
|
439
469
|
--
|
440
470
|
|
441
|
-
##### [back](https://github.com/appium/ruby_lib/blob/
|
471
|
+
##### [back](https://github.com/appium/ruby_lib/blob/de58f7164230d7551df8462d65d0e43a3d0cfdab/lib/appium_lib/common/helper.rb#L70)
|
442
472
|
|
443
473
|
> def back
|
444
474
|
|
@@ -450,7 +480,7 @@ __Returns:__
|
|
450
480
|
|
451
481
|
--
|
452
482
|
|
453
|
-
##### [session_id](https://github.com/appium/ruby_lib/blob/
|
483
|
+
##### [session_id](https://github.com/appium/ruby_lib/blob/de58f7164230d7551df8462d65d0e43a3d0cfdab/lib/appium_lib/common/helper.rb#L75)
|
454
484
|
|
455
485
|
> def session_id
|
456
486
|
|
@@ -458,7 +488,7 @@ For Sauce Labs reporting. Returns the current session id.
|
|
458
488
|
|
459
489
|
--
|
460
490
|
|
461
|
-
##### [xpath](https://github.com/appium/ruby_lib/blob/
|
491
|
+
##### [xpath](https://github.com/appium/ruby_lib/blob/de58f7164230d7551df8462d65d0e43a3d0cfdab/lib/appium_lib/common/helper.rb#L83)
|
462
492
|
|
463
493
|
> def xpath xpath_str
|
464
494
|
|
@@ -474,7 +504,7 @@ __Returns:__
|
|
474
504
|
|
475
505
|
--
|
476
506
|
|
477
|
-
##### [xpaths](https://github.com/appium/ruby_lib/blob/
|
507
|
+
##### [xpaths](https://github.com/appium/ruby_lib/blob/de58f7164230d7551df8462d65d0e43a3d0cfdab/lib/appium_lib/common/helper.rb#L91)
|
478
508
|
|
479
509
|
> def xpaths xpath_str
|
480
510
|
|
@@ -490,7 +520,7 @@ __Returns:__
|
|
490
520
|
|
491
521
|
--
|
492
522
|
|
493
|
-
##### [ele_index](https://github.com/appium/ruby_lib/blob/
|
523
|
+
##### [ele_index](https://github.com/appium/ruby_lib/blob/de58f7164230d7551df8462d65d0e43a3d0cfdab/lib/appium_lib/common/helper.rb#L99)
|
494
524
|
|
495
525
|
> def ele_index tag_name, index
|
496
526
|
|
@@ -508,7 +538,7 @@ __Returns:__
|
|
508
538
|
|
509
539
|
--
|
510
540
|
|
511
|
-
##### [find_eles](https://github.com/appium/ruby_lib/blob/
|
541
|
+
##### [find_eles](https://github.com/appium/ruby_lib/blob/de58f7164230d7551df8462d65d0e43a3d0cfdab/lib/appium_lib/common/helper.rb#L107)
|
512
542
|
|
513
543
|
> def find_eles tag_name
|
514
544
|
|
@@ -524,7 +554,7 @@ __Returns:__
|
|
524
554
|
|
525
555
|
--
|
526
556
|
|
527
|
-
##### [find_ele_by_text](https://github.com/appium/ruby_lib/blob/
|
557
|
+
##### [find_ele_by_text](https://github.com/appium/ruby_lib/blob/de58f7164230d7551df8462d65d0e43a3d0cfdab/lib/appium_lib/common/helper.rb#L115)
|
528
558
|
|
529
559
|
> def find_ele_by_text tag, text
|
530
560
|
|
@@ -542,7 +572,7 @@ __Returns:__
|
|
542
572
|
|
543
573
|
--
|
544
574
|
|
545
|
-
##### [find_eles_by_text](https://github.com/appium/ruby_lib/blob/
|
575
|
+
##### [find_eles_by_text](https://github.com/appium/ruby_lib/blob/de58f7164230d7551df8462d65d0e43a3d0cfdab/lib/appium_lib/common/helper.rb#L123)
|
546
576
|
|
547
577
|
> def find_eles_by_text tag, text
|
548
578
|
|
@@ -560,7 +590,7 @@ __Returns:__
|
|
560
590
|
|
561
591
|
--
|
562
592
|
|
563
|
-
##### [find_ele_by_attr_include](https://github.com/appium/ruby_lib/blob/
|
593
|
+
##### [find_ele_by_attr_include](https://github.com/appium/ruby_lib/blob/de58f7164230d7551df8462d65d0e43a3d0cfdab/lib/appium_lib/common/helper.rb#L132)
|
564
594
|
|
565
595
|
> def find_ele_by_attr_include tag, attr, value
|
566
596
|
|
@@ -580,7 +610,7 @@ __Returns:__
|
|
580
610
|
|
581
611
|
--
|
582
612
|
|
583
|
-
##### [find_eles_by_attr_include](https://github.com/appium/ruby_lib/blob/
|
613
|
+
##### [find_eles_by_attr_include](https://github.com/appium/ruby_lib/blob/de58f7164230d7551df8462d65d0e43a3d0cfdab/lib/appium_lib/common/helper.rb#L141)
|
584
614
|
|
585
615
|
> def find_eles_by_attr_include tag, attr, value
|
586
616
|
|
@@ -600,7 +630,7 @@ __Returns:__
|
|
600
630
|
|
601
631
|
--
|
602
632
|
|
603
|
-
##### [find_ele_by_text_include](https://github.com/appium/ruby_lib/blob/
|
633
|
+
##### [find_ele_by_text_include](https://github.com/appium/ruby_lib/blob/de58f7164230d7551df8462d65d0e43a3d0cfdab/lib/appium_lib/common/helper.rb#L150)
|
604
634
|
|
605
635
|
> def find_ele_by_text_include tag, text
|
606
636
|
|
@@ -619,7 +649,7 @@ __Returns:__
|
|
619
649
|
|
620
650
|
--
|
621
651
|
|
622
|
-
##### [find_eles_by_text_include](https://github.com/appium/ruby_lib/blob/
|
652
|
+
##### [find_eles_by_text_include](https://github.com/appium/ruby_lib/blob/de58f7164230d7551df8462d65d0e43a3d0cfdab/lib/appium_lib/common/helper.rb#L159)
|
623
653
|
|
624
654
|
> def find_eles_by_text_include tag, text
|
625
655
|
|
@@ -638,7 +668,7 @@ __Returns:__
|
|
638
668
|
|
639
669
|
--
|
640
670
|
|
641
|
-
##### [first_ele](https://github.com/appium/ruby_lib/blob/
|
671
|
+
##### [first_ele](https://github.com/appium/ruby_lib/blob/de58f7164230d7551df8462d65d0e43a3d0cfdab/lib/appium_lib/common/helper.rb#L166)
|
642
672
|
|
643
673
|
> def first_ele tag_name
|
644
674
|
|
@@ -654,7 +684,7 @@ __Returns:__
|
|
654
684
|
|
655
685
|
--
|
656
686
|
|
657
|
-
##### [last_ele](https://github.com/appium/ruby_lib/blob/
|
687
|
+
##### [last_ele](https://github.com/appium/ruby_lib/blob/de58f7164230d7551df8462d65d0e43a3d0cfdab/lib/appium_lib/common/helper.rb#L174)
|
658
688
|
|
659
689
|
> def last_ele tag_name
|
660
690
|
|
@@ -670,7 +700,7 @@ __Returns:__
|
|
670
700
|
|
671
701
|
--
|
672
702
|
|
673
|
-
##### [source](https://github.com/appium/ruby_lib/blob/
|
703
|
+
##### [source](https://github.com/appium/ruby_lib/blob/de58f7164230d7551df8462d65d0e43a3d0cfdab/lib/appium_lib/common/helper.rb#L180)
|
674
704
|
|
675
705
|
> def source
|
676
706
|
|
@@ -682,7 +712,7 @@ __Returns:__
|
|
682
712
|
|
683
713
|
--
|
684
714
|
|
685
|
-
##### [get_source](https://github.com/appium/ruby_lib/blob/
|
715
|
+
##### [get_source](https://github.com/appium/ruby_lib/blob/de58f7164230d7551df8462d65d0e43a3d0cfdab/lib/appium_lib/common/helper.rb#L186)
|
686
716
|
|
687
717
|
> def get_source
|
688
718
|
|
@@ -694,15 +724,15 @@ __Returns:__
|
|
694
724
|
|
695
725
|
--
|
696
726
|
|
697
|
-
##### [find_name](https://github.com/appium/ruby_lib/blob/
|
727
|
+
##### [find_name](https://github.com/appium/ruby_lib/blob/de58f7164230d7551df8462d65d0e43a3d0cfdab/lib/appium_lib/common/helper.rb#L195)
|
698
728
|
|
699
729
|
> def find_name name
|
700
730
|
|
701
|
-
Returns the first element that matches name
|
731
|
+
Returns the first element that exactly matches name
|
702
732
|
|
703
733
|
__Parameters:__
|
704
734
|
|
705
|
-
[String] name - the name to match
|
735
|
+
[String] name - the name to exactly match
|
706
736
|
|
707
737
|
__Returns:__
|
708
738
|
|
@@ -710,15 +740,15 @@ __Returns:__
|
|
710
740
|
|
711
741
|
--
|
712
742
|
|
713
|
-
##### [find_names](https://github.com/appium/ruby_lib/blob/
|
743
|
+
##### [find_names](https://github.com/appium/ruby_lib/blob/de58f7164230d7551df8462d65d0e43a3d0cfdab/lib/appium_lib/common/helper.rb#L203)
|
714
744
|
|
715
745
|
> def find_names name
|
716
746
|
|
717
|
-
Returns all elements that match name
|
747
|
+
Returns all elements that exactly match name
|
718
748
|
|
719
749
|
__Parameters:__
|
720
750
|
|
721
|
-
[String] name - the name to match
|
751
|
+
[String] name - the name to exactly match
|
722
752
|
|
723
753
|
__Returns:__
|
724
754
|
|
@@ -726,7 +756,7 @@ __Returns:__
|
|
726
756
|
|
727
757
|
--
|
728
758
|
|
729
|
-
##### [s_texts](https://github.com/appium/ruby_lib/blob/
|
759
|
+
##### [s_texts](https://github.com/appium/ruby_lib/blob/de58f7164230d7551df8462d65d0e43a3d0cfdab/lib/appium_lib/common/element/text.rb#L8)
|
730
760
|
|
731
761
|
> def s_texts
|
732
762
|
|
@@ -738,7 +768,7 @@ __Returns:__
|
|
738
768
|
|
739
769
|
--
|
740
770
|
|
741
|
-
##### [e_s_texts](https://github.com/appium/ruby_lib/blob/
|
771
|
+
##### [e_s_texts](https://github.com/appium/ruby_lib/blob/de58f7164230d7551df8462d65d0e43a3d0cfdab/lib/appium_lib/common/element/text.rb#L14)
|
742
772
|
|
743
773
|
> def e_s_texts
|
744
774
|
|
@@ -750,9 +780,9 @@ __Returns:__
|
|
750
780
|
|
751
781
|
--
|
752
782
|
|
753
|
-
##### [
|
783
|
+
##### [first_s_text](https://github.com/appium/ruby_lib/blob/de58f7164230d7551df8462d65d0e43a3d0cfdab/lib/appium_lib/common/element/text.rb#L20)
|
754
784
|
|
755
|
-
> def
|
785
|
+
> def first_s_text
|
756
786
|
|
757
787
|
Get the first text element.
|
758
788
|
|
@@ -762,9 +792,9 @@ __Returns:__
|
|
762
792
|
|
763
793
|
--
|
764
794
|
|
765
|
-
##### [
|
795
|
+
##### [last_s_text](https://github.com/appium/ruby_lib/blob/de58f7164230d7551df8462d65d0e43a3d0cfdab/lib/appium_lib/common/element/text.rb#L26)
|
766
796
|
|
767
|
-
> def
|
797
|
+
> def last_s_text
|
768
798
|
|
769
799
|
Get the last text element
|
770
800
|
|
@@ -774,7 +804,7 @@ __Returns:__
|
|
774
804
|
|
775
805
|
--
|
776
806
|
|
777
|
-
##### [s_text](https://github.com/appium/ruby_lib/blob/
|
807
|
+
##### [s_text](https://github.com/appium/ruby_lib/blob/de58f7164230d7551df8462d65d0e43a3d0cfdab/lib/appium_lib/common/element/text.rb#L33)
|
778
808
|
|
779
809
|
> def s_text text
|
780
810
|
|
@@ -790,7 +820,7 @@ __Returns:__
|
|
790
820
|
|
791
821
|
--
|
792
822
|
|
793
|
-
##### [s_text_exact](https://github.com/appium/ruby_lib/blob/
|
823
|
+
##### [s_text_exact](https://github.com/appium/ruby_lib/blob/de58f7164230d7551df8462d65d0e43a3d0cfdab/lib/appium_lib/common/element/text.rb#L41)
|
794
824
|
|
795
825
|
> def s_text_exact text
|
796
826
|
|
@@ -806,7 +836,15 @@ __Returns:__
|
|
806
836
|
|
807
837
|
--
|
808
838
|
|
809
|
-
##### [
|
839
|
+
##### [window_size](https://github.com/appium/ruby_lib/blob/de58f7164230d7551df8462d65d0e43a3d0cfdab/lib/appium_lib/common/element/window.rb#L5)
|
840
|
+
|
841
|
+
> def window_size
|
842
|
+
|
843
|
+
Get the window's size
|
844
|
+
|
845
|
+
--
|
846
|
+
|
847
|
+
##### [button](https://github.com/appium/ruby_lib/blob/de58f7164230d7551df8462d65d0e43a3d0cfdab/lib/appium_lib/common/element/button.rb#L8)
|
810
848
|
|
811
849
|
> def button text, number=0
|
812
850
|
|
@@ -824,7 +862,7 @@ __Returns:__
|
|
824
862
|
|
825
863
|
--
|
826
864
|
|
827
|
-
##### [buttons](https://github.com/appium/ruby_lib/blob/
|
865
|
+
##### [buttons](https://github.com/appium/ruby_lib/blob/de58f7164230d7551df8462d65d0e43a3d0cfdab/lib/appium_lib/common/element/button.rb#L19)
|
828
866
|
|
829
867
|
> def buttons text=nil
|
830
868
|
|
@@ -840,7 +878,7 @@ __Returns:__
|
|
840
878
|
|
841
879
|
--
|
842
880
|
|
843
|
-
##### [first_button](https://github.com/appium/ruby_lib/blob/
|
881
|
+
##### [first_button](https://github.com/appium/ruby_lib/blob/de58f7164230d7551df8462d65d0e43a3d0cfdab/lib/appium_lib/common/element/button.rb#L26)
|
844
882
|
|
845
883
|
> def first_button
|
846
884
|
|
@@ -852,7 +890,7 @@ __Returns:__
|
|
852
890
|
|
853
891
|
--
|
854
892
|
|
855
|
-
##### [last_button](https://github.com/appium/ruby_lib/blob/
|
893
|
+
##### [last_button](https://github.com/appium/ruby_lib/blob/de58f7164230d7551df8462d65d0e43a3d0cfdab/lib/appium_lib/common/element/button.rb#L32)
|
856
894
|
|
857
895
|
> def last_button
|
858
896
|
|
@@ -864,7 +902,7 @@ __Returns:__
|
|
864
902
|
|
865
903
|
--
|
866
904
|
|
867
|
-
##### [button_exact](https://github.com/appium/ruby_lib/blob/
|
905
|
+
##### [button_exact](https://github.com/appium/ruby_lib/blob/de58f7164230d7551df8462d65d0e43a3d0cfdab/lib/appium_lib/common/element/button.rb#L39)
|
868
906
|
|
869
907
|
> def button_exact text
|
870
908
|
|
@@ -880,7 +918,7 @@ __Returns:__
|
|
880
918
|
|
881
919
|
--
|
882
920
|
|
883
|
-
##### [buttons_exact](https://github.com/appium/ruby_lib/blob/
|
921
|
+
##### [buttons_exact](https://github.com/appium/ruby_lib/blob/de58f7164230d7551df8462d65d0e43a3d0cfdab/lib/appium_lib/common/element/button.rb#L46)
|
884
922
|
|
885
923
|
> def buttons_exact text
|
886
924
|
|
@@ -896,7 +934,7 @@ __Returns:__
|
|
896
934
|
|
897
935
|
--
|
898
936
|
|
899
|
-
##### [e_buttons](https://github.com/appium/ruby_lib/blob/
|
937
|
+
##### [e_buttons](https://github.com/appium/ruby_lib/blob/de58f7164230d7551df8462d65d0e43a3d0cfdab/lib/appium_lib/common/element/button.rb#L52)
|
900
938
|
|
901
939
|
> def e_buttons
|
902
940
|
|
@@ -908,7 +946,7 @@ __Returns:__
|
|
908
946
|
|
909
947
|
--
|
910
948
|
|
911
|
-
##### [button_num](https://github.com/appium/ruby_lib/blob/
|
949
|
+
##### [button_num](https://github.com/appium/ruby_lib/blob/de58f7164230d7551df8462d65d0e43a3d0cfdab/lib/appium_lib/common/element/button.rb#L72)
|
912
950
|
|
913
951
|
> def button_num text, number=1
|
914
952
|
|
@@ -937,15 +975,7 @@ __Returns:__
|
|
937
975
|
|
938
976
|
--
|
939
977
|
|
940
|
-
##### [
|
941
|
-
|
942
|
-
> def window_size
|
943
|
-
|
944
|
-
Get the window's size
|
945
|
-
|
946
|
-
--
|
947
|
-
|
948
|
-
##### [tag_name_to_android](https://github.com/appium/ruby_lib/blob/849594bdd87bf6133cbb64c43d0a02f427f17467/lib/appium_lib/android/helper.rb#L6) android
|
978
|
+
##### [tag_name_to_android](https://github.com/appium/ruby_lib/blob/de58f7164230d7551df8462d65d0e43a3d0cfdab/lib/appium_lib/android/helper.rb#L6) android
|
949
979
|
|
950
980
|
> def tag_name_to_android tag_name
|
951
981
|
|
@@ -961,13 +991,17 @@ __Returns:__
|
|
961
991
|
|
962
992
|
--
|
963
993
|
|
964
|
-
##### [find_eles_attr](https://github.com/appium/ruby_lib/blob/
|
994
|
+
##### [find_eles_attr](https://github.com/appium/ruby_lib/blob/de58f7164230d7551df8462d65d0e43a3d0cfdab/lib/appium_lib/android/helper.rb#L48) android
|
965
995
|
|
966
|
-
> def find_eles_attr tag_name
|
996
|
+
> def find_eles_attr tag_name, attribute=nil
|
967
997
|
|
968
998
|
Find all elements matching the attribute
|
969
999
|
On android, assume the attr is name (which falls back to text).
|
970
1000
|
|
1001
|
+
```ruby
|
1002
|
+
find_eles_attr :text
|
1003
|
+
```
|
1004
|
+
|
971
1005
|
__Parameters:__
|
972
1006
|
|
973
1007
|
[String] tag_name - the tag name to search for
|
@@ -978,7 +1012,7 @@ __Returns:__
|
|
978
1012
|
|
979
1013
|
--
|
980
1014
|
|
981
|
-
##### [get_selendroid_inspect](https://github.com/appium/ruby_lib/blob/
|
1015
|
+
##### [get_selendroid_inspect](https://github.com/appium/ruby_lib/blob/de58f7164230d7551df8462d65d0e43a3d0cfdab/lib/appium_lib/android/helper.rb#L70) android
|
982
1016
|
|
983
1017
|
> def get_selendroid_inspect
|
984
1018
|
|
@@ -991,12 +1025,22 @@ __Returns:__
|
|
991
1025
|
|
992
1026
|
--
|
993
1027
|
|
994
|
-
##### [
|
1028
|
+
##### [page_class](https://github.com/appium/ruby_lib/blob/de58f7164230d7551df8462d65d0e43a3d0cfdab/lib/appium_lib/android/helper.rb#L134) android
|
1029
|
+
|
1030
|
+
> def page_class
|
1031
|
+
|
1032
|
+
Count all classes on screen and print to stdout.
|
1033
|
+
Useful for appium_console.
|
1034
|
+
|
1035
|
+
--
|
1036
|
+
|
1037
|
+
##### [get_android_inspect](https://github.com/appium/ruby_lib/blob/de58f7164230d7551df8462d65d0e43a3d0cfdab/lib/appium_lib/android/helper.rb#L163) android
|
995
1038
|
|
996
1039
|
> def get_android_inspect
|
997
1040
|
|
998
1041
|
Android only.
|
999
1042
|
Returns a string containing interesting elements.
|
1043
|
+
If an element has no content desc or text, then it's not returned by this method.
|
1000
1044
|
|
1001
1045
|
__Returns:__
|
1002
1046
|
|
@@ -1004,7 +1048,7 @@ __Returns:__
|
|
1004
1048
|
|
1005
1049
|
--
|
1006
1050
|
|
1007
|
-
##### [get_inspect](https://github.com/appium/ruby_lib/blob/
|
1051
|
+
##### [get_inspect](https://github.com/appium/ruby_lib/blob/de58f7164230d7551df8462d65d0e43a3d0cfdab/lib/appium_lib/android/helper.rb#L212) android
|
1008
1052
|
|
1009
1053
|
> def get_inspect
|
1010
1054
|
|
@@ -1017,7 +1061,7 @@ __Returns:__
|
|
1017
1061
|
|
1018
1062
|
--
|
1019
1063
|
|
1020
|
-
##### [page](https://github.com/appium/ruby_lib/blob/
|
1064
|
+
##### [page](https://github.com/appium/ruby_lib/blob/de58f7164230d7551df8462d65d0e43a3d0cfdab/lib/appium_lib/android/helper.rb#L218) android
|
1021
1065
|
|
1022
1066
|
> def page
|
1023
1067
|
|
@@ -1026,7 +1070,7 @@ Inspects and prints the current page.
|
|
1026
1070
|
|
1027
1071
|
--
|
1028
1072
|
|
1029
|
-
##### [fast_duration](https://github.com/appium/ruby_lib/blob/
|
1073
|
+
##### [fast_duration](https://github.com/appium/ruby_lib/blob/de58f7164230d7551df8462d65d0e43a3d0cfdab/lib/appium_lib/android/helper.rb#L231) android
|
1030
1074
|
|
1031
1075
|
> def fast_duration
|
1032
1076
|
|
@@ -1041,7 +1085,7 @@ We want steps to be exactly 1. If it's zero then a tap is used instead of a swip
|
|
1041
1085
|
|
1042
1086
|
--
|
1043
1087
|
|
1044
|
-
##### [alert_click](https://github.com/appium/ruby_lib/blob/
|
1088
|
+
##### [alert_click](https://github.com/appium/ruby_lib/blob/de58f7164230d7551df8462d65d0e43a3d0cfdab/lib/appium_lib/android/element/alert.rb#L6) android
|
1045
1089
|
|
1046
1090
|
> def alert_click value
|
1047
1091
|
|
@@ -1057,7 +1101,7 @@ __Returns:__
|
|
1057
1101
|
|
1058
1102
|
--
|
1059
1103
|
|
1060
|
-
##### [alert_accept](https://github.com/appium/ruby_lib/blob/
|
1104
|
+
##### [alert_accept](https://github.com/appium/ruby_lib/blob/de58f7164230d7551df8462d65d0e43a3d0cfdab/lib/appium_lib/android/element/alert.rb#L13) android
|
1061
1105
|
|
1062
1106
|
> def alert_accept
|
1063
1107
|
|
@@ -1070,7 +1114,7 @@ __Returns:__
|
|
1070
1114
|
|
1071
1115
|
--
|
1072
1116
|
|
1073
|
-
##### [alert_accept_text](https://github.com/appium/ruby_lib/blob/
|
1117
|
+
##### [alert_accept_text](https://github.com/appium/ruby_lib/blob/de58f7164230d7551df8462d65d0e43a3d0cfdab/lib/appium_lib/android/element/alert.rb#L20) android
|
1074
1118
|
|
1075
1119
|
> def alert_accept_text
|
1076
1120
|
|
@@ -1083,7 +1127,7 @@ __Returns:__
|
|
1083
1127
|
|
1084
1128
|
--
|
1085
1129
|
|
1086
|
-
##### [alert_dismiss](https://github.com/appium/ruby_lib/blob/
|
1130
|
+
##### [alert_dismiss](https://github.com/appium/ruby_lib/blob/de58f7164230d7551df8462d65d0e43a3d0cfdab/lib/appium_lib/android/element/alert.rb#L27) android
|
1087
1131
|
|
1088
1132
|
> def alert_dismiss
|
1089
1133
|
|
@@ -1096,7 +1140,7 @@ __Returns:__
|
|
1096
1140
|
|
1097
1141
|
--
|
1098
1142
|
|
1099
|
-
##### [alert_dismiss_text](https://github.com/appium/ruby_lib/blob/
|
1143
|
+
##### [alert_dismiss_text](https://github.com/appium/ruby_lib/blob/de58f7164230d7551df8462d65d0e43a3d0cfdab/lib/appium_lib/android/element/alert.rb#L34) android
|
1100
1144
|
|
1101
1145
|
> def alert_dismiss_text
|
1102
1146
|
|
@@ -1109,7 +1153,7 @@ __Returns:__
|
|
1109
1153
|
|
1110
1154
|
--
|
1111
1155
|
|
1112
|
-
##### [find](https://github.com/appium/ruby_lib/blob/
|
1156
|
+
##### [find](https://github.com/appium/ruby_lib/blob/de58f7164230d7551df8462d65d0e43a3d0cfdab/lib/appium_lib/android/element/generic.rb#L44) android
|
1113
1157
|
|
1114
1158
|
> def find val
|
1115
1159
|
|
@@ -1126,7 +1170,7 @@ __Returns:__
|
|
1126
1170
|
|
1127
1171
|
--
|
1128
1172
|
|
1129
|
-
##### [text](https://github.com/appium/ruby_lib/blob/
|
1173
|
+
##### [text](https://github.com/appium/ruby_lib/blob/de58f7164230d7551df8462d65d0e43a3d0cfdab/lib/appium_lib/android/element/generic.rb#L70) android
|
1130
1174
|
|
1131
1175
|
> def text text
|
1132
1176
|
|
@@ -1142,7 +1186,7 @@ __Returns:__
|
|
1142
1186
|
|
1143
1187
|
--
|
1144
1188
|
|
1145
|
-
##### [texts](https://github.com/appium/ruby_lib/blob/
|
1189
|
+
##### [texts](https://github.com/appium/ruby_lib/blob/de58f7164230d7551df8462d65d0e43a3d0cfdab/lib/appium_lib/android/element/generic.rb#L79) android
|
1146
1190
|
|
1147
1191
|
> def texts text
|
1148
1192
|
|
@@ -1158,7 +1202,7 @@ __Returns:__
|
|
1158
1202
|
|
1159
1203
|
--
|
1160
1204
|
|
1161
|
-
##### [name](https://github.com/appium/ruby_lib/blob/
|
1205
|
+
##### [name](https://github.com/appium/ruby_lib/blob/de58f7164230d7551df8462d65d0e43a3d0cfdab/lib/appium_lib/android/element/generic.rb#L88) android
|
1162
1206
|
|
1163
1207
|
> def name name
|
1164
1208
|
|
@@ -1176,7 +1220,7 @@ __Returns:__
|
|
1176
1220
|
|
1177
1221
|
--
|
1178
1222
|
|
1179
|
-
##### [names](https://github.com/appium/ruby_lib/blob/
|
1223
|
+
##### [names](https://github.com/appium/ruby_lib/blob/de58f7164230d7551df8462d65d0e43a3d0cfdab/lib/appium_lib/android/element/generic.rb#L99) android
|
1180
1224
|
|
1181
1225
|
> def names name
|
1182
1226
|
|
@@ -1194,7 +1238,7 @@ __Returns:__
|
|
1194
1238
|
|
1195
1239
|
--
|
1196
1240
|
|
1197
|
-
##### [scroll_to](https://github.com/appium/ruby_lib/blob/
|
1241
|
+
##### [scroll_to](https://github.com/appium/ruby_lib/blob/de58f7164230d7551df8462d65d0e43a3d0cfdab/lib/appium_lib/android/element/generic.rb#L106) android
|
1198
1242
|
|
1199
1243
|
> def scroll_to text
|
1200
1244
|
|
@@ -1210,7 +1254,7 @@ __Returns:__
|
|
1210
1254
|
|
1211
1255
|
--
|
1212
1256
|
|
1213
|
-
##### [textfields](https://github.com/appium/ruby_lib/blob/
|
1257
|
+
##### [textfields](https://github.com/appium/ruby_lib/blob/de58f7164230d7551df8462d65d0e43a3d0cfdab/lib/appium_lib/android/element/textfield.rb#L7) android
|
1214
1258
|
|
1215
1259
|
> def textfields
|
1216
1260
|
|
@@ -1222,7 +1266,7 @@ __Returns:__
|
|
1222
1266
|
|
1223
1267
|
--
|
1224
1268
|
|
1225
|
-
##### [e_textfields](https://github.com/appium/ruby_lib/blob/
|
1269
|
+
##### [e_textfields](https://github.com/appium/ruby_lib/blob/de58f7164230d7551df8462d65d0e43a3d0cfdab/lib/appium_lib/android/element/textfield.rb#L13) android
|
1226
1270
|
|
1227
1271
|
> def e_textfields
|
1228
1272
|
|
@@ -1234,7 +1278,7 @@ __Returns:__
|
|
1234
1278
|
|
1235
1279
|
--
|
1236
1280
|
|
1237
|
-
##### [first_textfield](https://github.com/appium/ruby_lib/blob/
|
1281
|
+
##### [first_textfield](https://github.com/appium/ruby_lib/blob/de58f7164230d7551df8462d65d0e43a3d0cfdab/lib/appium_lib/android/element/textfield.rb#L19) android
|
1238
1282
|
|
1239
1283
|
> def first_textfield
|
1240
1284
|
|
@@ -1246,7 +1290,7 @@ __Returns:__
|
|
1246
1290
|
|
1247
1291
|
--
|
1248
1292
|
|
1249
|
-
##### [last_textfield](https://github.com/appium/ruby_lib/blob/
|
1293
|
+
##### [last_textfield](https://github.com/appium/ruby_lib/blob/de58f7164230d7551df8462d65d0e43a3d0cfdab/lib/appium_lib/android/element/textfield.rb#L25) android
|
1250
1294
|
|
1251
1295
|
> def last_textfield
|
1252
1296
|
|
@@ -1258,7 +1302,7 @@ __Returns:__
|
|
1258
1302
|
|
1259
1303
|
--
|
1260
1304
|
|
1261
|
-
##### [textfield](https://github.com/appium/ruby_lib/blob/
|
1305
|
+
##### [textfield](https://github.com/appium/ruby_lib/blob/de58f7164230d7551df8462d65d0e43a3d0cfdab/lib/appium_lib/android/element/textfield.rb#L32) android
|
1262
1306
|
|
1263
1307
|
> def textfield text
|
1264
1308
|
|
@@ -1274,7 +1318,7 @@ __Returns:__
|
|
1274
1318
|
|
1275
1319
|
--
|
1276
1320
|
|
1277
|
-
##### [textfield_exact](https://github.com/appium/ruby_lib/blob/
|
1321
|
+
##### [textfield_exact](https://github.com/appium/ruby_lib/blob/de58f7164230d7551df8462d65d0e43a3d0cfdab/lib/appium_lib/android/element/textfield.rb#L45) android
|
1278
1322
|
|
1279
1323
|
> def textfield_exact text
|
1280
1324
|
|
@@ -1290,7 +1334,7 @@ __Returns:__
|
|
1290
1334
|
|
1291
1335
|
--
|
1292
1336
|
|
1293
|
-
##### [value](https://github.com/appium/ruby_lib/blob/
|
1337
|
+
##### [value](https://github.com/appium/ruby_lib/blob/de58f7164230d7551df8462d65d0e43a3d0cfdab/lib/appium_lib/common/patch.rb#L32)
|
1294
1338
|
|
1295
1339
|
> def value
|
1296
1340
|
|
@@ -1300,7 +1344,7 @@ Fixes NoMethodError: undefined method `value' for Selenium::WebDriver::Element
|
|
1300
1344
|
|
1301
1345
|
--
|
1302
1346
|
|
1303
|
-
##### [name](https://github.com/appium/ruby_lib/blob/
|
1347
|
+
##### [name](https://github.com/appium/ruby_lib/blob/de58f7164230d7551df8462d65d0e43a3d0cfdab/lib/appium_lib/common/patch.rb#L39)
|
1304
1348
|
|
1305
1349
|
> def name
|
1306
1350
|
|
@@ -1310,7 +1354,7 @@ Fixes NoMethodError: undefined method `name' for Selenium::WebDriver::Element
|
|
1310
1354
|
|
1311
1355
|
--
|
1312
1356
|
|
1313
|
-
##### [tag_name](https://github.com/appium/ruby_lib/blob/
|
1357
|
+
##### [tag_name](https://github.com/appium/ruby_lib/blob/de58f7164230d7551df8462d65d0e43a3d0cfdab/lib/appium_lib/common/patch.rb#L46)
|
1314
1358
|
|
1315
1359
|
> def tag_name
|
1316
1360
|
|
@@ -1320,7 +1364,7 @@ Fixes Selenium::WebDriver::Error::UnknownError: Not yet implemented
|
|
1320
1364
|
|
1321
1365
|
--
|
1322
1366
|
|
1323
|
-
##### [location_rel](https://github.com/appium/ruby_lib/blob/
|
1367
|
+
##### [location_rel](https://github.com/appium/ruby_lib/blob/de58f7164230d7551df8462d65d0e43a3d0cfdab/lib/appium_lib/common/patch.rb#L58)
|
1324
1368
|
|
1325
1369
|
> def location_rel
|
1326
1370
|
|