appium_lib 9.3.6 → 9.3.7
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/CHANGELOG.md +12 -0
- data/docs/android_docs.md +252 -237
- data/docs/docs.md +1 -1
- data/docs/ios_docs.md +271 -256
- data/docs/migration.md +47 -0
- data/ios_tests/appium.txt +1 -1
- data/ios_tests/lib/ios/specs/driver.rb +5 -5
- data/lib/appium_lib/common/version.rb +2 -2
- data/lib/appium_lib/device/device.rb +5 -5
- data/lib/appium_lib/driver.rb +27 -6
- data/lib/appium_lib/ios/helper.rb +4 -4
- data/release_notes.md +6 -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: 41b8c96d60a69d07a3dd6fa5936c5e7119838dff
|
|
4
|
+
data.tar.gz: 84fc544d8acccae56b3ec5667123cb1a44cf430b
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: d52245f5d06116a2e563af6f352ba24e4316c926ad62ac900fed49327100f251a5c59345b177260af591c20d4ac2264b1c5a7d23d5325acf0fb5263fc1d0d4f6
|
|
7
|
+
data.tar.gz: 6c3b86cd0ca830c02138594fd828730ce601b98e2e1a0687f2683c25dddc27ee8d390b9fc52c15af480307520ce056ee24fe5cee3fa81087c0667ae91c6b6889
|
data/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,18 @@ 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.3.7
|
|
7
|
+
### 1. Enhancements
|
|
8
|
+
- Remove appium suffix from find element [#532](https://github.com/appium/ruby_lib/pull/532)
|
|
9
|
+
- rename `@driver.find_element/s_with_appium` to `@driver.find_element/s`
|
|
10
|
+
- fix documentations
|
|
11
|
+
|
|
12
|
+
### 2. Bug fixes
|
|
13
|
+
|
|
14
|
+
### 3. Deprecations
|
|
15
|
+
- `@driver.find_element/s_with_appium`
|
|
16
|
+
- use `@driver.find_element/s` instead
|
|
17
|
+
|
|
6
18
|
## v9.3.6
|
|
7
19
|
### 1. Enhancements
|
|
8
20
|
- Add toggle touch id enrollment [#521](https://github.com/appium/ruby_lib/pull/521)
|
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/35b1e25c46d9518101bec2410f6dcbc6b2c09ad6/lib/appium_lib/driver.rb#L75)
|
|
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/35b1e25c46d9518101bec2410f6dcbc6b2c09ad6/lib/appium_lib/driver.rb#L111)
|
|
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/35b1e25c46d9518101bec2410f6dcbc6b2c09ad6/lib/appium_lib/driver.rb#L117)
|
|
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/35b1e25c46d9518101bec2410f6dcbc6b2c09ad6/lib/appium_lib/driver.rb#L149)
|
|
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/35b1e25c46d9518101bec2410f6dcbc6b2c09ad6/lib/appium_lib/driver.rb#L170)
|
|
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/35b1e25c46d9518101bec2410f6dcbc6b2c09ad6/lib/appium_lib/driver.rb#L223)
|
|
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/35b1e25c46d9518101bec2410f6dcbc6b2c09ad6/lib/appium_lib/driver.rb#L258)
|
|
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/35b1e25c46d9518101bec2410f6dcbc6b2c09ad6/lib/appium_lib/driver.rb#L276)
|
|
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/35b1e25c46d9518101bec2410f6dcbc6b2c09ad6/lib/appium_lib/driver.rb#L276)
|
|
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/35b1e25c46d9518101bec2410f6dcbc6b2c09ad6/lib/appium_lib/driver.rb#L278)
|
|
173
173
|
|
|
174
174
|
> def caps
|
|
175
175
|
|
|
@@ -177,7 +177,7 @@ Selenium webdriver capabilities
|
|
|
177
177
|
|
|
178
178
|
--
|
|
179
179
|
|
|
180
|
-
##### [caps=](https://github.com/appium/ruby_lib/blob/
|
|
180
|
+
##### [caps=](https://github.com/appium/ruby_lib/blob/35b1e25c46d9518101bec2410f6dcbc6b2c09ad6/lib/appium_lib/driver.rb#L278)
|
|
181
181
|
|
|
182
182
|
> def caps=(value)
|
|
183
183
|
|
|
@@ -185,7 +185,7 @@ Selenium webdriver capabilities
|
|
|
185
185
|
|
|
186
186
|
--
|
|
187
187
|
|
|
188
|
-
##### [custom_url](https://github.com/appium/ruby_lib/blob/
|
|
188
|
+
##### [custom_url](https://github.com/appium/ruby_lib/blob/35b1e25c46d9518101bec2410f6dcbc6b2c09ad6/lib/appium_lib/driver.rb#L280)
|
|
189
189
|
|
|
190
190
|
> def custom_url
|
|
191
191
|
|
|
@@ -193,7 +193,7 @@ Custom URL for the selenium server
|
|
|
193
193
|
|
|
194
194
|
--
|
|
195
195
|
|
|
196
|
-
##### [custom_url=](https://github.com/appium/ruby_lib/blob/
|
|
196
|
+
##### [custom_url=](https://github.com/appium/ruby_lib/blob/35b1e25c46d9518101bec2410f6dcbc6b2c09ad6/lib/appium_lib/driver.rb#L280)
|
|
197
197
|
|
|
198
198
|
> def custom_url=(value)
|
|
199
199
|
|
|
@@ -201,7 +201,7 @@ Custom URL for the selenium server
|
|
|
201
201
|
|
|
202
202
|
--
|
|
203
203
|
|
|
204
|
-
##### [export_session](https://github.com/appium/ruby_lib/blob/
|
|
204
|
+
##### [export_session](https://github.com/appium/ruby_lib/blob/35b1e25c46d9518101bec2410f6dcbc6b2c09ad6/lib/appium_lib/driver.rb#L282)
|
|
205
205
|
|
|
206
206
|
> def export_session
|
|
207
207
|
|
|
@@ -209,7 +209,7 @@ Export session id to textfile in /tmp for 3rd party tools
|
|
|
209
209
|
|
|
210
210
|
--
|
|
211
211
|
|
|
212
|
-
##### [export_session=](https://github.com/appium/ruby_lib/blob/
|
|
212
|
+
##### [export_session=](https://github.com/appium/ruby_lib/blob/35b1e25c46d9518101bec2410f6dcbc6b2c09ad6/lib/appium_lib/driver.rb#L282)
|
|
213
213
|
|
|
214
214
|
> def export_session=(value)
|
|
215
215
|
|
|
@@ -217,7 +217,7 @@ Export session id to textfile in /tmp for 3rd party tools
|
|
|
217
217
|
|
|
218
218
|
--
|
|
219
219
|
|
|
220
|
-
##### [default_wait](https://github.com/appium/ruby_lib/blob/
|
|
220
|
+
##### [default_wait](https://github.com/appium/ruby_lib/blob/35b1e25c46d9518101bec2410f6dcbc6b2c09ad6/lib/appium_lib/driver.rb#L287)
|
|
221
221
|
|
|
222
222
|
> def default_wait
|
|
223
223
|
|
|
@@ -231,7 +231,7 @@ __Returns:__
|
|
|
231
231
|
|
|
232
232
|
--
|
|
233
233
|
|
|
234
|
-
##### [sauce_username](https://github.com/appium/ruby_lib/blob/
|
|
234
|
+
##### [sauce_username](https://github.com/appium/ruby_lib/blob/35b1e25c46d9518101bec2410f6dcbc6b2c09ad6/lib/appium_lib/driver.rb#L289)
|
|
235
235
|
|
|
236
236
|
> def sauce_username
|
|
237
237
|
|
|
@@ -239,7 +239,7 @@ Username for use on Sauce Labs. Set `false` to disable Sauce, even when SAUCE_US
|
|
|
239
239
|
|
|
240
240
|
--
|
|
241
241
|
|
|
242
|
-
##### [sauce_username=](https://github.com/appium/ruby_lib/blob/
|
|
242
|
+
##### [sauce_username=](https://github.com/appium/ruby_lib/blob/35b1e25c46d9518101bec2410f6dcbc6b2c09ad6/lib/appium_lib/driver.rb#L289)
|
|
243
243
|
|
|
244
244
|
> def sauce_username=(value)
|
|
245
245
|
|
|
@@ -247,7 +247,7 @@ Username for use on Sauce Labs. Set `false` to disable Sauce, even when SAUCE_US
|
|
|
247
247
|
|
|
248
248
|
--
|
|
249
249
|
|
|
250
|
-
##### [sauce_access_key](https://github.com/appium/ruby_lib/blob/
|
|
250
|
+
##### [sauce_access_key](https://github.com/appium/ruby_lib/blob/35b1e25c46d9518101bec2410f6dcbc6b2c09ad6/lib/appium_lib/driver.rb#L291)
|
|
251
251
|
|
|
252
252
|
> def sauce_access_key
|
|
253
253
|
|
|
@@ -255,7 +255,7 @@ Access Key for use on Sauce Labs. Set `false` to disable Sauce, even when SAUCE_
|
|
|
255
255
|
|
|
256
256
|
--
|
|
257
257
|
|
|
258
|
-
##### [sauce_access_key=](https://github.com/appium/ruby_lib/blob/
|
|
258
|
+
##### [sauce_access_key=](https://github.com/appium/ruby_lib/blob/35b1e25c46d9518101bec2410f6dcbc6b2c09ad6/lib/appium_lib/driver.rb#L291)
|
|
259
259
|
|
|
260
260
|
> def sauce_access_key=(value)
|
|
261
261
|
|
|
@@ -263,7 +263,7 @@ Access Key for use on Sauce Labs. Set `false` to disable Sauce, even when SAUCE_
|
|
|
263
263
|
|
|
264
264
|
--
|
|
265
265
|
|
|
266
|
-
##### [sauce_endpoint](https://github.com/appium/ruby_lib/blob/
|
|
266
|
+
##### [sauce_endpoint](https://github.com/appium/ruby_lib/blob/35b1e25c46d9518101bec2410f6dcbc6b2c09ad6/lib/appium_lib/driver.rb#L293)
|
|
267
267
|
|
|
268
268
|
> def sauce_endpoint
|
|
269
269
|
|
|
@@ -271,7 +271,7 @@ Override the Sauce Appium endpoint to allow e.g. TestObject tests
|
|
|
271
271
|
|
|
272
272
|
--
|
|
273
273
|
|
|
274
|
-
##### [sauce_endpoint=](https://github.com/appium/ruby_lib/blob/
|
|
274
|
+
##### [sauce_endpoint=](https://github.com/appium/ruby_lib/blob/35b1e25c46d9518101bec2410f6dcbc6b2c09ad6/lib/appium_lib/driver.rb#L293)
|
|
275
275
|
|
|
276
276
|
> def sauce_endpoint=(value)
|
|
277
277
|
|
|
@@ -279,7 +279,7 @@ Override the Sauce Appium endpoint to allow e.g. TestObject tests
|
|
|
279
279
|
|
|
280
280
|
--
|
|
281
281
|
|
|
282
|
-
##### [appium_port](https://github.com/appium/ruby_lib/blob/
|
|
282
|
+
##### [appium_port](https://github.com/appium/ruby_lib/blob/35b1e25c46d9518101bec2410f6dcbc6b2c09ad6/lib/appium_lib/driver.rb#L295)
|
|
283
283
|
|
|
284
284
|
> def appium_port
|
|
285
285
|
|
|
@@ -287,7 +287,7 @@ Appium's server port
|
|
|
287
287
|
|
|
288
288
|
--
|
|
289
289
|
|
|
290
|
-
##### [appium_port=](https://github.com/appium/ruby_lib/blob/
|
|
290
|
+
##### [appium_port=](https://github.com/appium/ruby_lib/blob/35b1e25c46d9518101bec2410f6dcbc6b2c09ad6/lib/appium_lib/driver.rb#L295)
|
|
291
291
|
|
|
292
292
|
> def appium_port=(value)
|
|
293
293
|
|
|
@@ -295,7 +295,7 @@ Appium's server port
|
|
|
295
295
|
|
|
296
296
|
--
|
|
297
297
|
|
|
298
|
-
##### [appium_device](https://github.com/appium/ruby_lib/blob/
|
|
298
|
+
##### [appium_device](https://github.com/appium/ruby_lib/blob/35b1e25c46d9518101bec2410f6dcbc6b2c09ad6/lib/appium_lib/driver.rb#L297)
|
|
299
299
|
|
|
300
300
|
> def appium_device
|
|
301
301
|
|
|
@@ -303,7 +303,7 @@ Device type to request from the appium server
|
|
|
303
303
|
|
|
304
304
|
--
|
|
305
305
|
|
|
306
|
-
##### [appium_device=](https://github.com/appium/ruby_lib/blob/
|
|
306
|
+
##### [appium_device=](https://github.com/appium/ruby_lib/blob/35b1e25c46d9518101bec2410f6dcbc6b2c09ad6/lib/appium_lib/driver.rb#L297)
|
|
307
307
|
|
|
308
308
|
> def appium_device=(value)
|
|
309
309
|
|
|
@@ -311,7 +311,7 @@ Device type to request from the appium server
|
|
|
311
311
|
|
|
312
312
|
--
|
|
313
313
|
|
|
314
|
-
##### [automation_name](https://github.com/appium/ruby_lib/blob/
|
|
314
|
+
##### [automation_name](https://github.com/appium/ruby_lib/blob/35b1e25c46d9518101bec2410f6dcbc6b2c09ad6/lib/appium_lib/driver.rb#L300)
|
|
315
315
|
|
|
316
316
|
> def automation_name
|
|
317
317
|
|
|
@@ -320,7 +320,7 @@ If automation_name is nil, it is not set both client side and server side.
|
|
|
320
320
|
|
|
321
321
|
--
|
|
322
322
|
|
|
323
|
-
##### [appium_server_status](https://github.com/appium/ruby_lib/blob/
|
|
323
|
+
##### [appium_server_status](https://github.com/appium/ruby_lib/blob/35b1e25c46d9518101bec2410f6dcbc6b2c09ad6/lib/appium_lib/driver.rb#L302)
|
|
324
324
|
|
|
325
325
|
> def appium_server_status
|
|
326
326
|
|
|
@@ -328,7 +328,7 @@ Appium's server version
|
|
|
328
328
|
|
|
329
329
|
--
|
|
330
330
|
|
|
331
|
-
##### [appium_debug](https://github.com/appium/ruby_lib/blob/
|
|
331
|
+
##### [appium_debug](https://github.com/appium/ruby_lib/blob/35b1e25c46d9518101bec2410f6dcbc6b2c09ad6/lib/appium_lib/driver.rb#L304)
|
|
332
332
|
|
|
333
333
|
> def appium_debug
|
|
334
334
|
|
|
@@ -336,7 +336,7 @@ Boolean debug mode for the Appium Ruby bindings
|
|
|
336
336
|
|
|
337
337
|
--
|
|
338
338
|
|
|
339
|
-
##### [appium_debug=](https://github.com/appium/ruby_lib/blob/
|
|
339
|
+
##### [appium_debug=](https://github.com/appium/ruby_lib/blob/35b1e25c46d9518101bec2410f6dcbc6b2c09ad6/lib/appium_lib/driver.rb#L304)
|
|
340
340
|
|
|
341
341
|
> def appium_debug=(value)
|
|
342
342
|
|
|
@@ -344,7 +344,7 @@ Boolean debug mode for the Appium Ruby bindings
|
|
|
344
344
|
|
|
345
345
|
--
|
|
346
346
|
|
|
347
|
-
##### [listener](https://github.com/appium/ruby_lib/blob/
|
|
347
|
+
##### [listener](https://github.com/appium/ruby_lib/blob/35b1e25c46d9518101bec2410f6dcbc6b2c09ad6/lib/appium_lib/driver.rb#L306)
|
|
348
348
|
|
|
349
349
|
> def listener
|
|
350
350
|
|
|
@@ -352,7 +352,7 @@ instance of AbstractEventListener for logging support
|
|
|
352
352
|
|
|
353
353
|
--
|
|
354
354
|
|
|
355
|
-
##### [listener=](https://github.com/appium/ruby_lib/blob/
|
|
355
|
+
##### [listener=](https://github.com/appium/ruby_lib/blob/35b1e25c46d9518101bec2410f6dcbc6b2c09ad6/lib/appium_lib/driver.rb#L306)
|
|
356
356
|
|
|
357
357
|
> def listener=(value)
|
|
358
358
|
|
|
@@ -360,7 +360,7 @@ instance of AbstractEventListener for logging support
|
|
|
360
360
|
|
|
361
361
|
--
|
|
362
362
|
|
|
363
|
-
##### [driver](https://github.com/appium/ruby_lib/blob/
|
|
363
|
+
##### [driver](https://github.com/appium/ruby_lib/blob/35b1e25c46d9518101bec2410f6dcbc6b2c09ad6/lib/appium_lib/driver.rb#L309)
|
|
364
364
|
|
|
365
365
|
> def driver
|
|
366
366
|
|
|
@@ -372,7 +372,7 @@ __Returns:__
|
|
|
372
372
|
|
|
373
373
|
--
|
|
374
374
|
|
|
375
|
-
##### [http_client](https://github.com/appium/ruby_lib/blob/
|
|
375
|
+
##### [http_client](https://github.com/appium/ruby_lib/blob/35b1e25c46d9518101bec2410f6dcbc6b2c09ad6/lib/appium_lib/driver.rb#L312)
|
|
376
376
|
|
|
377
377
|
> def http_client
|
|
378
378
|
|
|
@@ -384,7 +384,7 @@ __Returns:__
|
|
|
384
384
|
|
|
385
385
|
--
|
|
386
386
|
|
|
387
|
-
##### [appium_wait_timeout](https://github.com/appium/ruby_lib/blob/
|
|
387
|
+
##### [appium_wait_timeout](https://github.com/appium/ruby_lib/blob/35b1e25c46d9518101bec2410f6dcbc6b2c09ad6/lib/appium_lib/driver.rb#L317)
|
|
388
388
|
|
|
389
389
|
> def appium_wait_timeout
|
|
390
390
|
|
|
@@ -398,7 +398,7 @@ __Returns:__
|
|
|
398
398
|
|
|
399
399
|
--
|
|
400
400
|
|
|
401
|
-
##### [appium_wait_interval](https://github.com/appium/ruby_lib/blob/
|
|
401
|
+
##### [appium_wait_interval](https://github.com/appium/ruby_lib/blob/35b1e25c46d9518101bec2410f6dcbc6b2c09ad6/lib/appium_lib/driver.rb#L322)
|
|
402
402
|
|
|
403
403
|
> def appium_wait_interval
|
|
404
404
|
|
|
@@ -412,7 +412,7 @@ __Returns:__
|
|
|
412
412
|
|
|
413
413
|
--
|
|
414
414
|
|
|
415
|
-
##### [initialize](https://github.com/appium/ruby_lib/blob/
|
|
415
|
+
##### [initialize](https://github.com/appium/ruby_lib/blob/35b1e25c46d9518101bec2410f6dcbc6b2c09ad6/lib/appium_lib/driver.rb#L362)
|
|
416
416
|
|
|
417
417
|
> def initialize(opts = {})
|
|
418
418
|
|
|
@@ -428,7 +428,7 @@ __Returns:__
|
|
|
428
428
|
|
|
429
429
|
--
|
|
430
430
|
|
|
431
|
-
##### [driver_attributes](https://github.com/appium/ruby_lib/blob/
|
|
431
|
+
##### [driver_attributes](https://github.com/appium/ruby_lib/blob/35b1e25c46d9518101bec2410f6dcbc6b2c09ad6/lib/appium_lib/driver.rb#L440)
|
|
432
432
|
|
|
433
433
|
> def driver_attributes
|
|
434
434
|
|
|
@@ -436,7 +436,7 @@ Returns a hash of the driver attributes
|
|
|
436
436
|
|
|
437
437
|
--
|
|
438
438
|
|
|
439
|
-
##### [device_is_android?](https://github.com/appium/ruby_lib/blob/
|
|
439
|
+
##### [device_is_android?](https://github.com/appium/ruby_lib/blob/35b1e25c46d9518101bec2410f6dcbc6b2c09ad6/lib/appium_lib/driver.rb#L465)
|
|
440
440
|
|
|
441
441
|
> def device_is_android?
|
|
442
442
|
|
|
@@ -448,7 +448,7 @@ __Returns:__
|
|
|
448
448
|
|
|
449
449
|
--
|
|
450
450
|
|
|
451
|
-
##### [automation_name_is_xcuitest?](https://github.com/appium/ruby_lib/blob/
|
|
451
|
+
##### [automation_name_is_xcuitest?](https://github.com/appium/ruby_lib/blob/35b1e25c46d9518101bec2410f6dcbc6b2c09ad6/lib/appium_lib/driver.rb#L471)
|
|
452
452
|
|
|
453
453
|
> def automation_name_is_xcuitest?
|
|
454
454
|
|
|
@@ -460,7 +460,7 @@ __Returns:__
|
|
|
460
460
|
|
|
461
461
|
--
|
|
462
462
|
|
|
463
|
-
##### [check_server_version_xcuitest](https://github.com/appium/ruby_lib/blob/
|
|
463
|
+
##### [check_server_version_xcuitest](https://github.com/appium/ruby_lib/blob/35b1e25c46d9518101bec2410f6dcbc6b2c09ad6/lib/appium_lib/driver.rb#L478)
|
|
464
464
|
|
|
465
465
|
> def check_server_version_xcuitest
|
|
466
466
|
|
|
@@ -473,7 +473,7 @@ __Returns:__
|
|
|
473
473
|
|
|
474
474
|
--
|
|
475
475
|
|
|
476
|
-
##### [appium_server_version](https://github.com/appium/ruby_lib/blob/
|
|
476
|
+
##### [appium_server_version](https://github.com/appium/ruby_lib/blob/35b1e25c46d9518101bec2410f6dcbc6b2c09ad6/lib/appium_lib/driver.rb#L497)
|
|
477
477
|
|
|
478
478
|
> def appium_server_version
|
|
479
479
|
|
|
@@ -494,7 +494,7 @@ __Returns:__
|
|
|
494
494
|
|
|
495
495
|
--
|
|
496
496
|
|
|
497
|
-
##### [appium_client_version](https://github.com/appium/ruby_lib/blob/
|
|
497
|
+
##### [appium_client_version](https://github.com/appium/ruby_lib/blob/35b1e25c46d9518101bec2410f6dcbc6b2c09ad6/lib/appium_lib/driver.rb#L510)
|
|
498
498
|
|
|
499
499
|
> def appium_client_version
|
|
500
500
|
|
|
@@ -512,7 +512,7 @@ __Returns:__
|
|
|
512
512
|
|
|
513
513
|
--
|
|
514
514
|
|
|
515
|
-
##### [absolute_app_path](https://github.com/appium/ruby_lib/blob/
|
|
515
|
+
##### [absolute_app_path](https://github.com/appium/ruby_lib/blob/35b1e25c46d9518101bec2410f6dcbc6b2c09ad6/lib/appium_lib/driver.rb#L522)
|
|
516
516
|
|
|
517
517
|
> def self.absolute_app_path(opts)
|
|
518
518
|
|
|
@@ -529,7 +529,7 @@ __Returns:__
|
|
|
529
529
|
|
|
530
530
|
--
|
|
531
531
|
|
|
532
|
-
##### [server_url](https://github.com/appium/ruby_lib/blob/
|
|
532
|
+
##### [server_url](https://github.com/appium/ruby_lib/blob/35b1e25c46d9518101bec2410f6dcbc6b2c09ad6/lib/appium_lib/driver.rb#L555)
|
|
533
533
|
|
|
534
534
|
> def server_url
|
|
535
535
|
|
|
@@ -541,7 +541,7 @@ __Returns:__
|
|
|
541
541
|
|
|
542
542
|
--
|
|
543
543
|
|
|
544
|
-
##### [restart](https://github.com/appium/ruby_lib/blob/
|
|
544
|
+
##### [restart](https://github.com/appium/ruby_lib/blob/35b1e25c46d9518101bec2410f6dcbc6b2c09ad6/lib/appium_lib/driver.rb#L566)
|
|
545
545
|
|
|
546
546
|
> def restart
|
|
547
547
|
|
|
@@ -553,7 +553,7 @@ __Returns:__
|
|
|
553
553
|
|
|
554
554
|
--
|
|
555
555
|
|
|
556
|
-
##### [screenshot](https://github.com/appium/ruby_lib/blob/
|
|
556
|
+
##### [screenshot](https://github.com/appium/ruby_lib/blob/35b1e25c46d9518101bec2410f6dcbc6b2c09ad6/lib/appium_lib/driver.rb#L577)
|
|
557
557
|
|
|
558
558
|
> def screenshot(png_save_path)
|
|
559
559
|
|
|
@@ -571,7 +571,7 @@ __Returns:__
|
|
|
571
571
|
|
|
572
572
|
--
|
|
573
573
|
|
|
574
|
-
##### [driver_quit](https://github.com/appium/ruby_lib/blob/
|
|
574
|
+
##### [driver_quit](https://github.com/appium/ruby_lib/blob/35b1e25c46d9518101bec2410f6dcbc6b2c09ad6/lib/appium_lib/driver.rb#L584)
|
|
575
575
|
|
|
576
576
|
> def driver_quit
|
|
577
577
|
|
|
@@ -583,7 +583,7 @@ __Returns:__
|
|
|
583
583
|
|
|
584
584
|
--
|
|
585
585
|
|
|
586
|
-
##### [start_driver](https://github.com/appium/ruby_lib/blob/
|
|
586
|
+
##### [start_driver](https://github.com/appium/ruby_lib/blob/35b1e25c46d9518101bec2410f6dcbc6b2c09ad6/lib/appium_lib/driver.rb#L594)
|
|
587
587
|
|
|
588
588
|
> def start_driver
|
|
589
589
|
|
|
@@ -595,7 +595,7 @@ __Returns:__
|
|
|
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/35b1e25c46d9518101bec2410f6dcbc6b2c09ad6/lib/appium_lib/driver.rb#L632)
|
|
599
599
|
|
|
600
600
|
> def no_wait
|
|
601
601
|
|
|
@@ -603,17 +603,17 @@ 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/35b1e25c46d9518101bec2410f6dcbc6b2c09ad6/lib/appium_lib/driver.rb#L646)
|
|
607
607
|
|
|
608
608
|
> def set_wait(timeout = nil)
|
|
609
609
|
|
|
610
610
|
Set implicit wait. Default to @default_wait.
|
|
611
611
|
|
|
612
|
-
```ruby
|
|
612
|
+
```ruby
|
|
613
613
|
set_wait 2
|
|
614
614
|
set_wait # @default_wait
|
|
615
615
|
|
|
616
|
-
|
|
616
|
+
```
|
|
617
617
|
|
|
618
618
|
__Parameters:__
|
|
619
619
|
|
|
@@ -625,7 +625,7 @@ __Returns:__
|
|
|
625
625
|
|
|
626
626
|
--
|
|
627
627
|
|
|
628
|
-
##### [exists](https://github.com/appium/ruby_lib/blob/
|
|
628
|
+
##### [exists](https://github.com/appium/ruby_lib/blob/35b1e25c46d9518101bec2410f6dcbc6b2c09ad6/lib/appium_lib/driver.rb#L663)
|
|
629
629
|
|
|
630
630
|
> def exists(pre_check = 0, post_check = @default_wait)
|
|
631
631
|
|
|
@@ -649,7 +649,7 @@ __Returns:__
|
|
|
649
649
|
|
|
650
650
|
--
|
|
651
651
|
|
|
652
|
-
##### [execute_script](https://github.com/appium/ruby_lib/blob/
|
|
652
|
+
##### [execute_script](https://github.com/appium/ruby_lib/blob/35b1e25c46d9518101bec2410f6dcbc6b2c09ad6/lib/appium_lib/driver.rb#L687)
|
|
653
653
|
|
|
654
654
|
> def execute_script(script, *args)
|
|
655
655
|
|
|
@@ -667,11 +667,21 @@ __Returns:__
|
|
|
667
667
|
|
|
668
668
|
--
|
|
669
669
|
|
|
670
|
-
##### [find_elements](https://github.com/appium/ruby_lib/blob/
|
|
670
|
+
##### [find_elements](https://github.com/appium/ruby_lib/blob/35b1e25c46d9518101bec2410f6dcbc6b2c09ad6/lib/appium_lib/driver.rb#L709)
|
|
671
671
|
|
|
672
672
|
> def find_elements(*args)
|
|
673
673
|
|
|
674
|
-
Calls @driver.
|
|
674
|
+
Calls @driver.find_elements_with_appium
|
|
675
|
+
|
|
676
|
+
```
|
|
677
|
+
```
|
|
678
|
+
|
|
679
|
+
If you call `Appium.promote_appium_methods`, you can call `find_elements` directly.
|
|
680
|
+
|
|
681
|
+
```
|
|
682
|
+
```
|
|
683
|
+
|
|
684
|
+
If you call `Appium.promote_appium_methods`, you can call `find_elements` directly.
|
|
675
685
|
|
|
676
686
|
__Parameters:__
|
|
677
687
|
|
|
@@ -683,11 +693,16 @@ __Returns:__
|
|
|
683
693
|
|
|
684
694
|
--
|
|
685
695
|
|
|
686
|
-
##### [find_element](https://github.com/appium/ruby_lib/blob/
|
|
696
|
+
##### [find_element](https://github.com/appium/ruby_lib/blob/35b1e25c46d9518101bec2410f6dcbc6b2c09ad6/lib/appium_lib/driver.rb#L724)
|
|
687
697
|
|
|
688
698
|
> def find_element(*args)
|
|
689
699
|
|
|
690
|
-
Calls @driver.
|
|
700
|
+
Calls @driver.find_element
|
|
701
|
+
|
|
702
|
+
```
|
|
703
|
+
```
|
|
704
|
+
|
|
705
|
+
If you call `Appium.promote_appium_methods`, you can call `find_element` directly.
|
|
691
706
|
|
|
692
707
|
__Parameters:__
|
|
693
708
|
|
|
@@ -699,7 +714,7 @@ __Returns:__
|
|
|
699
714
|
|
|
700
715
|
--
|
|
701
716
|
|
|
702
|
-
##### [set_location](https://github.com/appium/ruby_lib/blob/
|
|
717
|
+
##### [set_location](https://github.com/appium/ruby_lib/blob/35b1e25c46d9518101bec2410f6dcbc6b2c09ad6/lib/appium_lib/driver.rb#L737)
|
|
703
718
|
|
|
704
719
|
> def set_location(opts = {})
|
|
705
720
|
|
|
@@ -715,7 +730,7 @@ __Returns:__
|
|
|
715
730
|
|
|
716
731
|
--
|
|
717
732
|
|
|
718
|
-
##### [x](https://github.com/appium/ruby_lib/blob/
|
|
733
|
+
##### [x](https://github.com/appium/ruby_lib/blob/35b1e25c46d9518101bec2410f6dcbc6b2c09ad6/lib/appium_lib/driver.rb#L747)
|
|
719
734
|
|
|
720
735
|
> def x
|
|
721
736
|
|
|
@@ -728,7 +743,7 @@ __Returns:__
|
|
|
728
743
|
|
|
729
744
|
--
|
|
730
745
|
|
|
731
|
-
##### [set_automation_name_if_nil](https://github.com/appium/ruby_lib/blob/
|
|
746
|
+
##### [set_automation_name_if_nil](https://github.com/appium/ruby_lib/blob/35b1e25c46d9518101bec2410f6dcbc6b2c09ad6/lib/appium_lib/driver.rb#L756)
|
|
732
747
|
|
|
733
748
|
> def set_automation_name_if_nil
|
|
734
749
|
|
|
@@ -737,7 +752,7 @@ Since @automation_name is set only client side before start_driver is called.
|
|
|
737
752
|
|
|
738
753
|
--
|
|
739
754
|
|
|
740
|
-
##### [logger=](https://github.com/appium/ruby_lib/blob/
|
|
755
|
+
##### [logger=](https://github.com/appium/ruby_lib/blob/35b1e25c46d9518101bec2410f6dcbc6b2c09ad6/lib/appium_lib/logger.rb#L13)
|
|
741
756
|
|
|
742
757
|
> def logger=(value)
|
|
743
758
|
|
|
@@ -749,7 +764,7 @@ __Parameters:__
|
|
|
749
764
|
|
|
750
765
|
--
|
|
751
766
|
|
|
752
|
-
##### [logger](https://github.com/appium/ruby_lib/blob/
|
|
767
|
+
##### [logger](https://github.com/appium/ruby_lib/blob/35b1e25c46d9518101bec2410f6dcbc6b2c09ad6/lib/appium_lib/logger.rb#L17)
|
|
753
768
|
|
|
754
769
|
> def logger
|
|
755
770
|
|
|
@@ -757,7 +772,7 @@ __Parameters:__
|
|
|
757
772
|
|
|
758
773
|
--
|
|
759
774
|
|
|
760
|
-
##### [app_strings](https://github.com/appium/ruby_lib/blob/
|
|
775
|
+
##### [app_strings](https://github.com/appium/ruby_lib/blob/35b1e25c46d9518101bec2410f6dcbc6b2c09ad6/lib/appium_lib/device/device.rb#L7)
|
|
761
776
|
|
|
762
777
|
> def app_strings
|
|
763
778
|
|
|
@@ -768,7 +783,7 @@ app_strings #=> "TransitionsTitle"=>"Transitions", "WebTitle"=>"Web"
|
|
|
768
783
|
|
|
769
784
|
--
|
|
770
785
|
|
|
771
|
-
##### [background_app](https://github.com/appium/ruby_lib/blob/
|
|
786
|
+
##### [background_app](https://github.com/appium/ruby_lib/blob/35b1e25c46d9518101bec2410f6dcbc6b2c09ad6/lib/appium_lib/device/device.rb#L13)
|
|
772
787
|
|
|
773
788
|
> def background_app
|
|
774
789
|
|
|
@@ -777,7 +792,7 @@ This is a blocking application
|
|
|
777
792
|
|
|
778
793
|
--
|
|
779
794
|
|
|
780
|
-
##### [current_activity](https://github.com/appium/ruby_lib/blob/
|
|
795
|
+
##### [current_activity](https://github.com/appium/ruby_lib/blob/35b1e25c46d9518101bec2410f6dcbc6b2c09ad6/lib/appium_lib/device/device.rb#L24)
|
|
781
796
|
|
|
782
797
|
> def current_activity
|
|
783
798
|
|
|
@@ -785,7 +800,7 @@ This is a blocking application
|
|
|
785
800
|
|
|
786
801
|
--
|
|
787
802
|
|
|
788
|
-
##### [get_system_bars](https://github.com/appium/ruby_lib/blob/
|
|
803
|
+
##### [get_system_bars](https://github.com/appium/ruby_lib/blob/35b1e25c46d9518101bec2410f6dcbc6b2c09ad6/lib/appium_lib/device/device.rb#L26)
|
|
789
804
|
|
|
790
805
|
> def get_system_bars
|
|
791
806
|
|
|
@@ -800,7 +815,7 @@ __Returns:__
|
|
|
800
815
|
|
|
801
816
|
--
|
|
802
817
|
|
|
803
|
-
##### [get_display_density](https://github.com/appium/ruby_lib/blob/
|
|
818
|
+
##### [get_display_density](https://github.com/appium/ruby_lib/blob/35b1e25c46d9518101bec2410f6dcbc6b2c09ad6/lib/appium_lib/device/device.rb#L34)
|
|
804
819
|
|
|
805
820
|
> def get_display_density
|
|
806
821
|
|
|
@@ -815,7 +830,7 @@ __Returns:__
|
|
|
815
830
|
|
|
816
831
|
--
|
|
817
832
|
|
|
818
|
-
##### [is_keyboard_shown](https://github.com/appium/ruby_lib/blob/
|
|
833
|
+
##### [is_keyboard_shown](https://github.com/appium/ruby_lib/blob/35b1e25c46d9518101bec2410f6dcbc6b2c09ad6/lib/appium_lib/device/device.rb#L42)
|
|
819
834
|
|
|
820
835
|
> def is_keyboard_shown
|
|
821
836
|
|
|
@@ -830,7 +845,7 @@ __Returns:__
|
|
|
830
845
|
|
|
831
846
|
--
|
|
832
847
|
|
|
833
|
-
##### [launch_app](https://github.com/appium/ruby_lib/blob/
|
|
848
|
+
##### [launch_app](https://github.com/appium/ruby_lib/blob/35b1e25c46d9518101bec2410f6dcbc6b2c09ad6/lib/appium_lib/device/device.rb#L50)
|
|
834
849
|
|
|
835
850
|
> def launch_app
|
|
836
851
|
|
|
@@ -838,7 +853,7 @@ Start the simulator and application configured with desired capabilities
|
|
|
838
853
|
|
|
839
854
|
--
|
|
840
855
|
|
|
841
|
-
##### [reset](https://github.com/appium/ruby_lib/blob/
|
|
856
|
+
##### [reset](https://github.com/appium/ruby_lib/blob/35b1e25c46d9518101bec2410f6dcbc6b2c09ad6/lib/appium_lib/device/device.rb#L53)
|
|
842
857
|
|
|
843
858
|
> def reset
|
|
844
859
|
|
|
@@ -846,7 +861,7 @@ Reset the device, relaunching the application.
|
|
|
846
861
|
|
|
847
862
|
--
|
|
848
863
|
|
|
849
|
-
##### [shake](https://github.com/appium/ruby_lib/blob/
|
|
864
|
+
##### [shake](https://github.com/appium/ruby_lib/blob/35b1e25c46d9518101bec2410f6dcbc6b2c09ad6/lib/appium_lib/device/device.rb#L56)
|
|
850
865
|
|
|
851
866
|
> def shake
|
|
852
867
|
|
|
@@ -854,7 +869,7 @@ Cause the device to shake
|
|
|
854
869
|
|
|
855
870
|
--
|
|
856
871
|
|
|
857
|
-
##### [toggle_flight_mode](https://github.com/appium/ruby_lib/blob/
|
|
872
|
+
##### [toggle_flight_mode](https://github.com/appium/ruby_lib/blob/35b1e25c46d9518101bec2410f6dcbc6b2c09ad6/lib/appium_lib/device/device.rb#L59)
|
|
858
873
|
|
|
859
874
|
> def toggle_flight_mode
|
|
860
875
|
|
|
@@ -862,7 +877,7 @@ Toggle flight mode on or off
|
|
|
862
877
|
|
|
863
878
|
--
|
|
864
879
|
|
|
865
|
-
##### [device_locked?](https://github.com/appium/ruby_lib/blob/
|
|
880
|
+
##### [device_locked?](https://github.com/appium/ruby_lib/blob/35b1e25c46d9518101bec2410f6dcbc6b2c09ad6/lib/appium_lib/device/device.rb#L62)
|
|
866
881
|
|
|
867
882
|
> def device_locked?
|
|
868
883
|
|
|
@@ -870,7 +885,7 @@ Toggle flight mode on or off
|
|
|
870
885
|
|
|
871
886
|
--
|
|
872
887
|
|
|
873
|
-
##### [hide_keyboard](https://github.com/appium/ruby_lib/blob/
|
|
888
|
+
##### [hide_keyboard](https://github.com/appium/ruby_lib/blob/35b1e25c46d9518101bec2410f6dcbc6b2c09ad6/lib/appium_lib/device/device.rb#L64)
|
|
874
889
|
|
|
875
890
|
> def hide_keyboard
|
|
876
891
|
|
|
@@ -883,7 +898,7 @@ Defaults to 'Done'.
|
|
|
883
898
|
|
|
884
899
|
--
|
|
885
900
|
|
|
886
|
-
##### [press_keycode](https://github.com/appium/ruby_lib/blob/
|
|
901
|
+
##### [press_keycode](https://github.com/appium/ruby_lib/blob/35b1e25c46d9518101bec2410f6dcbc6b2c09ad6/lib/appium_lib/device/device.rb#L73)
|
|
887
902
|
|
|
888
903
|
> def press_keycode
|
|
889
904
|
|
|
@@ -898,7 +913,7 @@ __Parameters:__
|
|
|
898
913
|
|
|
899
914
|
--
|
|
900
915
|
|
|
901
|
-
##### [long_press_keycode](https://github.com/appium/ruby_lib/blob/
|
|
916
|
+
##### [long_press_keycode](https://github.com/appium/ruby_lib/blob/35b1e25c46d9518101bec2410f6dcbc6b2c09ad6/lib/appium_lib/device/device.rb#L79)
|
|
902
917
|
|
|
903
918
|
> def long_press_keycode
|
|
904
919
|
|
|
@@ -913,7 +928,7 @@ __Parameters:__
|
|
|
913
928
|
|
|
914
929
|
--
|
|
915
930
|
|
|
916
|
-
##### [push_file](https://github.com/appium/ruby_lib/blob/
|
|
931
|
+
##### [push_file](https://github.com/appium/ruby_lib/blob/35b1e25c46d9518101bec2410f6dcbc6b2c09ad6/lib/appium_lib/device/device.rb#L85)
|
|
917
932
|
|
|
918
933
|
> def push_file
|
|
919
934
|
|
|
@@ -927,7 +942,7 @@ __Parameters:__
|
|
|
927
942
|
|
|
928
943
|
--
|
|
929
944
|
|
|
930
|
-
##### [pull_file](https://github.com/appium/ruby_lib/blob/
|
|
945
|
+
##### [pull_file](https://github.com/appium/ruby_lib/blob/35b1e25c46d9518101bec2410f6dcbc6b2c09ad6/lib/appium_lib/device/device.rb#L90)
|
|
931
946
|
|
|
932
947
|
> def pull_file
|
|
933
948
|
|
|
@@ -944,7 +959,7 @@ __Parameters:__
|
|
|
944
959
|
|
|
945
960
|
--
|
|
946
961
|
|
|
947
|
-
##### [pull_folder](https://github.com/appium/ruby_lib/blob/
|
|
962
|
+
##### [pull_folder](https://github.com/appium/ruby_lib/blob/35b1e25c46d9518101bec2410f6dcbc6b2c09ad6/lib/appium_lib/device/device.rb#L100)
|
|
948
963
|
|
|
949
964
|
> def pull_folder
|
|
950
965
|
|
|
@@ -959,7 +974,7 @@ __Parameters:__
|
|
|
959
974
|
|
|
960
975
|
--
|
|
961
976
|
|
|
962
|
-
##### [touch_id](https://github.com/appium/ruby_lib/blob/
|
|
977
|
+
##### [touch_id](https://github.com/appium/ruby_lib/blob/35b1e25c46d9518101bec2410f6dcbc6b2c09ad6/lib/appium_lib/device/device.rb#L108)
|
|
963
978
|
|
|
964
979
|
> def touch_id
|
|
965
980
|
|
|
@@ -976,7 +991,7 @@ Defaults to true.
|
|
|
976
991
|
|
|
977
992
|
--
|
|
978
993
|
|
|
979
|
-
##### [toggle_touch_id_enrollment](https://github.com/appium/ruby_lib/blob/
|
|
994
|
+
##### [toggle_touch_id_enrollment](https://github.com/appium/ruby_lib/blob/35b1e25c46d9518101bec2410f6dcbc6b2c09ad6/lib/appium_lib/device/device.rb#L117)
|
|
980
995
|
|
|
981
996
|
> def toggle_touch_id_enrollment
|
|
982
997
|
|
|
@@ -984,7 +999,7 @@ iOS Simulator only: Toggle touch id enrollment on an iOS Simulator.
|
|
|
984
999
|
|
|
985
1000
|
--
|
|
986
1001
|
|
|
987
|
-
##### [end_coverage](https://github.com/appium/ruby_lib/blob/
|
|
1002
|
+
##### [end_coverage](https://github.com/appium/ruby_lib/blob/35b1e25c46d9518101bec2410f6dcbc6b2c09ad6/lib/appium_lib/device/device.rb#L120)
|
|
988
1003
|
|
|
989
1004
|
> def end_coverage
|
|
990
1005
|
|
|
@@ -998,7 +1013,7 @@ __Parameters:__
|
|
|
998
1013
|
|
|
999
1014
|
--
|
|
1000
1015
|
|
|
1001
|
-
##### [get_settings](https://github.com/appium/ruby_lib/blob/
|
|
1016
|
+
##### [get_settings](https://github.com/appium/ruby_lib/blob/35b1e25c46d9518101bec2410f6dcbc6b2c09ad6/lib/appium_lib/device/device.rb#L125)
|
|
1002
1017
|
|
|
1003
1018
|
> def get_settings
|
|
1004
1019
|
|
|
@@ -1006,7 +1021,7 @@ Get appium Settings for current test session
|
|
|
1006
1021
|
|
|
1007
1022
|
--
|
|
1008
1023
|
|
|
1009
|
-
##### [update_settings](https://github.com/appium/ruby_lib/blob/
|
|
1024
|
+
##### [update_settings](https://github.com/appium/ruby_lib/blob/35b1e25c46d9518101bec2410f6dcbc6b2c09ad6/lib/appium_lib/device/device.rb#L128)
|
|
1010
1025
|
|
|
1011
1026
|
> def update_settings
|
|
1012
1027
|
|
|
@@ -1018,7 +1033,7 @@ __Parameters:__
|
|
|
1018
1033
|
|
|
1019
1034
|
--
|
|
1020
1035
|
|
|
1021
|
-
##### [start_activity](https://github.com/appium/ruby_lib/blob/
|
|
1036
|
+
##### [start_activity](https://github.com/appium/ruby_lib/blob/35b1e25c46d9518101bec2410f6dcbc6b2c09ad6/lib/appium_lib/device/device.rb#L132)
|
|
1022
1037
|
|
|
1023
1038
|
> def start_activity
|
|
1024
1039
|
|
|
@@ -1032,7 +1047,7 @@ start_activity app_package: 'io.appium.android.apis',
|
|
|
1032
1047
|
|
|
1033
1048
|
--
|
|
1034
1049
|
|
|
1035
|
-
##### [get_network_connection](https://github.com/appium/ruby_lib/blob/
|
|
1050
|
+
##### [get_network_connection](https://github.com/appium/ruby_lib/blob/35b1e25c46d9518101bec2410f6dcbc6b2c09ad6/lib/appium_lib/device/device.rb#L146)
|
|
1036
1051
|
|
|
1037
1052
|
> def get_network_connection
|
|
1038
1053
|
|
|
@@ -1041,7 +1056,7 @@ See set_network_connection method for return value
|
|
|
1041
1056
|
|
|
1042
1057
|
--
|
|
1043
1058
|
|
|
1044
|
-
##### [set_network_connection](https://github.com/appium/ruby_lib/blob/
|
|
1059
|
+
##### [set_network_connection](https://github.com/appium/ruby_lib/blob/35b1e25c46d9518101bec2410f6dcbc6b2c09ad6/lib/appium_lib/device/device.rb#L150)
|
|
1045
1060
|
|
|
1046
1061
|
> def set_network_connection
|
|
1047
1062
|
|
|
@@ -1060,7 +1075,7 @@ __Parameters:__
|
|
|
1060
1075
|
|
|
1061
1076
|
--
|
|
1062
1077
|
|
|
1063
|
-
##### [set_immediate_value](https://github.com/appium/ruby_lib/blob/
|
|
1078
|
+
##### [set_immediate_value](https://github.com/appium/ruby_lib/blob/35b1e25c46d9518101bec2410f6dcbc6b2c09ad6/lib/appium_lib/device/device.rb#L163)
|
|
1064
1079
|
|
|
1065
1080
|
> def set_immediate_value
|
|
1066
1081
|
|
|
@@ -1074,7 +1089,7 @@ set_immediate_value element, 'hello'
|
|
|
1074
1089
|
|
|
1075
1090
|
--
|
|
1076
1091
|
|
|
1077
|
-
##### [get_performance_data_types](https://github.com/appium/ruby_lib/blob/
|
|
1092
|
+
##### [get_performance_data_types](https://github.com/appium/ruby_lib/blob/35b1e25c46d9518101bec2410f6dcbc6b2c09ad6/lib/appium_lib/device/device.rb#L172)
|
|
1078
1093
|
|
|
1079
1094
|
> def get_performance_data_types
|
|
1080
1095
|
|
|
@@ -1088,7 +1103,7 @@ get_performance_data_types #=> ["cpuinfo", "batteryinfo", "networkinfo", "memory
|
|
|
1088
1103
|
|
|
1089
1104
|
--
|
|
1090
1105
|
|
|
1091
|
-
##### [extend_search_contexts](https://github.com/appium/ruby_lib/blob/
|
|
1106
|
+
##### [extend_search_contexts](https://github.com/appium/ruby_lib/blob/35b1e25c46d9518101bec2410f6dcbc6b2c09ad6/lib/appium_lib/device/device.rb#L434)
|
|
1092
1107
|
|
|
1093
1108
|
> def extend_search_contexts
|
|
1094
1109
|
|
|
@@ -1096,19 +1111,19 @@ get_performance_data_types #=> ["cpuinfo", "batteryinfo", "networkinfo", "memory
|
|
|
1096
1111
|
|
|
1097
1112
|
--
|
|
1098
1113
|
|
|
1099
|
-
##### [
|
|
1114
|
+
##### [find_element_with_appium](https://github.com/appium/ruby_lib/blob/35b1e25c46d9518101bec2410f6dcbc6b2c09ad6/lib/appium_lib/device/device.rb#L434)
|
|
1100
1115
|
|
|
1101
|
-
> def
|
|
1116
|
+
> def find_element_with_appium
|
|
1102
1117
|
|
|
1103
1118
|
|
|
1104
1119
|
|
|
1105
1120
|
--
|
|
1106
1121
|
|
|
1107
|
-
##### [
|
|
1122
|
+
##### [find_elements_with_appium](https://github.com/appium/ruby_lib/blob/35b1e25c46d9518101bec2410f6dcbc6b2c09ad6/lib/appium_lib/device/device.rb#L434)
|
|
1108
1123
|
|
|
1109
|
-
> def
|
|
1124
|
+
> def find_elements_with_appium
|
|
1110
1125
|
|
|
1111
|
-
find_element/
|
|
1126
|
+
find_element/s_with_appium with their accessibility_id
|
|
1112
1127
|
|
|
1113
1128
|
```ruby
|
|
1114
1129
|
find_elements :accessibility_id, 'Animation'
|
|
@@ -1116,7 +1131,7 @@ find_element/s with their accessibility_id
|
|
|
1116
1131
|
|
|
1117
1132
|
--
|
|
1118
1133
|
|
|
1119
|
-
##### [add_touch_actions](https://github.com/appium/ruby_lib/blob/
|
|
1134
|
+
##### [add_touch_actions](https://github.com/appium/ruby_lib/blob/35b1e25c46d9518101bec2410f6dcbc6b2c09ad6/lib/appium_lib/device/device.rb#L465)
|
|
1120
1135
|
|
|
1121
1136
|
> def add_touch_actions
|
|
1122
1137
|
|
|
@@ -1124,7 +1139,7 @@ find_element/s with their accessibility_id
|
|
|
1124
1139
|
|
|
1125
1140
|
--
|
|
1126
1141
|
|
|
1127
|
-
##### [add_ime_actions](https://github.com/appium/ruby_lib/blob/
|
|
1142
|
+
##### [add_ime_actions](https://github.com/appium/ruby_lib/blob/35b1e25c46d9518101bec2410f6dcbc6b2c09ad6/lib/appium_lib/device/device.rb#L488)
|
|
1128
1143
|
|
|
1129
1144
|
> def add_ime_actions
|
|
1130
1145
|
|
|
@@ -1132,7 +1147,7 @@ find_element/s with their accessibility_id
|
|
|
1132
1147
|
|
|
1133
1148
|
--
|
|
1134
1149
|
|
|
1135
|
-
##### [set_context](https://github.com/appium/ruby_lib/blob/
|
|
1150
|
+
##### [set_context](https://github.com/appium/ruby_lib/blob/35b1e25c46d9518101bec2410f6dcbc6b2c09ad6/lib/appium_lib/device/device.rb#L563)
|
|
1136
1151
|
|
|
1137
1152
|
> def set_context
|
|
1138
1153
|
|
|
@@ -1147,7 +1162,7 @@ __Parameters:__
|
|
|
1147
1162
|
|
|
1148
1163
|
--
|
|
1149
1164
|
|
|
1150
|
-
##### [current_context](https://github.com/appium/ruby_lib/blob/
|
|
1165
|
+
##### [current_context](https://github.com/appium/ruby_lib/blob/35b1e25c46d9518101bec2410f6dcbc6b2c09ad6/lib/appium_lib/device/device.rb#L571)
|
|
1151
1166
|
|
|
1152
1167
|
> def current_context
|
|
1153
1168
|
|
|
@@ -1159,7 +1174,7 @@ __Returns:__
|
|
|
1159
1174
|
|
|
1160
1175
|
--
|
|
1161
1176
|
|
|
1162
|
-
##### [available_contexts](https://github.com/appium/ruby_lib/blob/
|
|
1177
|
+
##### [available_contexts](https://github.com/appium/ruby_lib/blob/35b1e25c46d9518101bec2410f6dcbc6b2c09ad6/lib/appium_lib/device/device.rb#L574)
|
|
1163
1178
|
|
|
1164
1179
|
> def available_contexts
|
|
1165
1180
|
|
|
@@ -1171,7 +1186,7 @@ __Returns:__
|
|
|
1171
1186
|
|
|
1172
1187
|
--
|
|
1173
1188
|
|
|
1174
|
-
##### [within_context](https://github.com/appium/ruby_lib/blob/
|
|
1189
|
+
##### [within_context](https://github.com/appium/ruby_lib/blob/35b1e25c46d9518101bec2410f6dcbc6b2c09ad6/lib/appium_lib/device/device.rb#L584)
|
|
1175
1190
|
|
|
1176
1191
|
> def within_context(context)
|
|
1177
1192
|
|
|
@@ -1187,7 +1202,7 @@ __Parameters:__
|
|
|
1187
1202
|
|
|
1188
1203
|
--
|
|
1189
1204
|
|
|
1190
|
-
##### [switch_to_default_context](https://github.com/appium/ruby_lib/blob/
|
|
1205
|
+
##### [switch_to_default_context](https://github.com/appium/ruby_lib/blob/35b1e25c46d9518101bec2410f6dcbc6b2c09ad6/lib/appium_lib/device/device.rb#L592)
|
|
1191
1206
|
|
|
1192
1207
|
> def switch_to_default_context
|
|
1193
1208
|
|
|
@@ -1195,7 +1210,7 @@ Change to the default context. This is equivalent to `set_context nil`.
|
|
|
1195
1210
|
|
|
1196
1211
|
--
|
|
1197
1212
|
|
|
1198
|
-
##### [pinch](https://github.com/appium/ruby_lib/blob/
|
|
1213
|
+
##### [pinch](https://github.com/appium/ruby_lib/blob/35b1e25c46d9518101bec2410f6dcbc6b2c09ad6/lib/appium_lib/device/multi_touch.rb#L28)
|
|
1199
1214
|
|
|
1200
1215
|
> def pinch(percentage = 25, auto_perform = true)
|
|
1201
1216
|
|
|
@@ -1214,7 +1229,7 @@ __Parameters:__
|
|
|
1214
1229
|
|
|
1215
1230
|
--
|
|
1216
1231
|
|
|
1217
|
-
##### [zoom](https://github.com/appium/ruby_lib/blob/
|
|
1232
|
+
##### [zoom](https://github.com/appium/ruby_lib/blob/35b1e25c46d9518101bec2410f6dcbc6b2c09ad6/lib/appium_lib/device/multi_touch.rb#L57)
|
|
1218
1233
|
|
|
1219
1234
|
> def zoom(percentage = 200, auto_perform = true)
|
|
1220
1235
|
|
|
@@ -1233,7 +1248,7 @@ __Parameters:__
|
|
|
1233
1248
|
|
|
1234
1249
|
--
|
|
1235
1250
|
|
|
1236
|
-
##### [pinch_for_xcuitest](https://github.com/appium/ruby_lib/blob/
|
|
1251
|
+
##### [pinch_for_xcuitest](https://github.com/appium/ruby_lib/blob/35b1e25c46d9518101bec2410f6dcbc6b2c09ad6/lib/appium_lib/device/multi_touch.rb#L79)
|
|
1237
1252
|
|
|
1238
1253
|
> def pinch_for_xcuitest(rate)
|
|
1239
1254
|
|
|
@@ -1241,7 +1256,7 @@ __Parameters:__
|
|
|
1241
1256
|
|
|
1242
1257
|
--
|
|
1243
1258
|
|
|
1244
|
-
##### [pinch_android](https://github.com/appium/ruby_lib/blob/
|
|
1259
|
+
##### [pinch_android](https://github.com/appium/ruby_lib/blob/35b1e25c46d9518101bec2410f6dcbc6b2c09ad6/lib/appium_lib/device/multi_touch.rb#L94)
|
|
1245
1260
|
|
|
1246
1261
|
> def pinch_android(rate)
|
|
1247
1262
|
|
|
@@ -1249,7 +1264,7 @@ __Parameters:__
|
|
|
1249
1264
|
|
|
1250
1265
|
--
|
|
1251
1266
|
|
|
1252
|
-
##### [pinch_ios](https://github.com/appium/ruby_lib/blob/
|
|
1267
|
+
##### [pinch_ios](https://github.com/appium/ruby_lib/blob/35b1e25c46d9518101bec2410f6dcbc6b2c09ad6/lib/appium_lib/device/multi_touch.rb#L108)
|
|
1253
1268
|
|
|
1254
1269
|
> def pinch_ios(rate)
|
|
1255
1270
|
|
|
@@ -1257,7 +1272,7 @@ __Parameters:__
|
|
|
1257
1272
|
|
|
1258
1273
|
--
|
|
1259
1274
|
|
|
1260
|
-
##### [zoom_for_xcuitest](https://github.com/appium/ruby_lib/blob/
|
|
1275
|
+
##### [zoom_for_xcuitest](https://github.com/appium/ruby_lib/blob/35b1e25c46d9518101bec2410f6dcbc6b2c09ad6/lib/appium_lib/device/multi_touch.rb#L122)
|
|
1261
1276
|
|
|
1262
1277
|
> def zoom_for_xcuitest(rate)
|
|
1263
1278
|
|
|
@@ -1265,7 +1280,7 @@ __Parameters:__
|
|
|
1265
1280
|
|
|
1266
1281
|
--
|
|
1267
1282
|
|
|
1268
|
-
##### [zoom_android](https://github.com/appium/ruby_lib/blob/
|
|
1283
|
+
##### [zoom_android](https://github.com/appium/ruby_lib/blob/35b1e25c46d9518101bec2410f6dcbc6b2c09ad6/lib/appium_lib/device/multi_touch.rb#L137)
|
|
1269
1284
|
|
|
1270
1285
|
> def zoom_android(rate)
|
|
1271
1286
|
|
|
@@ -1273,7 +1288,7 @@ __Parameters:__
|
|
|
1273
1288
|
|
|
1274
1289
|
--
|
|
1275
1290
|
|
|
1276
|
-
##### [zoom_ios](https://github.com/appium/ruby_lib/blob/
|
|
1291
|
+
##### [zoom_ios](https://github.com/appium/ruby_lib/blob/35b1e25c46d9518101bec2410f6dcbc6b2c09ad6/lib/appium_lib/device/multi_touch.rb#L151)
|
|
1277
1292
|
|
|
1278
1293
|
> def zoom_ios(rate)
|
|
1279
1294
|
|
|
@@ -1281,7 +1296,7 @@ __Parameters:__
|
|
|
1281
1296
|
|
|
1282
1297
|
--
|
|
1283
1298
|
|
|
1284
|
-
##### [actions](https://github.com/appium/ruby_lib/blob/
|
|
1299
|
+
##### [actions](https://github.com/appium/ruby_lib/blob/35b1e25c46d9518101bec2410f6dcbc6b2c09ad6/lib/appium_lib/device/multi_touch.rb#L166)
|
|
1285
1300
|
|
|
1286
1301
|
> def actions
|
|
1287
1302
|
|
|
@@ -1289,7 +1304,7 @@ self
|
|
|
1289
1304
|
|
|
1290
1305
|
--
|
|
1291
1306
|
|
|
1292
|
-
##### [initialize](https://github.com/appium/ruby_lib/blob/
|
|
1307
|
+
##### [initialize](https://github.com/appium/ruby_lib/blob/35b1e25c46d9518101bec2410f6dcbc6b2c09ad6/lib/appium_lib/device/multi_touch.rb#L169)
|
|
1293
1308
|
|
|
1294
1309
|
> def initialize
|
|
1295
1310
|
|
|
@@ -1301,7 +1316,7 @@ __Returns:__
|
|
|
1301
1316
|
|
|
1302
1317
|
--
|
|
1303
1318
|
|
|
1304
|
-
##### [add](https://github.com/appium/ruby_lib/blob/
|
|
1319
|
+
##### [add](https://github.com/appium/ruby_lib/blob/35b1e25c46d9518101bec2410f6dcbc6b2c09ad6/lib/appium_lib/device/multi_touch.rb#L175)
|
|
1305
1320
|
|
|
1306
1321
|
> def add(chain)
|
|
1307
1322
|
|
|
@@ -1313,7 +1328,7 @@ __Parameters:__
|
|
|
1313
1328
|
|
|
1314
1329
|
--
|
|
1315
1330
|
|
|
1316
|
-
##### [perform](https://github.com/appium/ruby_lib/blob/
|
|
1331
|
+
##### [perform](https://github.com/appium/ruby_lib/blob/35b1e25c46d9518101bec2410f6dcbc6b2c09ad6/lib/appium_lib/device/multi_touch.rb#L180)
|
|
1317
1332
|
|
|
1318
1333
|
> def perform
|
|
1319
1334
|
|
|
@@ -1321,7 +1336,7 @@ Ask Appium to perform the actions
|
|
|
1321
1336
|
|
|
1322
1337
|
--
|
|
1323
1338
|
|
|
1324
|
-
##### [ACTIONS](https://github.com/appium/ruby_lib/blob/
|
|
1339
|
+
##### [ACTIONS](https://github.com/appium/ruby_lib/blob/35b1e25c46d9518101bec2410f6dcbc6b2c09ad6/lib/appium_lib/device/touch_actions.rb#L20)
|
|
1325
1340
|
|
|
1326
1341
|
> ACTIONS = [:move_to, :long_press, :double_tap, :two_finger_tap, :press, :release, :tap, :wait, :perform].freeze
|
|
1327
1342
|
|
|
@@ -1329,7 +1344,7 @@ Ask Appium to perform the actions
|
|
|
1329
1344
|
|
|
1330
1345
|
--
|
|
1331
1346
|
|
|
1332
|
-
##### [COMPLEX_ACTIONS](https://github.com/appium/ruby_lib/blob/
|
|
1347
|
+
##### [COMPLEX_ACTIONS](https://github.com/appium/ruby_lib/blob/35b1e25c46d9518101bec2410f6dcbc6b2c09ad6/lib/appium_lib/device/touch_actions.rb#L21)
|
|
1333
1348
|
|
|
1334
1349
|
> COMPLEX_ACTIONS = [:swipe].freeze
|
|
1335
1350
|
|
|
@@ -1337,7 +1352,7 @@ Ask Appium to perform the actions
|
|
|
1337
1352
|
|
|
1338
1353
|
--
|
|
1339
1354
|
|
|
1340
|
-
##### [actions](https://github.com/appium/ruby_lib/blob/
|
|
1355
|
+
##### [actions](https://github.com/appium/ruby_lib/blob/35b1e25c46d9518101bec2410f6dcbc6b2c09ad6/lib/appium_lib/device/touch_actions.rb#L35)
|
|
1341
1356
|
|
|
1342
1357
|
> def actions
|
|
1343
1358
|
|
|
@@ -1345,7 +1360,7 @@ Returns the value of attribute actions
|
|
|
1345
1360
|
|
|
1346
1361
|
--
|
|
1347
1362
|
|
|
1348
|
-
##### [initialize](https://github.com/appium/ruby_lib/blob/
|
|
1363
|
+
##### [initialize](https://github.com/appium/ruby_lib/blob/35b1e25c46d9518101bec2410f6dcbc6b2c09ad6/lib/appium_lib/device/touch_actions.rb#L37)
|
|
1349
1364
|
|
|
1350
1365
|
> def initialize
|
|
1351
1366
|
|
|
@@ -1357,7 +1372,7 @@ __Returns:__
|
|
|
1357
1372
|
|
|
1358
1373
|
--
|
|
1359
1374
|
|
|
1360
|
-
##### [move_to](https://github.com/appium/ruby_lib/blob/
|
|
1375
|
+
##### [move_to](https://github.com/appium/ruby_lib/blob/35b1e25c46d9518101bec2410f6dcbc6b2c09ad6/lib/appium_lib/device/touch_actions.rb#L48)
|
|
1361
1376
|
|
|
1362
1377
|
> def move_to(opts)
|
|
1363
1378
|
|
|
@@ -1371,7 +1386,7 @@ __Parameters:__
|
|
|
1371
1386
|
|
|
1372
1387
|
--
|
|
1373
1388
|
|
|
1374
|
-
##### [long_press](https://github.com/appium/ruby_lib/blob/
|
|
1389
|
+
##### [long_press](https://github.com/appium/ruby_lib/blob/35b1e25c46d9518101bec2410f6dcbc6b2c09ad6/lib/appium_lib/device/touch_actions.rb#L62)
|
|
1375
1390
|
|
|
1376
1391
|
> def long_press(opts)
|
|
1377
1392
|
|
|
@@ -1392,7 +1407,7 @@ __Parameters:__
|
|
|
1392
1407
|
|
|
1393
1408
|
--
|
|
1394
1409
|
|
|
1395
|
-
##### [press](https://github.com/appium/ruby_lib/blob/
|
|
1410
|
+
##### [press](https://github.com/appium/ruby_lib/blob/35b1e25c46d9518101bec2410f6dcbc6b2c09ad6/lib/appium_lib/device/touch_actions.rb#L74)
|
|
1396
1411
|
|
|
1397
1412
|
> def press(opts)
|
|
1398
1413
|
|
|
@@ -1405,7 +1420,7 @@ __Parameters:__
|
|
|
1405
1420
|
|
|
1406
1421
|
--
|
|
1407
1422
|
|
|
1408
|
-
##### [release](https://github.com/appium/ruby_lib/blob/
|
|
1423
|
+
##### [release](https://github.com/appium/ruby_lib/blob/35b1e25c46d9518101bec2410f6dcbc6b2c09ad6/lib/appium_lib/device/touch_actions.rb#L85)
|
|
1409
1424
|
|
|
1410
1425
|
> def release(opts = nil)
|
|
1411
1426
|
|
|
@@ -1417,7 +1432,7 @@ __Parameters:__
|
|
|
1417
1432
|
|
|
1418
1433
|
--
|
|
1419
1434
|
|
|
1420
|
-
##### [tap](https://github.com/appium/ruby_lib/blob/
|
|
1435
|
+
##### [tap](https://github.com/appium/ruby_lib/blob/35b1e25c46d9518101bec2410f6dcbc6b2c09ad6/lib/appium_lib/device/touch_actions.rb#L97)
|
|
1421
1436
|
|
|
1422
1437
|
> def tap(opts)
|
|
1423
1438
|
|
|
@@ -1430,7 +1445,7 @@ __Parameters:__
|
|
|
1430
1445
|
|
|
1431
1446
|
--
|
|
1432
1447
|
|
|
1433
|
-
##### [double_tap](https://github.com/appium/ruby_lib/blob/
|
|
1448
|
+
##### [double_tap](https://github.com/appium/ruby_lib/blob/35b1e25c46d9518101bec2410f6dcbc6b2c09ad6/lib/appium_lib/device/touch_actions.rb#L110)
|
|
1434
1449
|
|
|
1435
1450
|
> def double_tap(opts)
|
|
1436
1451
|
|
|
@@ -1442,7 +1457,7 @@ __Parameters:__
|
|
|
1442
1457
|
|
|
1443
1458
|
--
|
|
1444
1459
|
|
|
1445
|
-
##### [two_finger_tap](https://github.com/appium/ruby_lib/blob/
|
|
1460
|
+
##### [two_finger_tap](https://github.com/appium/ruby_lib/blob/35b1e25c46d9518101bec2410f6dcbc6b2c09ad6/lib/appium_lib/device/touch_actions.rb#L121)
|
|
1446
1461
|
|
|
1447
1462
|
> def two_finger_tap(opts)
|
|
1448
1463
|
|
|
@@ -1454,7 +1469,7 @@ __Parameters:__
|
|
|
1454
1469
|
|
|
1455
1470
|
--
|
|
1456
1471
|
|
|
1457
|
-
##### [wait](https://github.com/appium/ruby_lib/blob/
|
|
1472
|
+
##### [wait](https://github.com/appium/ruby_lib/blob/35b1e25c46d9518101bec2410f6dcbc6b2c09ad6/lib/appium_lib/device/touch_actions.rb#L129)
|
|
1458
1473
|
|
|
1459
1474
|
> def wait(milliseconds)
|
|
1460
1475
|
|
|
@@ -1466,7 +1481,7 @@ __Parameters:__
|
|
|
1466
1481
|
|
|
1467
1482
|
--
|
|
1468
1483
|
|
|
1469
|
-
##### [swipe](https://github.com/appium/ruby_lib/blob/
|
|
1484
|
+
##### [swipe](https://github.com/appium/ruby_lib/blob/35b1e25c46d9518101bec2410f6dcbc6b2c09ad6/lib/appium_lib/device/touch_actions.rb#L152)
|
|
1470
1485
|
|
|
1471
1486
|
> def swipe(opts, ele = nil)
|
|
1472
1487
|
|
|
@@ -1487,7 +1502,7 @@ __Parameters:__
|
|
|
1487
1502
|
|
|
1488
1503
|
--
|
|
1489
1504
|
|
|
1490
|
-
##### [perform](https://github.com/appium/ruby_lib/blob/
|
|
1505
|
+
##### [perform](https://github.com/appium/ruby_lib/blob/35b1e25c46d9518101bec2410f6dcbc6b2c09ad6/lib/appium_lib/device/touch_actions.rb#L177)
|
|
1491
1506
|
|
|
1492
1507
|
> def perform
|
|
1493
1508
|
|
|
@@ -1495,7 +1510,7 @@ Ask the driver to perform all actions in this action chain.
|
|
|
1495
1510
|
|
|
1496
1511
|
--
|
|
1497
1512
|
|
|
1498
|
-
##### [cancel](https://github.com/appium/ruby_lib/blob/
|
|
1513
|
+
##### [cancel](https://github.com/appium/ruby_lib/blob/35b1e25c46d9518101bec2410f6dcbc6b2c09ad6/lib/appium_lib/device/touch_actions.rb#L184)
|
|
1499
1514
|
|
|
1500
1515
|
> def cancel
|
|
1501
1516
|
|
|
@@ -1503,7 +1518,7 @@ Does nothing, currently.
|
|
|
1503
1518
|
|
|
1504
1519
|
--
|
|
1505
1520
|
|
|
1506
|
-
##### [swipe_coordinates](https://github.com/appium/ruby_lib/blob/
|
|
1521
|
+
##### [swipe_coordinates](https://github.com/appium/ruby_lib/blob/35b1e25c46d9518101bec2410f6dcbc6b2c09ad6/lib/appium_lib/device/touch_actions.rb#L190)
|
|
1507
1522
|
|
|
1508
1523
|
> def swipe_coordinates(end_x: nil, end_y: nil, offset_x: nil, offset_y: nil)
|
|
1509
1524
|
|
|
@@ -1511,7 +1526,7 @@ Does nothing, currently.
|
|
|
1511
1526
|
|
|
1512
1527
|
--
|
|
1513
1528
|
|
|
1514
|
-
##### [chain_method](https://github.com/appium/ruby_lib/blob/
|
|
1529
|
+
##### [chain_method](https://github.com/appium/ruby_lib/blob/35b1e25c46d9518101bec2410f6dcbc6b2c09ad6/lib/appium_lib/device/touch_actions.rb#L208)
|
|
1515
1530
|
|
|
1516
1531
|
> def chain_method(method, args = nil)
|
|
1517
1532
|
|
|
@@ -1519,7 +1534,7 @@ Does nothing, currently.
|
|
|
1519
1534
|
|
|
1520
1535
|
--
|
|
1521
1536
|
|
|
1522
|
-
##### [args_with_ele_ref](https://github.com/appium/ruby_lib/blob/
|
|
1537
|
+
##### [args_with_ele_ref](https://github.com/appium/ruby_lib/blob/35b1e25c46d9518101bec2410f6dcbc6b2c09ad6/lib/appium_lib/device/touch_actions.rb#L214)
|
|
1523
1538
|
|
|
1524
1539
|
> def args_with_ele_ref(args)
|
|
1525
1540
|
|
|
@@ -1527,7 +1542,7 @@ Does nothing, currently.
|
|
|
1527
1542
|
|
|
1528
1543
|
--
|
|
1529
1544
|
|
|
1530
|
-
##### [_generic_wait](https://github.com/appium/ruby_lib/blob/
|
|
1545
|
+
##### [_generic_wait](https://github.com/appium/ruby_lib/blob/35b1e25c46d9518101bec2410f6dcbc6b2c09ad6/lib/appium_lib/common/wait.rb#L9)
|
|
1531
1546
|
|
|
1532
1547
|
> def _generic_wait(opts = {})
|
|
1533
1548
|
|
|
@@ -1536,7 +1551,7 @@ https://github.com/SeleniumHQ/selenium/blob/cf501dda3f0ed12233de51ce8170c0e8090f
|
|
|
1536
1551
|
|
|
1537
1552
|
--
|
|
1538
1553
|
|
|
1539
|
-
##### [_process_wait_opts](https://github.com/appium/ruby_lib/blob/
|
|
1554
|
+
##### [_process_wait_opts](https://github.com/appium/ruby_lib/blob/35b1e25c46d9518101bec2410f6dcbc6b2c09ad6/lib/appium_lib/common/wait.rb#L48)
|
|
1540
1555
|
|
|
1541
1556
|
> def _process_wait_opts(opts)
|
|
1542
1557
|
|
|
@@ -1544,7 +1559,7 @@ process opts before calling _generic_wait
|
|
|
1544
1559
|
|
|
1545
1560
|
--
|
|
1546
1561
|
|
|
1547
|
-
##### [wait_true](https://github.com/appium/ruby_lib/blob/
|
|
1562
|
+
##### [wait_true](https://github.com/appium/ruby_lib/blob/35b1e25c46d9518101bec2410f6dcbc6b2c09ad6/lib/appium_lib/common/wait.rb#L69)
|
|
1548
1563
|
|
|
1549
1564
|
> def wait_true(opts = {}, &block)
|
|
1550
1565
|
|
|
@@ -1564,7 +1579,7 @@ __Parameters:__
|
|
|
1564
1579
|
|
|
1565
1580
|
--
|
|
1566
1581
|
|
|
1567
|
-
##### [wait](https://github.com/appium/ruby_lib/blob/
|
|
1582
|
+
##### [wait](https://github.com/appium/ruby_lib/blob/35b1e25c46d9518101bec2410f6dcbc6b2c09ad6/lib/appium_lib/common/wait.rb#L87)
|
|
1568
1583
|
|
|
1569
1584
|
> def wait(opts = {}, &block)
|
|
1570
1585
|
|
|
@@ -1582,7 +1597,7 @@ __Parameters:__
|
|
|
1582
1597
|
|
|
1583
1598
|
--
|
|
1584
1599
|
|
|
1585
|
-
##### [ignore](https://github.com/appium/ruby_lib/blob/
|
|
1600
|
+
##### [ignore](https://github.com/appium/ruby_lib/blob/35b1e25c46d9518101bec2410f6dcbc6b2c09ad6/lib/appium_lib/common/helper.rb#L24)
|
|
1586
1601
|
|
|
1587
1602
|
> def ignore
|
|
1588
1603
|
|
|
@@ -1590,7 +1605,7 @@ Return yield and ignore any exceptions.
|
|
|
1590
1605
|
|
|
1591
1606
|
--
|
|
1592
1607
|
|
|
1593
|
-
##### [back](https://github.com/appium/ruby_lib/blob/
|
|
1608
|
+
##### [back](https://github.com/appium/ruby_lib/blob/35b1e25c46d9518101bec2410f6dcbc6b2c09ad6/lib/appium_lib/common/helper.rb#L31)
|
|
1594
1609
|
|
|
1595
1610
|
> def back
|
|
1596
1611
|
|
|
@@ -1602,7 +1617,7 @@ __Returns:__
|
|
|
1602
1617
|
|
|
1603
1618
|
--
|
|
1604
1619
|
|
|
1605
|
-
##### [session_id](https://github.com/appium/ruby_lib/blob/
|
|
1620
|
+
##### [session_id](https://github.com/appium/ruby_lib/blob/35b1e25c46d9518101bec2410f6dcbc6b2c09ad6/lib/appium_lib/common/helper.rb#L36)
|
|
1606
1621
|
|
|
1607
1622
|
> def session_id
|
|
1608
1623
|
|
|
@@ -1610,7 +1625,7 @@ For Sauce Labs reporting. Returns the current session id.
|
|
|
1610
1625
|
|
|
1611
1626
|
--
|
|
1612
1627
|
|
|
1613
|
-
##### [xpath](https://github.com/appium/ruby_lib/blob/
|
|
1628
|
+
##### [xpath](https://github.com/appium/ruby_lib/blob/35b1e25c46d9518101bec2410f6dcbc6b2c09ad6/lib/appium_lib/common/helper.rb#L44)
|
|
1614
1629
|
|
|
1615
1630
|
> def xpath(xpath_str)
|
|
1616
1631
|
|
|
@@ -1626,7 +1641,7 @@ __Returns:__
|
|
|
1626
1641
|
|
|
1627
1642
|
--
|
|
1628
1643
|
|
|
1629
|
-
##### [xpaths](https://github.com/appium/ruby_lib/blob/
|
|
1644
|
+
##### [xpaths](https://github.com/appium/ruby_lib/blob/35b1e25c46d9518101bec2410f6dcbc6b2c09ad6/lib/appium_lib/common/helper.rb#L52)
|
|
1630
1645
|
|
|
1631
1646
|
> def xpaths(xpath_str)
|
|
1632
1647
|
|
|
@@ -1642,7 +1657,7 @@ __Returns:__
|
|
|
1642
1657
|
|
|
1643
1658
|
--
|
|
1644
1659
|
|
|
1645
|
-
##### [_print_source](https://github.com/appium/ruby_lib/blob/
|
|
1660
|
+
##### [_print_source](https://github.com/appium/ruby_lib/blob/35b1e25c46d9518101bec2410f6dcbc6b2c09ad6/lib/appium_lib/common/helper.rb#L56)
|
|
1646
1661
|
|
|
1647
1662
|
> def _print_source(source)
|
|
1648
1663
|
|
|
@@ -1650,7 +1665,7 @@ __Returns:__
|
|
|
1650
1665
|
|
|
1651
1666
|
--
|
|
1652
1667
|
|
|
1653
|
-
##### [result](https://github.com/appium/ruby_lib/blob/
|
|
1668
|
+
##### [result](https://github.com/appium/ruby_lib/blob/35b1e25c46d9518101bec2410f6dcbc6b2c09ad6/lib/appium_lib/common/helper.rb#L69)
|
|
1654
1669
|
|
|
1655
1670
|
> def result
|
|
1656
1671
|
|
|
@@ -1658,7 +1673,7 @@ Returns the value of attribute result
|
|
|
1658
1673
|
|
|
1659
1674
|
--
|
|
1660
1675
|
|
|
1661
|
-
##### [initialize](https://github.com/appium/ruby_lib/blob/
|
|
1676
|
+
##### [initialize](https://github.com/appium/ruby_lib/blob/35b1e25c46d9518101bec2410f6dcbc6b2c09ad6/lib/appium_lib/common/helper.rb#L71)
|
|
1662
1677
|
|
|
1663
1678
|
> def initialize
|
|
1664
1679
|
|
|
@@ -1670,7 +1685,7 @@ __Returns:__
|
|
|
1670
1685
|
|
|
1671
1686
|
--
|
|
1672
1687
|
|
|
1673
|
-
##### [reset](https://github.com/appium/ruby_lib/blob/
|
|
1688
|
+
##### [reset](https://github.com/appium/ruby_lib/blob/35b1e25c46d9518101bec2410f6dcbc6b2c09ad6/lib/appium_lib/common/helper.rb#L75)
|
|
1674
1689
|
|
|
1675
1690
|
> def reset
|
|
1676
1691
|
|
|
@@ -1678,7 +1693,7 @@ __Returns:__
|
|
|
1678
1693
|
|
|
1679
1694
|
--
|
|
1680
1695
|
|
|
1681
|
-
##### [start_element](https://github.com/appium/ruby_lib/blob/
|
|
1696
|
+
##### [start_element](https://github.com/appium/ruby_lib/blob/35b1e25c46d9518101bec2410f6dcbc6b2c09ad6/lib/appium_lib/common/helper.rb#L80)
|
|
1682
1697
|
|
|
1683
1698
|
> def start_element(name, attrs = [])
|
|
1684
1699
|
|
|
@@ -1686,7 +1701,7 @@ http://nokogiri.org/Nokogiri/XML/SAX/Document.html
|
|
|
1686
1701
|
|
|
1687
1702
|
--
|
|
1688
1703
|
|
|
1689
|
-
##### [formatted_result](https://github.com/appium/ruby_lib/blob/
|
|
1704
|
+
##### [formatted_result](https://github.com/appium/ruby_lib/blob/35b1e25c46d9518101bec2410f6dcbc6b2c09ad6/lib/appium_lib/common/helper.rb#L86)
|
|
1690
1705
|
|
|
1691
1706
|
> def formatted_result
|
|
1692
1707
|
|
|
@@ -1694,7 +1709,7 @@ http://nokogiri.org/Nokogiri/XML/SAX/Document.html
|
|
|
1694
1709
|
|
|
1695
1710
|
--
|
|
1696
1711
|
|
|
1697
|
-
##### [get_page_class](https://github.com/appium/ruby_lib/blob/
|
|
1712
|
+
##### [get_page_class](https://github.com/appium/ruby_lib/blob/35b1e25c46d9518101bec2410f6dcbc6b2c09ad6/lib/appium_lib/common/helper.rb#L97)
|
|
1698
1713
|
|
|
1699
1714
|
> def get_page_class
|
|
1700
1715
|
|
|
@@ -1702,7 +1717,7 @@ Returns a string of class counts of visible elements.
|
|
|
1702
1717
|
|
|
1703
1718
|
--
|
|
1704
1719
|
|
|
1705
|
-
##### [page_class](https://github.com/appium/ruby_lib/blob/
|
|
1720
|
+
##### [page_class](https://github.com/appium/ruby_lib/blob/35b1e25c46d9518101bec2410f6dcbc6b2c09ad6/lib/appium_lib/common/helper.rb#L108)
|
|
1706
1721
|
|
|
1707
1722
|
> def page_class
|
|
1708
1723
|
|
|
@@ -1711,7 +1726,7 @@ Useful for appium_console.
|
|
|
1711
1726
|
|
|
1712
1727
|
--
|
|
1713
1728
|
|
|
1714
|
-
##### [px_to_window_rel](https://github.com/appium/ruby_lib/blob/
|
|
1729
|
+
##### [px_to_window_rel](https://github.com/appium/ruby_lib/blob/35b1e25c46d9518101bec2410f6dcbc6b2c09ad6/lib/appium_lib/common/helper.rb#L118)
|
|
1715
1730
|
|
|
1716
1731
|
> def px_to_window_rel(opts = {})
|
|
1717
1732
|
|
|
@@ -1723,7 +1738,7 @@ px_to_window_rel x: 50, y: 150
|
|
|
1723
1738
|
|
|
1724
1739
|
--
|
|
1725
1740
|
|
|
1726
|
-
##### [xml_keys](https://github.com/appium/ruby_lib/blob/
|
|
1741
|
+
##### [xml_keys](https://github.com/appium/ruby_lib/blob/35b1e25c46d9518101bec2410f6dcbc6b2c09ad6/lib/appium_lib/common/helper.rb#L137)
|
|
1727
1742
|
|
|
1728
1743
|
> def xml_keys(target)
|
|
1729
1744
|
|
|
@@ -1739,7 +1754,7 @@ __Returns:__
|
|
|
1739
1754
|
|
|
1740
1755
|
--
|
|
1741
1756
|
|
|
1742
|
-
##### [xml_values](https://github.com/appium/ruby_lib/blob/
|
|
1757
|
+
##### [xml_values](https://github.com/appium/ruby_lib/blob/35b1e25c46d9518101bec2410f6dcbc6b2c09ad6/lib/appium_lib/common/helper.rb#L145)
|
|
1743
1758
|
|
|
1744
1759
|
> def xml_values(target)
|
|
1745
1760
|
|
|
@@ -1755,7 +1770,7 @@ __Returns:__
|
|
|
1755
1770
|
|
|
1756
1771
|
--
|
|
1757
1772
|
|
|
1758
|
-
##### [resolve_id](https://github.com/appium/ruby_lib/blob/
|
|
1773
|
+
##### [resolve_id](https://github.com/appium/ruby_lib/blob/35b1e25c46d9518101bec2410f6dcbc6b2c09ad6/lib/appium_lib/common/helper.rb#L153)
|
|
1759
1774
|
|
|
1760
1775
|
> def resolve_id(id)
|
|
1761
1776
|
|
|
@@ -1771,7 +1786,7 @@ __Returns:__
|
|
|
1771
1786
|
|
|
1772
1787
|
--
|
|
1773
1788
|
|
|
1774
|
-
##### [filter](https://github.com/appium/ruby_lib/blob/
|
|
1789
|
+
##### [filter](https://github.com/appium/ruby_lib/blob/35b1e25c46d9518101bec2410f6dcbc6b2c09ad6/lib/appium_lib/common/helper.rb#L159)
|
|
1775
1790
|
|
|
1776
1791
|
> def filter
|
|
1777
1792
|
|
|
@@ -1779,7 +1794,7 @@ Returns the value of attribute filter
|
|
|
1779
1794
|
|
|
1780
1795
|
--
|
|
1781
1796
|
|
|
1782
|
-
##### [filter=](https://github.com/appium/ruby_lib/blob/
|
|
1797
|
+
##### [filter=](https://github.com/appium/ruby_lib/blob/35b1e25c46d9518101bec2410f6dcbc6b2c09ad6/lib/appium_lib/common/helper.rb#L162)
|
|
1783
1798
|
|
|
1784
1799
|
> def filter=(value)
|
|
1785
1800
|
|
|
@@ -1787,7 +1802,7 @@ convert to string to support symbols
|
|
|
1787
1802
|
|
|
1788
1803
|
--
|
|
1789
1804
|
|
|
1790
|
-
##### [initialize](https://github.com/appium/ruby_lib/blob/
|
|
1805
|
+
##### [initialize](https://github.com/appium/ruby_lib/blob/35b1e25c46d9518101bec2410f6dcbc6b2c09ad6/lib/appium_lib/common/helper.rb#L168)
|
|
1791
1806
|
|
|
1792
1807
|
> def initialize
|
|
1793
1808
|
|
|
@@ -1799,7 +1814,7 @@ __Returns:__
|
|
|
1799
1814
|
|
|
1800
1815
|
--
|
|
1801
1816
|
|
|
1802
|
-
##### [reset](https://github.com/appium/ruby_lib/blob/
|
|
1817
|
+
##### [reset](https://github.com/appium/ruby_lib/blob/35b1e25c46d9518101bec2410f6dcbc6b2c09ad6/lib/appium_lib/common/helper.rb#L173)
|
|
1803
1818
|
|
|
1804
1819
|
> def reset
|
|
1805
1820
|
|
|
@@ -1807,7 +1822,7 @@ __Returns:__
|
|
|
1807
1822
|
|
|
1808
1823
|
--
|
|
1809
1824
|
|
|
1810
|
-
##### [result](https://github.com/appium/ruby_lib/blob/
|
|
1825
|
+
##### [result](https://github.com/appium/ruby_lib/blob/35b1e25c46d9518101bec2410f6dcbc6b2c09ad6/lib/appium_lib/common/helper.rb#L179)
|
|
1811
1826
|
|
|
1812
1827
|
> def result
|
|
1813
1828
|
|
|
@@ -1815,7 +1830,7 @@ __Returns:__
|
|
|
1815
1830
|
|
|
1816
1831
|
--
|
|
1817
1832
|
|
|
1818
|
-
##### [start_element](https://github.com/appium/ruby_lib/blob/
|
|
1833
|
+
##### [start_element](https://github.com/appium/ruby_lib/blob/35b1e25c46d9518101bec2410f6dcbc6b2c09ad6/lib/appium_lib/common/helper.rb#L195)
|
|
1819
1834
|
|
|
1820
1835
|
> def start_element(name, attrs = [])
|
|
1821
1836
|
|
|
@@ -1823,7 +1838,7 @@ __Returns:__
|
|
|
1823
1838
|
|
|
1824
1839
|
--
|
|
1825
1840
|
|
|
1826
|
-
##### [end_element](https://github.com/appium/ruby_lib/blob/
|
|
1841
|
+
##### [end_element](https://github.com/appium/ruby_lib/blob/35b1e25c46d9518101bec2410f6dcbc6b2c09ad6/lib/appium_lib/common/helper.rb#L204)
|
|
1827
1842
|
|
|
1828
1843
|
> def end_element(name)
|
|
1829
1844
|
|
|
@@ -1831,7 +1846,7 @@ __Returns:__
|
|
|
1831
1846
|
|
|
1832
1847
|
--
|
|
1833
1848
|
|
|
1834
|
-
##### [characters](https://github.com/appium/ruby_lib/blob/
|
|
1849
|
+
##### [characters](https://github.com/appium/ruby_lib/blob/35b1e25c46d9518101bec2410f6dcbc6b2c09ad6/lib/appium_lib/common/helper.rb#L210)
|
|
1835
1850
|
|
|
1836
1851
|
> def characters(chars)
|
|
1837
1852
|
|
|
@@ -1839,7 +1854,7 @@ __Returns:__
|
|
|
1839
1854
|
|
|
1840
1855
|
--
|
|
1841
1856
|
|
|
1842
|
-
##### [_no_such_element](https://github.com/appium/ruby_lib/blob/
|
|
1857
|
+
##### [_no_such_element](https://github.com/appium/ruby_lib/blob/35b1e25c46d9518101bec2410f6dcbc6b2c09ad6/lib/appium_lib/common/helper.rb#L217)
|
|
1843
1858
|
|
|
1844
1859
|
> def _no_such_element
|
|
1845
1860
|
|
|
@@ -1847,7 +1862,7 @@ __Returns:__
|
|
|
1847
1862
|
|
|
1848
1863
|
--
|
|
1849
1864
|
|
|
1850
|
-
##### [COMMAND_NO_ARG](https://github.com/appium/ruby_lib/blob/
|
|
1865
|
+
##### [COMMAND_NO_ARG](https://github.com/appium/ruby_lib/blob/35b1e25c46d9518101bec2410f6dcbc6b2c09ad6/lib/appium_lib/common/command.rb#L4)
|
|
1851
1866
|
|
|
1852
1867
|
> COMMAND_NO_ARG = {
|
|
1853
1868
|
|
|
@@ -1855,7 +1870,7 @@ __Returns:__
|
|
|
1855
1870
|
|
|
1856
1871
|
--
|
|
1857
1872
|
|
|
1858
|
-
##### [COMMAND](https://github.com/appium/ruby_lib/blob/
|
|
1873
|
+
##### [COMMAND](https://github.com/appium/ruby_lib/blob/35b1e25c46d9518101bec2410f6dcbc6b2c09ad6/lib/appium_lib/common/command.rb#L27)
|
|
1859
1874
|
|
|
1860
1875
|
> COMMAND = {
|
|
1861
1876
|
|
|
@@ -1863,7 +1878,7 @@ __Returns:__
|
|
|
1863
1878
|
|
|
1864
1879
|
--
|
|
1865
1880
|
|
|
1866
|
-
##### [window_size](https://github.com/appium/ruby_lib/blob/
|
|
1881
|
+
##### [window_size](https://github.com/appium/ruby_lib/blob/35b1e25c46d9518101bec2410f6dcbc6b2c09ad6/lib/appium_lib/common/element/window.rb#L5)
|
|
1867
1882
|
|
|
1868
1883
|
> def window_size
|
|
1869
1884
|
|
|
@@ -1871,7 +1886,7 @@ Get the window's size
|
|
|
1871
1886
|
|
|
1872
1887
|
--
|
|
1873
1888
|
|
|
1874
|
-
##### [FINDERS](https://github.com/appium/ruby_lib/blob/
|
|
1889
|
+
##### [FINDERS](https://github.com/appium/ruby_lib/blob/35b1e25c46d9518101bec2410f6dcbc6b2c09ad6/lib/appium_lib/common/search_context.rb#L5)
|
|
1875
1890
|
|
|
1876
1891
|
> FINDERS = {
|
|
1877
1892
|
|
|
@@ -1879,7 +1894,7 @@ rubocop:disable Style/MutableConstant
|
|
|
1879
1894
|
|
|
1880
1895
|
--
|
|
1881
1896
|
|
|
1882
|
-
##### [result](https://github.com/appium/ruby_lib/blob/
|
|
1897
|
+
##### [result](https://github.com/appium/ruby_lib/blob/35b1e25c46d9518101bec2410f6dcbc6b2c09ad6/lib/appium_lib/android/helper.rb#L6) android
|
|
1883
1898
|
|
|
1884
1899
|
> def result
|
|
1885
1900
|
|
|
@@ -1887,7 +1902,7 @@ Returns the value of attribute result
|
|
|
1887
1902
|
|
|
1888
1903
|
--
|
|
1889
1904
|
|
|
1890
|
-
##### [keys](https://github.com/appium/ruby_lib/blob/
|
|
1905
|
+
##### [keys](https://github.com/appium/ruby_lib/blob/35b1e25c46d9518101bec2410f6dcbc6b2c09ad6/lib/appium_lib/android/helper.rb#L6) android
|
|
1891
1906
|
|
|
1892
1907
|
> def keys
|
|
1893
1908
|
|
|
@@ -1895,7 +1910,7 @@ Returns the value of attribute keys
|
|
|
1895
1910
|
|
|
1896
1911
|
--
|
|
1897
1912
|
|
|
1898
|
-
##### [instance](https://github.com/appium/ruby_lib/blob/
|
|
1913
|
+
##### [instance](https://github.com/appium/ruby_lib/blob/35b1e25c46d9518101bec2410f6dcbc6b2c09ad6/lib/appium_lib/android/helper.rb#L6) android
|
|
1899
1914
|
|
|
1900
1915
|
> def instance
|
|
1901
1916
|
|
|
@@ -1903,7 +1918,7 @@ Returns the value of attribute instance
|
|
|
1903
1918
|
|
|
1904
1919
|
--
|
|
1905
1920
|
|
|
1906
|
-
##### [filter](https://github.com/appium/ruby_lib/blob/
|
|
1921
|
+
##### [filter](https://github.com/appium/ruby_lib/blob/35b1e25c46d9518101bec2410f6dcbc6b2c09ad6/lib/appium_lib/android/helper.rb#L6) android
|
|
1907
1922
|
|
|
1908
1923
|
> def filter
|
|
1909
1924
|
|
|
@@ -1911,7 +1926,7 @@ Returns the value of attribute filter
|
|
|
1911
1926
|
|
|
1912
1927
|
--
|
|
1913
1928
|
|
|
1914
|
-
##### [filter=](https://github.com/appium/ruby_lib/blob/
|
|
1929
|
+
##### [filter=](https://github.com/appium/ruby_lib/blob/35b1e25c46d9518101bec2410f6dcbc6b2c09ad6/lib/appium_lib/android/helper.rb#L9) android
|
|
1915
1930
|
|
|
1916
1931
|
> def filter=(value)
|
|
1917
1932
|
|
|
@@ -1919,7 +1934,7 @@ convert to string to support symbols
|
|
|
1919
1934
|
|
|
1920
1935
|
--
|
|
1921
1936
|
|
|
1922
|
-
##### [initialize](https://github.com/appium/ruby_lib/blob/
|
|
1937
|
+
##### [initialize](https://github.com/appium/ruby_lib/blob/35b1e25c46d9518101bec2410f6dcbc6b2c09ad6/lib/appium_lib/android/helper.rb#L15) android
|
|
1923
1938
|
|
|
1924
1939
|
> def initialize
|
|
1925
1940
|
|
|
@@ -1931,7 +1946,7 @@ __Returns:__
|
|
|
1931
1946
|
|
|
1932
1947
|
--
|
|
1933
1948
|
|
|
1934
|
-
##### [reset](https://github.com/appium/ruby_lib/blob/
|
|
1949
|
+
##### [reset](https://github.com/appium/ruby_lib/blob/35b1e25c46d9518101bec2410f6dcbc6b2c09ad6/lib/appium_lib/android/helper.rb#L21) android
|
|
1935
1950
|
|
|
1936
1951
|
> def reset
|
|
1937
1952
|
|
|
@@ -1939,7 +1954,7 @@ __Returns:__
|
|
|
1939
1954
|
|
|
1940
1955
|
--
|
|
1941
1956
|
|
|
1942
|
-
##### [start_element](https://github.com/appium/ruby_lib/blob/
|
|
1957
|
+
##### [start_element](https://github.com/appium/ruby_lib/blob/35b1e25c46d9518101bec2410f6dcbc6b2c09ad6/lib/appium_lib/android/helper.rb#L28) android
|
|
1943
1958
|
|
|
1944
1959
|
> def start_element(name, attrs = [])
|
|
1945
1960
|
|
|
@@ -1947,7 +1962,7 @@ http://nokogiri.org/Nokogiri/XML/SAX/Document.html
|
|
|
1947
1962
|
|
|
1948
1963
|
--
|
|
1949
1964
|
|
|
1950
|
-
##### [_fix_android_native_source](https://github.com/appium/ruby_lib/blob/
|
|
1965
|
+
##### [_fix_android_native_source](https://github.com/appium/ruby_lib/blob/35b1e25c46d9518101bec2410f6dcbc6b2c09ad6/lib/appium_lib/android/helper.rb#L88) android
|
|
1951
1966
|
|
|
1952
1967
|
> def _fix_android_native_source(source)
|
|
1953
1968
|
|
|
@@ -1957,7 +1972,7 @@ https://code.google.com/p/android/issues/detail?id=74143
|
|
|
1957
1972
|
|
|
1958
1973
|
--
|
|
1959
1974
|
|
|
1960
|
-
##### [source](https://github.com/appium/ruby_lib/blob/
|
|
1975
|
+
##### [source](https://github.com/appium/ruby_lib/blob/35b1e25c46d9518101bec2410f6dcbc6b2c09ad6/lib/appium_lib/android/helper.rb#L116) android
|
|
1961
1976
|
|
|
1962
1977
|
> def source
|
|
1963
1978
|
|
|
@@ -1969,7 +1984,7 @@ __Returns:__
|
|
|
1969
1984
|
|
|
1970
1985
|
--
|
|
1971
1986
|
|
|
1972
|
-
##### [get_android_inspect](https://github.com/appium/ruby_lib/blob/
|
|
1987
|
+
##### [get_android_inspect](https://github.com/appium/ruby_lib/blob/35b1e25c46d9518101bec2410f6dcbc6b2c09ad6/lib/appium_lib/android/helper.rb#L126) android
|
|
1973
1988
|
|
|
1974
1989
|
> def get_android_inspect(class_name = false)
|
|
1975
1990
|
|
|
@@ -1988,7 +2003,7 @@ __Returns:__
|
|
|
1988
2003
|
|
|
1989
2004
|
--
|
|
1990
2005
|
|
|
1991
|
-
##### [page](https://github.com/appium/ruby_lib/blob/
|
|
2006
|
+
##### [page](https://github.com/appium/ruby_lib/blob/35b1e25c46d9518101bec2410f6dcbc6b2c09ad6/lib/appium_lib/android/helper.rb#L152) android
|
|
1992
2007
|
|
|
1993
2008
|
> def page(opts = {})
|
|
1994
2009
|
|
|
@@ -2007,7 +2022,7 @@ __Returns:__
|
|
|
2007
2022
|
|
|
2008
2023
|
--
|
|
2009
2024
|
|
|
2010
|
-
##### [current_app](https://github.com/appium/ruby_lib/blob/
|
|
2025
|
+
##### [current_app](https://github.com/appium/ruby_lib/blob/35b1e25c46d9518101bec2410f6dcbc6b2c09ad6/lib/appium_lib/android/helper.rb#L164) android
|
|
2011
2026
|
|
|
2012
2027
|
> def current_app
|
|
2013
2028
|
|
|
@@ -2017,7 +2032,7 @@ example line:
|
|
|
2017
2032
|
|
|
2018
2033
|
--
|
|
2019
2034
|
|
|
2020
|
-
##### [id](https://github.com/appium/ruby_lib/blob/
|
|
2035
|
+
##### [id](https://github.com/appium/ruby_lib/blob/35b1e25c46d9518101bec2410f6dcbc6b2c09ad6/lib/appium_lib/android/helper.rb#L188) android
|
|
2021
2036
|
|
|
2022
2037
|
> def id(id)
|
|
2023
2038
|
|
|
@@ -2033,7 +2048,7 @@ __Returns:__
|
|
|
2033
2048
|
|
|
2034
2049
|
--
|
|
2035
2050
|
|
|
2036
|
-
##### [ids](https://github.com/appium/ruby_lib/blob/
|
|
2051
|
+
##### [ids](https://github.com/appium/ruby_lib/blob/35b1e25c46d9518101bec2410f6dcbc6b2c09ad6/lib/appium_lib/android/helper.rb#L196) android
|
|
2037
2052
|
|
|
2038
2053
|
> def ids(id)
|
|
2039
2054
|
|
|
@@ -2049,7 +2064,7 @@ __Returns:__
|
|
|
2049
2064
|
|
|
2050
2065
|
--
|
|
2051
2066
|
|
|
2052
|
-
##### [ele_index](https://github.com/appium/ruby_lib/blob/
|
|
2067
|
+
##### [ele_index](https://github.com/appium/ruby_lib/blob/35b1e25c46d9518101bec2410f6dcbc6b2c09ad6/lib/appium_lib/android/helper.rb#L205) android
|
|
2053
2068
|
|
|
2054
2069
|
> def ele_index(class_name, index)
|
|
2055
2070
|
|
|
@@ -2067,7 +2082,7 @@ __Returns:__
|
|
|
2067
2082
|
|
|
2068
2083
|
--
|
|
2069
2084
|
|
|
2070
|
-
##### [first_ele](https://github.com/appium/ruby_lib/blob/
|
|
2085
|
+
##### [first_ele](https://github.com/appium/ruby_lib/blob/35b1e25c46d9518101bec2410f6dcbc6b2c09ad6/lib/appium_lib/android/helper.rb#L223) android
|
|
2071
2086
|
|
|
2072
2087
|
> def first_ele(class_name)
|
|
2073
2088
|
|
|
@@ -2083,7 +2098,7 @@ __Returns:__
|
|
|
2083
2098
|
|
|
2084
2099
|
--
|
|
2085
2100
|
|
|
2086
|
-
##### [last_ele](https://github.com/appium/ruby_lib/blob/
|
|
2101
|
+
##### [last_ele](https://github.com/appium/ruby_lib/blob/35b1e25c46d9518101bec2410f6dcbc6b2c09ad6/lib/appium_lib/android/helper.rb#L230) android
|
|
2087
2102
|
|
|
2088
2103
|
> def last_ele(class_name)
|
|
2089
2104
|
|
|
@@ -2099,7 +2114,7 @@ __Returns:__
|
|
|
2099
2114
|
|
|
2100
2115
|
--
|
|
2101
2116
|
|
|
2102
|
-
##### [tag](https://github.com/appium/ruby_lib/blob/
|
|
2117
|
+
##### [tag](https://github.com/appium/ruby_lib/blob/35b1e25c46d9518101bec2410f6dcbc6b2c09ad6/lib/appium_lib/android/helper.rb#L238) android
|
|
2103
2118
|
|
|
2104
2119
|
> def tag(class_name)
|
|
2105
2120
|
|
|
@@ -2115,7 +2130,7 @@ __Returns:__
|
|
|
2115
2130
|
|
|
2116
2131
|
--
|
|
2117
2132
|
|
|
2118
|
-
##### [tags](https://github.com/appium/ruby_lib/blob/
|
|
2133
|
+
##### [tags](https://github.com/appium/ruby_lib/blob/35b1e25c46d9518101bec2410f6dcbc6b2c09ad6/lib/appium_lib/android/helper.rb#L246) android
|
|
2119
2134
|
|
|
2120
2135
|
> def tags(class_name)
|
|
2121
2136
|
|
|
@@ -2131,7 +2146,7 @@ __Returns:__
|
|
|
2131
2146
|
|
|
2132
2147
|
--
|
|
2133
2148
|
|
|
2134
|
-
##### [string_visible_contains](https://github.com/appium/ruby_lib/blob/
|
|
2149
|
+
##### [string_visible_contains](https://github.com/appium/ruby_lib/blob/35b1e25c46d9518101bec2410f6dcbc6b2c09ad6/lib/appium_lib/android/helper.rb#L288) android
|
|
2135
2150
|
|
|
2136
2151
|
> def string_visible_contains(class_name, value)
|
|
2137
2152
|
|
|
@@ -2151,7 +2166,7 @@ __Returns:__
|
|
|
2151
2166
|
|
|
2152
2167
|
--
|
|
2153
2168
|
|
|
2154
|
-
##### [complex_find_contains](https://github.com/appium/ruby_lib/blob/
|
|
2169
|
+
##### [complex_find_contains](https://github.com/appium/ruby_lib/blob/35b1e25c46d9518101bec2410f6dcbc6b2c09ad6/lib/appium_lib/android/helper.rb#L308) android
|
|
2155
2170
|
|
|
2156
2171
|
> def complex_find_contains(element, value)
|
|
2157
2172
|
|
|
@@ -2169,7 +2184,7 @@ __Returns:__
|
|
|
2169
2184
|
|
|
2170
2185
|
--
|
|
2171
2186
|
|
|
2172
|
-
##### [complex_finds_contains](https://github.com/appium/ruby_lib/blob/
|
|
2187
|
+
##### [complex_finds_contains](https://github.com/appium/ruby_lib/blob/35b1e25c46d9518101bec2410f6dcbc6b2c09ad6/lib/appium_lib/android/helper.rb#L316) android
|
|
2173
2188
|
|
|
2174
2189
|
> def complex_finds_contains(element, value)
|
|
2175
2190
|
|
|
@@ -2187,7 +2202,7 @@ __Returns:__
|
|
|
2187
2202
|
|
|
2188
2203
|
--
|
|
2189
2204
|
|
|
2190
|
-
##### [complex_find_exact](https://github.com/appium/ruby_lib/blob/
|
|
2205
|
+
##### [complex_find_exact](https://github.com/appium/ruby_lib/blob/35b1e25c46d9518101bec2410f6dcbc6b2c09ad6/lib/appium_lib/android/helper.rb#L345) android
|
|
2191
2206
|
|
|
2192
2207
|
> def complex_find_exact(class_name, value)
|
|
2193
2208
|
|
|
@@ -2205,7 +2220,7 @@ __Returns:__
|
|
|
2205
2220
|
|
|
2206
2221
|
--
|
|
2207
2222
|
|
|
2208
|
-
##### [complex_finds_exact](https://github.com/appium/ruby_lib/blob/
|
|
2223
|
+
##### [complex_finds_exact](https://github.com/appium/ruby_lib/blob/35b1e25c46d9518101bec2410f6dcbc6b2c09ad6/lib/appium_lib/android/helper.rb#L353) android
|
|
2209
2224
|
|
|
2210
2225
|
> def complex_finds_exact(class_name, value)
|
|
2211
2226
|
|
|
@@ -2223,7 +2238,7 @@ __Returns:__
|
|
|
2223
2238
|
|
|
2224
2239
|
--
|
|
2225
2240
|
|
|
2226
|
-
##### [get_source](https://github.com/appium/ruby_lib/blob/
|
|
2241
|
+
##### [get_source](https://github.com/appium/ruby_lib/blob/35b1e25c46d9518101bec2410f6dcbc6b2c09ad6/lib/appium_lib/android/helper.rb#L361) android
|
|
2227
2242
|
|
|
2228
2243
|
> def get_source
|
|
2229
2244
|
|
|
@@ -2237,7 +2252,7 @@ __Returns:__
|
|
|
2237
2252
|
|
|
2238
2253
|
--
|
|
2239
2254
|
|
|
2240
|
-
##### [_nodeset_to_uiselector](https://github.com/appium/ruby_lib/blob/
|
|
2255
|
+
##### [_nodeset_to_uiselector](https://github.com/appium/ruby_lib/blob/35b1e25c46d9518101bec2410f6dcbc6b2c09ad6/lib/appium_lib/android/client_xpath.rb#L5) android
|
|
2241
2256
|
|
|
2242
2257
|
> def _nodeset_to_uiselector(opts = {})
|
|
2243
2258
|
|
|
@@ -2245,7 +2260,7 @@ __Returns:__
|
|
|
2245
2260
|
|
|
2246
2261
|
--
|
|
2247
2262
|
|
|
2248
|
-
##### [_client_xpath](https://github.com/appium/ruby_lib/blob/
|
|
2263
|
+
##### [_client_xpath](https://github.com/appium/ruby_lib/blob/35b1e25c46d9518101bec2410f6dcbc6b2c09ad6/lib/appium_lib/android/client_xpath.rb#L20) android
|
|
2249
2264
|
|
|
2250
2265
|
> def _client_xpath(opts = {})
|
|
2251
2266
|
|
|
@@ -2253,7 +2268,7 @@ __Returns:__
|
|
|
2253
2268
|
|
|
2254
2269
|
--
|
|
2255
2270
|
|
|
2256
|
-
##### [client_xpath](https://github.com/appium/ruby_lib/blob/
|
|
2271
|
+
##### [client_xpath](https://github.com/appium/ruby_lib/blob/35b1e25c46d9518101bec2410f6dcbc6b2c09ad6/lib/appium_lib/android/client_xpath.rb#L36) android
|
|
2257
2272
|
|
|
2258
2273
|
> def client_xpath(xpath)
|
|
2259
2274
|
|
|
@@ -2261,7 +2276,7 @@ __Returns:__
|
|
|
2261
2276
|
|
|
2262
2277
|
--
|
|
2263
2278
|
|
|
2264
|
-
##### [client_xpaths](https://github.com/appium/ruby_lib/blob/
|
|
2279
|
+
##### [client_xpaths](https://github.com/appium/ruby_lib/blob/35b1e25c46d9518101bec2410f6dcbc6b2c09ad6/lib/appium_lib/android/client_xpath.rb#L40) android
|
|
2265
2280
|
|
|
2266
2281
|
> def client_xpaths(xpath)
|
|
2267
2282
|
|
|
@@ -2269,7 +2284,7 @@ __Returns:__
|
|
|
2269
2284
|
|
|
2270
2285
|
--
|
|
2271
2286
|
|
|
2272
|
-
##### [TextView](https://github.com/appium/ruby_lib/blob/
|
|
2287
|
+
##### [TextView](https://github.com/appium/ruby_lib/blob/35b1e25c46d9518101bec2410f6dcbc6b2c09ad6/lib/appium_lib/android/element/text.rb#L4) android
|
|
2273
2288
|
|
|
2274
2289
|
> TextView = 'android.widget.TextView'.freeze
|
|
2275
2290
|
|
|
@@ -2277,7 +2292,7 @@ __Returns:__
|
|
|
2277
2292
|
|
|
2278
2293
|
--
|
|
2279
2294
|
|
|
2280
|
-
##### [text](https://github.com/appium/ruby_lib/blob/
|
|
2295
|
+
##### [text](https://github.com/appium/ruby_lib/blob/35b1e25c46d9518101bec2410f6dcbc6b2c09ad6/lib/appium_lib/android/element/text.rb#L10) android
|
|
2281
2296
|
|
|
2282
2297
|
> def text(value)
|
|
2283
2298
|
|
|
@@ -2294,7 +2309,7 @@ __Returns:__
|
|
|
2294
2309
|
|
|
2295
2310
|
--
|
|
2296
2311
|
|
|
2297
|
-
##### [texts](https://github.com/appium/ruby_lib/blob/
|
|
2312
|
+
##### [texts](https://github.com/appium/ruby_lib/blob/35b1e25c46d9518101bec2410f6dcbc6b2c09ad6/lib/appium_lib/android/element/text.rb#L19) android
|
|
2298
2313
|
|
|
2299
2314
|
> def texts(value = false)
|
|
2300
2315
|
|
|
@@ -2311,7 +2326,7 @@ __Returns:__
|
|
|
2311
2326
|
|
|
2312
2327
|
--
|
|
2313
2328
|
|
|
2314
|
-
##### [first_text](https://github.com/appium/ruby_lib/blob/
|
|
2329
|
+
##### [first_text](https://github.com/appium/ruby_lib/blob/35b1e25c46d9518101bec2410f6dcbc6b2c09ad6/lib/appium_lib/android/element/text.rb#L26) android
|
|
2315
2330
|
|
|
2316
2331
|
> def first_text
|
|
2317
2332
|
|
|
@@ -2323,7 +2338,7 @@ __Returns:__
|
|
|
2323
2338
|
|
|
2324
2339
|
--
|
|
2325
2340
|
|
|
2326
|
-
##### [last_text](https://github.com/appium/ruby_lib/blob/
|
|
2341
|
+
##### [last_text](https://github.com/appium/ruby_lib/blob/35b1e25c46d9518101bec2410f6dcbc6b2c09ad6/lib/appium_lib/android/element/text.rb#L32) android
|
|
2327
2342
|
|
|
2328
2343
|
> def last_text
|
|
2329
2344
|
|
|
@@ -2335,7 +2350,7 @@ __Returns:__
|
|
|
2335
2350
|
|
|
2336
2351
|
--
|
|
2337
2352
|
|
|
2338
|
-
##### [text_exact](https://github.com/appium/ruby_lib/blob/
|
|
2353
|
+
##### [text_exact](https://github.com/appium/ruby_lib/blob/35b1e25c46d9518101bec2410f6dcbc6b2c09ad6/lib/appium_lib/android/element/text.rb#L39) android
|
|
2339
2354
|
|
|
2340
2355
|
> def text_exact(value)
|
|
2341
2356
|
|
|
@@ -2351,7 +2366,7 @@ __Returns:__
|
|
|
2351
2366
|
|
|
2352
2367
|
--
|
|
2353
2368
|
|
|
2354
|
-
##### [texts_exact](https://github.com/appium/ruby_lib/blob/
|
|
2369
|
+
##### [texts_exact](https://github.com/appium/ruby_lib/blob/35b1e25c46d9518101bec2410f6dcbc6b2c09ad6/lib/appium_lib/android/element/text.rb#L46) android
|
|
2355
2370
|
|
|
2356
2371
|
> def texts_exact(value)
|
|
2357
2372
|
|
|
@@ -2367,7 +2382,7 @@ __Returns:__
|
|
|
2367
2382
|
|
|
2368
2383
|
--
|
|
2369
2384
|
|
|
2370
|
-
##### [alert_click](https://github.com/appium/ruby_lib/blob/
|
|
2385
|
+
##### [alert_click](https://github.com/appium/ruby_lib/blob/35b1e25c46d9518101bec2410f6dcbc6b2c09ad6/lib/appium_lib/android/element/alert.rb#L6) android
|
|
2371
2386
|
|
|
2372
2387
|
> def alert_click(value)
|
|
2373
2388
|
|
|
@@ -2383,7 +2398,7 @@ __Returns:__
|
|
|
2383
2398
|
|
|
2384
2399
|
--
|
|
2385
2400
|
|
|
2386
|
-
##### [alert_accept](https://github.com/appium/ruby_lib/blob/
|
|
2401
|
+
##### [alert_accept](https://github.com/appium/ruby_lib/blob/35b1e25c46d9518101bec2410f6dcbc6b2c09ad6/lib/appium_lib/android/element/alert.rb#L13) android
|
|
2387
2402
|
|
|
2388
2403
|
> def alert_accept
|
|
2389
2404
|
|
|
@@ -2396,7 +2411,7 @@ __Returns:__
|
|
|
2396
2411
|
|
|
2397
2412
|
--
|
|
2398
2413
|
|
|
2399
|
-
##### [alert_accept_text](https://github.com/appium/ruby_lib/blob/
|
|
2414
|
+
##### [alert_accept_text](https://github.com/appium/ruby_lib/blob/35b1e25c46d9518101bec2410f6dcbc6b2c09ad6/lib/appium_lib/android/element/alert.rb#L20) android
|
|
2400
2415
|
|
|
2401
2416
|
> def alert_accept_text
|
|
2402
2417
|
|
|
@@ -2409,7 +2424,7 @@ __Returns:__
|
|
|
2409
2424
|
|
|
2410
2425
|
--
|
|
2411
2426
|
|
|
2412
|
-
##### [alert_dismiss](https://github.com/appium/ruby_lib/blob/
|
|
2427
|
+
##### [alert_dismiss](https://github.com/appium/ruby_lib/blob/35b1e25c46d9518101bec2410f6dcbc6b2c09ad6/lib/appium_lib/android/element/alert.rb#L27) android
|
|
2413
2428
|
|
|
2414
2429
|
> def alert_dismiss
|
|
2415
2430
|
|
|
@@ -2422,7 +2437,7 @@ __Returns:__
|
|
|
2422
2437
|
|
|
2423
2438
|
--
|
|
2424
2439
|
|
|
2425
|
-
##### [alert_dismiss_text](https://github.com/appium/ruby_lib/blob/
|
|
2440
|
+
##### [alert_dismiss_text](https://github.com/appium/ruby_lib/blob/35b1e25c46d9518101bec2410f6dcbc6b2c09ad6/lib/appium_lib/android/element/alert.rb#L34) android
|
|
2426
2441
|
|
|
2427
2442
|
> def alert_dismiss_text
|
|
2428
2443
|
|
|
@@ -2435,7 +2450,7 @@ __Returns:__
|
|
|
2435
2450
|
|
|
2436
2451
|
--
|
|
2437
2452
|
|
|
2438
|
-
##### [Button](https://github.com/appium/ruby_lib/blob/
|
|
2453
|
+
##### [Button](https://github.com/appium/ruby_lib/blob/35b1e25c46d9518101bec2410f6dcbc6b2c09ad6/lib/appium_lib/android/element/button.rb#L4) android
|
|
2439
2454
|
|
|
2440
2455
|
> Button = 'android.widget.Button'.freeze
|
|
2441
2456
|
|
|
@@ -2443,7 +2458,7 @@ __Returns:__
|
|
|
2443
2458
|
|
|
2444
2459
|
--
|
|
2445
2460
|
|
|
2446
|
-
##### [ImageButton](https://github.com/appium/ruby_lib/blob/
|
|
2461
|
+
##### [ImageButton](https://github.com/appium/ruby_lib/blob/35b1e25c46d9518101bec2410f6dcbc6b2c09ad6/lib/appium_lib/android/element/button.rb#L5) android
|
|
2447
2462
|
|
|
2448
2463
|
> ImageButton = 'android.widget.ImageButton'.freeze
|
|
2449
2464
|
|
|
@@ -2451,7 +2466,7 @@ __Returns:__
|
|
|
2451
2466
|
|
|
2452
2467
|
--
|
|
2453
2468
|
|
|
2454
|
-
##### [button](https://github.com/appium/ruby_lib/blob/
|
|
2469
|
+
##### [button](https://github.com/appium/ruby_lib/blob/35b1e25c46d9518101bec2410f6dcbc6b2c09ad6/lib/appium_lib/android/element/button.rb#L43) android
|
|
2455
2470
|
|
|
2456
2471
|
> def button(value)
|
|
2457
2472
|
|
|
@@ -2468,7 +2483,7 @@ __Returns:__
|
|
|
2468
2483
|
|
|
2469
2484
|
--
|
|
2470
2485
|
|
|
2471
|
-
##### [buttons](https://github.com/appium/ruby_lib/blob/
|
|
2486
|
+
##### [buttons](https://github.com/appium/ruby_lib/blob/35b1e25c46d9518101bec2410f6dcbc6b2c09ad6/lib/appium_lib/android/element/button.rb#L60) android
|
|
2472
2487
|
|
|
2473
2488
|
> def buttons(value = false)
|
|
2474
2489
|
|
|
@@ -2485,7 +2500,7 @@ __Returns:__
|
|
|
2485
2500
|
|
|
2486
2501
|
--
|
|
2487
2502
|
|
|
2488
|
-
##### [first_button](https://github.com/appium/ruby_lib/blob/
|
|
2503
|
+
##### [first_button](https://github.com/appium/ruby_lib/blob/35b1e25c46d9518101bec2410f6dcbc6b2c09ad6/lib/appium_lib/android/element/button.rb#L67) android
|
|
2489
2504
|
|
|
2490
2505
|
> def first_button
|
|
2491
2506
|
|
|
@@ -2497,7 +2512,7 @@ __Returns:__
|
|
|
2497
2512
|
|
|
2498
2513
|
--
|
|
2499
2514
|
|
|
2500
|
-
##### [last_button](https://github.com/appium/ruby_lib/blob/
|
|
2515
|
+
##### [last_button](https://github.com/appium/ruby_lib/blob/35b1e25c46d9518101bec2410f6dcbc6b2c09ad6/lib/appium_lib/android/element/button.rb#L73) android
|
|
2501
2516
|
|
|
2502
2517
|
> def last_button
|
|
2503
2518
|
|
|
@@ -2509,7 +2524,7 @@ __Returns:__
|
|
|
2509
2524
|
|
|
2510
2525
|
--
|
|
2511
2526
|
|
|
2512
|
-
##### [button_exact](https://github.com/appium/ruby_lib/blob/
|
|
2527
|
+
##### [button_exact](https://github.com/appium/ruby_lib/blob/35b1e25c46d9518101bec2410f6dcbc6b2c09ad6/lib/appium_lib/android/element/button.rb#L89) android
|
|
2513
2528
|
|
|
2514
2529
|
> def button_exact(value)
|
|
2515
2530
|
|
|
@@ -2525,7 +2540,7 @@ __Returns:__
|
|
|
2525
2540
|
|
|
2526
2541
|
--
|
|
2527
2542
|
|
|
2528
|
-
##### [buttons_exact](https://github.com/appium/ruby_lib/blob/
|
|
2543
|
+
##### [buttons_exact](https://github.com/appium/ruby_lib/blob/35b1e25c46d9518101bec2410f6dcbc6b2c09ad6/lib/appium_lib/android/element/button.rb#L96) android
|
|
2529
2544
|
|
|
2530
2545
|
> def buttons_exact(value)
|
|
2531
2546
|
|
|
@@ -2541,7 +2556,7 @@ __Returns:__
|
|
|
2541
2556
|
|
|
2542
2557
|
--
|
|
2543
2558
|
|
|
2544
|
-
##### [uiautomator_find](https://github.com/appium/ruby_lib/blob/
|
|
2559
|
+
##### [uiautomator_find](https://github.com/appium/ruby_lib/blob/35b1e25c46d9518101bec2410f6dcbc6b2c09ad6/lib/appium_lib/android/mobile_methods.rb#L10) android
|
|
2545
2560
|
|
|
2546
2561
|
> def uiautomator_find
|
|
2547
2562
|
|
|
@@ -2553,7 +2568,7 @@ find_element/s can be used with a [UISelector](http://developer.android.com/tool
|
|
|
2553
2568
|
|
|
2554
2569
|
--
|
|
2555
2570
|
|
|
2556
|
-
##### [find](https://github.com/appium/ruby_lib/blob/
|
|
2571
|
+
##### [find](https://github.com/appium/ruby_lib/blob/35b1e25c46d9518101bec2410f6dcbc6b2c09ad6/lib/appium_lib/android/element/generic.rb#L6) android
|
|
2557
2572
|
|
|
2558
2573
|
> def find(value)
|
|
2559
2574
|
|
|
@@ -2569,7 +2584,7 @@ __Returns:__
|
|
|
2569
2584
|
|
|
2570
2585
|
--
|
|
2571
2586
|
|
|
2572
|
-
##### [finds](https://github.com/appium/ruby_lib/blob/
|
|
2587
|
+
##### [finds](https://github.com/appium/ruby_lib/blob/35b1e25c46d9518101bec2410f6dcbc6b2c09ad6/lib/appium_lib/android/element/generic.rb#L13) android
|
|
2573
2588
|
|
|
2574
2589
|
> def finds(value)
|
|
2575
2590
|
|
|
@@ -2585,7 +2600,7 @@ __Returns:__
|
|
|
2585
2600
|
|
|
2586
2601
|
--
|
|
2587
2602
|
|
|
2588
|
-
##### [find_exact](https://github.com/appium/ruby_lib/blob/
|
|
2603
|
+
##### [find_exact](https://github.com/appium/ruby_lib/blob/35b1e25c46d9518101bec2410f6dcbc6b2c09ad6/lib/appium_lib/android/element/generic.rb#L20) android
|
|
2589
2604
|
|
|
2590
2605
|
> def find_exact(value)
|
|
2591
2606
|
|
|
@@ -2601,7 +2616,7 @@ __Returns:__
|
|
|
2601
2616
|
|
|
2602
2617
|
--
|
|
2603
2618
|
|
|
2604
|
-
##### [finds_exact](https://github.com/appium/ruby_lib/blob/
|
|
2619
|
+
##### [finds_exact](https://github.com/appium/ruby_lib/blob/35b1e25c46d9518101bec2410f6dcbc6b2c09ad6/lib/appium_lib/android/element/generic.rb#L27) android
|
|
2605
2620
|
|
|
2606
2621
|
> def finds_exact(value)
|
|
2607
2622
|
|
|
@@ -2617,7 +2632,7 @@ __Returns:__
|
|
|
2617
2632
|
|
|
2618
2633
|
--
|
|
2619
2634
|
|
|
2620
|
-
##### [scroll_to](https://github.com/appium/ruby_lib/blob/
|
|
2635
|
+
##### [scroll_to](https://github.com/appium/ruby_lib/blob/35b1e25c46d9518101bec2410f6dcbc6b2c09ad6/lib/appium_lib/android/element/generic.rb#L40) android
|
|
2621
2636
|
|
|
2622
2637
|
> def scroll_to(text, scrollable_index = 0)
|
|
2623
2638
|
|
|
@@ -2635,7 +2650,7 @@ __Returns:__
|
|
|
2635
2650
|
|
|
2636
2651
|
--
|
|
2637
2652
|
|
|
2638
|
-
##### [scroll_to_exact](https://github.com/appium/ruby_lib/blob/
|
|
2653
|
+
##### [scroll_to_exact](https://github.com/appium/ruby_lib/blob/35b1e25c46d9518101bec2410f6dcbc6b2c09ad6/lib/appium_lib/android/element/generic.rb#L54) android
|
|
2639
2654
|
|
|
2640
2655
|
> def scroll_to_exact(text, scrollable_index = 0)
|
|
2641
2656
|
|
|
@@ -2653,7 +2668,7 @@ __Returns:__
|
|
|
2653
2668
|
|
|
2654
2669
|
--
|
|
2655
2670
|
|
|
2656
|
-
##### [EditText](https://github.com/appium/ruby_lib/blob/
|
|
2671
|
+
##### [EditText](https://github.com/appium/ruby_lib/blob/35b1e25c46d9518101bec2410f6dcbc6b2c09ad6/lib/appium_lib/android/element/textfield.rb#L3) android
|
|
2657
2672
|
|
|
2658
2673
|
> EditText = 'android.widget.EditText'.freeze
|
|
2659
2674
|
|
|
@@ -2661,7 +2676,7 @@ __Returns:__
|
|
|
2661
2676
|
|
|
2662
2677
|
--
|
|
2663
2678
|
|
|
2664
|
-
##### [textfield](https://github.com/appium/ruby_lib/blob/
|
|
2679
|
+
##### [textfield](https://github.com/appium/ruby_lib/blob/35b1e25c46d9518101bec2410f6dcbc6b2c09ad6/lib/appium_lib/android/element/textfield.rb#L9) android
|
|
2665
2680
|
|
|
2666
2681
|
> def textfield(value)
|
|
2667
2682
|
|
|
@@ -2678,7 +2693,7 @@ __Returns:__
|
|
|
2678
2693
|
|
|
2679
2694
|
--
|
|
2680
2695
|
|
|
2681
|
-
##### [textfields](https://github.com/appium/ruby_lib/blob/
|
|
2696
|
+
##### [textfields](https://github.com/appium/ruby_lib/blob/35b1e25c46d9518101bec2410f6dcbc6b2c09ad6/lib/appium_lib/android/element/textfield.rb#L18) android
|
|
2682
2697
|
|
|
2683
2698
|
> def textfields(value = false)
|
|
2684
2699
|
|
|
@@ -2695,7 +2710,7 @@ __Returns:__
|
|
|
2695
2710
|
|
|
2696
2711
|
--
|
|
2697
2712
|
|
|
2698
|
-
##### [first_textfield](https://github.com/appium/ruby_lib/blob/
|
|
2713
|
+
##### [first_textfield](https://github.com/appium/ruby_lib/blob/35b1e25c46d9518101bec2410f6dcbc6b2c09ad6/lib/appium_lib/android/element/textfield.rb#L25) android
|
|
2699
2714
|
|
|
2700
2715
|
> def first_textfield
|
|
2701
2716
|
|
|
@@ -2707,7 +2722,7 @@ __Returns:__
|
|
|
2707
2722
|
|
|
2708
2723
|
--
|
|
2709
2724
|
|
|
2710
|
-
##### [last_textfield](https://github.com/appium/ruby_lib/blob/
|
|
2725
|
+
##### [last_textfield](https://github.com/appium/ruby_lib/blob/35b1e25c46d9518101bec2410f6dcbc6b2c09ad6/lib/appium_lib/android/element/textfield.rb#L31) android
|
|
2711
2726
|
|
|
2712
2727
|
> def last_textfield
|
|
2713
2728
|
|
|
@@ -2719,7 +2734,7 @@ __Returns:__
|
|
|
2719
2734
|
|
|
2720
2735
|
--
|
|
2721
2736
|
|
|
2722
|
-
##### [textfield_exact](https://github.com/appium/ruby_lib/blob/
|
|
2737
|
+
##### [textfield_exact](https://github.com/appium/ruby_lib/blob/35b1e25c46d9518101bec2410f6dcbc6b2c09ad6/lib/appium_lib/android/element/textfield.rb#L38) android
|
|
2723
2738
|
|
|
2724
2739
|
> def textfield_exact(value)
|
|
2725
2740
|
|
|
@@ -2735,7 +2750,7 @@ __Returns:__
|
|
|
2735
2750
|
|
|
2736
2751
|
--
|
|
2737
2752
|
|
|
2738
|
-
##### [textfields_exact](https://github.com/appium/ruby_lib/blob/
|
|
2753
|
+
##### [textfields_exact](https://github.com/appium/ruby_lib/blob/35b1e25c46d9518101bec2410f6dcbc6b2c09ad6/lib/appium_lib/android/element/textfield.rb#L45) android
|
|
2739
2754
|
|
|
2740
2755
|
> def textfields_exact(value)
|
|
2741
2756
|
|
|
@@ -2751,7 +2766,7 @@ __Returns:__
|
|
|
2751
2766
|
|
|
2752
2767
|
--
|
|
2753
2768
|
|
|
2754
|
-
##### [value](https://github.com/appium/ruby_lib/blob/
|
|
2769
|
+
##### [value](https://github.com/appium/ruby_lib/blob/35b1e25c46d9518101bec2410f6dcbc6b2c09ad6/lib/appium_lib/common/patch.rb#L12)
|
|
2755
2770
|
|
|
2756
2771
|
> def value
|
|
2757
2772
|
|
|
@@ -2761,7 +2776,7 @@ Fixes NoMethodError: undefined method `value' for Selenium::WebDriver::Element
|
|
|
2761
2776
|
|
|
2762
2777
|
--
|
|
2763
2778
|
|
|
2764
|
-
##### [name](https://github.com/appium/ruby_lib/blob/
|
|
2779
|
+
##### [name](https://github.com/appium/ruby_lib/blob/35b1e25c46d9518101bec2410f6dcbc6b2c09ad6/lib/appium_lib/common/patch.rb#L19)
|
|
2765
2780
|
|
|
2766
2781
|
> def name
|
|
2767
2782
|
|
|
@@ -2771,7 +2786,7 @@ Fixes NoMethodError: undefined method `name' for Selenium::WebDriver::Element
|
|
|
2771
2786
|
|
|
2772
2787
|
--
|
|
2773
2788
|
|
|
2774
|
-
##### [location_rel](https://github.com/appium/ruby_lib/blob/
|
|
2789
|
+
##### [location_rel](https://github.com/appium/ruby_lib/blob/35b1e25c46d9518101bec2410f6dcbc6b2c09ad6/lib/appium_lib/common/patch.rb#L31)
|
|
2775
2790
|
|
|
2776
2791
|
> def location_rel
|
|
2777
2792
|
|
|
@@ -2789,7 +2804,7 @@ __Returns:__
|
|
|
2789
2804
|
|
|
2790
2805
|
--
|
|
2791
2806
|
|
|
2792
|
-
##### [DEFAULT_HEADERS](https://github.com/appium/ruby_lib/blob/
|
|
2807
|
+
##### [DEFAULT_HEADERS](https://github.com/appium/ruby_lib/blob/35b1e25c46d9518101bec2410f6dcbc6b2c09ad6/lib/appium_lib/common/patch.rb#L152)
|
|
2793
2808
|
|
|
2794
2809
|
> DEFAULT_HEADERS = { 'Accept' => CONTENT_TYPE, 'User-Agent' => "appium/ruby_lib/#{::Appium::VERSION}" }.freeze
|
|
2795
2810
|
|
|
@@ -2797,7 +2812,7 @@ __Returns:__
|
|
|
2797
2812
|
|
|
2798
2813
|
--
|
|
2799
2814
|
|
|
2800
|
-
##### [patch_remote_driver_commands](https://github.com/appium/ruby_lib/blob/
|
|
2815
|
+
##### [patch_remote_driver_commands](https://github.com/appium/ruby_lib/blob/35b1e25c46d9518101bec2410f6dcbc6b2c09ad6/lib/appium_lib/common/patch.rb#L155)
|
|
2801
2816
|
|
|
2802
2817
|
> def patch_remote_driver_commands
|
|
2803
2818
|
|