appium_lib 9.4.3 → 9.4.4
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 +16 -0
- data/android_tests/api.apk +0 -0
- data/android_tests/readme.md +1 -0
- data/docs/android_docs.md +240 -256
- data/docs/ios_docs.md +278 -259
- data/docs/travis.sample.yml +24 -0
- data/docs_gen/make_docs.rb +2 -2
- data/ios_tests/lib/ios/specs/ios/xcuitest_gestures.rb +38 -1
- data/lib/appium_lib/android/helper.rb +4 -42
- data/lib/appium_lib/common/version.rb +2 -2
- data/lib/appium_lib/device/device.rb +17 -13
- data/lib/appium_lib/driver.rb +1 -2
- data/lib/appium_lib/ios/helper.rb +0 -56
- data/lib/appium_lib/ios/xcuitest_gestures.rb +17 -0
- data/release_notes.md +12 -0
- metadata +3 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 9d693f3d1b8d56f1ed49ba3708aa0ca3fbb1c9ab
|
4
|
+
data.tar.gz: 95b1935af2d83051bc5668bf8ab788b4bb5542d0
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: fc8df468c772690cd2dfa928578a4b5fa588c88f150066668d10d983e626ac5d732b05182f33cf66acf0ebf4da9607e8788927c46cd3c355e3020dbb0ed8c080
|
7
|
+
data.tar.gz: f553f164c5e1fed40af40dc6d404978830c7992b9611c4b68602fde6bb34f4989d44d31d79b82f9f2b336b033bfeef550d955a8b406768d2c8d2919c21f9afec
|
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.4.4
|
7
|
+
### 1. Enhancements
|
8
|
+
- add mobile gesture, `mobile: alert`
|
9
|
+
- Required over https://github.com/appium/appium-xcuitest-driver/releases/tag/v2.28.6
|
10
|
+
- add travis example for ios [#573](https://github.com/appium/ruby_lib/pull/573)
|
11
|
+
- remove some redundant code [#572](https://github.com/appium/ruby_lib/pull/572), [#571](https://github.com/appium/ruby_lib/pull/571)
|
12
|
+
- update api-demos [#569](https://github.com/appium/ruby_lib/issues/569)
|
13
|
+
|
14
|
+
### 2. Bug fixes
|
15
|
+
|
16
|
+
### 3. Deprecations
|
17
|
+
|
6
18
|
## v9.4.3
|
7
19
|
### 1. Enhancements
|
8
20
|
- Use uiautomator for uiautomator2 [#561](https://github.com/appium/ruby_lib/pull/561)
|
@@ -14,6 +26,10 @@ Release tags are https://github.com/appium/ruby_lib/releases .
|
|
14
26
|
|
15
27
|
### 3. Deprecations
|
16
28
|
|
29
|
+
### Special Thanks
|
30
|
+
- Thanks for checking uiautomator2
|
31
|
+
- [@Edouard-chin](https://github.com/Edouard-chin), [@rajdeepv](https://github.com/rajdeepv)
|
32
|
+
|
17
33
|
## v9.4.2
|
18
34
|
### 1. Enhancements
|
19
35
|
|
data/android_tests/api.apk
CHANGED
Binary file
|
data/android_tests/readme.md
CHANGED
@@ -10,6 +10,7 @@ ruby_lib's Android tests. Requires `Ruby 2.2+` or better.
|
|
10
10
|
- `gem install appium_console` if it's not installed already.
|
11
11
|
|
12
12
|
api.apk is from [appium/android-apidemos](https://github.com/appium/android-apidemos)
|
13
|
+
The way to generate api.apk is described in the repository.
|
13
14
|
|
14
15
|
#### Documentation
|
15
16
|
|
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/332599f8a5b134522f03ea375f7bc666e4e39c3d/lib/appium_lib/driver.rb#L76)
|
2
2
|
|
3
3
|
> def self.load_settings(opts = {})
|
4
4
|
|
@@ -27,7 +27,7 @@ __Returns:__
|
|
27
27
|
|
28
28
|
--
|
29
29
|
|
30
|
-
##### [load_appium_txt](https://github.com/appium/ruby_lib/blob/
|
30
|
+
##### [load_appium_txt](https://github.com/appium/ruby_lib/blob/332599f8a5b134522f03ea375f7bc666e4e39c3d/lib/appium_lib/driver.rb#L112)
|
31
31
|
|
32
32
|
> def self.load_settings(opts = {})
|
33
33
|
|
@@ -57,7 +57,7 @@ __Returns:__
|
|
57
57
|
|
58
58
|
--
|
59
59
|
|
60
|
-
##### [expand_required_files](https://github.com/appium/ruby_lib/blob/
|
60
|
+
##### [expand_required_files](https://github.com/appium/ruby_lib/blob/332599f8a5b134522f03ea375f7bc666e4e39c3d/lib/appium_lib/driver.rb#L118)
|
61
61
|
|
62
62
|
> def self.expand_required_files(base_dir, file_paths)
|
63
63
|
|
@@ -75,7 +75,7 @@ __Returns:__
|
|
75
75
|
|
76
76
|
--
|
77
77
|
|
78
|
-
##### [symbolize_keys](https://github.com/appium/ruby_lib/blob/
|
78
|
+
##### [symbolize_keys](https://github.com/appium/ruby_lib/blob/332599f8a5b134522f03ea375f7bc666e4e39c3d/lib/appium_lib/driver.rb#L150)
|
79
79
|
|
80
80
|
> def self.symbolize_keys(hash)
|
81
81
|
|
@@ -86,7 +86,7 @@ https://github.com/rails/docrails/blob/a3b1105ada3da64acfa3843b164b14b734456a50/
|
|
86
86
|
|
87
87
|
--
|
88
88
|
|
89
|
-
##### [promote_singleton_appium_methods](https://github.com/appium/ruby_lib/blob/
|
89
|
+
##### [promote_singleton_appium_methods](https://github.com/appium/ruby_lib/blob/332599f8a5b134522f03ea375f7bc666e4e39c3d/lib/appium_lib/driver.rb#L171)
|
90
90
|
|
91
91
|
> def self.promote_singleton_appium_methods(modules)
|
92
92
|
|
@@ -104,7 +104,7 @@ otherwise, the array of modules will be used as the promotion target.
|
|
104
104
|
|
105
105
|
--
|
106
106
|
|
107
|
-
##### [promote_appium_methods](https://github.com/appium/ruby_lib/blob/
|
107
|
+
##### [promote_appium_methods](https://github.com/appium/ruby_lib/blob/332599f8a5b134522f03ea375f7bc666e4e39c3d/lib/appium_lib/driver.rb#L224)
|
108
108
|
|
109
109
|
> def self.promote_appium_methods(class_array)
|
110
110
|
|
@@ -134,7 +134,7 @@ __Parameters:__
|
|
134
134
|
|
135
135
|
--
|
136
136
|
|
137
|
-
##### [init_caps_for_appium](https://github.com/appium/ruby_lib/blob/
|
137
|
+
##### [init_caps_for_appium](https://github.com/appium/ruby_lib/blob/332599f8a5b134522f03ea375f7bc666e4e39c3d/lib/appium_lib/driver.rb#L259)
|
138
138
|
|
139
139
|
> def self.init_caps_for_appium(opts_caps = {})
|
140
140
|
|
@@ -153,7 +153,7 @@ __Returns:__
|
|
153
153
|
|
154
154
|
--
|
155
155
|
|
156
|
-
##### [global_webdriver_http_sleep](https://github.com/appium/ruby_lib/blob/
|
156
|
+
##### [global_webdriver_http_sleep](https://github.com/appium/ruby_lib/blob/332599f8a5b134522f03ea375f7bc666e4e39c3d/lib/appium_lib/driver.rb#L277)
|
157
157
|
|
158
158
|
> def global_webdriver_http_sleep
|
159
159
|
|
@@ -161,7 +161,7 @@ The amount to sleep in seconds before every webdriver http call.
|
|
161
161
|
|
162
162
|
--
|
163
163
|
|
164
|
-
##### [global_webdriver_http_sleep=](https://github.com/appium/ruby_lib/blob/
|
164
|
+
##### [global_webdriver_http_sleep=](https://github.com/appium/ruby_lib/blob/332599f8a5b134522f03ea375f7bc666e4e39c3d/lib/appium_lib/driver.rb#L277)
|
165
165
|
|
166
166
|
> def global_webdriver_http_sleep=(value)
|
167
167
|
|
@@ -169,7 +169,7 @@ The amount to sleep in seconds before every webdriver http call.
|
|
169
169
|
|
170
170
|
--
|
171
171
|
|
172
|
-
##### [caps](https://github.com/appium/ruby_lib/blob/
|
172
|
+
##### [caps](https://github.com/appium/ruby_lib/blob/332599f8a5b134522f03ea375f7bc666e4e39c3d/lib/appium_lib/driver.rb#L279)
|
173
173
|
|
174
174
|
> def caps
|
175
175
|
|
@@ -177,7 +177,7 @@ Selenium webdriver capabilities
|
|
177
177
|
|
178
178
|
--
|
179
179
|
|
180
|
-
##### [caps=](https://github.com/appium/ruby_lib/blob/
|
180
|
+
##### [caps=](https://github.com/appium/ruby_lib/blob/332599f8a5b134522f03ea375f7bc666e4e39c3d/lib/appium_lib/driver.rb#L279)
|
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/332599f8a5b134522f03ea375f7bc666e4e39c3d/lib/appium_lib/driver.rb#L281)
|
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/332599f8a5b134522f03ea375f7bc666e4e39c3d/lib/appium_lib/driver.rb#L281)
|
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/332599f8a5b134522f03ea375f7bc666e4e39c3d/lib/appium_lib/driver.rb#L283)
|
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/332599f8a5b134522f03ea375f7bc666e4e39c3d/lib/appium_lib/driver.rb#L283)
|
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/332599f8a5b134522f03ea375f7bc666e4e39c3d/lib/appium_lib/driver.rb#L288)
|
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/332599f8a5b134522f03ea375f7bc666e4e39c3d/lib/appium_lib/driver.rb#L290)
|
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/332599f8a5b134522f03ea375f7bc666e4e39c3d/lib/appium_lib/driver.rb#L290)
|
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/332599f8a5b134522f03ea375f7bc666e4e39c3d/lib/appium_lib/driver.rb#L292)
|
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/332599f8a5b134522f03ea375f7bc666e4e39c3d/lib/appium_lib/driver.rb#L292)
|
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/332599f8a5b134522f03ea375f7bc666e4e39c3d/lib/appium_lib/driver.rb#L294)
|
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/332599f8a5b134522f03ea375f7bc666e4e39c3d/lib/appium_lib/driver.rb#L294)
|
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/332599f8a5b134522f03ea375f7bc666e4e39c3d/lib/appium_lib/driver.rb#L296)
|
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/332599f8a5b134522f03ea375f7bc666e4e39c3d/lib/appium_lib/driver.rb#L296)
|
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/332599f8a5b134522f03ea375f7bc666e4e39c3d/lib/appium_lib/driver.rb#L298)
|
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/332599f8a5b134522f03ea375f7bc666e4e39c3d/lib/appium_lib/driver.rb#L298)
|
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/332599f8a5b134522f03ea375f7bc666e4e39c3d/lib/appium_lib/driver.rb#L301)
|
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/332599f8a5b134522f03ea375f7bc666e4e39c3d/lib/appium_lib/driver.rb#L303)
|
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/332599f8a5b134522f03ea375f7bc666e4e39c3d/lib/appium_lib/driver.rb#L305)
|
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/332599f8a5b134522f03ea375f7bc666e4e39c3d/lib/appium_lib/driver.rb#L305)
|
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/332599f8a5b134522f03ea375f7bc666e4e39c3d/lib/appium_lib/driver.rb#L307)
|
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/332599f8a5b134522f03ea375f7bc666e4e39c3d/lib/appium_lib/driver.rb#L307)
|
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/332599f8a5b134522f03ea375f7bc666e4e39c3d/lib/appium_lib/driver.rb#L310)
|
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/332599f8a5b134522f03ea375f7bc666e4e39c3d/lib/appium_lib/driver.rb#L313)
|
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/332599f8a5b134522f03ea375f7bc666e4e39c3d/lib/appium_lib/driver.rb#L318)
|
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/332599f8a5b134522f03ea375f7bc666e4e39c3d/lib/appium_lib/driver.rb#L323)
|
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/332599f8a5b134522f03ea375f7bc666e4e39c3d/lib/appium_lib/driver.rb#L363)
|
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/332599f8a5b134522f03ea375f7bc666e4e39c3d/lib/appium_lib/driver.rb#L441)
|
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/332599f8a5b134522f03ea375f7bc666e4e39c3d/lib/appium_lib/driver.rb#L466)
|
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/332599f8a5b134522f03ea375f7bc666e4e39c3d/lib/appium_lib/driver.rb#L472)
|
452
452
|
|
453
453
|
> def automation_name_is_xcuitest?
|
454
454
|
|
@@ -460,7 +460,7 @@ __Returns:__
|
|
460
460
|
|
461
461
|
--
|
462
462
|
|
463
|
-
##### [automation_name_is_uiautomator2?](https://github.com/appium/ruby_lib/blob/
|
463
|
+
##### [automation_name_is_uiautomator2?](https://github.com/appium/ruby_lib/blob/332599f8a5b134522f03ea375f7bc666e4e39c3d/lib/appium_lib/driver.rb#L478)
|
464
464
|
|
465
465
|
> def automation_name_is_uiautomator2?
|
466
466
|
|
@@ -472,7 +472,7 @@ __Returns:__
|
|
472
472
|
|
473
473
|
--
|
474
474
|
|
475
|
-
##### [check_server_version_xcuitest](https://github.com/appium/ruby_lib/blob/
|
475
|
+
##### [check_server_version_xcuitest](https://github.com/appium/ruby_lib/blob/332599f8a5b134522f03ea375f7bc666e4e39c3d/lib/appium_lib/driver.rb#L485)
|
476
476
|
|
477
477
|
> def check_server_version_xcuitest
|
478
478
|
|
@@ -485,7 +485,7 @@ __Returns:__
|
|
485
485
|
|
486
486
|
--
|
487
487
|
|
488
|
-
##### [appium_server_version](https://github.com/appium/ruby_lib/blob/
|
488
|
+
##### [appium_server_version](https://github.com/appium/ruby_lib/blob/332599f8a5b134522f03ea375f7bc666e4e39c3d/lib/appium_lib/driver.rb#L506)
|
489
489
|
|
490
490
|
> def appium_server_version
|
491
491
|
|
@@ -506,7 +506,7 @@ __Returns:__
|
|
506
506
|
|
507
507
|
--
|
508
508
|
|
509
|
-
##### [appium_client_version](https://github.com/appium/ruby_lib/blob/
|
509
|
+
##### [appium_client_version](https://github.com/appium/ruby_lib/blob/332599f8a5b134522f03ea375f7bc666e4e39c3d/lib/appium_lib/driver.rb#L523)
|
510
510
|
|
511
511
|
> def appium_client_version
|
512
512
|
|
@@ -524,7 +524,7 @@ __Returns:__
|
|
524
524
|
|
525
525
|
--
|
526
526
|
|
527
|
-
##### [absolute_app_path](https://github.com/appium/ruby_lib/blob/
|
527
|
+
##### [absolute_app_path](https://github.com/appium/ruby_lib/blob/332599f8a5b134522f03ea375f7bc666e4e39c3d/lib/appium_lib/driver.rb#L535)
|
528
528
|
|
529
529
|
> def self.absolute_app_path(opts)
|
530
530
|
|
@@ -541,7 +541,7 @@ __Returns:__
|
|
541
541
|
|
542
542
|
--
|
543
543
|
|
544
|
-
##### [server_url](https://github.com/appium/ruby_lib/blob/
|
544
|
+
##### [server_url](https://github.com/appium/ruby_lib/blob/332599f8a5b134522f03ea375f7bc666e4e39c3d/lib/appium_lib/driver.rb#L568)
|
545
545
|
|
546
546
|
> def server_url
|
547
547
|
|
@@ -553,7 +553,7 @@ __Returns:__
|
|
553
553
|
|
554
554
|
--
|
555
555
|
|
556
|
-
##### [restart](https://github.com/appium/ruby_lib/blob/
|
556
|
+
##### [restart](https://github.com/appium/ruby_lib/blob/332599f8a5b134522f03ea375f7bc666e4e39c3d/lib/appium_lib/driver.rb#L579)
|
557
557
|
|
558
558
|
> def restart
|
559
559
|
|
@@ -565,7 +565,7 @@ __Returns:__
|
|
565
565
|
|
566
566
|
--
|
567
567
|
|
568
|
-
##### [screenshot](https://github.com/appium/ruby_lib/blob/
|
568
|
+
##### [screenshot](https://github.com/appium/ruby_lib/blob/332599f8a5b134522f03ea375f7bc666e4e39c3d/lib/appium_lib/driver.rb#L590)
|
569
569
|
|
570
570
|
> def screenshot(png_save_path)
|
571
571
|
|
@@ -583,7 +583,7 @@ __Returns:__
|
|
583
583
|
|
584
584
|
--
|
585
585
|
|
586
|
-
##### [driver_quit](https://github.com/appium/ruby_lib/blob/
|
586
|
+
##### [driver_quit](https://github.com/appium/ruby_lib/blob/332599f8a5b134522f03ea375f7bc666e4e39c3d/lib/appium_lib/driver.rb#L597)
|
587
587
|
|
588
588
|
> def driver_quit
|
589
589
|
|
@@ -595,7 +595,7 @@ __Returns:__
|
|
595
595
|
|
596
596
|
--
|
597
597
|
|
598
|
-
##### [start_driver](https://github.com/appium/ruby_lib/blob/
|
598
|
+
##### [start_driver](https://github.com/appium/ruby_lib/blob/332599f8a5b134522f03ea375f7bc666e4e39c3d/lib/appium_lib/driver.rb#L607)
|
599
599
|
|
600
600
|
> def start_driver
|
601
601
|
|
@@ -607,7 +607,7 @@ __Returns:__
|
|
607
607
|
|
608
608
|
--
|
609
609
|
|
610
|
-
##### [no_wait](https://github.com/appium/ruby_lib/blob/
|
610
|
+
##### [no_wait](https://github.com/appium/ruby_lib/blob/332599f8a5b134522f03ea375f7bc666e4e39c3d/lib/appium_lib/driver.rb#L645)
|
611
611
|
|
612
612
|
> def no_wait
|
613
613
|
|
@@ -615,7 +615,7 @@ Set implicit wait to zero.
|
|
615
615
|
|
616
616
|
--
|
617
617
|
|
618
|
-
##### [set_wait](https://github.com/appium/ruby_lib/blob/
|
618
|
+
##### [set_wait](https://github.com/appium/ruby_lib/blob/332599f8a5b134522f03ea375f7bc666e4e39c3d/lib/appium_lib/driver.rb#L659)
|
619
619
|
|
620
620
|
> def set_wait(timeout = nil)
|
621
621
|
|
@@ -637,7 +637,7 @@ __Returns:__
|
|
637
637
|
|
638
638
|
--
|
639
639
|
|
640
|
-
##### [exists](https://github.com/appium/ruby_lib/blob/
|
640
|
+
##### [exists](https://github.com/appium/ruby_lib/blob/332599f8a5b134522f03ea375f7bc666e4e39c3d/lib/appium_lib/driver.rb#L676)
|
641
641
|
|
642
642
|
> def exists(pre_check = 0, post_check = @default_wait)
|
643
643
|
|
@@ -661,7 +661,7 @@ __Returns:__
|
|
661
661
|
|
662
662
|
--
|
663
663
|
|
664
|
-
##### [execute_script](https://github.com/appium/ruby_lib/blob/
|
664
|
+
##### [execute_script](https://github.com/appium/ruby_lib/blob/332599f8a5b134522f03ea375f7bc666e4e39c3d/lib/appium_lib/driver.rb#L700)
|
665
665
|
|
666
666
|
> def execute_script(script, *args)
|
667
667
|
|
@@ -679,7 +679,7 @@ __Returns:__
|
|
679
679
|
|
680
680
|
--
|
681
681
|
|
682
|
-
##### [find_elements](https://github.com/appium/ruby_lib/blob/
|
682
|
+
##### [find_elements](https://github.com/appium/ruby_lib/blob/332599f8a5b134522f03ea375f7bc666e4e39c3d/lib/appium_lib/driver.rb#L722)
|
683
683
|
|
684
684
|
> def find_elements(*args)
|
685
685
|
|
@@ -705,7 +705,7 @@ __Returns:__
|
|
705
705
|
|
706
706
|
--
|
707
707
|
|
708
|
-
##### [find_element](https://github.com/appium/ruby_lib/blob/
|
708
|
+
##### [find_element](https://github.com/appium/ruby_lib/blob/332599f8a5b134522f03ea375f7bc666e4e39c3d/lib/appium_lib/driver.rb#L737)
|
709
709
|
|
710
710
|
> def find_element(*args)
|
711
711
|
|
@@ -726,7 +726,7 @@ __Returns:__
|
|
726
726
|
|
727
727
|
--
|
728
728
|
|
729
|
-
##### [set_location](https://github.com/appium/ruby_lib/blob/
|
729
|
+
##### [set_location](https://github.com/appium/ruby_lib/blob/332599f8a5b134522f03ea375f7bc666e4e39c3d/lib/appium_lib/driver.rb#L750)
|
730
730
|
|
731
731
|
> def set_location(opts = {})
|
732
732
|
|
@@ -742,7 +742,7 @@ __Returns:__
|
|
742
742
|
|
743
743
|
--
|
744
744
|
|
745
|
-
##### [x](https://github.com/appium/ruby_lib/blob/
|
745
|
+
##### [x](https://github.com/appium/ruby_lib/blob/332599f8a5b134522f03ea375f7bc666e4e39c3d/lib/appium_lib/driver.rb#L760)
|
746
746
|
|
747
747
|
> def x
|
748
748
|
|
@@ -755,7 +755,7 @@ __Returns:__
|
|
755
755
|
|
756
756
|
--
|
757
757
|
|
758
|
-
##### [set_automation_name_if_nil](https://github.com/appium/ruby_lib/blob/
|
758
|
+
##### [set_automation_name_if_nil](https://github.com/appium/ruby_lib/blob/332599f8a5b134522f03ea375f7bc666e4e39c3d/lib/appium_lib/driver.rb#L769)
|
759
759
|
|
760
760
|
> def set_automation_name_if_nil
|
761
761
|
|
@@ -764,7 +764,7 @@ Since @automation_name is set only client side before start_driver is called.
|
|
764
764
|
|
765
765
|
--
|
766
766
|
|
767
|
-
##### [logger=](https://github.com/appium/ruby_lib/blob/
|
767
|
+
##### [logger=](https://github.com/appium/ruby_lib/blob/332599f8a5b134522f03ea375f7bc666e4e39c3d/lib/appium_lib/logger.rb#L13)
|
768
768
|
|
769
769
|
> def logger=(value)
|
770
770
|
|
@@ -776,7 +776,7 @@ __Parameters:__
|
|
776
776
|
|
777
777
|
--
|
778
778
|
|
779
|
-
##### [logger](https://github.com/appium/ruby_lib/blob/
|
779
|
+
##### [logger](https://github.com/appium/ruby_lib/blob/332599f8a5b134522f03ea375f7bc666e4e39c3d/lib/appium_lib/logger.rb#L17)
|
780
780
|
|
781
781
|
> def logger
|
782
782
|
|
@@ -784,7 +784,7 @@ __Parameters:__
|
|
784
784
|
|
785
785
|
--
|
786
786
|
|
787
|
-
##### [app_strings](https://github.com/appium/ruby_lib/blob/
|
787
|
+
##### [app_strings](https://github.com/appium/ruby_lib/blob/332599f8a5b134522f03ea375f7bc666e4e39c3d/lib/appium_lib/device/device.rb#L7)
|
788
788
|
|
789
789
|
> def app_strings
|
790
790
|
|
@@ -795,7 +795,7 @@ app_strings #=> "TransitionsTitle"=>"Transitions", "WebTitle"=>"Web"
|
|
795
795
|
|
796
796
|
--
|
797
797
|
|
798
|
-
##### [background_app](https://github.com/appium/ruby_lib/blob/
|
798
|
+
##### [background_app](https://github.com/appium/ruby_lib/blob/332599f8a5b134522f03ea375f7bc666e4e39c3d/lib/appium_lib/device/device.rb#L13)
|
799
799
|
|
800
800
|
> def background_app
|
801
801
|
|
@@ -804,7 +804,7 @@ This is a blocking application
|
|
804
804
|
|
805
805
|
--
|
806
806
|
|
807
|
-
##### [current_activity](https://github.com/appium/ruby_lib/blob/
|
807
|
+
##### [current_activity](https://github.com/appium/ruby_lib/blob/332599f8a5b134522f03ea375f7bc666e4e39c3d/lib/appium_lib/device/device.rb#L24)
|
808
808
|
|
809
809
|
> def current_activity
|
810
810
|
|
@@ -812,7 +812,7 @@ This is a blocking application
|
|
812
812
|
|
813
813
|
--
|
814
814
|
|
815
|
-
##### [get_system_bars](https://github.com/appium/ruby_lib/blob/
|
815
|
+
##### [get_system_bars](https://github.com/appium/ruby_lib/blob/332599f8a5b134522f03ea375f7bc666e4e39c3d/lib/appium_lib/device/device.rb#L26)
|
816
816
|
|
817
817
|
> def get_system_bars
|
818
818
|
|
@@ -827,7 +827,7 @@ __Returns:__
|
|
827
827
|
|
828
828
|
--
|
829
829
|
|
830
|
-
##### [get_display_density](https://github.com/appium/ruby_lib/blob/
|
830
|
+
##### [get_display_density](https://github.com/appium/ruby_lib/blob/332599f8a5b134522f03ea375f7bc666e4e39c3d/lib/appium_lib/device/device.rb#L34)
|
831
831
|
|
832
832
|
> def get_display_density
|
833
833
|
|
@@ -842,7 +842,7 @@ __Returns:__
|
|
842
842
|
|
843
843
|
--
|
844
844
|
|
845
|
-
##### [is_keyboard_shown](https://github.com/appium/ruby_lib/blob/
|
845
|
+
##### [is_keyboard_shown](https://github.com/appium/ruby_lib/blob/332599f8a5b134522f03ea375f7bc666e4e39c3d/lib/appium_lib/device/device.rb#L42)
|
846
846
|
|
847
847
|
> def is_keyboard_shown
|
848
848
|
|
@@ -857,7 +857,7 @@ __Returns:__
|
|
857
857
|
|
858
858
|
--
|
859
859
|
|
860
|
-
##### [launch_app](https://github.com/appium/ruby_lib/blob/
|
860
|
+
##### [launch_app](https://github.com/appium/ruby_lib/blob/332599f8a5b134522f03ea375f7bc666e4e39c3d/lib/appium_lib/device/device.rb#L50)
|
861
861
|
|
862
862
|
> def launch_app
|
863
863
|
|
@@ -865,7 +865,7 @@ Start the simulator and application configured with desired capabilities
|
|
865
865
|
|
866
866
|
--
|
867
867
|
|
868
|
-
##### [reset](https://github.com/appium/ruby_lib/blob/
|
868
|
+
##### [reset](https://github.com/appium/ruby_lib/blob/332599f8a5b134522f03ea375f7bc666e4e39c3d/lib/appium_lib/device/device.rb#L53)
|
869
869
|
|
870
870
|
> def reset
|
871
871
|
|
@@ -873,7 +873,7 @@ Reset the device, relaunching the application.
|
|
873
873
|
|
874
874
|
--
|
875
875
|
|
876
|
-
##### [shake](https://github.com/appium/ruby_lib/blob/
|
876
|
+
##### [shake](https://github.com/appium/ruby_lib/blob/332599f8a5b134522f03ea375f7bc666e4e39c3d/lib/appium_lib/device/device.rb#L56)
|
877
877
|
|
878
878
|
> def shake
|
879
879
|
|
@@ -881,7 +881,7 @@ Cause the device to shake
|
|
881
881
|
|
882
882
|
--
|
883
883
|
|
884
|
-
##### [toggle_flight_mode](https://github.com/appium/ruby_lib/blob/
|
884
|
+
##### [toggle_flight_mode](https://github.com/appium/ruby_lib/blob/332599f8a5b134522f03ea375f7bc666e4e39c3d/lib/appium_lib/device/device.rb#L59)
|
885
885
|
|
886
886
|
> def toggle_flight_mode
|
887
887
|
|
@@ -889,7 +889,7 @@ Toggle flight mode on or off
|
|
889
889
|
|
890
890
|
--
|
891
891
|
|
892
|
-
##### [device_locked?](https://github.com/appium/ruby_lib/blob/
|
892
|
+
##### [device_locked?](https://github.com/appium/ruby_lib/blob/332599f8a5b134522f03ea375f7bc666e4e39c3d/lib/appium_lib/device/device.rb#L62)
|
893
893
|
|
894
894
|
> def device_locked?
|
895
895
|
|
@@ -897,7 +897,7 @@ Toggle flight mode on or off
|
|
897
897
|
|
898
898
|
--
|
899
899
|
|
900
|
-
##### [hide_keyboard](https://github.com/appium/ruby_lib/blob/
|
900
|
+
##### [hide_keyboard](https://github.com/appium/ruby_lib/blob/332599f8a5b134522f03ea375f7bc666e4e39c3d/lib/appium_lib/device/device.rb#L64)
|
901
901
|
|
902
902
|
> def hide_keyboard
|
903
903
|
|
@@ -906,11 +906,15 @@ Hide the onscreen keyboard
|
|
906
906
|
__Parameters:__
|
907
907
|
|
908
908
|
[String] close_key - The name of the key which closes the keyboard.
|
909
|
-
Defaults to 'Done'.
|
909
|
+
Defaults to 'Done' for iOS(except for XCUITest).
|
910
|
+
|
911
|
+
[Symbol] strategy - The symbol of the strategy which closes the keyboard.
|
912
|
+
XCUITest ignore this argument.
|
913
|
+
Default for iOS is `:pressKey`. Default for Android is `:tapOutside`.
|
910
914
|
|
911
915
|
--
|
912
916
|
|
913
|
-
##### [press_keycode](https://github.com/appium/ruby_lib/blob/
|
917
|
+
##### [press_keycode](https://github.com/appium/ruby_lib/blob/332599f8a5b134522f03ea375f7bc666e4e39c3d/lib/appium_lib/device/device.rb#L77)
|
914
918
|
|
915
919
|
> def press_keycode
|
916
920
|
|
@@ -925,7 +929,7 @@ __Parameters:__
|
|
925
929
|
|
926
930
|
--
|
927
931
|
|
928
|
-
##### [long_press_keycode](https://github.com/appium/ruby_lib/blob/
|
932
|
+
##### [long_press_keycode](https://github.com/appium/ruby_lib/blob/332599f8a5b134522f03ea375f7bc666e4e39c3d/lib/appium_lib/device/device.rb#L83)
|
929
933
|
|
930
934
|
> def long_press_keycode
|
931
935
|
|
@@ -940,7 +944,7 @@ __Parameters:__
|
|
940
944
|
|
941
945
|
--
|
942
946
|
|
943
|
-
##### [push_file](https://github.com/appium/ruby_lib/blob/
|
947
|
+
##### [push_file](https://github.com/appium/ruby_lib/blob/332599f8a5b134522f03ea375f7bc666e4e39c3d/lib/appium_lib/device/device.rb#L89)
|
944
948
|
|
945
949
|
> def push_file
|
946
950
|
|
@@ -954,7 +958,7 @@ __Parameters:__
|
|
954
958
|
|
955
959
|
--
|
956
960
|
|
957
|
-
##### [pull_file](https://github.com/appium/ruby_lib/blob/
|
961
|
+
##### [pull_file](https://github.com/appium/ruby_lib/blob/332599f8a5b134522f03ea375f7bc666e4e39c3d/lib/appium_lib/device/device.rb#L94)
|
958
962
|
|
959
963
|
> def pull_file
|
960
964
|
|
@@ -971,7 +975,7 @@ __Parameters:__
|
|
971
975
|
|
972
976
|
--
|
973
977
|
|
974
|
-
##### [pull_folder](https://github.com/appium/ruby_lib/blob/
|
978
|
+
##### [pull_folder](https://github.com/appium/ruby_lib/blob/332599f8a5b134522f03ea375f7bc666e4e39c3d/lib/appium_lib/device/device.rb#L104)
|
975
979
|
|
976
980
|
> def pull_folder
|
977
981
|
|
@@ -986,7 +990,7 @@ __Parameters:__
|
|
986
990
|
|
987
991
|
--
|
988
992
|
|
989
|
-
##### [touch_id](https://github.com/appium/ruby_lib/blob/
|
993
|
+
##### [touch_id](https://github.com/appium/ruby_lib/blob/332599f8a5b134522f03ea375f7bc666e4e39c3d/lib/appium_lib/device/device.rb#L112)
|
990
994
|
|
991
995
|
> def touch_id
|
992
996
|
|
@@ -1003,7 +1007,7 @@ Defaults to true.
|
|
1003
1007
|
|
1004
1008
|
--
|
1005
1009
|
|
1006
|
-
##### [toggle_touch_id_enrollment](https://github.com/appium/ruby_lib/blob/
|
1010
|
+
##### [toggle_touch_id_enrollment](https://github.com/appium/ruby_lib/blob/332599f8a5b134522f03ea375f7bc666e4e39c3d/lib/appium_lib/device/device.rb#L121)
|
1007
1011
|
|
1008
1012
|
> def toggle_touch_id_enrollment
|
1009
1013
|
|
@@ -1011,7 +1015,7 @@ iOS Simulator only: Toggle touch id enrollment on an iOS Simulator.
|
|
1011
1015
|
|
1012
1016
|
--
|
1013
1017
|
|
1014
|
-
##### [end_coverage](https://github.com/appium/ruby_lib/blob/
|
1018
|
+
##### [end_coverage](https://github.com/appium/ruby_lib/blob/332599f8a5b134522f03ea375f7bc666e4e39c3d/lib/appium_lib/device/device.rb#L124)
|
1015
1019
|
|
1016
1020
|
> def end_coverage
|
1017
1021
|
|
@@ -1025,7 +1029,7 @@ __Parameters:__
|
|
1025
1029
|
|
1026
1030
|
--
|
1027
1031
|
|
1028
|
-
##### [get_settings](https://github.com/appium/ruby_lib/blob/
|
1032
|
+
##### [get_settings](https://github.com/appium/ruby_lib/blob/332599f8a5b134522f03ea375f7bc666e4e39c3d/lib/appium_lib/device/device.rb#L129)
|
1029
1033
|
|
1030
1034
|
> def get_settings
|
1031
1035
|
|
@@ -1033,7 +1037,7 @@ Get appium Settings for current test session
|
|
1033
1037
|
|
1034
1038
|
--
|
1035
1039
|
|
1036
|
-
##### [update_settings](https://github.com/appium/ruby_lib/blob/
|
1040
|
+
##### [update_settings](https://github.com/appium/ruby_lib/blob/332599f8a5b134522f03ea375f7bc666e4e39c3d/lib/appium_lib/device/device.rb#L132)
|
1037
1041
|
|
1038
1042
|
> def update_settings
|
1039
1043
|
|
@@ -1045,7 +1049,7 @@ __Parameters:__
|
|
1045
1049
|
|
1046
1050
|
--
|
1047
1051
|
|
1048
|
-
##### [start_activity](https://github.com/appium/ruby_lib/blob/
|
1052
|
+
##### [start_activity](https://github.com/appium/ruby_lib/blob/332599f8a5b134522f03ea375f7bc666e4e39c3d/lib/appium_lib/device/device.rb#L136)
|
1049
1053
|
|
1050
1054
|
> def start_activity
|
1051
1055
|
|
@@ -1059,7 +1063,7 @@ start_activity app_package: 'io.appium.android.apis',
|
|
1059
1063
|
|
1060
1064
|
--
|
1061
1065
|
|
1062
|
-
##### [get_network_connection](https://github.com/appium/ruby_lib/blob/
|
1066
|
+
##### [get_network_connection](https://github.com/appium/ruby_lib/blob/332599f8a5b134522f03ea375f7bc666e4e39c3d/lib/appium_lib/device/device.rb#L150)
|
1063
1067
|
|
1064
1068
|
> def get_network_connection
|
1065
1069
|
|
@@ -1068,7 +1072,7 @@ See set_network_connection method for return value
|
|
1068
1072
|
|
1069
1073
|
--
|
1070
1074
|
|
1071
|
-
##### [set_network_connection](https://github.com/appium/ruby_lib/blob/
|
1075
|
+
##### [set_network_connection](https://github.com/appium/ruby_lib/blob/332599f8a5b134522f03ea375f7bc666e4e39c3d/lib/appium_lib/device/device.rb#L154)
|
1072
1076
|
|
1073
1077
|
> def set_network_connection
|
1074
1078
|
|
@@ -1087,7 +1091,7 @@ __Parameters:__
|
|
1087
1091
|
|
1088
1092
|
--
|
1089
1093
|
|
1090
|
-
##### [set_immediate_value](https://github.com/appium/ruby_lib/blob/
|
1094
|
+
##### [set_immediate_value](https://github.com/appium/ruby_lib/blob/332599f8a5b134522f03ea375f7bc666e4e39c3d/lib/appium_lib/device/device.rb#L167)
|
1091
1095
|
|
1092
1096
|
> def set_immediate_value
|
1093
1097
|
|
@@ -1101,7 +1105,7 @@ set_immediate_value element, 'hello'
|
|
1101
1105
|
|
1102
1106
|
--
|
1103
1107
|
|
1104
|
-
##### [get_performance_data_types](https://github.com/appium/ruby_lib/blob/
|
1108
|
+
##### [get_performance_data_types](https://github.com/appium/ruby_lib/blob/332599f8a5b134522f03ea375f7bc666e4e39c3d/lib/appium_lib/device/device.rb#L176)
|
1105
1109
|
|
1106
1110
|
> def get_performance_data_types
|
1107
1111
|
|
@@ -1115,7 +1119,7 @@ get_performance_data_types #=> ["cpuinfo", "batteryinfo", "networkinfo", "memory
|
|
1115
1119
|
|
1116
1120
|
--
|
1117
1121
|
|
1118
|
-
##### [extend_search_contexts](https://github.com/appium/ruby_lib/blob/
|
1122
|
+
##### [extend_search_contexts](https://github.com/appium/ruby_lib/blob/332599f8a5b134522f03ea375f7bc666e4e39c3d/lib/appium_lib/device/device.rb#L438)
|
1119
1123
|
|
1120
1124
|
> def extend_search_contexts
|
1121
1125
|
|
@@ -1123,7 +1127,7 @@ get_performance_data_types #=> ["cpuinfo", "batteryinfo", "networkinfo", "memory
|
|
1123
1127
|
|
1124
1128
|
--
|
1125
1129
|
|
1126
|
-
##### [find_element_with_appium](https://github.com/appium/ruby_lib/blob/
|
1130
|
+
##### [find_element_with_appium](https://github.com/appium/ruby_lib/blob/332599f8a5b134522f03ea375f7bc666e4e39c3d/lib/appium_lib/device/device.rb#L438)
|
1127
1131
|
|
1128
1132
|
> def find_element_with_appium
|
1129
1133
|
|
@@ -1131,7 +1135,7 @@ get_performance_data_types #=> ["cpuinfo", "batteryinfo", "networkinfo", "memory
|
|
1131
1135
|
|
1132
1136
|
--
|
1133
1137
|
|
1134
|
-
##### [find_elements_with_appium](https://github.com/appium/ruby_lib/blob/
|
1138
|
+
##### [find_elements_with_appium](https://github.com/appium/ruby_lib/blob/332599f8a5b134522f03ea375f7bc666e4e39c3d/lib/appium_lib/device/device.rb#L438)
|
1135
1139
|
|
1136
1140
|
> def find_elements_with_appium
|
1137
1141
|
|
@@ -1143,7 +1147,7 @@ find_element/s_with_appium with their accessibility_id
|
|
1143
1147
|
|
1144
1148
|
--
|
1145
1149
|
|
1146
|
-
##### [add_touch_actions](https://github.com/appium/ruby_lib/blob/
|
1150
|
+
##### [add_touch_actions](https://github.com/appium/ruby_lib/blob/332599f8a5b134522f03ea375f7bc666e4e39c3d/lib/appium_lib/device/device.rb#L469)
|
1147
1151
|
|
1148
1152
|
> def add_touch_actions
|
1149
1153
|
|
@@ -1151,7 +1155,7 @@ find_element/s_with_appium with their accessibility_id
|
|
1151
1155
|
|
1152
1156
|
--
|
1153
1157
|
|
1154
|
-
##### [add_ime_actions](https://github.com/appium/ruby_lib/blob/
|
1158
|
+
##### [add_ime_actions](https://github.com/appium/ruby_lib/blob/332599f8a5b134522f03ea375f7bc666e4e39c3d/lib/appium_lib/device/device.rb#L492)
|
1155
1159
|
|
1156
1160
|
> def add_ime_actions
|
1157
1161
|
|
@@ -1159,7 +1163,7 @@ find_element/s_with_appium with their accessibility_id
|
|
1159
1163
|
|
1160
1164
|
--
|
1161
1165
|
|
1162
|
-
##### [set_context](https://github.com/appium/ruby_lib/blob/
|
1166
|
+
##### [set_context](https://github.com/appium/ruby_lib/blob/332599f8a5b134522f03ea375f7bc666e4e39c3d/lib/appium_lib/device/device.rb#L567)
|
1163
1167
|
|
1164
1168
|
> def set_context
|
1165
1169
|
|
@@ -1174,7 +1178,7 @@ __Parameters:__
|
|
1174
1178
|
|
1175
1179
|
--
|
1176
1180
|
|
1177
|
-
##### [current_context](https://github.com/appium/ruby_lib/blob/
|
1181
|
+
##### [current_context](https://github.com/appium/ruby_lib/blob/332599f8a5b134522f03ea375f7bc666e4e39c3d/lib/appium_lib/device/device.rb#L575)
|
1178
1182
|
|
1179
1183
|
> def current_context
|
1180
1184
|
|
@@ -1186,7 +1190,7 @@ __Returns:__
|
|
1186
1190
|
|
1187
1191
|
--
|
1188
1192
|
|
1189
|
-
##### [available_contexts](https://github.com/appium/ruby_lib/blob/
|
1193
|
+
##### [available_contexts](https://github.com/appium/ruby_lib/blob/332599f8a5b134522f03ea375f7bc666e4e39c3d/lib/appium_lib/device/device.rb#L578)
|
1190
1194
|
|
1191
1195
|
> def available_contexts
|
1192
1196
|
|
@@ -1198,7 +1202,7 @@ __Returns:__
|
|
1198
1202
|
|
1199
1203
|
--
|
1200
1204
|
|
1201
|
-
##### [within_context](https://github.com/appium/ruby_lib/blob/
|
1205
|
+
##### [within_context](https://github.com/appium/ruby_lib/blob/332599f8a5b134522f03ea375f7bc666e4e39c3d/lib/appium_lib/device/device.rb#L588)
|
1202
1206
|
|
1203
1207
|
> def within_context(context)
|
1204
1208
|
|
@@ -1214,7 +1218,7 @@ __Parameters:__
|
|
1214
1218
|
|
1215
1219
|
--
|
1216
1220
|
|
1217
|
-
##### [switch_to_default_context](https://github.com/appium/ruby_lib/blob/
|
1221
|
+
##### [switch_to_default_context](https://github.com/appium/ruby_lib/blob/332599f8a5b134522f03ea375f7bc666e4e39c3d/lib/appium_lib/device/device.rb#L596)
|
1218
1222
|
|
1219
1223
|
> def switch_to_default_context
|
1220
1224
|
|
@@ -1222,7 +1226,7 @@ Change to the default context. This is equivalent to `set_context nil`.
|
|
1222
1226
|
|
1223
1227
|
--
|
1224
1228
|
|
1225
|
-
##### [pinch](https://github.com/appium/ruby_lib/blob/
|
1229
|
+
##### [pinch](https://github.com/appium/ruby_lib/blob/332599f8a5b134522f03ea375f7bc666e4e39c3d/lib/appium_lib/device/multi_touch.rb#L28)
|
1226
1230
|
|
1227
1231
|
> def pinch(percentage = 25, auto_perform = true)
|
1228
1232
|
|
@@ -1241,7 +1245,7 @@ __Parameters:__
|
|
1241
1245
|
|
1242
1246
|
--
|
1243
1247
|
|
1244
|
-
##### [zoom](https://github.com/appium/ruby_lib/blob/
|
1248
|
+
##### [zoom](https://github.com/appium/ruby_lib/blob/332599f8a5b134522f03ea375f7bc666e4e39c3d/lib/appium_lib/device/multi_touch.rb#L57)
|
1245
1249
|
|
1246
1250
|
> def zoom(percentage = 200, auto_perform = true)
|
1247
1251
|
|
@@ -1260,7 +1264,7 @@ __Parameters:__
|
|
1260
1264
|
|
1261
1265
|
--
|
1262
1266
|
|
1263
|
-
##### [pinch_for_xcuitest](https://github.com/appium/ruby_lib/blob/
|
1267
|
+
##### [pinch_for_xcuitest](https://github.com/appium/ruby_lib/blob/332599f8a5b134522f03ea375f7bc666e4e39c3d/lib/appium_lib/device/multi_touch.rb#L79)
|
1264
1268
|
|
1265
1269
|
> def pinch_for_xcuitest(rate)
|
1266
1270
|
|
@@ -1268,7 +1272,7 @@ __Parameters:__
|
|
1268
1272
|
|
1269
1273
|
--
|
1270
1274
|
|
1271
|
-
##### [pinch_android](https://github.com/appium/ruby_lib/blob/
|
1275
|
+
##### [pinch_android](https://github.com/appium/ruby_lib/blob/332599f8a5b134522f03ea375f7bc666e4e39c3d/lib/appium_lib/device/multi_touch.rb#L94)
|
1272
1276
|
|
1273
1277
|
> def pinch_android(rate)
|
1274
1278
|
|
@@ -1276,7 +1280,7 @@ __Parameters:__
|
|
1276
1280
|
|
1277
1281
|
--
|
1278
1282
|
|
1279
|
-
##### [pinch_ios](https://github.com/appium/ruby_lib/blob/
|
1283
|
+
##### [pinch_ios](https://github.com/appium/ruby_lib/blob/332599f8a5b134522f03ea375f7bc666e4e39c3d/lib/appium_lib/device/multi_touch.rb#L108)
|
1280
1284
|
|
1281
1285
|
> def pinch_ios(rate)
|
1282
1286
|
|
@@ -1284,7 +1288,7 @@ __Parameters:__
|
|
1284
1288
|
|
1285
1289
|
--
|
1286
1290
|
|
1287
|
-
##### [zoom_for_xcuitest](https://github.com/appium/ruby_lib/blob/
|
1291
|
+
##### [zoom_for_xcuitest](https://github.com/appium/ruby_lib/blob/332599f8a5b134522f03ea375f7bc666e4e39c3d/lib/appium_lib/device/multi_touch.rb#L122)
|
1288
1292
|
|
1289
1293
|
> def zoom_for_xcuitest(rate)
|
1290
1294
|
|
@@ -1292,7 +1296,7 @@ __Parameters:__
|
|
1292
1296
|
|
1293
1297
|
--
|
1294
1298
|
|
1295
|
-
##### [zoom_android](https://github.com/appium/ruby_lib/blob/
|
1299
|
+
##### [zoom_android](https://github.com/appium/ruby_lib/blob/332599f8a5b134522f03ea375f7bc666e4e39c3d/lib/appium_lib/device/multi_touch.rb#L137)
|
1296
1300
|
|
1297
1301
|
> def zoom_android(rate)
|
1298
1302
|
|
@@ -1300,7 +1304,7 @@ __Parameters:__
|
|
1300
1304
|
|
1301
1305
|
--
|
1302
1306
|
|
1303
|
-
##### [zoom_ios](https://github.com/appium/ruby_lib/blob/
|
1307
|
+
##### [zoom_ios](https://github.com/appium/ruby_lib/blob/332599f8a5b134522f03ea375f7bc666e4e39c3d/lib/appium_lib/device/multi_touch.rb#L151)
|
1304
1308
|
|
1305
1309
|
> def zoom_ios(rate)
|
1306
1310
|
|
@@ -1308,7 +1312,7 @@ __Parameters:__
|
|
1308
1312
|
|
1309
1313
|
--
|
1310
1314
|
|
1311
|
-
##### [actions](https://github.com/appium/ruby_lib/blob/
|
1315
|
+
##### [actions](https://github.com/appium/ruby_lib/blob/332599f8a5b134522f03ea375f7bc666e4e39c3d/lib/appium_lib/device/multi_touch.rb#L166)
|
1312
1316
|
|
1313
1317
|
> def actions
|
1314
1318
|
|
@@ -1316,7 +1320,7 @@ self
|
|
1316
1320
|
|
1317
1321
|
--
|
1318
1322
|
|
1319
|
-
##### [initialize](https://github.com/appium/ruby_lib/blob/
|
1323
|
+
##### [initialize](https://github.com/appium/ruby_lib/blob/332599f8a5b134522f03ea375f7bc666e4e39c3d/lib/appium_lib/device/multi_touch.rb#L169)
|
1320
1324
|
|
1321
1325
|
> def initialize
|
1322
1326
|
|
@@ -1328,7 +1332,7 @@ __Returns:__
|
|
1328
1332
|
|
1329
1333
|
--
|
1330
1334
|
|
1331
|
-
##### [add](https://github.com/appium/ruby_lib/blob/
|
1335
|
+
##### [add](https://github.com/appium/ruby_lib/blob/332599f8a5b134522f03ea375f7bc666e4e39c3d/lib/appium_lib/device/multi_touch.rb#L175)
|
1332
1336
|
|
1333
1337
|
> def add(chain)
|
1334
1338
|
|
@@ -1340,7 +1344,7 @@ __Parameters:__
|
|
1340
1344
|
|
1341
1345
|
--
|
1342
1346
|
|
1343
|
-
##### [perform](https://github.com/appium/ruby_lib/blob/
|
1347
|
+
##### [perform](https://github.com/appium/ruby_lib/blob/332599f8a5b134522f03ea375f7bc666e4e39c3d/lib/appium_lib/device/multi_touch.rb#L180)
|
1344
1348
|
|
1345
1349
|
> def perform
|
1346
1350
|
|
@@ -1348,7 +1352,7 @@ Ask Appium to perform the actions
|
|
1348
1352
|
|
1349
1353
|
--
|
1350
1354
|
|
1351
|
-
##### [ACTIONS](https://github.com/appium/ruby_lib/blob/
|
1355
|
+
##### [ACTIONS](https://github.com/appium/ruby_lib/blob/332599f8a5b134522f03ea375f7bc666e4e39c3d/lib/appium_lib/device/touch_actions.rb#L20)
|
1352
1356
|
|
1353
1357
|
> ACTIONS = [:move_to, :long_press, :double_tap, :two_finger_tap, :press, :release, :tap, :wait, :perform].freeze
|
1354
1358
|
|
@@ -1356,7 +1360,7 @@ Ask Appium to perform the actions
|
|
1356
1360
|
|
1357
1361
|
--
|
1358
1362
|
|
1359
|
-
##### [COMPLEX_ACTIONS](https://github.com/appium/ruby_lib/blob/
|
1363
|
+
##### [COMPLEX_ACTIONS](https://github.com/appium/ruby_lib/blob/332599f8a5b134522f03ea375f7bc666e4e39c3d/lib/appium_lib/device/touch_actions.rb#L21)
|
1360
1364
|
|
1361
1365
|
> COMPLEX_ACTIONS = [:swipe].freeze
|
1362
1366
|
|
@@ -1364,7 +1368,7 @@ Ask Appium to perform the actions
|
|
1364
1368
|
|
1365
1369
|
--
|
1366
1370
|
|
1367
|
-
##### [actions](https://github.com/appium/ruby_lib/blob/
|
1371
|
+
##### [actions](https://github.com/appium/ruby_lib/blob/332599f8a5b134522f03ea375f7bc666e4e39c3d/lib/appium_lib/device/touch_actions.rb#L35)
|
1368
1372
|
|
1369
1373
|
> def actions
|
1370
1374
|
|
@@ -1372,7 +1376,7 @@ Returns the value of attribute actions
|
|
1372
1376
|
|
1373
1377
|
--
|
1374
1378
|
|
1375
|
-
##### [initialize](https://github.com/appium/ruby_lib/blob/
|
1379
|
+
##### [initialize](https://github.com/appium/ruby_lib/blob/332599f8a5b134522f03ea375f7bc666e4e39c3d/lib/appium_lib/device/touch_actions.rb#L37)
|
1376
1380
|
|
1377
1381
|
> def initialize
|
1378
1382
|
|
@@ -1384,7 +1388,7 @@ __Returns:__
|
|
1384
1388
|
|
1385
1389
|
--
|
1386
1390
|
|
1387
|
-
##### [move_to](https://github.com/appium/ruby_lib/blob/
|
1391
|
+
##### [move_to](https://github.com/appium/ruby_lib/blob/332599f8a5b134522f03ea375f7bc666e4e39c3d/lib/appium_lib/device/touch_actions.rb#L48)
|
1388
1392
|
|
1389
1393
|
> def move_to(opts)
|
1390
1394
|
|
@@ -1398,7 +1402,7 @@ __Parameters:__
|
|
1398
1402
|
|
1399
1403
|
--
|
1400
1404
|
|
1401
|
-
##### [long_press](https://github.com/appium/ruby_lib/blob/
|
1405
|
+
##### [long_press](https://github.com/appium/ruby_lib/blob/332599f8a5b134522f03ea375f7bc666e4e39c3d/lib/appium_lib/device/touch_actions.rb#L62)
|
1402
1406
|
|
1403
1407
|
> def long_press(opts)
|
1404
1408
|
|
@@ -1419,7 +1423,7 @@ __Parameters:__
|
|
1419
1423
|
|
1420
1424
|
--
|
1421
1425
|
|
1422
|
-
##### [press](https://github.com/appium/ruby_lib/blob/
|
1426
|
+
##### [press](https://github.com/appium/ruby_lib/blob/332599f8a5b134522f03ea375f7bc666e4e39c3d/lib/appium_lib/device/touch_actions.rb#L74)
|
1423
1427
|
|
1424
1428
|
> def press(opts)
|
1425
1429
|
|
@@ -1432,7 +1436,7 @@ __Parameters:__
|
|
1432
1436
|
|
1433
1437
|
--
|
1434
1438
|
|
1435
|
-
##### [release](https://github.com/appium/ruby_lib/blob/
|
1439
|
+
##### [release](https://github.com/appium/ruby_lib/blob/332599f8a5b134522f03ea375f7bc666e4e39c3d/lib/appium_lib/device/touch_actions.rb#L85)
|
1436
1440
|
|
1437
1441
|
> def release(opts = nil)
|
1438
1442
|
|
@@ -1444,7 +1448,7 @@ __Parameters:__
|
|
1444
1448
|
|
1445
1449
|
--
|
1446
1450
|
|
1447
|
-
##### [tap](https://github.com/appium/ruby_lib/blob/
|
1451
|
+
##### [tap](https://github.com/appium/ruby_lib/blob/332599f8a5b134522f03ea375f7bc666e4e39c3d/lib/appium_lib/device/touch_actions.rb#L97)
|
1448
1452
|
|
1449
1453
|
> def tap(opts)
|
1450
1454
|
|
@@ -1457,7 +1461,7 @@ __Parameters:__
|
|
1457
1461
|
|
1458
1462
|
--
|
1459
1463
|
|
1460
|
-
##### [double_tap](https://github.com/appium/ruby_lib/blob/
|
1464
|
+
##### [double_tap](https://github.com/appium/ruby_lib/blob/332599f8a5b134522f03ea375f7bc666e4e39c3d/lib/appium_lib/device/touch_actions.rb#L110)
|
1461
1465
|
|
1462
1466
|
> def double_tap(opts)
|
1463
1467
|
|
@@ -1469,7 +1473,7 @@ __Parameters:__
|
|
1469
1473
|
|
1470
1474
|
--
|
1471
1475
|
|
1472
|
-
##### [two_finger_tap](https://github.com/appium/ruby_lib/blob/
|
1476
|
+
##### [two_finger_tap](https://github.com/appium/ruby_lib/blob/332599f8a5b134522f03ea375f7bc666e4e39c3d/lib/appium_lib/device/touch_actions.rb#L121)
|
1473
1477
|
|
1474
1478
|
> def two_finger_tap(opts)
|
1475
1479
|
|
@@ -1481,7 +1485,7 @@ __Parameters:__
|
|
1481
1485
|
|
1482
1486
|
--
|
1483
1487
|
|
1484
|
-
##### [wait](https://github.com/appium/ruby_lib/blob/
|
1488
|
+
##### [wait](https://github.com/appium/ruby_lib/blob/332599f8a5b134522f03ea375f7bc666e4e39c3d/lib/appium_lib/device/touch_actions.rb#L129)
|
1485
1489
|
|
1486
1490
|
> def wait(milliseconds)
|
1487
1491
|
|
@@ -1493,7 +1497,7 @@ __Parameters:__
|
|
1493
1497
|
|
1494
1498
|
--
|
1495
1499
|
|
1496
|
-
##### [swipe](https://github.com/appium/ruby_lib/blob/
|
1500
|
+
##### [swipe](https://github.com/appium/ruby_lib/blob/332599f8a5b134522f03ea375f7bc666e4e39c3d/lib/appium_lib/device/touch_actions.rb#L152)
|
1497
1501
|
|
1498
1502
|
> def swipe(opts, ele = nil)
|
1499
1503
|
|
@@ -1514,7 +1518,7 @@ __Parameters:__
|
|
1514
1518
|
|
1515
1519
|
--
|
1516
1520
|
|
1517
|
-
##### [perform](https://github.com/appium/ruby_lib/blob/
|
1521
|
+
##### [perform](https://github.com/appium/ruby_lib/blob/332599f8a5b134522f03ea375f7bc666e4e39c3d/lib/appium_lib/device/touch_actions.rb#L177)
|
1518
1522
|
|
1519
1523
|
> def perform
|
1520
1524
|
|
@@ -1522,7 +1526,7 @@ Ask the driver to perform all actions in this action chain.
|
|
1522
1526
|
|
1523
1527
|
--
|
1524
1528
|
|
1525
|
-
##### [cancel](https://github.com/appium/ruby_lib/blob/
|
1529
|
+
##### [cancel](https://github.com/appium/ruby_lib/blob/332599f8a5b134522f03ea375f7bc666e4e39c3d/lib/appium_lib/device/touch_actions.rb#L184)
|
1526
1530
|
|
1527
1531
|
> def cancel
|
1528
1532
|
|
@@ -1530,7 +1534,7 @@ Does nothing, currently.
|
|
1530
1534
|
|
1531
1535
|
--
|
1532
1536
|
|
1533
|
-
##### [swipe_coordinates](https://github.com/appium/ruby_lib/blob/
|
1537
|
+
##### [swipe_coordinates](https://github.com/appium/ruby_lib/blob/332599f8a5b134522f03ea375f7bc666e4e39c3d/lib/appium_lib/device/touch_actions.rb#L190)
|
1534
1538
|
|
1535
1539
|
> def swipe_coordinates(end_x: nil, end_y: nil, offset_x: nil, offset_y: nil)
|
1536
1540
|
|
@@ -1538,7 +1542,7 @@ Does nothing, currently.
|
|
1538
1542
|
|
1539
1543
|
--
|
1540
1544
|
|
1541
|
-
##### [chain_method](https://github.com/appium/ruby_lib/blob/
|
1545
|
+
##### [chain_method](https://github.com/appium/ruby_lib/blob/332599f8a5b134522f03ea375f7bc666e4e39c3d/lib/appium_lib/device/touch_actions.rb#L208)
|
1542
1546
|
|
1543
1547
|
> def chain_method(method, args = nil)
|
1544
1548
|
|
@@ -1546,7 +1550,7 @@ Does nothing, currently.
|
|
1546
1550
|
|
1547
1551
|
--
|
1548
1552
|
|
1549
|
-
##### [args_with_ele_ref](https://github.com/appium/ruby_lib/blob/
|
1553
|
+
##### [args_with_ele_ref](https://github.com/appium/ruby_lib/blob/332599f8a5b134522f03ea375f7bc666e4e39c3d/lib/appium_lib/device/touch_actions.rb#L214)
|
1550
1554
|
|
1551
1555
|
> def args_with_ele_ref(args)
|
1552
1556
|
|
@@ -1554,7 +1558,7 @@ Does nothing, currently.
|
|
1554
1558
|
|
1555
1559
|
--
|
1556
1560
|
|
1557
|
-
##### [_generic_wait](https://github.com/appium/ruby_lib/blob/
|
1561
|
+
##### [_generic_wait](https://github.com/appium/ruby_lib/blob/332599f8a5b134522f03ea375f7bc666e4e39c3d/lib/appium_lib/common/wait.rb#L9)
|
1558
1562
|
|
1559
1563
|
> def _generic_wait(opts = {})
|
1560
1564
|
|
@@ -1563,7 +1567,7 @@ https://github.com/SeleniumHQ/selenium/blob/cf501dda3f0ed12233de51ce8170c0e8090f
|
|
1563
1567
|
|
1564
1568
|
--
|
1565
1569
|
|
1566
|
-
##### [_process_wait_opts](https://github.com/appium/ruby_lib/blob/
|
1570
|
+
##### [_process_wait_opts](https://github.com/appium/ruby_lib/blob/332599f8a5b134522f03ea375f7bc666e4e39c3d/lib/appium_lib/common/wait.rb#L48)
|
1567
1571
|
|
1568
1572
|
> def _process_wait_opts(opts)
|
1569
1573
|
|
@@ -1571,7 +1575,7 @@ process opts before calling _generic_wait
|
|
1571
1575
|
|
1572
1576
|
--
|
1573
1577
|
|
1574
|
-
##### [wait_true](https://github.com/appium/ruby_lib/blob/
|
1578
|
+
##### [wait_true](https://github.com/appium/ruby_lib/blob/332599f8a5b134522f03ea375f7bc666e4e39c3d/lib/appium_lib/common/wait.rb#L69)
|
1575
1579
|
|
1576
1580
|
> def wait_true(opts = {}, &block)
|
1577
1581
|
|
@@ -1591,7 +1595,7 @@ __Parameters:__
|
|
1591
1595
|
|
1592
1596
|
--
|
1593
1597
|
|
1594
|
-
##### [wait](https://github.com/appium/ruby_lib/blob/
|
1598
|
+
##### [wait](https://github.com/appium/ruby_lib/blob/332599f8a5b134522f03ea375f7bc666e4e39c3d/lib/appium_lib/common/wait.rb#L87)
|
1595
1599
|
|
1596
1600
|
> def wait(opts = {}, &block)
|
1597
1601
|
|
@@ -1609,7 +1613,7 @@ __Parameters:__
|
|
1609
1613
|
|
1610
1614
|
--
|
1611
1615
|
|
1612
|
-
##### [ignore](https://github.com/appium/ruby_lib/blob/
|
1616
|
+
##### [ignore](https://github.com/appium/ruby_lib/blob/332599f8a5b134522f03ea375f7bc666e4e39c3d/lib/appium_lib/common/helper.rb#L24)
|
1613
1617
|
|
1614
1618
|
> def ignore
|
1615
1619
|
|
@@ -1617,7 +1621,7 @@ Return yield and ignore any exceptions.
|
|
1617
1621
|
|
1618
1622
|
--
|
1619
1623
|
|
1620
|
-
##### [back](https://github.com/appium/ruby_lib/blob/
|
1624
|
+
##### [back](https://github.com/appium/ruby_lib/blob/332599f8a5b134522f03ea375f7bc666e4e39c3d/lib/appium_lib/common/helper.rb#L31)
|
1621
1625
|
|
1622
1626
|
> def back
|
1623
1627
|
|
@@ -1629,7 +1633,7 @@ __Returns:__
|
|
1629
1633
|
|
1630
1634
|
--
|
1631
1635
|
|
1632
|
-
##### [session_id](https://github.com/appium/ruby_lib/blob/
|
1636
|
+
##### [session_id](https://github.com/appium/ruby_lib/blob/332599f8a5b134522f03ea375f7bc666e4e39c3d/lib/appium_lib/common/helper.rb#L36)
|
1633
1637
|
|
1634
1638
|
> def session_id
|
1635
1639
|
|
@@ -1637,7 +1641,7 @@ For Sauce Labs reporting. Returns the current session id.
|
|
1637
1641
|
|
1638
1642
|
--
|
1639
1643
|
|
1640
|
-
##### [xpath](https://github.com/appium/ruby_lib/blob/
|
1644
|
+
##### [xpath](https://github.com/appium/ruby_lib/blob/332599f8a5b134522f03ea375f7bc666e4e39c3d/lib/appium_lib/common/helper.rb#L44)
|
1641
1645
|
|
1642
1646
|
> def xpath(xpath_str)
|
1643
1647
|
|
@@ -1653,7 +1657,7 @@ __Returns:__
|
|
1653
1657
|
|
1654
1658
|
--
|
1655
1659
|
|
1656
|
-
##### [xpaths](https://github.com/appium/ruby_lib/blob/
|
1660
|
+
##### [xpaths](https://github.com/appium/ruby_lib/blob/332599f8a5b134522f03ea375f7bc666e4e39c3d/lib/appium_lib/common/helper.rb#L52)
|
1657
1661
|
|
1658
1662
|
> def xpaths(xpath_str)
|
1659
1663
|
|
@@ -1669,7 +1673,7 @@ __Returns:__
|
|
1669
1673
|
|
1670
1674
|
--
|
1671
1675
|
|
1672
|
-
##### [_print_source](https://github.com/appium/ruby_lib/blob/
|
1676
|
+
##### [_print_source](https://github.com/appium/ruby_lib/blob/332599f8a5b134522f03ea375f7bc666e4e39c3d/lib/appium_lib/common/helper.rb#L56)
|
1673
1677
|
|
1674
1678
|
> def _print_source(source)
|
1675
1679
|
|
@@ -1677,7 +1681,7 @@ __Returns:__
|
|
1677
1681
|
|
1678
1682
|
--
|
1679
1683
|
|
1680
|
-
##### [result](https://github.com/appium/ruby_lib/blob/
|
1684
|
+
##### [result](https://github.com/appium/ruby_lib/blob/332599f8a5b134522f03ea375f7bc666e4e39c3d/lib/appium_lib/common/helper.rb#L69)
|
1681
1685
|
|
1682
1686
|
> def result
|
1683
1687
|
|
@@ -1685,7 +1689,7 @@ Returns the value of attribute result
|
|
1685
1689
|
|
1686
1690
|
--
|
1687
1691
|
|
1688
|
-
##### [initialize](https://github.com/appium/ruby_lib/blob/
|
1692
|
+
##### [initialize](https://github.com/appium/ruby_lib/blob/332599f8a5b134522f03ea375f7bc666e4e39c3d/lib/appium_lib/common/helper.rb#L71)
|
1689
1693
|
|
1690
1694
|
> def initialize
|
1691
1695
|
|
@@ -1697,7 +1701,7 @@ __Returns:__
|
|
1697
1701
|
|
1698
1702
|
--
|
1699
1703
|
|
1700
|
-
##### [reset](https://github.com/appium/ruby_lib/blob/
|
1704
|
+
##### [reset](https://github.com/appium/ruby_lib/blob/332599f8a5b134522f03ea375f7bc666e4e39c3d/lib/appium_lib/common/helper.rb#L75)
|
1701
1705
|
|
1702
1706
|
> def reset
|
1703
1707
|
|
@@ -1705,7 +1709,7 @@ __Returns:__
|
|
1705
1709
|
|
1706
1710
|
--
|
1707
1711
|
|
1708
|
-
##### [start_element](https://github.com/appium/ruby_lib/blob/
|
1712
|
+
##### [start_element](https://github.com/appium/ruby_lib/blob/332599f8a5b134522f03ea375f7bc666e4e39c3d/lib/appium_lib/common/helper.rb#L80)
|
1709
1713
|
|
1710
1714
|
> def start_element(name, attrs = [])
|
1711
1715
|
|
@@ -1713,7 +1717,7 @@ http://nokogiri.org/Nokogiri/XML/SAX/Document.html
|
|
1713
1717
|
|
1714
1718
|
--
|
1715
1719
|
|
1716
|
-
##### [formatted_result](https://github.com/appium/ruby_lib/blob/
|
1720
|
+
##### [formatted_result](https://github.com/appium/ruby_lib/blob/332599f8a5b134522f03ea375f7bc666e4e39c3d/lib/appium_lib/common/helper.rb#L86)
|
1717
1721
|
|
1718
1722
|
> def formatted_result
|
1719
1723
|
|
@@ -1721,7 +1725,7 @@ http://nokogiri.org/Nokogiri/XML/SAX/Document.html
|
|
1721
1725
|
|
1722
1726
|
--
|
1723
1727
|
|
1724
|
-
##### [get_page_class](https://github.com/appium/ruby_lib/blob/
|
1728
|
+
##### [get_page_class](https://github.com/appium/ruby_lib/blob/332599f8a5b134522f03ea375f7bc666e4e39c3d/lib/appium_lib/common/helper.rb#L97)
|
1725
1729
|
|
1726
1730
|
> def get_page_class
|
1727
1731
|
|
@@ -1729,7 +1733,7 @@ Returns a string of class counts of visible elements.
|
|
1729
1733
|
|
1730
1734
|
--
|
1731
1735
|
|
1732
|
-
##### [page_class](https://github.com/appium/ruby_lib/blob/
|
1736
|
+
##### [page_class](https://github.com/appium/ruby_lib/blob/332599f8a5b134522f03ea375f7bc666e4e39c3d/lib/appium_lib/common/helper.rb#L108)
|
1733
1737
|
|
1734
1738
|
> def page_class
|
1735
1739
|
|
@@ -1738,7 +1742,7 @@ Useful for appium_console.
|
|
1738
1742
|
|
1739
1743
|
--
|
1740
1744
|
|
1741
|
-
##### [px_to_window_rel](https://github.com/appium/ruby_lib/blob/
|
1745
|
+
##### [px_to_window_rel](https://github.com/appium/ruby_lib/blob/332599f8a5b134522f03ea375f7bc666e4e39c3d/lib/appium_lib/common/helper.rb#L118)
|
1742
1746
|
|
1743
1747
|
> def px_to_window_rel(opts = {})
|
1744
1748
|
|
@@ -1750,7 +1754,7 @@ px_to_window_rel x: 50, y: 150
|
|
1750
1754
|
|
1751
1755
|
--
|
1752
1756
|
|
1753
|
-
##### [xml_keys](https://github.com/appium/ruby_lib/blob/
|
1757
|
+
##### [xml_keys](https://github.com/appium/ruby_lib/blob/332599f8a5b134522f03ea375f7bc666e4e39c3d/lib/appium_lib/common/helper.rb#L137)
|
1754
1758
|
|
1755
1759
|
> def xml_keys(target)
|
1756
1760
|
|
@@ -1766,7 +1770,7 @@ __Returns:__
|
|
1766
1770
|
|
1767
1771
|
--
|
1768
1772
|
|
1769
|
-
##### [xml_values](https://github.com/appium/ruby_lib/blob/
|
1773
|
+
##### [xml_values](https://github.com/appium/ruby_lib/blob/332599f8a5b134522f03ea375f7bc666e4e39c3d/lib/appium_lib/common/helper.rb#L145)
|
1770
1774
|
|
1771
1775
|
> def xml_values(target)
|
1772
1776
|
|
@@ -1782,7 +1786,7 @@ __Returns:__
|
|
1782
1786
|
|
1783
1787
|
--
|
1784
1788
|
|
1785
|
-
##### [resolve_id](https://github.com/appium/ruby_lib/blob/
|
1789
|
+
##### [resolve_id](https://github.com/appium/ruby_lib/blob/332599f8a5b134522f03ea375f7bc666e4e39c3d/lib/appium_lib/common/helper.rb#L153)
|
1786
1790
|
|
1787
1791
|
> def resolve_id(id)
|
1788
1792
|
|
@@ -1798,7 +1802,7 @@ __Returns:__
|
|
1798
1802
|
|
1799
1803
|
--
|
1800
1804
|
|
1801
|
-
##### [filter](https://github.com/appium/ruby_lib/blob/
|
1805
|
+
##### [filter](https://github.com/appium/ruby_lib/blob/332599f8a5b134522f03ea375f7bc666e4e39c3d/lib/appium_lib/common/helper.rb#L159)
|
1802
1806
|
|
1803
1807
|
> def filter
|
1804
1808
|
|
@@ -1806,7 +1810,7 @@ Returns the value of attribute filter
|
|
1806
1810
|
|
1807
1811
|
--
|
1808
1812
|
|
1809
|
-
##### [filter=](https://github.com/appium/ruby_lib/blob/
|
1813
|
+
##### [filter=](https://github.com/appium/ruby_lib/blob/332599f8a5b134522f03ea375f7bc666e4e39c3d/lib/appium_lib/common/helper.rb#L162)
|
1810
1814
|
|
1811
1815
|
> def filter=(value)
|
1812
1816
|
|
@@ -1814,7 +1818,7 @@ convert to string to support symbols
|
|
1814
1818
|
|
1815
1819
|
--
|
1816
1820
|
|
1817
|
-
##### [initialize](https://github.com/appium/ruby_lib/blob/
|
1821
|
+
##### [initialize](https://github.com/appium/ruby_lib/blob/332599f8a5b134522f03ea375f7bc666e4e39c3d/lib/appium_lib/common/helper.rb#L168)
|
1818
1822
|
|
1819
1823
|
> def initialize
|
1820
1824
|
|
@@ -1826,7 +1830,7 @@ __Returns:__
|
|
1826
1830
|
|
1827
1831
|
--
|
1828
1832
|
|
1829
|
-
##### [reset](https://github.com/appium/ruby_lib/blob/
|
1833
|
+
##### [reset](https://github.com/appium/ruby_lib/blob/332599f8a5b134522f03ea375f7bc666e4e39c3d/lib/appium_lib/common/helper.rb#L173)
|
1830
1834
|
|
1831
1835
|
> def reset
|
1832
1836
|
|
@@ -1834,7 +1838,7 @@ __Returns:__
|
|
1834
1838
|
|
1835
1839
|
--
|
1836
1840
|
|
1837
|
-
##### [result](https://github.com/appium/ruby_lib/blob/
|
1841
|
+
##### [result](https://github.com/appium/ruby_lib/blob/332599f8a5b134522f03ea375f7bc666e4e39c3d/lib/appium_lib/common/helper.rb#L179)
|
1838
1842
|
|
1839
1843
|
> def result
|
1840
1844
|
|
@@ -1842,7 +1846,7 @@ __Returns:__
|
|
1842
1846
|
|
1843
1847
|
--
|
1844
1848
|
|
1845
|
-
##### [start_element](https://github.com/appium/ruby_lib/blob/
|
1849
|
+
##### [start_element](https://github.com/appium/ruby_lib/blob/332599f8a5b134522f03ea375f7bc666e4e39c3d/lib/appium_lib/common/helper.rb#L195)
|
1846
1850
|
|
1847
1851
|
> def start_element(name, attrs = [])
|
1848
1852
|
|
@@ -1850,7 +1854,7 @@ __Returns:__
|
|
1850
1854
|
|
1851
1855
|
--
|
1852
1856
|
|
1853
|
-
##### [end_element](https://github.com/appium/ruby_lib/blob/
|
1857
|
+
##### [end_element](https://github.com/appium/ruby_lib/blob/332599f8a5b134522f03ea375f7bc666e4e39c3d/lib/appium_lib/common/helper.rb#L204)
|
1854
1858
|
|
1855
1859
|
> def end_element(name)
|
1856
1860
|
|
@@ -1858,7 +1862,7 @@ __Returns:__
|
|
1858
1862
|
|
1859
1863
|
--
|
1860
1864
|
|
1861
|
-
##### [characters](https://github.com/appium/ruby_lib/blob/
|
1865
|
+
##### [characters](https://github.com/appium/ruby_lib/blob/332599f8a5b134522f03ea375f7bc666e4e39c3d/lib/appium_lib/common/helper.rb#L210)
|
1862
1866
|
|
1863
1867
|
> def characters(chars)
|
1864
1868
|
|
@@ -1866,7 +1870,7 @@ __Returns:__
|
|
1866
1870
|
|
1867
1871
|
--
|
1868
1872
|
|
1869
|
-
##### [_no_such_element](https://github.com/appium/ruby_lib/blob/
|
1873
|
+
##### [_no_such_element](https://github.com/appium/ruby_lib/blob/332599f8a5b134522f03ea375f7bc666e4e39c3d/lib/appium_lib/common/helper.rb#L217)
|
1870
1874
|
|
1871
1875
|
> def _no_such_element
|
1872
1876
|
|
@@ -1874,7 +1878,7 @@ __Returns:__
|
|
1874
1878
|
|
1875
1879
|
--
|
1876
1880
|
|
1877
|
-
##### [COMMAND_NO_ARG](https://github.com/appium/ruby_lib/blob/
|
1881
|
+
##### [COMMAND_NO_ARG](https://github.com/appium/ruby_lib/blob/332599f8a5b134522f03ea375f7bc666e4e39c3d/lib/appium_lib/common/command.rb#L4)
|
1878
1882
|
|
1879
1883
|
> COMMAND_NO_ARG = {
|
1880
1884
|
|
@@ -1882,7 +1886,7 @@ __Returns:__
|
|
1882
1886
|
|
1883
1887
|
--
|
1884
1888
|
|
1885
|
-
##### [COMMAND](https://github.com/appium/ruby_lib/blob/
|
1889
|
+
##### [COMMAND](https://github.com/appium/ruby_lib/blob/332599f8a5b134522f03ea375f7bc666e4e39c3d/lib/appium_lib/common/command.rb#L27)
|
1886
1890
|
|
1887
1891
|
> COMMAND = {
|
1888
1892
|
|
@@ -1890,7 +1894,7 @@ __Returns:__
|
|
1890
1894
|
|
1891
1895
|
--
|
1892
1896
|
|
1893
|
-
##### [window_size](https://github.com/appium/ruby_lib/blob/
|
1897
|
+
##### [window_size](https://github.com/appium/ruby_lib/blob/332599f8a5b134522f03ea375f7bc666e4e39c3d/lib/appium_lib/common/element/window.rb#L5)
|
1894
1898
|
|
1895
1899
|
> def window_size
|
1896
1900
|
|
@@ -1898,7 +1902,7 @@ Get the window's size
|
|
1898
1902
|
|
1899
1903
|
--
|
1900
1904
|
|
1901
|
-
##### [FINDERS](https://github.com/appium/ruby_lib/blob/
|
1905
|
+
##### [FINDERS](https://github.com/appium/ruby_lib/blob/332599f8a5b134522f03ea375f7bc666e4e39c3d/lib/appium_lib/common/search_context.rb#L5)
|
1902
1906
|
|
1903
1907
|
> FINDERS = {
|
1904
1908
|
|
@@ -1906,7 +1910,7 @@ rubocop:disable Style/MutableConstant
|
|
1906
1910
|
|
1907
1911
|
--
|
1908
1912
|
|
1909
|
-
##### [result](https://github.com/appium/ruby_lib/blob/
|
1913
|
+
##### [result](https://github.com/appium/ruby_lib/blob/332599f8a5b134522f03ea375f7bc666e4e39c3d/lib/appium_lib/android/helper.rb#L6) android
|
1910
1914
|
|
1911
1915
|
> def result
|
1912
1916
|
|
@@ -1914,7 +1918,7 @@ Returns the value of attribute result
|
|
1914
1918
|
|
1915
1919
|
--
|
1916
1920
|
|
1917
|
-
##### [keys](https://github.com/appium/ruby_lib/blob/
|
1921
|
+
##### [keys](https://github.com/appium/ruby_lib/blob/332599f8a5b134522f03ea375f7bc666e4e39c3d/lib/appium_lib/android/helper.rb#L6) android
|
1918
1922
|
|
1919
1923
|
> def keys
|
1920
1924
|
|
@@ -1922,15 +1926,7 @@ Returns the value of attribute keys
|
|
1922
1926
|
|
1923
1927
|
--
|
1924
1928
|
|
1925
|
-
##### [
|
1926
|
-
|
1927
|
-
> def instance
|
1928
|
-
|
1929
|
-
Returns the value of attribute instance
|
1930
|
-
|
1931
|
-
--
|
1932
|
-
|
1933
|
-
##### [filter](https://github.com/appium/ruby_lib/blob/24660355c3fa5e5e8691922e1570021fce90b96b/lib/appium_lib/android/helper.rb#L6) android
|
1929
|
+
##### [filter](https://github.com/appium/ruby_lib/blob/332599f8a5b134522f03ea375f7bc666e4e39c3d/lib/appium_lib/android/helper.rb#L6) android
|
1934
1930
|
|
1935
1931
|
> def filter
|
1936
1932
|
|
@@ -1938,7 +1934,7 @@ Returns the value of attribute filter
|
|
1938
1934
|
|
1939
1935
|
--
|
1940
1936
|
|
1941
|
-
##### [filter=](https://github.com/appium/ruby_lib/blob/
|
1937
|
+
##### [filter=](https://github.com/appium/ruby_lib/blob/332599f8a5b134522f03ea375f7bc666e4e39c3d/lib/appium_lib/android/helper.rb#L9) android
|
1942
1938
|
|
1943
1939
|
> def filter=(value)
|
1944
1940
|
|
@@ -1946,7 +1942,7 @@ convert to string to support symbols
|
|
1946
1942
|
|
1947
1943
|
--
|
1948
1944
|
|
1949
|
-
##### [initialize](https://github.com/appium/ruby_lib/blob/
|
1945
|
+
##### [initialize](https://github.com/appium/ruby_lib/blob/332599f8a5b134522f03ea375f7bc666e4e39c3d/lib/appium_lib/android/helper.rb#L15) android
|
1950
1946
|
|
1951
1947
|
> def initialize
|
1952
1948
|
|
@@ -1958,7 +1954,7 @@ __Returns:__
|
|
1958
1954
|
|
1959
1955
|
--
|
1960
1956
|
|
1961
|
-
##### [reset](https://github.com/appium/ruby_lib/blob/
|
1957
|
+
##### [reset](https://github.com/appium/ruby_lib/blob/332599f8a5b134522f03ea375f7bc666e4e39c3d/lib/appium_lib/android/helper.rb#L20) android
|
1962
1958
|
|
1963
1959
|
> def reset
|
1964
1960
|
|
@@ -1966,7 +1962,7 @@ __Returns:__
|
|
1966
1962
|
|
1967
1963
|
--
|
1968
1964
|
|
1969
|
-
##### [start_element](https://github.com/appium/ruby_lib/blob/
|
1965
|
+
##### [start_element](https://github.com/appium/ruby_lib/blob/332599f8a5b134522f03ea375f7bc666e4e39c3d/lib/appium_lib/android/helper.rb#L26) android
|
1970
1966
|
|
1971
1967
|
> def start_element(name, attrs = [])
|
1972
1968
|
|
@@ -1974,17 +1970,7 @@ http://nokogiri.org/Nokogiri/XML/SAX/Document.html
|
|
1974
1970
|
|
1975
1971
|
--
|
1976
1972
|
|
1977
|
-
##### [
|
1978
|
-
|
1979
|
-
> def _fix_android_native_source(source)
|
1980
|
-
|
1981
|
-
Fix uiautomator's xml dump.
|
1982
|
-
https://github.com/appium/appium/issues/2822
|
1983
|
-
https://code.google.com/p/android/issues/detail?id=74143
|
1984
|
-
|
1985
|
-
--
|
1986
|
-
|
1987
|
-
##### [source](https://github.com/appium/ruby_lib/blob/24660355c3fa5e5e8691922e1570021fce90b96b/lib/appium_lib/android/helper.rb#L116) android
|
1973
|
+
##### [source](https://github.com/appium/ruby_lib/blob/332599f8a5b134522f03ea375f7bc666e4e39c3d/lib/appium_lib/android/helper.rb#L82) android
|
1988
1974
|
|
1989
1975
|
> def source
|
1990
1976
|
|
@@ -1996,7 +1982,7 @@ __Returns:__
|
|
1996
1982
|
|
1997
1983
|
--
|
1998
1984
|
|
1999
|
-
##### [get_android_inspect](https://github.com/appium/ruby_lib/blob/
|
1985
|
+
##### [get_android_inspect](https://github.com/appium/ruby_lib/blob/332599f8a5b134522f03ea375f7bc666e4e39c3d/lib/appium_lib/android/helper.rb#L92) android
|
2000
1986
|
|
2001
1987
|
> def get_android_inspect(class_name = false)
|
2002
1988
|
|
@@ -2015,7 +2001,7 @@ __Returns:__
|
|
2015
2001
|
|
2016
2002
|
--
|
2017
2003
|
|
2018
|
-
##### [page](https://github.com/appium/ruby_lib/blob/
|
2004
|
+
##### [page](https://github.com/appium/ruby_lib/blob/332599f8a5b134522f03ea375f7bc666e4e39c3d/lib/appium_lib/android/helper.rb#L118) android
|
2019
2005
|
|
2020
2006
|
> def page(opts = {})
|
2021
2007
|
|
@@ -2034,7 +2020,7 @@ __Returns:__
|
|
2034
2020
|
|
2035
2021
|
--
|
2036
2022
|
|
2037
|
-
##### [current_app](https://github.com/appium/ruby_lib/blob/
|
2023
|
+
##### [current_app](https://github.com/appium/ruby_lib/blob/332599f8a5b134522f03ea375f7bc666e4e39c3d/lib/appium_lib/android/helper.rb#L130) android
|
2038
2024
|
|
2039
2025
|
> def current_app
|
2040
2026
|
|
@@ -2044,7 +2030,7 @@ example line:
|
|
2044
2030
|
|
2045
2031
|
--
|
2046
2032
|
|
2047
|
-
##### [id](https://github.com/appium/ruby_lib/blob/
|
2033
|
+
##### [id](https://github.com/appium/ruby_lib/blob/332599f8a5b134522f03ea375f7bc666e4e39c3d/lib/appium_lib/android/helper.rb#L154) android
|
2048
2034
|
|
2049
2035
|
> def id(id)
|
2050
2036
|
|
@@ -2060,7 +2046,7 @@ __Returns:__
|
|
2060
2046
|
|
2061
2047
|
--
|
2062
2048
|
|
2063
|
-
##### [ids](https://github.com/appium/ruby_lib/blob/
|
2049
|
+
##### [ids](https://github.com/appium/ruby_lib/blob/332599f8a5b134522f03ea375f7bc666e4e39c3d/lib/appium_lib/android/helper.rb#L162) android
|
2064
2050
|
|
2065
2051
|
> def ids(id)
|
2066
2052
|
|
@@ -2076,7 +2062,7 @@ __Returns:__
|
|
2076
2062
|
|
2077
2063
|
--
|
2078
2064
|
|
2079
|
-
##### [ele_index](https://github.com/appium/ruby_lib/blob/
|
2065
|
+
##### [ele_index](https://github.com/appium/ruby_lib/blob/332599f8a5b134522f03ea375f7bc666e4e39c3d/lib/appium_lib/android/helper.rb#L171) android
|
2080
2066
|
|
2081
2067
|
> def ele_index(class_name, index)
|
2082
2068
|
|
@@ -2094,7 +2080,7 @@ __Returns:__
|
|
2094
2080
|
|
2095
2081
|
--
|
2096
2082
|
|
2097
|
-
##### [first_ele](https://github.com/appium/ruby_lib/blob/
|
2083
|
+
##### [first_ele](https://github.com/appium/ruby_lib/blob/332599f8a5b134522f03ea375f7bc666e4e39c3d/lib/appium_lib/android/helper.rb#L189) android
|
2098
2084
|
|
2099
2085
|
> def first_ele(class_name)
|
2100
2086
|
|
@@ -2110,7 +2096,7 @@ __Returns:__
|
|
2110
2096
|
|
2111
2097
|
--
|
2112
2098
|
|
2113
|
-
##### [last_ele](https://github.com/appium/ruby_lib/blob/
|
2099
|
+
##### [last_ele](https://github.com/appium/ruby_lib/blob/332599f8a5b134522f03ea375f7bc666e4e39c3d/lib/appium_lib/android/helper.rb#L196) android
|
2114
2100
|
|
2115
2101
|
> def last_ele(class_name)
|
2116
2102
|
|
@@ -2126,7 +2112,7 @@ __Returns:__
|
|
2126
2112
|
|
2127
2113
|
--
|
2128
2114
|
|
2129
|
-
##### [tag](https://github.com/appium/ruby_lib/blob/
|
2115
|
+
##### [tag](https://github.com/appium/ruby_lib/blob/332599f8a5b134522f03ea375f7bc666e4e39c3d/lib/appium_lib/android/helper.rb#L204) android
|
2130
2116
|
|
2131
2117
|
> def tag(class_name)
|
2132
2118
|
|
@@ -2142,7 +2128,7 @@ __Returns:__
|
|
2142
2128
|
|
2143
2129
|
--
|
2144
2130
|
|
2145
|
-
##### [tags](https://github.com/appium/ruby_lib/blob/
|
2131
|
+
##### [tags](https://github.com/appium/ruby_lib/blob/332599f8a5b134522f03ea375f7bc666e4e39c3d/lib/appium_lib/android/helper.rb#L212) android
|
2146
2132
|
|
2147
2133
|
> def tags(class_name)
|
2148
2134
|
|
@@ -2158,7 +2144,7 @@ __Returns:__
|
|
2158
2144
|
|
2159
2145
|
--
|
2160
2146
|
|
2161
|
-
##### [string_visible_contains_xpath](https://github.com/appium/ruby_lib/blob/
|
2147
|
+
##### [string_visible_contains_xpath](https://github.com/appium/ruby_lib/blob/332599f8a5b134522f03ea375f7bc666e4e39c3d/lib/appium_lib/android/helper.rb#L255) android
|
2162
2148
|
|
2163
2149
|
> def string_visible_contains_xpath(class_name, value)
|
2164
2150
|
|
@@ -2179,7 +2165,7 @@ __Returns:__
|
|
2179
2165
|
|
2180
2166
|
--
|
2181
2167
|
|
2182
|
-
##### [string_visible_contains](https://github.com/appium/ruby_lib/blob/
|
2168
|
+
##### [string_visible_contains](https://github.com/appium/ruby_lib/blob/332599f8a5b134522f03ea375f7bc666e4e39c3d/lib/appium_lib/android/helper.rb#L275) android
|
2183
2169
|
|
2184
2170
|
> def string_visible_contains(class_name, value)
|
2185
2171
|
|
@@ -2200,7 +2186,7 @@ __Returns:__
|
|
2200
2186
|
|
2201
2187
|
--
|
2202
2188
|
|
2203
|
-
##### [complex_find_contains](https://github.com/appium/ruby_lib/blob/
|
2189
|
+
##### [complex_find_contains](https://github.com/appium/ruby_lib/blob/332599f8a5b134522f03ea375f7bc666e4e39c3d/lib/appium_lib/android/helper.rb#L293) android
|
2204
2190
|
|
2205
2191
|
> def complex_find_contains(class_name, value)
|
2206
2192
|
|
@@ -2218,7 +2204,7 @@ __Returns:__
|
|
2218
2204
|
|
2219
2205
|
--
|
2220
2206
|
|
2221
|
-
##### [complex_finds_contains](https://github.com/appium/ruby_lib/blob/
|
2207
|
+
##### [complex_finds_contains](https://github.com/appium/ruby_lib/blob/332599f8a5b134522f03ea375f7bc666e4e39c3d/lib/appium_lib/android/helper.rb#L307) android
|
2222
2208
|
|
2223
2209
|
> def complex_finds_contains(class_name, value)
|
2224
2210
|
|
@@ -2236,7 +2222,7 @@ __Returns:__
|
|
2236
2222
|
|
2237
2223
|
--
|
2238
2224
|
|
2239
|
-
##### [complex_find_exact](https://github.com/appium/ruby_lib/blob/
|
2225
|
+
##### [complex_find_exact](https://github.com/appium/ruby_lib/blob/332599f8a5b134522f03ea375f7bc666e4e39c3d/lib/appium_lib/android/helper.rb#L351) android
|
2240
2226
|
|
2241
2227
|
> def complex_find_exact(class_name, value)
|
2242
2228
|
|
@@ -2254,7 +2240,7 @@ __Returns:__
|
|
2254
2240
|
|
2255
2241
|
--
|
2256
2242
|
|
2257
|
-
##### [complex_finds_exact](https://github.com/appium/ruby_lib/blob/
|
2243
|
+
##### [complex_finds_exact](https://github.com/appium/ruby_lib/blob/332599f8a5b134522f03ea375f7bc666e4e39c3d/lib/appium_lib/android/helper.rb#L365) android
|
2258
2244
|
|
2259
2245
|
> def complex_finds_exact(class_name, value)
|
2260
2246
|
|
@@ -2272,13 +2258,11 @@ __Returns:__
|
|
2272
2258
|
|
2273
2259
|
--
|
2274
2260
|
|
2275
|
-
##### [get_source](https://github.com/appium/ruby_lib/blob/
|
2261
|
+
##### [get_source](https://github.com/appium/ruby_lib/blob/332599f8a5b134522f03ea375f7bc666e4e39c3d/lib/appium_lib/android/helper.rb#L371) android
|
2276
2262
|
|
2277
2263
|
> def get_source
|
2278
2264
|
|
2279
|
-
Returns XML string for the current page
|
2280
|
-
Fixes uiautomator's $ in node names.
|
2281
|
-
`android.app.ActionBar$Tab` becomes `android.app.ActionBar.Tab`
|
2265
|
+
Returns XML string for the current page via `page_source`
|
2282
2266
|
|
2283
2267
|
__Returns:__
|
2284
2268
|
|
@@ -2286,7 +2270,7 @@ __Returns:__
|
|
2286
2270
|
|
2287
2271
|
--
|
2288
2272
|
|
2289
|
-
##### [_nodeset_to_uiselector](https://github.com/appium/ruby_lib/blob/
|
2273
|
+
##### [_nodeset_to_uiselector](https://github.com/appium/ruby_lib/blob/332599f8a5b134522f03ea375f7bc666e4e39c3d/lib/appium_lib/android/client_xpath.rb#L5) android
|
2290
2274
|
|
2291
2275
|
> def _nodeset_to_uiselector(opts = {})
|
2292
2276
|
|
@@ -2294,7 +2278,7 @@ __Returns:__
|
|
2294
2278
|
|
2295
2279
|
--
|
2296
2280
|
|
2297
|
-
##### [_client_xpath](https://github.com/appium/ruby_lib/blob/
|
2281
|
+
##### [_client_xpath](https://github.com/appium/ruby_lib/blob/332599f8a5b134522f03ea375f7bc666e4e39c3d/lib/appium_lib/android/client_xpath.rb#L20) android
|
2298
2282
|
|
2299
2283
|
> def _client_xpath(opts = {})
|
2300
2284
|
|
@@ -2302,7 +2286,7 @@ __Returns:__
|
|
2302
2286
|
|
2303
2287
|
--
|
2304
2288
|
|
2305
|
-
##### [client_xpath](https://github.com/appium/ruby_lib/blob/
|
2289
|
+
##### [client_xpath](https://github.com/appium/ruby_lib/blob/332599f8a5b134522f03ea375f7bc666e4e39c3d/lib/appium_lib/android/client_xpath.rb#L36) android
|
2306
2290
|
|
2307
2291
|
> def client_xpath(xpath)
|
2308
2292
|
|
@@ -2310,7 +2294,7 @@ __Returns:__
|
|
2310
2294
|
|
2311
2295
|
--
|
2312
2296
|
|
2313
|
-
##### [client_xpaths](https://github.com/appium/ruby_lib/blob/
|
2297
|
+
##### [client_xpaths](https://github.com/appium/ruby_lib/blob/332599f8a5b134522f03ea375f7bc666e4e39c3d/lib/appium_lib/android/client_xpath.rb#L40) android
|
2314
2298
|
|
2315
2299
|
> def client_xpaths(xpath)
|
2316
2300
|
|
@@ -2318,7 +2302,7 @@ __Returns:__
|
|
2318
2302
|
|
2319
2303
|
--
|
2320
2304
|
|
2321
|
-
##### [TextView](https://github.com/appium/ruby_lib/blob/
|
2305
|
+
##### [TextView](https://github.com/appium/ruby_lib/blob/332599f8a5b134522f03ea375f7bc666e4e39c3d/lib/appium_lib/android/element/text.rb#L4) android
|
2322
2306
|
|
2323
2307
|
> TextView = 'android.widget.TextView'.freeze
|
2324
2308
|
|
@@ -2326,7 +2310,7 @@ __Returns:__
|
|
2326
2310
|
|
2327
2311
|
--
|
2328
2312
|
|
2329
|
-
##### [text](https://github.com/appium/ruby_lib/blob/
|
2313
|
+
##### [text](https://github.com/appium/ruby_lib/blob/332599f8a5b134522f03ea375f7bc666e4e39c3d/lib/appium_lib/android/element/text.rb#L10) android
|
2330
2314
|
|
2331
2315
|
> def text(value)
|
2332
2316
|
|
@@ -2343,7 +2327,7 @@ __Returns:__
|
|
2343
2327
|
|
2344
2328
|
--
|
2345
2329
|
|
2346
|
-
##### [texts](https://github.com/appium/ruby_lib/blob/
|
2330
|
+
##### [texts](https://github.com/appium/ruby_lib/blob/332599f8a5b134522f03ea375f7bc666e4e39c3d/lib/appium_lib/android/element/text.rb#L19) android
|
2347
2331
|
|
2348
2332
|
> def texts(value = false)
|
2349
2333
|
|
@@ -2360,7 +2344,7 @@ __Returns:__
|
|
2360
2344
|
|
2361
2345
|
--
|
2362
2346
|
|
2363
|
-
##### [first_text](https://github.com/appium/ruby_lib/blob/
|
2347
|
+
##### [first_text](https://github.com/appium/ruby_lib/blob/332599f8a5b134522f03ea375f7bc666e4e39c3d/lib/appium_lib/android/element/text.rb#L26) android
|
2364
2348
|
|
2365
2349
|
> def first_text
|
2366
2350
|
|
@@ -2372,7 +2356,7 @@ __Returns:__
|
|
2372
2356
|
|
2373
2357
|
--
|
2374
2358
|
|
2375
|
-
##### [last_text](https://github.com/appium/ruby_lib/blob/
|
2359
|
+
##### [last_text](https://github.com/appium/ruby_lib/blob/332599f8a5b134522f03ea375f7bc666e4e39c3d/lib/appium_lib/android/element/text.rb#L32) android
|
2376
2360
|
|
2377
2361
|
> def last_text
|
2378
2362
|
|
@@ -2384,7 +2368,7 @@ __Returns:__
|
|
2384
2368
|
|
2385
2369
|
--
|
2386
2370
|
|
2387
|
-
##### [text_exact](https://github.com/appium/ruby_lib/blob/
|
2371
|
+
##### [text_exact](https://github.com/appium/ruby_lib/blob/332599f8a5b134522f03ea375f7bc666e4e39c3d/lib/appium_lib/android/element/text.rb#L39) android
|
2388
2372
|
|
2389
2373
|
> def text_exact(value)
|
2390
2374
|
|
@@ -2400,7 +2384,7 @@ __Returns:__
|
|
2400
2384
|
|
2401
2385
|
--
|
2402
2386
|
|
2403
|
-
##### [texts_exact](https://github.com/appium/ruby_lib/blob/
|
2387
|
+
##### [texts_exact](https://github.com/appium/ruby_lib/blob/332599f8a5b134522f03ea375f7bc666e4e39c3d/lib/appium_lib/android/element/text.rb#L46) android
|
2404
2388
|
|
2405
2389
|
> def texts_exact(value)
|
2406
2390
|
|
@@ -2416,7 +2400,7 @@ __Returns:__
|
|
2416
2400
|
|
2417
2401
|
--
|
2418
2402
|
|
2419
|
-
##### [alert_click](https://github.com/appium/ruby_lib/blob/
|
2403
|
+
##### [alert_click](https://github.com/appium/ruby_lib/blob/332599f8a5b134522f03ea375f7bc666e4e39c3d/lib/appium_lib/android/element/alert.rb#L6) android
|
2420
2404
|
|
2421
2405
|
> def alert_click(value)
|
2422
2406
|
|
@@ -2432,7 +2416,7 @@ __Returns:__
|
|
2432
2416
|
|
2433
2417
|
--
|
2434
2418
|
|
2435
|
-
##### [alert_accept](https://github.com/appium/ruby_lib/blob/
|
2419
|
+
##### [alert_accept](https://github.com/appium/ruby_lib/blob/332599f8a5b134522f03ea375f7bc666e4e39c3d/lib/appium_lib/android/element/alert.rb#L13) android
|
2436
2420
|
|
2437
2421
|
> def alert_accept
|
2438
2422
|
|
@@ -2445,7 +2429,7 @@ __Returns:__
|
|
2445
2429
|
|
2446
2430
|
--
|
2447
2431
|
|
2448
|
-
##### [alert_accept_text](https://github.com/appium/ruby_lib/blob/
|
2432
|
+
##### [alert_accept_text](https://github.com/appium/ruby_lib/blob/332599f8a5b134522f03ea375f7bc666e4e39c3d/lib/appium_lib/android/element/alert.rb#L20) android
|
2449
2433
|
|
2450
2434
|
> def alert_accept_text
|
2451
2435
|
|
@@ -2458,7 +2442,7 @@ __Returns:__
|
|
2458
2442
|
|
2459
2443
|
--
|
2460
2444
|
|
2461
|
-
##### [alert_dismiss](https://github.com/appium/ruby_lib/blob/
|
2445
|
+
##### [alert_dismiss](https://github.com/appium/ruby_lib/blob/332599f8a5b134522f03ea375f7bc666e4e39c3d/lib/appium_lib/android/element/alert.rb#L27) android
|
2462
2446
|
|
2463
2447
|
> def alert_dismiss
|
2464
2448
|
|
@@ -2471,7 +2455,7 @@ __Returns:__
|
|
2471
2455
|
|
2472
2456
|
--
|
2473
2457
|
|
2474
|
-
##### [alert_dismiss_text](https://github.com/appium/ruby_lib/blob/
|
2458
|
+
##### [alert_dismiss_text](https://github.com/appium/ruby_lib/blob/332599f8a5b134522f03ea375f7bc666e4e39c3d/lib/appium_lib/android/element/alert.rb#L34) android
|
2475
2459
|
|
2476
2460
|
> def alert_dismiss_text
|
2477
2461
|
|
@@ -2484,7 +2468,7 @@ __Returns:__
|
|
2484
2468
|
|
2485
2469
|
--
|
2486
2470
|
|
2487
|
-
##### [Button](https://github.com/appium/ruby_lib/blob/
|
2471
|
+
##### [Button](https://github.com/appium/ruby_lib/blob/332599f8a5b134522f03ea375f7bc666e4e39c3d/lib/appium_lib/android/element/button.rb#L4) android
|
2488
2472
|
|
2489
2473
|
> Button = 'android.widget.Button'.freeze
|
2490
2474
|
|
@@ -2492,7 +2476,7 @@ __Returns:__
|
|
2492
2476
|
|
2493
2477
|
--
|
2494
2478
|
|
2495
|
-
##### [ImageButton](https://github.com/appium/ruby_lib/blob/
|
2479
|
+
##### [ImageButton](https://github.com/appium/ruby_lib/blob/332599f8a5b134522f03ea375f7bc666e4e39c3d/lib/appium_lib/android/element/button.rb#L5) android
|
2496
2480
|
|
2497
2481
|
> ImageButton = 'android.widget.ImageButton'.freeze
|
2498
2482
|
|
@@ -2500,7 +2484,7 @@ __Returns:__
|
|
2500
2484
|
|
2501
2485
|
--
|
2502
2486
|
|
2503
|
-
##### [_button_visible_selectors](https://github.com/appium/ruby_lib/blob/
|
2487
|
+
##### [_button_visible_selectors](https://github.com/appium/ruby_lib/blob/332599f8a5b134522f03ea375f7bc666e4e39c3d/lib/appium_lib/android/element/button.rb#L9) android
|
2504
2488
|
|
2505
2489
|
> def _button_visible_selectors(opts = {})
|
2506
2490
|
|
@@ -2508,7 +2492,7 @@ __Returns:__
|
|
2508
2492
|
|
2509
2493
|
--
|
2510
2494
|
|
2511
|
-
##### [_button_exact_string](https://github.com/appium/ruby_lib/blob/
|
2495
|
+
##### [_button_exact_string](https://github.com/appium/ruby_lib/blob/332599f8a5b134522f03ea375f7bc666e4e39c3d/lib/appium_lib/android/element/button.rb#L22) android
|
2512
2496
|
|
2513
2497
|
> def _button_exact_string(value)
|
2514
2498
|
|
@@ -2516,7 +2500,7 @@ __Returns:__
|
|
2516
2500
|
|
2517
2501
|
--
|
2518
2502
|
|
2519
|
-
##### [_button_contains_string](https://github.com/appium/ruby_lib/blob/
|
2503
|
+
##### [_button_contains_string](https://github.com/appium/ruby_lib/blob/332599f8a5b134522f03ea375f7bc666e4e39c3d/lib/appium_lib/android/element/button.rb#L28) android
|
2520
2504
|
|
2521
2505
|
> def _button_contains_string(value)
|
2522
2506
|
|
@@ -2524,7 +2508,7 @@ __Returns:__
|
|
2524
2508
|
|
2525
2509
|
--
|
2526
2510
|
|
2527
|
-
##### [button](https://github.com/appium/ruby_lib/blob/
|
2511
|
+
##### [button](https://github.com/appium/ruby_lib/blob/332599f8a5b134522f03ea375f7bc666e4e39c3d/lib/appium_lib/android/element/button.rb#L40) android
|
2528
2512
|
|
2529
2513
|
> def button(value)
|
2530
2514
|
|
@@ -2541,7 +2525,7 @@ __Returns:__
|
|
2541
2525
|
|
2542
2526
|
--
|
2543
2527
|
|
2544
|
-
##### [buttons](https://github.com/appium/ruby_lib/blob/
|
2528
|
+
##### [buttons](https://github.com/appium/ruby_lib/blob/332599f8a5b134522f03ea375f7bc666e4e39c3d/lib/appium_lib/android/element/button.rb#L68) android
|
2545
2529
|
|
2546
2530
|
> def buttons(value = false)
|
2547
2531
|
|
@@ -2558,7 +2542,7 @@ __Returns:__
|
|
2558
2542
|
|
2559
2543
|
--
|
2560
2544
|
|
2561
|
-
##### [first_button](https://github.com/appium/ruby_lib/blob/
|
2545
|
+
##### [first_button](https://github.com/appium/ruby_lib/blob/332599f8a5b134522f03ea375f7bc666e4e39c3d/lib/appium_lib/android/element/button.rb#L75) android
|
2562
2546
|
|
2563
2547
|
> def first_button
|
2564
2548
|
|
@@ -2570,7 +2554,7 @@ __Returns:__
|
|
2570
2554
|
|
2571
2555
|
--
|
2572
2556
|
|
2573
|
-
##### [last_button](https://github.com/appium/ruby_lib/blob/
|
2557
|
+
##### [last_button](https://github.com/appium/ruby_lib/blob/332599f8a5b134522f03ea375f7bc666e4e39c3d/lib/appium_lib/android/element/button.rb#L86) android
|
2574
2558
|
|
2575
2559
|
> def last_button
|
2576
2560
|
|
@@ -2582,7 +2566,7 @@ __Returns:__
|
|
2582
2566
|
|
2583
2567
|
--
|
2584
2568
|
|
2585
|
-
##### [button_exact](https://github.com/appium/ruby_lib/blob/
|
2569
|
+
##### [button_exact](https://github.com/appium/ruby_lib/blob/332599f8a5b134522f03ea375f7bc666e4e39c3d/lib/appium_lib/android/element/button.rb#L109) android
|
2586
2570
|
|
2587
2571
|
> def button_exact(value)
|
2588
2572
|
|
@@ -2598,7 +2582,7 @@ __Returns:__
|
|
2598
2582
|
|
2599
2583
|
--
|
2600
2584
|
|
2601
|
-
##### [buttons_exact](https://github.com/appium/ruby_lib/blob/
|
2585
|
+
##### [buttons_exact](https://github.com/appium/ruby_lib/blob/332599f8a5b134522f03ea375f7bc666e4e39c3d/lib/appium_lib/android/element/button.rb#L121) android
|
2602
2586
|
|
2603
2587
|
> def buttons_exact(value)
|
2604
2588
|
|
@@ -2614,7 +2598,7 @@ __Returns:__
|
|
2614
2598
|
|
2615
2599
|
--
|
2616
2600
|
|
2617
|
-
##### [raise_no_such_element_if_empty](https://github.com/appium/ruby_lib/blob/
|
2601
|
+
##### [raise_no_such_element_if_empty](https://github.com/appium/ruby_lib/blob/332599f8a5b134522f03ea375f7bc666e4e39c3d/lib/appium_lib/android/element/button.rb#L127) android
|
2618
2602
|
|
2619
2603
|
> def raise_no_such_element_if_empty(elements)
|
2620
2604
|
|
@@ -2622,7 +2606,7 @@ __Returns:__
|
|
2622
2606
|
|
2623
2607
|
--
|
2624
2608
|
|
2625
|
-
##### [uiautomator_find](https://github.com/appium/ruby_lib/blob/
|
2609
|
+
##### [uiautomator_find](https://github.com/appium/ruby_lib/blob/332599f8a5b134522f03ea375f7bc666e4e39c3d/lib/appium_lib/android/mobile_methods.rb#L10) android
|
2626
2610
|
|
2627
2611
|
> def uiautomator_find
|
2628
2612
|
|
@@ -2634,7 +2618,7 @@ find_element/s can be used with a [UISelector](http://developer.android.com/tool
|
|
2634
2618
|
|
2635
2619
|
--
|
2636
2620
|
|
2637
|
-
##### [find](https://github.com/appium/ruby_lib/blob/
|
2621
|
+
##### [find](https://github.com/appium/ruby_lib/blob/332599f8a5b134522f03ea375f7bc666e4e39c3d/lib/appium_lib/android/element/generic.rb#L6) android
|
2638
2622
|
|
2639
2623
|
> def find(value)
|
2640
2624
|
|
@@ -2650,7 +2634,7 @@ __Returns:__
|
|
2650
2634
|
|
2651
2635
|
--
|
2652
2636
|
|
2653
|
-
##### [finds](https://github.com/appium/ruby_lib/blob/
|
2637
|
+
##### [finds](https://github.com/appium/ruby_lib/blob/332599f8a5b134522f03ea375f7bc666e4e39c3d/lib/appium_lib/android/element/generic.rb#L13) android
|
2654
2638
|
|
2655
2639
|
> def finds(value)
|
2656
2640
|
|
@@ -2666,7 +2650,7 @@ __Returns:__
|
|
2666
2650
|
|
2667
2651
|
--
|
2668
2652
|
|
2669
|
-
##### [find_exact](https://github.com/appium/ruby_lib/blob/
|
2653
|
+
##### [find_exact](https://github.com/appium/ruby_lib/blob/332599f8a5b134522f03ea375f7bc666e4e39c3d/lib/appium_lib/android/element/generic.rb#L20) android
|
2670
2654
|
|
2671
2655
|
> def find_exact(value)
|
2672
2656
|
|
@@ -2682,7 +2666,7 @@ __Returns:__
|
|
2682
2666
|
|
2683
2667
|
--
|
2684
2668
|
|
2685
|
-
##### [finds_exact](https://github.com/appium/ruby_lib/blob/
|
2669
|
+
##### [finds_exact](https://github.com/appium/ruby_lib/blob/332599f8a5b134522f03ea375f7bc666e4e39c3d/lib/appium_lib/android/element/generic.rb#L27) android
|
2686
2670
|
|
2687
2671
|
> def finds_exact(value)
|
2688
2672
|
|
@@ -2698,7 +2682,7 @@ __Returns:__
|
|
2698
2682
|
|
2699
2683
|
--
|
2700
2684
|
|
2701
|
-
##### [scroll_to](https://github.com/appium/ruby_lib/blob/
|
2685
|
+
##### [scroll_to](https://github.com/appium/ruby_lib/blob/332599f8a5b134522f03ea375f7bc666e4e39c3d/lib/appium_lib/android/element/generic.rb#L40) android
|
2702
2686
|
|
2703
2687
|
> def scroll_to(text, scrollable_index = 0)
|
2704
2688
|
|
@@ -2716,7 +2700,7 @@ __Returns:__
|
|
2716
2700
|
|
2717
2701
|
--
|
2718
2702
|
|
2719
|
-
##### [scroll_to_exact](https://github.com/appium/ruby_lib/blob/
|
2703
|
+
##### [scroll_to_exact](https://github.com/appium/ruby_lib/blob/332599f8a5b134522f03ea375f7bc666e4e39c3d/lib/appium_lib/android/element/generic.rb#L54) android
|
2720
2704
|
|
2721
2705
|
> def scroll_to_exact(text, scrollable_index = 0)
|
2722
2706
|
|
@@ -2734,7 +2718,7 @@ __Returns:__
|
|
2734
2718
|
|
2735
2719
|
--
|
2736
2720
|
|
2737
|
-
##### [EditText](https://github.com/appium/ruby_lib/blob/
|
2721
|
+
##### [EditText](https://github.com/appium/ruby_lib/blob/332599f8a5b134522f03ea375f7bc666e4e39c3d/lib/appium_lib/android/element/textfield.rb#L3) android
|
2738
2722
|
|
2739
2723
|
> EditText = 'android.widget.EditText'.freeze
|
2740
2724
|
|
@@ -2742,7 +2726,7 @@ __Returns:__
|
|
2742
2726
|
|
2743
2727
|
--
|
2744
2728
|
|
2745
|
-
##### [textfield](https://github.com/appium/ruby_lib/blob/
|
2729
|
+
##### [textfield](https://github.com/appium/ruby_lib/blob/332599f8a5b134522f03ea375f7bc666e4e39c3d/lib/appium_lib/android/element/textfield.rb#L9) android
|
2746
2730
|
|
2747
2731
|
> def textfield(value)
|
2748
2732
|
|
@@ -2759,7 +2743,7 @@ __Returns:__
|
|
2759
2743
|
|
2760
2744
|
--
|
2761
2745
|
|
2762
|
-
##### [textfields](https://github.com/appium/ruby_lib/blob/
|
2746
|
+
##### [textfields](https://github.com/appium/ruby_lib/blob/332599f8a5b134522f03ea375f7bc666e4e39c3d/lib/appium_lib/android/element/textfield.rb#L18) android
|
2763
2747
|
|
2764
2748
|
> def textfields(value = false)
|
2765
2749
|
|
@@ -2776,7 +2760,7 @@ __Returns:__
|
|
2776
2760
|
|
2777
2761
|
--
|
2778
2762
|
|
2779
|
-
##### [first_textfield](https://github.com/appium/ruby_lib/blob/
|
2763
|
+
##### [first_textfield](https://github.com/appium/ruby_lib/blob/332599f8a5b134522f03ea375f7bc666e4e39c3d/lib/appium_lib/android/element/textfield.rb#L25) android
|
2780
2764
|
|
2781
2765
|
> def first_textfield
|
2782
2766
|
|
@@ -2788,7 +2772,7 @@ __Returns:__
|
|
2788
2772
|
|
2789
2773
|
--
|
2790
2774
|
|
2791
|
-
##### [last_textfield](https://github.com/appium/ruby_lib/blob/
|
2775
|
+
##### [last_textfield](https://github.com/appium/ruby_lib/blob/332599f8a5b134522f03ea375f7bc666e4e39c3d/lib/appium_lib/android/element/textfield.rb#L31) android
|
2792
2776
|
|
2793
2777
|
> def last_textfield
|
2794
2778
|
|
@@ -2800,7 +2784,7 @@ __Returns:__
|
|
2800
2784
|
|
2801
2785
|
--
|
2802
2786
|
|
2803
|
-
##### [textfield_exact](https://github.com/appium/ruby_lib/blob/
|
2787
|
+
##### [textfield_exact](https://github.com/appium/ruby_lib/blob/332599f8a5b134522f03ea375f7bc666e4e39c3d/lib/appium_lib/android/element/textfield.rb#L38) android
|
2804
2788
|
|
2805
2789
|
> def textfield_exact(value)
|
2806
2790
|
|
@@ -2816,7 +2800,7 @@ __Returns:__
|
|
2816
2800
|
|
2817
2801
|
--
|
2818
2802
|
|
2819
|
-
##### [textfields_exact](https://github.com/appium/ruby_lib/blob/
|
2803
|
+
##### [textfields_exact](https://github.com/appium/ruby_lib/blob/332599f8a5b134522f03ea375f7bc666e4e39c3d/lib/appium_lib/android/element/textfield.rb#L45) android
|
2820
2804
|
|
2821
2805
|
> def textfields_exact(value)
|
2822
2806
|
|
@@ -2832,7 +2816,7 @@ __Returns:__
|
|
2832
2816
|
|
2833
2817
|
--
|
2834
2818
|
|
2835
|
-
##### [value](https://github.com/appium/ruby_lib/blob/
|
2819
|
+
##### [value](https://github.com/appium/ruby_lib/blob/332599f8a5b134522f03ea375f7bc666e4e39c3d/lib/appium_lib/common/patch.rb#L12)
|
2836
2820
|
|
2837
2821
|
> def value
|
2838
2822
|
|
@@ -2842,7 +2826,7 @@ Fixes NoMethodError: undefined method `value' for Selenium::WebDriver::Element
|
|
2842
2826
|
|
2843
2827
|
--
|
2844
2828
|
|
2845
|
-
##### [name](https://github.com/appium/ruby_lib/blob/
|
2829
|
+
##### [name](https://github.com/appium/ruby_lib/blob/332599f8a5b134522f03ea375f7bc666e4e39c3d/lib/appium_lib/common/patch.rb#L19)
|
2846
2830
|
|
2847
2831
|
> def name
|
2848
2832
|
|
@@ -2852,7 +2836,7 @@ Fixes NoMethodError: undefined method `name' for Selenium::WebDriver::Element
|
|
2852
2836
|
|
2853
2837
|
--
|
2854
2838
|
|
2855
|
-
##### [location_rel](https://github.com/appium/ruby_lib/blob/
|
2839
|
+
##### [location_rel](https://github.com/appium/ruby_lib/blob/332599f8a5b134522f03ea375f7bc666e4e39c3d/lib/appium_lib/common/patch.rb#L31)
|
2856
2840
|
|
2857
2841
|
> def location_rel
|
2858
2842
|
|
@@ -2870,7 +2854,7 @@ __Returns:__
|
|
2870
2854
|
|
2871
2855
|
--
|
2872
2856
|
|
2873
|
-
##### [DEFAULT_HEADERS](https://github.com/appium/ruby_lib/blob/
|
2857
|
+
##### [DEFAULT_HEADERS](https://github.com/appium/ruby_lib/blob/332599f8a5b134522f03ea375f7bc666e4e39c3d/lib/appium_lib/common/patch.rb#L152)
|
2874
2858
|
|
2875
2859
|
> DEFAULT_HEADERS = { 'Accept' => CONTENT_TYPE, 'User-Agent' => "appium/ruby_lib/#{::Appium::VERSION}" }.freeze
|
2876
2860
|
|
@@ -2878,7 +2862,7 @@ __Returns:__
|
|
2878
2862
|
|
2879
2863
|
--
|
2880
2864
|
|
2881
|
-
##### [patch_remote_driver_commands](https://github.com/appium/ruby_lib/blob/
|
2865
|
+
##### [patch_remote_driver_commands](https://github.com/appium/ruby_lib/blob/332599f8a5b134522f03ea375f7bc666e4e39c3d/lib/appium_lib/common/patch.rb#L155)
|
2882
2866
|
|
2883
2867
|
> def patch_remote_driver_commands
|
2884
2868
|
|