appium_lib 14.0.0 → 15.0.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/.github/workflows/rubocop.yml +4 -2
- data/CHANGELOG.md +8 -1
- data/Rakefile +8 -0
- data/appium_lib.gemspec +4 -3
- data/docs/android_docs.md +198 -287
- data/docs/ios_docs.md +236 -325
- data/docs/w3c.md +5 -1
- data/lib/appium_lib/appium.rb +0 -2
- data/lib/appium_lib/common/device.rb +0 -24
- data/lib/appium_lib/driver.rb +3 -4
- data/lib/appium_lib/version.rb +2 -2
- data/release_notes.md +14 -0
- data/test/first_test.rb +29 -0
- metadata +28 -27
- data/lib/appium_lib/common/multi_touch.rb +0 -198
- data/lib/appium_lib/common/touch_actions.rb +0 -76
data/docs/android_docs.md
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
##### [load_settings](https://github.com/appium/ruby_lib/blob/
|
|
1
|
+
##### [load_settings](https://github.com/appium/ruby_lib/blob/203a6052db42039c89cd000f245f1534379bc86b/lib/appium_lib/appium.rb#L58) common
|
|
2
2
|
|
|
3
3
|
> def load_settings(opts = {})
|
|
4
4
|
|
|
@@ -27,7 +27,7 @@ __Returns:__
|
|
|
27
27
|
|
|
28
28
|
--
|
|
29
29
|
|
|
30
|
-
##### [load_appium_txt](https://github.com/appium/ruby_lib/blob/
|
|
30
|
+
##### [load_appium_txt](https://github.com/appium/ruby_lib/blob/203a6052db42039c89cd000f245f1534379bc86b/lib/appium_lib/appium.rb#L106) common
|
|
31
31
|
|
|
32
32
|
> def load_settings(opts = {})
|
|
33
33
|
|
|
@@ -56,7 +56,7 @@ __Returns:__
|
|
|
56
56
|
|
|
57
57
|
--
|
|
58
58
|
|
|
59
|
-
##### [expand_required_files](https://github.com/appium/ruby_lib/blob/
|
|
59
|
+
##### [expand_required_files](https://github.com/appium/ruby_lib/blob/203a6052db42039c89cd000f245f1534379bc86b/lib/appium_lib/appium.rb#L111) common
|
|
60
60
|
|
|
61
61
|
> def expand_required_files(base_dir, file_paths)
|
|
62
62
|
|
|
@@ -74,7 +74,7 @@ __Returns:__
|
|
|
74
74
|
|
|
75
75
|
--
|
|
76
76
|
|
|
77
|
-
##### [promote_singleton_appium_methods](https://github.com/appium/ruby_lib/blob/
|
|
77
|
+
##### [promote_singleton_appium_methods](https://github.com/appium/ruby_lib/blob/203a6052db42039c89cd000f245f1534379bc86b/lib/appium_lib/appium.rb#L153) common
|
|
78
78
|
|
|
79
79
|
> def promote_singleton_appium_methods(modules, driver = $driver)
|
|
80
80
|
|
|
@@ -98,7 +98,7 @@ __Parameters:__
|
|
|
98
98
|
|
|
99
99
|
--
|
|
100
100
|
|
|
101
|
-
##### [promote_appium_methods](https://github.com/appium/ruby_lib/blob/
|
|
101
|
+
##### [promote_appium_methods](https://github.com/appium/ruby_lib/blob/203a6052db42039c89cd000f245f1534379bc86b/lib/appium_lib/appium.rb#L207) common
|
|
102
102
|
|
|
103
103
|
> def promote_appium_methods(class_array, driver = $driver)
|
|
104
104
|
|
|
@@ -116,7 +116,7 @@ __Parameters:__
|
|
|
116
116
|
|
|
117
117
|
--
|
|
118
118
|
|
|
119
|
-
##### [global_webdriver_http_sleep](https://github.com/appium/ruby_lib/blob/
|
|
119
|
+
##### [global_webdriver_http_sleep](https://github.com/appium/ruby_lib/blob/203a6052db42039c89cd000f245f1534379bc86b/lib/appium_lib/driver.rb#L49) common
|
|
120
120
|
|
|
121
121
|
> def global_webdriver_http_sleep
|
|
122
122
|
|
|
@@ -124,7 +124,7 @@ The amount to sleep in seconds before every webdriver http call.
|
|
|
124
124
|
|
|
125
125
|
--
|
|
126
126
|
|
|
127
|
-
##### [global_webdriver_http_sleep=](https://github.com/appium/ruby_lib/blob/
|
|
127
|
+
##### [global_webdriver_http_sleep=](https://github.com/appium/ruby_lib/blob/203a6052db42039c89cd000f245f1534379bc86b/lib/appium_lib/driver.rb#L49) common
|
|
128
128
|
|
|
129
129
|
> def global_webdriver_http_sleep=(value)
|
|
130
130
|
|
|
@@ -132,7 +132,7 @@ The amount to sleep in seconds before every webdriver http call.
|
|
|
132
132
|
|
|
133
133
|
--
|
|
134
134
|
|
|
135
|
-
##### [sauce](https://github.com/appium/ruby_lib/blob/
|
|
135
|
+
##### [sauce](https://github.com/appium/ruby_lib/blob/203a6052db42039c89cd000f245f1534379bc86b/lib/appium_lib/driver.rb#L52) common
|
|
136
136
|
|
|
137
137
|
> def sauce
|
|
138
138
|
|
|
@@ -140,7 +140,7 @@ SauceLab's settings
|
|
|
140
140
|
|
|
141
141
|
--
|
|
142
142
|
|
|
143
|
-
##### [sauce_username](https://github.com/appium/ruby_lib/blob/
|
|
143
|
+
##### [sauce_username](https://github.com/appium/ruby_lib/blob/203a6052db42039c89cd000f245f1534379bc86b/lib/appium_lib/driver.rb#L55) common
|
|
144
144
|
|
|
145
145
|
> def sauce_username
|
|
146
146
|
|
|
@@ -149,7 +149,7 @@ same as @sauce.username
|
|
|
149
149
|
|
|
150
150
|
--
|
|
151
151
|
|
|
152
|
-
##### [sauce_access_key](https://github.com/appium/ruby_lib/blob/
|
|
152
|
+
##### [sauce_access_key](https://github.com/appium/ruby_lib/blob/203a6052db42039c89cd000f245f1534379bc86b/lib/appium_lib/driver.rb#L58) common
|
|
153
153
|
|
|
154
154
|
> def sauce_access_key
|
|
155
155
|
|
|
@@ -158,7 +158,7 @@ same as @sauce.access_key
|
|
|
158
158
|
|
|
159
159
|
--
|
|
160
160
|
|
|
161
|
-
##### [sauce_endpoint](https://github.com/appium/ruby_lib/blob/
|
|
161
|
+
##### [sauce_endpoint](https://github.com/appium/ruby_lib/blob/203a6052db42039c89cd000f245f1534379bc86b/lib/appium_lib/driver.rb#L61) common
|
|
162
162
|
|
|
163
163
|
> def sauce_endpoint
|
|
164
164
|
|
|
@@ -167,7 +167,7 @@ same as @sauce.endpoint
|
|
|
167
167
|
|
|
168
168
|
--
|
|
169
169
|
|
|
170
|
-
##### [caps](https://github.com/appium/ruby_lib/blob/
|
|
170
|
+
##### [caps](https://github.com/appium/ruby_lib/blob/203a6052db42039c89cd000f245f1534379bc86b/lib/appium_lib/driver.rb#L65) common
|
|
171
171
|
|
|
172
172
|
> def caps
|
|
173
173
|
|
|
@@ -176,7 +176,7 @@ read http://www.rubydoc.info/github/appium/ruby_lib_core/Appium/Core/Driver
|
|
|
176
176
|
|
|
177
177
|
--
|
|
178
178
|
|
|
179
|
-
##### [custom_url](https://github.com/appium/ruby_lib/blob/
|
|
179
|
+
##### [custom_url](https://github.com/appium/ruby_lib/blob/203a6052db42039c89cd000f245f1534379bc86b/lib/appium_lib/driver.rb#L66) common
|
|
180
180
|
|
|
181
181
|
> def custom_url
|
|
182
182
|
|
|
@@ -184,7 +184,7 @@ Returns the value of attribute custom_url.
|
|
|
184
184
|
|
|
185
185
|
--
|
|
186
186
|
|
|
187
|
-
##### [default_wait](https://github.com/appium/ruby_lib/blob/
|
|
187
|
+
##### [default_wait](https://github.com/appium/ruby_lib/blob/203a6052db42039c89cd000f245f1534379bc86b/lib/appium_lib/driver.rb#L67) common
|
|
188
188
|
|
|
189
189
|
> def default_wait
|
|
190
190
|
|
|
@@ -192,7 +192,7 @@ Returns the value of attribute default_wait.
|
|
|
192
192
|
|
|
193
193
|
--
|
|
194
194
|
|
|
195
|
-
##### [appium_port](https://github.com/appium/ruby_lib/blob/
|
|
195
|
+
##### [appium_port](https://github.com/appium/ruby_lib/blob/203a6052db42039c89cd000f245f1534379bc86b/lib/appium_lib/driver.rb#L68) common
|
|
196
196
|
|
|
197
197
|
> def appium_port
|
|
198
198
|
|
|
@@ -200,7 +200,7 @@ Returns the value of attribute appium_port.
|
|
|
200
200
|
|
|
201
201
|
--
|
|
202
202
|
|
|
203
|
-
##### [appium_device](https://github.com/appium/ruby_lib/blob/
|
|
203
|
+
##### [appium_device](https://github.com/appium/ruby_lib/blob/203a6052db42039c89cd000f245f1534379bc86b/lib/appium_lib/driver.rb#L69) common
|
|
204
204
|
|
|
205
205
|
> def appium_device
|
|
206
206
|
|
|
@@ -208,7 +208,7 @@ Returns the value of attribute appium_device.
|
|
|
208
208
|
|
|
209
209
|
--
|
|
210
210
|
|
|
211
|
-
##### [automation_name](https://github.com/appium/ruby_lib/blob/
|
|
211
|
+
##### [automation_name](https://github.com/appium/ruby_lib/blob/203a6052db42039c89cd000f245f1534379bc86b/lib/appium_lib/driver.rb#L70) common
|
|
212
212
|
|
|
213
213
|
> def automation_name
|
|
214
214
|
|
|
@@ -216,7 +216,7 @@ Returns the value of attribute automation_name.
|
|
|
216
216
|
|
|
217
217
|
--
|
|
218
218
|
|
|
219
|
-
##### [listener](https://github.com/appium/ruby_lib/blob/
|
|
219
|
+
##### [listener](https://github.com/appium/ruby_lib/blob/203a6052db42039c89cd000f245f1534379bc86b/lib/appium_lib/driver.rb#L71) common
|
|
220
220
|
|
|
221
221
|
> def listener
|
|
222
222
|
|
|
@@ -224,7 +224,7 @@ Returns the value of attribute listener.
|
|
|
224
224
|
|
|
225
225
|
--
|
|
226
226
|
|
|
227
|
-
##### [http_client](https://github.com/appium/ruby_lib/blob/
|
|
227
|
+
##### [http_client](https://github.com/appium/ruby_lib/blob/203a6052db42039c89cd000f245f1534379bc86b/lib/appium_lib/driver.rb#L72) common
|
|
228
228
|
|
|
229
229
|
> def http_client
|
|
230
230
|
|
|
@@ -232,7 +232,7 @@ Returns the value of attribute http_client.
|
|
|
232
232
|
|
|
233
233
|
--
|
|
234
234
|
|
|
235
|
-
##### [appium_wait_timeout](https://github.com/appium/ruby_lib/blob/
|
|
235
|
+
##### [appium_wait_timeout](https://github.com/appium/ruby_lib/blob/203a6052db42039c89cd000f245f1534379bc86b/lib/appium_lib/driver.rb#L73) common
|
|
236
236
|
|
|
237
237
|
> def appium_wait_timeout
|
|
238
238
|
|
|
@@ -240,7 +240,7 @@ Returns the value of attribute appium_wait_timeout.
|
|
|
240
240
|
|
|
241
241
|
--
|
|
242
242
|
|
|
243
|
-
##### [appium_wait_interval](https://github.com/appium/ruby_lib/blob/
|
|
243
|
+
##### [appium_wait_interval](https://github.com/appium/ruby_lib/blob/203a6052db42039c89cd000f245f1534379bc86b/lib/appium_lib/driver.rb#L74) common
|
|
244
244
|
|
|
245
245
|
> def appium_wait_interval
|
|
246
246
|
|
|
@@ -248,7 +248,7 @@ Returns the value of attribute appium_wait_interval.
|
|
|
248
248
|
|
|
249
249
|
--
|
|
250
250
|
|
|
251
|
-
##### [appium_server_status](https://github.com/appium/ruby_lib/blob/
|
|
251
|
+
##### [appium_server_status](https://github.com/appium/ruby_lib/blob/203a6052db42039c89cd000f245f1534379bc86b/lib/appium_lib/driver.rb#L77) common
|
|
252
252
|
|
|
253
253
|
> def appium_server_status
|
|
254
254
|
|
|
@@ -256,7 +256,7 @@ Appium's server version
|
|
|
256
256
|
|
|
257
257
|
--
|
|
258
258
|
|
|
259
|
-
##### [appium_debug](https://github.com/appium/ruby_lib/blob/
|
|
259
|
+
##### [appium_debug](https://github.com/appium/ruby_lib/blob/203a6052db42039c89cd000f245f1534379bc86b/lib/appium_lib/driver.rb#L79) common
|
|
260
260
|
|
|
261
261
|
> def appium_debug
|
|
262
262
|
|
|
@@ -264,7 +264,7 @@ Boolean debug mode for the Appium Ruby bindings
|
|
|
264
264
|
|
|
265
265
|
--
|
|
266
266
|
|
|
267
|
-
##### [driver](https://github.com/appium/ruby_lib/blob/
|
|
267
|
+
##### [driver](https://github.com/appium/ruby_lib/blob/203a6052db42039c89cd000f245f1534379bc86b/lib/appium_lib/driver.rb#L82) common
|
|
268
268
|
|
|
269
269
|
> def driver
|
|
270
270
|
|
|
@@ -276,7 +276,7 @@ __Returns:__
|
|
|
276
276
|
|
|
277
277
|
--
|
|
278
278
|
|
|
279
|
-
##### [core](https://github.com/appium/ruby_lib/blob/
|
|
279
|
+
##### [core](https://github.com/appium/ruby_lib/blob/203a6052db42039c89cd000f245f1534379bc86b/lib/appium_lib/driver.rb#L84) common
|
|
280
280
|
|
|
281
281
|
> def core
|
|
282
282
|
|
|
@@ -284,7 +284,7 @@ Instance of Appium::Core::Driver
|
|
|
284
284
|
|
|
285
285
|
--
|
|
286
286
|
|
|
287
|
-
##### [initialize](https://github.com/appium/ruby_lib/blob/
|
|
287
|
+
##### [initialize](https://github.com/appium/ruby_lib/blob/203a6052db42039c89cd000f245f1534379bc86b/lib/appium_lib/driver.rb#L153) common
|
|
288
288
|
|
|
289
289
|
> def initialize(opts = {}, global_driver = false)
|
|
290
290
|
|
|
@@ -303,7 +303,7 @@ __Returns:__
|
|
|
303
303
|
|
|
304
304
|
--
|
|
305
305
|
|
|
306
|
-
##### [driver_attributes](https://github.com/appium/ruby_lib/blob/
|
|
306
|
+
##### [driver_attributes](https://github.com/appium/ruby_lib/blob/203a6052db42039c89cd000f245f1534379bc86b/lib/appium_lib/driver.rb#L273) common
|
|
307
307
|
|
|
308
308
|
> def driver_attributes
|
|
309
309
|
|
|
@@ -311,7 +311,7 @@ Returns a hash of the driver attributes
|
|
|
311
311
|
|
|
312
312
|
--
|
|
313
313
|
|
|
314
|
-
##### [device_is_android?](https://github.com/appium/ruby_lib/blob/
|
|
314
|
+
##### [device_is_android?](https://github.com/appium/ruby_lib/blob/203a6052db42039c89cd000f245f1534379bc86b/lib/appium_lib/driver.rb#L291) common
|
|
315
315
|
|
|
316
316
|
> def device_is_android?
|
|
317
317
|
|
|
@@ -323,7 +323,7 @@ __Returns:__
|
|
|
323
323
|
|
|
324
324
|
--
|
|
325
325
|
|
|
326
|
-
##### [device_is_ios?](https://github.com/appium/ruby_lib/blob/
|
|
326
|
+
##### [device_is_ios?](https://github.com/appium/ruby_lib/blob/203a6052db42039c89cd000f245f1534379bc86b/lib/appium_lib/driver.rb#L295) common
|
|
327
327
|
|
|
328
328
|
> def device_is_ios?
|
|
329
329
|
|
|
@@ -335,7 +335,7 @@ __Returns:__
|
|
|
335
335
|
|
|
336
336
|
--
|
|
337
337
|
|
|
338
|
-
##### [device_is_windows?](https://github.com/appium/ruby_lib/blob/
|
|
338
|
+
##### [device_is_windows?](https://github.com/appium/ruby_lib/blob/203a6052db42039c89cd000f245f1534379bc86b/lib/appium_lib/driver.rb#L299) common
|
|
339
339
|
|
|
340
340
|
> def device_is_windows?
|
|
341
341
|
|
|
@@ -347,7 +347,7 @@ __Returns:__
|
|
|
347
347
|
|
|
348
348
|
--
|
|
349
349
|
|
|
350
|
-
##### [automation_name_is_uiautomator2?](https://github.com/appium/ruby_lib/blob/
|
|
350
|
+
##### [automation_name_is_uiautomator2?](https://github.com/appium/ruby_lib/blob/203a6052db42039c89cd000f245f1534379bc86b/lib/appium_lib/driver.rb#L305) common
|
|
351
351
|
|
|
352
352
|
> def automation_name_is_uiautomator2?
|
|
353
353
|
|
|
@@ -359,7 +359,7 @@ __Returns:__
|
|
|
359
359
|
|
|
360
360
|
--
|
|
361
361
|
|
|
362
|
-
##### [automation_name_is_espresso?](https://github.com/appium/ruby_lib/blob/
|
|
362
|
+
##### [automation_name_is_espresso?](https://github.com/appium/ruby_lib/blob/203a6052db42039c89cd000f245f1534379bc86b/lib/appium_lib/driver.rb#L311) common
|
|
363
363
|
|
|
364
364
|
> def automation_name_is_espresso?
|
|
365
365
|
|
|
@@ -371,7 +371,7 @@ __Returns:__
|
|
|
371
371
|
|
|
372
372
|
--
|
|
373
373
|
|
|
374
|
-
##### [automation_name_is_xcuitest?](https://github.com/appium/ruby_lib/blob/
|
|
374
|
+
##### [automation_name_is_xcuitest?](https://github.com/appium/ruby_lib/blob/203a6052db42039c89cd000f245f1534379bc86b/lib/appium_lib/driver.rb#L317) common
|
|
375
375
|
|
|
376
376
|
> def automation_name_is_xcuitest?
|
|
377
377
|
|
|
@@ -383,7 +383,7 @@ __Returns:__
|
|
|
383
383
|
|
|
384
384
|
--
|
|
385
385
|
|
|
386
|
-
##### [action](https://github.com/appium/ruby_lib/blob/
|
|
386
|
+
##### [action](https://github.com/appium/ruby_lib/blob/203a6052db42039c89cd000f245f1534379bc86b/lib/appium_lib/driver.rb#L331) common
|
|
387
387
|
|
|
388
388
|
> def action
|
|
389
389
|
|
|
@@ -392,11 +392,11 @@ Read https://www.rubydoc.info/github/appium/ruby_lib_core/Appium/Core/Base/Bridg
|
|
|
392
392
|
|
|
393
393
|
__Returns:__
|
|
394
394
|
|
|
395
|
-
[
|
|
395
|
+
[Selenium::WebDriver::PointerActions]
|
|
396
396
|
|
|
397
397
|
--
|
|
398
398
|
|
|
399
|
-
##### [appium_server_version](https://github.com/appium/ruby_lib/blob/
|
|
399
|
+
##### [appium_server_version](https://github.com/appium/ruby_lib/blob/203a6052db42039c89cd000f245f1534379bc86b/lib/appium_lib/driver.rb#L346) common
|
|
400
400
|
|
|
401
401
|
> def appium_server_version
|
|
402
402
|
|
|
@@ -408,7 +408,7 @@ __Returns:__
|
|
|
408
408
|
|
|
409
409
|
--
|
|
410
410
|
|
|
411
|
-
##### [remote_status](https://github.com/appium/ruby_lib/blob/
|
|
411
|
+
##### [remote_status](https://github.com/appium/ruby_lib/blob/203a6052db42039c89cd000f245f1534379bc86b/lib/appium_lib/driver.rb#L354) common
|
|
412
412
|
|
|
413
413
|
> def appium_server_version
|
|
414
414
|
|
|
@@ -420,7 +420,7 @@ __Returns:__
|
|
|
420
420
|
|
|
421
421
|
--
|
|
422
422
|
|
|
423
|
-
##### [platform_version](https://github.com/appium/ruby_lib/blob/
|
|
423
|
+
##### [platform_version](https://github.com/appium/ruby_lib/blob/203a6052db42039c89cd000f245f1534379bc86b/lib/appium_lib/driver.rb#L358) common
|
|
424
424
|
|
|
425
425
|
> def platform_version
|
|
426
426
|
|
|
@@ -432,7 +432,7 @@ __Returns:__
|
|
|
432
432
|
|
|
433
433
|
--
|
|
434
434
|
|
|
435
|
-
##### [appium_client_version](https://github.com/appium/ruby_lib/blob/
|
|
435
|
+
##### [appium_client_version](https://github.com/appium/ruby_lib/blob/203a6052db42039c89cd000f245f1534379bc86b/lib/appium_lib/driver.rb#L374) common
|
|
436
436
|
|
|
437
437
|
> def appium_client_version
|
|
438
438
|
|
|
@@ -444,7 +444,7 @@ __Returns:__
|
|
|
444
444
|
|
|
445
445
|
--
|
|
446
446
|
|
|
447
|
-
##### [absolute_app_path](https://github.com/appium/ruby_lib/blob/
|
|
447
|
+
##### [absolute_app_path](https://github.com/appium/ruby_lib/blob/203a6052db42039c89cd000f245f1534379bc86b/lib/appium_lib/driver.rb#L386) common
|
|
448
448
|
|
|
449
449
|
> def absolute_app_path(opts)
|
|
450
450
|
|
|
@@ -461,7 +461,7 @@ __Returns:__
|
|
|
461
461
|
|
|
462
462
|
--
|
|
463
463
|
|
|
464
|
-
##### [server_url](https://github.com/appium/ruby_lib/blob/
|
|
464
|
+
##### [server_url](https://github.com/appium/ruby_lib/blob/203a6052db42039c89cd000f245f1534379bc86b/lib/appium_lib/driver.rb#L411) common
|
|
465
465
|
|
|
466
466
|
> def server_url
|
|
467
467
|
|
|
@@ -473,7 +473,7 @@ __Returns:__
|
|
|
473
473
|
|
|
474
474
|
--
|
|
475
475
|
|
|
476
|
-
##### [restart](https://github.com/appium/ruby_lib/blob/
|
|
476
|
+
##### [restart](https://github.com/appium/ruby_lib/blob/203a6052db42039c89cd000f245f1534379bc86b/lib/appium_lib/driver.rb#L420) common
|
|
477
477
|
|
|
478
478
|
> def restart
|
|
479
479
|
|
|
@@ -485,7 +485,7 @@ __Returns:__
|
|
|
485
485
|
|
|
486
486
|
--
|
|
487
487
|
|
|
488
|
-
##### [screenshot](https://github.com/appium/ruby_lib/blob/
|
|
488
|
+
##### [screenshot](https://github.com/appium/ruby_lib/blob/203a6052db42039c89cd000f245f1534379bc86b/lib/appium_lib/driver.rb#L433) common
|
|
489
489
|
|
|
490
490
|
> def screenshot(png_save_path)
|
|
491
491
|
|
|
@@ -501,7 +501,7 @@ __Returns:__
|
|
|
501
501
|
|
|
502
502
|
--
|
|
503
503
|
|
|
504
|
-
##### [element_screenshot](https://github.com/appium/ruby_lib/blob/
|
|
504
|
+
##### [element_screenshot](https://github.com/appium/ruby_lib/blob/203a6052db42039c89cd000f245f1534379bc86b/lib/appium_lib/driver.rb#L447) common
|
|
505
505
|
|
|
506
506
|
> def element_screenshot(element, png_save_path)
|
|
507
507
|
|
|
@@ -519,7 +519,7 @@ __Returns:__
|
|
|
519
519
|
|
|
520
520
|
--
|
|
521
521
|
|
|
522
|
-
##### [driver_quit](https://github.com/appium/ruby_lib/blob/
|
|
522
|
+
##### [driver_quit](https://github.com/appium/ruby_lib/blob/203a6052db42039c89cd000f245f1534379bc86b/lib/appium_lib/driver.rb#L454) common
|
|
523
523
|
|
|
524
524
|
> def driver_quit
|
|
525
525
|
|
|
@@ -531,7 +531,7 @@ __Returns:__
|
|
|
531
531
|
|
|
532
532
|
--
|
|
533
533
|
|
|
534
|
-
##### [quit_driver](https://github.com/appium/ruby_lib/blob/
|
|
534
|
+
##### [quit_driver](https://github.com/appium/ruby_lib/blob/203a6052db42039c89cd000f245f1534379bc86b/lib/appium_lib/driver.rb#L460) common
|
|
535
535
|
|
|
536
536
|
> def driver_quit
|
|
537
537
|
|
|
@@ -543,7 +543,7 @@ __Returns:__
|
|
|
543
543
|
|
|
544
544
|
--
|
|
545
545
|
|
|
546
|
-
##### [window_size](https://github.com/appium/ruby_lib/blob/
|
|
546
|
+
##### [window_size](https://github.com/appium/ruby_lib/blob/203a6052db42039c89cd000f245f1534379bc86b/lib/appium_lib/driver.rb#L471) common
|
|
547
547
|
|
|
548
548
|
> def window_size
|
|
549
549
|
|
|
@@ -555,7 +555,7 @@ __Returns:__
|
|
|
555
555
|
|
|
556
556
|
--
|
|
557
557
|
|
|
558
|
-
##### [window_rect](https://github.com/appium/ruby_lib/blob/
|
|
558
|
+
##### [window_rect](https://github.com/appium/ruby_lib/blob/203a6052db42039c89cd000f245f1534379bc86b/lib/appium_lib/driver.rb#L486) common
|
|
559
559
|
|
|
560
560
|
> def window_rect
|
|
561
561
|
|
|
@@ -567,7 +567,7 @@ __Returns:__
|
|
|
567
567
|
|
|
568
568
|
--
|
|
569
569
|
|
|
570
|
-
##### [start_driver](https://github.com/appium/ruby_lib/blob/
|
|
570
|
+
##### [start_driver](https://github.com/appium/ruby_lib/blob/203a6052db42039c89cd000f245f1534379bc86b/lib/appium_lib/driver.rb#L519) common
|
|
571
571
|
|
|
572
572
|
> def start_driver(http_client_ops = { http_client: ::Appium::Http::Default.new, open_timeout: 999_999, read_timeout: 999_999 })
|
|
573
573
|
|
|
@@ -587,7 +587,7 @@ __Returns:__
|
|
|
587
587
|
|
|
588
588
|
--
|
|
589
589
|
|
|
590
|
-
##### [set_implicit_wait](https://github.com/appium/ruby_lib/blob/
|
|
590
|
+
##### [set_implicit_wait](https://github.com/appium/ruby_lib/blob/203a6052db42039c89cd000f245f1534379bc86b/lib/appium_lib/driver.rb#L546) common
|
|
591
591
|
|
|
592
592
|
> def set_implicit_wait(wait)
|
|
593
593
|
|
|
@@ -595,7 +595,7 @@ To ignore error for Espresso Driver
|
|
|
595
595
|
|
|
596
596
|
--
|
|
597
597
|
|
|
598
|
-
##### [no_wait](https://github.com/appium/ruby_lib/blob/
|
|
598
|
+
##### [no_wait](https://github.com/appium/ruby_lib/blob/203a6052db42039c89cd000f245f1534379bc86b/lib/appium_lib/driver.rb#L557) common
|
|
599
599
|
|
|
600
600
|
> def no_wait
|
|
601
601
|
|
|
@@ -603,7 +603,7 @@ Set implicit wait to zero.
|
|
|
603
603
|
|
|
604
604
|
--
|
|
605
605
|
|
|
606
|
-
##### [set_wait](https://github.com/appium/ruby_lib/blob/
|
|
606
|
+
##### [set_wait](https://github.com/appium/ruby_lib/blob/203a6052db42039c89cd000f245f1534379bc86b/lib/appium_lib/driver.rb#L571) common
|
|
607
607
|
|
|
608
608
|
> def set_wait(timeout = nil)
|
|
609
609
|
|
|
@@ -619,7 +619,7 @@ __Returns:__
|
|
|
619
619
|
|
|
620
620
|
--
|
|
621
621
|
|
|
622
|
-
##### [exists](https://github.com/appium/ruby_lib/blob/
|
|
622
|
+
##### [exists](https://github.com/appium/ruby_lib/blob/203a6052db42039c89cd000f245f1534379bc86b/lib/appium_lib/driver.rb#L588) common
|
|
623
623
|
|
|
624
624
|
> def exists(pre_check = 0, post_check = @default_wait)
|
|
625
625
|
|
|
@@ -643,7 +643,7 @@ __Returns:__
|
|
|
643
643
|
|
|
644
644
|
--
|
|
645
645
|
|
|
646
|
-
##### [execute_script](https://github.com/appium/ruby_lib/blob/
|
|
646
|
+
##### [execute_script](https://github.com/appium/ruby_lib/blob/203a6052db42039c89cd000f245f1534379bc86b/lib/appium_lib/driver.rb#L612) common
|
|
647
647
|
|
|
648
648
|
> def execute_script(script, *args)
|
|
649
649
|
|
|
@@ -661,7 +661,7 @@ __Returns:__
|
|
|
661
661
|
|
|
662
662
|
--
|
|
663
663
|
|
|
664
|
-
##### [execute_async_script](https://github.com/appium/ruby_lib/blob/
|
|
664
|
+
##### [execute_async_script](https://github.com/appium/ruby_lib/blob/203a6052db42039c89cd000f245f1534379bc86b/lib/appium_lib/driver.rb#L620) common
|
|
665
665
|
|
|
666
666
|
> def execute_async_script(script, *args)
|
|
667
667
|
|
|
@@ -671,7 +671,7 @@ Get the window handles of open browser windows
|
|
|
671
671
|
|
|
672
672
|
--
|
|
673
673
|
|
|
674
|
-
##### [execute_driver](https://github.com/appium/ruby_lib/blob/
|
|
674
|
+
##### [execute_driver](https://github.com/appium/ruby_lib/blob/203a6052db42039c89cd000f245f1534379bc86b/lib/appium_lib/driver.rb#L652) common
|
|
675
675
|
|
|
676
676
|
> def execute_driver(script: '', type: 'webdriverio', timeout_ms: nil)
|
|
677
677
|
|
|
@@ -697,7 +697,7 @@ Appium::Core::Base::Device::ExecuteDriver::Result.
|
|
|
697
697
|
|
|
698
698
|
--
|
|
699
699
|
|
|
700
|
-
##### [window_handles](https://github.com/appium/ruby_lib/blob/
|
|
700
|
+
##### [window_handles](https://github.com/appium/ruby_lib/blob/203a6052db42039c89cd000f245f1534379bc86b/lib/appium_lib/driver.rb#L656) common
|
|
701
701
|
|
|
702
702
|
> def window_handles
|
|
703
703
|
|
|
@@ -705,7 +705,7 @@ Appium::Core::Base::Device::ExecuteDriver::Result.
|
|
|
705
705
|
|
|
706
706
|
--
|
|
707
707
|
|
|
708
|
-
##### [window_handle](https://github.com/appium/ruby_lib/blob/
|
|
708
|
+
##### [window_handle](https://github.com/appium/ruby_lib/blob/203a6052db42039c89cd000f245f1534379bc86b/lib/appium_lib/driver.rb#L661) common
|
|
709
709
|
|
|
710
710
|
> def window_handle
|
|
711
711
|
|
|
@@ -713,7 +713,7 @@ Get the current window handle
|
|
|
713
713
|
|
|
714
714
|
--
|
|
715
715
|
|
|
716
|
-
##### [navigate](https://github.com/appium/ruby_lib/blob/
|
|
716
|
+
##### [navigate](https://github.com/appium/ruby_lib/blob/203a6052db42039c89cd000f245f1534379bc86b/lib/appium_lib/driver.rb#L665) common
|
|
717
717
|
|
|
718
718
|
> def navigate
|
|
719
719
|
|
|
@@ -721,7 +721,7 @@ Get the current window handle
|
|
|
721
721
|
|
|
722
722
|
--
|
|
723
723
|
|
|
724
|
-
##### [manage](https://github.com/appium/ruby_lib/blob/
|
|
724
|
+
##### [manage](https://github.com/appium/ruby_lib/blob/203a6052db42039c89cd000f245f1534379bc86b/lib/appium_lib/driver.rb#L669) common
|
|
725
725
|
|
|
726
726
|
> def manage
|
|
727
727
|
|
|
@@ -729,7 +729,7 @@ Get the current window handle
|
|
|
729
729
|
|
|
730
730
|
--
|
|
731
731
|
|
|
732
|
-
##### [get](https://github.com/appium/ruby_lib/blob/
|
|
732
|
+
##### [get](https://github.com/appium/ruby_lib/blob/203a6052db42039c89cd000f245f1534379bc86b/lib/appium_lib/driver.rb#L673) common
|
|
733
733
|
|
|
734
734
|
> def get(url)
|
|
735
735
|
|
|
@@ -737,7 +737,7 @@ Get the current window handle
|
|
|
737
737
|
|
|
738
738
|
--
|
|
739
739
|
|
|
740
|
-
##### [current_url](https://github.com/appium/ruby_lib/blob/
|
|
740
|
+
##### [current_url](https://github.com/appium/ruby_lib/blob/203a6052db42039c89cd000f245f1534379bc86b/lib/appium_lib/driver.rb#L677) common
|
|
741
741
|
|
|
742
742
|
> def current_url
|
|
743
743
|
|
|
@@ -745,7 +745,7 @@ Get the current window handle
|
|
|
745
745
|
|
|
746
746
|
--
|
|
747
747
|
|
|
748
|
-
##### [title](https://github.com/appium/ruby_lib/blob/
|
|
748
|
+
##### [title](https://github.com/appium/ruby_lib/blob/203a6052db42039c89cd000f245f1534379bc86b/lib/appium_lib/driver.rb#L681) common
|
|
749
749
|
|
|
750
750
|
> def title
|
|
751
751
|
|
|
@@ -753,7 +753,7 @@ Get the current window handle
|
|
|
753
753
|
|
|
754
754
|
--
|
|
755
755
|
|
|
756
|
-
##### [switch_to](https://github.com/appium/ruby_lib/blob/
|
|
756
|
+
##### [switch_to](https://github.com/appium/ruby_lib/blob/203a6052db42039c89cd000f245f1534379bc86b/lib/appium_lib/driver.rb#L687) common
|
|
757
757
|
|
|
758
758
|
> def switch_to
|
|
759
759
|
|
|
@@ -765,7 +765,7 @@ __Returns:__
|
|
|
765
765
|
|
|
766
766
|
--
|
|
767
767
|
|
|
768
|
-
##### [find_elements](https://github.com/appium/ruby_lib/blob/
|
|
768
|
+
##### [find_elements](https://github.com/appium/ruby_lib/blob/203a6052db42039c89cd000f245f1534379bc86b/lib/appium_lib/driver.rb#L714) common
|
|
769
769
|
|
|
770
770
|
> def find_elements(*args)
|
|
771
771
|
|
|
@@ -785,7 +785,7 @@ __Returns:__
|
|
|
785
785
|
|
|
786
786
|
--
|
|
787
787
|
|
|
788
|
-
##### [find_element](https://github.com/appium/ruby_lib/blob/
|
|
788
|
+
##### [find_element](https://github.com/appium/ruby_lib/blob/203a6052db42039c89cd000f245f1534379bc86b/lib/appium_lib/driver.rb#L730) common
|
|
789
789
|
|
|
790
790
|
> def find_element(*args)
|
|
791
791
|
|
|
@@ -803,7 +803,7 @@ __Returns:__
|
|
|
803
803
|
|
|
804
804
|
--
|
|
805
805
|
|
|
806
|
-
##### [find_element_by_image](https://github.com/appium/ruby_lib/blob/
|
|
806
|
+
##### [find_element_by_image](https://github.com/appium/ruby_lib/blob/203a6052db42039c89cd000f245f1534379bc86b/lib/appium_lib/driver.rb#L745) common
|
|
807
807
|
|
|
808
808
|
> def find_element_by_image(png_img_path)
|
|
809
809
|
|
|
@@ -819,7 +819,7 @@ __Returns:__
|
|
|
819
819
|
|
|
820
820
|
--
|
|
821
821
|
|
|
822
|
-
##### [find_elements_by_image](https://github.com/appium/ruby_lib/blob/
|
|
822
|
+
##### [find_elements_by_image](https://github.com/appium/ruby_lib/blob/203a6052db42039c89cd000f245f1534379bc86b/lib/appium_lib/driver.rb#L760) common
|
|
823
823
|
|
|
824
824
|
> def find_elements_by_image(png_img_paths)
|
|
825
825
|
|
|
@@ -835,7 +835,7 @@ __Returns:__
|
|
|
835
835
|
|
|
836
836
|
--
|
|
837
837
|
|
|
838
|
-
##### [set_location](https://github.com/appium/ruby_lib/blob/
|
|
838
|
+
##### [set_location](https://github.com/appium/ruby_lib/blob/203a6052db42039c89cd000f245f1534379bc86b/lib/appium_lib/driver.rb#L773) common
|
|
839
839
|
|
|
840
840
|
> def set_location(opts = {})
|
|
841
841
|
|
|
@@ -851,12 +851,11 @@ __Returns:__
|
|
|
851
851
|
|
|
852
852
|
--
|
|
853
853
|
|
|
854
|
-
##### [log_event](https://github.com/appium/ruby_lib/blob/
|
|
854
|
+
##### [log_event](https://github.com/appium/ruby_lib/blob/203a6052db42039c89cd000f245f1534379bc86b/lib/appium_lib/driver.rb#L796) common
|
|
855
855
|
|
|
856
856
|
> def log_event(vendor:, event:)
|
|
857
857
|
|
|
858
|
-
Logs a custom event. The event is available via {::Appium::Core::Events#get}
|
|
859
|
-
<code>driver.session_capabilities['events']</code> with <code>eventTimings</code> capabilities.
|
|
858
|
+
Logs a custom event. The event is available via {::Appium::Core::Events#get}.
|
|
860
859
|
|
|
861
860
|
__Parameters:__
|
|
862
861
|
|
|
@@ -870,7 +869,7 @@ __Returns:__
|
|
|
870
869
|
|
|
871
870
|
--
|
|
872
871
|
|
|
873
|
-
##### [log_event=](https://github.com/appium/ruby_lib/blob/
|
|
872
|
+
##### [log_event=](https://github.com/appium/ruby_lib/blob/203a6052db42039c89cd000f245f1534379bc86b/lib/appium_lib/driver.rb#L800) common
|
|
874
873
|
|
|
875
874
|
> def log_event=(log_event)
|
|
876
875
|
|
|
@@ -878,7 +877,7 @@ __Returns:__
|
|
|
878
877
|
|
|
879
878
|
--
|
|
880
879
|
|
|
881
|
-
##### [log_events](https://github.com/appium/ruby_lib/blob/
|
|
880
|
+
##### [log_events](https://github.com/appium/ruby_lib/blob/203a6052db42039c89cd000f245f1534379bc86b/lib/appium_lib/driver.rb#L819) common
|
|
882
881
|
|
|
883
882
|
> def log_events(type = nil)
|
|
884
883
|
|
|
@@ -894,7 +893,7 @@ __Returns:__
|
|
|
894
893
|
|
|
895
894
|
--
|
|
896
895
|
|
|
897
|
-
##### [x](https://github.com/appium/ruby_lib/blob/
|
|
896
|
+
##### [x](https://github.com/appium/ruby_lib/blob/203a6052db42039c89cd000f245f1534379bc86b/lib/appium_lib/driver.rb#L826) common
|
|
898
897
|
|
|
899
898
|
> def x
|
|
900
899
|
|
|
@@ -907,7 +906,7 @@ __Returns:__
|
|
|
907
906
|
|
|
908
907
|
--
|
|
909
908
|
|
|
910
|
-
##### [username](https://github.com/appium/ruby_lib/blob/
|
|
909
|
+
##### [username](https://github.com/appium/ruby_lib/blob/203a6052db42039c89cd000f245f1534379bc86b/lib/appium_lib/sauce_labs.rb#L18) common
|
|
911
910
|
|
|
912
911
|
> def username
|
|
913
912
|
|
|
@@ -915,7 +914,7 @@ Username for use on Sauce Labs. Set `false` to disable Sauce, even when SAUCE_US
|
|
|
915
914
|
|
|
916
915
|
--
|
|
917
916
|
|
|
918
|
-
##### [access_key](https://github.com/appium/ruby_lib/blob/
|
|
917
|
+
##### [access_key](https://github.com/appium/ruby_lib/blob/203a6052db42039c89cd000f245f1534379bc86b/lib/appium_lib/sauce_labs.rb#L20) common
|
|
919
918
|
|
|
920
919
|
> def access_key
|
|
921
920
|
|
|
@@ -923,7 +922,7 @@ Access Key for use on Sauce Labs. Set `false` to disable Sauce, even when SAUCE_
|
|
|
923
922
|
|
|
924
923
|
--
|
|
925
924
|
|
|
926
|
-
##### [endpoint](https://github.com/appium/ruby_lib/blob/
|
|
925
|
+
##### [endpoint](https://github.com/appium/ruby_lib/blob/203a6052db42039c89cd000f245f1534379bc86b/lib/appium_lib/sauce_labs.rb#L22) common
|
|
927
926
|
|
|
928
927
|
> def endpoint
|
|
929
928
|
|
|
@@ -931,7 +930,7 @@ Override the Sauce Appium endpoint to allow e.g. TestObject tests. Default is 'o
|
|
|
931
930
|
|
|
932
931
|
--
|
|
933
932
|
|
|
934
|
-
##### [initialize](https://github.com/appium/ruby_lib/blob/
|
|
933
|
+
##### [initialize](https://github.com/appium/ruby_lib/blob/203a6052db42039c89cd000f245f1534379bc86b/lib/appium_lib/sauce_labs.rb#L47) common
|
|
935
934
|
|
|
936
935
|
> def initialize(appium_lib_opts)
|
|
937
936
|
|
|
@@ -947,7 +946,7 @@ __Returns:__
|
|
|
947
946
|
|
|
948
947
|
--
|
|
949
948
|
|
|
950
|
-
##### [sauce_server_url?](https://github.com/appium/ruby_lib/blob/
|
|
949
|
+
##### [sauce_server_url?](https://github.com/appium/ruby_lib/blob/203a6052db42039c89cd000f245f1534379bc86b/lib/appium_lib/sauce_labs.rb#L67) common
|
|
951
950
|
|
|
952
951
|
> def sauce_server_url?
|
|
953
952
|
|
|
@@ -959,7 +958,7 @@ __Returns:__
|
|
|
959
958
|
|
|
960
959
|
--
|
|
961
960
|
|
|
962
|
-
##### [server_url](https://github.com/appium/ruby_lib/blob/
|
|
961
|
+
##### [server_url](https://github.com/appium/ruby_lib/blob/203a6052db42039c89cd000f245f1534379bc86b/lib/appium_lib/sauce_labs.rb#L80) common
|
|
963
962
|
|
|
964
963
|
> def server_url
|
|
965
964
|
|
|
@@ -971,7 +970,7 @@ __Returns:__
|
|
|
971
970
|
|
|
972
971
|
--
|
|
973
972
|
|
|
974
|
-
##### [get_log](https://github.com/appium/ruby_lib/blob/
|
|
973
|
+
##### [get_log](https://github.com/appium/ruby_lib/blob/203a6052db42039c89cd000f245f1534379bc86b/lib/appium_lib/common/log.rb#L25) common
|
|
975
974
|
|
|
976
975
|
> def get_log(type)
|
|
977
976
|
|
|
@@ -987,7 +986,7 @@ __Returns:__
|
|
|
987
986
|
|
|
988
987
|
--
|
|
989
988
|
|
|
990
|
-
##### [get_available_log_types](https://github.com/appium/ruby_lib/blob/
|
|
989
|
+
##### [get_available_log_types](https://github.com/appium/ruby_lib/blob/203a6052db42039c89cd000f245f1534379bc86b/lib/appium_lib/common/log.rb#L37) common
|
|
991
990
|
|
|
992
991
|
> def get_available_log_types
|
|
993
992
|
|
|
@@ -999,7 +998,7 @@ __Returns:__
|
|
|
999
998
|
|
|
1000
999
|
--
|
|
1001
1000
|
|
|
1002
|
-
##### [wait_true](https://github.com/appium/ruby_lib/blob/
|
|
1001
|
+
##### [wait_true](https://github.com/appium/ruby_lib/blob/203a6052db42039c89cd000f245f1534379bc86b/lib/appium_lib/common/wait.rb#L44) common
|
|
1003
1002
|
|
|
1004
1003
|
> def wait_true(opts = {})
|
|
1005
1004
|
|
|
@@ -1019,7 +1018,7 @@ __Parameters:__
|
|
|
1019
1018
|
|
|
1020
1019
|
--
|
|
1021
1020
|
|
|
1022
|
-
##### [wait](https://github.com/appium/ruby_lib/blob/
|
|
1021
|
+
##### [wait](https://github.com/appium/ruby_lib/blob/203a6052db42039c89cd000f245f1534379bc86b/lib/appium_lib/common/wait.rb#L73) common
|
|
1023
1022
|
|
|
1024
1023
|
> def wait(opts = {})
|
|
1025
1024
|
|
|
@@ -1037,23 +1036,7 @@ __Parameters:__
|
|
|
1037
1036
|
|
|
1038
1037
|
--
|
|
1039
1038
|
|
|
1040
|
-
##### [
|
|
1041
|
-
|
|
1042
|
-
> def add_touch_actions
|
|
1043
|
-
|
|
1044
|
-
|
|
1045
|
-
|
|
1046
|
-
--
|
|
1047
|
-
|
|
1048
|
-
##### [delegate_from_appium_driver](https://github.com/appium/ruby_lib/blob/50cf980b570acd7d2d95ea64d1d1b0225f96c73b/lib/appium_lib/common/device.rb#L38) common
|
|
1049
|
-
|
|
1050
|
-
> def delegate_from_appium_driver(method, delegation_target)
|
|
1051
|
-
|
|
1052
|
-
|
|
1053
|
-
|
|
1054
|
-
--
|
|
1055
|
-
|
|
1056
|
-
##### [ignore](https://github.com/appium/ruby_lib/blob/50cf980b570acd7d2d95ea64d1d1b0225f96c73b/lib/appium_lib/common/helper.rb#L30) common
|
|
1039
|
+
##### [ignore](https://github.com/appium/ruby_lib/blob/203a6052db42039c89cd000f245f1534379bc86b/lib/appium_lib/common/helper.rb#L30) common
|
|
1057
1040
|
|
|
1058
1041
|
> def ignore
|
|
1059
1042
|
|
|
@@ -1061,7 +1044,7 @@ Return yield and ignore any exceptions.
|
|
|
1061
1044
|
|
|
1062
1045
|
--
|
|
1063
1046
|
|
|
1064
|
-
##### [back](https://github.com/appium/ruby_lib/blob/
|
|
1047
|
+
##### [back](https://github.com/appium/ruby_lib/blob/203a6052db42039c89cd000f245f1534379bc86b/lib/appium_lib/common/helper.rb#L38) common
|
|
1065
1048
|
|
|
1066
1049
|
> def back
|
|
1067
1050
|
|
|
@@ -1073,7 +1056,7 @@ __Returns:__
|
|
|
1073
1056
|
|
|
1074
1057
|
--
|
|
1075
1058
|
|
|
1076
|
-
##### [session_id](https://github.com/appium/ruby_lib/blob/
|
|
1059
|
+
##### [session_id](https://github.com/appium/ruby_lib/blob/203a6052db42039c89cd000f245f1534379bc86b/lib/appium_lib/common/helper.rb#L49) common
|
|
1077
1060
|
|
|
1078
1061
|
> def session_id
|
|
1079
1062
|
|
|
@@ -1085,7 +1068,7 @@ __Returns:__
|
|
|
1085
1068
|
|
|
1086
1069
|
--
|
|
1087
1070
|
|
|
1088
|
-
##### [xpath](https://github.com/appium/ruby_lib/blob/
|
|
1071
|
+
##### [xpath](https://github.com/appium/ruby_lib/blob/203a6052db42039c89cd000f245f1534379bc86b/lib/appium_lib/common/helper.rb#L57) common
|
|
1089
1072
|
|
|
1090
1073
|
> def xpath(xpath_str)
|
|
1091
1074
|
|
|
@@ -1101,7 +1084,7 @@ __Returns:__
|
|
|
1101
1084
|
|
|
1102
1085
|
--
|
|
1103
1086
|
|
|
1104
|
-
##### [xpaths](https://github.com/appium/ruby_lib/blob/
|
|
1087
|
+
##### [xpaths](https://github.com/appium/ruby_lib/blob/203a6052db42039c89cd000f245f1534379bc86b/lib/appium_lib/common/helper.rb#L65) common
|
|
1105
1088
|
|
|
1106
1089
|
> def xpaths(xpath_str)
|
|
1107
1090
|
|
|
@@ -1117,7 +1100,7 @@ __Returns:__
|
|
|
1117
1100
|
|
|
1118
1101
|
--
|
|
1119
1102
|
|
|
1120
|
-
##### [result](https://github.com/appium/ruby_lib/blob/
|
|
1103
|
+
##### [result](https://github.com/appium/ruby_lib/blob/203a6052db42039c89cd000f245f1534379bc86b/lib/appium_lib/common/helper.rb#L75) common
|
|
1121
1104
|
|
|
1122
1105
|
> def result
|
|
1123
1106
|
|
|
@@ -1125,7 +1108,7 @@ Returns the value of attribute result.
|
|
|
1125
1108
|
|
|
1126
1109
|
--
|
|
1127
1110
|
|
|
1128
|
-
##### [initialize](https://github.com/appium/ruby_lib/blob/
|
|
1111
|
+
##### [initialize](https://github.com/appium/ruby_lib/blob/203a6052db42039c89cd000f245f1534379bc86b/lib/appium_lib/common/helper.rb#L77) common
|
|
1129
1112
|
|
|
1130
1113
|
> def initialize(platform)
|
|
1131
1114
|
|
|
@@ -1137,7 +1120,7 @@ __Returns:__
|
|
|
1137
1120
|
|
|
1138
1121
|
--
|
|
1139
1122
|
|
|
1140
|
-
##### [reset](https://github.com/appium/ruby_lib/blob/
|
|
1123
|
+
##### [reset](https://github.com/appium/ruby_lib/blob/203a6052db42039c89cd000f245f1534379bc86b/lib/appium_lib/common/helper.rb#L82) common
|
|
1141
1124
|
|
|
1142
1125
|
> def reset
|
|
1143
1126
|
|
|
@@ -1145,7 +1128,7 @@ __Returns:__
|
|
|
1145
1128
|
|
|
1146
1129
|
--
|
|
1147
1130
|
|
|
1148
|
-
##### [start_element](https://github.com/appium/ruby_lib/blob/
|
|
1131
|
+
##### [start_element](https://github.com/appium/ruby_lib/blob/203a6052db42039c89cd000f245f1534379bc86b/lib/appium_lib/common/helper.rb#L87) common
|
|
1149
1132
|
|
|
1150
1133
|
> def start_element(name, attrs = [])
|
|
1151
1134
|
|
|
@@ -1153,7 +1136,7 @@ http://nokogiri.org/Nokogiri/XML/SAX/Document.html
|
|
|
1153
1136
|
|
|
1154
1137
|
--
|
|
1155
1138
|
|
|
1156
|
-
##### [formatted_result](https://github.com/appium/ruby_lib/blob/
|
|
1139
|
+
##### [formatted_result](https://github.com/appium/ruby_lib/blob/203a6052db42039c89cd000f245f1534379bc86b/lib/appium_lib/common/helper.rb#L98) common
|
|
1157
1140
|
|
|
1158
1141
|
> def formatted_result
|
|
1159
1142
|
|
|
@@ -1161,7 +1144,7 @@ http://nokogiri.org/Nokogiri/XML/SAX/Document.html
|
|
|
1161
1144
|
|
|
1162
1145
|
--
|
|
1163
1146
|
|
|
1164
|
-
##### [get_page_class](https://github.com/appium/ruby_lib/blob/
|
|
1147
|
+
##### [get_page_class](https://github.com/appium/ruby_lib/blob/203a6052db42039c89cd000f245f1534379bc86b/lib/appium_lib/common/helper.rb#L116) common
|
|
1165
1148
|
|
|
1166
1149
|
> def get_page_class
|
|
1167
1150
|
|
|
@@ -1173,7 +1156,7 @@ __Returns:__
|
|
|
1173
1156
|
|
|
1174
1157
|
--
|
|
1175
1158
|
|
|
1176
|
-
##### [page_class](https://github.com/appium/ruby_lib/blob/
|
|
1159
|
+
##### [page_class](https://github.com/appium/ruby_lib/blob/203a6052db42039c89cd000f245f1534379bc86b/lib/appium_lib/common/helper.rb#L141) common
|
|
1177
1160
|
|
|
1178
1161
|
> def page_class
|
|
1179
1162
|
|
|
@@ -1186,7 +1169,7 @@ __Returns:__
|
|
|
1186
1169
|
|
|
1187
1170
|
--
|
|
1188
1171
|
|
|
1189
|
-
##### [source](https://github.com/appium/ruby_lib/blob/
|
|
1172
|
+
##### [source](https://github.com/appium/ruby_lib/blob/203a6052db42039c89cd000f245f1534379bc86b/lib/appium_lib/common/helper.rb#L148) common
|
|
1190
1173
|
|
|
1191
1174
|
> def source
|
|
1192
1175
|
|
|
@@ -1198,7 +1181,7 @@ __Returns:__
|
|
|
1198
1181
|
|
|
1199
1182
|
--
|
|
1200
1183
|
|
|
1201
|
-
##### [get_source](https://github.com/appium/ruby_lib/blob/
|
|
1184
|
+
##### [get_source](https://github.com/appium/ruby_lib/blob/203a6052db42039c89cd000f245f1534379bc86b/lib/appium_lib/common/helper.rb#L155) common
|
|
1202
1185
|
|
|
1203
1186
|
> def get_source
|
|
1204
1187
|
|
|
@@ -1211,7 +1194,7 @@ __Returns:__
|
|
|
1211
1194
|
|
|
1212
1195
|
--
|
|
1213
1196
|
|
|
1214
|
-
##### [px_to_window_rel](https://github.com/appium/ruby_lib/blob/
|
|
1197
|
+
##### [px_to_window_rel](https://github.com/appium/ruby_lib/blob/203a6052db42039c89cd000f245f1534379bc86b/lib/appium_lib/common/helper.rb#L165) common
|
|
1215
1198
|
|
|
1216
1199
|
> def px_to_window_rel(opts = {}, driver = $driver)
|
|
1217
1200
|
|
|
@@ -1219,7 +1202,7 @@ Converts pixel values to window relative values
|
|
|
1219
1202
|
|
|
1220
1203
|
--
|
|
1221
1204
|
|
|
1222
|
-
##### [xml_keys](https://github.com/appium/ruby_lib/blob/
|
|
1205
|
+
##### [xml_keys](https://github.com/appium/ruby_lib/blob/203a6052db42039c89cd000f245f1534379bc86b/lib/appium_lib/common/helper.rb#L184) common
|
|
1223
1206
|
|
|
1224
1207
|
> def xml_keys(target)
|
|
1225
1208
|
|
|
@@ -1235,7 +1218,7 @@ __Returns:__
|
|
|
1235
1218
|
|
|
1236
1219
|
--
|
|
1237
1220
|
|
|
1238
|
-
##### [xml_values](https://github.com/appium/ruby_lib/blob/
|
|
1221
|
+
##### [xml_values](https://github.com/appium/ruby_lib/blob/203a6052db42039c89cd000f245f1534379bc86b/lib/appium_lib/common/helper.rb#L192) common
|
|
1239
1222
|
|
|
1240
1223
|
> def xml_values(target)
|
|
1241
1224
|
|
|
@@ -1251,7 +1234,7 @@ __Returns:__
|
|
|
1251
1234
|
|
|
1252
1235
|
--
|
|
1253
1236
|
|
|
1254
|
-
##### [resolve_id](https://github.com/appium/ruby_lib/blob/
|
|
1237
|
+
##### [resolve_id](https://github.com/appium/ruby_lib/blob/203a6052db42039c89cd000f245f1534379bc86b/lib/appium_lib/common/helper.rb#L200) common
|
|
1255
1238
|
|
|
1256
1239
|
> def resolve_id(id)
|
|
1257
1240
|
|
|
@@ -1267,7 +1250,7 @@ __Returns:__
|
|
|
1267
1250
|
|
|
1268
1251
|
--
|
|
1269
1252
|
|
|
1270
|
-
##### [filter](https://github.com/appium/ruby_lib/blob/
|
|
1253
|
+
##### [filter](https://github.com/appium/ruby_lib/blob/203a6052db42039c89cd000f245f1534379bc86b/lib/appium_lib/common/helper.rb#L207) common
|
|
1271
1254
|
|
|
1272
1255
|
> def filter
|
|
1273
1256
|
|
|
@@ -1275,7 +1258,7 @@ Returns the value of attribute filter.
|
|
|
1275
1258
|
|
|
1276
1259
|
--
|
|
1277
1260
|
|
|
1278
|
-
##### [filter=](https://github.com/appium/ruby_lib/blob/
|
|
1261
|
+
##### [filter=](https://github.com/appium/ruby_lib/blob/203a6052db42039c89cd000f245f1534379bc86b/lib/appium_lib/common/helper.rb#L210) common
|
|
1279
1262
|
|
|
1280
1263
|
> def filter=(value)
|
|
1281
1264
|
|
|
@@ -1283,7 +1266,7 @@ convert to string to support symbols
|
|
|
1283
1266
|
|
|
1284
1267
|
--
|
|
1285
1268
|
|
|
1286
|
-
##### [initialize](https://github.com/appium/ruby_lib/blob/
|
|
1269
|
+
##### [initialize](https://github.com/appium/ruby_lib/blob/203a6052db42039c89cd000f245f1534379bc86b/lib/appium_lib/common/helper.rb#L217) common
|
|
1287
1270
|
|
|
1288
1271
|
> def initialize
|
|
1289
1272
|
|
|
@@ -1295,7 +1278,7 @@ __Returns:__
|
|
|
1295
1278
|
|
|
1296
1279
|
--
|
|
1297
1280
|
|
|
1298
|
-
##### [reset](https://github.com/appium/ruby_lib/blob/
|
|
1281
|
+
##### [reset](https://github.com/appium/ruby_lib/blob/203a6052db42039c89cd000f245f1534379bc86b/lib/appium_lib/common/helper.rb#L222) common
|
|
1299
1282
|
|
|
1300
1283
|
> def reset
|
|
1301
1284
|
|
|
@@ -1303,7 +1286,7 @@ __Returns:__
|
|
|
1303
1286
|
|
|
1304
1287
|
--
|
|
1305
1288
|
|
|
1306
|
-
##### [result](https://github.com/appium/ruby_lib/blob/
|
|
1289
|
+
##### [result](https://github.com/appium/ruby_lib/blob/203a6052db42039c89cd000f245f1534379bc86b/lib/appium_lib/common/helper.rb#L228) common
|
|
1307
1290
|
|
|
1308
1291
|
> def result
|
|
1309
1292
|
|
|
@@ -1311,7 +1294,7 @@ __Returns:__
|
|
|
1311
1294
|
|
|
1312
1295
|
--
|
|
1313
1296
|
|
|
1314
|
-
##### [start_element](https://github.com/appium/ruby_lib/blob/
|
|
1297
|
+
##### [start_element](https://github.com/appium/ruby_lib/blob/203a6052db42039c89cd000f245f1534379bc86b/lib/appium_lib/common/helper.rb#L242) common
|
|
1315
1298
|
|
|
1316
1299
|
> def start_element(name, attrs = [])
|
|
1317
1300
|
|
|
@@ -1319,7 +1302,7 @@ __Returns:__
|
|
|
1319
1302
|
|
|
1320
1303
|
--
|
|
1321
1304
|
|
|
1322
|
-
##### [end_element](https://github.com/appium/ruby_lib/blob/
|
|
1305
|
+
##### [end_element](https://github.com/appium/ruby_lib/blob/203a6052db42039c89cd000f245f1534379bc86b/lib/appium_lib/common/helper.rb#L252) common
|
|
1323
1306
|
|
|
1324
1307
|
> def end_element(name)
|
|
1325
1308
|
|
|
@@ -1327,7 +1310,7 @@ __Returns:__
|
|
|
1327
1310
|
|
|
1328
1311
|
--
|
|
1329
1312
|
|
|
1330
|
-
##### [characters](https://github.com/appium/ruby_lib/blob/
|
|
1313
|
+
##### [characters](https://github.com/appium/ruby_lib/blob/203a6052db42039c89cd000f245f1534379bc86b/lib/appium_lib/common/helper.rb#L259) common
|
|
1331
1314
|
|
|
1332
1315
|
> def characters(chars)
|
|
1333
1316
|
|
|
@@ -1335,79 +1318,7 @@ __Returns:__
|
|
|
1335
1318
|
|
|
1336
1319
|
--
|
|
1337
1320
|
|
|
1338
|
-
##### [
|
|
1339
|
-
|
|
1340
|
-
> def pinch(percentage = 25, auto_perform = true, driver = $driver)
|
|
1341
|
-
|
|
1342
|
-
Convenience method for pinching the screen.
|
|
1343
|
-
Places two fingers at the edges of the screen and brings them together.
|
|
1344
|
-
Without auto_perform
|
|
1345
|
-
|
|
1346
|
-
With driver
|
|
1347
|
-
|
|
1348
|
-
__Parameters:__
|
|
1349
|
-
|
|
1350
|
-
[int] percentage - The percent size by which to shrink the screen when pinched.
|
|
1351
|
-
|
|
1352
|
-
[boolean] auto_perform - Whether to perform the action immediately (default true)
|
|
1353
|
-
|
|
1354
|
-
[Driver] driver - Set a driver to conduct the action. DEfault is global driver($driver)
|
|
1355
|
-
|
|
1356
|
-
--
|
|
1357
|
-
|
|
1358
|
-
##### [zoom](https://github.com/appium/ruby_lib/blob/50cf980b570acd7d2d95ea64d1d1b0225f96c73b/lib/appium_lib/common/multi_touch.rb#L108) common
|
|
1359
|
-
|
|
1360
|
-
> def zoom(percentage = 200, auto_perform = true, driver = $driver)
|
|
1361
|
-
|
|
1362
|
-
Convenience method for zooming the screen.
|
|
1363
|
-
Places two fingers at the edges of the screen and brings them together.
|
|
1364
|
-
Without auto_perform
|
|
1365
|
-
|
|
1366
|
-
With driver
|
|
1367
|
-
|
|
1368
|
-
__Parameters:__
|
|
1369
|
-
|
|
1370
|
-
[int] percentage - The percent size by which to shrink the screen when pinched.
|
|
1371
|
-
|
|
1372
|
-
[boolean] auto_perform - Whether to perform the action immediately (default true)
|
|
1373
|
-
|
|
1374
|
-
[Driver] driver - Set a driver to conduct the action. DEfault is global driver($driver)
|
|
1375
|
-
|
|
1376
|
-
--
|
|
1377
|
-
|
|
1378
|
-
##### [initialize](https://github.com/appium/ruby_lib/blob/50cf980b570acd7d2d95ea64d1d1b0225f96c73b/lib/appium_lib/common/multi_touch.rb#L194) common
|
|
1379
|
-
|
|
1380
|
-
> def initialize(driver = $driver)
|
|
1381
|
-
|
|
1382
|
-
self
|
|
1383
|
-
|
|
1384
|
-
__Returns:__
|
|
1385
|
-
|
|
1386
|
-
[MultiTouch] a new instance of MultiTouch
|
|
1387
|
-
|
|
1388
|
-
--
|
|
1389
|
-
|
|
1390
|
-
##### [initialize](https://github.com/appium/ruby_lib/blob/50cf980b570acd7d2d95ea64d1d1b0225f96c73b/lib/appium_lib/common/touch_actions.rb#L62) common
|
|
1391
|
-
|
|
1392
|
-
> def initialize(driver = $driver)
|
|
1393
|
-
|
|
1394
|
-
|
|
1395
|
-
|
|
1396
|
-
__Returns:__
|
|
1397
|
-
|
|
1398
|
-
[TouchAction] a new instance of TouchAction
|
|
1399
|
-
|
|
1400
|
-
--
|
|
1401
|
-
|
|
1402
|
-
##### [swipe](https://github.com/appium/ruby_lib/blob/50cf980b570acd7d2d95ea64d1d1b0225f96c73b/lib/appium_lib/common/touch_actions.rb#L66) common
|
|
1403
|
-
|
|
1404
|
-
> def swipe(opts)
|
|
1405
|
-
|
|
1406
|
-
|
|
1407
|
-
|
|
1408
|
-
--
|
|
1409
|
-
|
|
1410
|
-
##### [initialize](https://github.com/appium/ruby_lib/blob/50cf980b570acd7d2d95ea64d1d1b0225f96c73b/lib/appium_lib/common/command/ws_logcat.rb#L19) common
|
|
1321
|
+
##### [initialize](https://github.com/appium/ruby_lib/blob/203a6052db42039c89cd000f245f1534379bc86b/lib/appium_lib/common/command/ws_logcat.rb#L19) common
|
|
1411
1322
|
|
|
1412
1323
|
> def initialize(url:, output_file: 'logcat.log')
|
|
1413
1324
|
|
|
@@ -1419,7 +1330,7 @@ __Returns:__
|
|
|
1419
1330
|
|
|
1420
1331
|
--
|
|
1421
1332
|
|
|
1422
|
-
##### [handle_message_data](https://github.com/appium/ruby_lib/blob/
|
|
1333
|
+
##### [handle_message_data](https://github.com/appium/ruby_lib/blob/203a6052db42039c89cd000f245f1534379bc86b/lib/appium_lib/common/command/ws_logcat.rb#L24) common
|
|
1423
1334
|
|
|
1424
1335
|
> def handle_message_data(data)
|
|
1425
1336
|
|
|
@@ -1427,7 +1338,7 @@ __Returns:__
|
|
|
1427
1338
|
|
|
1428
1339
|
--
|
|
1429
1340
|
|
|
1430
|
-
##### [for](https://github.com/appium/ruby_lib/blob/
|
|
1341
|
+
##### [for](https://github.com/appium/ruby_lib/blob/203a6052db42039c89cd000f245f1534379bc86b/lib/appium_lib/android/android.rb#L33) android
|
|
1431
1342
|
|
|
1432
1343
|
> def for(target)
|
|
1433
1344
|
|
|
@@ -1435,7 +1346,7 @@ __Returns:__
|
|
|
1435
1346
|
|
|
1436
1347
|
--
|
|
1437
1348
|
|
|
1438
|
-
##### [text](https://github.com/appium/ruby_lib/blob/
|
|
1349
|
+
##### [text](https://github.com/appium/ruby_lib/blob/203a6052db42039c89cd000f245f1534379bc86b/lib/appium_lib/android/element/text.rb#L25) android
|
|
1439
1350
|
|
|
1440
1351
|
> def text(value)
|
|
1441
1352
|
|
|
@@ -1452,7 +1363,7 @@ __Returns:__
|
|
|
1452
1363
|
|
|
1453
1364
|
--
|
|
1454
1365
|
|
|
1455
|
-
##### [texts](https://github.com/appium/ruby_lib/blob/
|
|
1366
|
+
##### [texts](https://github.com/appium/ruby_lib/blob/203a6052db42039c89cd000f245f1534379bc86b/lib/appium_lib/android/element/text.rb#L35) android
|
|
1456
1367
|
|
|
1457
1368
|
> def texts(value = false)
|
|
1458
1369
|
|
|
@@ -1469,7 +1380,7 @@ __Returns:__
|
|
|
1469
1380
|
|
|
1470
1381
|
--
|
|
1471
1382
|
|
|
1472
|
-
##### [first_text](https://github.com/appium/ruby_lib/blob/
|
|
1383
|
+
##### [first_text](https://github.com/appium/ruby_lib/blob/203a6052db42039c89cd000f245f1534379bc86b/lib/appium_lib/android/element/text.rb#L43) android
|
|
1473
1384
|
|
|
1474
1385
|
> def first_text
|
|
1475
1386
|
|
|
@@ -1481,7 +1392,7 @@ __Returns:__
|
|
|
1481
1392
|
|
|
1482
1393
|
--
|
|
1483
1394
|
|
|
1484
|
-
##### [last_text](https://github.com/appium/ruby_lib/blob/
|
|
1395
|
+
##### [last_text](https://github.com/appium/ruby_lib/blob/203a6052db42039c89cd000f245f1534379bc86b/lib/appium_lib/android/element/text.rb#L49) android
|
|
1485
1396
|
|
|
1486
1397
|
> def last_text
|
|
1487
1398
|
|
|
@@ -1493,7 +1404,7 @@ __Returns:__
|
|
|
1493
1404
|
|
|
1494
1405
|
--
|
|
1495
1406
|
|
|
1496
|
-
##### [text_exact](https://github.com/appium/ruby_lib/blob/
|
|
1407
|
+
##### [text_exact](https://github.com/appium/ruby_lib/blob/203a6052db42039c89cd000f245f1534379bc86b/lib/appium_lib/android/element/text.rb#L56) android
|
|
1497
1408
|
|
|
1498
1409
|
> def text_exact(value)
|
|
1499
1410
|
|
|
@@ -1509,7 +1420,7 @@ __Returns:__
|
|
|
1509
1420
|
|
|
1510
1421
|
--
|
|
1511
1422
|
|
|
1512
|
-
##### [texts_exact](https://github.com/appium/ruby_lib/blob/
|
|
1423
|
+
##### [texts_exact](https://github.com/appium/ruby_lib/blob/203a6052db42039c89cd000f245f1534379bc86b/lib/appium_lib/android/element/text.rb#L63) android
|
|
1513
1424
|
|
|
1514
1425
|
> def texts_exact(value)
|
|
1515
1426
|
|
|
@@ -1525,7 +1436,7 @@ __Returns:__
|
|
|
1525
1436
|
|
|
1526
1437
|
--
|
|
1527
1438
|
|
|
1528
|
-
##### [result](https://github.com/appium/ruby_lib/blob/
|
|
1439
|
+
##### [result](https://github.com/appium/ruby_lib/blob/203a6052db42039c89cd000f245f1534379bc86b/lib/appium_lib/android/common/helper.rb#L20) android
|
|
1529
1440
|
|
|
1530
1441
|
> def result
|
|
1531
1442
|
|
|
@@ -1533,7 +1444,7 @@ Returns the value of attribute result.
|
|
|
1533
1444
|
|
|
1534
1445
|
--
|
|
1535
1446
|
|
|
1536
|
-
##### [keys](https://github.com/appium/ruby_lib/blob/
|
|
1447
|
+
##### [keys](https://github.com/appium/ruby_lib/blob/203a6052db42039c89cd000f245f1534379bc86b/lib/appium_lib/android/common/helper.rb#L20) android
|
|
1537
1448
|
|
|
1538
1449
|
> def keys
|
|
1539
1450
|
|
|
@@ -1541,7 +1452,7 @@ Returns the value of attribute keys.
|
|
|
1541
1452
|
|
|
1542
1453
|
--
|
|
1543
1454
|
|
|
1544
|
-
##### [filter](https://github.com/appium/ruby_lib/blob/
|
|
1455
|
+
##### [filter](https://github.com/appium/ruby_lib/blob/203a6052db42039c89cd000f245f1534379bc86b/lib/appium_lib/android/common/helper.rb#L20) android
|
|
1545
1456
|
|
|
1546
1457
|
> def filter
|
|
1547
1458
|
|
|
@@ -1549,7 +1460,7 @@ Returns the value of attribute filter.
|
|
|
1549
1460
|
|
|
1550
1461
|
--
|
|
1551
1462
|
|
|
1552
|
-
##### [filter=](https://github.com/appium/ruby_lib/blob/
|
|
1463
|
+
##### [filter=](https://github.com/appium/ruby_lib/blob/203a6052db42039c89cd000f245f1534379bc86b/lib/appium_lib/android/common/helper.rb#L23) android
|
|
1553
1464
|
|
|
1554
1465
|
> def filter=(value)
|
|
1555
1466
|
|
|
@@ -1557,7 +1468,7 @@ convert to string to support symbols
|
|
|
1557
1468
|
|
|
1558
1469
|
--
|
|
1559
1470
|
|
|
1560
|
-
##### [initialize](https://github.com/appium/ruby_lib/blob/
|
|
1471
|
+
##### [initialize](https://github.com/appium/ruby_lib/blob/203a6052db42039c89cd000f245f1534379bc86b/lib/appium_lib/android/common/helper.rb#L30) android
|
|
1561
1472
|
|
|
1562
1473
|
> def initialize
|
|
1563
1474
|
|
|
@@ -1569,7 +1480,7 @@ __Returns:__
|
|
|
1569
1480
|
|
|
1570
1481
|
--
|
|
1571
1482
|
|
|
1572
|
-
##### [reset](https://github.com/appium/ruby_lib/blob/
|
|
1483
|
+
##### [reset](https://github.com/appium/ruby_lib/blob/203a6052db42039c89cd000f245f1534379bc86b/lib/appium_lib/android/common/helper.rb#L35) android
|
|
1573
1484
|
|
|
1574
1485
|
> def reset
|
|
1575
1486
|
|
|
@@ -1577,7 +1488,7 @@ __Returns:__
|
|
|
1577
1488
|
|
|
1578
1489
|
--
|
|
1579
1490
|
|
|
1580
|
-
##### [start_element](https://github.com/appium/ruby_lib/blob/
|
|
1491
|
+
##### [start_element](https://github.com/appium/ruby_lib/blob/203a6052db42039c89cd000f245f1534379bc86b/lib/appium_lib/android/common/helper.rb#L41) android
|
|
1581
1492
|
|
|
1582
1493
|
> def start_element(name, attrs = [], driver = $driver)
|
|
1583
1494
|
|
|
@@ -1585,7 +1496,7 @@ http://nokogiri.org/Nokogiri/XML/SAX/Document.html
|
|
|
1585
1496
|
|
|
1586
1497
|
--
|
|
1587
1498
|
|
|
1588
|
-
##### [get_android_inspect](https://github.com/appium/ruby_lib/blob/
|
|
1499
|
+
##### [get_android_inspect](https://github.com/appium/ruby_lib/blob/203a6052db42039c89cd000f245f1534379bc86b/lib/appium_lib/android/common/helper.rb#L95) android
|
|
1589
1500
|
|
|
1590
1501
|
> def get_android_inspect(class_name = false)
|
|
1591
1502
|
|
|
@@ -1604,7 +1515,7 @@ __Returns:__
|
|
|
1604
1515
|
|
|
1605
1516
|
--
|
|
1606
1517
|
|
|
1607
|
-
##### [page](https://github.com/appium/ruby_lib/blob/
|
|
1518
|
+
##### [page](https://github.com/appium/ruby_lib/blob/203a6052db42039c89cd000f245f1534379bc86b/lib/appium_lib/android/common/helper.rb#L121) android
|
|
1608
1519
|
|
|
1609
1520
|
> def page(opts = {})
|
|
1610
1521
|
|
|
@@ -1623,7 +1534,7 @@ __Returns:__
|
|
|
1623
1534
|
|
|
1624
1535
|
--
|
|
1625
1536
|
|
|
1626
|
-
##### [id](https://github.com/appium/ruby_lib/blob/
|
|
1537
|
+
##### [id](https://github.com/appium/ruby_lib/blob/203a6052db42039c89cd000f245f1534379bc86b/lib/appium_lib/android/common/helper.rb#L130) android
|
|
1627
1538
|
|
|
1628
1539
|
> def id(id)
|
|
1629
1540
|
|
|
@@ -1639,7 +1550,7 @@ __Returns:__
|
|
|
1639
1550
|
|
|
1640
1551
|
--
|
|
1641
1552
|
|
|
1642
|
-
##### [ids](https://github.com/appium/ruby_lib/blob/
|
|
1553
|
+
##### [ids](https://github.com/appium/ruby_lib/blob/203a6052db42039c89cd000f245f1534379bc86b/lib/appium_lib/android/common/helper.rb#L138) android
|
|
1643
1554
|
|
|
1644
1555
|
> def ids(id)
|
|
1645
1556
|
|
|
@@ -1655,7 +1566,7 @@ __Returns:__
|
|
|
1655
1566
|
|
|
1656
1567
|
--
|
|
1657
1568
|
|
|
1658
|
-
##### [ele_index](https://github.com/appium/ruby_lib/blob/
|
|
1569
|
+
##### [ele_index](https://github.com/appium/ruby_lib/blob/203a6052db42039c89cd000f245f1534379bc86b/lib/appium_lib/android/common/helper.rb#L147) android
|
|
1659
1570
|
|
|
1660
1571
|
> def ele_index(class_name, index)
|
|
1661
1572
|
|
|
@@ -1673,7 +1584,7 @@ __Returns:__
|
|
|
1673
1584
|
|
|
1674
1585
|
--
|
|
1675
1586
|
|
|
1676
|
-
##### [first_ele](https://github.com/appium/ruby_lib/blob/
|
|
1587
|
+
##### [first_ele](https://github.com/appium/ruby_lib/blob/203a6052db42039c89cd000f245f1534379bc86b/lib/appium_lib/android/common/helper.rb#L166) android
|
|
1677
1588
|
|
|
1678
1589
|
> def first_ele(class_name)
|
|
1679
1590
|
|
|
@@ -1689,7 +1600,7 @@ __Returns:__
|
|
|
1689
1600
|
|
|
1690
1601
|
--
|
|
1691
1602
|
|
|
1692
|
-
##### [last_ele](https://github.com/appium/ruby_lib/blob/
|
|
1603
|
+
##### [last_ele](https://github.com/appium/ruby_lib/blob/203a6052db42039c89cd000f245f1534379bc86b/lib/appium_lib/android/common/helper.rb#L173) android
|
|
1693
1604
|
|
|
1694
1605
|
> def last_ele(class_name)
|
|
1695
1606
|
|
|
@@ -1705,7 +1616,7 @@ __Returns:__
|
|
|
1705
1616
|
|
|
1706
1617
|
--
|
|
1707
1618
|
|
|
1708
|
-
##### [tag](https://github.com/appium/ruby_lib/blob/
|
|
1619
|
+
##### [tag](https://github.com/appium/ruby_lib/blob/203a6052db42039c89cd000f245f1534379bc86b/lib/appium_lib/android/common/helper.rb#L181) android
|
|
1709
1620
|
|
|
1710
1621
|
> def tag(class_name)
|
|
1711
1622
|
|
|
@@ -1721,7 +1632,7 @@ __Returns:__
|
|
|
1721
1632
|
|
|
1722
1633
|
--
|
|
1723
1634
|
|
|
1724
|
-
##### [tags](https://github.com/appium/ruby_lib/blob/
|
|
1635
|
+
##### [tags](https://github.com/appium/ruby_lib/blob/203a6052db42039c89cd000f245f1534379bc86b/lib/appium_lib/android/common/helper.rb#L189) android
|
|
1725
1636
|
|
|
1726
1637
|
> def tags(class_name)
|
|
1727
1638
|
|
|
@@ -1737,7 +1648,7 @@ __Returns:__
|
|
|
1737
1648
|
|
|
1738
1649
|
--
|
|
1739
1650
|
|
|
1740
|
-
##### [string_visible_contains_xpath](https://github.com/appium/ruby_lib/blob/
|
|
1651
|
+
##### [string_visible_contains_xpath](https://github.com/appium/ruby_lib/blob/203a6052db42039c89cd000f245f1534379bc86b/lib/appium_lib/android/common/helper.rb#L232) android
|
|
1741
1652
|
|
|
1742
1653
|
> def string_visible_contains_xpath(class_name, value)
|
|
1743
1654
|
|
|
@@ -1758,7 +1669,7 @@ __Returns:__
|
|
|
1758
1669
|
|
|
1759
1670
|
--
|
|
1760
1671
|
|
|
1761
|
-
##### [string_visible_contains](https://github.com/appium/ruby_lib/blob/
|
|
1672
|
+
##### [string_visible_contains](https://github.com/appium/ruby_lib/blob/203a6052db42039c89cd000f245f1534379bc86b/lib/appium_lib/android/common/helper.rb#L252) android
|
|
1762
1673
|
|
|
1763
1674
|
> def string_visible_contains(class_name, value)
|
|
1764
1675
|
|
|
@@ -1779,7 +1690,7 @@ __Returns:__
|
|
|
1779
1690
|
|
|
1780
1691
|
--
|
|
1781
1692
|
|
|
1782
|
-
##### [complex_find_contains](https://github.com/appium/ruby_lib/blob/
|
|
1693
|
+
##### [complex_find_contains](https://github.com/appium/ruby_lib/blob/203a6052db42039c89cd000f245f1534379bc86b/lib/appium_lib/android/common/helper.rb#L270) android
|
|
1783
1694
|
|
|
1784
1695
|
> def complex_find_contains(class_name, value)
|
|
1785
1696
|
|
|
@@ -1797,7 +1708,7 @@ __Returns:__
|
|
|
1797
1708
|
|
|
1798
1709
|
--
|
|
1799
1710
|
|
|
1800
|
-
##### [complex_finds_contains](https://github.com/appium/ruby_lib/blob/
|
|
1711
|
+
##### [complex_finds_contains](https://github.com/appium/ruby_lib/blob/203a6052db42039c89cd000f245f1534379bc86b/lib/appium_lib/android/common/helper.rb#L278) android
|
|
1801
1712
|
|
|
1802
1713
|
> def complex_finds_contains(class_name, value)
|
|
1803
1714
|
|
|
@@ -1815,7 +1726,7 @@ __Returns:__
|
|
|
1815
1726
|
|
|
1816
1727
|
--
|
|
1817
1728
|
|
|
1818
|
-
##### [complex_find_exact](https://github.com/appium/ruby_lib/blob/
|
|
1729
|
+
##### [complex_find_exact](https://github.com/appium/ruby_lib/blob/203a6052db42039c89cd000f245f1534379bc86b/lib/appium_lib/android/common/helper.rb#L320) android
|
|
1819
1730
|
|
|
1820
1731
|
> def complex_find_exact(class_name, value)
|
|
1821
1732
|
|
|
@@ -1833,7 +1744,7 @@ __Returns:__
|
|
|
1833
1744
|
|
|
1834
1745
|
--
|
|
1835
1746
|
|
|
1836
|
-
##### [complex_finds_exact](https://github.com/appium/ruby_lib/blob/
|
|
1747
|
+
##### [complex_finds_exact](https://github.com/appium/ruby_lib/blob/203a6052db42039c89cd000f245f1534379bc86b/lib/appium_lib/android/common/helper.rb#L328) android
|
|
1837
1748
|
|
|
1838
1749
|
> def complex_finds_exact(class_name, value)
|
|
1839
1750
|
|
|
@@ -1851,7 +1762,7 @@ __Returns:__
|
|
|
1851
1762
|
|
|
1852
1763
|
--
|
|
1853
1764
|
|
|
1854
|
-
##### [alert_click](https://github.com/appium/ruby_lib/blob/
|
|
1765
|
+
##### [alert_click](https://github.com/appium/ruby_lib/blob/203a6052db42039c89cd000f245f1534379bc86b/lib/appium_lib/android/element/alert.rb#L20) android
|
|
1855
1766
|
|
|
1856
1767
|
> def alert_click(value)
|
|
1857
1768
|
|
|
@@ -1867,7 +1778,7 @@ __Returns:__
|
|
|
1867
1778
|
|
|
1868
1779
|
--
|
|
1869
1780
|
|
|
1870
|
-
##### [alert_accept](https://github.com/appium/ruby_lib/blob/
|
|
1781
|
+
##### [alert_accept](https://github.com/appium/ruby_lib/blob/203a6052db42039c89cd000f245f1534379bc86b/lib/appium_lib/android/element/alert.rb#L27) android
|
|
1871
1782
|
|
|
1872
1783
|
> def alert_accept
|
|
1873
1784
|
|
|
@@ -1880,7 +1791,7 @@ __Returns:__
|
|
|
1880
1791
|
|
|
1881
1792
|
--
|
|
1882
1793
|
|
|
1883
|
-
##### [alert_accept_text](https://github.com/appium/ruby_lib/blob/
|
|
1794
|
+
##### [alert_accept_text](https://github.com/appium/ruby_lib/blob/203a6052db42039c89cd000f245f1534379bc86b/lib/appium_lib/android/element/alert.rb#L34) android
|
|
1884
1795
|
|
|
1885
1796
|
> def alert_accept_text
|
|
1886
1797
|
|
|
@@ -1893,7 +1804,7 @@ __Returns:__
|
|
|
1893
1804
|
|
|
1894
1805
|
--
|
|
1895
1806
|
|
|
1896
|
-
##### [alert_dismiss](https://github.com/appium/ruby_lib/blob/
|
|
1807
|
+
##### [alert_dismiss](https://github.com/appium/ruby_lib/blob/203a6052db42039c89cd000f245f1534379bc86b/lib/appium_lib/android/element/alert.rb#L41) android
|
|
1897
1808
|
|
|
1898
1809
|
> def alert_dismiss
|
|
1899
1810
|
|
|
@@ -1906,7 +1817,7 @@ __Returns:__
|
|
|
1906
1817
|
|
|
1907
1818
|
--
|
|
1908
1819
|
|
|
1909
|
-
##### [alert_dismiss_text](https://github.com/appium/ruby_lib/blob/
|
|
1820
|
+
##### [alert_dismiss_text](https://github.com/appium/ruby_lib/blob/203a6052db42039c89cd000f245f1534379bc86b/lib/appium_lib/android/element/alert.rb#L48) android
|
|
1910
1821
|
|
|
1911
1822
|
> def alert_dismiss_text
|
|
1912
1823
|
|
|
@@ -1919,7 +1830,7 @@ __Returns:__
|
|
|
1919
1830
|
|
|
1920
1831
|
--
|
|
1921
1832
|
|
|
1922
|
-
##### [button](https://github.com/appium/ruby_lib/blob/
|
|
1833
|
+
##### [button](https://github.com/appium/ruby_lib/blob/203a6052db42039c89cd000f245f1534379bc86b/lib/appium_lib/android/element/button.rb#L27) android
|
|
1923
1834
|
|
|
1924
1835
|
> def button(value)
|
|
1925
1836
|
|
|
@@ -1936,7 +1847,7 @@ __Returns:__
|
|
|
1936
1847
|
|
|
1937
1848
|
--
|
|
1938
1849
|
|
|
1939
|
-
##### [buttons](https://github.com/appium/ruby_lib/blob/
|
|
1850
|
+
##### [buttons](https://github.com/appium/ruby_lib/blob/203a6052db42039c89cd000f245f1534379bc86b/lib/appium_lib/android/element/button.rb#L45) android
|
|
1940
1851
|
|
|
1941
1852
|
> def buttons(value = false)
|
|
1942
1853
|
|
|
@@ -1953,7 +1864,7 @@ __Returns:__
|
|
|
1953
1864
|
|
|
1954
1865
|
--
|
|
1955
1866
|
|
|
1956
|
-
##### [first_button](https://github.com/appium/ruby_lib/blob/
|
|
1867
|
+
##### [first_button](https://github.com/appium/ruby_lib/blob/203a6052db42039c89cd000f245f1534379bc86b/lib/appium_lib/android/element/button.rb#L53) android
|
|
1957
1868
|
|
|
1958
1869
|
> def first_button
|
|
1959
1870
|
|
|
@@ -1965,7 +1876,7 @@ __Returns:__
|
|
|
1965
1876
|
|
|
1966
1877
|
--
|
|
1967
1878
|
|
|
1968
|
-
##### [last_button](https://github.com/appium/ruby_lib/blob/
|
|
1879
|
+
##### [last_button](https://github.com/appium/ruby_lib/blob/203a6052db42039c89cd000f245f1534379bc86b/lib/appium_lib/android/element/button.rb#L59) android
|
|
1969
1880
|
|
|
1970
1881
|
> def last_button
|
|
1971
1882
|
|
|
@@ -1977,7 +1888,7 @@ __Returns:__
|
|
|
1977
1888
|
|
|
1978
1889
|
--
|
|
1979
1890
|
|
|
1980
|
-
##### [button_exact](https://github.com/appium/ruby_lib/blob/
|
|
1891
|
+
##### [button_exact](https://github.com/appium/ruby_lib/blob/203a6052db42039c89cd000f245f1534379bc86b/lib/appium_lib/android/element/button.rb#L75) android
|
|
1981
1892
|
|
|
1982
1893
|
> def button_exact(value)
|
|
1983
1894
|
|
|
@@ -1993,7 +1904,7 @@ __Returns:__
|
|
|
1993
1904
|
|
|
1994
1905
|
--
|
|
1995
1906
|
|
|
1996
|
-
##### [buttons_exact](https://github.com/appium/ruby_lib/blob/
|
|
1907
|
+
##### [buttons_exact](https://github.com/appium/ruby_lib/blob/203a6052db42039c89cd000f245f1534379bc86b/lib/appium_lib/android/element/button.rb#L82) android
|
|
1997
1908
|
|
|
1998
1909
|
> def buttons_exact(value)
|
|
1999
1910
|
|
|
@@ -2009,7 +1920,7 @@ __Returns:__
|
|
|
2009
1920
|
|
|
2010
1921
|
--
|
|
2011
1922
|
|
|
2012
|
-
##### [_button_visible_selectors](https://github.com/appium/ruby_lib/blob/
|
|
1923
|
+
##### [_button_visible_selectors](https://github.com/appium/ruby_lib/blob/203a6052db42039c89cd000f245f1534379bc86b/lib/appium_lib/android/element/button.rb#L95) android
|
|
2013
1924
|
|
|
2014
1925
|
> def _button_visible_selectors(opts = {})
|
|
2015
1926
|
|
|
@@ -2017,7 +1928,7 @@ __Returns:__
|
|
|
2017
1928
|
|
|
2018
1929
|
--
|
|
2019
1930
|
|
|
2020
|
-
##### [_button_exact_string](https://github.com/appium/ruby_lib/blob/
|
|
1931
|
+
##### [_button_exact_string](https://github.com/appium/ruby_lib/blob/203a6052db42039c89cd000f245f1534379bc86b/lib/appium_lib/android/element/button.rb#L108) android
|
|
2021
1932
|
|
|
2022
1933
|
> def _button_exact_string(value)
|
|
2023
1934
|
|
|
@@ -2025,7 +1936,7 @@ __Returns:__
|
|
|
2025
1936
|
|
|
2026
1937
|
--
|
|
2027
1938
|
|
|
2028
|
-
##### [_button_contains_string](https://github.com/appium/ruby_lib/blob/
|
|
1939
|
+
##### [_button_contains_string](https://github.com/appium/ruby_lib/blob/203a6052db42039c89cd000f245f1534379bc86b/lib/appium_lib/android/element/button.rb#L114) android
|
|
2029
1940
|
|
|
2030
1941
|
> def _button_contains_string(value)
|
|
2031
1942
|
|
|
@@ -2033,7 +1944,7 @@ __Returns:__
|
|
|
2033
1944
|
|
|
2034
1945
|
--
|
|
2035
1946
|
|
|
2036
|
-
##### [find](https://github.com/appium/ruby_lib/blob/
|
|
1947
|
+
##### [find](https://github.com/appium/ruby_lib/blob/203a6052db42039c89cd000f245f1534379bc86b/lib/appium_lib/android/element/generic.rb#L20) android
|
|
2037
1948
|
|
|
2038
1949
|
> def find(value)
|
|
2039
1950
|
|
|
@@ -2049,7 +1960,7 @@ __Returns:__
|
|
|
2049
1960
|
|
|
2050
1961
|
--
|
|
2051
1962
|
|
|
2052
|
-
##### [finds](https://github.com/appium/ruby_lib/blob/
|
|
1963
|
+
##### [finds](https://github.com/appium/ruby_lib/blob/203a6052db42039c89cd000f245f1534379bc86b/lib/appium_lib/android/element/generic.rb#L27) android
|
|
2053
1964
|
|
|
2054
1965
|
> def finds(value)
|
|
2055
1966
|
|
|
@@ -2065,7 +1976,7 @@ __Returns:__
|
|
|
2065
1976
|
|
|
2066
1977
|
--
|
|
2067
1978
|
|
|
2068
|
-
##### [find_exact](https://github.com/appium/ruby_lib/blob/
|
|
1979
|
+
##### [find_exact](https://github.com/appium/ruby_lib/blob/203a6052db42039c89cd000f245f1534379bc86b/lib/appium_lib/android/element/generic.rb#L34) android
|
|
2069
1980
|
|
|
2070
1981
|
> def find_exact(value)
|
|
2071
1982
|
|
|
@@ -2081,7 +1992,7 @@ __Returns:__
|
|
|
2081
1992
|
|
|
2082
1993
|
--
|
|
2083
1994
|
|
|
2084
|
-
##### [finds_exact](https://github.com/appium/ruby_lib/blob/
|
|
1995
|
+
##### [finds_exact](https://github.com/appium/ruby_lib/blob/203a6052db42039c89cd000f245f1534379bc86b/lib/appium_lib/android/element/generic.rb#L41) android
|
|
2085
1996
|
|
|
2086
1997
|
> def finds_exact(value)
|
|
2087
1998
|
|
|
@@ -2097,7 +2008,7 @@ __Returns:__
|
|
|
2097
2008
|
|
|
2098
2009
|
--
|
|
2099
2010
|
|
|
2100
|
-
##### [scroll_to](https://github.com/appium/ruby_lib/blob/
|
|
2011
|
+
##### [scroll_to](https://github.com/appium/ruby_lib/blob/203a6052db42039c89cd000f245f1534379bc86b/lib/appium_lib/android/element/generic.rb#L54) android
|
|
2101
2012
|
|
|
2102
2013
|
> def scroll_to(text, scrollable_index = 0)
|
|
2103
2014
|
|
|
@@ -2115,7 +2026,7 @@ __Returns:__
|
|
|
2115
2026
|
|
|
2116
2027
|
--
|
|
2117
2028
|
|
|
2118
|
-
##### [scroll_to_exact](https://github.com/appium/ruby_lib/blob/
|
|
2029
|
+
##### [scroll_to_exact](https://github.com/appium/ruby_lib/blob/203a6052db42039c89cd000f245f1534379bc86b/lib/appium_lib/android/element/generic.rb#L70) android
|
|
2119
2030
|
|
|
2120
2031
|
> def scroll_to_exact(text, scrollable_index = 0)
|
|
2121
2032
|
|
|
@@ -2133,7 +2044,7 @@ __Returns:__
|
|
|
2133
2044
|
|
|
2134
2045
|
--
|
|
2135
2046
|
|
|
2136
|
-
##### [for](https://github.com/appium/ruby_lib/blob/
|
|
2047
|
+
##### [for](https://github.com/appium/ruby_lib/blob/203a6052db42039c89cd000f245f1534379bc86b/lib/appium_lib/android/espresso/bridge.rb#L21) android
|
|
2137
2048
|
|
|
2138
2049
|
> def for(target)
|
|
2139
2050
|
|
|
@@ -2141,7 +2052,7 @@ __Returns:__
|
|
|
2141
2052
|
|
|
2142
2053
|
--
|
|
2143
2054
|
|
|
2144
|
-
##### [complex_find_contains](https://github.com/appium/ruby_lib/blob/
|
|
2055
|
+
##### [complex_find_contains](https://github.com/appium/ruby_lib/blob/203a6052db42039c89cd000f245f1534379bc86b/lib/appium_lib/android/espresso/helper.rb#L23) android
|
|
2145
2056
|
|
|
2146
2057
|
> def complex_find_contains(class_name, value)
|
|
2147
2058
|
|
|
@@ -2159,7 +2070,7 @@ __Returns:__
|
|
|
2159
2070
|
|
|
2160
2071
|
--
|
|
2161
2072
|
|
|
2162
|
-
##### [complex_finds_contains](https://github.com/appium/ruby_lib/blob/
|
|
2073
|
+
##### [complex_finds_contains](https://github.com/appium/ruby_lib/blob/203a6052db42039c89cd000f245f1534379bc86b/lib/appium_lib/android/espresso/helper.rb#L31) android
|
|
2163
2074
|
|
|
2164
2075
|
> def complex_finds_contains(class_name, value)
|
|
2165
2076
|
|
|
@@ -2177,7 +2088,7 @@ __Returns:__
|
|
|
2177
2088
|
|
|
2178
2089
|
--
|
|
2179
2090
|
|
|
2180
|
-
##### [complex_find_exact](https://github.com/appium/ruby_lib/blob/
|
|
2091
|
+
##### [complex_find_exact](https://github.com/appium/ruby_lib/blob/203a6052db42039c89cd000f245f1534379bc86b/lib/appium_lib/android/espresso/helper.rb#L39) android
|
|
2181
2092
|
|
|
2182
2093
|
> def complex_find_exact(class_name, value)
|
|
2183
2094
|
|
|
@@ -2195,7 +2106,7 @@ __Returns:__
|
|
|
2195
2106
|
|
|
2196
2107
|
--
|
|
2197
2108
|
|
|
2198
|
-
##### [complex_finds_exact](https://github.com/appium/ruby_lib/blob/
|
|
2109
|
+
##### [complex_finds_exact](https://github.com/appium/ruby_lib/blob/203a6052db42039c89cd000f245f1534379bc86b/lib/appium_lib/android/espresso/helper.rb#L47) android
|
|
2199
2110
|
|
|
2200
2111
|
> def complex_finds_exact(class_name, value)
|
|
2201
2112
|
|
|
@@ -2213,7 +2124,7 @@ __Returns:__
|
|
|
2213
2124
|
|
|
2214
2125
|
--
|
|
2215
2126
|
|
|
2216
|
-
##### [textfield](https://github.com/appium/ruby_lib/blob/
|
|
2127
|
+
##### [textfield](https://github.com/appium/ruby_lib/blob/203a6052db42039c89cd000f245f1534379bc86b/lib/appium_lib/android/element/textfield.rb#L24) android
|
|
2217
2128
|
|
|
2218
2129
|
> def textfield(value)
|
|
2219
2130
|
|
|
@@ -2230,7 +2141,7 @@ __Returns:__
|
|
|
2230
2141
|
|
|
2231
2142
|
--
|
|
2232
2143
|
|
|
2233
|
-
##### [textfields](https://github.com/appium/ruby_lib/blob/
|
|
2144
|
+
##### [textfields](https://github.com/appium/ruby_lib/blob/203a6052db42039c89cd000f245f1534379bc86b/lib/appium_lib/android/element/textfield.rb#L34) android
|
|
2234
2145
|
|
|
2235
2146
|
> def textfields(value = false)
|
|
2236
2147
|
|
|
@@ -2247,7 +2158,7 @@ __Returns:__
|
|
|
2247
2158
|
|
|
2248
2159
|
--
|
|
2249
2160
|
|
|
2250
|
-
##### [first_textfield](https://github.com/appium/ruby_lib/blob/
|
|
2161
|
+
##### [first_textfield](https://github.com/appium/ruby_lib/blob/203a6052db42039c89cd000f245f1534379bc86b/lib/appium_lib/android/element/textfield.rb#L42) android
|
|
2251
2162
|
|
|
2252
2163
|
> def first_textfield
|
|
2253
2164
|
|
|
@@ -2259,7 +2170,7 @@ __Returns:__
|
|
|
2259
2170
|
|
|
2260
2171
|
--
|
|
2261
2172
|
|
|
2262
|
-
##### [last_textfield](https://github.com/appium/ruby_lib/blob/
|
|
2173
|
+
##### [last_textfield](https://github.com/appium/ruby_lib/blob/203a6052db42039c89cd000f245f1534379bc86b/lib/appium_lib/android/element/textfield.rb#L48) android
|
|
2263
2174
|
|
|
2264
2175
|
> def last_textfield
|
|
2265
2176
|
|
|
@@ -2271,7 +2182,7 @@ __Returns:__
|
|
|
2271
2182
|
|
|
2272
2183
|
--
|
|
2273
2184
|
|
|
2274
|
-
##### [textfield_exact](https://github.com/appium/ruby_lib/blob/
|
|
2185
|
+
##### [textfield_exact](https://github.com/appium/ruby_lib/blob/203a6052db42039c89cd000f245f1534379bc86b/lib/appium_lib/android/element/textfield.rb#L55) android
|
|
2275
2186
|
|
|
2276
2187
|
> def textfield_exact(value)
|
|
2277
2188
|
|
|
@@ -2287,7 +2198,7 @@ __Returns:__
|
|
|
2287
2198
|
|
|
2288
2199
|
--
|
|
2289
2200
|
|
|
2290
|
-
##### [textfields_exact](https://github.com/appium/ruby_lib/blob/
|
|
2201
|
+
##### [textfields_exact](https://github.com/appium/ruby_lib/blob/203a6052db42039c89cd000f245f1534379bc86b/lib/appium_lib/android/element/textfield.rb#L62) android
|
|
2291
2202
|
|
|
2292
2203
|
> def textfields_exact(value)
|
|
2293
2204
|
|
|
@@ -2303,7 +2214,7 @@ __Returns:__
|
|
|
2303
2214
|
|
|
2304
2215
|
--
|
|
2305
2216
|
|
|
2306
|
-
##### [for](https://github.com/appium/ruby_lib/blob/
|
|
2217
|
+
##### [for](https://github.com/appium/ruby_lib/blob/203a6052db42039c89cd000f245f1534379bc86b/lib/appium_lib/android/uiautomator2/bridge.rb#L21) android
|
|
2307
2218
|
|
|
2308
2219
|
> def for(target)
|
|
2309
2220
|
|
|
@@ -2311,7 +2222,7 @@ __Returns:__
|
|
|
2311
2222
|
|
|
2312
2223
|
--
|
|
2313
2224
|
|
|
2314
|
-
##### [string_visible_contains](https://github.com/appium/ruby_lib/blob/
|
|
2225
|
+
##### [string_visible_contains](https://github.com/appium/ruby_lib/blob/203a6052db42039c89cd000f245f1534379bc86b/lib/appium_lib/android/uiautomator2/helper.rb#L27) android
|
|
2315
2226
|
|
|
2316
2227
|
> def string_visible_contains(class_name, value)
|
|
2317
2228
|
|
|
@@ -2332,7 +2243,7 @@ __Returns:__
|
|
|
2332
2243
|
|
|
2333
2244
|
--
|
|
2334
2245
|
|
|
2335
|
-
##### [complex_find_contains](https://github.com/appium/ruby_lib/blob/
|
|
2246
|
+
##### [complex_find_contains](https://github.com/appium/ruby_lib/blob/203a6052db42039c89cd000f245f1534379bc86b/lib/appium_lib/android/uiautomator2/helper.rb#L45) android
|
|
2336
2247
|
|
|
2337
2248
|
> def complex_find_contains(class_name, value)
|
|
2338
2249
|
|
|
@@ -2350,7 +2261,7 @@ __Returns:__
|
|
|
2350
2261
|
|
|
2351
2262
|
--
|
|
2352
2263
|
|
|
2353
|
-
##### [complex_finds_contains](https://github.com/appium/ruby_lib/blob/
|
|
2264
|
+
##### [complex_finds_contains](https://github.com/appium/ruby_lib/blob/203a6052db42039c89cd000f245f1534379bc86b/lib/appium_lib/android/uiautomator2/helper.rb#L56) android
|
|
2354
2265
|
|
|
2355
2266
|
> def complex_finds_contains(class_name, value)
|
|
2356
2267
|
|
|
@@ -2368,7 +2279,7 @@ __Returns:__
|
|
|
2368
2279
|
|
|
2369
2280
|
--
|
|
2370
2281
|
|
|
2371
|
-
##### [complex_find_exact](https://github.com/appium/ruby_lib/blob/
|
|
2282
|
+
##### [complex_find_exact](https://github.com/appium/ruby_lib/blob/203a6052db42039c89cd000f245f1534379bc86b/lib/appium_lib/android/uiautomator2/helper.rb#L84) android
|
|
2372
2283
|
|
|
2373
2284
|
> def complex_find_exact(class_name, value)
|
|
2374
2285
|
|
|
@@ -2386,7 +2297,7 @@ __Returns:__
|
|
|
2386
2297
|
|
|
2387
2298
|
--
|
|
2388
2299
|
|
|
2389
|
-
##### [complex_finds_exact](https://github.com/appium/ruby_lib/blob/
|
|
2300
|
+
##### [complex_finds_exact](https://github.com/appium/ruby_lib/blob/203a6052db42039c89cd000f245f1534379bc86b/lib/appium_lib/android/uiautomator2/helper.rb#L95) android
|
|
2390
2301
|
|
|
2391
2302
|
> def complex_finds_exact(class_name, value)
|
|
2392
2303
|
|
|
@@ -2404,7 +2315,7 @@ __Returns:__
|
|
|
2404
2315
|
|
|
2405
2316
|
--
|
|
2406
2317
|
|
|
2407
|
-
##### [shell](https://github.com/appium/ruby_lib/blob/
|
|
2318
|
+
##### [shell](https://github.com/appium/ruby_lib/blob/203a6052db42039c89cd000f245f1534379bc86b/lib/appium_lib/android/common/command/command.rb#L28) android
|
|
2408
2319
|
|
|
2409
2320
|
> def shell(command, arguments)
|
|
2410
2321
|
|
|
@@ -2419,7 +2330,7 @@ __Parameters:__
|
|
|
2419
2330
|
|
|
2420
2331
|
--
|
|
2421
2332
|
|
|
2422
|
-
##### [start_logs_broadcast](https://github.com/appium/ruby_lib/blob/
|
|
2333
|
+
##### [start_logs_broadcast](https://github.com/appium/ruby_lib/blob/203a6052db42039c89cd000f245f1534379bc86b/lib/appium_lib/android/common/command/command.rb#L42) android
|
|
2423
2334
|
|
|
2424
2335
|
> def start_logs_broadcast(logcat_file = 'logcat.log')
|
|
2425
2336
|
|
|
@@ -2431,7 +2342,7 @@ __Parameters:__
|
|
|
2431
2342
|
|
|
2432
2343
|
--
|
|
2433
2344
|
|
|
2434
|
-
##### [stop_logs_broadcast](https://github.com/appium/ruby_lib/blob/
|
|
2345
|
+
##### [stop_logs_broadcast](https://github.com/appium/ruby_lib/blob/203a6052db42039c89cd000f245f1534379bc86b/lib/appium_lib/android/common/command/command.rb#L55) android
|
|
2435
2346
|
|
|
2436
2347
|
> def stop_logs_broadcast
|
|
2437
2348
|
|
|
@@ -2439,7 +2350,7 @@ Stop Android logcat broadcast websocket
|
|
|
2439
2350
|
|
|
2440
2351
|
--
|
|
2441
2352
|
|
|
2442
|
-
##### [button](https://github.com/appium/ruby_lib/blob/
|
|
2353
|
+
##### [button](https://github.com/appium/ruby_lib/blob/203a6052db42039c89cd000f245f1534379bc86b/lib/appium_lib/android/espresso/element/button.rb#L23) android
|
|
2443
2354
|
|
|
2444
2355
|
> def button(value)
|
|
2445
2356
|
|
|
@@ -2456,7 +2367,7 @@ __Returns:__
|
|
|
2456
2367
|
|
|
2457
2368
|
--
|
|
2458
2369
|
|
|
2459
|
-
##### [buttons](https://github.com/appium/ruby_lib/blob/
|
|
2370
|
+
##### [buttons](https://github.com/appium/ruby_lib/blob/203a6052db42039c89cd000f245f1534379bc86b/lib/appium_lib/android/espresso/element/button.rb#L46) android
|
|
2460
2371
|
|
|
2461
2372
|
> def buttons(value = false)
|
|
2462
2373
|
|
|
@@ -2473,7 +2384,7 @@ __Returns:__
|
|
|
2473
2384
|
|
|
2474
2385
|
--
|
|
2475
2386
|
|
|
2476
|
-
##### [first_button](https://github.com/appium/ruby_lib/blob/
|
|
2387
|
+
##### [first_button](https://github.com/appium/ruby_lib/blob/203a6052db42039c89cd000f245f1534379bc86b/lib/appium_lib/android/espresso/element/button.rb#L56) android
|
|
2477
2388
|
|
|
2478
2389
|
> def first_button
|
|
2479
2390
|
|
|
@@ -2485,7 +2396,7 @@ __Returns:__
|
|
|
2485
2396
|
|
|
2486
2397
|
--
|
|
2487
2398
|
|
|
2488
|
-
##### [last_button](https://github.com/appium/ruby_lib/blob/
|
|
2399
|
+
##### [last_button](https://github.com/appium/ruby_lib/blob/203a6052db42039c89cd000f245f1534379bc86b/lib/appium_lib/android/espresso/element/button.rb#L62) android
|
|
2489
2400
|
|
|
2490
2401
|
> def last_button
|
|
2491
2402
|
|
|
@@ -2497,7 +2408,7 @@ __Returns:__
|
|
|
2497
2408
|
|
|
2498
2409
|
--
|
|
2499
2410
|
|
|
2500
|
-
##### [button_exact](https://github.com/appium/ruby_lib/blob/
|
|
2411
|
+
##### [button_exact](https://github.com/appium/ruby_lib/blob/203a6052db42039c89cd000f245f1534379bc86b/lib/appium_lib/android/espresso/element/button.rb#L77) android
|
|
2501
2412
|
|
|
2502
2413
|
> def button_exact(value)
|
|
2503
2414
|
|
|
@@ -2513,7 +2424,7 @@ __Returns:__
|
|
|
2513
2424
|
|
|
2514
2425
|
--
|
|
2515
2426
|
|
|
2516
|
-
##### [buttons_exact](https://github.com/appium/ruby_lib/blob/
|
|
2427
|
+
##### [buttons_exact](https://github.com/appium/ruby_lib/blob/203a6052db42039c89cd000f245f1534379bc86b/lib/appium_lib/android/espresso/element/button.rb#L89) android
|
|
2517
2428
|
|
|
2518
2429
|
> def buttons_exact(value)
|
|
2519
2430
|
|
|
@@ -2529,7 +2440,7 @@ __Returns:__
|
|
|
2529
2440
|
|
|
2530
2441
|
--
|
|
2531
2442
|
|
|
2532
|
-
##### [_button_visible_selectors_xpath](https://github.com/appium/ruby_lib/blob/
|
|
2443
|
+
##### [_button_visible_selectors_xpath](https://github.com/appium/ruby_lib/blob/203a6052db42039c89cd000f245f1534379bc86b/lib/appium_lib/android/espresso/element/button.rb#L104) android
|
|
2533
2444
|
|
|
2534
2445
|
> def _button_visible_selectors_xpath(opts = {})
|
|
2535
2446
|
|
|
@@ -2537,7 +2448,7 @@ __Returns:__
|
|
|
2537
2448
|
|
|
2538
2449
|
--
|
|
2539
2450
|
|
|
2540
|
-
##### [_button_exact_string_xpath](https://github.com/appium/ruby_lib/blob/
|
|
2451
|
+
##### [_button_exact_string_xpath](https://github.com/appium/ruby_lib/blob/203a6052db42039c89cd000f245f1534379bc86b/lib/appium_lib/android/espresso/element/button.rb#L125) android
|
|
2541
2452
|
|
|
2542
2453
|
> def _button_exact_string_xpath(class_name, value)
|
|
2543
2454
|
|
|
@@ -2545,7 +2456,7 @@ __Returns:__
|
|
|
2545
2456
|
|
|
2546
2457
|
--
|
|
2547
2458
|
|
|
2548
|
-
##### [_button_contains_string_xpath](https://github.com/appium/ruby_lib/blob/
|
|
2459
|
+
##### [_button_contains_string_xpath](https://github.com/appium/ruby_lib/blob/203a6052db42039c89cd000f245f1534379bc86b/lib/appium_lib/android/espresso/element/button.rb#L130) android
|
|
2549
2460
|
|
|
2550
2461
|
> def _button_contains_string_xpath(class_name, value)
|
|
2551
2462
|
|
|
@@ -2553,7 +2464,7 @@ __Returns:__
|
|
|
2553
2464
|
|
|
2554
2465
|
--
|
|
2555
2466
|
|
|
2556
|
-
##### [scroll_to](https://github.com/appium/ruby_lib/blob/
|
|
2467
|
+
##### [scroll_to](https://github.com/appium/ruby_lib/blob/203a6052db42039c89cd000f245f1534379bc86b/lib/appium_lib/android/espresso/element/generic.rb#L23) android
|
|
2557
2468
|
|
|
2558
2469
|
> def scroll_to(text)
|
|
2559
2470
|
|
|
@@ -2570,7 +2481,7 @@ __Returns:__
|
|
|
2570
2481
|
|
|
2571
2482
|
--
|
|
2572
2483
|
|
|
2573
|
-
##### [scroll_to_exact](https://github.com/appium/ruby_lib/blob/
|
|
2484
|
+
##### [scroll_to_exact](https://github.com/appium/ruby_lib/blob/203a6052db42039c89cd000f245f1534379bc86b/lib/appium_lib/android/espresso/element/generic.rb#L48) android
|
|
2574
2485
|
|
|
2575
2486
|
> def scroll_to_exact(text)
|
|
2576
2487
|
|
|
@@ -2587,7 +2498,7 @@ __Returns:__
|
|
|
2587
2498
|
|
|
2588
2499
|
--
|
|
2589
2500
|
|
|
2590
|
-
##### [button](https://github.com/appium/ruby_lib/blob/
|
|
2501
|
+
##### [button](https://github.com/appium/ruby_lib/blob/203a6052db42039c89cd000f245f1534379bc86b/lib/appium_lib/android/uiautomator2/element/button.rb#L23) android
|
|
2591
2502
|
|
|
2592
2503
|
> def button(value)
|
|
2593
2504
|
|
|
@@ -2604,7 +2515,7 @@ __Returns:__
|
|
|
2604
2515
|
|
|
2605
2516
|
--
|
|
2606
2517
|
|
|
2607
|
-
##### [buttons](https://github.com/appium/ruby_lib/blob/
|
|
2518
|
+
##### [buttons](https://github.com/appium/ruby_lib/blob/203a6052db42039c89cd000f245f1534379bc86b/lib/appium_lib/android/uiautomator2/element/button.rb#L44) android
|
|
2608
2519
|
|
|
2609
2520
|
> def buttons(value = false)
|
|
2610
2521
|
|
|
@@ -2621,7 +2532,7 @@ __Returns:__
|
|
|
2621
2532
|
|
|
2622
2533
|
--
|
|
2623
2534
|
|
|
2624
|
-
##### [first_button](https://github.com/appium/ruby_lib/blob/
|
|
2535
|
+
##### [first_button](https://github.com/appium/ruby_lib/blob/203a6052db42039c89cd000f245f1534379bc86b/lib/appium_lib/android/uiautomator2/element/button.rb#L52) android
|
|
2625
2536
|
|
|
2626
2537
|
> def first_button
|
|
2627
2538
|
|
|
@@ -2633,7 +2544,7 @@ __Returns:__
|
|
|
2633
2544
|
|
|
2634
2545
|
--
|
|
2635
2546
|
|
|
2636
|
-
##### [last_button](https://github.com/appium/ruby_lib/blob/
|
|
2547
|
+
##### [last_button](https://github.com/appium/ruby_lib/blob/203a6052db42039c89cd000f245f1534379bc86b/lib/appium_lib/android/uiautomator2/element/button.rb#L59) android
|
|
2637
2548
|
|
|
2638
2549
|
> def last_button
|
|
2639
2550
|
|
|
@@ -2645,7 +2556,7 @@ __Returns:__
|
|
|
2645
2556
|
|
|
2646
2557
|
--
|
|
2647
2558
|
|
|
2648
|
-
##### [button_exact](https://github.com/appium/ruby_lib/blob/
|
|
2559
|
+
##### [button_exact](https://github.com/appium/ruby_lib/blob/203a6052db42039c89cd000f245f1534379bc86b/lib/appium_lib/android/uiautomator2/element/button.rb#L76) android
|
|
2649
2560
|
|
|
2650
2561
|
> def button_exact(value)
|
|
2651
2562
|
|
|
@@ -2661,7 +2572,7 @@ __Returns:__
|
|
|
2661
2572
|
|
|
2662
2573
|
--
|
|
2663
2574
|
|
|
2664
|
-
##### [buttons_exact](https://github.com/appium/ruby_lib/blob/
|
|
2575
|
+
##### [buttons_exact](https://github.com/appium/ruby_lib/blob/203a6052db42039c89cd000f245f1534379bc86b/lib/appium_lib/android/uiautomator2/element/button.rb#L84) android
|
|
2665
2576
|
|
|
2666
2577
|
> def buttons_exact(value)
|
|
2667
2578
|
|