appium_lib 4.0.0 → 4.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/android_tests/lib/android/specs/common/helper.rb +26 -13
- data/android_tests/lib/android/specs/driver.rb +4 -4
- data/docs/android_docs.md +249 -203
- data/docs/docs.md +2 -12
- data/docs/ios_docs.md +210 -196
- data/ios_tests/lib/ios/specs/common/helper.rb +19 -13
- data/lib/appium_lib/android/client_xpath.rb +47 -0
- data/lib/appium_lib/common/helper.rb +0 -58
- data/lib/appium_lib/common/version.rb +2 -2
- data/lib/appium_lib/common/wait.rb +99 -0
- data/lib/appium_lib/device/touch_actions.rb +3 -0
- data/lib/appium_lib/driver.rb +38 -10
- data/release_notes.md +13 -0
- metadata +4 -2
data/docs/docs.md
CHANGED
@@ -41,16 +41,6 @@ driver.rotate :landscape
|
|
41
41
|
driver.rotate :portrait
|
42
42
|
```
|
43
43
|
|
44
|
-
--
|
45
|
-
|
46
|
-
Tag Name | UIA
|
47
|
-
--:|:--
|
48
|
-
button | UIAButton
|
49
|
-
textfield | UIATextField
|
50
|
-
secure | UIASecureTextField
|
51
|
-
text | UIAStaticText
|
52
|
-
|
53
|
-
--
|
54
44
|
|
55
45
|
- `status["value"]["build"]["revision"]` Discover the Appium rev running on the server.
|
56
46
|
- `driver.keyboard.send_keys "msg"` Sends keys to currently active element
|
@@ -141,11 +131,11 @@ alert.dismiss
|
|
141
131
|
# Secure textfield example.
|
142
132
|
#
|
143
133
|
# Find using default value
|
144
|
-
s =
|
134
|
+
s = textfield 'Password'
|
145
135
|
# Enter password
|
146
136
|
s.send_keys 'hello'
|
147
137
|
# Check value
|
148
|
-
s.value ==
|
138
|
+
s.value == ios_password('hello'.length)
|
149
139
|
```
|
150
140
|
|
151
141
|
[routing.js](https://github.com/appium/appium/blob/master/app/routing.js#L69) lists not yet implemented end points.
|
data/docs/ios_docs.md
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
##### [load_appium_txt](https://github.com/appium/ruby_lib/blob/
|
1
|
+
##### [load_appium_txt](https://github.com/appium/ruby_lib/blob/a13158fb926212d84f26120c3bc5355c8cd34baf/lib/appium_lib/driver.rb#L72)
|
2
2
|
|
3
3
|
> def self.load_appium_txt opts={}
|
4
4
|
|
@@ -27,7 +27,7 @@ __Returns:__
|
|
27
27
|
|
28
28
|
--
|
29
29
|
|
30
|
-
##### [symbolize_keys](https://github.com/appium/ruby_lib/blob/
|
30
|
+
##### [symbolize_keys](https://github.com/appium/ruby_lib/blob/a13158fb926212d84f26120c3bc5355c8cd34baf/lib/appium_lib/driver.rb#L142)
|
31
31
|
|
32
32
|
> def self.symbolize_keys hash
|
33
33
|
|
@@ -38,15 +38,17 @@ https://github.com/rails/docrails/blob/a3b1105ada3da64acfa3843b164b14b734456a50/
|
|
38
38
|
|
39
39
|
--
|
40
40
|
|
41
|
-
##### [promote_singleton_appium_methods](https://github.com/appium/ruby_lib/blob/
|
42
|
-
|
43
|
-
> def self.promote_singleton_appium_methods main_module
|
41
|
+
##### [promote_singleton_appium_methods](https://github.com/appium/ruby_lib/blob/a13158fb926212d84f26120c3bc5355c8cd34baf/lib/appium_lib/driver.rb#L155)
|
44
42
|
|
43
|
+
> def self.promote_singleton_appium_methods modules
|
45
44
|
|
45
|
+
if modules is a module instead of an array, then the constants of
|
46
|
+
that module are promoted on.
|
47
|
+
otherwise, the array of modules will be used as the promotion target.
|
46
48
|
|
47
49
|
--
|
48
50
|
|
49
|
-
##### [promote_appium_methods](https://github.com/appium/ruby_lib/blob/
|
51
|
+
##### [promote_appium_methods](https://github.com/appium/ruby_lib/blob/a13158fb926212d84f26120c3bc5355c8cd34baf/lib/appium_lib/driver.rb#L195)
|
50
52
|
|
51
53
|
> def self.promote_appium_methods class_array
|
52
54
|
|
@@ -64,7 +66,7 @@ __Parameters:__
|
|
64
66
|
|
65
67
|
--
|
66
68
|
|
67
|
-
##### [global_webdriver_http_sleep](https://github.com/appium/ruby_lib/blob/
|
69
|
+
##### [global_webdriver_http_sleep](https://github.com/appium/ruby_lib/blob/a13158fb926212d84f26120c3bc5355c8cd34baf/lib/appium_lib/driver.rb#L228)
|
68
70
|
|
69
71
|
> def global_webdriver_http_sleep
|
70
72
|
|
@@ -72,7 +74,7 @@ The amount to sleep in seconds before every webdriver http call.
|
|
72
74
|
|
73
75
|
--
|
74
76
|
|
75
|
-
##### [global_webdriver_http_sleep=](https://github.com/appium/ruby_lib/blob/
|
77
|
+
##### [global_webdriver_http_sleep=](https://github.com/appium/ruby_lib/blob/a13158fb926212d84f26120c3bc5355c8cd34baf/lib/appium_lib/driver.rb#L228)
|
76
78
|
|
77
79
|
> def global_webdriver_http_sleep=(value)
|
78
80
|
|
@@ -80,7 +82,7 @@ The amount to sleep in seconds before every webdriver http call.
|
|
80
82
|
|
81
83
|
--
|
82
84
|
|
83
|
-
##### [caps](https://github.com/appium/ruby_lib/blob/
|
85
|
+
##### [caps](https://github.com/appium/ruby_lib/blob/a13158fb926212d84f26120c3bc5355c8cd34baf/lib/appium_lib/driver.rb#L228)
|
84
86
|
|
85
87
|
> def caps
|
86
88
|
|
@@ -88,7 +90,7 @@ The amount to sleep in seconds before every webdriver http call.
|
|
88
90
|
|
89
91
|
--
|
90
92
|
|
91
|
-
##### [caps=](https://github.com/appium/ruby_lib/blob/
|
93
|
+
##### [caps=](https://github.com/appium/ruby_lib/blob/a13158fb926212d84f26120c3bc5355c8cd34baf/lib/appium_lib/driver.rb#L228)
|
92
94
|
|
93
95
|
> def caps=(value)
|
94
96
|
|
@@ -96,7 +98,7 @@ The amount to sleep in seconds before every webdriver http call.
|
|
96
98
|
|
97
99
|
--
|
98
100
|
|
99
|
-
##### [custom_url](https://github.com/appium/ruby_lib/blob/
|
101
|
+
##### [custom_url](https://github.com/appium/ruby_lib/blob/a13158fb926212d84f26120c3bc5355c8cd34baf/lib/appium_lib/driver.rb#L228)
|
100
102
|
|
101
103
|
> def custom_url
|
102
104
|
|
@@ -104,7 +106,7 @@ The amount to sleep in seconds before every webdriver http call.
|
|
104
106
|
|
105
107
|
--
|
106
108
|
|
107
|
-
##### [custom_url=](https://github.com/appium/ruby_lib/blob/
|
109
|
+
##### [custom_url=](https://github.com/appium/ruby_lib/blob/a13158fb926212d84f26120c3bc5355c8cd34baf/lib/appium_lib/driver.rb#L228)
|
108
110
|
|
109
111
|
> def custom_url=(value)
|
110
112
|
|
@@ -112,7 +114,7 @@ The amount to sleep in seconds before every webdriver http call.
|
|
112
114
|
|
113
115
|
--
|
114
116
|
|
115
|
-
##### [export_session](https://github.com/appium/ruby_lib/blob/
|
117
|
+
##### [export_session](https://github.com/appium/ruby_lib/blob/a13158fb926212d84f26120c3bc5355c8cd34baf/lib/appium_lib/driver.rb#L228)
|
116
118
|
|
117
119
|
> def export_session
|
118
120
|
|
@@ -120,7 +122,7 @@ The amount to sleep in seconds before every webdriver http call.
|
|
120
122
|
|
121
123
|
--
|
122
124
|
|
123
|
-
##### [export_session=](https://github.com/appium/ruby_lib/blob/
|
125
|
+
##### [export_session=](https://github.com/appium/ruby_lib/blob/a13158fb926212d84f26120c3bc5355c8cd34baf/lib/appium_lib/driver.rb#L228)
|
124
126
|
|
125
127
|
> def export_session=(value)
|
126
128
|
|
@@ -128,7 +130,7 @@ The amount to sleep in seconds before every webdriver http call.
|
|
128
130
|
|
129
131
|
--
|
130
132
|
|
131
|
-
##### [default_wait](https://github.com/appium/ruby_lib/blob/
|
133
|
+
##### [default_wait](https://github.com/appium/ruby_lib/blob/a13158fb926212d84f26120c3bc5355c8cd34baf/lib/appium_lib/driver.rb#L228)
|
132
134
|
|
133
135
|
> def default_wait
|
134
136
|
|
@@ -141,7 +143,7 @@ __Returns:__
|
|
141
143
|
|
142
144
|
--
|
143
145
|
|
144
|
-
##### [default_wait=](https://github.com/appium/ruby_lib/blob/
|
146
|
+
##### [default_wait=](https://github.com/appium/ruby_lib/blob/a13158fb926212d84f26120c3bc5355c8cd34baf/lib/appium_lib/driver.rb#L228)
|
145
147
|
|
146
148
|
> def default_wait=(value)
|
147
149
|
|
@@ -149,7 +151,7 @@ The amount to sleep in seconds before every webdriver http call.
|
|
149
151
|
|
150
152
|
--
|
151
153
|
|
152
|
-
##### [last_waits](https://github.com/appium/ruby_lib/blob/
|
154
|
+
##### [last_waits](https://github.com/appium/ruby_lib/blob/a13158fb926212d84f26120c3bc5355c8cd34baf/lib/appium_lib/driver.rb#L228)
|
153
155
|
|
154
156
|
> def last_waits
|
155
157
|
|
@@ -157,7 +159,7 @@ The amount to sleep in seconds before every webdriver http call.
|
|
157
159
|
|
158
160
|
--
|
159
161
|
|
160
|
-
##### [last_waits=](https://github.com/appium/ruby_lib/blob/
|
162
|
+
##### [last_waits=](https://github.com/appium/ruby_lib/blob/a13158fb926212d84f26120c3bc5355c8cd34baf/lib/appium_lib/driver.rb#L228)
|
161
163
|
|
162
164
|
> def last_waits=(value)
|
163
165
|
|
@@ -165,7 +167,7 @@ The amount to sleep in seconds before every webdriver http call.
|
|
165
167
|
|
166
168
|
--
|
167
169
|
|
168
|
-
##### [sauce_username](https://github.com/appium/ruby_lib/blob/
|
170
|
+
##### [sauce_username](https://github.com/appium/ruby_lib/blob/a13158fb926212d84f26120c3bc5355c8cd34baf/lib/appium_lib/driver.rb#L228)
|
169
171
|
|
170
172
|
> def sauce_username
|
171
173
|
|
@@ -173,7 +175,7 @@ The amount to sleep in seconds before every webdriver http call.
|
|
173
175
|
|
174
176
|
--
|
175
177
|
|
176
|
-
##### [sauce_username=](https://github.com/appium/ruby_lib/blob/
|
178
|
+
##### [sauce_username=](https://github.com/appium/ruby_lib/blob/a13158fb926212d84f26120c3bc5355c8cd34baf/lib/appium_lib/driver.rb#L228)
|
177
179
|
|
178
180
|
> def sauce_username=(value)
|
179
181
|
|
@@ -181,7 +183,7 @@ The amount to sleep in seconds before every webdriver http call.
|
|
181
183
|
|
182
184
|
--
|
183
185
|
|
184
|
-
##### [sauce_access_key](https://github.com/appium/ruby_lib/blob/
|
186
|
+
##### [sauce_access_key](https://github.com/appium/ruby_lib/blob/a13158fb926212d84f26120c3bc5355c8cd34baf/lib/appium_lib/driver.rb#L228)
|
185
187
|
|
186
188
|
> def sauce_access_key
|
187
189
|
|
@@ -189,7 +191,7 @@ The amount to sleep in seconds before every webdriver http call.
|
|
189
191
|
|
190
192
|
--
|
191
193
|
|
192
|
-
##### [sauce_access_key=](https://github.com/appium/ruby_lib/blob/
|
194
|
+
##### [sauce_access_key=](https://github.com/appium/ruby_lib/blob/a13158fb926212d84f26120c3bc5355c8cd34baf/lib/appium_lib/driver.rb#L228)
|
193
195
|
|
194
196
|
> def sauce_access_key=(value)
|
195
197
|
|
@@ -197,7 +199,7 @@ The amount to sleep in seconds before every webdriver http call.
|
|
197
199
|
|
198
200
|
--
|
199
201
|
|
200
|
-
##### [appium_port](https://github.com/appium/ruby_lib/blob/
|
202
|
+
##### [appium_port](https://github.com/appium/ruby_lib/blob/a13158fb926212d84f26120c3bc5355c8cd34baf/lib/appium_lib/driver.rb#L228)
|
201
203
|
|
202
204
|
> def appium_port
|
203
205
|
|
@@ -205,7 +207,7 @@ The amount to sleep in seconds before every webdriver http call.
|
|
205
207
|
|
206
208
|
--
|
207
209
|
|
208
|
-
##### [appium_port=](https://github.com/appium/ruby_lib/blob/
|
210
|
+
##### [appium_port=](https://github.com/appium/ruby_lib/blob/a13158fb926212d84f26120c3bc5355c8cd34baf/lib/appium_lib/driver.rb#L228)
|
209
211
|
|
210
212
|
> def appium_port=(value)
|
211
213
|
|
@@ -213,7 +215,7 @@ The amount to sleep in seconds before every webdriver http call.
|
|
213
215
|
|
214
216
|
--
|
215
217
|
|
216
|
-
##### [appium_device](https://github.com/appium/ruby_lib/blob/
|
218
|
+
##### [appium_device](https://github.com/appium/ruby_lib/blob/a13158fb926212d84f26120c3bc5355c8cd34baf/lib/appium_lib/driver.rb#L228)
|
217
219
|
|
218
220
|
> def appium_device
|
219
221
|
|
@@ -221,7 +223,7 @@ The amount to sleep in seconds before every webdriver http call.
|
|
221
223
|
|
222
224
|
--
|
223
225
|
|
224
|
-
##### [appium_device=](https://github.com/appium/ruby_lib/blob/
|
226
|
+
##### [appium_device=](https://github.com/appium/ruby_lib/blob/a13158fb926212d84f26120c3bc5355c8cd34baf/lib/appium_lib/driver.rb#L228)
|
225
227
|
|
226
228
|
> def appium_device=(value)
|
227
229
|
|
@@ -229,7 +231,7 @@ The amount to sleep in seconds before every webdriver http call.
|
|
229
231
|
|
230
232
|
--
|
231
233
|
|
232
|
-
##### [appium_debug](https://github.com/appium/ruby_lib/blob/
|
234
|
+
##### [appium_debug](https://github.com/appium/ruby_lib/blob/a13158fb926212d84f26120c3bc5355c8cd34baf/lib/appium_lib/driver.rb#L228)
|
233
235
|
|
234
236
|
> def appium_debug
|
235
237
|
|
@@ -237,7 +239,7 @@ The amount to sleep in seconds before every webdriver http call.
|
|
237
239
|
|
238
240
|
--
|
239
241
|
|
240
|
-
##### [appium_debug=](https://github.com/appium/ruby_lib/blob/
|
242
|
+
##### [appium_debug=](https://github.com/appium/ruby_lib/blob/a13158fb926212d84f26120c3bc5355c8cd34baf/lib/appium_lib/driver.rb#L228)
|
241
243
|
|
242
244
|
> def appium_debug=(value)
|
243
245
|
|
@@ -245,7 +247,7 @@ The amount to sleep in seconds before every webdriver http call.
|
|
245
247
|
|
246
248
|
--
|
247
249
|
|
248
|
-
##### [initialize](https://github.com/appium/ruby_lib/blob/
|
250
|
+
##### [initialize](https://github.com/appium/ruby_lib/blob/a13158fb926212d84f26120c3bc5355c8cd34baf/lib/appium_lib/driver.rb#L259)
|
249
251
|
|
250
252
|
> def initialize opts={}
|
251
253
|
|
@@ -276,7 +278,7 @@ __Returns:__
|
|
276
278
|
|
277
279
|
--
|
278
280
|
|
279
|
-
##### [driver_attributes](https://github.com/appium/ruby_lib/blob/
|
281
|
+
##### [driver_attributes](https://github.com/appium/ruby_lib/blob/a13158fb926212d84f26120c3bc5355c8cd34baf/lib/appium_lib/driver.rb#L334)
|
280
282
|
|
281
283
|
> def driver_attributes
|
282
284
|
|
@@ -284,7 +286,7 @@ Returns a hash of the driver attributes
|
|
284
286
|
|
285
287
|
--
|
286
288
|
|
287
|
-
##### [device_is_android?](https://github.com/appium/ruby_lib/blob/
|
289
|
+
##### [device_is_android?](https://github.com/appium/ruby_lib/blob/a13158fb926212d84f26120c3bc5355c8cd34baf/lib/appium_lib/driver.rb#L354)
|
288
290
|
|
289
291
|
> def device_is_android?
|
290
292
|
|
@@ -296,7 +298,7 @@ __Returns:__
|
|
296
298
|
|
297
299
|
--
|
298
300
|
|
299
|
-
##### [appium_server_version](https://github.com/appium/ruby_lib/blob/
|
301
|
+
##### [appium_server_version](https://github.com/appium/ruby_lib/blob/a13158fb926212d84f26120c3bc5355c8cd34baf/lib/appium_lib/driver.rb#L370)
|
300
302
|
|
301
303
|
> def appium_server_version
|
302
304
|
|
@@ -317,19 +319,24 @@ __Returns:__
|
|
317
319
|
|
318
320
|
--
|
319
321
|
|
320
|
-
##### [absolute_app_path](https://github.com/appium/ruby_lib/blob/
|
322
|
+
##### [absolute_app_path](https://github.com/appium/ruby_lib/blob/a13158fb926212d84f26120c3bc5355c8cd34baf/lib/appium_lib/driver.rb#L382)
|
321
323
|
|
322
|
-
> def self.absolute_app_path
|
324
|
+
> def self.absolute_app_path opts
|
323
325
|
|
324
326
|
Converts app_path to an absolute path.
|
325
327
|
|
328
|
+
opts is the full options hash (caps and appium_lib). If server_url is set
|
329
|
+
then the app path is used as is.
|
330
|
+
|
331
|
+
if app isn't set then an error is raised.
|
332
|
+
|
326
333
|
__Returns:__
|
327
334
|
|
328
335
|
[String] APP_PATH as an absolute path
|
329
336
|
|
330
337
|
--
|
331
338
|
|
332
|
-
##### [server_url](https://github.com/appium/ruby_lib/blob/
|
339
|
+
##### [server_url](https://github.com/appium/ruby_lib/blob/a13158fb926212d84f26120c3bc5355c8cd34baf/lib/appium_lib/driver.rb#L415)
|
333
340
|
|
334
341
|
> def server_url
|
335
342
|
|
@@ -341,7 +348,7 @@ __Returns:__
|
|
341
348
|
|
342
349
|
--
|
343
350
|
|
344
|
-
##### [restart](https://github.com/appium/ruby_lib/blob/
|
351
|
+
##### [restart](https://github.com/appium/ruby_lib/blob/a13158fb926212d84f26120c3bc5355c8cd34baf/lib/appium_lib/driver.rb#L426)
|
345
352
|
|
346
353
|
> def restart
|
347
354
|
|
@@ -353,7 +360,7 @@ __Returns:__
|
|
353
360
|
|
354
361
|
--
|
355
362
|
|
356
|
-
##### [driver](https://github.com/appium/ruby_lib/blob/
|
363
|
+
##### [driver](https://github.com/appium/ruby_lib/blob/a13158fb926212d84f26120c3bc5355c8cd34baf/lib/appium_lib/driver.rb#L433)
|
357
364
|
|
358
365
|
> def driver
|
359
366
|
|
@@ -365,7 +372,7 @@ __Returns:__
|
|
365
372
|
|
366
373
|
--
|
367
374
|
|
368
|
-
##### [screenshot](https://github.com/appium/ruby_lib/blob/
|
375
|
+
##### [screenshot](https://github.com/appium/ruby_lib/blob/a13158fb926212d84f26120c3bc5355c8cd34baf/lib/appium_lib/driver.rb#L443)
|
369
376
|
|
370
377
|
> def screenshot png_save_path
|
371
378
|
|
@@ -383,7 +390,7 @@ __Returns:__
|
|
383
390
|
|
384
391
|
--
|
385
392
|
|
386
|
-
##### [driver_quit](https://github.com/appium/ruby_lib/blob/
|
393
|
+
##### [driver_quit](https://github.com/appium/ruby_lib/blob/a13158fb926212d84f26120c3bc5355c8cd34baf/lib/appium_lib/driver.rb#L450)
|
387
394
|
|
388
395
|
> def driver_quit
|
389
396
|
|
@@ -395,7 +402,7 @@ __Returns:__
|
|
395
402
|
|
396
403
|
--
|
397
404
|
|
398
|
-
##### [start_driver](https://github.com/appium/ruby_lib/blob/
|
405
|
+
##### [start_driver](https://github.com/appium/ruby_lib/blob/a13158fb926212d84f26120c3bc5355c8cd34baf/lib/appium_lib/driver.rb#L458)
|
399
406
|
|
400
407
|
> def start_driver
|
401
408
|
|
@@ -407,7 +414,7 @@ __Returns:__
|
|
407
414
|
|
408
415
|
--
|
409
416
|
|
410
|
-
##### [no_wait](https://github.com/appium/ruby_lib/blob/
|
417
|
+
##### [no_wait](https://github.com/appium/ruby_lib/blob/a13158fb926212d84f26120c3bc5355c8cd34baf/lib/appium_lib/driver.rb#L485)
|
411
418
|
|
412
419
|
> def no_wait
|
413
420
|
|
@@ -415,7 +422,7 @@ Set implicit wait and default_wait to zero.
|
|
415
422
|
|
416
423
|
--
|
417
424
|
|
418
|
-
##### [set_wait](https://github.com/appium/ruby_lib/blob/
|
425
|
+
##### [set_wait](https://github.com/appium/ruby_lib/blob/a13158fb926212d84f26120c3bc5355c8cd34baf/lib/appium_lib/driver.rb#L504)
|
419
426
|
|
420
427
|
> def set_wait timeout=nil
|
421
428
|
|
@@ -440,7 +447,7 @@ __Returns:__
|
|
440
447
|
|
441
448
|
--
|
442
449
|
|
443
|
-
##### [exists](https://github.com/appium/ruby_lib/blob/
|
450
|
+
##### [exists](https://github.com/appium/ruby_lib/blob/a13158fb926212d84f26120c3bc5355c8cd34baf/lib/appium_lib/driver.rb#L538)
|
444
451
|
|
445
452
|
> def exists pre_check=0, post_check=@default_wait, &search_block
|
446
453
|
|
@@ -466,7 +473,7 @@ __Returns:__
|
|
466
473
|
|
467
474
|
--
|
468
475
|
|
469
|
-
##### [execute_script](https://github.com/appium/ruby_lib/blob/
|
476
|
+
##### [execute_script](https://github.com/appium/ruby_lib/blob/a13158fb926212d84f26120c3bc5355c8cd34baf/lib/appium_lib/driver.rb#L562)
|
470
477
|
|
471
478
|
> def execute_script script, *args
|
472
479
|
|
@@ -484,7 +491,7 @@ __Returns:__
|
|
484
491
|
|
485
492
|
--
|
486
493
|
|
487
|
-
##### [find_elements](https://github.com/appium/ruby_lib/blob/
|
494
|
+
##### [find_elements](https://github.com/appium/ruby_lib/blob/a13158fb926212d84f26120c3bc5355c8cd34baf/lib/appium_lib/driver.rb#L570)
|
488
495
|
|
489
496
|
> def find_elements *args
|
490
497
|
|
@@ -500,7 +507,7 @@ __Returns:__
|
|
500
507
|
|
501
508
|
--
|
502
509
|
|
503
|
-
##### [find_element](https://github.com/appium/ruby_lib/blob/
|
510
|
+
##### [find_element](https://github.com/appium/ruby_lib/blob/a13158fb926212d84f26120c3bc5355c8cd34baf/lib/appium_lib/driver.rb#L578)
|
504
511
|
|
505
512
|
> def find_element *args
|
506
513
|
|
@@ -516,7 +523,7 @@ __Returns:__
|
|
516
523
|
|
517
524
|
--
|
518
525
|
|
519
|
-
##### [x](https://github.com/appium/ruby_lib/blob/
|
526
|
+
##### [x](https://github.com/appium/ruby_lib/blob/a13158fb926212d84f26120c3bc5355c8cd34baf/lib/appium_lib/driver.rb#L585)
|
520
527
|
|
521
528
|
> def x
|
522
529
|
|
@@ -529,7 +536,7 @@ __Returns:__
|
|
529
536
|
|
530
537
|
--
|
531
538
|
|
532
|
-
##### [NoArgMethods](https://github.com/appium/ruby_lib/blob/
|
539
|
+
##### [NoArgMethods](https://github.com/appium/ruby_lib/blob/a13158fb926212d84f26120c3bc5355c8cd34baf/lib/appium_lib/device/device.rb#L7)
|
533
540
|
|
534
541
|
> NoArgMethods = {
|
535
542
|
|
@@ -537,7 +544,7 @@ __Returns:__
|
|
537
544
|
|
538
545
|
--
|
539
546
|
|
540
|
-
##### [app_strings](https://github.com/appium/ruby_lib/blob/
|
547
|
+
##### [app_strings](https://github.com/appium/ruby_lib/blob/a13158fb926212d84f26120c3bc5355c8cd34baf/lib/appium_lib/device/device.rb#L22)
|
541
548
|
|
542
549
|
> def app_strings
|
543
550
|
|
@@ -548,7 +555,7 @@ app_strings #=> "TransitionsTitle"=>"Transitions", "WebTitle"=>"Web"
|
|
548
555
|
|
549
556
|
--
|
550
557
|
|
551
|
-
##### [background_app](https://github.com/appium/ruby_lib/blob/
|
558
|
+
##### [background_app](https://github.com/appium/ruby_lib/blob/a13158fb926212d84f26120c3bc5355c8cd34baf/lib/appium_lib/device/device.rb#L28)
|
552
559
|
|
553
560
|
> def background_app
|
554
561
|
|
@@ -557,7 +564,7 @@ This is a blocking application
|
|
557
564
|
|
558
565
|
--
|
559
566
|
|
560
|
-
##### [current_activity](https://github.com/appium/ruby_lib/blob/
|
567
|
+
##### [current_activity](https://github.com/appium/ruby_lib/blob/a13158fb926212d84f26120c3bc5355c8cd34baf/lib/appium_lib/device/device.rb#L33)
|
561
568
|
|
562
569
|
> def current_activity
|
563
570
|
|
@@ -565,7 +572,7 @@ This is a blocking application
|
|
565
572
|
|
566
573
|
--
|
567
574
|
|
568
|
-
##### [launch](https://github.com/appium/ruby_lib/blob/
|
575
|
+
##### [launch](https://github.com/appium/ruby_lib/blob/a13158fb926212d84f26120c3bc5355c8cd34baf/lib/appium_lib/device/device.rb#L35)
|
569
576
|
|
570
577
|
> def launch
|
571
578
|
|
@@ -573,7 +580,7 @@ Start the simulator and applicaton configured with desired capabilities
|
|
573
580
|
|
574
581
|
--
|
575
582
|
|
576
|
-
##### [reset](https://github.com/appium/ruby_lib/blob/
|
583
|
+
##### [reset](https://github.com/appium/ruby_lib/blob/a13158fb926212d84f26120c3bc5355c8cd34baf/lib/appium_lib/device/device.rb#L38)
|
577
584
|
|
578
585
|
> def reset
|
579
586
|
|
@@ -581,7 +588,7 @@ Reset the device, relaunching the application.
|
|
581
588
|
|
582
589
|
--
|
583
590
|
|
584
|
-
##### [shake](https://github.com/appium/ruby_lib/blob/
|
591
|
+
##### [shake](https://github.com/appium/ruby_lib/blob/a13158fb926212d84f26120c3bc5355c8cd34baf/lib/appium_lib/device/device.rb#L41)
|
585
592
|
|
586
593
|
> def shake
|
587
594
|
|
@@ -589,7 +596,7 @@ Cause the device to shake
|
|
589
596
|
|
590
597
|
--
|
591
598
|
|
592
|
-
##### [toggle_flight_mode](https://github.com/appium/ruby_lib/blob/
|
599
|
+
##### [toggle_flight_mode](https://github.com/appium/ruby_lib/blob/a13158fb926212d84f26120c3bc5355c8cd34baf/lib/appium_lib/device/device.rb#L44)
|
593
600
|
|
594
601
|
> def toggle_flight_mode
|
595
602
|
|
@@ -597,7 +604,7 @@ toggle flight mode on or off
|
|
597
604
|
|
598
605
|
--
|
599
606
|
|
600
|
-
##### [hide_keyboard](https://github.com/appium/ruby_lib/blob/
|
607
|
+
##### [hide_keyboard](https://github.com/appium/ruby_lib/blob/a13158fb926212d84f26120c3bc5355c8cd34baf/lib/appium_lib/device/device.rb#L47)
|
601
608
|
|
602
609
|
> def hide_keyboard
|
603
610
|
|
@@ -610,7 +617,7 @@ Defaults to 'Done'.
|
|
610
617
|
|
611
618
|
--
|
612
619
|
|
613
|
-
##### [press_keycode](https://github.com/appium/ruby_lib/blob/
|
620
|
+
##### [press_keycode](https://github.com/appium/ruby_lib/blob/a13158fb926212d84f26120c3bc5355c8cd34baf/lib/appium_lib/device/device.rb#L56)
|
614
621
|
|
615
622
|
> def press_keycode
|
616
623
|
|
@@ -625,7 +632,7 @@ __Parameters:__
|
|
625
632
|
|
626
633
|
--
|
627
634
|
|
628
|
-
##### [long_press_keycode](https://github.com/appium/ruby_lib/blob/
|
635
|
+
##### [long_press_keycode](https://github.com/appium/ruby_lib/blob/a13158fb926212d84f26120c3bc5355c8cd34baf/lib/appium_lib/device/device.rb#L62)
|
629
636
|
|
630
637
|
> def long_press_keycode
|
631
638
|
|
@@ -640,7 +647,7 @@ __Parameters:__
|
|
640
647
|
|
641
648
|
--
|
642
649
|
|
643
|
-
##### [push_file](https://github.com/appium/ruby_lib/blob/
|
650
|
+
##### [push_file](https://github.com/appium/ruby_lib/blob/a13158fb926212d84f26120c3bc5355c8cd34baf/lib/appium_lib/device/device.rb#L68)
|
644
651
|
|
645
652
|
> def push_file
|
646
653
|
|
@@ -654,7 +661,7 @@ __Parameters:__
|
|
654
661
|
|
655
662
|
--
|
656
663
|
|
657
|
-
##### [pull_file](https://github.com/appium/ruby_lib/blob/
|
664
|
+
##### [pull_file](https://github.com/appium/ruby_lib/blob/a13158fb926212d84f26120c3bc5355c8cd34baf/lib/appium_lib/device/device.rb#L73)
|
658
665
|
|
659
666
|
> def pull_file
|
660
667
|
|
@@ -671,7 +678,7 @@ __Parameters:__
|
|
671
678
|
|
672
679
|
--
|
673
680
|
|
674
|
-
##### [pull_folder](https://github.com/appium/ruby_lib/blob/
|
681
|
+
##### [pull_folder](https://github.com/appium/ruby_lib/blob/a13158fb926212d84f26120c3bc5355c8cd34baf/lib/appium_lib/device/device.rb#L83)
|
675
682
|
|
676
683
|
> def pull_folder
|
677
684
|
|
@@ -686,7 +693,7 @@ __Parameters:__
|
|
686
693
|
|
687
694
|
--
|
688
695
|
|
689
|
-
##### [extend_search_contexts](https://github.com/appium/ruby_lib/blob/
|
696
|
+
##### [extend_search_contexts](https://github.com/appium/ruby_lib/blob/a13158fb926212d84f26120c3bc5355c8cd34baf/lib/appium_lib/device/device.rb#L274)
|
690
697
|
|
691
698
|
> def extend_search_contexts
|
692
699
|
|
@@ -694,7 +701,7 @@ __Parameters:__
|
|
694
701
|
|
695
702
|
--
|
696
703
|
|
697
|
-
##### [accessiblity_id_find](https://github.com/appium/ruby_lib/blob/
|
704
|
+
##### [accessiblity_id_find](https://github.com/appium/ruby_lib/blob/a13158fb926212d84f26120c3bc5355c8cd34baf/lib/appium_lib/device/device.rb#L274)
|
698
705
|
|
699
706
|
> def accessiblity_id_find
|
700
707
|
|
@@ -706,7 +713,7 @@ find_element/s with their accessibility_id
|
|
706
713
|
|
707
714
|
--
|
708
715
|
|
709
|
-
##### [add_touch_actions](https://github.com/appium/ruby_lib/blob/
|
716
|
+
##### [add_touch_actions](https://github.com/appium/ruby_lib/blob/a13158fb926212d84f26120c3bc5355c8cd34baf/lib/appium_lib/device/device.rb#L280)
|
710
717
|
|
711
718
|
> def add_touch_actions
|
712
719
|
|
@@ -714,7 +721,7 @@ find_element/s with their accessibility_id
|
|
714
721
|
|
715
722
|
--
|
716
723
|
|
717
|
-
##### [set_context](https://github.com/appium/ruby_lib/blob/
|
724
|
+
##### [set_context](https://github.com/appium/ruby_lib/blob/a13158fb926212d84f26120c3bc5355c8cd34baf/lib/appium_lib/device/device.rb#L304)
|
718
725
|
|
719
726
|
> def set_context
|
720
727
|
|
@@ -729,7 +736,7 @@ __Parameters:__
|
|
729
736
|
|
730
737
|
--
|
731
738
|
|
732
|
-
##### [current_context](https://github.com/appium/ruby_lib/blob/
|
739
|
+
##### [current_context](https://github.com/appium/ruby_lib/blob/a13158fb926212d84f26120c3bc5355c8cd34baf/lib/appium_lib/device/device.rb#L312)
|
733
740
|
|
734
741
|
> def current_context
|
735
742
|
|
@@ -741,7 +748,7 @@ __Returns:__
|
|
741
748
|
|
742
749
|
--
|
743
750
|
|
744
|
-
##### [available_contexts](https://github.com/appium/ruby_lib/blob/
|
751
|
+
##### [available_contexts](https://github.com/appium/ruby_lib/blob/a13158fb926212d84f26120c3bc5355c8cd34baf/lib/appium_lib/device/device.rb#L315)
|
745
752
|
|
746
753
|
> def available_contexts
|
747
754
|
|
@@ -753,7 +760,7 @@ __Returns:__
|
|
753
760
|
|
754
761
|
--
|
755
762
|
|
756
|
-
##### [within_context](https://github.com/appium/ruby_lib/blob/
|
763
|
+
##### [within_context](https://github.com/appium/ruby_lib/blob/a13158fb926212d84f26120c3bc5355c8cd34baf/lib/appium_lib/device/device.rb#L325)
|
757
764
|
|
758
765
|
> def within_context(context)
|
759
766
|
|
@@ -769,7 +776,7 @@ __Parameters:__
|
|
769
776
|
|
770
777
|
--
|
771
778
|
|
772
|
-
##### [switch_to_default_context](https://github.com/appium/ruby_lib/blob/
|
779
|
+
##### [switch_to_default_context](https://github.com/appium/ruby_lib/blob/a13158fb926212d84f26120c3bc5355c8cd34baf/lib/appium_lib/device/device.rb#L333)
|
773
780
|
|
774
781
|
> def switch_to_default_context
|
775
782
|
|
@@ -777,7 +784,7 @@ Change to the default context. This is equivalent to `set_context nil`.
|
|
777
784
|
|
778
785
|
--
|
779
786
|
|
780
|
-
##### [pinch](https://github.com/appium/ruby_lib/blob/
|
787
|
+
##### [pinch](https://github.com/appium/ruby_lib/blob/a13158fb926212d84f26120c3bc5355c8cd34baf/lib/appium_lib/device/multi_touch.rb#L30)
|
781
788
|
|
782
789
|
> def pinch(percentage=25, auto_perform=true)
|
783
790
|
|
@@ -796,7 +803,7 @@ __Parameters:__
|
|
796
803
|
|
797
804
|
--
|
798
805
|
|
799
|
-
##### [zoom](https://github.com/appium/ruby_lib/blob/
|
806
|
+
##### [zoom](https://github.com/appium/ruby_lib/blob/a13158fb926212d84f26120c3bc5355c8cd34baf/lib/appium_lib/device/multi_touch.rb#L58)
|
800
807
|
|
801
808
|
> def zoom(percentage=200, auto_perform=true)
|
802
809
|
|
@@ -815,7 +822,7 @@ __Parameters:__
|
|
815
822
|
|
816
823
|
--
|
817
824
|
|
818
|
-
##### [initialize](https://github.com/appium/ruby_lib/blob/
|
825
|
+
##### [initialize](https://github.com/appium/ruby_lib/blob/a13158fb926212d84f26120c3bc5355c8cd34baf/lib/appium_lib/device/multi_touch.rb#L79)
|
819
826
|
|
820
827
|
> def initialize
|
821
828
|
|
@@ -827,7 +834,7 @@ __Returns:__
|
|
827
834
|
|
828
835
|
--
|
829
836
|
|
830
|
-
##### [add](https://github.com/appium/ruby_lib/blob/
|
837
|
+
##### [add](https://github.com/appium/ruby_lib/blob/a13158fb926212d84f26120c3bc5355c8cd34baf/lib/appium_lib/device/multi_touch.rb#L85)
|
831
838
|
|
832
839
|
> def add(chain)
|
833
840
|
|
@@ -839,7 +846,7 @@ __Parameters:__
|
|
839
846
|
|
840
847
|
--
|
841
848
|
|
842
|
-
##### [perform](https://github.com/appium/ruby_lib/blob/
|
849
|
+
##### [perform](https://github.com/appium/ruby_lib/blob/a13158fb926212d84f26120c3bc5355c8cd34baf/lib/appium_lib/device/multi_touch.rb#L90)
|
843
850
|
|
844
851
|
> def perform
|
845
852
|
|
@@ -847,7 +854,7 @@ Ask Appium to perform the actions
|
|
847
854
|
|
848
855
|
--
|
849
856
|
|
850
|
-
##### [ACTIONS](https://github.com/appium/ruby_lib/blob/
|
857
|
+
##### [ACTIONS](https://github.com/appium/ruby_lib/blob/a13158fb926212d84f26120c3bc5355c8cd34baf/lib/appium_lib/device/touch_actions.rb#L12)
|
851
858
|
|
852
859
|
> ACTIONS = [:move_to, :long_press, :press, :release, :tap, :wait, :perform]
|
853
860
|
|
@@ -855,7 +862,7 @@ Ask Appium to perform the actions
|
|
855
862
|
|
856
863
|
--
|
857
864
|
|
858
|
-
##### [COMPLEX_ACTIONS](https://github.com/appium/ruby_lib/blob/
|
865
|
+
##### [COMPLEX_ACTIONS](https://github.com/appium/ruby_lib/blob/a13158fb926212d84f26120c3bc5355c8cd34baf/lib/appium_lib/device/touch_actions.rb#L13)
|
859
866
|
|
860
867
|
> COMPLEX_ACTIONS = [:swipe]
|
861
868
|
|
@@ -863,7 +870,7 @@ Ask Appium to perform the actions
|
|
863
870
|
|
864
871
|
--
|
865
872
|
|
866
|
-
##### [actions](https://github.com/appium/ruby_lib/blob/
|
873
|
+
##### [actions](https://github.com/appium/ruby_lib/blob/a13158fb926212d84f26120c3bc5355c8cd34baf/lib/appium_lib/device/touch_actions.rb#L27)
|
867
874
|
|
868
875
|
> def actions
|
869
876
|
|
@@ -871,7 +878,7 @@ Returns the value of attribute actions
|
|
871
878
|
|
872
879
|
--
|
873
880
|
|
874
|
-
##### [initialize](https://github.com/appium/ruby_lib/blob/
|
881
|
+
##### [initialize](https://github.com/appium/ruby_lib/blob/a13158fb926212d84f26120c3bc5355c8cd34baf/lib/appium_lib/device/touch_actions.rb#L29)
|
875
882
|
|
876
883
|
> def initialize
|
877
884
|
|
@@ -883,7 +890,7 @@ __Returns:__
|
|
883
890
|
|
884
891
|
--
|
885
892
|
|
886
|
-
##### [move_to](https://github.com/appium/ruby_lib/blob/
|
893
|
+
##### [move_to](https://github.com/appium/ruby_lib/blob/a13158fb926212d84f26120c3bc5355c8cd34baf/lib/appium_lib/device/touch_actions.rb#L37)
|
887
894
|
|
888
895
|
> def move_to(opts)
|
889
896
|
|
@@ -895,7 +902,7 @@ __Parameters:__
|
|
895
902
|
|
896
903
|
--
|
897
904
|
|
898
|
-
##### [long_press](https://github.com/appium/ruby_lib/blob/
|
905
|
+
##### [long_press](https://github.com/appium/ruby_lib/blob/a13158fb926212d84f26120c3bc5355c8cd34baf/lib/appium_lib/device/touch_actions.rb#L47)
|
899
906
|
|
900
907
|
> def long_press(opts)
|
901
908
|
|
@@ -913,7 +920,7 @@ __Parameters:__
|
|
913
920
|
|
914
921
|
--
|
915
922
|
|
916
|
-
##### [press](https://github.com/appium/ruby_lib/blob/
|
923
|
+
##### [press](https://github.com/appium/ruby_lib/blob/a13158fb926212d84f26120c3bc5355c8cd34baf/lib/appium_lib/device/touch_actions.rb#L59)
|
917
924
|
|
918
925
|
> def press(opts)
|
919
926
|
|
@@ -926,7 +933,7 @@ __Parameters:__
|
|
926
933
|
|
927
934
|
--
|
928
935
|
|
929
|
-
##### [release](https://github.com/appium/ruby_lib/blob/
|
936
|
+
##### [release](https://github.com/appium/ruby_lib/blob/a13158fb926212d84f26120c3bc5355c8cd34baf/lib/appium_lib/device/touch_actions.rb#L70)
|
930
937
|
|
931
938
|
> def release(opts=nil)
|
932
939
|
|
@@ -938,7 +945,7 @@ __Parameters:__
|
|
938
945
|
|
939
946
|
--
|
940
947
|
|
941
|
-
##### [tap](https://github.com/appium/ruby_lib/blob/
|
948
|
+
##### [tap](https://github.com/appium/ruby_lib/blob/a13158fb926212d84f26120c3bc5355c8cd34baf/lib/appium_lib/device/touch_actions.rb#L81)
|
942
949
|
|
943
950
|
> def tap(opts)
|
944
951
|
|
@@ -950,7 +957,7 @@ __Parameters:__
|
|
950
957
|
|
951
958
|
--
|
952
959
|
|
953
|
-
##### [wait](https://github.com/appium/ruby_lib/blob/
|
960
|
+
##### [wait](https://github.com/appium/ruby_lib/blob/a13158fb926212d84f26120c3bc5355c8cd34baf/lib/appium_lib/device/touch_actions.rb#L90)
|
954
961
|
|
955
962
|
> def wait(milliseconds)
|
956
963
|
|
@@ -962,19 +969,21 @@ __Parameters:__
|
|
962
969
|
|
963
970
|
--
|
964
971
|
|
965
|
-
##### [swipe](https://github.com/appium/ruby_lib/blob/
|
972
|
+
##### [swipe](https://github.com/appium/ruby_lib/blob/a13158fb926212d84f26120c3bc5355c8cd34baf/lib/appium_lib/device/touch_actions.rb#L104)
|
966
973
|
|
967
974
|
> def swipe(opts)
|
968
975
|
|
969
976
|
Convenience method to peform a swipe.
|
970
977
|
|
978
|
+
Note that iOS 7 simulators have broken swipe.
|
979
|
+
|
971
980
|
__Parameters:__
|
972
981
|
|
973
982
|
[Hash] opts - a customizable set of options
|
974
983
|
|
975
984
|
--
|
976
985
|
|
977
|
-
##### [perform](https://github.com/appium/ruby_lib/blob/
|
986
|
+
##### [perform](https://github.com/appium/ruby_lib/blob/a13158fb926212d84f26120c3bc5355c8cd34baf/lib/appium_lib/device/touch_actions.rb#L119)
|
978
987
|
|
979
988
|
> def perform
|
980
989
|
|
@@ -982,7 +991,7 @@ Ask the driver to perform all actions in this action chain.
|
|
982
991
|
|
983
992
|
--
|
984
993
|
|
985
|
-
##### [cancel](https://github.com/appium/ruby_lib/blob/
|
994
|
+
##### [cancel](https://github.com/appium/ruby_lib/blob/a13158fb926212d84f26120c3bc5355c8cd34baf/lib/appium_lib/device/touch_actions.rb#L125)
|
986
995
|
|
987
996
|
> def cancel
|
988
997
|
|
@@ -990,7 +999,7 @@ Does nothing, currently.
|
|
990
999
|
|
991
1000
|
--
|
992
1001
|
|
993
|
-
##### [chain_method](https://github.com/appium/ruby_lib/blob/
|
1002
|
+
##### [chain_method](https://github.com/appium/ruby_lib/blob/a13158fb926212d84f26120c3bc5355c8cd34baf/lib/appium_lib/device/touch_actions.rb#L133)
|
994
1003
|
|
995
1004
|
> def chain_method(method, args=nil)
|
996
1005
|
|
@@ -998,7 +1007,7 @@ Does nothing, currently.
|
|
998
1007
|
|
999
1008
|
--
|
1000
1009
|
|
1001
|
-
##### [args_with_ele_ref](https://github.com/appium/ruby_lib/blob/
|
1010
|
+
##### [args_with_ele_ref](https://github.com/appium/ruby_lib/blob/a13158fb926212d84f26120c3bc5355c8cd34baf/lib/appium_lib/device/touch_actions.rb#L142)
|
1002
1011
|
|
1003
1012
|
> def args_with_ele_ref(args)
|
1004
1013
|
|
@@ -1006,65 +1015,70 @@ Does nothing, currently.
|
|
1006
1015
|
|
1007
1016
|
--
|
1008
1017
|
|
1009
|
-
##### [
|
1018
|
+
##### [_generic_wait](https://github.com/appium/ruby_lib/blob/a13158fb926212d84f26120c3bc5355c8cd34baf/lib/appium_lib/common/wait.rb#L10)
|
1010
1019
|
|
1011
|
-
> def
|
1020
|
+
> def _generic_wait opts={}, &block
|
1012
1021
|
|
1013
|
-
|
1014
|
-
|
1015
|
-
if .call doesn't raise an exception then it will stop waiting.
|
1022
|
+
Wait code from the selenium Ruby gem
|
1023
|
+
https://github.com/SeleniumHQ/selenium/blob/cf501dda3f0ed12233de51ce8170c0e8090f0c20/rb/lib/selenium/webdriver/common/wait.rb
|
1016
1024
|
|
1017
|
-
|
1025
|
+
--
|
1018
1026
|
|
1019
|
-
|
1027
|
+
##### [_process_wait_opts](https://github.com/appium/ruby_lib/blob/a13158fb926212d84f26120c3bc5355c8cd34baf/lib/appium_lib/common/wait.rb#L55)
|
1020
1028
|
|
1021
|
-
|
1029
|
+
> def _process_wait_opts opts
|
1022
1030
|
|
1023
|
-
|
1024
|
-
Note that max wait 0 means infinity.
|
1031
|
+
process opts before calling _generic_wait
|
1025
1032
|
|
1026
|
-
|
1033
|
+
--
|
1027
1034
|
|
1028
|
-
|
1035
|
+
##### [wait_true](https://github.com/appium/ruby_lib/blob/a13158fb926212d84f26120c3bc5355c8cd34baf/lib/appium_lib/common/wait.rb#L76)
|
1029
1036
|
|
1030
|
-
|
1037
|
+
> def wait_true opts={}, &block
|
1031
1038
|
|
1032
|
-
|
1039
|
+
Check every interval seconds to see if block.call returns a truthy value.
|
1040
|
+
Note this isn't a strict boolean true, any truthy value is accepted.
|
1041
|
+
false and nil are considered failures.
|
1042
|
+
Give up after timeout seconds.
|
1033
1043
|
|
1034
|
-
|
1044
|
+
Wait code from the selenium Ruby gem
|
1045
|
+
https://github.com/SeleniumHQ/selenium/blob/cf501dda3f0ed12233de51ce8170c0e8090f0c20/rb/lib/selenium/webdriver/common/wait.rb
|
1035
1046
|
|
1036
|
-
|
1047
|
+
If only a number is provided then it's treated as the timeout value.
|
1037
1048
|
|
1038
|
-
|
1049
|
+
__Parameters:__
|
1039
1050
|
|
1040
|
-
|
1051
|
+
[Hash] opts - Options
|
1041
1052
|
|
1042
1053
|
--
|
1043
1054
|
|
1044
|
-
##### [
|
1055
|
+
##### [wait](https://github.com/appium/ruby_lib/blob/a13158fb926212d84f26120c3bc5355c8cd34baf/lib/appium_lib/common/wait.rb#L94)
|
1045
1056
|
|
1046
|
-
> def
|
1057
|
+
> def wait opts={}, &block
|
1047
1058
|
|
1048
|
-
Check every
|
1049
|
-
|
1050
|
-
|
1051
|
-
|
1059
|
+
Check every interval seconds to see if block.call doesn't raise an exception.
|
1060
|
+
Give up after timeout seconds.
|
1061
|
+
|
1062
|
+
Wait code from the selenium Ruby gem
|
1063
|
+
https://github.com/SeleniumHQ/selenium/blob/cf501dda3f0ed12233de51ce8170c0e8090f0c20/rb/lib/selenium/webdriver/common/wait.rb
|
1064
|
+
|
1065
|
+
If only a number is provided then it's treated as the timeout value.
|
1052
1066
|
|
1053
1067
|
__Parameters:__
|
1054
1068
|
|
1055
|
-
[
|
1069
|
+
[Hash] opts - Options
|
1056
1070
|
|
1057
|
-
|
1071
|
+
--
|
1058
1072
|
|
1059
|
-
|
1073
|
+
##### [ignore](https://github.com/appium/ruby_lib/blob/a13158fb926212d84f26120c3bc5355c8cd34baf/lib/appium_lib/common/helper.rb#L22)
|
1060
1074
|
|
1061
|
-
|
1075
|
+
> def ignore &block
|
1062
1076
|
|
1063
|
-
|
1077
|
+
Return block.call and ignore any exceptions.
|
1064
1078
|
|
1065
1079
|
--
|
1066
1080
|
|
1067
|
-
##### [back](https://github.com/appium/ruby_lib/blob/
|
1081
|
+
##### [back](https://github.com/appium/ruby_lib/blob/a13158fb926212d84f26120c3bc5355c8cd34baf/lib/appium_lib/common/helper.rb#L31)
|
1068
1082
|
|
1069
1083
|
> def back
|
1070
1084
|
|
@@ -1076,7 +1090,7 @@ __Returns:__
|
|
1076
1090
|
|
1077
1091
|
--
|
1078
1092
|
|
1079
|
-
##### [session_id](https://github.com/appium/ruby_lib/blob/
|
1093
|
+
##### [session_id](https://github.com/appium/ruby_lib/blob/a13158fb926212d84f26120c3bc5355c8cd34baf/lib/appium_lib/common/helper.rb#L36)
|
1080
1094
|
|
1081
1095
|
> def session_id
|
1082
1096
|
|
@@ -1084,7 +1098,7 @@ For Sauce Labs reporting. Returns the current session id.
|
|
1084
1098
|
|
1085
1099
|
--
|
1086
1100
|
|
1087
|
-
##### [xpath](https://github.com/appium/ruby_lib/blob/
|
1101
|
+
##### [xpath](https://github.com/appium/ruby_lib/blob/a13158fb926212d84f26120c3bc5355c8cd34baf/lib/appium_lib/common/helper.rb#L44)
|
1088
1102
|
|
1089
1103
|
> def xpath xpath_str
|
1090
1104
|
|
@@ -1100,7 +1114,7 @@ __Returns:__
|
|
1100
1114
|
|
1101
1115
|
--
|
1102
1116
|
|
1103
|
-
##### [xpaths](https://github.com/appium/ruby_lib/blob/
|
1117
|
+
##### [xpaths](https://github.com/appium/ruby_lib/blob/a13158fb926212d84f26120c3bc5355c8cd34baf/lib/appium_lib/common/helper.rb#L52)
|
1104
1118
|
|
1105
1119
|
> def xpaths xpath_str
|
1106
1120
|
|
@@ -1116,7 +1130,7 @@ __Returns:__
|
|
1116
1130
|
|
1117
1131
|
--
|
1118
1132
|
|
1119
|
-
##### [source](https://github.com/appium/ruby_lib/blob/
|
1133
|
+
##### [source](https://github.com/appium/ruby_lib/blob/a13158fb926212d84f26120c3bc5355c8cd34baf/lib/appium_lib/common/helper.rb#L58)
|
1120
1134
|
|
1121
1135
|
> def source
|
1122
1136
|
|
@@ -1128,7 +1142,7 @@ __Returns:__
|
|
1128
1142
|
|
1129
1143
|
--
|
1130
1144
|
|
1131
|
-
##### [get_source](https://github.com/appium/ruby_lib/blob/
|
1145
|
+
##### [get_source](https://github.com/appium/ruby_lib/blob/a13158fb926212d84f26120c3bc5355c8cd34baf/lib/appium_lib/common/helper.rb#L76)
|
1132
1146
|
|
1133
1147
|
> def get_source
|
1134
1148
|
|
@@ -1141,7 +1155,7 @@ __Returns:__
|
|
1141
1155
|
|
1142
1156
|
--
|
1143
1157
|
|
1144
|
-
##### [result](https://github.com/appium/ruby_lib/blob/
|
1158
|
+
##### [result](https://github.com/appium/ruby_lib/blob/a13158fb926212d84f26120c3bc5355c8cd34baf/lib/appium_lib/common/helper.rb#L83)
|
1145
1159
|
|
1146
1160
|
> def result
|
1147
1161
|
|
@@ -1149,7 +1163,7 @@ Returns the value of attribute result
|
|
1149
1163
|
|
1150
1164
|
--
|
1151
1165
|
|
1152
|
-
##### [initialize](https://github.com/appium/ruby_lib/blob/
|
1166
|
+
##### [initialize](https://github.com/appium/ruby_lib/blob/a13158fb926212d84f26120c3bc5355c8cd34baf/lib/appium_lib/common/helper.rb#L85)
|
1153
1167
|
|
1154
1168
|
> def initialize
|
1155
1169
|
|
@@ -1161,7 +1175,7 @@ __Returns:__
|
|
1161
1175
|
|
1162
1176
|
--
|
1163
1177
|
|
1164
|
-
##### [reset](https://github.com/appium/ruby_lib/blob/
|
1178
|
+
##### [reset](https://github.com/appium/ruby_lib/blob/a13158fb926212d84f26120c3bc5355c8cd34baf/lib/appium_lib/common/helper.rb#L89)
|
1165
1179
|
|
1166
1180
|
> def reset
|
1167
1181
|
|
@@ -1169,7 +1183,7 @@ __Returns:__
|
|
1169
1183
|
|
1170
1184
|
--
|
1171
1185
|
|
1172
|
-
##### [start_element](https://github.com/appium/ruby_lib/blob/
|
1186
|
+
##### [start_element](https://github.com/appium/ruby_lib/blob/a13158fb926212d84f26120c3bc5355c8cd34baf/lib/appium_lib/common/helper.rb#L94)
|
1173
1187
|
|
1174
1188
|
> def start_element name, attrs = []
|
1175
1189
|
|
@@ -1177,7 +1191,7 @@ http://nokogiri.org/Nokogiri/XML/SAX/Document.html
|
|
1177
1191
|
|
1178
1192
|
--
|
1179
1193
|
|
1180
|
-
##### [formatted_result](https://github.com/appium/ruby_lib/blob/
|
1194
|
+
##### [formatted_result](https://github.com/appium/ruby_lib/blob/a13158fb926212d84f26120c3bc5355c8cd34baf/lib/appium_lib/common/helper.rb#L100)
|
1181
1195
|
|
1182
1196
|
> def formatted_result
|
1183
1197
|
|
@@ -1185,7 +1199,7 @@ http://nokogiri.org/Nokogiri/XML/SAX/Document.html
|
|
1185
1199
|
|
1186
1200
|
--
|
1187
1201
|
|
1188
|
-
##### [get_page_class](https://github.com/appium/ruby_lib/blob/
|
1202
|
+
##### [get_page_class](https://github.com/appium/ruby_lib/blob/a13158fb926212d84f26120c3bc5355c8cd34baf/lib/appium_lib/common/helper.rb#L111)
|
1189
1203
|
|
1190
1204
|
> def get_page_class
|
1191
1205
|
|
@@ -1193,7 +1207,7 @@ Returns a string of class counts of visible elements.
|
|
1193
1207
|
|
1194
1208
|
--
|
1195
1209
|
|
1196
|
-
##### [page_class](https://github.com/appium/ruby_lib/blob/
|
1210
|
+
##### [page_class](https://github.com/appium/ruby_lib/blob/a13158fb926212d84f26120c3bc5355c8cd34baf/lib/appium_lib/common/helper.rb#L122)
|
1197
1211
|
|
1198
1212
|
> def page_class
|
1199
1213
|
|
@@ -1202,7 +1216,7 @@ Useful for appium_console.
|
|
1202
1216
|
|
1203
1217
|
--
|
1204
1218
|
|
1205
|
-
##### [px_to_window_rel](https://github.com/appium/ruby_lib/blob/
|
1219
|
+
##### [px_to_window_rel](https://github.com/appium/ruby_lib/blob/a13158fb926212d84f26120c3bc5355c8cd34baf/lib/appium_lib/common/helper.rb#L132)
|
1206
1220
|
|
1207
1221
|
> def px_to_window_rel opts={}
|
1208
1222
|
|
@@ -1214,7 +1228,7 @@ px_to_window_rel x: 50, y: 150
|
|
1214
1228
|
|
1215
1229
|
--
|
1216
1230
|
|
1217
|
-
##### [xml_keys](https://github.com/appium/ruby_lib/blob/
|
1231
|
+
##### [xml_keys](https://github.com/appium/ruby_lib/blob/a13158fb926212d84f26120c3bc5355c8cd34baf/lib/appium_lib/common/helper.rb#L149)
|
1218
1232
|
|
1219
1233
|
> def xml_keys target
|
1220
1234
|
|
@@ -1230,7 +1244,7 @@ __Returns:__
|
|
1230
1244
|
|
1231
1245
|
--
|
1232
1246
|
|
1233
|
-
##### [xml_values](https://github.com/appium/ruby_lib/blob/
|
1247
|
+
##### [xml_values](https://github.com/appium/ruby_lib/blob/a13158fb926212d84f26120c3bc5355c8cd34baf/lib/appium_lib/common/helper.rb#L157)
|
1234
1248
|
|
1235
1249
|
> def xml_values target
|
1236
1250
|
|
@@ -1246,7 +1260,7 @@ __Returns:__
|
|
1246
1260
|
|
1247
1261
|
--
|
1248
1262
|
|
1249
|
-
##### [resolve_id](https://github.com/appium/ruby_lib/blob/
|
1263
|
+
##### [resolve_id](https://github.com/appium/ruby_lib/blob/a13158fb926212d84f26120c3bc5355c8cd34baf/lib/appium_lib/common/helper.rb#L165)
|
1250
1264
|
|
1251
1265
|
> def resolve_id id
|
1252
1266
|
|
@@ -1262,7 +1276,7 @@ __Returns:__
|
|
1262
1276
|
|
1263
1277
|
--
|
1264
1278
|
|
1265
|
-
##### [filter](https://github.com/appium/ruby_lib/blob/
|
1279
|
+
##### [filter](https://github.com/appium/ruby_lib/blob/a13158fb926212d84f26120c3bc5355c8cd34baf/lib/appium_lib/common/helper.rb#L171)
|
1266
1280
|
|
1267
1281
|
> def filter
|
1268
1282
|
|
@@ -1270,7 +1284,7 @@ __Returns:__
|
|
1270
1284
|
|
1271
1285
|
--
|
1272
1286
|
|
1273
|
-
##### [filter=](https://github.com/appium/ruby_lib/blob/
|
1287
|
+
##### [filter=](https://github.com/appium/ruby_lib/blob/a13158fb926212d84f26120c3bc5355c8cd34baf/lib/appium_lib/common/helper.rb#L176)
|
1274
1288
|
|
1275
1289
|
> def filter= value
|
1276
1290
|
|
@@ -1278,7 +1292,7 @@ convert to string to support symbols
|
|
1278
1292
|
|
1279
1293
|
--
|
1280
1294
|
|
1281
|
-
##### [initialize](https://github.com/appium/ruby_lib/blob/
|
1295
|
+
##### [initialize](https://github.com/appium/ruby_lib/blob/a13158fb926212d84f26120c3bc5355c8cd34baf/lib/appium_lib/common/helper.rb#L182)
|
1282
1296
|
|
1283
1297
|
> def initialize
|
1284
1298
|
|
@@ -1290,7 +1304,7 @@ __Returns:__
|
|
1290
1304
|
|
1291
1305
|
--
|
1292
1306
|
|
1293
|
-
##### [reset](https://github.com/appium/ruby_lib/blob/
|
1307
|
+
##### [reset](https://github.com/appium/ruby_lib/blob/a13158fb926212d84f26120c3bc5355c8cd34baf/lib/appium_lib/common/helper.rb#L187)
|
1294
1308
|
|
1295
1309
|
> def reset
|
1296
1310
|
|
@@ -1298,7 +1312,7 @@ __Returns:__
|
|
1298
1312
|
|
1299
1313
|
--
|
1300
1314
|
|
1301
|
-
##### [result](https://github.com/appium/ruby_lib/blob/
|
1315
|
+
##### [result](https://github.com/appium/ruby_lib/blob/a13158fb926212d84f26120c3bc5355c8cd34baf/lib/appium_lib/common/helper.rb#L193)
|
1302
1316
|
|
1303
1317
|
> def result
|
1304
1318
|
|
@@ -1306,7 +1320,7 @@ __Returns:__
|
|
1306
1320
|
|
1307
1321
|
--
|
1308
1322
|
|
1309
|
-
##### [start_element](https://github.com/appium/ruby_lib/blob/
|
1323
|
+
##### [start_element](https://github.com/appium/ruby_lib/blob/a13158fb926212d84f26120c3bc5355c8cd34baf/lib/appium_lib/common/helper.rb#L207)
|
1310
1324
|
|
1311
1325
|
> def start_element name, attrs = []
|
1312
1326
|
|
@@ -1314,7 +1328,7 @@ __Returns:__
|
|
1314
1328
|
|
1315
1329
|
--
|
1316
1330
|
|
1317
|
-
##### [end_element](https://github.com/appium/ruby_lib/blob/
|
1331
|
+
##### [end_element](https://github.com/appium/ruby_lib/blob/a13158fb926212d84f26120c3bc5355c8cd34baf/lib/appium_lib/common/helper.rb#L217)
|
1318
1332
|
|
1319
1333
|
> def end_element name
|
1320
1334
|
|
@@ -1322,7 +1336,7 @@ __Returns:__
|
|
1322
1336
|
|
1323
1337
|
--
|
1324
1338
|
|
1325
|
-
##### [characters](https://github.com/appium/ruby_lib/blob/
|
1339
|
+
##### [characters](https://github.com/appium/ruby_lib/blob/a13158fb926212d84f26120c3bc5355c8cd34baf/lib/appium_lib/common/helper.rb#L223)
|
1326
1340
|
|
1327
1341
|
> def characters(chars)
|
1328
1342
|
|
@@ -1330,7 +1344,7 @@ __Returns:__
|
|
1330
1344
|
|
1331
1345
|
--
|
1332
1346
|
|
1333
|
-
##### [window_size](https://github.com/appium/ruby_lib/blob/
|
1347
|
+
##### [window_size](https://github.com/appium/ruby_lib/blob/a13158fb926212d84f26120c3bc5355c8cd34baf/lib/appium_lib/common/element/window.rb#L5)
|
1334
1348
|
|
1335
1349
|
> def window_size
|
1336
1350
|
|
@@ -1338,7 +1352,7 @@ Get the window's size
|
|
1338
1352
|
|
1339
1353
|
--
|
1340
1354
|
|
1341
|
-
##### [ios_password](https://github.com/appium/ruby_lib/blob/
|
1355
|
+
##### [ios_password](https://github.com/appium/ruby_lib/blob/a13158fb926212d84f26120c3bc5355c8cd34baf/lib/appium_lib/ios/helper.rb#L8) ios
|
1342
1356
|
|
1343
1357
|
> def ios_password length=1
|
1344
1358
|
|
@@ -1356,7 +1370,7 @@ __Returns:__
|
|
1356
1370
|
|
1357
1371
|
--
|
1358
1372
|
|
1359
|
-
##### [get_page](https://github.com/appium/ruby_lib/blob/
|
1373
|
+
##### [get_page](https://github.com/appium/ruby_lib/blob/a13158fb926212d84f26120c3bc5355c8cd34baf/lib/appium_lib/ios/helper.rb#L20) ios
|
1360
1374
|
|
1361
1375
|
> def get_page element=source_window(0), class_name=nil
|
1362
1376
|
|
@@ -1377,7 +1391,7 @@ __Returns:__
|
|
1377
1391
|
|
1378
1392
|
--
|
1379
1393
|
|
1380
|
-
##### [page](https://github.com/appium/ruby_lib/blob/
|
1394
|
+
##### [page](https://github.com/appium/ruby_lib/blob/a13158fb926212d84f26120c3bc5355c8cd34baf/lib/appium_lib/ios/helper.rb#L125) ios
|
1381
1395
|
|
1382
1396
|
> def page opts={}
|
1383
1397
|
|
@@ -1403,7 +1417,7 @@ __Returns:__
|
|
1403
1417
|
|
1404
1418
|
--
|
1405
1419
|
|
1406
|
-
##### [source_window](https://github.com/appium/ruby_lib/blob/
|
1420
|
+
##### [source_window](https://github.com/appium/ruby_lib/blob/a13158fb926212d84f26120c3bc5355c8cd34baf/lib/appium_lib/ios/helper.rb#L157) ios
|
1407
1421
|
|
1408
1422
|
> def source_window window_number=0
|
1409
1423
|
|
@@ -1419,7 +1433,7 @@ __Returns:__
|
|
1419
1433
|
|
1420
1434
|
--
|
1421
1435
|
|
1422
|
-
##### [page_window](https://github.com/appium/ruby_lib/blob/
|
1436
|
+
##### [page_window](https://github.com/appium/ruby_lib/blob/a13158fb926212d84f26120c3bc5355c8cd34baf/lib/appium_lib/ios/helper.rb#L171) ios
|
1423
1437
|
|
1424
1438
|
> def page_window window_number=0
|
1425
1439
|
|
@@ -1437,7 +1451,7 @@ __Returns:__
|
|
1437
1451
|
|
1438
1452
|
--
|
1439
1453
|
|
1440
|
-
##### [id](https://github.com/appium/ruby_lib/blob/
|
1454
|
+
##### [id](https://github.com/appium/ruby_lib/blob/a13158fb926212d84f26120c3bc5355c8cd34baf/lib/appium_lib/ios/helper.rb#L179) ios
|
1441
1455
|
|
1442
1456
|
> def id id
|
1443
1457
|
|
@@ -1453,7 +1467,7 @@ __Returns:__
|
|
1453
1467
|
|
1454
1468
|
--
|
1455
1469
|
|
1456
|
-
##### [ios_version](https://github.com/appium/ruby_lib/blob/
|
1470
|
+
##### [ios_version](https://github.com/appium/ruby_lib/blob/a13158fb926212d84f26120c3bc5355c8cd34baf/lib/appium_lib/ios/helper.rb#L189) ios
|
1457
1471
|
|
1458
1472
|
> def ios_version
|
1459
1473
|
|
@@ -1465,7 +1479,7 @@ __Returns:__
|
|
1465
1479
|
|
1466
1480
|
--
|
1467
1481
|
|
1468
|
-
##### [ele_index](https://github.com/appium/ruby_lib/blob/
|
1482
|
+
##### [ele_index](https://github.com/appium/ruby_lib/blob/a13158fb926212d84f26120c3bc5355c8cd34baf/lib/appium_lib/ios/helper.rb#L198) ios
|
1469
1483
|
|
1470
1484
|
> def ele_index class_name, index
|
1471
1485
|
|
@@ -1483,7 +1497,7 @@ __Returns:__
|
|
1483
1497
|
|
1484
1498
|
--
|
1485
1499
|
|
1486
|
-
##### [find_ele_by_attr](https://github.com/appium/ruby_lib/blob/
|
1500
|
+
##### [find_ele_by_attr](https://github.com/appium/ruby_lib/blob/a13158fb926212d84f26120c3bc5355c8cd34baf/lib/appium_lib/ios/helper.rb#L216) ios
|
1487
1501
|
|
1488
1502
|
> def find_ele_by_attr class_name, attr, value
|
1489
1503
|
|
@@ -1503,7 +1517,7 @@ __Returns:__
|
|
1503
1517
|
|
1504
1518
|
--
|
1505
1519
|
|
1506
|
-
##### [find_eles_by_attr](https://github.com/appium/ruby_lib/blob/
|
1520
|
+
##### [find_eles_by_attr](https://github.com/appium/ruby_lib/blob/a13158fb926212d84f26120c3bc5355c8cd34baf/lib/appium_lib/ios/helper.rb#L225) ios
|
1507
1521
|
|
1508
1522
|
> def find_eles_by_attr class_name, attr, value
|
1509
1523
|
|
@@ -1523,7 +1537,7 @@ __Returns:__
|
|
1523
1537
|
|
1524
1538
|
--
|
1525
1539
|
|
1526
|
-
##### [find_ele_by_attr_include](https://github.com/appium/ruby_lib/blob/
|
1540
|
+
##### [find_ele_by_attr_include](https://github.com/appium/ruby_lib/blob/a13158fb926212d84f26120c3bc5355c8cd34baf/lib/appium_lib/ios/helper.rb#L239) ios
|
1527
1541
|
|
1528
1542
|
> def find_ele_by_attr_include class_name, attr, value
|
1529
1543
|
|
@@ -1543,7 +1557,7 @@ __Returns:__
|
|
1543
1557
|
|
1544
1558
|
--
|
1545
1559
|
|
1546
|
-
##### [find_eles_by_attr_include](https://github.com/appium/ruby_lib/blob/
|
1560
|
+
##### [find_eles_by_attr_include](https://github.com/appium/ruby_lib/blob/a13158fb926212d84f26120c3bc5355c8cd34baf/lib/appium_lib/ios/helper.rb#L248) ios
|
1547
1561
|
|
1548
1562
|
> def find_eles_by_attr_include class_name, attr, value
|
1549
1563
|
|
@@ -1563,7 +1577,7 @@ __Returns:__
|
|
1563
1577
|
|
1564
1578
|
--
|
1565
1579
|
|
1566
|
-
##### [first_ele](https://github.com/appium/ruby_lib/blob/
|
1580
|
+
##### [first_ele](https://github.com/appium/ruby_lib/blob/a13158fb926212d84f26120c3bc5355c8cd34baf/lib/appium_lib/ios/helper.rb#L255) ios
|
1567
1581
|
|
1568
1582
|
> def first_ele class_name
|
1569
1583
|
|
@@ -1579,7 +1593,7 @@ __Returns:__
|
|
1579
1593
|
|
1580
1594
|
--
|
1581
1595
|
|
1582
|
-
##### [last_ele](https://github.com/appium/ruby_lib/blob/
|
1596
|
+
##### [last_ele](https://github.com/appium/ruby_lib/blob/a13158fb926212d84f26120c3bc5355c8cd34baf/lib/appium_lib/ios/helper.rb#L263) ios
|
1583
1597
|
|
1584
1598
|
> def last_ele class_name
|
1585
1599
|
|
@@ -1595,7 +1609,7 @@ __Returns:__
|
|
1595
1609
|
|
1596
1610
|
--
|
1597
1611
|
|
1598
|
-
##### [tag](https://github.com/appium/ruby_lib/blob/
|
1612
|
+
##### [tag](https://github.com/appium/ruby_lib/blob/a13158fb926212d84f26120c3bc5355c8cd34baf/lib/appium_lib/ios/helper.rb#L271) ios
|
1599
1613
|
|
1600
1614
|
> def tag class_name
|
1601
1615
|
|
@@ -1611,7 +1625,7 @@ __Returns:__
|
|
1611
1625
|
|
1612
1626
|
--
|
1613
1627
|
|
1614
|
-
##### [tags](https://github.com/appium/ruby_lib/blob/
|
1628
|
+
##### [tags](https://github.com/appium/ruby_lib/blob/a13158fb926212d84f26120c3bc5355c8cd34baf/lib/appium_lib/ios/helper.rb#L279) ios
|
1615
1629
|
|
1616
1630
|
> def tags class_name
|
1617
1631
|
|
@@ -1627,7 +1641,7 @@ __Returns:__
|
|
1627
1641
|
|
1628
1642
|
--
|
1629
1643
|
|
1630
|
-
##### [xpath_visible_contains](https://github.com/appium/ruby_lib/blob/
|
1644
|
+
##### [xpath_visible_contains](https://github.com/appium/ruby_lib/blob/a13158fb926212d84f26120c3bc5355c8cd34baf/lib/appium_lib/ios/helper.rb#L311) ios
|
1631
1645
|
|
1632
1646
|
> def xpath_visible_contains element, value
|
1633
1647
|
|
@@ -1645,7 +1659,7 @@ __Returns:__
|
|
1645
1659
|
|
1646
1660
|
--
|
1647
1661
|
|
1648
|
-
##### [xpaths_visible_contains](https://github.com/appium/ruby_lib/blob/
|
1662
|
+
##### [xpaths_visible_contains](https://github.com/appium/ruby_lib/blob/a13158fb926212d84f26120c3bc5355c8cd34baf/lib/appium_lib/ios/helper.rb#L319) ios
|
1649
1663
|
|
1650
1664
|
> def xpaths_visible_contains element, value
|
1651
1665
|
|
@@ -1663,7 +1677,7 @@ __Returns:__
|
|
1663
1677
|
|
1664
1678
|
--
|
1665
1679
|
|
1666
|
-
##### [xpath_visible_exact](https://github.com/appium/ruby_lib/blob/
|
1680
|
+
##### [xpath_visible_exact](https://github.com/appium/ruby_lib/blob/a13158fb926212d84f26120c3bc5355c8cd34baf/lib/appium_lib/ios/helper.rb#L346) ios
|
1667
1681
|
|
1668
1682
|
> def xpath_visible_exact element, value
|
1669
1683
|
|
@@ -1681,7 +1695,7 @@ __Returns:__
|
|
1681
1695
|
|
1682
1696
|
--
|
1683
1697
|
|
1684
|
-
##### [xpaths_visible_exact](https://github.com/appium/ruby_lib/blob/
|
1698
|
+
##### [xpaths_visible_exact](https://github.com/appium/ruby_lib/blob/a13158fb926212d84f26120c3bc5355c8cd34baf/lib/appium_lib/ios/helper.rb#L354) ios
|
1685
1699
|
|
1686
1700
|
> def xpaths_visible_exact element, value
|
1687
1701
|
|
@@ -1699,7 +1713,7 @@ __Returns:__
|
|
1699
1713
|
|
1700
1714
|
--
|
1701
1715
|
|
1702
|
-
##### [UIAStaticText](https://github.com/appium/ruby_lib/blob/
|
1716
|
+
##### [UIAStaticText](https://github.com/appium/ruby_lib/blob/a13158fb926212d84f26120c3bc5355c8cd34baf/lib/appium_lib/ios/element/text.rb#L4) ios
|
1703
1717
|
|
1704
1718
|
> UIAStaticText = 'UIAStaticText'
|
1705
1719
|
|
@@ -1707,7 +1721,7 @@ __Returns:__
|
|
1707
1721
|
|
1708
1722
|
--
|
1709
1723
|
|
1710
|
-
##### [text](https://github.com/appium/ruby_lib/blob/
|
1724
|
+
##### [text](https://github.com/appium/ruby_lib/blob/a13158fb926212d84f26120c3bc5355c8cd34baf/lib/appium_lib/ios/element/text.rb#L10) ios
|
1711
1725
|
|
1712
1726
|
> def text value
|
1713
1727
|
|
@@ -1724,7 +1738,7 @@ __Returns:__
|
|
1724
1738
|
|
1725
1739
|
--
|
1726
1740
|
|
1727
|
-
##### [texts](https://github.com/appium/ruby_lib/blob/
|
1741
|
+
##### [texts](https://github.com/appium/ruby_lib/blob/a13158fb926212d84f26120c3bc5355c8cd34baf/lib/appium_lib/ios/element/text.rb#L19) ios
|
1728
1742
|
|
1729
1743
|
> def texts value=false
|
1730
1744
|
|
@@ -1741,7 +1755,7 @@ __Returns:__
|
|
1741
1755
|
|
1742
1756
|
--
|
1743
1757
|
|
1744
|
-
##### [first_text](https://github.com/appium/ruby_lib/blob/
|
1758
|
+
##### [first_text](https://github.com/appium/ruby_lib/blob/a13158fb926212d84f26120c3bc5355c8cd34baf/lib/appium_lib/ios/element/text.rb#L26) ios
|
1745
1759
|
|
1746
1760
|
> def first_text
|
1747
1761
|
|
@@ -1753,7 +1767,7 @@ __Returns:__
|
|
1753
1767
|
|
1754
1768
|
--
|
1755
1769
|
|
1756
|
-
##### [last_text](https://github.com/appium/ruby_lib/blob/
|
1770
|
+
##### [last_text](https://github.com/appium/ruby_lib/blob/a13158fb926212d84f26120c3bc5355c8cd34baf/lib/appium_lib/ios/element/text.rb#L32) ios
|
1757
1771
|
|
1758
1772
|
> def last_text
|
1759
1773
|
|
@@ -1765,7 +1779,7 @@ __Returns:__
|
|
1765
1779
|
|
1766
1780
|
--
|
1767
1781
|
|
1768
|
-
##### [text_exact](https://github.com/appium/ruby_lib/blob/
|
1782
|
+
##### [text_exact](https://github.com/appium/ruby_lib/blob/a13158fb926212d84f26120c3bc5355c8cd34baf/lib/appium_lib/ios/element/text.rb#L39) ios
|
1769
1783
|
|
1770
1784
|
> def text_exact value
|
1771
1785
|
|
@@ -1781,7 +1795,7 @@ __Returns:__
|
|
1781
1795
|
|
1782
1796
|
--
|
1783
1797
|
|
1784
|
-
##### [texts_exact](https://github.com/appium/ruby_lib/blob/
|
1798
|
+
##### [texts_exact](https://github.com/appium/ruby_lib/blob/a13158fb926212d84f26120c3bc5355c8cd34baf/lib/appium_lib/ios/element/text.rb#L46) ios
|
1785
1799
|
|
1786
1800
|
> def texts_exact value
|
1787
1801
|
|
@@ -1797,7 +1811,7 @@ __Returns:__
|
|
1797
1811
|
|
1798
1812
|
--
|
1799
1813
|
|
1800
|
-
##### [alert_accept](https://github.com/appium/ruby_lib/blob/
|
1814
|
+
##### [alert_accept](https://github.com/appium/ruby_lib/blob/a13158fb926212d84f26120c3bc5355c8cd34baf/lib/appium_lib/ios/element/alert.rb#L5) ios
|
1801
1815
|
|
1802
1816
|
> def alert_accept
|
1803
1817
|
|
@@ -1809,7 +1823,7 @@ __Returns:__
|
|
1809
1823
|
|
1810
1824
|
--
|
1811
1825
|
|
1812
|
-
##### [alert_dismiss](https://github.com/appium/ruby_lib/blob/
|
1826
|
+
##### [alert_dismiss](https://github.com/appium/ruby_lib/blob/a13158fb926212d84f26120c3bc5355c8cd34baf/lib/appium_lib/ios/element/alert.rb#L13) ios
|
1813
1827
|
|
1814
1828
|
> def alert_dismiss
|
1815
1829
|
|
@@ -1821,7 +1835,7 @@ __Returns:__
|
|
1821
1835
|
|
1822
1836
|
--
|
1823
1837
|
|
1824
|
-
##### [uiautomation_find](https://github.com/appium/ruby_lib/blob/
|
1838
|
+
##### [uiautomation_find](https://github.com/appium/ruby_lib/blob/a13158fb926212d84f26120c3bc5355c8cd34baf/lib/appium_lib/ios/mobile_methods.rb#L10) ios
|
1825
1839
|
|
1826
1840
|
> def uiautomation_find
|
1827
1841
|
|
@@ -1833,7 +1847,7 @@ find_element/s can be used with a [UIAutomation command](https://developer.apple
|
|
1833
1847
|
|
1834
1848
|
--
|
1835
1849
|
|
1836
|
-
##### [UIAButton](https://github.com/appium/ruby_lib/blob/
|
1850
|
+
##### [UIAButton](https://github.com/appium/ruby_lib/blob/a13158fb926212d84f26120c3bc5355c8cd34baf/lib/appium_lib/ios/element/button.rb#L4) ios
|
1837
1851
|
|
1838
1852
|
> UIAButton = 'UIAButton'
|
1839
1853
|
|
@@ -1841,7 +1855,7 @@ find_element/s can be used with a [UIAutomation command](https://developer.apple
|
|
1841
1855
|
|
1842
1856
|
--
|
1843
1857
|
|
1844
|
-
##### [button](https://github.com/appium/ruby_lib/blob/
|
1858
|
+
##### [button](https://github.com/appium/ruby_lib/blob/a13158fb926212d84f26120c3bc5355c8cd34baf/lib/appium_lib/ios/element/button.rb#L10) ios
|
1845
1859
|
|
1846
1860
|
> def button value
|
1847
1861
|
|
@@ -1858,7 +1872,7 @@ __Returns:__
|
|
1858
1872
|
|
1859
1873
|
--
|
1860
1874
|
|
1861
|
-
##### [buttons](https://github.com/appium/ruby_lib/blob/
|
1875
|
+
##### [buttons](https://github.com/appium/ruby_lib/blob/a13158fb926212d84f26120c3bc5355c8cd34baf/lib/appium_lib/ios/element/button.rb#L20) ios
|
1862
1876
|
|
1863
1877
|
> def buttons value=false
|
1864
1878
|
|
@@ -1875,7 +1889,7 @@ __Returns:__
|
|
1875
1889
|
|
1876
1890
|
--
|
1877
1891
|
|
1878
|
-
##### [first_button](https://github.com/appium/ruby_lib/blob/
|
1892
|
+
##### [first_button](https://github.com/appium/ruby_lib/blob/a13158fb926212d84f26120c3bc5355c8cd34baf/lib/appium_lib/ios/element/button.rb#L27) ios
|
1879
1893
|
|
1880
1894
|
> def first_button
|
1881
1895
|
|
@@ -1887,7 +1901,7 @@ __Returns:__
|
|
1887
1901
|
|
1888
1902
|
--
|
1889
1903
|
|
1890
|
-
##### [last_button](https://github.com/appium/ruby_lib/blob/
|
1904
|
+
##### [last_button](https://github.com/appium/ruby_lib/blob/a13158fb926212d84f26120c3bc5355c8cd34baf/lib/appium_lib/ios/element/button.rb#L33) ios
|
1891
1905
|
|
1892
1906
|
> def last_button
|
1893
1907
|
|
@@ -1899,7 +1913,7 @@ __Returns:__
|
|
1899
1913
|
|
1900
1914
|
--
|
1901
1915
|
|
1902
|
-
##### [button_exact](https://github.com/appium/ruby_lib/blob/
|
1916
|
+
##### [button_exact](https://github.com/appium/ruby_lib/blob/a13158fb926212d84f26120c3bc5355c8cd34baf/lib/appium_lib/ios/element/button.rb#L40) ios
|
1903
1917
|
|
1904
1918
|
> def button_exact value
|
1905
1919
|
|
@@ -1915,7 +1929,7 @@ __Returns:__
|
|
1915
1929
|
|
1916
1930
|
--
|
1917
1931
|
|
1918
|
-
##### [buttons_exact](https://github.com/appium/ruby_lib/blob/
|
1932
|
+
##### [buttons_exact](https://github.com/appium/ruby_lib/blob/a13158fb926212d84f26120c3bc5355c8cd34baf/lib/appium_lib/ios/element/button.rb#L47) ios
|
1919
1933
|
|
1920
1934
|
> def buttons_exact value
|
1921
1935
|
|
@@ -1931,7 +1945,7 @@ __Returns:__
|
|
1931
1945
|
|
1932
1946
|
--
|
1933
1947
|
|
1934
|
-
##### [find](https://github.com/appium/ruby_lib/blob/
|
1948
|
+
##### [find](https://github.com/appium/ruby_lib/blob/a13158fb926212d84f26120c3bc5355c8cd34baf/lib/appium_lib/ios/element/generic.rb#L7) ios
|
1935
1949
|
|
1936
1950
|
> def find value
|
1937
1951
|
|
@@ -1947,7 +1961,7 @@ __Returns:__
|
|
1947
1961
|
|
1948
1962
|
--
|
1949
1963
|
|
1950
|
-
##### [finds](https://github.com/appium/ruby_lib/blob/
|
1964
|
+
##### [finds](https://github.com/appium/ruby_lib/blob/a13158fb926212d84f26120c3bc5355c8cd34baf/lib/appium_lib/ios/element/generic.rb#L14) ios
|
1951
1965
|
|
1952
1966
|
> def finds value
|
1953
1967
|
|
@@ -1963,7 +1977,7 @@ __Returns:__
|
|
1963
1977
|
|
1964
1978
|
--
|
1965
1979
|
|
1966
|
-
##### [find_exact](https://github.com/appium/ruby_lib/blob/
|
1980
|
+
##### [find_exact](https://github.com/appium/ruby_lib/blob/a13158fb926212d84f26120c3bc5355c8cd34baf/lib/appium_lib/ios/element/generic.rb#L21) ios
|
1967
1981
|
|
1968
1982
|
> def find_exact value
|
1969
1983
|
|
@@ -1979,7 +1993,7 @@ __Returns:__
|
|
1979
1993
|
|
1980
1994
|
--
|
1981
1995
|
|
1982
|
-
##### [finds_exact](https://github.com/appium/ruby_lib/blob/
|
1996
|
+
##### [finds_exact](https://github.com/appium/ruby_lib/blob/a13158fb926212d84f26120c3bc5355c8cd34baf/lib/appium_lib/ios/element/generic.rb#L28) ios
|
1983
1997
|
|
1984
1998
|
> def finds_exact value
|
1985
1999
|
|
@@ -1995,7 +2009,7 @@ __Returns:__
|
|
1995
2009
|
|
1996
2010
|
--
|
1997
2011
|
|
1998
|
-
##### [UIATextField](https://github.com/appium/ruby_lib/blob/
|
2012
|
+
##### [UIATextField](https://github.com/appium/ruby_lib/blob/a13158fb926212d84f26120c3bc5355c8cd34baf/lib/appium_lib/ios/element/textfield.rb#L3) ios
|
1999
2013
|
|
2000
2014
|
> UIATextField = 'UIATextField'
|
2001
2015
|
|
@@ -2003,7 +2017,7 @@ __Returns:__
|
|
2003
2017
|
|
2004
2018
|
--
|
2005
2019
|
|
2006
|
-
##### [UIASecureTextField](https://github.com/appium/ruby_lib/blob/
|
2020
|
+
##### [UIASecureTextField](https://github.com/appium/ruby_lib/blob/a13158fb926212d84f26120c3bc5355c8cd34baf/lib/appium_lib/ios/element/textfield.rb#L4) ios
|
2007
2021
|
|
2008
2022
|
> UIASecureTextField = 'UIASecureTextField'
|
2009
2023
|
|
@@ -2011,7 +2025,7 @@ __Returns:__
|
|
2011
2025
|
|
2012
2026
|
--
|
2013
2027
|
|
2014
|
-
##### [textfield](https://github.com/appium/ruby_lib/blob/
|
2028
|
+
##### [textfield](https://github.com/appium/ruby_lib/blob/a13158fb926212d84f26120c3bc5355c8cd34baf/lib/appium_lib/ios/element/textfield.rb#L38) ios
|
2015
2029
|
|
2016
2030
|
> def textfield value
|
2017
2031
|
|
@@ -2028,7 +2042,7 @@ __Returns:__
|
|
2028
2042
|
|
2029
2043
|
--
|
2030
2044
|
|
2031
|
-
##### [textfields](https://github.com/appium/ruby_lib/blob/
|
2045
|
+
##### [textfields](https://github.com/appium/ruby_lib/blob/a13158fb926212d84f26120c3bc5355c8cd34baf/lib/appium_lib/ios/element/textfield.rb#L55) ios
|
2032
2046
|
|
2033
2047
|
> def textfields value=false
|
2034
2048
|
|
@@ -2045,7 +2059,7 @@ __Returns:__
|
|
2045
2059
|
|
2046
2060
|
--
|
2047
2061
|
|
2048
|
-
##### [first_textfield](https://github.com/appium/ruby_lib/blob/
|
2062
|
+
##### [first_textfield](https://github.com/appium/ruby_lib/blob/a13158fb926212d84f26120c3bc5355c8cd34baf/lib/appium_lib/ios/element/textfield.rb#L62) ios
|
2049
2063
|
|
2050
2064
|
> def first_textfield
|
2051
2065
|
|
@@ -2057,7 +2071,7 @@ __Returns:__
|
|
2057
2071
|
|
2058
2072
|
--
|
2059
2073
|
|
2060
|
-
##### [last_textfield](https://github.com/appium/ruby_lib/blob/
|
2074
|
+
##### [last_textfield](https://github.com/appium/ruby_lib/blob/a13158fb926212d84f26120c3bc5355c8cd34baf/lib/appium_lib/ios/element/textfield.rb#L68) ios
|
2061
2075
|
|
2062
2076
|
> def last_textfield
|
2063
2077
|
|
@@ -2069,7 +2083,7 @@ __Returns:__
|
|
2069
2083
|
|
2070
2084
|
--
|
2071
2085
|
|
2072
|
-
##### [textfield_exact](https://github.com/appium/ruby_lib/blob/
|
2086
|
+
##### [textfield_exact](https://github.com/appium/ruby_lib/blob/a13158fb926212d84f26120c3bc5355c8cd34baf/lib/appium_lib/ios/element/textfield.rb#L75) ios
|
2073
2087
|
|
2074
2088
|
> def textfield_exact value
|
2075
2089
|
|
@@ -2085,7 +2099,7 @@ __Returns:__
|
|
2085
2099
|
|
2086
2100
|
--
|
2087
2101
|
|
2088
|
-
##### [textfields_exact](https://github.com/appium/ruby_lib/blob/
|
2102
|
+
##### [textfields_exact](https://github.com/appium/ruby_lib/blob/a13158fb926212d84f26120c3bc5355c8cd34baf/lib/appium_lib/ios/element/textfield.rb#L82) ios
|
2089
2103
|
|
2090
2104
|
> def textfields_exact value
|
2091
2105
|
|
@@ -2101,7 +2115,7 @@ __Returns:__
|
|
2101
2115
|
|
2102
2116
|
--
|
2103
2117
|
|
2104
|
-
##### [value](https://github.com/appium/ruby_lib/blob/
|
2118
|
+
##### [value](https://github.com/appium/ruby_lib/blob/a13158fb926212d84f26120c3bc5355c8cd34baf/lib/appium_lib/common/patch.rb#L10)
|
2105
2119
|
|
2106
2120
|
> def value
|
2107
2121
|
|
@@ -2111,7 +2125,7 @@ Fixes NoMethodError: undefined method `value' for Selenium::WebDriver::Element
|
|
2111
2125
|
|
2112
2126
|
--
|
2113
2127
|
|
2114
|
-
##### [name](https://github.com/appium/ruby_lib/blob/
|
2128
|
+
##### [name](https://github.com/appium/ruby_lib/blob/a13158fb926212d84f26120c3bc5355c8cd34baf/lib/appium_lib/common/patch.rb#L17)
|
2115
2129
|
|
2116
2130
|
> def name
|
2117
2131
|
|
@@ -2121,7 +2135,7 @@ Fixes NoMethodError: undefined method `name' for Selenium::WebDriver::Element
|
|
2121
2135
|
|
2122
2136
|
--
|
2123
2137
|
|
2124
|
-
##### [location_rel](https://github.com/appium/ruby_lib/blob/
|
2138
|
+
##### [location_rel](https://github.com/appium/ruby_lib/blob/a13158fb926212d84f26120c3bc5355c8cd34baf/lib/appium_lib/common/patch.rb#L29)
|
2125
2139
|
|
2126
2140
|
> def location_rel
|
2127
2141
|
|