appium_lib 9.4.7 → 9.4.8
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +13 -0
- data/docs/android_docs.md +264 -229
- data/docs/ios_docs.md +294 -264
- data/lib/appium_lib/android/client_xpath.rb +4 -0
- data/lib/appium_lib/common/command.rb +1 -0
- data/lib/appium_lib/common/version.rb +2 -2
- data/lib/appium_lib/common/wait.rb +53 -40
- data/lib/appium_lib/device/device.rb +24 -4
- data/lib/appium_lib/ios/helper.rb +19 -27
- data/release_notes.md +7 -0
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 2a8e31ca33ac9ee85cbbc6a1280a36c9dd65ddf4
|
4
|
+
data.tar.gz: 4d847727b516e0c06d1d8d8a4a6c451b32bcb919
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 372824ae8891266aaa5f19918cd4f01c165e464501ad7723e1d704c5085b12469bcfea49223192b7192825c36c71f614384c44c9bcfcecc4f9186c2e704c9e95
|
7
|
+
data.tar.gz: 678486ef4a07b7f4860e9aaedc87ea08bd15aaaf0f778972b505d4c86a163d868808c9715f930aacb5cf9830c95a8d0daad0eb2c194926cd97bb1f7184c98907
|
data/CHANGELOG.md
CHANGED
@@ -3,6 +3,19 @@ Commit based release not is [release_notes.md](./release_notes.md)
|
|
3
3
|
|
4
4
|
Release tags are https://github.com/appium/ruby_lib/releases .
|
5
5
|
|
6
|
+
## v9.4.8
|
7
|
+
### 1. Enhancements
|
8
|
+
- within_context swallowing block return value [#311](https://github.com/appium/ruby_lib/issues/311)
|
9
|
+
- get current_package for Android [#604](https://github.com/appium/ruby_lib/issues/604)
|
10
|
+
- Show visibility on iOS page command [#609](https://github.com/appium/ruby_lib/pull/609)
|
11
|
+
- related: allow showing all elements on ios page command [#310](https://github.com/appium/ruby_lib/issues/310)
|
12
|
+
|
13
|
+
### 2. Bug fixes
|
14
|
+
|
15
|
+
### 3. Deprecations
|
16
|
+
- Android: mark deprecated for client side xpath strategy [#608](https://github.com/appium/ruby_lib/pull/608)
|
17
|
+
- iOS: get_page method [#609](https://github.com/appium/ruby_lib/pull/609)
|
18
|
+
|
6
19
|
## v9.4.7
|
7
20
|
### 1. Enhancements
|
8
21
|
|
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/de5bded7cb9511d1cabfb22f7cf47fe1ee526805/lib/appium_lib/driver.rb#L76)
|
2
2
|
|
3
3
|
> def self.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/de5bded7cb9511d1cabfb22f7cf47fe1ee526805/lib/appium_lib/driver.rb#L112)
|
31
31
|
|
32
32
|
> def self.load_settings(opts = {})
|
33
33
|
|
@@ -57,7 +57,7 @@ __Returns:__
|
|
57
57
|
|
58
58
|
--
|
59
59
|
|
60
|
-
##### [expand_required_files](https://github.com/appium/ruby_lib/blob/
|
60
|
+
##### [expand_required_files](https://github.com/appium/ruby_lib/blob/de5bded7cb9511d1cabfb22f7cf47fe1ee526805/lib/appium_lib/driver.rb#L118)
|
61
61
|
|
62
62
|
> def self.expand_required_files(base_dir, file_paths)
|
63
63
|
|
@@ -75,7 +75,7 @@ __Returns:__
|
|
75
75
|
|
76
76
|
--
|
77
77
|
|
78
|
-
##### [symbolize_keys](https://github.com/appium/ruby_lib/blob/
|
78
|
+
##### [symbolize_keys](https://github.com/appium/ruby_lib/blob/de5bded7cb9511d1cabfb22f7cf47fe1ee526805/lib/appium_lib/driver.rb#L150)
|
79
79
|
|
80
80
|
> def self.symbolize_keys(hash)
|
81
81
|
|
@@ -86,7 +86,7 @@ https://github.com/rails/docrails/blob/a3b1105ada3da64acfa3843b164b14b734456a50/
|
|
86
86
|
|
87
87
|
--
|
88
88
|
|
89
|
-
##### [promote_singleton_appium_methods](https://github.com/appium/ruby_lib/blob/
|
89
|
+
##### [promote_singleton_appium_methods](https://github.com/appium/ruby_lib/blob/de5bded7cb9511d1cabfb22f7cf47fe1ee526805/lib/appium_lib/driver.rb#L171)
|
90
90
|
|
91
91
|
> def self.promote_singleton_appium_methods(modules)
|
92
92
|
|
@@ -104,7 +104,7 @@ otherwise, the array of modules will be used as the promotion target.
|
|
104
104
|
|
105
105
|
--
|
106
106
|
|
107
|
-
##### [promote_appium_methods](https://github.com/appium/ruby_lib/blob/
|
107
|
+
##### [promote_appium_methods](https://github.com/appium/ruby_lib/blob/de5bded7cb9511d1cabfb22f7cf47fe1ee526805/lib/appium_lib/driver.rb#L224)
|
108
108
|
|
109
109
|
> def self.promote_appium_methods(class_array)
|
110
110
|
|
@@ -134,7 +134,7 @@ __Parameters:__
|
|
134
134
|
|
135
135
|
--
|
136
136
|
|
137
|
-
##### [init_caps_for_appium](https://github.com/appium/ruby_lib/blob/
|
137
|
+
##### [init_caps_for_appium](https://github.com/appium/ruby_lib/blob/de5bded7cb9511d1cabfb22f7cf47fe1ee526805/lib/appium_lib/driver.rb#L259)
|
138
138
|
|
139
139
|
> def self.init_caps_for_appium(opts_caps = {})
|
140
140
|
|
@@ -153,7 +153,7 @@ __Returns:__
|
|
153
153
|
|
154
154
|
--
|
155
155
|
|
156
|
-
##### [global_webdriver_http_sleep](https://github.com/appium/ruby_lib/blob/
|
156
|
+
##### [global_webdriver_http_sleep](https://github.com/appium/ruby_lib/blob/de5bded7cb9511d1cabfb22f7cf47fe1ee526805/lib/appium_lib/driver.rb#L277)
|
157
157
|
|
158
158
|
> def global_webdriver_http_sleep
|
159
159
|
|
@@ -161,7 +161,7 @@ The amount to sleep in seconds before every webdriver http call.
|
|
161
161
|
|
162
162
|
--
|
163
163
|
|
164
|
-
##### [global_webdriver_http_sleep=](https://github.com/appium/ruby_lib/blob/
|
164
|
+
##### [global_webdriver_http_sleep=](https://github.com/appium/ruby_lib/blob/de5bded7cb9511d1cabfb22f7cf47fe1ee526805/lib/appium_lib/driver.rb#L277)
|
165
165
|
|
166
166
|
> def global_webdriver_http_sleep=(value)
|
167
167
|
|
@@ -169,7 +169,7 @@ The amount to sleep in seconds before every webdriver http call.
|
|
169
169
|
|
170
170
|
--
|
171
171
|
|
172
|
-
##### [caps](https://github.com/appium/ruby_lib/blob/
|
172
|
+
##### [caps](https://github.com/appium/ruby_lib/blob/de5bded7cb9511d1cabfb22f7cf47fe1ee526805/lib/appium_lib/driver.rb#L279)
|
173
173
|
|
174
174
|
> def caps
|
175
175
|
|
@@ -177,7 +177,7 @@ Selenium webdriver capabilities
|
|
177
177
|
|
178
178
|
--
|
179
179
|
|
180
|
-
##### [custom_url](https://github.com/appium/ruby_lib/blob/
|
180
|
+
##### [custom_url](https://github.com/appium/ruby_lib/blob/de5bded7cb9511d1cabfb22f7cf47fe1ee526805/lib/appium_lib/driver.rb#L281)
|
181
181
|
|
182
182
|
> def custom_url
|
183
183
|
|
@@ -185,7 +185,7 @@ Custom URL for the selenium server
|
|
185
185
|
|
186
186
|
--
|
187
187
|
|
188
|
-
##### [export_session](https://github.com/appium/ruby_lib/blob/
|
188
|
+
##### [export_session](https://github.com/appium/ruby_lib/blob/de5bded7cb9511d1cabfb22f7cf47fe1ee526805/lib/appium_lib/driver.rb#L283)
|
189
189
|
|
190
190
|
> def export_session
|
191
191
|
|
@@ -193,7 +193,7 @@ Export session id to textfile in /tmp for 3rd party tools
|
|
193
193
|
|
194
194
|
--
|
195
195
|
|
196
|
-
##### [default_wait](https://github.com/appium/ruby_lib/blob/
|
196
|
+
##### [default_wait](https://github.com/appium/ruby_lib/blob/de5bded7cb9511d1cabfb22f7cf47fe1ee526805/lib/appium_lib/driver.rb#L288)
|
197
197
|
|
198
198
|
> def default_wait
|
199
199
|
|
@@ -207,7 +207,7 @@ __Returns:__
|
|
207
207
|
|
208
208
|
--
|
209
209
|
|
210
|
-
##### [sauce_username](https://github.com/appium/ruby_lib/blob/
|
210
|
+
##### [sauce_username](https://github.com/appium/ruby_lib/blob/de5bded7cb9511d1cabfb22f7cf47fe1ee526805/lib/appium_lib/driver.rb#L290)
|
211
211
|
|
212
212
|
> def sauce_username
|
213
213
|
|
@@ -215,7 +215,7 @@ Username for use on Sauce Labs. Set `false` to disable Sauce, even when SAUCE_US
|
|
215
215
|
|
216
216
|
--
|
217
217
|
|
218
|
-
##### [sauce_access_key](https://github.com/appium/ruby_lib/blob/
|
218
|
+
##### [sauce_access_key](https://github.com/appium/ruby_lib/blob/de5bded7cb9511d1cabfb22f7cf47fe1ee526805/lib/appium_lib/driver.rb#L292)
|
219
219
|
|
220
220
|
> def sauce_access_key
|
221
221
|
|
@@ -223,7 +223,7 @@ Access Key for use on Sauce Labs. Set `false` to disable Sauce, even when SAUCE_
|
|
223
223
|
|
224
224
|
--
|
225
225
|
|
226
|
-
##### [sauce_endpoint](https://github.com/appium/ruby_lib/blob/
|
226
|
+
##### [sauce_endpoint](https://github.com/appium/ruby_lib/blob/de5bded7cb9511d1cabfb22f7cf47fe1ee526805/lib/appium_lib/driver.rb#L294)
|
227
227
|
|
228
228
|
> def sauce_endpoint
|
229
229
|
|
@@ -231,7 +231,7 @@ Override the Sauce Appium endpoint to allow e.g. TestObject tests
|
|
231
231
|
|
232
232
|
--
|
233
233
|
|
234
|
-
##### [appium_port](https://github.com/appium/ruby_lib/blob/
|
234
|
+
##### [appium_port](https://github.com/appium/ruby_lib/blob/de5bded7cb9511d1cabfb22f7cf47fe1ee526805/lib/appium_lib/driver.rb#L296)
|
235
235
|
|
236
236
|
> def appium_port
|
237
237
|
|
@@ -239,7 +239,7 @@ Appium's server port
|
|
239
239
|
|
240
240
|
--
|
241
241
|
|
242
|
-
##### [appium_device](https://github.com/appium/ruby_lib/blob/
|
242
|
+
##### [appium_device](https://github.com/appium/ruby_lib/blob/de5bded7cb9511d1cabfb22f7cf47fe1ee526805/lib/appium_lib/driver.rb#L298)
|
243
243
|
|
244
244
|
> def appium_device
|
245
245
|
|
@@ -247,7 +247,7 @@ Device type to request from the appium server
|
|
247
247
|
|
248
248
|
--
|
249
249
|
|
250
|
-
##### [automation_name](https://github.com/appium/ruby_lib/blob/
|
250
|
+
##### [automation_name](https://github.com/appium/ruby_lib/blob/de5bded7cb9511d1cabfb22f7cf47fe1ee526805/lib/appium_lib/driver.rb#L301)
|
251
251
|
|
252
252
|
> def automation_name
|
253
253
|
|
@@ -256,7 +256,7 @@ If automation_name is nil, it is not set both client side and server side.
|
|
256
256
|
|
257
257
|
--
|
258
258
|
|
259
|
-
##### [appium_server_status](https://github.com/appium/ruby_lib/blob/
|
259
|
+
##### [appium_server_status](https://github.com/appium/ruby_lib/blob/de5bded7cb9511d1cabfb22f7cf47fe1ee526805/lib/appium_lib/driver.rb#L303)
|
260
260
|
|
261
261
|
> def appium_server_status
|
262
262
|
|
@@ -264,7 +264,7 @@ Appium's server version
|
|
264
264
|
|
265
265
|
--
|
266
266
|
|
267
|
-
##### [appium_debug](https://github.com/appium/ruby_lib/blob/
|
267
|
+
##### [appium_debug](https://github.com/appium/ruby_lib/blob/de5bded7cb9511d1cabfb22f7cf47fe1ee526805/lib/appium_lib/driver.rb#L305)
|
268
268
|
|
269
269
|
> def appium_debug
|
270
270
|
|
@@ -272,7 +272,7 @@ Boolean debug mode for the Appium Ruby bindings
|
|
272
272
|
|
273
273
|
--
|
274
274
|
|
275
|
-
##### [listener](https://github.com/appium/ruby_lib/blob/
|
275
|
+
##### [listener](https://github.com/appium/ruby_lib/blob/de5bded7cb9511d1cabfb22f7cf47fe1ee526805/lib/appium_lib/driver.rb#L307)
|
276
276
|
|
277
277
|
> def listener
|
278
278
|
|
@@ -280,7 +280,7 @@ instance of AbstractEventListener for logging support
|
|
280
280
|
|
281
281
|
--
|
282
282
|
|
283
|
-
##### [driver](https://github.com/appium/ruby_lib/blob/
|
283
|
+
##### [driver](https://github.com/appium/ruby_lib/blob/de5bded7cb9511d1cabfb22f7cf47fe1ee526805/lib/appium_lib/driver.rb#L310)
|
284
284
|
|
285
285
|
> def driver
|
286
286
|
|
@@ -292,7 +292,7 @@ __Returns:__
|
|
292
292
|
|
293
293
|
--
|
294
294
|
|
295
|
-
##### [http_client](https://github.com/appium/ruby_lib/blob/
|
295
|
+
##### [http_client](https://github.com/appium/ruby_lib/blob/de5bded7cb9511d1cabfb22f7cf47fe1ee526805/lib/appium_lib/driver.rb#L313)
|
296
296
|
|
297
297
|
> def http_client
|
298
298
|
|
@@ -304,7 +304,7 @@ __Returns:__
|
|
304
304
|
|
305
305
|
--
|
306
306
|
|
307
|
-
##### [appium_wait_timeout](https://github.com/appium/ruby_lib/blob/
|
307
|
+
##### [appium_wait_timeout](https://github.com/appium/ruby_lib/blob/de5bded7cb9511d1cabfb22f7cf47fe1ee526805/lib/appium_lib/driver.rb#L318)
|
308
308
|
|
309
309
|
> def appium_wait_timeout
|
310
310
|
|
@@ -318,7 +318,7 @@ __Returns:__
|
|
318
318
|
|
319
319
|
--
|
320
320
|
|
321
|
-
##### [appium_wait_interval](https://github.com/appium/ruby_lib/blob/
|
321
|
+
##### [appium_wait_interval](https://github.com/appium/ruby_lib/blob/de5bded7cb9511d1cabfb22f7cf47fe1ee526805/lib/appium_lib/driver.rb#L323)
|
322
322
|
|
323
323
|
> def appium_wait_interval
|
324
324
|
|
@@ -332,7 +332,7 @@ __Returns:__
|
|
332
332
|
|
333
333
|
--
|
334
334
|
|
335
|
-
##### [initialize](https://github.com/appium/ruby_lib/blob/
|
335
|
+
##### [initialize](https://github.com/appium/ruby_lib/blob/de5bded7cb9511d1cabfb22f7cf47fe1ee526805/lib/appium_lib/driver.rb#L363)
|
336
336
|
|
337
337
|
> def initialize(opts = {})
|
338
338
|
|
@@ -348,7 +348,7 @@ __Returns:__
|
|
348
348
|
|
349
349
|
--
|
350
350
|
|
351
|
-
##### [driver_attributes](https://github.com/appium/ruby_lib/blob/
|
351
|
+
##### [driver_attributes](https://github.com/appium/ruby_lib/blob/de5bded7cb9511d1cabfb22f7cf47fe1ee526805/lib/appium_lib/driver.rb#L441)
|
352
352
|
|
353
353
|
> def driver_attributes
|
354
354
|
|
@@ -356,7 +356,7 @@ Returns a hash of the driver attributes
|
|
356
356
|
|
357
357
|
--
|
358
358
|
|
359
|
-
##### [device_is_android?](https://github.com/appium/ruby_lib/blob/
|
359
|
+
##### [device_is_android?](https://github.com/appium/ruby_lib/blob/de5bded7cb9511d1cabfb22f7cf47fe1ee526805/lib/appium_lib/driver.rb#L466)
|
360
360
|
|
361
361
|
> def device_is_android?
|
362
362
|
|
@@ -368,7 +368,7 @@ __Returns:__
|
|
368
368
|
|
369
369
|
--
|
370
370
|
|
371
|
-
##### [automation_name_is_xcuitest?](https://github.com/appium/ruby_lib/blob/
|
371
|
+
##### [automation_name_is_xcuitest?](https://github.com/appium/ruby_lib/blob/de5bded7cb9511d1cabfb22f7cf47fe1ee526805/lib/appium_lib/driver.rb#L472)
|
372
372
|
|
373
373
|
> def automation_name_is_xcuitest?
|
374
374
|
|
@@ -380,7 +380,7 @@ __Returns:__
|
|
380
380
|
|
381
381
|
--
|
382
382
|
|
383
|
-
##### [automation_name_is_uiautomator2?](https://github.com/appium/ruby_lib/blob/
|
383
|
+
##### [automation_name_is_uiautomator2?](https://github.com/appium/ruby_lib/blob/de5bded7cb9511d1cabfb22f7cf47fe1ee526805/lib/appium_lib/driver.rb#L478)
|
384
384
|
|
385
385
|
> def automation_name_is_uiautomator2?
|
386
386
|
|
@@ -392,7 +392,7 @@ __Returns:__
|
|
392
392
|
|
393
393
|
--
|
394
394
|
|
395
|
-
##### [check_server_version_xcuitest](https://github.com/appium/ruby_lib/blob/
|
395
|
+
##### [check_server_version_xcuitest](https://github.com/appium/ruby_lib/blob/de5bded7cb9511d1cabfb22f7cf47fe1ee526805/lib/appium_lib/driver.rb#L485)
|
396
396
|
|
397
397
|
> def check_server_version_xcuitest
|
398
398
|
|
@@ -405,7 +405,7 @@ __Returns:__
|
|
405
405
|
|
406
406
|
--
|
407
407
|
|
408
|
-
##### [appium_server_version](https://github.com/appium/ruby_lib/blob/
|
408
|
+
##### [appium_server_version](https://github.com/appium/ruby_lib/blob/de5bded7cb9511d1cabfb22f7cf47fe1ee526805/lib/appium_lib/driver.rb#L512)
|
409
409
|
|
410
410
|
> def appium_server_version
|
411
411
|
|
@@ -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/de5bded7cb9511d1cabfb22f7cf47fe1ee526805/lib/appium_lib/driver.rb#L533)
|
436
436
|
|
437
437
|
> def appium_client_version
|
438
438
|
|
@@ -450,7 +450,7 @@ __Returns:__
|
|
450
450
|
|
451
451
|
--
|
452
452
|
|
453
|
-
##### [absolute_app_path](https://github.com/appium/ruby_lib/blob/
|
453
|
+
##### [absolute_app_path](https://github.com/appium/ruby_lib/blob/de5bded7cb9511d1cabfb22f7cf47fe1ee526805/lib/appium_lib/driver.rb#L545)
|
454
454
|
|
455
455
|
> def self.absolute_app_path(opts)
|
456
456
|
|
@@ -467,7 +467,7 @@ __Returns:__
|
|
467
467
|
|
468
468
|
--
|
469
469
|
|
470
|
-
##### [server_url](https://github.com/appium/ruby_lib/blob/
|
470
|
+
##### [server_url](https://github.com/appium/ruby_lib/blob/de5bded7cb9511d1cabfb22f7cf47fe1ee526805/lib/appium_lib/driver.rb#L578)
|
471
471
|
|
472
472
|
> def server_url
|
473
473
|
|
@@ -479,7 +479,7 @@ __Returns:__
|
|
479
479
|
|
480
480
|
--
|
481
481
|
|
482
|
-
##### [restart](https://github.com/appium/ruby_lib/blob/
|
482
|
+
##### [restart](https://github.com/appium/ruby_lib/blob/de5bded7cb9511d1cabfb22f7cf47fe1ee526805/lib/appium_lib/driver.rb#L589)
|
483
483
|
|
484
484
|
> def restart
|
485
485
|
|
@@ -491,7 +491,7 @@ __Returns:__
|
|
491
491
|
|
492
492
|
--
|
493
493
|
|
494
|
-
##### [screenshot](https://github.com/appium/ruby_lib/blob/
|
494
|
+
##### [screenshot](https://github.com/appium/ruby_lib/blob/de5bded7cb9511d1cabfb22f7cf47fe1ee526805/lib/appium_lib/driver.rb#L600)
|
495
495
|
|
496
496
|
> def screenshot(png_save_path)
|
497
497
|
|
@@ -509,7 +509,7 @@ __Returns:__
|
|
509
509
|
|
510
510
|
--
|
511
511
|
|
512
|
-
##### [driver_quit](https://github.com/appium/ruby_lib/blob/
|
512
|
+
##### [driver_quit](https://github.com/appium/ruby_lib/blob/de5bded7cb9511d1cabfb22f7cf47fe1ee526805/lib/appium_lib/driver.rb#L607)
|
513
513
|
|
514
514
|
> def driver_quit
|
515
515
|
|
@@ -521,7 +521,7 @@ __Returns:__
|
|
521
521
|
|
522
522
|
--
|
523
523
|
|
524
|
-
##### [start_driver](https://github.com/appium/ruby_lib/blob/
|
524
|
+
##### [start_driver](https://github.com/appium/ruby_lib/blob/de5bded7cb9511d1cabfb22f7cf47fe1ee526805/lib/appium_lib/driver.rb#L617)
|
525
525
|
|
526
526
|
> def start_driver
|
527
527
|
|
@@ -533,7 +533,7 @@ __Returns:__
|
|
533
533
|
|
534
534
|
--
|
535
535
|
|
536
|
-
##### [no_wait](https://github.com/appium/ruby_lib/blob/
|
536
|
+
##### [no_wait](https://github.com/appium/ruby_lib/blob/de5bded7cb9511d1cabfb22f7cf47fe1ee526805/lib/appium_lib/driver.rb#L655)
|
537
537
|
|
538
538
|
> def no_wait
|
539
539
|
|
@@ -541,7 +541,7 @@ Set implicit wait to zero.
|
|
541
541
|
|
542
542
|
--
|
543
543
|
|
544
|
-
##### [set_wait](https://github.com/appium/ruby_lib/blob/
|
544
|
+
##### [set_wait](https://github.com/appium/ruby_lib/blob/de5bded7cb9511d1cabfb22f7cf47fe1ee526805/lib/appium_lib/driver.rb#L669)
|
545
545
|
|
546
546
|
> def set_wait(timeout = nil)
|
547
547
|
|
@@ -563,7 +563,7 @@ __Returns:__
|
|
563
563
|
|
564
564
|
--
|
565
565
|
|
566
|
-
##### [exists](https://github.com/appium/ruby_lib/blob/
|
566
|
+
##### [exists](https://github.com/appium/ruby_lib/blob/de5bded7cb9511d1cabfb22f7cf47fe1ee526805/lib/appium_lib/driver.rb#L686)
|
567
567
|
|
568
568
|
> def exists(pre_check = 0, post_check = @default_wait)
|
569
569
|
|
@@ -587,7 +587,7 @@ __Returns:__
|
|
587
587
|
|
588
588
|
--
|
589
589
|
|
590
|
-
##### [execute_script](https://github.com/appium/ruby_lib/blob/
|
590
|
+
##### [execute_script](https://github.com/appium/ruby_lib/blob/de5bded7cb9511d1cabfb22f7cf47fe1ee526805/lib/appium_lib/driver.rb#L710)
|
591
591
|
|
592
592
|
> def execute_script(script, *args)
|
593
593
|
|
@@ -605,7 +605,7 @@ __Returns:__
|
|
605
605
|
|
606
606
|
--
|
607
607
|
|
608
|
-
##### [find_elements](https://github.com/appium/ruby_lib/blob/
|
608
|
+
##### [find_elements](https://github.com/appium/ruby_lib/blob/de5bded7cb9511d1cabfb22f7cf47fe1ee526805/lib/appium_lib/driver.rb#L732)
|
609
609
|
|
610
610
|
> def find_elements(*args)
|
611
611
|
|
@@ -631,7 +631,7 @@ __Returns:__
|
|
631
631
|
|
632
632
|
--
|
633
633
|
|
634
|
-
##### [find_element](https://github.com/appium/ruby_lib/blob/
|
634
|
+
##### [find_element](https://github.com/appium/ruby_lib/blob/de5bded7cb9511d1cabfb22f7cf47fe1ee526805/lib/appium_lib/driver.rb#L747)
|
635
635
|
|
636
636
|
> def find_element(*args)
|
637
637
|
|
@@ -652,7 +652,7 @@ __Returns:__
|
|
652
652
|
|
653
653
|
--
|
654
654
|
|
655
|
-
##### [set_location](https://github.com/appium/ruby_lib/blob/
|
655
|
+
##### [set_location](https://github.com/appium/ruby_lib/blob/de5bded7cb9511d1cabfb22f7cf47fe1ee526805/lib/appium_lib/driver.rb#L760)
|
656
656
|
|
657
657
|
> def set_location(opts = {})
|
658
658
|
|
@@ -668,7 +668,7 @@ __Returns:__
|
|
668
668
|
|
669
669
|
--
|
670
670
|
|
671
|
-
##### [x](https://github.com/appium/ruby_lib/blob/
|
671
|
+
##### [x](https://github.com/appium/ruby_lib/blob/de5bded7cb9511d1cabfb22f7cf47fe1ee526805/lib/appium_lib/driver.rb#L770)
|
672
672
|
|
673
673
|
> def x
|
674
674
|
|
@@ -681,7 +681,7 @@ __Returns:__
|
|
681
681
|
|
682
682
|
--
|
683
683
|
|
684
|
-
##### [set_automation_name_if_nil](https://github.com/appium/ruby_lib/blob/
|
684
|
+
##### [set_automation_name_if_nil](https://github.com/appium/ruby_lib/blob/de5bded7cb9511d1cabfb22f7cf47fe1ee526805/lib/appium_lib/driver.rb#L779)
|
685
685
|
|
686
686
|
> def set_automation_name_if_nil
|
687
687
|
|
@@ -690,7 +690,7 @@ Since @automation_name is set only client side before start_driver is called.
|
|
690
690
|
|
691
691
|
--
|
692
692
|
|
693
|
-
##### [logger=](https://github.com/appium/ruby_lib/blob/
|
693
|
+
##### [logger=](https://github.com/appium/ruby_lib/blob/de5bded7cb9511d1cabfb22f7cf47fe1ee526805/lib/appium_lib/logger.rb#L13)
|
694
694
|
|
695
695
|
> def logger=(value)
|
696
696
|
|
@@ -702,7 +702,7 @@ __Parameters:__
|
|
702
702
|
|
703
703
|
--
|
704
704
|
|
705
|
-
##### [logger](https://github.com/appium/ruby_lib/blob/
|
705
|
+
##### [logger](https://github.com/appium/ruby_lib/blob/de5bded7cb9511d1cabfb22f7cf47fe1ee526805/lib/appium_lib/logger.rb#L17)
|
706
706
|
|
707
707
|
> def logger
|
708
708
|
|
@@ -710,7 +710,7 @@ __Parameters:__
|
|
710
710
|
|
711
711
|
--
|
712
712
|
|
713
|
-
##### [app_strings](https://github.com/appium/ruby_lib/blob/
|
713
|
+
##### [app_strings](https://github.com/appium/ruby_lib/blob/de5bded7cb9511d1cabfb22f7cf47fe1ee526805/lib/appium_lib/device/device.rb#L7)
|
714
714
|
|
715
715
|
> def app_strings
|
716
716
|
|
@@ -721,7 +721,7 @@ app_strings #=> "TransitionsTitle"=>"Transitions", "WebTitle"=>"Web"
|
|
721
721
|
|
722
722
|
--
|
723
723
|
|
724
|
-
##### [background_app](https://github.com/appium/ruby_lib/blob/
|
724
|
+
##### [background_app](https://github.com/appium/ruby_lib/blob/de5bded7cb9511d1cabfb22f7cf47fe1ee526805/lib/appium_lib/device/device.rb#L13)
|
725
725
|
|
726
726
|
> def background_app
|
727
727
|
|
@@ -730,15 +730,37 @@ This is a blocking application
|
|
730
730
|
|
731
731
|
--
|
732
732
|
|
733
|
-
##### [current_activity](https://github.com/appium/ruby_lib/blob/
|
733
|
+
##### [current_activity](https://github.com/appium/ruby_lib/blob/de5bded7cb9511d1cabfb22f7cf47fe1ee526805/lib/appium_lib/device/device.rb#L24)
|
734
734
|
|
735
735
|
> def current_activity
|
736
736
|
|
737
|
+
Get current activity name
|
738
|
+
```ruby
|
739
|
+
current_activity # '.ApiDemos'
|
740
|
+
```
|
741
|
+
|
742
|
+
__Returns:__
|
743
|
+
|
744
|
+
[String] An activity name
|
745
|
+
|
746
|
+
--
|
747
|
+
|
748
|
+
##### [current_package](https://github.com/appium/ruby_lib/blob/de5bded7cb9511d1cabfb22f7cf47fe1ee526805/lib/appium_lib/device/device.rb#L32)
|
749
|
+
|
750
|
+
> def current_package
|
751
|
+
|
752
|
+
Get current package name
|
753
|
+
```ruby
|
754
|
+
current_package # 'com.example.android.apis'
|
755
|
+
```
|
737
756
|
|
757
|
+
__Returns:__
|
758
|
+
|
759
|
+
[String] A package name
|
738
760
|
|
739
761
|
--
|
740
762
|
|
741
|
-
##### [get_system_bars](https://github.com/appium/ruby_lib/blob/
|
763
|
+
##### [get_system_bars](https://github.com/appium/ruby_lib/blob/de5bded7cb9511d1cabfb22f7cf47fe1ee526805/lib/appium_lib/device/device.rb#L40)
|
742
764
|
|
743
765
|
> def get_system_bars
|
744
766
|
|
@@ -753,7 +775,7 @@ __Returns:__
|
|
753
775
|
|
754
776
|
--
|
755
777
|
|
756
|
-
##### [get_display_density](https://github.com/appium/ruby_lib/blob/
|
778
|
+
##### [get_display_density](https://github.com/appium/ruby_lib/blob/de5bded7cb9511d1cabfb22f7cf47fe1ee526805/lib/appium_lib/device/device.rb#L48)
|
757
779
|
|
758
780
|
> def get_display_density
|
759
781
|
|
@@ -768,7 +790,7 @@ __Returns:__
|
|
768
790
|
|
769
791
|
--
|
770
792
|
|
771
|
-
##### [is_keyboard_shown](https://github.com/appium/ruby_lib/blob/
|
793
|
+
##### [is_keyboard_shown](https://github.com/appium/ruby_lib/blob/de5bded7cb9511d1cabfb22f7cf47fe1ee526805/lib/appium_lib/device/device.rb#L56)
|
772
794
|
|
773
795
|
> def is_keyboard_shown
|
774
796
|
|
@@ -783,7 +805,7 @@ __Returns:__
|
|
783
805
|
|
784
806
|
--
|
785
807
|
|
786
|
-
##### [launch_app](https://github.com/appium/ruby_lib/blob/
|
808
|
+
##### [launch_app](https://github.com/appium/ruby_lib/blob/de5bded7cb9511d1cabfb22f7cf47fe1ee526805/lib/appium_lib/device/device.rb#L64)
|
787
809
|
|
788
810
|
> def launch_app
|
789
811
|
|
@@ -791,7 +813,7 @@ Start the simulator and application configured with desired capabilities
|
|
791
813
|
|
792
814
|
--
|
793
815
|
|
794
|
-
##### [reset](https://github.com/appium/ruby_lib/blob/
|
816
|
+
##### [reset](https://github.com/appium/ruby_lib/blob/de5bded7cb9511d1cabfb22f7cf47fe1ee526805/lib/appium_lib/device/device.rb#L67)
|
795
817
|
|
796
818
|
> def reset
|
797
819
|
|
@@ -799,7 +821,7 @@ Reset the device, relaunching the application.
|
|
799
821
|
|
800
822
|
--
|
801
823
|
|
802
|
-
##### [shake](https://github.com/appium/ruby_lib/blob/
|
824
|
+
##### [shake](https://github.com/appium/ruby_lib/blob/de5bded7cb9511d1cabfb22f7cf47fe1ee526805/lib/appium_lib/device/device.rb#L70)
|
803
825
|
|
804
826
|
> def shake
|
805
827
|
|
@@ -807,7 +829,7 @@ Cause the device to shake
|
|
807
829
|
|
808
830
|
--
|
809
831
|
|
810
|
-
##### [toggle_flight_mode](https://github.com/appium/ruby_lib/blob/
|
832
|
+
##### [toggle_flight_mode](https://github.com/appium/ruby_lib/blob/de5bded7cb9511d1cabfb22f7cf47fe1ee526805/lib/appium_lib/device/device.rb#L73)
|
811
833
|
|
812
834
|
> def toggle_flight_mode
|
813
835
|
|
@@ -815,7 +837,7 @@ Toggle flight mode on or off
|
|
815
837
|
|
816
838
|
--
|
817
839
|
|
818
|
-
##### [device_locked?](https://github.com/appium/ruby_lib/blob/
|
840
|
+
##### [device_locked?](https://github.com/appium/ruby_lib/blob/de5bded7cb9511d1cabfb22f7cf47fe1ee526805/lib/appium_lib/device/device.rb#L76)
|
819
841
|
|
820
842
|
> def device_locked?
|
821
843
|
|
@@ -823,7 +845,7 @@ Toggle flight mode on or off
|
|
823
845
|
|
824
846
|
--
|
825
847
|
|
826
|
-
##### [hide_keyboard](https://github.com/appium/ruby_lib/blob/
|
848
|
+
##### [hide_keyboard](https://github.com/appium/ruby_lib/blob/de5bded7cb9511d1cabfb22f7cf47fe1ee526805/lib/appium_lib/device/device.rb#L78)
|
827
849
|
|
828
850
|
> def hide_keyboard
|
829
851
|
|
@@ -840,7 +862,7 @@ Default for iOS is `:pressKey`. Default for Android is `:tapOutside`.
|
|
840
862
|
|
841
863
|
--
|
842
864
|
|
843
|
-
##### [press_keycode](https://github.com/appium/ruby_lib/blob/
|
865
|
+
##### [press_keycode](https://github.com/appium/ruby_lib/blob/de5bded7cb9511d1cabfb22f7cf47fe1ee526805/lib/appium_lib/device/device.rb#L91)
|
844
866
|
|
845
867
|
> def press_keycode
|
846
868
|
|
@@ -855,7 +877,7 @@ __Parameters:__
|
|
855
877
|
|
856
878
|
--
|
857
879
|
|
858
|
-
##### [long_press_keycode](https://github.com/appium/ruby_lib/blob/
|
880
|
+
##### [long_press_keycode](https://github.com/appium/ruby_lib/blob/de5bded7cb9511d1cabfb22f7cf47fe1ee526805/lib/appium_lib/device/device.rb#L97)
|
859
881
|
|
860
882
|
> def long_press_keycode
|
861
883
|
|
@@ -870,7 +892,7 @@ __Parameters:__
|
|
870
892
|
|
871
893
|
--
|
872
894
|
|
873
|
-
##### [push_file](https://github.com/appium/ruby_lib/blob/
|
895
|
+
##### [push_file](https://github.com/appium/ruby_lib/blob/de5bded7cb9511d1cabfb22f7cf47fe1ee526805/lib/appium_lib/device/device.rb#L103)
|
874
896
|
|
875
897
|
> def push_file
|
876
898
|
|
@@ -884,7 +906,7 @@ __Parameters:__
|
|
884
906
|
|
885
907
|
--
|
886
908
|
|
887
|
-
##### [pull_file](https://github.com/appium/ruby_lib/blob/
|
909
|
+
##### [pull_file](https://github.com/appium/ruby_lib/blob/de5bded7cb9511d1cabfb22f7cf47fe1ee526805/lib/appium_lib/device/device.rb#L108)
|
888
910
|
|
889
911
|
> def pull_file
|
890
912
|
|
@@ -901,7 +923,7 @@ __Parameters:__
|
|
901
923
|
|
902
924
|
--
|
903
925
|
|
904
|
-
##### [pull_folder](https://github.com/appium/ruby_lib/blob/
|
926
|
+
##### [pull_folder](https://github.com/appium/ruby_lib/blob/de5bded7cb9511d1cabfb22f7cf47fe1ee526805/lib/appium_lib/device/device.rb#L118)
|
905
927
|
|
906
928
|
> def pull_folder
|
907
929
|
|
@@ -916,7 +938,7 @@ __Parameters:__
|
|
916
938
|
|
917
939
|
--
|
918
940
|
|
919
|
-
##### [touch_id](https://github.com/appium/ruby_lib/blob/
|
941
|
+
##### [touch_id](https://github.com/appium/ruby_lib/blob/de5bded7cb9511d1cabfb22f7cf47fe1ee526805/lib/appium_lib/device/device.rb#L126)
|
920
942
|
|
921
943
|
> def touch_id
|
922
944
|
|
@@ -933,7 +955,7 @@ Defaults to true.
|
|
933
955
|
|
934
956
|
--
|
935
957
|
|
936
|
-
##### [toggle_touch_id_enrollment](https://github.com/appium/ruby_lib/blob/
|
958
|
+
##### [toggle_touch_id_enrollment](https://github.com/appium/ruby_lib/blob/de5bded7cb9511d1cabfb22f7cf47fe1ee526805/lib/appium_lib/device/device.rb#L135)
|
937
959
|
|
938
960
|
> def toggle_touch_id_enrollment
|
939
961
|
|
@@ -941,7 +963,7 @@ iOS Simulator only: Toggle touch id enrollment on an iOS Simulator.
|
|
941
963
|
|
942
964
|
--
|
943
965
|
|
944
|
-
##### [end_coverage](https://github.com/appium/ruby_lib/blob/
|
966
|
+
##### [end_coverage](https://github.com/appium/ruby_lib/blob/de5bded7cb9511d1cabfb22f7cf47fe1ee526805/lib/appium_lib/device/device.rb#L138)
|
945
967
|
|
946
968
|
> def end_coverage
|
947
969
|
|
@@ -955,7 +977,7 @@ __Parameters:__
|
|
955
977
|
|
956
978
|
--
|
957
979
|
|
958
|
-
##### [get_settings](https://github.com/appium/ruby_lib/blob/
|
980
|
+
##### [get_settings](https://github.com/appium/ruby_lib/blob/de5bded7cb9511d1cabfb22f7cf47fe1ee526805/lib/appium_lib/device/device.rb#L143)
|
959
981
|
|
960
982
|
> def get_settings
|
961
983
|
|
@@ -963,7 +985,7 @@ Get appium Settings for current test session
|
|
963
985
|
|
964
986
|
--
|
965
987
|
|
966
|
-
##### [update_settings](https://github.com/appium/ruby_lib/blob/
|
988
|
+
##### [update_settings](https://github.com/appium/ruby_lib/blob/de5bded7cb9511d1cabfb22f7cf47fe1ee526805/lib/appium_lib/device/device.rb#L146)
|
967
989
|
|
968
990
|
> def update_settings
|
969
991
|
|
@@ -975,7 +997,7 @@ __Parameters:__
|
|
975
997
|
|
976
998
|
--
|
977
999
|
|
978
|
-
##### [start_activity](https://github.com/appium/ruby_lib/blob/
|
1000
|
+
##### [start_activity](https://github.com/appium/ruby_lib/blob/de5bded7cb9511d1cabfb22f7cf47fe1ee526805/lib/appium_lib/device/device.rb#L150)
|
979
1001
|
|
980
1002
|
> def start_activity
|
981
1003
|
|
@@ -989,7 +1011,7 @@ start_activity app_package: 'io.appium.android.apis',
|
|
989
1011
|
|
990
1012
|
--
|
991
1013
|
|
992
|
-
##### [get_network_connection](https://github.com/appium/ruby_lib/blob/
|
1014
|
+
##### [get_network_connection](https://github.com/appium/ruby_lib/blob/de5bded7cb9511d1cabfb22f7cf47fe1ee526805/lib/appium_lib/device/device.rb#L164)
|
993
1015
|
|
994
1016
|
> def get_network_connection
|
995
1017
|
|
@@ -998,7 +1020,7 @@ See set_network_connection method for return value
|
|
998
1020
|
|
999
1021
|
--
|
1000
1022
|
|
1001
|
-
##### [set_network_connection](https://github.com/appium/ruby_lib/blob/
|
1023
|
+
##### [set_network_connection](https://github.com/appium/ruby_lib/blob/de5bded7cb9511d1cabfb22f7cf47fe1ee526805/lib/appium_lib/device/device.rb#L168)
|
1002
1024
|
|
1003
1025
|
> def set_network_connection
|
1004
1026
|
|
@@ -1017,7 +1039,7 @@ __Parameters:__
|
|
1017
1039
|
|
1018
1040
|
--
|
1019
1041
|
|
1020
|
-
##### [set_immediate_value](https://github.com/appium/ruby_lib/blob/
|
1042
|
+
##### [set_immediate_value](https://github.com/appium/ruby_lib/blob/de5bded7cb9511d1cabfb22f7cf47fe1ee526805/lib/appium_lib/device/device.rb#L181)
|
1021
1043
|
|
1022
1044
|
> def set_immediate_value
|
1023
1045
|
|
@@ -1031,7 +1053,7 @@ set_immediate_value element, 'hello'
|
|
1031
1053
|
|
1032
1054
|
--
|
1033
1055
|
|
1034
|
-
##### [get_performance_data_types](https://github.com/appium/ruby_lib/blob/
|
1056
|
+
##### [get_performance_data_types](https://github.com/appium/ruby_lib/blob/de5bded7cb9511d1cabfb22f7cf47fe1ee526805/lib/appium_lib/device/device.rb#L190)
|
1035
1057
|
|
1036
1058
|
> def get_performance_data_types
|
1037
1059
|
|
@@ -1045,7 +1067,7 @@ get_performance_data_types #=> ["cpuinfo", "batteryinfo", "networkinfo", "memory
|
|
1045
1067
|
|
1046
1068
|
--
|
1047
1069
|
|
1048
|
-
##### [extend_search_contexts](https://github.com/appium/ruby_lib/blob/
|
1070
|
+
##### [extend_search_contexts](https://github.com/appium/ruby_lib/blob/de5bded7cb9511d1cabfb22f7cf47fe1ee526805/lib/appium_lib/device/device.rb#L453)
|
1049
1071
|
|
1050
1072
|
> def extend_search_contexts
|
1051
1073
|
|
@@ -1053,7 +1075,7 @@ get_performance_data_types #=> ["cpuinfo", "batteryinfo", "networkinfo", "memory
|
|
1053
1075
|
|
1054
1076
|
--
|
1055
1077
|
|
1056
|
-
##### [find_element_with_appium](https://github.com/appium/ruby_lib/blob/
|
1078
|
+
##### [find_element_with_appium](https://github.com/appium/ruby_lib/blob/de5bded7cb9511d1cabfb22f7cf47fe1ee526805/lib/appium_lib/device/device.rb#L453)
|
1057
1079
|
|
1058
1080
|
> def find_element_with_appium
|
1059
1081
|
|
@@ -1061,7 +1083,7 @@ get_performance_data_types #=> ["cpuinfo", "batteryinfo", "networkinfo", "memory
|
|
1061
1083
|
|
1062
1084
|
--
|
1063
1085
|
|
1064
|
-
##### [find_elements_with_appium](https://github.com/appium/ruby_lib/blob/
|
1086
|
+
##### [find_elements_with_appium](https://github.com/appium/ruby_lib/blob/de5bded7cb9511d1cabfb22f7cf47fe1ee526805/lib/appium_lib/device/device.rb#L453)
|
1065
1087
|
|
1066
1088
|
> def find_elements_with_appium
|
1067
1089
|
|
@@ -1073,7 +1095,7 @@ find_element/s_with_appium with their accessibility_id
|
|
1073
1095
|
|
1074
1096
|
--
|
1075
1097
|
|
1076
|
-
##### [add_touch_actions](https://github.com/appium/ruby_lib/blob/
|
1098
|
+
##### [add_touch_actions](https://github.com/appium/ruby_lib/blob/de5bded7cb9511d1cabfb22f7cf47fe1ee526805/lib/appium_lib/device/device.rb#L484)
|
1077
1099
|
|
1078
1100
|
> def add_touch_actions
|
1079
1101
|
|
@@ -1081,7 +1103,7 @@ find_element/s_with_appium with their accessibility_id
|
|
1081
1103
|
|
1082
1104
|
--
|
1083
1105
|
|
1084
|
-
##### [add_ime_actions](https://github.com/appium/ruby_lib/blob/
|
1106
|
+
##### [add_ime_actions](https://github.com/appium/ruby_lib/blob/de5bded7cb9511d1cabfb22f7cf47fe1ee526805/lib/appium_lib/device/device.rb#L507)
|
1085
1107
|
|
1086
1108
|
> def add_ime_actions
|
1087
1109
|
|
@@ -1089,7 +1111,7 @@ find_element/s_with_appium with their accessibility_id
|
|
1089
1111
|
|
1090
1112
|
--
|
1091
1113
|
|
1092
|
-
##### [set_context](https://github.com/appium/ruby_lib/blob/
|
1114
|
+
##### [set_context](https://github.com/appium/ruby_lib/blob/de5bded7cb9511d1cabfb22f7cf47fe1ee526805/lib/appium_lib/device/device.rb#L582)
|
1093
1115
|
|
1094
1116
|
> def set_context
|
1095
1117
|
|
@@ -1104,7 +1126,7 @@ __Parameters:__
|
|
1104
1126
|
|
1105
1127
|
--
|
1106
1128
|
|
1107
|
-
##### [current_context](https://github.com/appium/ruby_lib/blob/
|
1129
|
+
##### [current_context](https://github.com/appium/ruby_lib/blob/de5bded7cb9511d1cabfb22f7cf47fe1ee526805/lib/appium_lib/device/device.rb#L590)
|
1108
1130
|
|
1109
1131
|
> def current_context
|
1110
1132
|
|
@@ -1116,7 +1138,7 @@ __Returns:__
|
|
1116
1138
|
|
1117
1139
|
--
|
1118
1140
|
|
1119
|
-
##### [available_contexts](https://github.com/appium/ruby_lib/blob/
|
1141
|
+
##### [available_contexts](https://github.com/appium/ruby_lib/blob/de5bded7cb9511d1cabfb22f7cf47fe1ee526805/lib/appium_lib/device/device.rb#L593)
|
1120
1142
|
|
1121
1143
|
> def available_contexts
|
1122
1144
|
|
@@ -1128,14 +1150,15 @@ __Returns:__
|
|
1128
1150
|
|
1129
1151
|
--
|
1130
1152
|
|
1131
|
-
##### [within_context](https://github.com/appium/ruby_lib/blob/
|
1153
|
+
##### [within_context](https://github.com/appium/ruby_lib/blob/de5bded7cb9511d1cabfb22f7cf47fe1ee526805/lib/appium_lib/device/device.rb#L604)
|
1132
1154
|
|
1133
1155
|
> def within_context(context)
|
1134
1156
|
|
1135
1157
|
Perform a block within the given context, then switch back to the starting context.
|
1136
1158
|
```ruby
|
1137
|
-
within_context('NATIVE_APP') do
|
1138
|
-
find_element
|
1159
|
+
result = within_context('NATIVE_APP') do
|
1160
|
+
find_element :tag, "button"
|
1161
|
+
end # The result of `find_element :tag, "button"`
|
1139
1162
|
```
|
1140
1163
|
|
1141
1164
|
__Parameters:__
|
@@ -1144,7 +1167,7 @@ __Parameters:__
|
|
1144
1167
|
|
1145
1168
|
--
|
1146
1169
|
|
1147
|
-
##### [switch_to_default_context](https://github.com/appium/ruby_lib/blob/
|
1170
|
+
##### [switch_to_default_context](https://github.com/appium/ruby_lib/blob/de5bded7cb9511d1cabfb22f7cf47fe1ee526805/lib/appium_lib/device/device.rb#L617)
|
1148
1171
|
|
1149
1172
|
> def switch_to_default_context
|
1150
1173
|
|
@@ -1152,7 +1175,7 @@ Change to the default context. This is equivalent to `set_context nil`.
|
|
1152
1175
|
|
1153
1176
|
--
|
1154
1177
|
|
1155
|
-
##### [pinch](https://github.com/appium/ruby_lib/blob/
|
1178
|
+
##### [pinch](https://github.com/appium/ruby_lib/blob/de5bded7cb9511d1cabfb22f7cf47fe1ee526805/lib/appium_lib/device/multi_touch.rb#L28)
|
1156
1179
|
|
1157
1180
|
> def pinch(percentage = 25, auto_perform = true)
|
1158
1181
|
|
@@ -1171,7 +1194,7 @@ __Parameters:__
|
|
1171
1194
|
|
1172
1195
|
--
|
1173
1196
|
|
1174
|
-
##### [zoom](https://github.com/appium/ruby_lib/blob/
|
1197
|
+
##### [zoom](https://github.com/appium/ruby_lib/blob/de5bded7cb9511d1cabfb22f7cf47fe1ee526805/lib/appium_lib/device/multi_touch.rb#L57)
|
1175
1198
|
|
1176
1199
|
> def zoom(percentage = 200, auto_perform = true)
|
1177
1200
|
|
@@ -1190,7 +1213,7 @@ __Parameters:__
|
|
1190
1213
|
|
1191
1214
|
--
|
1192
1215
|
|
1193
|
-
##### [pinch_for_xcuitest](https://github.com/appium/ruby_lib/blob/
|
1216
|
+
##### [pinch_for_xcuitest](https://github.com/appium/ruby_lib/blob/de5bded7cb9511d1cabfb22f7cf47fe1ee526805/lib/appium_lib/device/multi_touch.rb#L79)
|
1194
1217
|
|
1195
1218
|
> def pinch_for_xcuitest(rate)
|
1196
1219
|
|
@@ -1198,7 +1221,7 @@ __Parameters:__
|
|
1198
1221
|
|
1199
1222
|
--
|
1200
1223
|
|
1201
|
-
##### [pinch_android](https://github.com/appium/ruby_lib/blob/
|
1224
|
+
##### [pinch_android](https://github.com/appium/ruby_lib/blob/de5bded7cb9511d1cabfb22f7cf47fe1ee526805/lib/appium_lib/device/multi_touch.rb#L94)
|
1202
1225
|
|
1203
1226
|
> def pinch_android(rate)
|
1204
1227
|
|
@@ -1206,7 +1229,7 @@ __Parameters:__
|
|
1206
1229
|
|
1207
1230
|
--
|
1208
1231
|
|
1209
|
-
##### [pinch_ios](https://github.com/appium/ruby_lib/blob/
|
1232
|
+
##### [pinch_ios](https://github.com/appium/ruby_lib/blob/de5bded7cb9511d1cabfb22f7cf47fe1ee526805/lib/appium_lib/device/multi_touch.rb#L108)
|
1210
1233
|
|
1211
1234
|
> def pinch_ios(rate)
|
1212
1235
|
|
@@ -1214,7 +1237,7 @@ __Parameters:__
|
|
1214
1237
|
|
1215
1238
|
--
|
1216
1239
|
|
1217
|
-
##### [zoom_for_xcuitest](https://github.com/appium/ruby_lib/blob/
|
1240
|
+
##### [zoom_for_xcuitest](https://github.com/appium/ruby_lib/blob/de5bded7cb9511d1cabfb22f7cf47fe1ee526805/lib/appium_lib/device/multi_touch.rb#L122)
|
1218
1241
|
|
1219
1242
|
> def zoom_for_xcuitest(rate)
|
1220
1243
|
|
@@ -1222,7 +1245,7 @@ __Parameters:__
|
|
1222
1245
|
|
1223
1246
|
--
|
1224
1247
|
|
1225
|
-
##### [zoom_android](https://github.com/appium/ruby_lib/blob/
|
1248
|
+
##### [zoom_android](https://github.com/appium/ruby_lib/blob/de5bded7cb9511d1cabfb22f7cf47fe1ee526805/lib/appium_lib/device/multi_touch.rb#L137)
|
1226
1249
|
|
1227
1250
|
> def zoom_android(rate)
|
1228
1251
|
|
@@ -1230,7 +1253,7 @@ __Parameters:__
|
|
1230
1253
|
|
1231
1254
|
--
|
1232
1255
|
|
1233
|
-
##### [zoom_ios](https://github.com/appium/ruby_lib/blob/
|
1256
|
+
##### [zoom_ios](https://github.com/appium/ruby_lib/blob/de5bded7cb9511d1cabfb22f7cf47fe1ee526805/lib/appium_lib/device/multi_touch.rb#L151)
|
1234
1257
|
|
1235
1258
|
> def zoom_ios(rate)
|
1236
1259
|
|
@@ -1238,7 +1261,7 @@ __Parameters:__
|
|
1238
1261
|
|
1239
1262
|
--
|
1240
1263
|
|
1241
|
-
##### [actions](https://github.com/appium/ruby_lib/blob/
|
1264
|
+
##### [actions](https://github.com/appium/ruby_lib/blob/de5bded7cb9511d1cabfb22f7cf47fe1ee526805/lib/appium_lib/device/multi_touch.rb#L166)
|
1242
1265
|
|
1243
1266
|
> def actions
|
1244
1267
|
|
@@ -1246,7 +1269,7 @@ self
|
|
1246
1269
|
|
1247
1270
|
--
|
1248
1271
|
|
1249
|
-
##### [initialize](https://github.com/appium/ruby_lib/blob/
|
1272
|
+
##### [initialize](https://github.com/appium/ruby_lib/blob/de5bded7cb9511d1cabfb22f7cf47fe1ee526805/lib/appium_lib/device/multi_touch.rb#L169)
|
1250
1273
|
|
1251
1274
|
> def initialize
|
1252
1275
|
|
@@ -1258,7 +1281,7 @@ __Returns:__
|
|
1258
1281
|
|
1259
1282
|
--
|
1260
1283
|
|
1261
|
-
##### [add](https://github.com/appium/ruby_lib/blob/
|
1284
|
+
##### [add](https://github.com/appium/ruby_lib/blob/de5bded7cb9511d1cabfb22f7cf47fe1ee526805/lib/appium_lib/device/multi_touch.rb#L175)
|
1262
1285
|
|
1263
1286
|
> def add(chain)
|
1264
1287
|
|
@@ -1270,7 +1293,7 @@ __Parameters:__
|
|
1270
1293
|
|
1271
1294
|
--
|
1272
1295
|
|
1273
|
-
##### [perform](https://github.com/appium/ruby_lib/blob/
|
1296
|
+
##### [perform](https://github.com/appium/ruby_lib/blob/de5bded7cb9511d1cabfb22f7cf47fe1ee526805/lib/appium_lib/device/multi_touch.rb#L180)
|
1274
1297
|
|
1275
1298
|
> def perform
|
1276
1299
|
|
@@ -1278,7 +1301,7 @@ Ask Appium to perform the actions
|
|
1278
1301
|
|
1279
1302
|
--
|
1280
1303
|
|
1281
|
-
##### [ACTIONS](https://github.com/appium/ruby_lib/blob/
|
1304
|
+
##### [ACTIONS](https://github.com/appium/ruby_lib/blob/de5bded7cb9511d1cabfb22f7cf47fe1ee526805/lib/appium_lib/device/touch_actions.rb#L22)
|
1282
1305
|
|
1283
1306
|
> ACTIONS = [:move_to, :long_press, :double_tap, :two_finger_tap, :press, :release, :tap, :wait, :perform].freeze
|
1284
1307
|
|
@@ -1286,7 +1309,7 @@ Ask Appium to perform the actions
|
|
1286
1309
|
|
1287
1310
|
--
|
1288
1311
|
|
1289
|
-
##### [COMPLEX_ACTIONS](https://github.com/appium/ruby_lib/blob/
|
1312
|
+
##### [COMPLEX_ACTIONS](https://github.com/appium/ruby_lib/blob/de5bded7cb9511d1cabfb22f7cf47fe1ee526805/lib/appium_lib/device/touch_actions.rb#L23)
|
1290
1313
|
|
1291
1314
|
> COMPLEX_ACTIONS = [:swipe].freeze
|
1292
1315
|
|
@@ -1294,7 +1317,7 @@ Ask Appium to perform the actions
|
|
1294
1317
|
|
1295
1318
|
--
|
1296
1319
|
|
1297
|
-
##### [actions](https://github.com/appium/ruby_lib/blob/
|
1320
|
+
##### [actions](https://github.com/appium/ruby_lib/blob/de5bded7cb9511d1cabfb22f7cf47fe1ee526805/lib/appium_lib/device/touch_actions.rb#L37)
|
1298
1321
|
|
1299
1322
|
> def actions
|
1300
1323
|
|
@@ -1302,7 +1325,7 @@ Returns the value of attribute actions
|
|
1302
1325
|
|
1303
1326
|
--
|
1304
1327
|
|
1305
|
-
##### [initialize](https://github.com/appium/ruby_lib/blob/
|
1328
|
+
##### [initialize](https://github.com/appium/ruby_lib/blob/de5bded7cb9511d1cabfb22f7cf47fe1ee526805/lib/appium_lib/device/touch_actions.rb#L39)
|
1306
1329
|
|
1307
1330
|
> def initialize
|
1308
1331
|
|
@@ -1314,7 +1337,7 @@ __Returns:__
|
|
1314
1337
|
|
1315
1338
|
--
|
1316
1339
|
|
1317
|
-
##### [move_to](https://github.com/appium/ruby_lib/blob/
|
1340
|
+
##### [move_to](https://github.com/appium/ruby_lib/blob/de5bded7cb9511d1cabfb22f7cf47fe1ee526805/lib/appium_lib/device/touch_actions.rb#L50)
|
1318
1341
|
|
1319
1342
|
> def move_to(opts)
|
1320
1343
|
|
@@ -1328,7 +1351,7 @@ __Parameters:__
|
|
1328
1351
|
|
1329
1352
|
--
|
1330
1353
|
|
1331
|
-
##### [long_press](https://github.com/appium/ruby_lib/blob/
|
1354
|
+
##### [long_press](https://github.com/appium/ruby_lib/blob/de5bded7cb9511d1cabfb22f7cf47fe1ee526805/lib/appium_lib/device/touch_actions.rb#L64)
|
1332
1355
|
|
1333
1356
|
> def long_press(opts)
|
1334
1357
|
|
@@ -1349,7 +1372,7 @@ __Parameters:__
|
|
1349
1372
|
|
1350
1373
|
--
|
1351
1374
|
|
1352
|
-
##### [press](https://github.com/appium/ruby_lib/blob/
|
1375
|
+
##### [press](https://github.com/appium/ruby_lib/blob/de5bded7cb9511d1cabfb22f7cf47fe1ee526805/lib/appium_lib/device/touch_actions.rb#L76)
|
1353
1376
|
|
1354
1377
|
> def press(opts)
|
1355
1378
|
|
@@ -1362,7 +1385,7 @@ __Parameters:__
|
|
1362
1385
|
|
1363
1386
|
--
|
1364
1387
|
|
1365
|
-
##### [release](https://github.com/appium/ruby_lib/blob/
|
1388
|
+
##### [release](https://github.com/appium/ruby_lib/blob/de5bded7cb9511d1cabfb22f7cf47fe1ee526805/lib/appium_lib/device/touch_actions.rb#L87)
|
1366
1389
|
|
1367
1390
|
> def release(opts = nil)
|
1368
1391
|
|
@@ -1374,7 +1397,7 @@ __Parameters:__
|
|
1374
1397
|
|
1375
1398
|
--
|
1376
1399
|
|
1377
|
-
##### [tap](https://github.com/appium/ruby_lib/blob/
|
1400
|
+
##### [tap](https://github.com/appium/ruby_lib/blob/de5bded7cb9511d1cabfb22f7cf47fe1ee526805/lib/appium_lib/device/touch_actions.rb#L99)
|
1378
1401
|
|
1379
1402
|
> def tap(opts)
|
1380
1403
|
|
@@ -1387,7 +1410,7 @@ __Parameters:__
|
|
1387
1410
|
|
1388
1411
|
--
|
1389
1412
|
|
1390
|
-
##### [double_tap](https://github.com/appium/ruby_lib/blob/
|
1413
|
+
##### [double_tap](https://github.com/appium/ruby_lib/blob/de5bded7cb9511d1cabfb22f7cf47fe1ee526805/lib/appium_lib/device/touch_actions.rb#L112)
|
1391
1414
|
|
1392
1415
|
> def double_tap(opts)
|
1393
1416
|
|
@@ -1399,7 +1422,7 @@ __Parameters:__
|
|
1399
1422
|
|
1400
1423
|
--
|
1401
1424
|
|
1402
|
-
##### [two_finger_tap](https://github.com/appium/ruby_lib/blob/
|
1425
|
+
##### [two_finger_tap](https://github.com/appium/ruby_lib/blob/de5bded7cb9511d1cabfb22f7cf47fe1ee526805/lib/appium_lib/device/touch_actions.rb#L123)
|
1403
1426
|
|
1404
1427
|
> def two_finger_tap(opts)
|
1405
1428
|
|
@@ -1411,7 +1434,7 @@ __Parameters:__
|
|
1411
1434
|
|
1412
1435
|
--
|
1413
1436
|
|
1414
|
-
##### [wait](https://github.com/appium/ruby_lib/blob/
|
1437
|
+
##### [wait](https://github.com/appium/ruby_lib/blob/de5bded7cb9511d1cabfb22f7cf47fe1ee526805/lib/appium_lib/device/touch_actions.rb#L131)
|
1415
1438
|
|
1416
1439
|
> def wait(milliseconds)
|
1417
1440
|
|
@@ -1423,7 +1446,7 @@ __Parameters:__
|
|
1423
1446
|
|
1424
1447
|
--
|
1425
1448
|
|
1426
|
-
##### [swipe](https://github.com/appium/ruby_lib/blob/
|
1449
|
+
##### [swipe](https://github.com/appium/ruby_lib/blob/de5bded7cb9511d1cabfb22f7cf47fe1ee526805/lib/appium_lib/device/touch_actions.rb#L154)
|
1427
1450
|
|
1428
1451
|
> def swipe(opts, ele = nil)
|
1429
1452
|
|
@@ -1444,7 +1467,7 @@ __Parameters:__
|
|
1444
1467
|
|
1445
1468
|
--
|
1446
1469
|
|
1447
|
-
##### [perform](https://github.com/appium/ruby_lib/blob/
|
1470
|
+
##### [perform](https://github.com/appium/ruby_lib/blob/de5bded7cb9511d1cabfb22f7cf47fe1ee526805/lib/appium_lib/device/touch_actions.rb#L179)
|
1448
1471
|
|
1449
1472
|
> def perform
|
1450
1473
|
|
@@ -1452,7 +1475,7 @@ Ask the driver to perform all actions in this action chain.
|
|
1452
1475
|
|
1453
1476
|
--
|
1454
1477
|
|
1455
|
-
##### [cancel](https://github.com/appium/ruby_lib/blob/
|
1478
|
+
##### [cancel](https://github.com/appium/ruby_lib/blob/de5bded7cb9511d1cabfb22f7cf47fe1ee526805/lib/appium_lib/device/touch_actions.rb#L186)
|
1456
1479
|
|
1457
1480
|
> def cancel
|
1458
1481
|
|
@@ -1460,7 +1483,7 @@ Does nothing, currently.
|
|
1460
1483
|
|
1461
1484
|
--
|
1462
1485
|
|
1463
|
-
##### [swipe_coordinates](https://github.com/appium/ruby_lib/blob/
|
1486
|
+
##### [swipe_coordinates](https://github.com/appium/ruby_lib/blob/de5bded7cb9511d1cabfb22f7cf47fe1ee526805/lib/appium_lib/device/touch_actions.rb#L192)
|
1464
1487
|
|
1465
1488
|
> def swipe_coordinates(end_x: nil, end_y: nil, offset_x: nil, offset_y: nil)
|
1466
1489
|
|
@@ -1468,7 +1491,7 @@ Does nothing, currently.
|
|
1468
1491
|
|
1469
1492
|
--
|
1470
1493
|
|
1471
|
-
##### [chain_method](https://github.com/appium/ruby_lib/blob/
|
1494
|
+
##### [chain_method](https://github.com/appium/ruby_lib/blob/de5bded7cb9511d1cabfb22f7cf47fe1ee526805/lib/appium_lib/device/touch_actions.rb#L210)
|
1472
1495
|
|
1473
1496
|
> def chain_method(method, args = nil)
|
1474
1497
|
|
@@ -1476,7 +1499,7 @@ Does nothing, currently.
|
|
1476
1499
|
|
1477
1500
|
--
|
1478
1501
|
|
1479
|
-
##### [args_with_ele_ref](https://github.com/appium/ruby_lib/blob/
|
1502
|
+
##### [args_with_ele_ref](https://github.com/appium/ruby_lib/blob/de5bded7cb9511d1cabfb22f7cf47fe1ee526805/lib/appium_lib/device/touch_actions.rb#L216)
|
1480
1503
|
|
1481
1504
|
> def args_with_ele_ref(args)
|
1482
1505
|
|
@@ -1484,16 +1507,28 @@ Does nothing, currently.
|
|
1484
1507
|
|
1485
1508
|
--
|
1486
1509
|
|
1487
|
-
##### [
|
1510
|
+
##### [initialize](https://github.com/appium/ruby_lib/blob/de5bded7cb9511d1cabfb22f7cf47fe1ee526805/lib/appium_lib/common/wait.rb#L4)
|
1511
|
+
|
1512
|
+
> def initialize(opts = {})
|
1513
|
+
|
1514
|
+
|
1515
|
+
|
1516
|
+
__Returns:__
|
1517
|
+
|
1518
|
+
[Wait] a new instance of Wait
|
1519
|
+
|
1520
|
+
--
|
1521
|
+
|
1522
|
+
##### [until](https://github.com/appium/ruby_lib/blob/de5bded7cb9511d1cabfb22f7cf47fe1ee526805/lib/appium_lib/common/wait.rb#L23)
|
1488
1523
|
|
1489
|
-
> def
|
1524
|
+
> def until
|
1490
1525
|
|
1491
1526
|
Wait code from the selenium Ruby gem
|
1492
1527
|
https://github.com/SeleniumHQ/selenium/blob/cf501dda3f0ed12233de51ce8170c0e8090f0c20/rb/lib/selenium/webdriver/common/wait.rb
|
1493
1528
|
|
1494
1529
|
--
|
1495
1530
|
|
1496
|
-
##### [_process_wait_opts](https://github.com/appium/ruby_lib/blob/
|
1531
|
+
##### [_process_wait_opts](https://github.com/appium/ruby_lib/blob/de5bded7cb9511d1cabfb22f7cf47fe1ee526805/lib/appium_lib/common/wait.rb#L51)
|
1497
1532
|
|
1498
1533
|
> def _process_wait_opts(opts)
|
1499
1534
|
|
@@ -1501,9 +1536,9 @@ process opts before calling _generic_wait
|
|
1501
1536
|
|
1502
1537
|
--
|
1503
1538
|
|
1504
|
-
##### [wait_true](https://github.com/appium/ruby_lib/blob/
|
1539
|
+
##### [wait_true](https://github.com/appium/ruby_lib/blob/de5bded7cb9511d1cabfb22f7cf47fe1ee526805/lib/appium_lib/common/wait.rb#L72)
|
1505
1540
|
|
1506
|
-
> def wait_true(opts = {}
|
1541
|
+
> def wait_true(opts = {})
|
1507
1542
|
|
1508
1543
|
Check every interval seconds to see if yield returns a truthy value.
|
1509
1544
|
Note this isn't a strict boolean true, any truthy value is accepted.
|
@@ -1521,9 +1556,9 @@ __Parameters:__
|
|
1521
1556
|
|
1522
1557
|
--
|
1523
1558
|
|
1524
|
-
##### [wait](https://github.com/appium/ruby_lib/blob/
|
1559
|
+
##### [wait](https://github.com/appium/ruby_lib/blob/de5bded7cb9511d1cabfb22f7cf47fe1ee526805/lib/appium_lib/common/wait.rb#L95)
|
1525
1560
|
|
1526
|
-
> def wait(opts = {}
|
1561
|
+
> def wait(opts = {})
|
1527
1562
|
|
1528
1563
|
Check every interval seconds to see if yield doesn't raise an exception.
|
1529
1564
|
Give up after timeout seconds.
|
@@ -1539,7 +1574,7 @@ __Parameters:__
|
|
1539
1574
|
|
1540
1575
|
--
|
1541
1576
|
|
1542
|
-
##### [ignore](https://github.com/appium/ruby_lib/blob/
|
1577
|
+
##### [ignore](https://github.com/appium/ruby_lib/blob/de5bded7cb9511d1cabfb22f7cf47fe1ee526805/lib/appium_lib/common/helper.rb#L24)
|
1543
1578
|
|
1544
1579
|
> def ignore
|
1545
1580
|
|
@@ -1547,7 +1582,7 @@ Return yield and ignore any exceptions.
|
|
1547
1582
|
|
1548
1583
|
--
|
1549
1584
|
|
1550
|
-
##### [back](https://github.com/appium/ruby_lib/blob/
|
1585
|
+
##### [back](https://github.com/appium/ruby_lib/blob/de5bded7cb9511d1cabfb22f7cf47fe1ee526805/lib/appium_lib/common/helper.rb#L31)
|
1551
1586
|
|
1552
1587
|
> def back
|
1553
1588
|
|
@@ -1559,7 +1594,7 @@ __Returns:__
|
|
1559
1594
|
|
1560
1595
|
--
|
1561
1596
|
|
1562
|
-
##### [session_id](https://github.com/appium/ruby_lib/blob/
|
1597
|
+
##### [session_id](https://github.com/appium/ruby_lib/blob/de5bded7cb9511d1cabfb22f7cf47fe1ee526805/lib/appium_lib/common/helper.rb#L36)
|
1563
1598
|
|
1564
1599
|
> def session_id
|
1565
1600
|
|
@@ -1567,7 +1602,7 @@ For Sauce Labs reporting. Returns the current session id.
|
|
1567
1602
|
|
1568
1603
|
--
|
1569
1604
|
|
1570
|
-
##### [xpath](https://github.com/appium/ruby_lib/blob/
|
1605
|
+
##### [xpath](https://github.com/appium/ruby_lib/blob/de5bded7cb9511d1cabfb22f7cf47fe1ee526805/lib/appium_lib/common/helper.rb#L44)
|
1571
1606
|
|
1572
1607
|
> def xpath(xpath_str)
|
1573
1608
|
|
@@ -1583,7 +1618,7 @@ __Returns:__
|
|
1583
1618
|
|
1584
1619
|
--
|
1585
1620
|
|
1586
|
-
##### [xpaths](https://github.com/appium/ruby_lib/blob/
|
1621
|
+
##### [xpaths](https://github.com/appium/ruby_lib/blob/de5bded7cb9511d1cabfb22f7cf47fe1ee526805/lib/appium_lib/common/helper.rb#L52)
|
1587
1622
|
|
1588
1623
|
> def xpaths(xpath_str)
|
1589
1624
|
|
@@ -1599,7 +1634,7 @@ __Returns:__
|
|
1599
1634
|
|
1600
1635
|
--
|
1601
1636
|
|
1602
|
-
##### [_print_source](https://github.com/appium/ruby_lib/blob/
|
1637
|
+
##### [_print_source](https://github.com/appium/ruby_lib/blob/de5bded7cb9511d1cabfb22f7cf47fe1ee526805/lib/appium_lib/common/helper.rb#L56)
|
1603
1638
|
|
1604
1639
|
> def _print_source(source)
|
1605
1640
|
|
@@ -1607,7 +1642,7 @@ __Returns:__
|
|
1607
1642
|
|
1608
1643
|
--
|
1609
1644
|
|
1610
|
-
##### [result](https://github.com/appium/ruby_lib/blob/
|
1645
|
+
##### [result](https://github.com/appium/ruby_lib/blob/de5bded7cb9511d1cabfb22f7cf47fe1ee526805/lib/appium_lib/common/helper.rb#L69)
|
1611
1646
|
|
1612
1647
|
> def result
|
1613
1648
|
|
@@ -1615,7 +1650,7 @@ Returns the value of attribute result
|
|
1615
1650
|
|
1616
1651
|
--
|
1617
1652
|
|
1618
|
-
##### [initialize](https://github.com/appium/ruby_lib/blob/
|
1653
|
+
##### [initialize](https://github.com/appium/ruby_lib/blob/de5bded7cb9511d1cabfb22f7cf47fe1ee526805/lib/appium_lib/common/helper.rb#L71)
|
1619
1654
|
|
1620
1655
|
> def initialize
|
1621
1656
|
|
@@ -1627,7 +1662,7 @@ __Returns:__
|
|
1627
1662
|
|
1628
1663
|
--
|
1629
1664
|
|
1630
|
-
##### [reset](https://github.com/appium/ruby_lib/blob/
|
1665
|
+
##### [reset](https://github.com/appium/ruby_lib/blob/de5bded7cb9511d1cabfb22f7cf47fe1ee526805/lib/appium_lib/common/helper.rb#L75)
|
1631
1666
|
|
1632
1667
|
> def reset
|
1633
1668
|
|
@@ -1635,7 +1670,7 @@ __Returns:__
|
|
1635
1670
|
|
1636
1671
|
--
|
1637
1672
|
|
1638
|
-
##### [start_element](https://github.com/appium/ruby_lib/blob/
|
1673
|
+
##### [start_element](https://github.com/appium/ruby_lib/blob/de5bded7cb9511d1cabfb22f7cf47fe1ee526805/lib/appium_lib/common/helper.rb#L80)
|
1639
1674
|
|
1640
1675
|
> def start_element(name, attrs = [])
|
1641
1676
|
|
@@ -1643,7 +1678,7 @@ http://nokogiri.org/Nokogiri/XML/SAX/Document.html
|
|
1643
1678
|
|
1644
1679
|
--
|
1645
1680
|
|
1646
|
-
##### [formatted_result](https://github.com/appium/ruby_lib/blob/
|
1681
|
+
##### [formatted_result](https://github.com/appium/ruby_lib/blob/de5bded7cb9511d1cabfb22f7cf47fe1ee526805/lib/appium_lib/common/helper.rb#L86)
|
1647
1682
|
|
1648
1683
|
> def formatted_result
|
1649
1684
|
|
@@ -1651,7 +1686,7 @@ http://nokogiri.org/Nokogiri/XML/SAX/Document.html
|
|
1651
1686
|
|
1652
1687
|
--
|
1653
1688
|
|
1654
|
-
##### [get_page_class](https://github.com/appium/ruby_lib/blob/
|
1689
|
+
##### [get_page_class](https://github.com/appium/ruby_lib/blob/de5bded7cb9511d1cabfb22f7cf47fe1ee526805/lib/appium_lib/common/helper.rb#L97)
|
1655
1690
|
|
1656
1691
|
> def get_page_class
|
1657
1692
|
|
@@ -1659,7 +1694,7 @@ Returns a string of class counts of visible elements.
|
|
1659
1694
|
|
1660
1695
|
--
|
1661
1696
|
|
1662
|
-
##### [page_class](https://github.com/appium/ruby_lib/blob/
|
1697
|
+
##### [page_class](https://github.com/appium/ruby_lib/blob/de5bded7cb9511d1cabfb22f7cf47fe1ee526805/lib/appium_lib/common/helper.rb#L108)
|
1663
1698
|
|
1664
1699
|
> def page_class
|
1665
1700
|
|
@@ -1668,7 +1703,7 @@ Useful for appium_console.
|
|
1668
1703
|
|
1669
1704
|
--
|
1670
1705
|
|
1671
|
-
##### [px_to_window_rel](https://github.com/appium/ruby_lib/blob/
|
1706
|
+
##### [px_to_window_rel](https://github.com/appium/ruby_lib/blob/de5bded7cb9511d1cabfb22f7cf47fe1ee526805/lib/appium_lib/common/helper.rb#L118)
|
1672
1707
|
|
1673
1708
|
> def px_to_window_rel(opts = {})
|
1674
1709
|
|
@@ -1680,7 +1715,7 @@ px_to_window_rel x: 50, y: 150
|
|
1680
1715
|
|
1681
1716
|
--
|
1682
1717
|
|
1683
|
-
##### [xml_keys](https://github.com/appium/ruby_lib/blob/
|
1718
|
+
##### [xml_keys](https://github.com/appium/ruby_lib/blob/de5bded7cb9511d1cabfb22f7cf47fe1ee526805/lib/appium_lib/common/helper.rb#L137)
|
1684
1719
|
|
1685
1720
|
> def xml_keys(target)
|
1686
1721
|
|
@@ -1696,7 +1731,7 @@ __Returns:__
|
|
1696
1731
|
|
1697
1732
|
--
|
1698
1733
|
|
1699
|
-
##### [xml_values](https://github.com/appium/ruby_lib/blob/
|
1734
|
+
##### [xml_values](https://github.com/appium/ruby_lib/blob/de5bded7cb9511d1cabfb22f7cf47fe1ee526805/lib/appium_lib/common/helper.rb#L145)
|
1700
1735
|
|
1701
1736
|
> def xml_values(target)
|
1702
1737
|
|
@@ -1712,7 +1747,7 @@ __Returns:__
|
|
1712
1747
|
|
1713
1748
|
--
|
1714
1749
|
|
1715
|
-
##### [resolve_id](https://github.com/appium/ruby_lib/blob/
|
1750
|
+
##### [resolve_id](https://github.com/appium/ruby_lib/blob/de5bded7cb9511d1cabfb22f7cf47fe1ee526805/lib/appium_lib/common/helper.rb#L153)
|
1716
1751
|
|
1717
1752
|
> def resolve_id(id)
|
1718
1753
|
|
@@ -1728,7 +1763,7 @@ __Returns:__
|
|
1728
1763
|
|
1729
1764
|
--
|
1730
1765
|
|
1731
|
-
##### [filter](https://github.com/appium/ruby_lib/blob/
|
1766
|
+
##### [filter](https://github.com/appium/ruby_lib/blob/de5bded7cb9511d1cabfb22f7cf47fe1ee526805/lib/appium_lib/common/helper.rb#L159)
|
1732
1767
|
|
1733
1768
|
> def filter
|
1734
1769
|
|
@@ -1736,7 +1771,7 @@ Returns the value of attribute filter
|
|
1736
1771
|
|
1737
1772
|
--
|
1738
1773
|
|
1739
|
-
##### [filter=](https://github.com/appium/ruby_lib/blob/
|
1774
|
+
##### [filter=](https://github.com/appium/ruby_lib/blob/de5bded7cb9511d1cabfb22f7cf47fe1ee526805/lib/appium_lib/common/helper.rb#L162)
|
1740
1775
|
|
1741
1776
|
> def filter=(value)
|
1742
1777
|
|
@@ -1744,7 +1779,7 @@ convert to string to support symbols
|
|
1744
1779
|
|
1745
1780
|
--
|
1746
1781
|
|
1747
|
-
##### [initialize](https://github.com/appium/ruby_lib/blob/
|
1782
|
+
##### [initialize](https://github.com/appium/ruby_lib/blob/de5bded7cb9511d1cabfb22f7cf47fe1ee526805/lib/appium_lib/common/helper.rb#L168)
|
1748
1783
|
|
1749
1784
|
> def initialize
|
1750
1785
|
|
@@ -1756,7 +1791,7 @@ __Returns:__
|
|
1756
1791
|
|
1757
1792
|
--
|
1758
1793
|
|
1759
|
-
##### [reset](https://github.com/appium/ruby_lib/blob/
|
1794
|
+
##### [reset](https://github.com/appium/ruby_lib/blob/de5bded7cb9511d1cabfb22f7cf47fe1ee526805/lib/appium_lib/common/helper.rb#L173)
|
1760
1795
|
|
1761
1796
|
> def reset
|
1762
1797
|
|
@@ -1764,7 +1799,7 @@ __Returns:__
|
|
1764
1799
|
|
1765
1800
|
--
|
1766
1801
|
|
1767
|
-
##### [result](https://github.com/appium/ruby_lib/blob/
|
1802
|
+
##### [result](https://github.com/appium/ruby_lib/blob/de5bded7cb9511d1cabfb22f7cf47fe1ee526805/lib/appium_lib/common/helper.rb#L179)
|
1768
1803
|
|
1769
1804
|
> def result
|
1770
1805
|
|
@@ -1772,7 +1807,7 @@ __Returns:__
|
|
1772
1807
|
|
1773
1808
|
--
|
1774
1809
|
|
1775
|
-
##### [start_element](https://github.com/appium/ruby_lib/blob/
|
1810
|
+
##### [start_element](https://github.com/appium/ruby_lib/blob/de5bded7cb9511d1cabfb22f7cf47fe1ee526805/lib/appium_lib/common/helper.rb#L195)
|
1776
1811
|
|
1777
1812
|
> def start_element(name, attrs = [])
|
1778
1813
|
|
@@ -1780,7 +1815,7 @@ __Returns:__
|
|
1780
1815
|
|
1781
1816
|
--
|
1782
1817
|
|
1783
|
-
##### [end_element](https://github.com/appium/ruby_lib/blob/
|
1818
|
+
##### [end_element](https://github.com/appium/ruby_lib/blob/de5bded7cb9511d1cabfb22f7cf47fe1ee526805/lib/appium_lib/common/helper.rb#L204)
|
1784
1819
|
|
1785
1820
|
> def end_element(name)
|
1786
1821
|
|
@@ -1788,7 +1823,7 @@ __Returns:__
|
|
1788
1823
|
|
1789
1824
|
--
|
1790
1825
|
|
1791
|
-
##### [characters](https://github.com/appium/ruby_lib/blob/
|
1826
|
+
##### [characters](https://github.com/appium/ruby_lib/blob/de5bded7cb9511d1cabfb22f7cf47fe1ee526805/lib/appium_lib/common/helper.rb#L210)
|
1792
1827
|
|
1793
1828
|
> def characters(chars)
|
1794
1829
|
|
@@ -1796,7 +1831,7 @@ __Returns:__
|
|
1796
1831
|
|
1797
1832
|
--
|
1798
1833
|
|
1799
|
-
##### [_no_such_element](https://github.com/appium/ruby_lib/blob/
|
1834
|
+
##### [_no_such_element](https://github.com/appium/ruby_lib/blob/de5bded7cb9511d1cabfb22f7cf47fe1ee526805/lib/appium_lib/common/helper.rb#L217)
|
1800
1835
|
|
1801
1836
|
> def _no_such_element
|
1802
1837
|
|
@@ -1804,7 +1839,7 @@ __Returns:__
|
|
1804
1839
|
|
1805
1840
|
--
|
1806
1841
|
|
1807
|
-
##### [COMMAND_NO_ARG](https://github.com/appium/ruby_lib/blob/
|
1842
|
+
##### [COMMAND_NO_ARG](https://github.com/appium/ruby_lib/blob/de5bded7cb9511d1cabfb22f7cf47fe1ee526805/lib/appium_lib/common/command.rb#L4)
|
1808
1843
|
|
1809
1844
|
> COMMAND_NO_ARG = {
|
1810
1845
|
|
@@ -1812,7 +1847,7 @@ __Returns:__
|
|
1812
1847
|
|
1813
1848
|
--
|
1814
1849
|
|
1815
|
-
##### [COMMAND](https://github.com/appium/ruby_lib/blob/
|
1850
|
+
##### [COMMAND](https://github.com/appium/ruby_lib/blob/de5bded7cb9511d1cabfb22f7cf47fe1ee526805/lib/appium_lib/common/command.rb#L28)
|
1816
1851
|
|
1817
1852
|
> COMMAND = {
|
1818
1853
|
|
@@ -1820,7 +1855,7 @@ __Returns:__
|
|
1820
1855
|
|
1821
1856
|
--
|
1822
1857
|
|
1823
|
-
##### [window_size](https://github.com/appium/ruby_lib/blob/
|
1858
|
+
##### [window_size](https://github.com/appium/ruby_lib/blob/de5bded7cb9511d1cabfb22f7cf47fe1ee526805/lib/appium_lib/common/element/window.rb#L5)
|
1824
1859
|
|
1825
1860
|
> def window_size
|
1826
1861
|
|
@@ -1828,7 +1863,7 @@ Get the window's size
|
|
1828
1863
|
|
1829
1864
|
--
|
1830
1865
|
|
1831
|
-
##### [FINDERS](https://github.com/appium/ruby_lib/blob/
|
1866
|
+
##### [FINDERS](https://github.com/appium/ruby_lib/blob/de5bded7cb9511d1cabfb22f7cf47fe1ee526805/lib/appium_lib/common/search_context.rb#L5)
|
1832
1867
|
|
1833
1868
|
> FINDERS = {
|
1834
1869
|
|
@@ -1836,7 +1871,7 @@ rubocop:disable Style/MutableConstant
|
|
1836
1871
|
|
1837
1872
|
--
|
1838
1873
|
|
1839
|
-
##### [result](https://github.com/appium/ruby_lib/blob/
|
1874
|
+
##### [result](https://github.com/appium/ruby_lib/blob/de5bded7cb9511d1cabfb22f7cf47fe1ee526805/lib/appium_lib/android/helper.rb#L6) android
|
1840
1875
|
|
1841
1876
|
> def result
|
1842
1877
|
|
@@ -1844,7 +1879,7 @@ Returns the value of attribute result
|
|
1844
1879
|
|
1845
1880
|
--
|
1846
1881
|
|
1847
|
-
##### [keys](https://github.com/appium/ruby_lib/blob/
|
1882
|
+
##### [keys](https://github.com/appium/ruby_lib/blob/de5bded7cb9511d1cabfb22f7cf47fe1ee526805/lib/appium_lib/android/helper.rb#L6) android
|
1848
1883
|
|
1849
1884
|
> def keys
|
1850
1885
|
|
@@ -1852,7 +1887,7 @@ Returns the value of attribute keys
|
|
1852
1887
|
|
1853
1888
|
--
|
1854
1889
|
|
1855
|
-
##### [filter](https://github.com/appium/ruby_lib/blob/
|
1890
|
+
##### [filter](https://github.com/appium/ruby_lib/blob/de5bded7cb9511d1cabfb22f7cf47fe1ee526805/lib/appium_lib/android/helper.rb#L6) android
|
1856
1891
|
|
1857
1892
|
> def filter
|
1858
1893
|
|
@@ -1860,7 +1895,7 @@ Returns the value of attribute filter
|
|
1860
1895
|
|
1861
1896
|
--
|
1862
1897
|
|
1863
|
-
##### [filter=](https://github.com/appium/ruby_lib/blob/
|
1898
|
+
##### [filter=](https://github.com/appium/ruby_lib/blob/de5bded7cb9511d1cabfb22f7cf47fe1ee526805/lib/appium_lib/android/helper.rb#L9) android
|
1864
1899
|
|
1865
1900
|
> def filter=(value)
|
1866
1901
|
|
@@ -1868,7 +1903,7 @@ convert to string to support symbols
|
|
1868
1903
|
|
1869
1904
|
--
|
1870
1905
|
|
1871
|
-
##### [initialize](https://github.com/appium/ruby_lib/blob/
|
1906
|
+
##### [initialize](https://github.com/appium/ruby_lib/blob/de5bded7cb9511d1cabfb22f7cf47fe1ee526805/lib/appium_lib/android/helper.rb#L15) android
|
1872
1907
|
|
1873
1908
|
> def initialize
|
1874
1909
|
|
@@ -1880,7 +1915,7 @@ __Returns:__
|
|
1880
1915
|
|
1881
1916
|
--
|
1882
1917
|
|
1883
|
-
##### [reset](https://github.com/appium/ruby_lib/blob/
|
1918
|
+
##### [reset](https://github.com/appium/ruby_lib/blob/de5bded7cb9511d1cabfb22f7cf47fe1ee526805/lib/appium_lib/android/helper.rb#L20) android
|
1884
1919
|
|
1885
1920
|
> def reset
|
1886
1921
|
|
@@ -1888,7 +1923,7 @@ __Returns:__
|
|
1888
1923
|
|
1889
1924
|
--
|
1890
1925
|
|
1891
|
-
##### [start_element](https://github.com/appium/ruby_lib/blob/
|
1926
|
+
##### [start_element](https://github.com/appium/ruby_lib/blob/de5bded7cb9511d1cabfb22f7cf47fe1ee526805/lib/appium_lib/android/helper.rb#L26) android
|
1892
1927
|
|
1893
1928
|
> def start_element(name, attrs = [])
|
1894
1929
|
|
@@ -1896,7 +1931,7 @@ http://nokogiri.org/Nokogiri/XML/SAX/Document.html
|
|
1896
1931
|
|
1897
1932
|
--
|
1898
1933
|
|
1899
|
-
##### [source](https://github.com/appium/ruby_lib/blob/
|
1934
|
+
##### [source](https://github.com/appium/ruby_lib/blob/de5bded7cb9511d1cabfb22f7cf47fe1ee526805/lib/appium_lib/android/helper.rb#L82) android
|
1900
1935
|
|
1901
1936
|
> def source
|
1902
1937
|
|
@@ -1908,7 +1943,7 @@ __Returns:__
|
|
1908
1943
|
|
1909
1944
|
--
|
1910
1945
|
|
1911
|
-
##### [get_android_inspect](https://github.com/appium/ruby_lib/blob/
|
1946
|
+
##### [get_android_inspect](https://github.com/appium/ruby_lib/blob/de5bded7cb9511d1cabfb22f7cf47fe1ee526805/lib/appium_lib/android/helper.rb#L92) android
|
1912
1947
|
|
1913
1948
|
> def get_android_inspect(class_name = false)
|
1914
1949
|
|
@@ -1927,7 +1962,7 @@ __Returns:__
|
|
1927
1962
|
|
1928
1963
|
--
|
1929
1964
|
|
1930
|
-
##### [page](https://github.com/appium/ruby_lib/blob/
|
1965
|
+
##### [page](https://github.com/appium/ruby_lib/blob/de5bded7cb9511d1cabfb22f7cf47fe1ee526805/lib/appium_lib/android/helper.rb#L118) android
|
1931
1966
|
|
1932
1967
|
> def page(opts = {})
|
1933
1968
|
|
@@ -1946,7 +1981,7 @@ __Returns:__
|
|
1946
1981
|
|
1947
1982
|
--
|
1948
1983
|
|
1949
|
-
##### [current_app](https://github.com/appium/ruby_lib/blob/
|
1984
|
+
##### [current_app](https://github.com/appium/ruby_lib/blob/de5bded7cb9511d1cabfb22f7cf47fe1ee526805/lib/appium_lib/android/helper.rb#L130) android
|
1950
1985
|
|
1951
1986
|
> def current_app
|
1952
1987
|
|
@@ -1956,7 +1991,7 @@ example line:
|
|
1956
1991
|
|
1957
1992
|
--
|
1958
1993
|
|
1959
|
-
##### [id](https://github.com/appium/ruby_lib/blob/
|
1994
|
+
##### [id](https://github.com/appium/ruby_lib/blob/de5bded7cb9511d1cabfb22f7cf47fe1ee526805/lib/appium_lib/android/helper.rb#L154) android
|
1960
1995
|
|
1961
1996
|
> def id(id)
|
1962
1997
|
|
@@ -1972,7 +2007,7 @@ __Returns:__
|
|
1972
2007
|
|
1973
2008
|
--
|
1974
2009
|
|
1975
|
-
##### [ids](https://github.com/appium/ruby_lib/blob/
|
2010
|
+
##### [ids](https://github.com/appium/ruby_lib/blob/de5bded7cb9511d1cabfb22f7cf47fe1ee526805/lib/appium_lib/android/helper.rb#L162) android
|
1976
2011
|
|
1977
2012
|
> def ids(id)
|
1978
2013
|
|
@@ -1988,7 +2023,7 @@ __Returns:__
|
|
1988
2023
|
|
1989
2024
|
--
|
1990
2025
|
|
1991
|
-
##### [ele_index](https://github.com/appium/ruby_lib/blob/
|
2026
|
+
##### [ele_index](https://github.com/appium/ruby_lib/blob/de5bded7cb9511d1cabfb22f7cf47fe1ee526805/lib/appium_lib/android/helper.rb#L171) android
|
1992
2027
|
|
1993
2028
|
> def ele_index(class_name, index)
|
1994
2029
|
|
@@ -2006,7 +2041,7 @@ __Returns:__
|
|
2006
2041
|
|
2007
2042
|
--
|
2008
2043
|
|
2009
|
-
##### [first_ele](https://github.com/appium/ruby_lib/blob/
|
2044
|
+
##### [first_ele](https://github.com/appium/ruby_lib/blob/de5bded7cb9511d1cabfb22f7cf47fe1ee526805/lib/appium_lib/android/helper.rb#L189) android
|
2010
2045
|
|
2011
2046
|
> def first_ele(class_name)
|
2012
2047
|
|
@@ -2022,7 +2057,7 @@ __Returns:__
|
|
2022
2057
|
|
2023
2058
|
--
|
2024
2059
|
|
2025
|
-
##### [last_ele](https://github.com/appium/ruby_lib/blob/
|
2060
|
+
##### [last_ele](https://github.com/appium/ruby_lib/blob/de5bded7cb9511d1cabfb22f7cf47fe1ee526805/lib/appium_lib/android/helper.rb#L196) android
|
2026
2061
|
|
2027
2062
|
> def last_ele(class_name)
|
2028
2063
|
|
@@ -2038,7 +2073,7 @@ __Returns:__
|
|
2038
2073
|
|
2039
2074
|
--
|
2040
2075
|
|
2041
|
-
##### [tag](https://github.com/appium/ruby_lib/blob/
|
2076
|
+
##### [tag](https://github.com/appium/ruby_lib/blob/de5bded7cb9511d1cabfb22f7cf47fe1ee526805/lib/appium_lib/android/helper.rb#L204) android
|
2042
2077
|
|
2043
2078
|
> def tag(class_name)
|
2044
2079
|
|
@@ -2054,7 +2089,7 @@ __Returns:__
|
|
2054
2089
|
|
2055
2090
|
--
|
2056
2091
|
|
2057
|
-
##### [tags](https://github.com/appium/ruby_lib/blob/
|
2092
|
+
##### [tags](https://github.com/appium/ruby_lib/blob/de5bded7cb9511d1cabfb22f7cf47fe1ee526805/lib/appium_lib/android/helper.rb#L212) android
|
2058
2093
|
|
2059
2094
|
> def tags(class_name)
|
2060
2095
|
|
@@ -2070,7 +2105,7 @@ __Returns:__
|
|
2070
2105
|
|
2071
2106
|
--
|
2072
2107
|
|
2073
|
-
##### [string_visible_contains_xpath](https://github.com/appium/ruby_lib/blob/
|
2108
|
+
##### [string_visible_contains_xpath](https://github.com/appium/ruby_lib/blob/de5bded7cb9511d1cabfb22f7cf47fe1ee526805/lib/appium_lib/android/helper.rb#L255) android
|
2074
2109
|
|
2075
2110
|
> def string_visible_contains_xpath(class_name, value)
|
2076
2111
|
|
@@ -2091,7 +2126,7 @@ __Returns:__
|
|
2091
2126
|
|
2092
2127
|
--
|
2093
2128
|
|
2094
|
-
##### [string_visible_contains](https://github.com/appium/ruby_lib/blob/
|
2129
|
+
##### [string_visible_contains](https://github.com/appium/ruby_lib/blob/de5bded7cb9511d1cabfb22f7cf47fe1ee526805/lib/appium_lib/android/helper.rb#L275) android
|
2095
2130
|
|
2096
2131
|
> def string_visible_contains(class_name, value)
|
2097
2132
|
|
@@ -2112,7 +2147,7 @@ __Returns:__
|
|
2112
2147
|
|
2113
2148
|
--
|
2114
2149
|
|
2115
|
-
##### [complex_find_contains](https://github.com/appium/ruby_lib/blob/
|
2150
|
+
##### [complex_find_contains](https://github.com/appium/ruby_lib/blob/de5bded7cb9511d1cabfb22f7cf47fe1ee526805/lib/appium_lib/android/helper.rb#L293) android
|
2116
2151
|
|
2117
2152
|
> def complex_find_contains(class_name, value)
|
2118
2153
|
|
@@ -2130,7 +2165,7 @@ __Returns:__
|
|
2130
2165
|
|
2131
2166
|
--
|
2132
2167
|
|
2133
|
-
##### [complex_finds_contains](https://github.com/appium/ruby_lib/blob/
|
2168
|
+
##### [complex_finds_contains](https://github.com/appium/ruby_lib/blob/de5bded7cb9511d1cabfb22f7cf47fe1ee526805/lib/appium_lib/android/helper.rb#L307) android
|
2134
2169
|
|
2135
2170
|
> def complex_finds_contains(class_name, value)
|
2136
2171
|
|
@@ -2148,7 +2183,7 @@ __Returns:__
|
|
2148
2183
|
|
2149
2184
|
--
|
2150
2185
|
|
2151
|
-
##### [complex_find_exact](https://github.com/appium/ruby_lib/blob/
|
2186
|
+
##### [complex_find_exact](https://github.com/appium/ruby_lib/blob/de5bded7cb9511d1cabfb22f7cf47fe1ee526805/lib/appium_lib/android/helper.rb#L351) android
|
2152
2187
|
|
2153
2188
|
> def complex_find_exact(class_name, value)
|
2154
2189
|
|
@@ -2166,7 +2201,7 @@ __Returns:__
|
|
2166
2201
|
|
2167
2202
|
--
|
2168
2203
|
|
2169
|
-
##### [complex_finds_exact](https://github.com/appium/ruby_lib/blob/
|
2204
|
+
##### [complex_finds_exact](https://github.com/appium/ruby_lib/blob/de5bded7cb9511d1cabfb22f7cf47fe1ee526805/lib/appium_lib/android/helper.rb#L365) android
|
2170
2205
|
|
2171
2206
|
> def complex_finds_exact(class_name, value)
|
2172
2207
|
|
@@ -2184,7 +2219,7 @@ __Returns:__
|
|
2184
2219
|
|
2185
2220
|
--
|
2186
2221
|
|
2187
|
-
##### [get_source](https://github.com/appium/ruby_lib/blob/
|
2222
|
+
##### [get_source](https://github.com/appium/ruby_lib/blob/de5bded7cb9511d1cabfb22f7cf47fe1ee526805/lib/appium_lib/android/helper.rb#L371) android
|
2188
2223
|
|
2189
2224
|
> def get_source
|
2190
2225
|
|
@@ -2196,7 +2231,7 @@ __Returns:__
|
|
2196
2231
|
|
2197
2232
|
--
|
2198
2233
|
|
2199
|
-
##### [_nodeset_to_uiselector](https://github.com/appium/ruby_lib/blob/
|
2234
|
+
##### [_nodeset_to_uiselector](https://github.com/appium/ruby_lib/blob/de5bded7cb9511d1cabfb22f7cf47fe1ee526805/lib/appium_lib/android/client_xpath.rb#L5) android
|
2200
2235
|
|
2201
2236
|
> def _nodeset_to_uiselector(opts = {})
|
2202
2237
|
|
@@ -2204,7 +2239,7 @@ __Returns:__
|
|
2204
2239
|
|
2205
2240
|
--
|
2206
2241
|
|
2207
|
-
##### [_client_xpath](https://github.com/appium/ruby_lib/blob/
|
2242
|
+
##### [_client_xpath](https://github.com/appium/ruby_lib/blob/de5bded7cb9511d1cabfb22f7cf47fe1ee526805/lib/appium_lib/android/client_xpath.rb#L20) android
|
2208
2243
|
|
2209
2244
|
> def _client_xpath(opts = {})
|
2210
2245
|
|
@@ -2212,7 +2247,7 @@ __Returns:__
|
|
2212
2247
|
|
2213
2248
|
--
|
2214
2249
|
|
2215
|
-
##### [client_xpath](https://github.com/appium/ruby_lib/blob/
|
2250
|
+
##### [client_xpath](https://github.com/appium/ruby_lib/blob/de5bded7cb9511d1cabfb22f7cf47fe1ee526805/lib/appium_lib/android/client_xpath.rb#L37) android
|
2216
2251
|
|
2217
2252
|
> def client_xpath(xpath)
|
2218
2253
|
|
@@ -2220,7 +2255,7 @@ __Returns:__
|
|
2220
2255
|
|
2221
2256
|
--
|
2222
2257
|
|
2223
|
-
##### [client_xpaths](https://github.com/appium/ruby_lib/blob/
|
2258
|
+
##### [client_xpaths](https://github.com/appium/ruby_lib/blob/de5bded7cb9511d1cabfb22f7cf47fe1ee526805/lib/appium_lib/android/client_xpath.rb#L43) android
|
2224
2259
|
|
2225
2260
|
> def client_xpaths(xpath)
|
2226
2261
|
|
@@ -2228,7 +2263,7 @@ __Returns:__
|
|
2228
2263
|
|
2229
2264
|
--
|
2230
2265
|
|
2231
|
-
##### [TextView](https://github.com/appium/ruby_lib/blob/
|
2266
|
+
##### [TextView](https://github.com/appium/ruby_lib/blob/de5bded7cb9511d1cabfb22f7cf47fe1ee526805/lib/appium_lib/android/element/text.rb#L4) android
|
2232
2267
|
|
2233
2268
|
> TextView = 'android.widget.TextView'.freeze
|
2234
2269
|
|
@@ -2236,7 +2271,7 @@ __Returns:__
|
|
2236
2271
|
|
2237
2272
|
--
|
2238
2273
|
|
2239
|
-
##### [text](https://github.com/appium/ruby_lib/blob/
|
2274
|
+
##### [text](https://github.com/appium/ruby_lib/blob/de5bded7cb9511d1cabfb22f7cf47fe1ee526805/lib/appium_lib/android/element/text.rb#L10) android
|
2240
2275
|
|
2241
2276
|
> def text(value)
|
2242
2277
|
|
@@ -2253,7 +2288,7 @@ __Returns:__
|
|
2253
2288
|
|
2254
2289
|
--
|
2255
2290
|
|
2256
|
-
##### [texts](https://github.com/appium/ruby_lib/blob/
|
2291
|
+
##### [texts](https://github.com/appium/ruby_lib/blob/de5bded7cb9511d1cabfb22f7cf47fe1ee526805/lib/appium_lib/android/element/text.rb#L19) android
|
2257
2292
|
|
2258
2293
|
> def texts(value = false)
|
2259
2294
|
|
@@ -2270,7 +2305,7 @@ __Returns:__
|
|
2270
2305
|
|
2271
2306
|
--
|
2272
2307
|
|
2273
|
-
##### [first_text](https://github.com/appium/ruby_lib/blob/
|
2308
|
+
##### [first_text](https://github.com/appium/ruby_lib/blob/de5bded7cb9511d1cabfb22f7cf47fe1ee526805/lib/appium_lib/android/element/text.rb#L26) android
|
2274
2309
|
|
2275
2310
|
> def first_text
|
2276
2311
|
|
@@ -2282,7 +2317,7 @@ __Returns:__
|
|
2282
2317
|
|
2283
2318
|
--
|
2284
2319
|
|
2285
|
-
##### [last_text](https://github.com/appium/ruby_lib/blob/
|
2320
|
+
##### [last_text](https://github.com/appium/ruby_lib/blob/de5bded7cb9511d1cabfb22f7cf47fe1ee526805/lib/appium_lib/android/element/text.rb#L32) android
|
2286
2321
|
|
2287
2322
|
> def last_text
|
2288
2323
|
|
@@ -2294,7 +2329,7 @@ __Returns:__
|
|
2294
2329
|
|
2295
2330
|
--
|
2296
2331
|
|
2297
|
-
##### [text_exact](https://github.com/appium/ruby_lib/blob/
|
2332
|
+
##### [text_exact](https://github.com/appium/ruby_lib/blob/de5bded7cb9511d1cabfb22f7cf47fe1ee526805/lib/appium_lib/android/element/text.rb#L39) android
|
2298
2333
|
|
2299
2334
|
> def text_exact(value)
|
2300
2335
|
|
@@ -2310,7 +2345,7 @@ __Returns:__
|
|
2310
2345
|
|
2311
2346
|
--
|
2312
2347
|
|
2313
|
-
##### [texts_exact](https://github.com/appium/ruby_lib/blob/
|
2348
|
+
##### [texts_exact](https://github.com/appium/ruby_lib/blob/de5bded7cb9511d1cabfb22f7cf47fe1ee526805/lib/appium_lib/android/element/text.rb#L46) android
|
2314
2349
|
|
2315
2350
|
> def texts_exact(value)
|
2316
2351
|
|
@@ -2326,7 +2361,7 @@ __Returns:__
|
|
2326
2361
|
|
2327
2362
|
--
|
2328
2363
|
|
2329
|
-
##### [alert_click](https://github.com/appium/ruby_lib/blob/
|
2364
|
+
##### [alert_click](https://github.com/appium/ruby_lib/blob/de5bded7cb9511d1cabfb22f7cf47fe1ee526805/lib/appium_lib/android/element/alert.rb#L6) android
|
2330
2365
|
|
2331
2366
|
> def alert_click(value)
|
2332
2367
|
|
@@ -2342,7 +2377,7 @@ __Returns:__
|
|
2342
2377
|
|
2343
2378
|
--
|
2344
2379
|
|
2345
|
-
##### [alert_accept](https://github.com/appium/ruby_lib/blob/
|
2380
|
+
##### [alert_accept](https://github.com/appium/ruby_lib/blob/de5bded7cb9511d1cabfb22f7cf47fe1ee526805/lib/appium_lib/android/element/alert.rb#L13) android
|
2346
2381
|
|
2347
2382
|
> def alert_accept
|
2348
2383
|
|
@@ -2355,7 +2390,7 @@ __Returns:__
|
|
2355
2390
|
|
2356
2391
|
--
|
2357
2392
|
|
2358
|
-
##### [alert_accept_text](https://github.com/appium/ruby_lib/blob/
|
2393
|
+
##### [alert_accept_text](https://github.com/appium/ruby_lib/blob/de5bded7cb9511d1cabfb22f7cf47fe1ee526805/lib/appium_lib/android/element/alert.rb#L20) android
|
2359
2394
|
|
2360
2395
|
> def alert_accept_text
|
2361
2396
|
|
@@ -2368,7 +2403,7 @@ __Returns:__
|
|
2368
2403
|
|
2369
2404
|
--
|
2370
2405
|
|
2371
|
-
##### [alert_dismiss](https://github.com/appium/ruby_lib/blob/
|
2406
|
+
##### [alert_dismiss](https://github.com/appium/ruby_lib/blob/de5bded7cb9511d1cabfb22f7cf47fe1ee526805/lib/appium_lib/android/element/alert.rb#L27) android
|
2372
2407
|
|
2373
2408
|
> def alert_dismiss
|
2374
2409
|
|
@@ -2381,7 +2416,7 @@ __Returns:__
|
|
2381
2416
|
|
2382
2417
|
--
|
2383
2418
|
|
2384
|
-
##### [alert_dismiss_text](https://github.com/appium/ruby_lib/blob/
|
2419
|
+
##### [alert_dismiss_text](https://github.com/appium/ruby_lib/blob/de5bded7cb9511d1cabfb22f7cf47fe1ee526805/lib/appium_lib/android/element/alert.rb#L34) android
|
2385
2420
|
|
2386
2421
|
> def alert_dismiss_text
|
2387
2422
|
|
@@ -2394,7 +2429,7 @@ __Returns:__
|
|
2394
2429
|
|
2395
2430
|
--
|
2396
2431
|
|
2397
|
-
##### [Button](https://github.com/appium/ruby_lib/blob/
|
2432
|
+
##### [Button](https://github.com/appium/ruby_lib/blob/de5bded7cb9511d1cabfb22f7cf47fe1ee526805/lib/appium_lib/android/element/button.rb#L4) android
|
2398
2433
|
|
2399
2434
|
> Button = 'android.widget.Button'.freeze
|
2400
2435
|
|
@@ -2402,7 +2437,7 @@ __Returns:__
|
|
2402
2437
|
|
2403
2438
|
--
|
2404
2439
|
|
2405
|
-
##### [ImageButton](https://github.com/appium/ruby_lib/blob/
|
2440
|
+
##### [ImageButton](https://github.com/appium/ruby_lib/blob/de5bded7cb9511d1cabfb22f7cf47fe1ee526805/lib/appium_lib/android/element/button.rb#L5) android
|
2406
2441
|
|
2407
2442
|
> ImageButton = 'android.widget.ImageButton'.freeze
|
2408
2443
|
|
@@ -2410,7 +2445,7 @@ __Returns:__
|
|
2410
2445
|
|
2411
2446
|
--
|
2412
2447
|
|
2413
|
-
##### [_button_visible_selectors](https://github.com/appium/ruby_lib/blob/
|
2448
|
+
##### [_button_visible_selectors](https://github.com/appium/ruby_lib/blob/de5bded7cb9511d1cabfb22f7cf47fe1ee526805/lib/appium_lib/android/element/button.rb#L9) android
|
2414
2449
|
|
2415
2450
|
> def _button_visible_selectors(opts = {})
|
2416
2451
|
|
@@ -2418,7 +2453,7 @@ __Returns:__
|
|
2418
2453
|
|
2419
2454
|
--
|
2420
2455
|
|
2421
|
-
##### [_button_exact_string](https://github.com/appium/ruby_lib/blob/
|
2456
|
+
##### [_button_exact_string](https://github.com/appium/ruby_lib/blob/de5bded7cb9511d1cabfb22f7cf47fe1ee526805/lib/appium_lib/android/element/button.rb#L22) android
|
2422
2457
|
|
2423
2458
|
> def _button_exact_string(value)
|
2424
2459
|
|
@@ -2426,7 +2461,7 @@ __Returns:__
|
|
2426
2461
|
|
2427
2462
|
--
|
2428
2463
|
|
2429
|
-
##### [_button_contains_string](https://github.com/appium/ruby_lib/blob/
|
2464
|
+
##### [_button_contains_string](https://github.com/appium/ruby_lib/blob/de5bded7cb9511d1cabfb22f7cf47fe1ee526805/lib/appium_lib/android/element/button.rb#L28) android
|
2430
2465
|
|
2431
2466
|
> def _button_contains_string(value)
|
2432
2467
|
|
@@ -2434,7 +2469,7 @@ __Returns:__
|
|
2434
2469
|
|
2435
2470
|
--
|
2436
2471
|
|
2437
|
-
##### [button](https://github.com/appium/ruby_lib/blob/
|
2472
|
+
##### [button](https://github.com/appium/ruby_lib/blob/de5bded7cb9511d1cabfb22f7cf47fe1ee526805/lib/appium_lib/android/element/button.rb#L40) android
|
2438
2473
|
|
2439
2474
|
> def button(value)
|
2440
2475
|
|
@@ -2451,7 +2486,7 @@ __Returns:__
|
|
2451
2486
|
|
2452
2487
|
--
|
2453
2488
|
|
2454
|
-
##### [buttons](https://github.com/appium/ruby_lib/blob/
|
2489
|
+
##### [buttons](https://github.com/appium/ruby_lib/blob/de5bded7cb9511d1cabfb22f7cf47fe1ee526805/lib/appium_lib/android/element/button.rb#L68) android
|
2455
2490
|
|
2456
2491
|
> def buttons(value = false)
|
2457
2492
|
|
@@ -2468,7 +2503,7 @@ __Returns:__
|
|
2468
2503
|
|
2469
2504
|
--
|
2470
2505
|
|
2471
|
-
##### [first_button](https://github.com/appium/ruby_lib/blob/
|
2506
|
+
##### [first_button](https://github.com/appium/ruby_lib/blob/de5bded7cb9511d1cabfb22f7cf47fe1ee526805/lib/appium_lib/android/element/button.rb#L75) android
|
2472
2507
|
|
2473
2508
|
> def first_button
|
2474
2509
|
|
@@ -2480,7 +2515,7 @@ __Returns:__
|
|
2480
2515
|
|
2481
2516
|
--
|
2482
2517
|
|
2483
|
-
##### [last_button](https://github.com/appium/ruby_lib/blob/
|
2518
|
+
##### [last_button](https://github.com/appium/ruby_lib/blob/de5bded7cb9511d1cabfb22f7cf47fe1ee526805/lib/appium_lib/android/element/button.rb#L86) android
|
2484
2519
|
|
2485
2520
|
> def last_button
|
2486
2521
|
|
@@ -2492,7 +2527,7 @@ __Returns:__
|
|
2492
2527
|
|
2493
2528
|
--
|
2494
2529
|
|
2495
|
-
##### [button_exact](https://github.com/appium/ruby_lib/blob/
|
2530
|
+
##### [button_exact](https://github.com/appium/ruby_lib/blob/de5bded7cb9511d1cabfb22f7cf47fe1ee526805/lib/appium_lib/android/element/button.rb#L109) android
|
2496
2531
|
|
2497
2532
|
> def button_exact(value)
|
2498
2533
|
|
@@ -2508,7 +2543,7 @@ __Returns:__
|
|
2508
2543
|
|
2509
2544
|
--
|
2510
2545
|
|
2511
|
-
##### [buttons_exact](https://github.com/appium/ruby_lib/blob/
|
2546
|
+
##### [buttons_exact](https://github.com/appium/ruby_lib/blob/de5bded7cb9511d1cabfb22f7cf47fe1ee526805/lib/appium_lib/android/element/button.rb#L121) android
|
2512
2547
|
|
2513
2548
|
> def buttons_exact(value)
|
2514
2549
|
|
@@ -2524,7 +2559,7 @@ __Returns:__
|
|
2524
2559
|
|
2525
2560
|
--
|
2526
2561
|
|
2527
|
-
##### [raise_no_such_element_if_empty](https://github.com/appium/ruby_lib/blob/
|
2562
|
+
##### [raise_no_such_element_if_empty](https://github.com/appium/ruby_lib/blob/de5bded7cb9511d1cabfb22f7cf47fe1ee526805/lib/appium_lib/android/element/button.rb#L127) android
|
2528
2563
|
|
2529
2564
|
> def raise_no_such_element_if_empty(elements)
|
2530
2565
|
|
@@ -2532,7 +2567,7 @@ __Returns:__
|
|
2532
2567
|
|
2533
2568
|
--
|
2534
2569
|
|
2535
|
-
##### [uiautomator_find](https://github.com/appium/ruby_lib/blob/
|
2570
|
+
##### [uiautomator_find](https://github.com/appium/ruby_lib/blob/de5bded7cb9511d1cabfb22f7cf47fe1ee526805/lib/appium_lib/android/mobile_methods.rb#L10) android
|
2536
2571
|
|
2537
2572
|
> def uiautomator_find
|
2538
2573
|
|
@@ -2544,7 +2579,7 @@ find_element/s can be used with a [UISelector](http://developer.android.com/tool
|
|
2544
2579
|
|
2545
2580
|
--
|
2546
2581
|
|
2547
|
-
##### [find](https://github.com/appium/ruby_lib/blob/
|
2582
|
+
##### [find](https://github.com/appium/ruby_lib/blob/de5bded7cb9511d1cabfb22f7cf47fe1ee526805/lib/appium_lib/android/element/generic.rb#L6) android
|
2548
2583
|
|
2549
2584
|
> def find(value)
|
2550
2585
|
|
@@ -2560,7 +2595,7 @@ __Returns:__
|
|
2560
2595
|
|
2561
2596
|
--
|
2562
2597
|
|
2563
|
-
##### [finds](https://github.com/appium/ruby_lib/blob/
|
2598
|
+
##### [finds](https://github.com/appium/ruby_lib/blob/de5bded7cb9511d1cabfb22f7cf47fe1ee526805/lib/appium_lib/android/element/generic.rb#L13) android
|
2564
2599
|
|
2565
2600
|
> def finds(value)
|
2566
2601
|
|
@@ -2576,7 +2611,7 @@ __Returns:__
|
|
2576
2611
|
|
2577
2612
|
--
|
2578
2613
|
|
2579
|
-
##### [find_exact](https://github.com/appium/ruby_lib/blob/
|
2614
|
+
##### [find_exact](https://github.com/appium/ruby_lib/blob/de5bded7cb9511d1cabfb22f7cf47fe1ee526805/lib/appium_lib/android/element/generic.rb#L20) android
|
2580
2615
|
|
2581
2616
|
> def find_exact(value)
|
2582
2617
|
|
@@ -2592,7 +2627,7 @@ __Returns:__
|
|
2592
2627
|
|
2593
2628
|
--
|
2594
2629
|
|
2595
|
-
##### [finds_exact](https://github.com/appium/ruby_lib/blob/
|
2630
|
+
##### [finds_exact](https://github.com/appium/ruby_lib/blob/de5bded7cb9511d1cabfb22f7cf47fe1ee526805/lib/appium_lib/android/element/generic.rb#L27) android
|
2596
2631
|
|
2597
2632
|
> def finds_exact(value)
|
2598
2633
|
|
@@ -2608,7 +2643,7 @@ __Returns:__
|
|
2608
2643
|
|
2609
2644
|
--
|
2610
2645
|
|
2611
|
-
##### [scroll_to](https://github.com/appium/ruby_lib/blob/
|
2646
|
+
##### [scroll_to](https://github.com/appium/ruby_lib/blob/de5bded7cb9511d1cabfb22f7cf47fe1ee526805/lib/appium_lib/android/element/generic.rb#L40) android
|
2612
2647
|
|
2613
2648
|
> def scroll_to(text, scrollable_index = 0)
|
2614
2649
|
|
@@ -2626,7 +2661,7 @@ __Returns:__
|
|
2626
2661
|
|
2627
2662
|
--
|
2628
2663
|
|
2629
|
-
##### [scroll_to_exact](https://github.com/appium/ruby_lib/blob/
|
2664
|
+
##### [scroll_to_exact](https://github.com/appium/ruby_lib/blob/de5bded7cb9511d1cabfb22f7cf47fe1ee526805/lib/appium_lib/android/element/generic.rb#L54) android
|
2630
2665
|
|
2631
2666
|
> def scroll_to_exact(text, scrollable_index = 0)
|
2632
2667
|
|
@@ -2644,7 +2679,7 @@ __Returns:__
|
|
2644
2679
|
|
2645
2680
|
--
|
2646
2681
|
|
2647
|
-
##### [EditText](https://github.com/appium/ruby_lib/blob/
|
2682
|
+
##### [EditText](https://github.com/appium/ruby_lib/blob/de5bded7cb9511d1cabfb22f7cf47fe1ee526805/lib/appium_lib/android/element/textfield.rb#L3) android
|
2648
2683
|
|
2649
2684
|
> EditText = 'android.widget.EditText'.freeze
|
2650
2685
|
|
@@ -2652,7 +2687,7 @@ __Returns:__
|
|
2652
2687
|
|
2653
2688
|
--
|
2654
2689
|
|
2655
|
-
##### [textfield](https://github.com/appium/ruby_lib/blob/
|
2690
|
+
##### [textfield](https://github.com/appium/ruby_lib/blob/de5bded7cb9511d1cabfb22f7cf47fe1ee526805/lib/appium_lib/android/element/textfield.rb#L9) android
|
2656
2691
|
|
2657
2692
|
> def textfield(value)
|
2658
2693
|
|
@@ -2669,7 +2704,7 @@ __Returns:__
|
|
2669
2704
|
|
2670
2705
|
--
|
2671
2706
|
|
2672
|
-
##### [textfields](https://github.com/appium/ruby_lib/blob/
|
2707
|
+
##### [textfields](https://github.com/appium/ruby_lib/blob/de5bded7cb9511d1cabfb22f7cf47fe1ee526805/lib/appium_lib/android/element/textfield.rb#L18) android
|
2673
2708
|
|
2674
2709
|
> def textfields(value = false)
|
2675
2710
|
|
@@ -2686,7 +2721,7 @@ __Returns:__
|
|
2686
2721
|
|
2687
2722
|
--
|
2688
2723
|
|
2689
|
-
##### [first_textfield](https://github.com/appium/ruby_lib/blob/
|
2724
|
+
##### [first_textfield](https://github.com/appium/ruby_lib/blob/de5bded7cb9511d1cabfb22f7cf47fe1ee526805/lib/appium_lib/android/element/textfield.rb#L25) android
|
2690
2725
|
|
2691
2726
|
> def first_textfield
|
2692
2727
|
|
@@ -2698,7 +2733,7 @@ __Returns:__
|
|
2698
2733
|
|
2699
2734
|
--
|
2700
2735
|
|
2701
|
-
##### [last_textfield](https://github.com/appium/ruby_lib/blob/
|
2736
|
+
##### [last_textfield](https://github.com/appium/ruby_lib/blob/de5bded7cb9511d1cabfb22f7cf47fe1ee526805/lib/appium_lib/android/element/textfield.rb#L31) android
|
2702
2737
|
|
2703
2738
|
> def last_textfield
|
2704
2739
|
|
@@ -2710,7 +2745,7 @@ __Returns:__
|
|
2710
2745
|
|
2711
2746
|
--
|
2712
2747
|
|
2713
|
-
##### [textfield_exact](https://github.com/appium/ruby_lib/blob/
|
2748
|
+
##### [textfield_exact](https://github.com/appium/ruby_lib/blob/de5bded7cb9511d1cabfb22f7cf47fe1ee526805/lib/appium_lib/android/element/textfield.rb#L38) android
|
2714
2749
|
|
2715
2750
|
> def textfield_exact(value)
|
2716
2751
|
|
@@ -2726,7 +2761,7 @@ __Returns:__
|
|
2726
2761
|
|
2727
2762
|
--
|
2728
2763
|
|
2729
|
-
##### [textfields_exact](https://github.com/appium/ruby_lib/blob/
|
2764
|
+
##### [textfields_exact](https://github.com/appium/ruby_lib/blob/de5bded7cb9511d1cabfb22f7cf47fe1ee526805/lib/appium_lib/android/element/textfield.rb#L45) android
|
2730
2765
|
|
2731
2766
|
> def textfields_exact(value)
|
2732
2767
|
|
@@ -2742,7 +2777,7 @@ __Returns:__
|
|
2742
2777
|
|
2743
2778
|
--
|
2744
2779
|
|
2745
|
-
##### [value](https://github.com/appium/ruby_lib/blob/
|
2780
|
+
##### [value](https://github.com/appium/ruby_lib/blob/de5bded7cb9511d1cabfb22f7cf47fe1ee526805/lib/appium_lib/common/patch.rb#L12)
|
2746
2781
|
|
2747
2782
|
> def value
|
2748
2783
|
|
@@ -2752,7 +2787,7 @@ Fixes NoMethodError: undefined method `value' for Selenium::WebDriver::Element
|
|
2752
2787
|
|
2753
2788
|
--
|
2754
2789
|
|
2755
|
-
##### [name](https://github.com/appium/ruby_lib/blob/
|
2790
|
+
##### [name](https://github.com/appium/ruby_lib/blob/de5bded7cb9511d1cabfb22f7cf47fe1ee526805/lib/appium_lib/common/patch.rb#L19)
|
2756
2791
|
|
2757
2792
|
> def name
|
2758
2793
|
|
@@ -2762,7 +2797,7 @@ Fixes NoMethodError: undefined method `name' for Selenium::WebDriver::Element
|
|
2762
2797
|
|
2763
2798
|
--
|
2764
2799
|
|
2765
|
-
##### [location_rel](https://github.com/appium/ruby_lib/blob/
|
2800
|
+
##### [location_rel](https://github.com/appium/ruby_lib/blob/de5bded7cb9511d1cabfb22f7cf47fe1ee526805/lib/appium_lib/common/patch.rb#L31)
|
2766
2801
|
|
2767
2802
|
> def location_rel
|
2768
2803
|
|
@@ -2780,7 +2815,7 @@ __Returns:__
|
|
2780
2815
|
|
2781
2816
|
--
|
2782
2817
|
|
2783
|
-
##### [DEFAULT_HEADERS](https://github.com/appium/ruby_lib/blob/
|
2818
|
+
##### [DEFAULT_HEADERS](https://github.com/appium/ruby_lib/blob/de5bded7cb9511d1cabfb22f7cf47fe1ee526805/lib/appium_lib/common/patch.rb#L152)
|
2784
2819
|
|
2785
2820
|
> DEFAULT_HEADERS = { 'Accept' => CONTENT_TYPE, 'User-Agent' => "appium/ruby_lib/#{::Appium::VERSION}" }.freeze
|
2786
2821
|
|
@@ -2788,7 +2823,7 @@ __Returns:__
|
|
2788
2823
|
|
2789
2824
|
--
|
2790
2825
|
|
2791
|
-
##### [patch_remote_driver_commands](https://github.com/appium/ruby_lib/blob/
|
2826
|
+
##### [patch_remote_driver_commands](https://github.com/appium/ruby_lib/blob/de5bded7cb9511d1cabfb22f7cf47fe1ee526805/lib/appium_lib/common/patch.rb#L155)
|
2792
2827
|
|
2793
2828
|
> def patch_remote_driver_commands
|
2794
2829
|
|