appium_lib 9.4.4 → 9.4.5
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 +10 -0
- data/docs/android_docs.md +224 -304
- data/docs/ios_docs.md +267 -329
- data/grid/README.md +21 -0
- data/grid/appium.txt.ios.example +15 -0
- data/grid/config.json +25 -0
- data/grid/hub_config.json +14 -0
- data/grid/selenium-server-standalone-2.53.1.jar +0 -0
- data/grid/selenium-server-standalone-3.2.0.jar +0 -0
- data/ios_tests/lib/ios/specs/device/device.rb +2 -1
- data/ios_tests/lib/ios/specs/device/multi_touch.rb +2 -2
- data/ios_tests/lib/ios/specs/device/touch_actions.rb +1 -1
- data/ios_tests/lib/ios/specs/ios/xcuitest_gestures.rb +8 -0
- data/lib/appium_lib/common/version.rb +2 -2
- data/lib/appium_lib/device/touch_actions.rb +2 -0
- data/lib/appium_lib/driver.rb +15 -12
- data/lib/appium_lib/ios/xcuitest_gestures.rb +21 -1
- data/readme.md +3 -0
- data/release_notes.md +11 -0
- metadata +8 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: f1ab8fa376f62b53972b6351fa09b9abaf04a604
|
|
4
|
+
data.tar.gz: 9314bbc39169a3bffca086de0f14a0ec5fbb3e90
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 30313d1ba00e052df4e907d1cae6db40a1f5a2d32600b777a3c7df1e8c708def840504ecbacec43047200234f430d50328c81aaaa7d0338e84381090a6b6f855
|
|
7
|
+
data.tar.gz: e918e27f3a702727e392e6d6b7b6bd9d731f3651475324c2f406c5e9bed16bd9e196d3345b7b15b48a08318977b3383081502d255dd120caf8ff10eb30d2aa2c
|
data/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,16 @@ 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.5
|
|
7
|
+
### 1. Enhancements
|
|
8
|
+
- add `touch_and_hols` for `mobile:` command in XCUITest [#581](https://github.com/appium/ruby_lib/pull/581)
|
|
9
|
+
- Driver disables Pry pager without asking [#582](https://github.com/appium/ruby_lib/issues/582)
|
|
10
|
+
- add grid environments in this repository.
|
|
11
|
+
|
|
12
|
+
### 2. Bug fixes
|
|
13
|
+
|
|
14
|
+
### 3. Deprecations
|
|
15
|
+
|
|
6
16
|
## v9.4.4
|
|
7
17
|
### 1. Enhancements
|
|
8
18
|
- add mobile gesture, `mobile: alert`
|
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/5e5b3fbd4d7c84904f9a3158975081fc1786ad0e/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/5e5b3fbd4d7c84904f9a3158975081fc1786ad0e/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/5e5b3fbd4d7c84904f9a3158975081fc1786ad0e/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/5e5b3fbd4d7c84904f9a3158975081fc1786ad0e/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/5e5b3fbd4d7c84904f9a3158975081fc1786ad0e/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/5e5b3fbd4d7c84904f9a3158975081fc1786ad0e/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/5e5b3fbd4d7c84904f9a3158975081fc1786ad0e/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/5e5b3fbd4d7c84904f9a3158975081fc1786ad0e/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/5e5b3fbd4d7c84904f9a3158975081fc1786ad0e/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/5e5b3fbd4d7c84904f9a3158975081fc1786ad0e/lib/appium_lib/driver.rb#L279)
|
|
173
173
|
|
|
174
174
|
> def caps
|
|
175
175
|
|
|
@@ -177,15 +177,7 @@ Selenium webdriver capabilities
|
|
|
177
177
|
|
|
178
178
|
--
|
|
179
179
|
|
|
180
|
-
##### [
|
|
181
|
-
|
|
182
|
-
> def caps=(value)
|
|
183
|
-
|
|
184
|
-
Selenium webdriver capabilities
|
|
185
|
-
|
|
186
|
-
--
|
|
187
|
-
|
|
188
|
-
##### [custom_url](https://github.com/appium/ruby_lib/blob/332599f8a5b134522f03ea375f7bc666e4e39c3d/lib/appium_lib/driver.rb#L281)
|
|
180
|
+
##### [custom_url](https://github.com/appium/ruby_lib/blob/5e5b3fbd4d7c84904f9a3158975081fc1786ad0e/lib/appium_lib/driver.rb#L281)
|
|
189
181
|
|
|
190
182
|
> def custom_url
|
|
191
183
|
|
|
@@ -193,15 +185,7 @@ Custom URL for the selenium server
|
|
|
193
185
|
|
|
194
186
|
--
|
|
195
187
|
|
|
196
|
-
##### [
|
|
197
|
-
|
|
198
|
-
> def custom_url=(value)
|
|
199
|
-
|
|
200
|
-
Custom URL for the selenium server
|
|
201
|
-
|
|
202
|
-
--
|
|
203
|
-
|
|
204
|
-
##### [export_session](https://github.com/appium/ruby_lib/blob/332599f8a5b134522f03ea375f7bc666e4e39c3d/lib/appium_lib/driver.rb#L283)
|
|
188
|
+
##### [export_session](https://github.com/appium/ruby_lib/blob/5e5b3fbd4d7c84904f9a3158975081fc1786ad0e/lib/appium_lib/driver.rb#L283)
|
|
205
189
|
|
|
206
190
|
> def export_session
|
|
207
191
|
|
|
@@ -209,15 +193,7 @@ Export session id to textfile in /tmp for 3rd party tools
|
|
|
209
193
|
|
|
210
194
|
--
|
|
211
195
|
|
|
212
|
-
##### [
|
|
213
|
-
|
|
214
|
-
> def export_session=(value)
|
|
215
|
-
|
|
216
|
-
Export session id to textfile in /tmp for 3rd party tools
|
|
217
|
-
|
|
218
|
-
--
|
|
219
|
-
|
|
220
|
-
##### [default_wait](https://github.com/appium/ruby_lib/blob/332599f8a5b134522f03ea375f7bc666e4e39c3d/lib/appium_lib/driver.rb#L288)
|
|
196
|
+
##### [default_wait](https://github.com/appium/ruby_lib/blob/5e5b3fbd4d7c84904f9a3158975081fc1786ad0e/lib/appium_lib/driver.rb#L288)
|
|
221
197
|
|
|
222
198
|
> def default_wait
|
|
223
199
|
|
|
@@ -231,7 +207,7 @@ __Returns:__
|
|
|
231
207
|
|
|
232
208
|
--
|
|
233
209
|
|
|
234
|
-
##### [sauce_username](https://github.com/appium/ruby_lib/blob/
|
|
210
|
+
##### [sauce_username](https://github.com/appium/ruby_lib/blob/5e5b3fbd4d7c84904f9a3158975081fc1786ad0e/lib/appium_lib/driver.rb#L290)
|
|
235
211
|
|
|
236
212
|
> def sauce_username
|
|
237
213
|
|
|
@@ -239,15 +215,7 @@ Username for use on Sauce Labs. Set `false` to disable Sauce, even when SAUCE_US
|
|
|
239
215
|
|
|
240
216
|
--
|
|
241
217
|
|
|
242
|
-
##### [
|
|
243
|
-
|
|
244
|
-
> def sauce_username=(value)
|
|
245
|
-
|
|
246
|
-
Username for use on Sauce Labs. Set `false` to disable Sauce, even when SAUCE_USERNAME is in ENV.
|
|
247
|
-
|
|
248
|
-
--
|
|
249
|
-
|
|
250
|
-
##### [sauce_access_key](https://github.com/appium/ruby_lib/blob/332599f8a5b134522f03ea375f7bc666e4e39c3d/lib/appium_lib/driver.rb#L292)
|
|
218
|
+
##### [sauce_access_key](https://github.com/appium/ruby_lib/blob/5e5b3fbd4d7c84904f9a3158975081fc1786ad0e/lib/appium_lib/driver.rb#L292)
|
|
251
219
|
|
|
252
220
|
> def sauce_access_key
|
|
253
221
|
|
|
@@ -255,15 +223,7 @@ Access Key for use on Sauce Labs. Set `false` to disable Sauce, even when SAUCE_
|
|
|
255
223
|
|
|
256
224
|
--
|
|
257
225
|
|
|
258
|
-
##### [
|
|
259
|
-
|
|
260
|
-
> def sauce_access_key=(value)
|
|
261
|
-
|
|
262
|
-
Access Key for use on Sauce Labs. Set `false` to disable Sauce, even when SAUCE_ACCESS_KEY is in ENV.
|
|
263
|
-
|
|
264
|
-
--
|
|
265
|
-
|
|
266
|
-
##### [sauce_endpoint](https://github.com/appium/ruby_lib/blob/332599f8a5b134522f03ea375f7bc666e4e39c3d/lib/appium_lib/driver.rb#L294)
|
|
226
|
+
##### [sauce_endpoint](https://github.com/appium/ruby_lib/blob/5e5b3fbd4d7c84904f9a3158975081fc1786ad0e/lib/appium_lib/driver.rb#L294)
|
|
267
227
|
|
|
268
228
|
> def sauce_endpoint
|
|
269
229
|
|
|
@@ -271,15 +231,7 @@ Override the Sauce Appium endpoint to allow e.g. TestObject tests
|
|
|
271
231
|
|
|
272
232
|
--
|
|
273
233
|
|
|
274
|
-
##### [
|
|
275
|
-
|
|
276
|
-
> def sauce_endpoint=(value)
|
|
277
|
-
|
|
278
|
-
Override the Sauce Appium endpoint to allow e.g. TestObject tests
|
|
279
|
-
|
|
280
|
-
--
|
|
281
|
-
|
|
282
|
-
##### [appium_port](https://github.com/appium/ruby_lib/blob/332599f8a5b134522f03ea375f7bc666e4e39c3d/lib/appium_lib/driver.rb#L296)
|
|
234
|
+
##### [appium_port](https://github.com/appium/ruby_lib/blob/5e5b3fbd4d7c84904f9a3158975081fc1786ad0e/lib/appium_lib/driver.rb#L296)
|
|
283
235
|
|
|
284
236
|
> def appium_port
|
|
285
237
|
|
|
@@ -287,15 +239,7 @@ Appium's server port
|
|
|
287
239
|
|
|
288
240
|
--
|
|
289
241
|
|
|
290
|
-
##### [
|
|
291
|
-
|
|
292
|
-
> def appium_port=(value)
|
|
293
|
-
|
|
294
|
-
Appium's server port
|
|
295
|
-
|
|
296
|
-
--
|
|
297
|
-
|
|
298
|
-
##### [appium_device](https://github.com/appium/ruby_lib/blob/332599f8a5b134522f03ea375f7bc666e4e39c3d/lib/appium_lib/driver.rb#L298)
|
|
242
|
+
##### [appium_device](https://github.com/appium/ruby_lib/blob/5e5b3fbd4d7c84904f9a3158975081fc1786ad0e/lib/appium_lib/driver.rb#L298)
|
|
299
243
|
|
|
300
244
|
> def appium_device
|
|
301
245
|
|
|
@@ -303,15 +247,7 @@ Device type to request from the appium server
|
|
|
303
247
|
|
|
304
248
|
--
|
|
305
249
|
|
|
306
|
-
##### [
|
|
307
|
-
|
|
308
|
-
> def appium_device=(value)
|
|
309
|
-
|
|
310
|
-
Device type to request from the appium server
|
|
311
|
-
|
|
312
|
-
--
|
|
313
|
-
|
|
314
|
-
##### [automation_name](https://github.com/appium/ruby_lib/blob/332599f8a5b134522f03ea375f7bc666e4e39c3d/lib/appium_lib/driver.rb#L301)
|
|
250
|
+
##### [automation_name](https://github.com/appium/ruby_lib/blob/5e5b3fbd4d7c84904f9a3158975081fc1786ad0e/lib/appium_lib/driver.rb#L301)
|
|
315
251
|
|
|
316
252
|
> def automation_name
|
|
317
253
|
|
|
@@ -320,7 +256,7 @@ If automation_name is nil, it is not set both client side and server side.
|
|
|
320
256
|
|
|
321
257
|
--
|
|
322
258
|
|
|
323
|
-
##### [appium_server_status](https://github.com/appium/ruby_lib/blob/
|
|
259
|
+
##### [appium_server_status](https://github.com/appium/ruby_lib/blob/5e5b3fbd4d7c84904f9a3158975081fc1786ad0e/lib/appium_lib/driver.rb#L303)
|
|
324
260
|
|
|
325
261
|
> def appium_server_status
|
|
326
262
|
|
|
@@ -328,7 +264,7 @@ Appium's server version
|
|
|
328
264
|
|
|
329
265
|
--
|
|
330
266
|
|
|
331
|
-
##### [appium_debug](https://github.com/appium/ruby_lib/blob/
|
|
267
|
+
##### [appium_debug](https://github.com/appium/ruby_lib/blob/5e5b3fbd4d7c84904f9a3158975081fc1786ad0e/lib/appium_lib/driver.rb#L305)
|
|
332
268
|
|
|
333
269
|
> def appium_debug
|
|
334
270
|
|
|
@@ -336,15 +272,7 @@ Boolean debug mode for the Appium Ruby bindings
|
|
|
336
272
|
|
|
337
273
|
--
|
|
338
274
|
|
|
339
|
-
##### [
|
|
340
|
-
|
|
341
|
-
> def appium_debug=(value)
|
|
342
|
-
|
|
343
|
-
Boolean debug mode for the Appium Ruby bindings
|
|
344
|
-
|
|
345
|
-
--
|
|
346
|
-
|
|
347
|
-
##### [listener](https://github.com/appium/ruby_lib/blob/332599f8a5b134522f03ea375f7bc666e4e39c3d/lib/appium_lib/driver.rb#L307)
|
|
275
|
+
##### [listener](https://github.com/appium/ruby_lib/blob/5e5b3fbd4d7c84904f9a3158975081fc1786ad0e/lib/appium_lib/driver.rb#L307)
|
|
348
276
|
|
|
349
277
|
> def listener
|
|
350
278
|
|
|
@@ -352,15 +280,7 @@ instance of AbstractEventListener for logging support
|
|
|
352
280
|
|
|
353
281
|
--
|
|
354
282
|
|
|
355
|
-
##### [
|
|
356
|
-
|
|
357
|
-
> def listener=(value)
|
|
358
|
-
|
|
359
|
-
instance of AbstractEventListener for logging support
|
|
360
|
-
|
|
361
|
-
--
|
|
362
|
-
|
|
363
|
-
##### [driver](https://github.com/appium/ruby_lib/blob/332599f8a5b134522f03ea375f7bc666e4e39c3d/lib/appium_lib/driver.rb#L310)
|
|
283
|
+
##### [driver](https://github.com/appium/ruby_lib/blob/5e5b3fbd4d7c84904f9a3158975081fc1786ad0e/lib/appium_lib/driver.rb#L310)
|
|
364
284
|
|
|
365
285
|
> def driver
|
|
366
286
|
|
|
@@ -372,7 +292,7 @@ __Returns:__
|
|
|
372
292
|
|
|
373
293
|
--
|
|
374
294
|
|
|
375
|
-
##### [http_client](https://github.com/appium/ruby_lib/blob/
|
|
295
|
+
##### [http_client](https://github.com/appium/ruby_lib/blob/5e5b3fbd4d7c84904f9a3158975081fc1786ad0e/lib/appium_lib/driver.rb#L313)
|
|
376
296
|
|
|
377
297
|
> def http_client
|
|
378
298
|
|
|
@@ -384,7 +304,7 @@ __Returns:__
|
|
|
384
304
|
|
|
385
305
|
--
|
|
386
306
|
|
|
387
|
-
##### [appium_wait_timeout](https://github.com/appium/ruby_lib/blob/
|
|
307
|
+
##### [appium_wait_timeout](https://github.com/appium/ruby_lib/blob/5e5b3fbd4d7c84904f9a3158975081fc1786ad0e/lib/appium_lib/driver.rb#L318)
|
|
388
308
|
|
|
389
309
|
> def appium_wait_timeout
|
|
390
310
|
|
|
@@ -398,7 +318,7 @@ __Returns:__
|
|
|
398
318
|
|
|
399
319
|
--
|
|
400
320
|
|
|
401
|
-
##### [appium_wait_interval](https://github.com/appium/ruby_lib/blob/
|
|
321
|
+
##### [appium_wait_interval](https://github.com/appium/ruby_lib/blob/5e5b3fbd4d7c84904f9a3158975081fc1786ad0e/lib/appium_lib/driver.rb#L323)
|
|
402
322
|
|
|
403
323
|
> def appium_wait_interval
|
|
404
324
|
|
|
@@ -412,7 +332,7 @@ __Returns:__
|
|
|
412
332
|
|
|
413
333
|
--
|
|
414
334
|
|
|
415
|
-
##### [initialize](https://github.com/appium/ruby_lib/blob/
|
|
335
|
+
##### [initialize](https://github.com/appium/ruby_lib/blob/5e5b3fbd4d7c84904f9a3158975081fc1786ad0e/lib/appium_lib/driver.rb#L363)
|
|
416
336
|
|
|
417
337
|
> def initialize(opts = {})
|
|
418
338
|
|
|
@@ -428,7 +348,7 @@ __Returns:__
|
|
|
428
348
|
|
|
429
349
|
--
|
|
430
350
|
|
|
431
|
-
##### [driver_attributes](https://github.com/appium/ruby_lib/blob/
|
|
351
|
+
##### [driver_attributes](https://github.com/appium/ruby_lib/blob/5e5b3fbd4d7c84904f9a3158975081fc1786ad0e/lib/appium_lib/driver.rb#L441)
|
|
432
352
|
|
|
433
353
|
> def driver_attributes
|
|
434
354
|
|
|
@@ -436,7 +356,7 @@ Returns a hash of the driver attributes
|
|
|
436
356
|
|
|
437
357
|
--
|
|
438
358
|
|
|
439
|
-
##### [device_is_android?](https://github.com/appium/ruby_lib/blob/
|
|
359
|
+
##### [device_is_android?](https://github.com/appium/ruby_lib/blob/5e5b3fbd4d7c84904f9a3158975081fc1786ad0e/lib/appium_lib/driver.rb#L466)
|
|
440
360
|
|
|
441
361
|
> def device_is_android?
|
|
442
362
|
|
|
@@ -448,7 +368,7 @@ __Returns:__
|
|
|
448
368
|
|
|
449
369
|
--
|
|
450
370
|
|
|
451
|
-
##### [automation_name_is_xcuitest?](https://github.com/appium/ruby_lib/blob/
|
|
371
|
+
##### [automation_name_is_xcuitest?](https://github.com/appium/ruby_lib/blob/5e5b3fbd4d7c84904f9a3158975081fc1786ad0e/lib/appium_lib/driver.rb#L472)
|
|
452
372
|
|
|
453
373
|
> def automation_name_is_xcuitest?
|
|
454
374
|
|
|
@@ -460,7 +380,7 @@ __Returns:__
|
|
|
460
380
|
|
|
461
381
|
--
|
|
462
382
|
|
|
463
|
-
##### [automation_name_is_uiautomator2?](https://github.com/appium/ruby_lib/blob/
|
|
383
|
+
##### [automation_name_is_uiautomator2?](https://github.com/appium/ruby_lib/blob/5e5b3fbd4d7c84904f9a3158975081fc1786ad0e/lib/appium_lib/driver.rb#L478)
|
|
464
384
|
|
|
465
385
|
> def automation_name_is_uiautomator2?
|
|
466
386
|
|
|
@@ -472,7 +392,7 @@ __Returns:__
|
|
|
472
392
|
|
|
473
393
|
--
|
|
474
394
|
|
|
475
|
-
##### [check_server_version_xcuitest](https://github.com/appium/ruby_lib/blob/
|
|
395
|
+
##### [check_server_version_xcuitest](https://github.com/appium/ruby_lib/blob/5e5b3fbd4d7c84904f9a3158975081fc1786ad0e/lib/appium_lib/driver.rb#L485)
|
|
476
396
|
|
|
477
397
|
> def check_server_version_xcuitest
|
|
478
398
|
|
|
@@ -485,7 +405,7 @@ __Returns:__
|
|
|
485
405
|
|
|
486
406
|
--
|
|
487
407
|
|
|
488
|
-
##### [appium_server_version](https://github.com/appium/ruby_lib/blob/
|
|
408
|
+
##### [appium_server_version](https://github.com/appium/ruby_lib/blob/5e5b3fbd4d7c84904f9a3158975081fc1786ad0e/lib/appium_lib/driver.rb#L506)
|
|
489
409
|
|
|
490
410
|
> def appium_server_version
|
|
491
411
|
|
|
@@ -506,7 +426,7 @@ __Returns:__
|
|
|
506
426
|
|
|
507
427
|
--
|
|
508
428
|
|
|
509
|
-
##### [appium_client_version](https://github.com/appium/ruby_lib/blob/
|
|
429
|
+
##### [appium_client_version](https://github.com/appium/ruby_lib/blob/5e5b3fbd4d7c84904f9a3158975081fc1786ad0e/lib/appium_lib/driver.rb#L523)
|
|
510
430
|
|
|
511
431
|
> def appium_client_version
|
|
512
432
|
|
|
@@ -524,7 +444,7 @@ __Returns:__
|
|
|
524
444
|
|
|
525
445
|
--
|
|
526
446
|
|
|
527
|
-
##### [absolute_app_path](https://github.com/appium/ruby_lib/blob/
|
|
447
|
+
##### [absolute_app_path](https://github.com/appium/ruby_lib/blob/5e5b3fbd4d7c84904f9a3158975081fc1786ad0e/lib/appium_lib/driver.rb#L535)
|
|
528
448
|
|
|
529
449
|
> def self.absolute_app_path(opts)
|
|
530
450
|
|
|
@@ -541,7 +461,7 @@ __Returns:__
|
|
|
541
461
|
|
|
542
462
|
--
|
|
543
463
|
|
|
544
|
-
##### [server_url](https://github.com/appium/ruby_lib/blob/
|
|
464
|
+
##### [server_url](https://github.com/appium/ruby_lib/blob/5e5b3fbd4d7c84904f9a3158975081fc1786ad0e/lib/appium_lib/driver.rb#L568)
|
|
545
465
|
|
|
546
466
|
> def server_url
|
|
547
467
|
|
|
@@ -553,7 +473,7 @@ __Returns:__
|
|
|
553
473
|
|
|
554
474
|
--
|
|
555
475
|
|
|
556
|
-
##### [restart](https://github.com/appium/ruby_lib/blob/
|
|
476
|
+
##### [restart](https://github.com/appium/ruby_lib/blob/5e5b3fbd4d7c84904f9a3158975081fc1786ad0e/lib/appium_lib/driver.rb#L579)
|
|
557
477
|
|
|
558
478
|
> def restart
|
|
559
479
|
|
|
@@ -565,7 +485,7 @@ __Returns:__
|
|
|
565
485
|
|
|
566
486
|
--
|
|
567
487
|
|
|
568
|
-
##### [screenshot](https://github.com/appium/ruby_lib/blob/
|
|
488
|
+
##### [screenshot](https://github.com/appium/ruby_lib/blob/5e5b3fbd4d7c84904f9a3158975081fc1786ad0e/lib/appium_lib/driver.rb#L590)
|
|
569
489
|
|
|
570
490
|
> def screenshot(png_save_path)
|
|
571
491
|
|
|
@@ -583,7 +503,7 @@ __Returns:__
|
|
|
583
503
|
|
|
584
504
|
--
|
|
585
505
|
|
|
586
|
-
##### [driver_quit](https://github.com/appium/ruby_lib/blob/
|
|
506
|
+
##### [driver_quit](https://github.com/appium/ruby_lib/blob/5e5b3fbd4d7c84904f9a3158975081fc1786ad0e/lib/appium_lib/driver.rb#L597)
|
|
587
507
|
|
|
588
508
|
> def driver_quit
|
|
589
509
|
|
|
@@ -595,7 +515,7 @@ __Returns:__
|
|
|
595
515
|
|
|
596
516
|
--
|
|
597
517
|
|
|
598
|
-
##### [start_driver](https://github.com/appium/ruby_lib/blob/
|
|
518
|
+
##### [start_driver](https://github.com/appium/ruby_lib/blob/5e5b3fbd4d7c84904f9a3158975081fc1786ad0e/lib/appium_lib/driver.rb#L607)
|
|
599
519
|
|
|
600
520
|
> def start_driver
|
|
601
521
|
|
|
@@ -607,7 +527,7 @@ __Returns:__
|
|
|
607
527
|
|
|
608
528
|
--
|
|
609
529
|
|
|
610
|
-
##### [no_wait](https://github.com/appium/ruby_lib/blob/
|
|
530
|
+
##### [no_wait](https://github.com/appium/ruby_lib/blob/5e5b3fbd4d7c84904f9a3158975081fc1786ad0e/lib/appium_lib/driver.rb#L645)
|
|
611
531
|
|
|
612
532
|
> def no_wait
|
|
613
533
|
|
|
@@ -615,7 +535,7 @@ Set implicit wait to zero.
|
|
|
615
535
|
|
|
616
536
|
--
|
|
617
537
|
|
|
618
|
-
##### [set_wait](https://github.com/appium/ruby_lib/blob/
|
|
538
|
+
##### [set_wait](https://github.com/appium/ruby_lib/blob/5e5b3fbd4d7c84904f9a3158975081fc1786ad0e/lib/appium_lib/driver.rb#L659)
|
|
619
539
|
|
|
620
540
|
> def set_wait(timeout = nil)
|
|
621
541
|
|
|
@@ -637,7 +557,7 @@ __Returns:__
|
|
|
637
557
|
|
|
638
558
|
--
|
|
639
559
|
|
|
640
|
-
##### [exists](https://github.com/appium/ruby_lib/blob/
|
|
560
|
+
##### [exists](https://github.com/appium/ruby_lib/blob/5e5b3fbd4d7c84904f9a3158975081fc1786ad0e/lib/appium_lib/driver.rb#L676)
|
|
641
561
|
|
|
642
562
|
> def exists(pre_check = 0, post_check = @default_wait)
|
|
643
563
|
|
|
@@ -661,7 +581,7 @@ __Returns:__
|
|
|
661
581
|
|
|
662
582
|
--
|
|
663
583
|
|
|
664
|
-
##### [execute_script](https://github.com/appium/ruby_lib/blob/
|
|
584
|
+
##### [execute_script](https://github.com/appium/ruby_lib/blob/5e5b3fbd4d7c84904f9a3158975081fc1786ad0e/lib/appium_lib/driver.rb#L700)
|
|
665
585
|
|
|
666
586
|
> def execute_script(script, *args)
|
|
667
587
|
|
|
@@ -679,7 +599,7 @@ __Returns:__
|
|
|
679
599
|
|
|
680
600
|
--
|
|
681
601
|
|
|
682
|
-
##### [find_elements](https://github.com/appium/ruby_lib/blob/
|
|
602
|
+
##### [find_elements](https://github.com/appium/ruby_lib/blob/5e5b3fbd4d7c84904f9a3158975081fc1786ad0e/lib/appium_lib/driver.rb#L722)
|
|
683
603
|
|
|
684
604
|
> def find_elements(*args)
|
|
685
605
|
|
|
@@ -705,7 +625,7 @@ __Returns:__
|
|
|
705
625
|
|
|
706
626
|
--
|
|
707
627
|
|
|
708
|
-
##### [find_element](https://github.com/appium/ruby_lib/blob/
|
|
628
|
+
##### [find_element](https://github.com/appium/ruby_lib/blob/5e5b3fbd4d7c84904f9a3158975081fc1786ad0e/lib/appium_lib/driver.rb#L737)
|
|
709
629
|
|
|
710
630
|
> def find_element(*args)
|
|
711
631
|
|
|
@@ -726,7 +646,7 @@ __Returns:__
|
|
|
726
646
|
|
|
727
647
|
--
|
|
728
648
|
|
|
729
|
-
##### [set_location](https://github.com/appium/ruby_lib/blob/
|
|
649
|
+
##### [set_location](https://github.com/appium/ruby_lib/blob/5e5b3fbd4d7c84904f9a3158975081fc1786ad0e/lib/appium_lib/driver.rb#L750)
|
|
730
650
|
|
|
731
651
|
> def set_location(opts = {})
|
|
732
652
|
|
|
@@ -742,7 +662,7 @@ __Returns:__
|
|
|
742
662
|
|
|
743
663
|
--
|
|
744
664
|
|
|
745
|
-
##### [x](https://github.com/appium/ruby_lib/blob/
|
|
665
|
+
##### [x](https://github.com/appium/ruby_lib/blob/5e5b3fbd4d7c84904f9a3158975081fc1786ad0e/lib/appium_lib/driver.rb#L760)
|
|
746
666
|
|
|
747
667
|
> def x
|
|
748
668
|
|
|
@@ -755,7 +675,7 @@ __Returns:__
|
|
|
755
675
|
|
|
756
676
|
--
|
|
757
677
|
|
|
758
|
-
##### [set_automation_name_if_nil](https://github.com/appium/ruby_lib/blob/
|
|
678
|
+
##### [set_automation_name_if_nil](https://github.com/appium/ruby_lib/blob/5e5b3fbd4d7c84904f9a3158975081fc1786ad0e/lib/appium_lib/driver.rb#L769)
|
|
759
679
|
|
|
760
680
|
> def set_automation_name_if_nil
|
|
761
681
|
|
|
@@ -764,7 +684,7 @@ Since @automation_name is set only client side before start_driver is called.
|
|
|
764
684
|
|
|
765
685
|
--
|
|
766
686
|
|
|
767
|
-
##### [logger=](https://github.com/appium/ruby_lib/blob/
|
|
687
|
+
##### [logger=](https://github.com/appium/ruby_lib/blob/5e5b3fbd4d7c84904f9a3158975081fc1786ad0e/lib/appium_lib/logger.rb#L13)
|
|
768
688
|
|
|
769
689
|
> def logger=(value)
|
|
770
690
|
|
|
@@ -776,7 +696,7 @@ __Parameters:__
|
|
|
776
696
|
|
|
777
697
|
--
|
|
778
698
|
|
|
779
|
-
##### [logger](https://github.com/appium/ruby_lib/blob/
|
|
699
|
+
##### [logger](https://github.com/appium/ruby_lib/blob/5e5b3fbd4d7c84904f9a3158975081fc1786ad0e/lib/appium_lib/logger.rb#L17)
|
|
780
700
|
|
|
781
701
|
> def logger
|
|
782
702
|
|
|
@@ -784,7 +704,7 @@ __Parameters:__
|
|
|
784
704
|
|
|
785
705
|
--
|
|
786
706
|
|
|
787
|
-
##### [app_strings](https://github.com/appium/ruby_lib/blob/
|
|
707
|
+
##### [app_strings](https://github.com/appium/ruby_lib/blob/5e5b3fbd4d7c84904f9a3158975081fc1786ad0e/lib/appium_lib/device/device.rb#L7)
|
|
788
708
|
|
|
789
709
|
> def app_strings
|
|
790
710
|
|
|
@@ -795,7 +715,7 @@ app_strings #=> "TransitionsTitle"=>"Transitions", "WebTitle"=>"Web"
|
|
|
795
715
|
|
|
796
716
|
--
|
|
797
717
|
|
|
798
|
-
##### [background_app](https://github.com/appium/ruby_lib/blob/
|
|
718
|
+
##### [background_app](https://github.com/appium/ruby_lib/blob/5e5b3fbd4d7c84904f9a3158975081fc1786ad0e/lib/appium_lib/device/device.rb#L13)
|
|
799
719
|
|
|
800
720
|
> def background_app
|
|
801
721
|
|
|
@@ -804,7 +724,7 @@ This is a blocking application
|
|
|
804
724
|
|
|
805
725
|
--
|
|
806
726
|
|
|
807
|
-
##### [current_activity](https://github.com/appium/ruby_lib/blob/
|
|
727
|
+
##### [current_activity](https://github.com/appium/ruby_lib/blob/5e5b3fbd4d7c84904f9a3158975081fc1786ad0e/lib/appium_lib/device/device.rb#L24)
|
|
808
728
|
|
|
809
729
|
> def current_activity
|
|
810
730
|
|
|
@@ -812,7 +732,7 @@ This is a blocking application
|
|
|
812
732
|
|
|
813
733
|
--
|
|
814
734
|
|
|
815
|
-
##### [get_system_bars](https://github.com/appium/ruby_lib/blob/
|
|
735
|
+
##### [get_system_bars](https://github.com/appium/ruby_lib/blob/5e5b3fbd4d7c84904f9a3158975081fc1786ad0e/lib/appium_lib/device/device.rb#L26)
|
|
816
736
|
|
|
817
737
|
> def get_system_bars
|
|
818
738
|
|
|
@@ -827,7 +747,7 @@ __Returns:__
|
|
|
827
747
|
|
|
828
748
|
--
|
|
829
749
|
|
|
830
|
-
##### [get_display_density](https://github.com/appium/ruby_lib/blob/
|
|
750
|
+
##### [get_display_density](https://github.com/appium/ruby_lib/blob/5e5b3fbd4d7c84904f9a3158975081fc1786ad0e/lib/appium_lib/device/device.rb#L34)
|
|
831
751
|
|
|
832
752
|
> def get_display_density
|
|
833
753
|
|
|
@@ -842,7 +762,7 @@ __Returns:__
|
|
|
842
762
|
|
|
843
763
|
--
|
|
844
764
|
|
|
845
|
-
##### [is_keyboard_shown](https://github.com/appium/ruby_lib/blob/
|
|
765
|
+
##### [is_keyboard_shown](https://github.com/appium/ruby_lib/blob/5e5b3fbd4d7c84904f9a3158975081fc1786ad0e/lib/appium_lib/device/device.rb#L42)
|
|
846
766
|
|
|
847
767
|
> def is_keyboard_shown
|
|
848
768
|
|
|
@@ -857,7 +777,7 @@ __Returns:__
|
|
|
857
777
|
|
|
858
778
|
--
|
|
859
779
|
|
|
860
|
-
##### [launch_app](https://github.com/appium/ruby_lib/blob/
|
|
780
|
+
##### [launch_app](https://github.com/appium/ruby_lib/blob/5e5b3fbd4d7c84904f9a3158975081fc1786ad0e/lib/appium_lib/device/device.rb#L50)
|
|
861
781
|
|
|
862
782
|
> def launch_app
|
|
863
783
|
|
|
@@ -865,7 +785,7 @@ Start the simulator and application configured with desired capabilities
|
|
|
865
785
|
|
|
866
786
|
--
|
|
867
787
|
|
|
868
|
-
##### [reset](https://github.com/appium/ruby_lib/blob/
|
|
788
|
+
##### [reset](https://github.com/appium/ruby_lib/blob/5e5b3fbd4d7c84904f9a3158975081fc1786ad0e/lib/appium_lib/device/device.rb#L53)
|
|
869
789
|
|
|
870
790
|
> def reset
|
|
871
791
|
|
|
@@ -873,7 +793,7 @@ Reset the device, relaunching the application.
|
|
|
873
793
|
|
|
874
794
|
--
|
|
875
795
|
|
|
876
|
-
##### [shake](https://github.com/appium/ruby_lib/blob/
|
|
796
|
+
##### [shake](https://github.com/appium/ruby_lib/blob/5e5b3fbd4d7c84904f9a3158975081fc1786ad0e/lib/appium_lib/device/device.rb#L56)
|
|
877
797
|
|
|
878
798
|
> def shake
|
|
879
799
|
|
|
@@ -881,7 +801,7 @@ Cause the device to shake
|
|
|
881
801
|
|
|
882
802
|
--
|
|
883
803
|
|
|
884
|
-
##### [toggle_flight_mode](https://github.com/appium/ruby_lib/blob/
|
|
804
|
+
##### [toggle_flight_mode](https://github.com/appium/ruby_lib/blob/5e5b3fbd4d7c84904f9a3158975081fc1786ad0e/lib/appium_lib/device/device.rb#L59)
|
|
885
805
|
|
|
886
806
|
> def toggle_flight_mode
|
|
887
807
|
|
|
@@ -889,7 +809,7 @@ Toggle flight mode on or off
|
|
|
889
809
|
|
|
890
810
|
--
|
|
891
811
|
|
|
892
|
-
##### [device_locked?](https://github.com/appium/ruby_lib/blob/
|
|
812
|
+
##### [device_locked?](https://github.com/appium/ruby_lib/blob/5e5b3fbd4d7c84904f9a3158975081fc1786ad0e/lib/appium_lib/device/device.rb#L62)
|
|
893
813
|
|
|
894
814
|
> def device_locked?
|
|
895
815
|
|
|
@@ -897,7 +817,7 @@ Toggle flight mode on or off
|
|
|
897
817
|
|
|
898
818
|
--
|
|
899
819
|
|
|
900
|
-
##### [hide_keyboard](https://github.com/appium/ruby_lib/blob/
|
|
820
|
+
##### [hide_keyboard](https://github.com/appium/ruby_lib/blob/5e5b3fbd4d7c84904f9a3158975081fc1786ad0e/lib/appium_lib/device/device.rb#L64)
|
|
901
821
|
|
|
902
822
|
> def hide_keyboard
|
|
903
823
|
|
|
@@ -914,7 +834,7 @@ Default for iOS is `:pressKey`. Default for Android is `:tapOutside`.
|
|
|
914
834
|
|
|
915
835
|
--
|
|
916
836
|
|
|
917
|
-
##### [press_keycode](https://github.com/appium/ruby_lib/blob/
|
|
837
|
+
##### [press_keycode](https://github.com/appium/ruby_lib/blob/5e5b3fbd4d7c84904f9a3158975081fc1786ad0e/lib/appium_lib/device/device.rb#L77)
|
|
918
838
|
|
|
919
839
|
> def press_keycode
|
|
920
840
|
|
|
@@ -929,7 +849,7 @@ __Parameters:__
|
|
|
929
849
|
|
|
930
850
|
--
|
|
931
851
|
|
|
932
|
-
##### [long_press_keycode](https://github.com/appium/ruby_lib/blob/
|
|
852
|
+
##### [long_press_keycode](https://github.com/appium/ruby_lib/blob/5e5b3fbd4d7c84904f9a3158975081fc1786ad0e/lib/appium_lib/device/device.rb#L83)
|
|
933
853
|
|
|
934
854
|
> def long_press_keycode
|
|
935
855
|
|
|
@@ -944,7 +864,7 @@ __Parameters:__
|
|
|
944
864
|
|
|
945
865
|
--
|
|
946
866
|
|
|
947
|
-
##### [push_file](https://github.com/appium/ruby_lib/blob/
|
|
867
|
+
##### [push_file](https://github.com/appium/ruby_lib/blob/5e5b3fbd4d7c84904f9a3158975081fc1786ad0e/lib/appium_lib/device/device.rb#L89)
|
|
948
868
|
|
|
949
869
|
> def push_file
|
|
950
870
|
|
|
@@ -958,7 +878,7 @@ __Parameters:__
|
|
|
958
878
|
|
|
959
879
|
--
|
|
960
880
|
|
|
961
|
-
##### [pull_file](https://github.com/appium/ruby_lib/blob/
|
|
881
|
+
##### [pull_file](https://github.com/appium/ruby_lib/blob/5e5b3fbd4d7c84904f9a3158975081fc1786ad0e/lib/appium_lib/device/device.rb#L94)
|
|
962
882
|
|
|
963
883
|
> def pull_file
|
|
964
884
|
|
|
@@ -975,7 +895,7 @@ __Parameters:__
|
|
|
975
895
|
|
|
976
896
|
--
|
|
977
897
|
|
|
978
|
-
##### [pull_folder](https://github.com/appium/ruby_lib/blob/
|
|
898
|
+
##### [pull_folder](https://github.com/appium/ruby_lib/blob/5e5b3fbd4d7c84904f9a3158975081fc1786ad0e/lib/appium_lib/device/device.rb#L104)
|
|
979
899
|
|
|
980
900
|
> def pull_folder
|
|
981
901
|
|
|
@@ -990,7 +910,7 @@ __Parameters:__
|
|
|
990
910
|
|
|
991
911
|
--
|
|
992
912
|
|
|
993
|
-
##### [touch_id](https://github.com/appium/ruby_lib/blob/
|
|
913
|
+
##### [touch_id](https://github.com/appium/ruby_lib/blob/5e5b3fbd4d7c84904f9a3158975081fc1786ad0e/lib/appium_lib/device/device.rb#L112)
|
|
994
914
|
|
|
995
915
|
> def touch_id
|
|
996
916
|
|
|
@@ -1007,7 +927,7 @@ Defaults to true.
|
|
|
1007
927
|
|
|
1008
928
|
--
|
|
1009
929
|
|
|
1010
|
-
##### [toggle_touch_id_enrollment](https://github.com/appium/ruby_lib/blob/
|
|
930
|
+
##### [toggle_touch_id_enrollment](https://github.com/appium/ruby_lib/blob/5e5b3fbd4d7c84904f9a3158975081fc1786ad0e/lib/appium_lib/device/device.rb#L121)
|
|
1011
931
|
|
|
1012
932
|
> def toggle_touch_id_enrollment
|
|
1013
933
|
|
|
@@ -1015,7 +935,7 @@ iOS Simulator only: Toggle touch id enrollment on an iOS Simulator.
|
|
|
1015
935
|
|
|
1016
936
|
--
|
|
1017
937
|
|
|
1018
|
-
##### [end_coverage](https://github.com/appium/ruby_lib/blob/
|
|
938
|
+
##### [end_coverage](https://github.com/appium/ruby_lib/blob/5e5b3fbd4d7c84904f9a3158975081fc1786ad0e/lib/appium_lib/device/device.rb#L124)
|
|
1019
939
|
|
|
1020
940
|
> def end_coverage
|
|
1021
941
|
|
|
@@ -1029,7 +949,7 @@ __Parameters:__
|
|
|
1029
949
|
|
|
1030
950
|
--
|
|
1031
951
|
|
|
1032
|
-
##### [get_settings](https://github.com/appium/ruby_lib/blob/
|
|
952
|
+
##### [get_settings](https://github.com/appium/ruby_lib/blob/5e5b3fbd4d7c84904f9a3158975081fc1786ad0e/lib/appium_lib/device/device.rb#L129)
|
|
1033
953
|
|
|
1034
954
|
> def get_settings
|
|
1035
955
|
|
|
@@ -1037,7 +957,7 @@ Get appium Settings for current test session
|
|
|
1037
957
|
|
|
1038
958
|
--
|
|
1039
959
|
|
|
1040
|
-
##### [update_settings](https://github.com/appium/ruby_lib/blob/
|
|
960
|
+
##### [update_settings](https://github.com/appium/ruby_lib/blob/5e5b3fbd4d7c84904f9a3158975081fc1786ad0e/lib/appium_lib/device/device.rb#L132)
|
|
1041
961
|
|
|
1042
962
|
> def update_settings
|
|
1043
963
|
|
|
@@ -1049,7 +969,7 @@ __Parameters:__
|
|
|
1049
969
|
|
|
1050
970
|
--
|
|
1051
971
|
|
|
1052
|
-
##### [start_activity](https://github.com/appium/ruby_lib/blob/
|
|
972
|
+
##### [start_activity](https://github.com/appium/ruby_lib/blob/5e5b3fbd4d7c84904f9a3158975081fc1786ad0e/lib/appium_lib/device/device.rb#L136)
|
|
1053
973
|
|
|
1054
974
|
> def start_activity
|
|
1055
975
|
|
|
@@ -1063,7 +983,7 @@ start_activity app_package: 'io.appium.android.apis',
|
|
|
1063
983
|
|
|
1064
984
|
--
|
|
1065
985
|
|
|
1066
|
-
##### [get_network_connection](https://github.com/appium/ruby_lib/blob/
|
|
986
|
+
##### [get_network_connection](https://github.com/appium/ruby_lib/blob/5e5b3fbd4d7c84904f9a3158975081fc1786ad0e/lib/appium_lib/device/device.rb#L150)
|
|
1067
987
|
|
|
1068
988
|
> def get_network_connection
|
|
1069
989
|
|
|
@@ -1072,7 +992,7 @@ See set_network_connection method for return value
|
|
|
1072
992
|
|
|
1073
993
|
--
|
|
1074
994
|
|
|
1075
|
-
##### [set_network_connection](https://github.com/appium/ruby_lib/blob/
|
|
995
|
+
##### [set_network_connection](https://github.com/appium/ruby_lib/blob/5e5b3fbd4d7c84904f9a3158975081fc1786ad0e/lib/appium_lib/device/device.rb#L154)
|
|
1076
996
|
|
|
1077
997
|
> def set_network_connection
|
|
1078
998
|
|
|
@@ -1091,7 +1011,7 @@ __Parameters:__
|
|
|
1091
1011
|
|
|
1092
1012
|
--
|
|
1093
1013
|
|
|
1094
|
-
##### [set_immediate_value](https://github.com/appium/ruby_lib/blob/
|
|
1014
|
+
##### [set_immediate_value](https://github.com/appium/ruby_lib/blob/5e5b3fbd4d7c84904f9a3158975081fc1786ad0e/lib/appium_lib/device/device.rb#L167)
|
|
1095
1015
|
|
|
1096
1016
|
> def set_immediate_value
|
|
1097
1017
|
|
|
@@ -1105,7 +1025,7 @@ set_immediate_value element, 'hello'
|
|
|
1105
1025
|
|
|
1106
1026
|
--
|
|
1107
1027
|
|
|
1108
|
-
##### [get_performance_data_types](https://github.com/appium/ruby_lib/blob/
|
|
1028
|
+
##### [get_performance_data_types](https://github.com/appium/ruby_lib/blob/5e5b3fbd4d7c84904f9a3158975081fc1786ad0e/lib/appium_lib/device/device.rb#L176)
|
|
1109
1029
|
|
|
1110
1030
|
> def get_performance_data_types
|
|
1111
1031
|
|
|
@@ -1119,7 +1039,7 @@ get_performance_data_types #=> ["cpuinfo", "batteryinfo", "networkinfo", "memory
|
|
|
1119
1039
|
|
|
1120
1040
|
--
|
|
1121
1041
|
|
|
1122
|
-
##### [extend_search_contexts](https://github.com/appium/ruby_lib/blob/
|
|
1042
|
+
##### [extend_search_contexts](https://github.com/appium/ruby_lib/blob/5e5b3fbd4d7c84904f9a3158975081fc1786ad0e/lib/appium_lib/device/device.rb#L438)
|
|
1123
1043
|
|
|
1124
1044
|
> def extend_search_contexts
|
|
1125
1045
|
|
|
@@ -1127,7 +1047,7 @@ get_performance_data_types #=> ["cpuinfo", "batteryinfo", "networkinfo", "memory
|
|
|
1127
1047
|
|
|
1128
1048
|
--
|
|
1129
1049
|
|
|
1130
|
-
##### [find_element_with_appium](https://github.com/appium/ruby_lib/blob/
|
|
1050
|
+
##### [find_element_with_appium](https://github.com/appium/ruby_lib/blob/5e5b3fbd4d7c84904f9a3158975081fc1786ad0e/lib/appium_lib/device/device.rb#L438)
|
|
1131
1051
|
|
|
1132
1052
|
> def find_element_with_appium
|
|
1133
1053
|
|
|
@@ -1135,7 +1055,7 @@ get_performance_data_types #=> ["cpuinfo", "batteryinfo", "networkinfo", "memory
|
|
|
1135
1055
|
|
|
1136
1056
|
--
|
|
1137
1057
|
|
|
1138
|
-
##### [find_elements_with_appium](https://github.com/appium/ruby_lib/blob/
|
|
1058
|
+
##### [find_elements_with_appium](https://github.com/appium/ruby_lib/blob/5e5b3fbd4d7c84904f9a3158975081fc1786ad0e/lib/appium_lib/device/device.rb#L438)
|
|
1139
1059
|
|
|
1140
1060
|
> def find_elements_with_appium
|
|
1141
1061
|
|
|
@@ -1147,7 +1067,7 @@ find_element/s_with_appium with their accessibility_id
|
|
|
1147
1067
|
|
|
1148
1068
|
--
|
|
1149
1069
|
|
|
1150
|
-
##### [add_touch_actions](https://github.com/appium/ruby_lib/blob/
|
|
1070
|
+
##### [add_touch_actions](https://github.com/appium/ruby_lib/blob/5e5b3fbd4d7c84904f9a3158975081fc1786ad0e/lib/appium_lib/device/device.rb#L469)
|
|
1151
1071
|
|
|
1152
1072
|
> def add_touch_actions
|
|
1153
1073
|
|
|
@@ -1155,7 +1075,7 @@ find_element/s_with_appium with their accessibility_id
|
|
|
1155
1075
|
|
|
1156
1076
|
--
|
|
1157
1077
|
|
|
1158
|
-
##### [add_ime_actions](https://github.com/appium/ruby_lib/blob/
|
|
1078
|
+
##### [add_ime_actions](https://github.com/appium/ruby_lib/blob/5e5b3fbd4d7c84904f9a3158975081fc1786ad0e/lib/appium_lib/device/device.rb#L492)
|
|
1159
1079
|
|
|
1160
1080
|
> def add_ime_actions
|
|
1161
1081
|
|
|
@@ -1163,7 +1083,7 @@ find_element/s_with_appium with their accessibility_id
|
|
|
1163
1083
|
|
|
1164
1084
|
--
|
|
1165
1085
|
|
|
1166
|
-
##### [set_context](https://github.com/appium/ruby_lib/blob/
|
|
1086
|
+
##### [set_context](https://github.com/appium/ruby_lib/blob/5e5b3fbd4d7c84904f9a3158975081fc1786ad0e/lib/appium_lib/device/device.rb#L567)
|
|
1167
1087
|
|
|
1168
1088
|
> def set_context
|
|
1169
1089
|
|
|
@@ -1178,7 +1098,7 @@ __Parameters:__
|
|
|
1178
1098
|
|
|
1179
1099
|
--
|
|
1180
1100
|
|
|
1181
|
-
##### [current_context](https://github.com/appium/ruby_lib/blob/
|
|
1101
|
+
##### [current_context](https://github.com/appium/ruby_lib/blob/5e5b3fbd4d7c84904f9a3158975081fc1786ad0e/lib/appium_lib/device/device.rb#L575)
|
|
1182
1102
|
|
|
1183
1103
|
> def current_context
|
|
1184
1104
|
|
|
@@ -1190,7 +1110,7 @@ __Returns:__
|
|
|
1190
1110
|
|
|
1191
1111
|
--
|
|
1192
1112
|
|
|
1193
|
-
##### [available_contexts](https://github.com/appium/ruby_lib/blob/
|
|
1113
|
+
##### [available_contexts](https://github.com/appium/ruby_lib/blob/5e5b3fbd4d7c84904f9a3158975081fc1786ad0e/lib/appium_lib/device/device.rb#L578)
|
|
1194
1114
|
|
|
1195
1115
|
> def available_contexts
|
|
1196
1116
|
|
|
@@ -1202,7 +1122,7 @@ __Returns:__
|
|
|
1202
1122
|
|
|
1203
1123
|
--
|
|
1204
1124
|
|
|
1205
|
-
##### [within_context](https://github.com/appium/ruby_lib/blob/
|
|
1125
|
+
##### [within_context](https://github.com/appium/ruby_lib/blob/5e5b3fbd4d7c84904f9a3158975081fc1786ad0e/lib/appium_lib/device/device.rb#L588)
|
|
1206
1126
|
|
|
1207
1127
|
> def within_context(context)
|
|
1208
1128
|
|
|
@@ -1218,7 +1138,7 @@ __Parameters:__
|
|
|
1218
1138
|
|
|
1219
1139
|
--
|
|
1220
1140
|
|
|
1221
|
-
##### [switch_to_default_context](https://github.com/appium/ruby_lib/blob/
|
|
1141
|
+
##### [switch_to_default_context](https://github.com/appium/ruby_lib/blob/5e5b3fbd4d7c84904f9a3158975081fc1786ad0e/lib/appium_lib/device/device.rb#L596)
|
|
1222
1142
|
|
|
1223
1143
|
> def switch_to_default_context
|
|
1224
1144
|
|
|
@@ -1226,7 +1146,7 @@ Change to the default context. This is equivalent to `set_context nil`.
|
|
|
1226
1146
|
|
|
1227
1147
|
--
|
|
1228
1148
|
|
|
1229
|
-
##### [pinch](https://github.com/appium/ruby_lib/blob/
|
|
1149
|
+
##### [pinch](https://github.com/appium/ruby_lib/blob/5e5b3fbd4d7c84904f9a3158975081fc1786ad0e/lib/appium_lib/device/multi_touch.rb#L28)
|
|
1230
1150
|
|
|
1231
1151
|
> def pinch(percentage = 25, auto_perform = true)
|
|
1232
1152
|
|
|
@@ -1245,7 +1165,7 @@ __Parameters:__
|
|
|
1245
1165
|
|
|
1246
1166
|
--
|
|
1247
1167
|
|
|
1248
|
-
##### [zoom](https://github.com/appium/ruby_lib/blob/
|
|
1168
|
+
##### [zoom](https://github.com/appium/ruby_lib/blob/5e5b3fbd4d7c84904f9a3158975081fc1786ad0e/lib/appium_lib/device/multi_touch.rb#L57)
|
|
1249
1169
|
|
|
1250
1170
|
> def zoom(percentage = 200, auto_perform = true)
|
|
1251
1171
|
|
|
@@ -1264,7 +1184,7 @@ __Parameters:__
|
|
|
1264
1184
|
|
|
1265
1185
|
--
|
|
1266
1186
|
|
|
1267
|
-
##### [pinch_for_xcuitest](https://github.com/appium/ruby_lib/blob/
|
|
1187
|
+
##### [pinch_for_xcuitest](https://github.com/appium/ruby_lib/blob/5e5b3fbd4d7c84904f9a3158975081fc1786ad0e/lib/appium_lib/device/multi_touch.rb#L79)
|
|
1268
1188
|
|
|
1269
1189
|
> def pinch_for_xcuitest(rate)
|
|
1270
1190
|
|
|
@@ -1272,7 +1192,7 @@ __Parameters:__
|
|
|
1272
1192
|
|
|
1273
1193
|
--
|
|
1274
1194
|
|
|
1275
|
-
##### [pinch_android](https://github.com/appium/ruby_lib/blob/
|
|
1195
|
+
##### [pinch_android](https://github.com/appium/ruby_lib/blob/5e5b3fbd4d7c84904f9a3158975081fc1786ad0e/lib/appium_lib/device/multi_touch.rb#L94)
|
|
1276
1196
|
|
|
1277
1197
|
> def pinch_android(rate)
|
|
1278
1198
|
|
|
@@ -1280,7 +1200,7 @@ __Parameters:__
|
|
|
1280
1200
|
|
|
1281
1201
|
--
|
|
1282
1202
|
|
|
1283
|
-
##### [pinch_ios](https://github.com/appium/ruby_lib/blob/
|
|
1203
|
+
##### [pinch_ios](https://github.com/appium/ruby_lib/blob/5e5b3fbd4d7c84904f9a3158975081fc1786ad0e/lib/appium_lib/device/multi_touch.rb#L108)
|
|
1284
1204
|
|
|
1285
1205
|
> def pinch_ios(rate)
|
|
1286
1206
|
|
|
@@ -1288,7 +1208,7 @@ __Parameters:__
|
|
|
1288
1208
|
|
|
1289
1209
|
--
|
|
1290
1210
|
|
|
1291
|
-
##### [zoom_for_xcuitest](https://github.com/appium/ruby_lib/blob/
|
|
1211
|
+
##### [zoom_for_xcuitest](https://github.com/appium/ruby_lib/blob/5e5b3fbd4d7c84904f9a3158975081fc1786ad0e/lib/appium_lib/device/multi_touch.rb#L122)
|
|
1292
1212
|
|
|
1293
1213
|
> def zoom_for_xcuitest(rate)
|
|
1294
1214
|
|
|
@@ -1296,7 +1216,7 @@ __Parameters:__
|
|
|
1296
1216
|
|
|
1297
1217
|
--
|
|
1298
1218
|
|
|
1299
|
-
##### [zoom_android](https://github.com/appium/ruby_lib/blob/
|
|
1219
|
+
##### [zoom_android](https://github.com/appium/ruby_lib/blob/5e5b3fbd4d7c84904f9a3158975081fc1786ad0e/lib/appium_lib/device/multi_touch.rb#L137)
|
|
1300
1220
|
|
|
1301
1221
|
> def zoom_android(rate)
|
|
1302
1222
|
|
|
@@ -1304,7 +1224,7 @@ __Parameters:__
|
|
|
1304
1224
|
|
|
1305
1225
|
--
|
|
1306
1226
|
|
|
1307
|
-
##### [zoom_ios](https://github.com/appium/ruby_lib/blob/
|
|
1227
|
+
##### [zoom_ios](https://github.com/appium/ruby_lib/blob/5e5b3fbd4d7c84904f9a3158975081fc1786ad0e/lib/appium_lib/device/multi_touch.rb#L151)
|
|
1308
1228
|
|
|
1309
1229
|
> def zoom_ios(rate)
|
|
1310
1230
|
|
|
@@ -1312,7 +1232,7 @@ __Parameters:__
|
|
|
1312
1232
|
|
|
1313
1233
|
--
|
|
1314
1234
|
|
|
1315
|
-
##### [actions](https://github.com/appium/ruby_lib/blob/
|
|
1235
|
+
##### [actions](https://github.com/appium/ruby_lib/blob/5e5b3fbd4d7c84904f9a3158975081fc1786ad0e/lib/appium_lib/device/multi_touch.rb#L166)
|
|
1316
1236
|
|
|
1317
1237
|
> def actions
|
|
1318
1238
|
|
|
@@ -1320,7 +1240,7 @@ self
|
|
|
1320
1240
|
|
|
1321
1241
|
--
|
|
1322
1242
|
|
|
1323
|
-
##### [initialize](https://github.com/appium/ruby_lib/blob/
|
|
1243
|
+
##### [initialize](https://github.com/appium/ruby_lib/blob/5e5b3fbd4d7c84904f9a3158975081fc1786ad0e/lib/appium_lib/device/multi_touch.rb#L169)
|
|
1324
1244
|
|
|
1325
1245
|
> def initialize
|
|
1326
1246
|
|
|
@@ -1332,7 +1252,7 @@ __Returns:__
|
|
|
1332
1252
|
|
|
1333
1253
|
--
|
|
1334
1254
|
|
|
1335
|
-
##### [add](https://github.com/appium/ruby_lib/blob/
|
|
1255
|
+
##### [add](https://github.com/appium/ruby_lib/blob/5e5b3fbd4d7c84904f9a3158975081fc1786ad0e/lib/appium_lib/device/multi_touch.rb#L175)
|
|
1336
1256
|
|
|
1337
1257
|
> def add(chain)
|
|
1338
1258
|
|
|
@@ -1344,7 +1264,7 @@ __Parameters:__
|
|
|
1344
1264
|
|
|
1345
1265
|
--
|
|
1346
1266
|
|
|
1347
|
-
##### [perform](https://github.com/appium/ruby_lib/blob/
|
|
1267
|
+
##### [perform](https://github.com/appium/ruby_lib/blob/5e5b3fbd4d7c84904f9a3158975081fc1786ad0e/lib/appium_lib/device/multi_touch.rb#L180)
|
|
1348
1268
|
|
|
1349
1269
|
> def perform
|
|
1350
1270
|
|
|
@@ -1352,7 +1272,7 @@ Ask Appium to perform the actions
|
|
|
1352
1272
|
|
|
1353
1273
|
--
|
|
1354
1274
|
|
|
1355
|
-
##### [ACTIONS](https://github.com/appium/ruby_lib/blob/
|
|
1275
|
+
##### [ACTIONS](https://github.com/appium/ruby_lib/blob/5e5b3fbd4d7c84904f9a3158975081fc1786ad0e/lib/appium_lib/device/touch_actions.rb#L22)
|
|
1356
1276
|
|
|
1357
1277
|
> ACTIONS = [:move_to, :long_press, :double_tap, :two_finger_tap, :press, :release, :tap, :wait, :perform].freeze
|
|
1358
1278
|
|
|
@@ -1360,7 +1280,7 @@ Ask Appium to perform the actions
|
|
|
1360
1280
|
|
|
1361
1281
|
--
|
|
1362
1282
|
|
|
1363
|
-
##### [COMPLEX_ACTIONS](https://github.com/appium/ruby_lib/blob/
|
|
1283
|
+
##### [COMPLEX_ACTIONS](https://github.com/appium/ruby_lib/blob/5e5b3fbd4d7c84904f9a3158975081fc1786ad0e/lib/appium_lib/device/touch_actions.rb#L23)
|
|
1364
1284
|
|
|
1365
1285
|
> COMPLEX_ACTIONS = [:swipe].freeze
|
|
1366
1286
|
|
|
@@ -1368,7 +1288,7 @@ Ask Appium to perform the actions
|
|
|
1368
1288
|
|
|
1369
1289
|
--
|
|
1370
1290
|
|
|
1371
|
-
##### [actions](https://github.com/appium/ruby_lib/blob/
|
|
1291
|
+
##### [actions](https://github.com/appium/ruby_lib/blob/5e5b3fbd4d7c84904f9a3158975081fc1786ad0e/lib/appium_lib/device/touch_actions.rb#L37)
|
|
1372
1292
|
|
|
1373
1293
|
> def actions
|
|
1374
1294
|
|
|
@@ -1376,7 +1296,7 @@ Returns the value of attribute actions
|
|
|
1376
1296
|
|
|
1377
1297
|
--
|
|
1378
1298
|
|
|
1379
|
-
##### [initialize](https://github.com/appium/ruby_lib/blob/
|
|
1299
|
+
##### [initialize](https://github.com/appium/ruby_lib/blob/5e5b3fbd4d7c84904f9a3158975081fc1786ad0e/lib/appium_lib/device/touch_actions.rb#L39)
|
|
1380
1300
|
|
|
1381
1301
|
> def initialize
|
|
1382
1302
|
|
|
@@ -1388,7 +1308,7 @@ __Returns:__
|
|
|
1388
1308
|
|
|
1389
1309
|
--
|
|
1390
1310
|
|
|
1391
|
-
##### [move_to](https://github.com/appium/ruby_lib/blob/
|
|
1311
|
+
##### [move_to](https://github.com/appium/ruby_lib/blob/5e5b3fbd4d7c84904f9a3158975081fc1786ad0e/lib/appium_lib/device/touch_actions.rb#L50)
|
|
1392
1312
|
|
|
1393
1313
|
> def move_to(opts)
|
|
1394
1314
|
|
|
@@ -1402,7 +1322,7 @@ __Parameters:__
|
|
|
1402
1322
|
|
|
1403
1323
|
--
|
|
1404
1324
|
|
|
1405
|
-
##### [long_press](https://github.com/appium/ruby_lib/blob/
|
|
1325
|
+
##### [long_press](https://github.com/appium/ruby_lib/blob/5e5b3fbd4d7c84904f9a3158975081fc1786ad0e/lib/appium_lib/device/touch_actions.rb#L64)
|
|
1406
1326
|
|
|
1407
1327
|
> def long_press(opts)
|
|
1408
1328
|
|
|
@@ -1423,7 +1343,7 @@ __Parameters:__
|
|
|
1423
1343
|
|
|
1424
1344
|
--
|
|
1425
1345
|
|
|
1426
|
-
##### [press](https://github.com/appium/ruby_lib/blob/
|
|
1346
|
+
##### [press](https://github.com/appium/ruby_lib/blob/5e5b3fbd4d7c84904f9a3158975081fc1786ad0e/lib/appium_lib/device/touch_actions.rb#L76)
|
|
1427
1347
|
|
|
1428
1348
|
> def press(opts)
|
|
1429
1349
|
|
|
@@ -1436,7 +1356,7 @@ __Parameters:__
|
|
|
1436
1356
|
|
|
1437
1357
|
--
|
|
1438
1358
|
|
|
1439
|
-
##### [release](https://github.com/appium/ruby_lib/blob/
|
|
1359
|
+
##### [release](https://github.com/appium/ruby_lib/blob/5e5b3fbd4d7c84904f9a3158975081fc1786ad0e/lib/appium_lib/device/touch_actions.rb#L87)
|
|
1440
1360
|
|
|
1441
1361
|
> def release(opts = nil)
|
|
1442
1362
|
|
|
@@ -1448,7 +1368,7 @@ __Parameters:__
|
|
|
1448
1368
|
|
|
1449
1369
|
--
|
|
1450
1370
|
|
|
1451
|
-
##### [tap](https://github.com/appium/ruby_lib/blob/
|
|
1371
|
+
##### [tap](https://github.com/appium/ruby_lib/blob/5e5b3fbd4d7c84904f9a3158975081fc1786ad0e/lib/appium_lib/device/touch_actions.rb#L99)
|
|
1452
1372
|
|
|
1453
1373
|
> def tap(opts)
|
|
1454
1374
|
|
|
@@ -1461,7 +1381,7 @@ __Parameters:__
|
|
|
1461
1381
|
|
|
1462
1382
|
--
|
|
1463
1383
|
|
|
1464
|
-
##### [double_tap](https://github.com/appium/ruby_lib/blob/
|
|
1384
|
+
##### [double_tap](https://github.com/appium/ruby_lib/blob/5e5b3fbd4d7c84904f9a3158975081fc1786ad0e/lib/appium_lib/device/touch_actions.rb#L112)
|
|
1465
1385
|
|
|
1466
1386
|
> def double_tap(opts)
|
|
1467
1387
|
|
|
@@ -1473,7 +1393,7 @@ __Parameters:__
|
|
|
1473
1393
|
|
|
1474
1394
|
--
|
|
1475
1395
|
|
|
1476
|
-
##### [two_finger_tap](https://github.com/appium/ruby_lib/blob/
|
|
1396
|
+
##### [two_finger_tap](https://github.com/appium/ruby_lib/blob/5e5b3fbd4d7c84904f9a3158975081fc1786ad0e/lib/appium_lib/device/touch_actions.rb#L123)
|
|
1477
1397
|
|
|
1478
1398
|
> def two_finger_tap(opts)
|
|
1479
1399
|
|
|
@@ -1485,7 +1405,7 @@ __Parameters:__
|
|
|
1485
1405
|
|
|
1486
1406
|
--
|
|
1487
1407
|
|
|
1488
|
-
##### [wait](https://github.com/appium/ruby_lib/blob/
|
|
1408
|
+
##### [wait](https://github.com/appium/ruby_lib/blob/5e5b3fbd4d7c84904f9a3158975081fc1786ad0e/lib/appium_lib/device/touch_actions.rb#L131)
|
|
1489
1409
|
|
|
1490
1410
|
> def wait(milliseconds)
|
|
1491
1411
|
|
|
@@ -1497,7 +1417,7 @@ __Parameters:__
|
|
|
1497
1417
|
|
|
1498
1418
|
--
|
|
1499
1419
|
|
|
1500
|
-
##### [swipe](https://github.com/appium/ruby_lib/blob/
|
|
1420
|
+
##### [swipe](https://github.com/appium/ruby_lib/blob/5e5b3fbd4d7c84904f9a3158975081fc1786ad0e/lib/appium_lib/device/touch_actions.rb#L154)
|
|
1501
1421
|
|
|
1502
1422
|
> def swipe(opts, ele = nil)
|
|
1503
1423
|
|
|
@@ -1518,7 +1438,7 @@ __Parameters:__
|
|
|
1518
1438
|
|
|
1519
1439
|
--
|
|
1520
1440
|
|
|
1521
|
-
##### [perform](https://github.com/appium/ruby_lib/blob/
|
|
1441
|
+
##### [perform](https://github.com/appium/ruby_lib/blob/5e5b3fbd4d7c84904f9a3158975081fc1786ad0e/lib/appium_lib/device/touch_actions.rb#L179)
|
|
1522
1442
|
|
|
1523
1443
|
> def perform
|
|
1524
1444
|
|
|
@@ -1526,7 +1446,7 @@ Ask the driver to perform all actions in this action chain.
|
|
|
1526
1446
|
|
|
1527
1447
|
--
|
|
1528
1448
|
|
|
1529
|
-
##### [cancel](https://github.com/appium/ruby_lib/blob/
|
|
1449
|
+
##### [cancel](https://github.com/appium/ruby_lib/blob/5e5b3fbd4d7c84904f9a3158975081fc1786ad0e/lib/appium_lib/device/touch_actions.rb#L186)
|
|
1530
1450
|
|
|
1531
1451
|
> def cancel
|
|
1532
1452
|
|
|
@@ -1534,7 +1454,7 @@ Does nothing, currently.
|
|
|
1534
1454
|
|
|
1535
1455
|
--
|
|
1536
1456
|
|
|
1537
|
-
##### [swipe_coordinates](https://github.com/appium/ruby_lib/blob/
|
|
1457
|
+
##### [swipe_coordinates](https://github.com/appium/ruby_lib/blob/5e5b3fbd4d7c84904f9a3158975081fc1786ad0e/lib/appium_lib/device/touch_actions.rb#L192)
|
|
1538
1458
|
|
|
1539
1459
|
> def swipe_coordinates(end_x: nil, end_y: nil, offset_x: nil, offset_y: nil)
|
|
1540
1460
|
|
|
@@ -1542,7 +1462,7 @@ Does nothing, currently.
|
|
|
1542
1462
|
|
|
1543
1463
|
--
|
|
1544
1464
|
|
|
1545
|
-
##### [chain_method](https://github.com/appium/ruby_lib/blob/
|
|
1465
|
+
##### [chain_method](https://github.com/appium/ruby_lib/blob/5e5b3fbd4d7c84904f9a3158975081fc1786ad0e/lib/appium_lib/device/touch_actions.rb#L210)
|
|
1546
1466
|
|
|
1547
1467
|
> def chain_method(method, args = nil)
|
|
1548
1468
|
|
|
@@ -1550,7 +1470,7 @@ Does nothing, currently.
|
|
|
1550
1470
|
|
|
1551
1471
|
--
|
|
1552
1472
|
|
|
1553
|
-
##### [args_with_ele_ref](https://github.com/appium/ruby_lib/blob/
|
|
1473
|
+
##### [args_with_ele_ref](https://github.com/appium/ruby_lib/blob/5e5b3fbd4d7c84904f9a3158975081fc1786ad0e/lib/appium_lib/device/touch_actions.rb#L216)
|
|
1554
1474
|
|
|
1555
1475
|
> def args_with_ele_ref(args)
|
|
1556
1476
|
|
|
@@ -1558,7 +1478,7 @@ Does nothing, currently.
|
|
|
1558
1478
|
|
|
1559
1479
|
--
|
|
1560
1480
|
|
|
1561
|
-
##### [_generic_wait](https://github.com/appium/ruby_lib/blob/
|
|
1481
|
+
##### [_generic_wait](https://github.com/appium/ruby_lib/blob/5e5b3fbd4d7c84904f9a3158975081fc1786ad0e/lib/appium_lib/common/wait.rb#L9)
|
|
1562
1482
|
|
|
1563
1483
|
> def _generic_wait(opts = {})
|
|
1564
1484
|
|
|
@@ -1567,7 +1487,7 @@ https://github.com/SeleniumHQ/selenium/blob/cf501dda3f0ed12233de51ce8170c0e8090f
|
|
|
1567
1487
|
|
|
1568
1488
|
--
|
|
1569
1489
|
|
|
1570
|
-
##### [_process_wait_opts](https://github.com/appium/ruby_lib/blob/
|
|
1490
|
+
##### [_process_wait_opts](https://github.com/appium/ruby_lib/blob/5e5b3fbd4d7c84904f9a3158975081fc1786ad0e/lib/appium_lib/common/wait.rb#L48)
|
|
1571
1491
|
|
|
1572
1492
|
> def _process_wait_opts(opts)
|
|
1573
1493
|
|
|
@@ -1575,7 +1495,7 @@ process opts before calling _generic_wait
|
|
|
1575
1495
|
|
|
1576
1496
|
--
|
|
1577
1497
|
|
|
1578
|
-
##### [wait_true](https://github.com/appium/ruby_lib/blob/
|
|
1498
|
+
##### [wait_true](https://github.com/appium/ruby_lib/blob/5e5b3fbd4d7c84904f9a3158975081fc1786ad0e/lib/appium_lib/common/wait.rb#L69)
|
|
1579
1499
|
|
|
1580
1500
|
> def wait_true(opts = {}, &block)
|
|
1581
1501
|
|
|
@@ -1595,7 +1515,7 @@ __Parameters:__
|
|
|
1595
1515
|
|
|
1596
1516
|
--
|
|
1597
1517
|
|
|
1598
|
-
##### [wait](https://github.com/appium/ruby_lib/blob/
|
|
1518
|
+
##### [wait](https://github.com/appium/ruby_lib/blob/5e5b3fbd4d7c84904f9a3158975081fc1786ad0e/lib/appium_lib/common/wait.rb#L87)
|
|
1599
1519
|
|
|
1600
1520
|
> def wait(opts = {}, &block)
|
|
1601
1521
|
|
|
@@ -1613,7 +1533,7 @@ __Parameters:__
|
|
|
1613
1533
|
|
|
1614
1534
|
--
|
|
1615
1535
|
|
|
1616
|
-
##### [ignore](https://github.com/appium/ruby_lib/blob/
|
|
1536
|
+
##### [ignore](https://github.com/appium/ruby_lib/blob/5e5b3fbd4d7c84904f9a3158975081fc1786ad0e/lib/appium_lib/common/helper.rb#L24)
|
|
1617
1537
|
|
|
1618
1538
|
> def ignore
|
|
1619
1539
|
|
|
@@ -1621,7 +1541,7 @@ Return yield and ignore any exceptions.
|
|
|
1621
1541
|
|
|
1622
1542
|
--
|
|
1623
1543
|
|
|
1624
|
-
##### [back](https://github.com/appium/ruby_lib/blob/
|
|
1544
|
+
##### [back](https://github.com/appium/ruby_lib/blob/5e5b3fbd4d7c84904f9a3158975081fc1786ad0e/lib/appium_lib/common/helper.rb#L31)
|
|
1625
1545
|
|
|
1626
1546
|
> def back
|
|
1627
1547
|
|
|
@@ -1633,7 +1553,7 @@ __Returns:__
|
|
|
1633
1553
|
|
|
1634
1554
|
--
|
|
1635
1555
|
|
|
1636
|
-
##### [session_id](https://github.com/appium/ruby_lib/blob/
|
|
1556
|
+
##### [session_id](https://github.com/appium/ruby_lib/blob/5e5b3fbd4d7c84904f9a3158975081fc1786ad0e/lib/appium_lib/common/helper.rb#L36)
|
|
1637
1557
|
|
|
1638
1558
|
> def session_id
|
|
1639
1559
|
|
|
@@ -1641,7 +1561,7 @@ For Sauce Labs reporting. Returns the current session id.
|
|
|
1641
1561
|
|
|
1642
1562
|
--
|
|
1643
1563
|
|
|
1644
|
-
##### [xpath](https://github.com/appium/ruby_lib/blob/
|
|
1564
|
+
##### [xpath](https://github.com/appium/ruby_lib/blob/5e5b3fbd4d7c84904f9a3158975081fc1786ad0e/lib/appium_lib/common/helper.rb#L44)
|
|
1645
1565
|
|
|
1646
1566
|
> def xpath(xpath_str)
|
|
1647
1567
|
|
|
@@ -1657,7 +1577,7 @@ __Returns:__
|
|
|
1657
1577
|
|
|
1658
1578
|
--
|
|
1659
1579
|
|
|
1660
|
-
##### [xpaths](https://github.com/appium/ruby_lib/blob/
|
|
1580
|
+
##### [xpaths](https://github.com/appium/ruby_lib/blob/5e5b3fbd4d7c84904f9a3158975081fc1786ad0e/lib/appium_lib/common/helper.rb#L52)
|
|
1661
1581
|
|
|
1662
1582
|
> def xpaths(xpath_str)
|
|
1663
1583
|
|
|
@@ -1673,7 +1593,7 @@ __Returns:__
|
|
|
1673
1593
|
|
|
1674
1594
|
--
|
|
1675
1595
|
|
|
1676
|
-
##### [_print_source](https://github.com/appium/ruby_lib/blob/
|
|
1596
|
+
##### [_print_source](https://github.com/appium/ruby_lib/blob/5e5b3fbd4d7c84904f9a3158975081fc1786ad0e/lib/appium_lib/common/helper.rb#L56)
|
|
1677
1597
|
|
|
1678
1598
|
> def _print_source(source)
|
|
1679
1599
|
|
|
@@ -1681,7 +1601,7 @@ __Returns:__
|
|
|
1681
1601
|
|
|
1682
1602
|
--
|
|
1683
1603
|
|
|
1684
|
-
##### [result](https://github.com/appium/ruby_lib/blob/
|
|
1604
|
+
##### [result](https://github.com/appium/ruby_lib/blob/5e5b3fbd4d7c84904f9a3158975081fc1786ad0e/lib/appium_lib/common/helper.rb#L69)
|
|
1685
1605
|
|
|
1686
1606
|
> def result
|
|
1687
1607
|
|
|
@@ -1689,7 +1609,7 @@ Returns the value of attribute result
|
|
|
1689
1609
|
|
|
1690
1610
|
--
|
|
1691
1611
|
|
|
1692
|
-
##### [initialize](https://github.com/appium/ruby_lib/blob/
|
|
1612
|
+
##### [initialize](https://github.com/appium/ruby_lib/blob/5e5b3fbd4d7c84904f9a3158975081fc1786ad0e/lib/appium_lib/common/helper.rb#L71)
|
|
1693
1613
|
|
|
1694
1614
|
> def initialize
|
|
1695
1615
|
|
|
@@ -1701,7 +1621,7 @@ __Returns:__
|
|
|
1701
1621
|
|
|
1702
1622
|
--
|
|
1703
1623
|
|
|
1704
|
-
##### [reset](https://github.com/appium/ruby_lib/blob/
|
|
1624
|
+
##### [reset](https://github.com/appium/ruby_lib/blob/5e5b3fbd4d7c84904f9a3158975081fc1786ad0e/lib/appium_lib/common/helper.rb#L75)
|
|
1705
1625
|
|
|
1706
1626
|
> def reset
|
|
1707
1627
|
|
|
@@ -1709,7 +1629,7 @@ __Returns:__
|
|
|
1709
1629
|
|
|
1710
1630
|
--
|
|
1711
1631
|
|
|
1712
|
-
##### [start_element](https://github.com/appium/ruby_lib/blob/
|
|
1632
|
+
##### [start_element](https://github.com/appium/ruby_lib/blob/5e5b3fbd4d7c84904f9a3158975081fc1786ad0e/lib/appium_lib/common/helper.rb#L80)
|
|
1713
1633
|
|
|
1714
1634
|
> def start_element(name, attrs = [])
|
|
1715
1635
|
|
|
@@ -1717,7 +1637,7 @@ http://nokogiri.org/Nokogiri/XML/SAX/Document.html
|
|
|
1717
1637
|
|
|
1718
1638
|
--
|
|
1719
1639
|
|
|
1720
|
-
##### [formatted_result](https://github.com/appium/ruby_lib/blob/
|
|
1640
|
+
##### [formatted_result](https://github.com/appium/ruby_lib/blob/5e5b3fbd4d7c84904f9a3158975081fc1786ad0e/lib/appium_lib/common/helper.rb#L86)
|
|
1721
1641
|
|
|
1722
1642
|
> def formatted_result
|
|
1723
1643
|
|
|
@@ -1725,7 +1645,7 @@ http://nokogiri.org/Nokogiri/XML/SAX/Document.html
|
|
|
1725
1645
|
|
|
1726
1646
|
--
|
|
1727
1647
|
|
|
1728
|
-
##### [get_page_class](https://github.com/appium/ruby_lib/blob/
|
|
1648
|
+
##### [get_page_class](https://github.com/appium/ruby_lib/blob/5e5b3fbd4d7c84904f9a3158975081fc1786ad0e/lib/appium_lib/common/helper.rb#L97)
|
|
1729
1649
|
|
|
1730
1650
|
> def get_page_class
|
|
1731
1651
|
|
|
@@ -1733,7 +1653,7 @@ Returns a string of class counts of visible elements.
|
|
|
1733
1653
|
|
|
1734
1654
|
--
|
|
1735
1655
|
|
|
1736
|
-
##### [page_class](https://github.com/appium/ruby_lib/blob/
|
|
1656
|
+
##### [page_class](https://github.com/appium/ruby_lib/blob/5e5b3fbd4d7c84904f9a3158975081fc1786ad0e/lib/appium_lib/common/helper.rb#L108)
|
|
1737
1657
|
|
|
1738
1658
|
> def page_class
|
|
1739
1659
|
|
|
@@ -1742,7 +1662,7 @@ Useful for appium_console.
|
|
|
1742
1662
|
|
|
1743
1663
|
--
|
|
1744
1664
|
|
|
1745
|
-
##### [px_to_window_rel](https://github.com/appium/ruby_lib/blob/
|
|
1665
|
+
##### [px_to_window_rel](https://github.com/appium/ruby_lib/blob/5e5b3fbd4d7c84904f9a3158975081fc1786ad0e/lib/appium_lib/common/helper.rb#L118)
|
|
1746
1666
|
|
|
1747
1667
|
> def px_to_window_rel(opts = {})
|
|
1748
1668
|
|
|
@@ -1754,7 +1674,7 @@ px_to_window_rel x: 50, y: 150
|
|
|
1754
1674
|
|
|
1755
1675
|
--
|
|
1756
1676
|
|
|
1757
|
-
##### [xml_keys](https://github.com/appium/ruby_lib/blob/
|
|
1677
|
+
##### [xml_keys](https://github.com/appium/ruby_lib/blob/5e5b3fbd4d7c84904f9a3158975081fc1786ad0e/lib/appium_lib/common/helper.rb#L137)
|
|
1758
1678
|
|
|
1759
1679
|
> def xml_keys(target)
|
|
1760
1680
|
|
|
@@ -1770,7 +1690,7 @@ __Returns:__
|
|
|
1770
1690
|
|
|
1771
1691
|
--
|
|
1772
1692
|
|
|
1773
|
-
##### [xml_values](https://github.com/appium/ruby_lib/blob/
|
|
1693
|
+
##### [xml_values](https://github.com/appium/ruby_lib/blob/5e5b3fbd4d7c84904f9a3158975081fc1786ad0e/lib/appium_lib/common/helper.rb#L145)
|
|
1774
1694
|
|
|
1775
1695
|
> def xml_values(target)
|
|
1776
1696
|
|
|
@@ -1786,7 +1706,7 @@ __Returns:__
|
|
|
1786
1706
|
|
|
1787
1707
|
--
|
|
1788
1708
|
|
|
1789
|
-
##### [resolve_id](https://github.com/appium/ruby_lib/blob/
|
|
1709
|
+
##### [resolve_id](https://github.com/appium/ruby_lib/blob/5e5b3fbd4d7c84904f9a3158975081fc1786ad0e/lib/appium_lib/common/helper.rb#L153)
|
|
1790
1710
|
|
|
1791
1711
|
> def resolve_id(id)
|
|
1792
1712
|
|
|
@@ -1802,7 +1722,7 @@ __Returns:__
|
|
|
1802
1722
|
|
|
1803
1723
|
--
|
|
1804
1724
|
|
|
1805
|
-
##### [filter](https://github.com/appium/ruby_lib/blob/
|
|
1725
|
+
##### [filter](https://github.com/appium/ruby_lib/blob/5e5b3fbd4d7c84904f9a3158975081fc1786ad0e/lib/appium_lib/common/helper.rb#L159)
|
|
1806
1726
|
|
|
1807
1727
|
> def filter
|
|
1808
1728
|
|
|
@@ -1810,7 +1730,7 @@ Returns the value of attribute filter
|
|
|
1810
1730
|
|
|
1811
1731
|
--
|
|
1812
1732
|
|
|
1813
|
-
##### [filter=](https://github.com/appium/ruby_lib/blob/
|
|
1733
|
+
##### [filter=](https://github.com/appium/ruby_lib/blob/5e5b3fbd4d7c84904f9a3158975081fc1786ad0e/lib/appium_lib/common/helper.rb#L162)
|
|
1814
1734
|
|
|
1815
1735
|
> def filter=(value)
|
|
1816
1736
|
|
|
@@ -1818,7 +1738,7 @@ convert to string to support symbols
|
|
|
1818
1738
|
|
|
1819
1739
|
--
|
|
1820
1740
|
|
|
1821
|
-
##### [initialize](https://github.com/appium/ruby_lib/blob/
|
|
1741
|
+
##### [initialize](https://github.com/appium/ruby_lib/blob/5e5b3fbd4d7c84904f9a3158975081fc1786ad0e/lib/appium_lib/common/helper.rb#L168)
|
|
1822
1742
|
|
|
1823
1743
|
> def initialize
|
|
1824
1744
|
|
|
@@ -1830,7 +1750,7 @@ __Returns:__
|
|
|
1830
1750
|
|
|
1831
1751
|
--
|
|
1832
1752
|
|
|
1833
|
-
##### [reset](https://github.com/appium/ruby_lib/blob/
|
|
1753
|
+
##### [reset](https://github.com/appium/ruby_lib/blob/5e5b3fbd4d7c84904f9a3158975081fc1786ad0e/lib/appium_lib/common/helper.rb#L173)
|
|
1834
1754
|
|
|
1835
1755
|
> def reset
|
|
1836
1756
|
|
|
@@ -1838,7 +1758,7 @@ __Returns:__
|
|
|
1838
1758
|
|
|
1839
1759
|
--
|
|
1840
1760
|
|
|
1841
|
-
##### [result](https://github.com/appium/ruby_lib/blob/
|
|
1761
|
+
##### [result](https://github.com/appium/ruby_lib/blob/5e5b3fbd4d7c84904f9a3158975081fc1786ad0e/lib/appium_lib/common/helper.rb#L179)
|
|
1842
1762
|
|
|
1843
1763
|
> def result
|
|
1844
1764
|
|
|
@@ -1846,7 +1766,7 @@ __Returns:__
|
|
|
1846
1766
|
|
|
1847
1767
|
--
|
|
1848
1768
|
|
|
1849
|
-
##### [start_element](https://github.com/appium/ruby_lib/blob/
|
|
1769
|
+
##### [start_element](https://github.com/appium/ruby_lib/blob/5e5b3fbd4d7c84904f9a3158975081fc1786ad0e/lib/appium_lib/common/helper.rb#L195)
|
|
1850
1770
|
|
|
1851
1771
|
> def start_element(name, attrs = [])
|
|
1852
1772
|
|
|
@@ -1854,7 +1774,7 @@ __Returns:__
|
|
|
1854
1774
|
|
|
1855
1775
|
--
|
|
1856
1776
|
|
|
1857
|
-
##### [end_element](https://github.com/appium/ruby_lib/blob/
|
|
1777
|
+
##### [end_element](https://github.com/appium/ruby_lib/blob/5e5b3fbd4d7c84904f9a3158975081fc1786ad0e/lib/appium_lib/common/helper.rb#L204)
|
|
1858
1778
|
|
|
1859
1779
|
> def end_element(name)
|
|
1860
1780
|
|
|
@@ -1862,7 +1782,7 @@ __Returns:__
|
|
|
1862
1782
|
|
|
1863
1783
|
--
|
|
1864
1784
|
|
|
1865
|
-
##### [characters](https://github.com/appium/ruby_lib/blob/
|
|
1785
|
+
##### [characters](https://github.com/appium/ruby_lib/blob/5e5b3fbd4d7c84904f9a3158975081fc1786ad0e/lib/appium_lib/common/helper.rb#L210)
|
|
1866
1786
|
|
|
1867
1787
|
> def characters(chars)
|
|
1868
1788
|
|
|
@@ -1870,7 +1790,7 @@ __Returns:__
|
|
|
1870
1790
|
|
|
1871
1791
|
--
|
|
1872
1792
|
|
|
1873
|
-
##### [_no_such_element](https://github.com/appium/ruby_lib/blob/
|
|
1793
|
+
##### [_no_such_element](https://github.com/appium/ruby_lib/blob/5e5b3fbd4d7c84904f9a3158975081fc1786ad0e/lib/appium_lib/common/helper.rb#L217)
|
|
1874
1794
|
|
|
1875
1795
|
> def _no_such_element
|
|
1876
1796
|
|
|
@@ -1878,7 +1798,7 @@ __Returns:__
|
|
|
1878
1798
|
|
|
1879
1799
|
--
|
|
1880
1800
|
|
|
1881
|
-
##### [COMMAND_NO_ARG](https://github.com/appium/ruby_lib/blob/
|
|
1801
|
+
##### [COMMAND_NO_ARG](https://github.com/appium/ruby_lib/blob/5e5b3fbd4d7c84904f9a3158975081fc1786ad0e/lib/appium_lib/common/command.rb#L4)
|
|
1882
1802
|
|
|
1883
1803
|
> COMMAND_NO_ARG = {
|
|
1884
1804
|
|
|
@@ -1886,7 +1806,7 @@ __Returns:__
|
|
|
1886
1806
|
|
|
1887
1807
|
--
|
|
1888
1808
|
|
|
1889
|
-
##### [COMMAND](https://github.com/appium/ruby_lib/blob/
|
|
1809
|
+
##### [COMMAND](https://github.com/appium/ruby_lib/blob/5e5b3fbd4d7c84904f9a3158975081fc1786ad0e/lib/appium_lib/common/command.rb#L27)
|
|
1890
1810
|
|
|
1891
1811
|
> COMMAND = {
|
|
1892
1812
|
|
|
@@ -1894,7 +1814,7 @@ __Returns:__
|
|
|
1894
1814
|
|
|
1895
1815
|
--
|
|
1896
1816
|
|
|
1897
|
-
##### [window_size](https://github.com/appium/ruby_lib/blob/
|
|
1817
|
+
##### [window_size](https://github.com/appium/ruby_lib/blob/5e5b3fbd4d7c84904f9a3158975081fc1786ad0e/lib/appium_lib/common/element/window.rb#L5)
|
|
1898
1818
|
|
|
1899
1819
|
> def window_size
|
|
1900
1820
|
|
|
@@ -1902,7 +1822,7 @@ Get the window's size
|
|
|
1902
1822
|
|
|
1903
1823
|
--
|
|
1904
1824
|
|
|
1905
|
-
##### [FINDERS](https://github.com/appium/ruby_lib/blob/
|
|
1825
|
+
##### [FINDERS](https://github.com/appium/ruby_lib/blob/5e5b3fbd4d7c84904f9a3158975081fc1786ad0e/lib/appium_lib/common/search_context.rb#L5)
|
|
1906
1826
|
|
|
1907
1827
|
> FINDERS = {
|
|
1908
1828
|
|
|
@@ -1910,7 +1830,7 @@ rubocop:disable Style/MutableConstant
|
|
|
1910
1830
|
|
|
1911
1831
|
--
|
|
1912
1832
|
|
|
1913
|
-
##### [result](https://github.com/appium/ruby_lib/blob/
|
|
1833
|
+
##### [result](https://github.com/appium/ruby_lib/blob/5e5b3fbd4d7c84904f9a3158975081fc1786ad0e/lib/appium_lib/android/helper.rb#L6) android
|
|
1914
1834
|
|
|
1915
1835
|
> def result
|
|
1916
1836
|
|
|
@@ -1918,7 +1838,7 @@ Returns the value of attribute result
|
|
|
1918
1838
|
|
|
1919
1839
|
--
|
|
1920
1840
|
|
|
1921
|
-
##### [keys](https://github.com/appium/ruby_lib/blob/
|
|
1841
|
+
##### [keys](https://github.com/appium/ruby_lib/blob/5e5b3fbd4d7c84904f9a3158975081fc1786ad0e/lib/appium_lib/android/helper.rb#L6) android
|
|
1922
1842
|
|
|
1923
1843
|
> def keys
|
|
1924
1844
|
|
|
@@ -1926,7 +1846,7 @@ Returns the value of attribute keys
|
|
|
1926
1846
|
|
|
1927
1847
|
--
|
|
1928
1848
|
|
|
1929
|
-
##### [filter](https://github.com/appium/ruby_lib/blob/
|
|
1849
|
+
##### [filter](https://github.com/appium/ruby_lib/blob/5e5b3fbd4d7c84904f9a3158975081fc1786ad0e/lib/appium_lib/android/helper.rb#L6) android
|
|
1930
1850
|
|
|
1931
1851
|
> def filter
|
|
1932
1852
|
|
|
@@ -1934,7 +1854,7 @@ Returns the value of attribute filter
|
|
|
1934
1854
|
|
|
1935
1855
|
--
|
|
1936
1856
|
|
|
1937
|
-
##### [filter=](https://github.com/appium/ruby_lib/blob/
|
|
1857
|
+
##### [filter=](https://github.com/appium/ruby_lib/blob/5e5b3fbd4d7c84904f9a3158975081fc1786ad0e/lib/appium_lib/android/helper.rb#L9) android
|
|
1938
1858
|
|
|
1939
1859
|
> def filter=(value)
|
|
1940
1860
|
|
|
@@ -1942,7 +1862,7 @@ convert to string to support symbols
|
|
|
1942
1862
|
|
|
1943
1863
|
--
|
|
1944
1864
|
|
|
1945
|
-
##### [initialize](https://github.com/appium/ruby_lib/blob/
|
|
1865
|
+
##### [initialize](https://github.com/appium/ruby_lib/blob/5e5b3fbd4d7c84904f9a3158975081fc1786ad0e/lib/appium_lib/android/helper.rb#L15) android
|
|
1946
1866
|
|
|
1947
1867
|
> def initialize
|
|
1948
1868
|
|
|
@@ -1954,7 +1874,7 @@ __Returns:__
|
|
|
1954
1874
|
|
|
1955
1875
|
--
|
|
1956
1876
|
|
|
1957
|
-
##### [reset](https://github.com/appium/ruby_lib/blob/
|
|
1877
|
+
##### [reset](https://github.com/appium/ruby_lib/blob/5e5b3fbd4d7c84904f9a3158975081fc1786ad0e/lib/appium_lib/android/helper.rb#L20) android
|
|
1958
1878
|
|
|
1959
1879
|
> def reset
|
|
1960
1880
|
|
|
@@ -1962,7 +1882,7 @@ __Returns:__
|
|
|
1962
1882
|
|
|
1963
1883
|
--
|
|
1964
1884
|
|
|
1965
|
-
##### [start_element](https://github.com/appium/ruby_lib/blob/
|
|
1885
|
+
##### [start_element](https://github.com/appium/ruby_lib/blob/5e5b3fbd4d7c84904f9a3158975081fc1786ad0e/lib/appium_lib/android/helper.rb#L26) android
|
|
1966
1886
|
|
|
1967
1887
|
> def start_element(name, attrs = [])
|
|
1968
1888
|
|
|
@@ -1970,7 +1890,7 @@ http://nokogiri.org/Nokogiri/XML/SAX/Document.html
|
|
|
1970
1890
|
|
|
1971
1891
|
--
|
|
1972
1892
|
|
|
1973
|
-
##### [source](https://github.com/appium/ruby_lib/blob/
|
|
1893
|
+
##### [source](https://github.com/appium/ruby_lib/blob/5e5b3fbd4d7c84904f9a3158975081fc1786ad0e/lib/appium_lib/android/helper.rb#L82) android
|
|
1974
1894
|
|
|
1975
1895
|
> def source
|
|
1976
1896
|
|
|
@@ -1982,7 +1902,7 @@ __Returns:__
|
|
|
1982
1902
|
|
|
1983
1903
|
--
|
|
1984
1904
|
|
|
1985
|
-
##### [get_android_inspect](https://github.com/appium/ruby_lib/blob/
|
|
1905
|
+
##### [get_android_inspect](https://github.com/appium/ruby_lib/blob/5e5b3fbd4d7c84904f9a3158975081fc1786ad0e/lib/appium_lib/android/helper.rb#L92) android
|
|
1986
1906
|
|
|
1987
1907
|
> def get_android_inspect(class_name = false)
|
|
1988
1908
|
|
|
@@ -2001,7 +1921,7 @@ __Returns:__
|
|
|
2001
1921
|
|
|
2002
1922
|
--
|
|
2003
1923
|
|
|
2004
|
-
##### [page](https://github.com/appium/ruby_lib/blob/
|
|
1924
|
+
##### [page](https://github.com/appium/ruby_lib/blob/5e5b3fbd4d7c84904f9a3158975081fc1786ad0e/lib/appium_lib/android/helper.rb#L118) android
|
|
2005
1925
|
|
|
2006
1926
|
> def page(opts = {})
|
|
2007
1927
|
|
|
@@ -2020,7 +1940,7 @@ __Returns:__
|
|
|
2020
1940
|
|
|
2021
1941
|
--
|
|
2022
1942
|
|
|
2023
|
-
##### [current_app](https://github.com/appium/ruby_lib/blob/
|
|
1943
|
+
##### [current_app](https://github.com/appium/ruby_lib/blob/5e5b3fbd4d7c84904f9a3158975081fc1786ad0e/lib/appium_lib/android/helper.rb#L130) android
|
|
2024
1944
|
|
|
2025
1945
|
> def current_app
|
|
2026
1946
|
|
|
@@ -2030,7 +1950,7 @@ example line:
|
|
|
2030
1950
|
|
|
2031
1951
|
--
|
|
2032
1952
|
|
|
2033
|
-
##### [id](https://github.com/appium/ruby_lib/blob/
|
|
1953
|
+
##### [id](https://github.com/appium/ruby_lib/blob/5e5b3fbd4d7c84904f9a3158975081fc1786ad0e/lib/appium_lib/android/helper.rb#L154) android
|
|
2034
1954
|
|
|
2035
1955
|
> def id(id)
|
|
2036
1956
|
|
|
@@ -2046,7 +1966,7 @@ __Returns:__
|
|
|
2046
1966
|
|
|
2047
1967
|
--
|
|
2048
1968
|
|
|
2049
|
-
##### [ids](https://github.com/appium/ruby_lib/blob/
|
|
1969
|
+
##### [ids](https://github.com/appium/ruby_lib/blob/5e5b3fbd4d7c84904f9a3158975081fc1786ad0e/lib/appium_lib/android/helper.rb#L162) android
|
|
2050
1970
|
|
|
2051
1971
|
> def ids(id)
|
|
2052
1972
|
|
|
@@ -2062,7 +1982,7 @@ __Returns:__
|
|
|
2062
1982
|
|
|
2063
1983
|
--
|
|
2064
1984
|
|
|
2065
|
-
##### [ele_index](https://github.com/appium/ruby_lib/blob/
|
|
1985
|
+
##### [ele_index](https://github.com/appium/ruby_lib/blob/5e5b3fbd4d7c84904f9a3158975081fc1786ad0e/lib/appium_lib/android/helper.rb#L171) android
|
|
2066
1986
|
|
|
2067
1987
|
> def ele_index(class_name, index)
|
|
2068
1988
|
|
|
@@ -2080,7 +2000,7 @@ __Returns:__
|
|
|
2080
2000
|
|
|
2081
2001
|
--
|
|
2082
2002
|
|
|
2083
|
-
##### [first_ele](https://github.com/appium/ruby_lib/blob/
|
|
2003
|
+
##### [first_ele](https://github.com/appium/ruby_lib/blob/5e5b3fbd4d7c84904f9a3158975081fc1786ad0e/lib/appium_lib/android/helper.rb#L189) android
|
|
2084
2004
|
|
|
2085
2005
|
> def first_ele(class_name)
|
|
2086
2006
|
|
|
@@ -2096,7 +2016,7 @@ __Returns:__
|
|
|
2096
2016
|
|
|
2097
2017
|
--
|
|
2098
2018
|
|
|
2099
|
-
##### [last_ele](https://github.com/appium/ruby_lib/blob/
|
|
2019
|
+
##### [last_ele](https://github.com/appium/ruby_lib/blob/5e5b3fbd4d7c84904f9a3158975081fc1786ad0e/lib/appium_lib/android/helper.rb#L196) android
|
|
2100
2020
|
|
|
2101
2021
|
> def last_ele(class_name)
|
|
2102
2022
|
|
|
@@ -2112,7 +2032,7 @@ __Returns:__
|
|
|
2112
2032
|
|
|
2113
2033
|
--
|
|
2114
2034
|
|
|
2115
|
-
##### [tag](https://github.com/appium/ruby_lib/blob/
|
|
2035
|
+
##### [tag](https://github.com/appium/ruby_lib/blob/5e5b3fbd4d7c84904f9a3158975081fc1786ad0e/lib/appium_lib/android/helper.rb#L204) android
|
|
2116
2036
|
|
|
2117
2037
|
> def tag(class_name)
|
|
2118
2038
|
|
|
@@ -2128,7 +2048,7 @@ __Returns:__
|
|
|
2128
2048
|
|
|
2129
2049
|
--
|
|
2130
2050
|
|
|
2131
|
-
##### [tags](https://github.com/appium/ruby_lib/blob/
|
|
2051
|
+
##### [tags](https://github.com/appium/ruby_lib/blob/5e5b3fbd4d7c84904f9a3158975081fc1786ad0e/lib/appium_lib/android/helper.rb#L212) android
|
|
2132
2052
|
|
|
2133
2053
|
> def tags(class_name)
|
|
2134
2054
|
|
|
@@ -2144,7 +2064,7 @@ __Returns:__
|
|
|
2144
2064
|
|
|
2145
2065
|
--
|
|
2146
2066
|
|
|
2147
|
-
##### [string_visible_contains_xpath](https://github.com/appium/ruby_lib/blob/
|
|
2067
|
+
##### [string_visible_contains_xpath](https://github.com/appium/ruby_lib/blob/5e5b3fbd4d7c84904f9a3158975081fc1786ad0e/lib/appium_lib/android/helper.rb#L255) android
|
|
2148
2068
|
|
|
2149
2069
|
> def string_visible_contains_xpath(class_name, value)
|
|
2150
2070
|
|
|
@@ -2165,7 +2085,7 @@ __Returns:__
|
|
|
2165
2085
|
|
|
2166
2086
|
--
|
|
2167
2087
|
|
|
2168
|
-
##### [string_visible_contains](https://github.com/appium/ruby_lib/blob/
|
|
2088
|
+
##### [string_visible_contains](https://github.com/appium/ruby_lib/blob/5e5b3fbd4d7c84904f9a3158975081fc1786ad0e/lib/appium_lib/android/helper.rb#L275) android
|
|
2169
2089
|
|
|
2170
2090
|
> def string_visible_contains(class_name, value)
|
|
2171
2091
|
|
|
@@ -2186,7 +2106,7 @@ __Returns:__
|
|
|
2186
2106
|
|
|
2187
2107
|
--
|
|
2188
2108
|
|
|
2189
|
-
##### [complex_find_contains](https://github.com/appium/ruby_lib/blob/
|
|
2109
|
+
##### [complex_find_contains](https://github.com/appium/ruby_lib/blob/5e5b3fbd4d7c84904f9a3158975081fc1786ad0e/lib/appium_lib/android/helper.rb#L293) android
|
|
2190
2110
|
|
|
2191
2111
|
> def complex_find_contains(class_name, value)
|
|
2192
2112
|
|
|
@@ -2204,7 +2124,7 @@ __Returns:__
|
|
|
2204
2124
|
|
|
2205
2125
|
--
|
|
2206
2126
|
|
|
2207
|
-
##### [complex_finds_contains](https://github.com/appium/ruby_lib/blob/
|
|
2127
|
+
##### [complex_finds_contains](https://github.com/appium/ruby_lib/blob/5e5b3fbd4d7c84904f9a3158975081fc1786ad0e/lib/appium_lib/android/helper.rb#L307) android
|
|
2208
2128
|
|
|
2209
2129
|
> def complex_finds_contains(class_name, value)
|
|
2210
2130
|
|
|
@@ -2222,7 +2142,7 @@ __Returns:__
|
|
|
2222
2142
|
|
|
2223
2143
|
--
|
|
2224
2144
|
|
|
2225
|
-
##### [complex_find_exact](https://github.com/appium/ruby_lib/blob/
|
|
2145
|
+
##### [complex_find_exact](https://github.com/appium/ruby_lib/blob/5e5b3fbd4d7c84904f9a3158975081fc1786ad0e/lib/appium_lib/android/helper.rb#L351) android
|
|
2226
2146
|
|
|
2227
2147
|
> def complex_find_exact(class_name, value)
|
|
2228
2148
|
|
|
@@ -2240,7 +2160,7 @@ __Returns:__
|
|
|
2240
2160
|
|
|
2241
2161
|
--
|
|
2242
2162
|
|
|
2243
|
-
##### [complex_finds_exact](https://github.com/appium/ruby_lib/blob/
|
|
2163
|
+
##### [complex_finds_exact](https://github.com/appium/ruby_lib/blob/5e5b3fbd4d7c84904f9a3158975081fc1786ad0e/lib/appium_lib/android/helper.rb#L365) android
|
|
2244
2164
|
|
|
2245
2165
|
> def complex_finds_exact(class_name, value)
|
|
2246
2166
|
|
|
@@ -2258,7 +2178,7 @@ __Returns:__
|
|
|
2258
2178
|
|
|
2259
2179
|
--
|
|
2260
2180
|
|
|
2261
|
-
##### [get_source](https://github.com/appium/ruby_lib/blob/
|
|
2181
|
+
##### [get_source](https://github.com/appium/ruby_lib/blob/5e5b3fbd4d7c84904f9a3158975081fc1786ad0e/lib/appium_lib/android/helper.rb#L371) android
|
|
2262
2182
|
|
|
2263
2183
|
> def get_source
|
|
2264
2184
|
|
|
@@ -2270,7 +2190,7 @@ __Returns:__
|
|
|
2270
2190
|
|
|
2271
2191
|
--
|
|
2272
2192
|
|
|
2273
|
-
##### [_nodeset_to_uiselector](https://github.com/appium/ruby_lib/blob/
|
|
2193
|
+
##### [_nodeset_to_uiselector](https://github.com/appium/ruby_lib/blob/5e5b3fbd4d7c84904f9a3158975081fc1786ad0e/lib/appium_lib/android/client_xpath.rb#L5) android
|
|
2274
2194
|
|
|
2275
2195
|
> def _nodeset_to_uiselector(opts = {})
|
|
2276
2196
|
|
|
@@ -2278,7 +2198,7 @@ __Returns:__
|
|
|
2278
2198
|
|
|
2279
2199
|
--
|
|
2280
2200
|
|
|
2281
|
-
##### [_client_xpath](https://github.com/appium/ruby_lib/blob/
|
|
2201
|
+
##### [_client_xpath](https://github.com/appium/ruby_lib/blob/5e5b3fbd4d7c84904f9a3158975081fc1786ad0e/lib/appium_lib/android/client_xpath.rb#L20) android
|
|
2282
2202
|
|
|
2283
2203
|
> def _client_xpath(opts = {})
|
|
2284
2204
|
|
|
@@ -2286,7 +2206,7 @@ __Returns:__
|
|
|
2286
2206
|
|
|
2287
2207
|
--
|
|
2288
2208
|
|
|
2289
|
-
##### [client_xpath](https://github.com/appium/ruby_lib/blob/
|
|
2209
|
+
##### [client_xpath](https://github.com/appium/ruby_lib/blob/5e5b3fbd4d7c84904f9a3158975081fc1786ad0e/lib/appium_lib/android/client_xpath.rb#L36) android
|
|
2290
2210
|
|
|
2291
2211
|
> def client_xpath(xpath)
|
|
2292
2212
|
|
|
@@ -2294,7 +2214,7 @@ __Returns:__
|
|
|
2294
2214
|
|
|
2295
2215
|
--
|
|
2296
2216
|
|
|
2297
|
-
##### [client_xpaths](https://github.com/appium/ruby_lib/blob/
|
|
2217
|
+
##### [client_xpaths](https://github.com/appium/ruby_lib/blob/5e5b3fbd4d7c84904f9a3158975081fc1786ad0e/lib/appium_lib/android/client_xpath.rb#L40) android
|
|
2298
2218
|
|
|
2299
2219
|
> def client_xpaths(xpath)
|
|
2300
2220
|
|
|
@@ -2302,7 +2222,7 @@ __Returns:__
|
|
|
2302
2222
|
|
|
2303
2223
|
--
|
|
2304
2224
|
|
|
2305
|
-
##### [TextView](https://github.com/appium/ruby_lib/blob/
|
|
2225
|
+
##### [TextView](https://github.com/appium/ruby_lib/blob/5e5b3fbd4d7c84904f9a3158975081fc1786ad0e/lib/appium_lib/android/element/text.rb#L4) android
|
|
2306
2226
|
|
|
2307
2227
|
> TextView = 'android.widget.TextView'.freeze
|
|
2308
2228
|
|
|
@@ -2310,7 +2230,7 @@ __Returns:__
|
|
|
2310
2230
|
|
|
2311
2231
|
--
|
|
2312
2232
|
|
|
2313
|
-
##### [text](https://github.com/appium/ruby_lib/blob/
|
|
2233
|
+
##### [text](https://github.com/appium/ruby_lib/blob/5e5b3fbd4d7c84904f9a3158975081fc1786ad0e/lib/appium_lib/android/element/text.rb#L10) android
|
|
2314
2234
|
|
|
2315
2235
|
> def text(value)
|
|
2316
2236
|
|
|
@@ -2327,7 +2247,7 @@ __Returns:__
|
|
|
2327
2247
|
|
|
2328
2248
|
--
|
|
2329
2249
|
|
|
2330
|
-
##### [texts](https://github.com/appium/ruby_lib/blob/
|
|
2250
|
+
##### [texts](https://github.com/appium/ruby_lib/blob/5e5b3fbd4d7c84904f9a3158975081fc1786ad0e/lib/appium_lib/android/element/text.rb#L19) android
|
|
2331
2251
|
|
|
2332
2252
|
> def texts(value = false)
|
|
2333
2253
|
|
|
@@ -2344,7 +2264,7 @@ __Returns:__
|
|
|
2344
2264
|
|
|
2345
2265
|
--
|
|
2346
2266
|
|
|
2347
|
-
##### [first_text](https://github.com/appium/ruby_lib/blob/
|
|
2267
|
+
##### [first_text](https://github.com/appium/ruby_lib/blob/5e5b3fbd4d7c84904f9a3158975081fc1786ad0e/lib/appium_lib/android/element/text.rb#L26) android
|
|
2348
2268
|
|
|
2349
2269
|
> def first_text
|
|
2350
2270
|
|
|
@@ -2356,7 +2276,7 @@ __Returns:__
|
|
|
2356
2276
|
|
|
2357
2277
|
--
|
|
2358
2278
|
|
|
2359
|
-
##### [last_text](https://github.com/appium/ruby_lib/blob/
|
|
2279
|
+
##### [last_text](https://github.com/appium/ruby_lib/blob/5e5b3fbd4d7c84904f9a3158975081fc1786ad0e/lib/appium_lib/android/element/text.rb#L32) android
|
|
2360
2280
|
|
|
2361
2281
|
> def last_text
|
|
2362
2282
|
|
|
@@ -2368,7 +2288,7 @@ __Returns:__
|
|
|
2368
2288
|
|
|
2369
2289
|
--
|
|
2370
2290
|
|
|
2371
|
-
##### [text_exact](https://github.com/appium/ruby_lib/blob/
|
|
2291
|
+
##### [text_exact](https://github.com/appium/ruby_lib/blob/5e5b3fbd4d7c84904f9a3158975081fc1786ad0e/lib/appium_lib/android/element/text.rb#L39) android
|
|
2372
2292
|
|
|
2373
2293
|
> def text_exact(value)
|
|
2374
2294
|
|
|
@@ -2384,7 +2304,7 @@ __Returns:__
|
|
|
2384
2304
|
|
|
2385
2305
|
--
|
|
2386
2306
|
|
|
2387
|
-
##### [texts_exact](https://github.com/appium/ruby_lib/blob/
|
|
2307
|
+
##### [texts_exact](https://github.com/appium/ruby_lib/blob/5e5b3fbd4d7c84904f9a3158975081fc1786ad0e/lib/appium_lib/android/element/text.rb#L46) android
|
|
2388
2308
|
|
|
2389
2309
|
> def texts_exact(value)
|
|
2390
2310
|
|
|
@@ -2400,7 +2320,7 @@ __Returns:__
|
|
|
2400
2320
|
|
|
2401
2321
|
--
|
|
2402
2322
|
|
|
2403
|
-
##### [alert_click](https://github.com/appium/ruby_lib/blob/
|
|
2323
|
+
##### [alert_click](https://github.com/appium/ruby_lib/blob/5e5b3fbd4d7c84904f9a3158975081fc1786ad0e/lib/appium_lib/android/element/alert.rb#L6) android
|
|
2404
2324
|
|
|
2405
2325
|
> def alert_click(value)
|
|
2406
2326
|
|
|
@@ -2416,7 +2336,7 @@ __Returns:__
|
|
|
2416
2336
|
|
|
2417
2337
|
--
|
|
2418
2338
|
|
|
2419
|
-
##### [alert_accept](https://github.com/appium/ruby_lib/blob/
|
|
2339
|
+
##### [alert_accept](https://github.com/appium/ruby_lib/blob/5e5b3fbd4d7c84904f9a3158975081fc1786ad0e/lib/appium_lib/android/element/alert.rb#L13) android
|
|
2420
2340
|
|
|
2421
2341
|
> def alert_accept
|
|
2422
2342
|
|
|
@@ -2429,7 +2349,7 @@ __Returns:__
|
|
|
2429
2349
|
|
|
2430
2350
|
--
|
|
2431
2351
|
|
|
2432
|
-
##### [alert_accept_text](https://github.com/appium/ruby_lib/blob/
|
|
2352
|
+
##### [alert_accept_text](https://github.com/appium/ruby_lib/blob/5e5b3fbd4d7c84904f9a3158975081fc1786ad0e/lib/appium_lib/android/element/alert.rb#L20) android
|
|
2433
2353
|
|
|
2434
2354
|
> def alert_accept_text
|
|
2435
2355
|
|
|
@@ -2442,7 +2362,7 @@ __Returns:__
|
|
|
2442
2362
|
|
|
2443
2363
|
--
|
|
2444
2364
|
|
|
2445
|
-
##### [alert_dismiss](https://github.com/appium/ruby_lib/blob/
|
|
2365
|
+
##### [alert_dismiss](https://github.com/appium/ruby_lib/blob/5e5b3fbd4d7c84904f9a3158975081fc1786ad0e/lib/appium_lib/android/element/alert.rb#L27) android
|
|
2446
2366
|
|
|
2447
2367
|
> def alert_dismiss
|
|
2448
2368
|
|
|
@@ -2455,7 +2375,7 @@ __Returns:__
|
|
|
2455
2375
|
|
|
2456
2376
|
--
|
|
2457
2377
|
|
|
2458
|
-
##### [alert_dismiss_text](https://github.com/appium/ruby_lib/blob/
|
|
2378
|
+
##### [alert_dismiss_text](https://github.com/appium/ruby_lib/blob/5e5b3fbd4d7c84904f9a3158975081fc1786ad0e/lib/appium_lib/android/element/alert.rb#L34) android
|
|
2459
2379
|
|
|
2460
2380
|
> def alert_dismiss_text
|
|
2461
2381
|
|
|
@@ -2468,7 +2388,7 @@ __Returns:__
|
|
|
2468
2388
|
|
|
2469
2389
|
--
|
|
2470
2390
|
|
|
2471
|
-
##### [Button](https://github.com/appium/ruby_lib/blob/
|
|
2391
|
+
##### [Button](https://github.com/appium/ruby_lib/blob/5e5b3fbd4d7c84904f9a3158975081fc1786ad0e/lib/appium_lib/android/element/button.rb#L4) android
|
|
2472
2392
|
|
|
2473
2393
|
> Button = 'android.widget.Button'.freeze
|
|
2474
2394
|
|
|
@@ -2476,7 +2396,7 @@ __Returns:__
|
|
|
2476
2396
|
|
|
2477
2397
|
--
|
|
2478
2398
|
|
|
2479
|
-
##### [ImageButton](https://github.com/appium/ruby_lib/blob/
|
|
2399
|
+
##### [ImageButton](https://github.com/appium/ruby_lib/blob/5e5b3fbd4d7c84904f9a3158975081fc1786ad0e/lib/appium_lib/android/element/button.rb#L5) android
|
|
2480
2400
|
|
|
2481
2401
|
> ImageButton = 'android.widget.ImageButton'.freeze
|
|
2482
2402
|
|
|
@@ -2484,7 +2404,7 @@ __Returns:__
|
|
|
2484
2404
|
|
|
2485
2405
|
--
|
|
2486
2406
|
|
|
2487
|
-
##### [_button_visible_selectors](https://github.com/appium/ruby_lib/blob/
|
|
2407
|
+
##### [_button_visible_selectors](https://github.com/appium/ruby_lib/blob/5e5b3fbd4d7c84904f9a3158975081fc1786ad0e/lib/appium_lib/android/element/button.rb#L9) android
|
|
2488
2408
|
|
|
2489
2409
|
> def _button_visible_selectors(opts = {})
|
|
2490
2410
|
|
|
@@ -2492,7 +2412,7 @@ __Returns:__
|
|
|
2492
2412
|
|
|
2493
2413
|
--
|
|
2494
2414
|
|
|
2495
|
-
##### [_button_exact_string](https://github.com/appium/ruby_lib/blob/
|
|
2415
|
+
##### [_button_exact_string](https://github.com/appium/ruby_lib/blob/5e5b3fbd4d7c84904f9a3158975081fc1786ad0e/lib/appium_lib/android/element/button.rb#L22) android
|
|
2496
2416
|
|
|
2497
2417
|
> def _button_exact_string(value)
|
|
2498
2418
|
|
|
@@ -2500,7 +2420,7 @@ __Returns:__
|
|
|
2500
2420
|
|
|
2501
2421
|
--
|
|
2502
2422
|
|
|
2503
|
-
##### [_button_contains_string](https://github.com/appium/ruby_lib/blob/
|
|
2423
|
+
##### [_button_contains_string](https://github.com/appium/ruby_lib/blob/5e5b3fbd4d7c84904f9a3158975081fc1786ad0e/lib/appium_lib/android/element/button.rb#L28) android
|
|
2504
2424
|
|
|
2505
2425
|
> def _button_contains_string(value)
|
|
2506
2426
|
|
|
@@ -2508,7 +2428,7 @@ __Returns:__
|
|
|
2508
2428
|
|
|
2509
2429
|
--
|
|
2510
2430
|
|
|
2511
|
-
##### [button](https://github.com/appium/ruby_lib/blob/
|
|
2431
|
+
##### [button](https://github.com/appium/ruby_lib/blob/5e5b3fbd4d7c84904f9a3158975081fc1786ad0e/lib/appium_lib/android/element/button.rb#L40) android
|
|
2512
2432
|
|
|
2513
2433
|
> def button(value)
|
|
2514
2434
|
|
|
@@ -2525,7 +2445,7 @@ __Returns:__
|
|
|
2525
2445
|
|
|
2526
2446
|
--
|
|
2527
2447
|
|
|
2528
|
-
##### [buttons](https://github.com/appium/ruby_lib/blob/
|
|
2448
|
+
##### [buttons](https://github.com/appium/ruby_lib/blob/5e5b3fbd4d7c84904f9a3158975081fc1786ad0e/lib/appium_lib/android/element/button.rb#L68) android
|
|
2529
2449
|
|
|
2530
2450
|
> def buttons(value = false)
|
|
2531
2451
|
|
|
@@ -2542,7 +2462,7 @@ __Returns:__
|
|
|
2542
2462
|
|
|
2543
2463
|
--
|
|
2544
2464
|
|
|
2545
|
-
##### [first_button](https://github.com/appium/ruby_lib/blob/
|
|
2465
|
+
##### [first_button](https://github.com/appium/ruby_lib/blob/5e5b3fbd4d7c84904f9a3158975081fc1786ad0e/lib/appium_lib/android/element/button.rb#L75) android
|
|
2546
2466
|
|
|
2547
2467
|
> def first_button
|
|
2548
2468
|
|
|
@@ -2554,7 +2474,7 @@ __Returns:__
|
|
|
2554
2474
|
|
|
2555
2475
|
--
|
|
2556
2476
|
|
|
2557
|
-
##### [last_button](https://github.com/appium/ruby_lib/blob/
|
|
2477
|
+
##### [last_button](https://github.com/appium/ruby_lib/blob/5e5b3fbd4d7c84904f9a3158975081fc1786ad0e/lib/appium_lib/android/element/button.rb#L86) android
|
|
2558
2478
|
|
|
2559
2479
|
> def last_button
|
|
2560
2480
|
|
|
@@ -2566,7 +2486,7 @@ __Returns:__
|
|
|
2566
2486
|
|
|
2567
2487
|
--
|
|
2568
2488
|
|
|
2569
|
-
##### [button_exact](https://github.com/appium/ruby_lib/blob/
|
|
2489
|
+
##### [button_exact](https://github.com/appium/ruby_lib/blob/5e5b3fbd4d7c84904f9a3158975081fc1786ad0e/lib/appium_lib/android/element/button.rb#L109) android
|
|
2570
2490
|
|
|
2571
2491
|
> def button_exact(value)
|
|
2572
2492
|
|
|
@@ -2582,7 +2502,7 @@ __Returns:__
|
|
|
2582
2502
|
|
|
2583
2503
|
--
|
|
2584
2504
|
|
|
2585
|
-
##### [buttons_exact](https://github.com/appium/ruby_lib/blob/
|
|
2505
|
+
##### [buttons_exact](https://github.com/appium/ruby_lib/blob/5e5b3fbd4d7c84904f9a3158975081fc1786ad0e/lib/appium_lib/android/element/button.rb#L121) android
|
|
2586
2506
|
|
|
2587
2507
|
> def buttons_exact(value)
|
|
2588
2508
|
|
|
@@ -2598,7 +2518,7 @@ __Returns:__
|
|
|
2598
2518
|
|
|
2599
2519
|
--
|
|
2600
2520
|
|
|
2601
|
-
##### [raise_no_such_element_if_empty](https://github.com/appium/ruby_lib/blob/
|
|
2521
|
+
##### [raise_no_such_element_if_empty](https://github.com/appium/ruby_lib/blob/5e5b3fbd4d7c84904f9a3158975081fc1786ad0e/lib/appium_lib/android/element/button.rb#L127) android
|
|
2602
2522
|
|
|
2603
2523
|
> def raise_no_such_element_if_empty(elements)
|
|
2604
2524
|
|
|
@@ -2606,7 +2526,7 @@ __Returns:__
|
|
|
2606
2526
|
|
|
2607
2527
|
--
|
|
2608
2528
|
|
|
2609
|
-
##### [uiautomator_find](https://github.com/appium/ruby_lib/blob/
|
|
2529
|
+
##### [uiautomator_find](https://github.com/appium/ruby_lib/blob/5e5b3fbd4d7c84904f9a3158975081fc1786ad0e/lib/appium_lib/android/mobile_methods.rb#L10) android
|
|
2610
2530
|
|
|
2611
2531
|
> def uiautomator_find
|
|
2612
2532
|
|
|
@@ -2618,7 +2538,7 @@ find_element/s can be used with a [UISelector](http://developer.android.com/tool
|
|
|
2618
2538
|
|
|
2619
2539
|
--
|
|
2620
2540
|
|
|
2621
|
-
##### [find](https://github.com/appium/ruby_lib/blob/
|
|
2541
|
+
##### [find](https://github.com/appium/ruby_lib/blob/5e5b3fbd4d7c84904f9a3158975081fc1786ad0e/lib/appium_lib/android/element/generic.rb#L6) android
|
|
2622
2542
|
|
|
2623
2543
|
> def find(value)
|
|
2624
2544
|
|
|
@@ -2634,7 +2554,7 @@ __Returns:__
|
|
|
2634
2554
|
|
|
2635
2555
|
--
|
|
2636
2556
|
|
|
2637
|
-
##### [finds](https://github.com/appium/ruby_lib/blob/
|
|
2557
|
+
##### [finds](https://github.com/appium/ruby_lib/blob/5e5b3fbd4d7c84904f9a3158975081fc1786ad0e/lib/appium_lib/android/element/generic.rb#L13) android
|
|
2638
2558
|
|
|
2639
2559
|
> def finds(value)
|
|
2640
2560
|
|
|
@@ -2650,7 +2570,7 @@ __Returns:__
|
|
|
2650
2570
|
|
|
2651
2571
|
--
|
|
2652
2572
|
|
|
2653
|
-
##### [find_exact](https://github.com/appium/ruby_lib/blob/
|
|
2573
|
+
##### [find_exact](https://github.com/appium/ruby_lib/blob/5e5b3fbd4d7c84904f9a3158975081fc1786ad0e/lib/appium_lib/android/element/generic.rb#L20) android
|
|
2654
2574
|
|
|
2655
2575
|
> def find_exact(value)
|
|
2656
2576
|
|
|
@@ -2666,7 +2586,7 @@ __Returns:__
|
|
|
2666
2586
|
|
|
2667
2587
|
--
|
|
2668
2588
|
|
|
2669
|
-
##### [finds_exact](https://github.com/appium/ruby_lib/blob/
|
|
2589
|
+
##### [finds_exact](https://github.com/appium/ruby_lib/blob/5e5b3fbd4d7c84904f9a3158975081fc1786ad0e/lib/appium_lib/android/element/generic.rb#L27) android
|
|
2670
2590
|
|
|
2671
2591
|
> def finds_exact(value)
|
|
2672
2592
|
|
|
@@ -2682,7 +2602,7 @@ __Returns:__
|
|
|
2682
2602
|
|
|
2683
2603
|
--
|
|
2684
2604
|
|
|
2685
|
-
##### [scroll_to](https://github.com/appium/ruby_lib/blob/
|
|
2605
|
+
##### [scroll_to](https://github.com/appium/ruby_lib/blob/5e5b3fbd4d7c84904f9a3158975081fc1786ad0e/lib/appium_lib/android/element/generic.rb#L40) android
|
|
2686
2606
|
|
|
2687
2607
|
> def scroll_to(text, scrollable_index = 0)
|
|
2688
2608
|
|
|
@@ -2700,7 +2620,7 @@ __Returns:__
|
|
|
2700
2620
|
|
|
2701
2621
|
--
|
|
2702
2622
|
|
|
2703
|
-
##### [scroll_to_exact](https://github.com/appium/ruby_lib/blob/
|
|
2623
|
+
##### [scroll_to_exact](https://github.com/appium/ruby_lib/blob/5e5b3fbd4d7c84904f9a3158975081fc1786ad0e/lib/appium_lib/android/element/generic.rb#L54) android
|
|
2704
2624
|
|
|
2705
2625
|
> def scroll_to_exact(text, scrollable_index = 0)
|
|
2706
2626
|
|
|
@@ -2718,7 +2638,7 @@ __Returns:__
|
|
|
2718
2638
|
|
|
2719
2639
|
--
|
|
2720
2640
|
|
|
2721
|
-
##### [EditText](https://github.com/appium/ruby_lib/blob/
|
|
2641
|
+
##### [EditText](https://github.com/appium/ruby_lib/blob/5e5b3fbd4d7c84904f9a3158975081fc1786ad0e/lib/appium_lib/android/element/textfield.rb#L3) android
|
|
2722
2642
|
|
|
2723
2643
|
> EditText = 'android.widget.EditText'.freeze
|
|
2724
2644
|
|
|
@@ -2726,7 +2646,7 @@ __Returns:__
|
|
|
2726
2646
|
|
|
2727
2647
|
--
|
|
2728
2648
|
|
|
2729
|
-
##### [textfield](https://github.com/appium/ruby_lib/blob/
|
|
2649
|
+
##### [textfield](https://github.com/appium/ruby_lib/blob/5e5b3fbd4d7c84904f9a3158975081fc1786ad0e/lib/appium_lib/android/element/textfield.rb#L9) android
|
|
2730
2650
|
|
|
2731
2651
|
> def textfield(value)
|
|
2732
2652
|
|
|
@@ -2743,7 +2663,7 @@ __Returns:__
|
|
|
2743
2663
|
|
|
2744
2664
|
--
|
|
2745
2665
|
|
|
2746
|
-
##### [textfields](https://github.com/appium/ruby_lib/blob/
|
|
2666
|
+
##### [textfields](https://github.com/appium/ruby_lib/blob/5e5b3fbd4d7c84904f9a3158975081fc1786ad0e/lib/appium_lib/android/element/textfield.rb#L18) android
|
|
2747
2667
|
|
|
2748
2668
|
> def textfields(value = false)
|
|
2749
2669
|
|
|
@@ -2760,7 +2680,7 @@ __Returns:__
|
|
|
2760
2680
|
|
|
2761
2681
|
--
|
|
2762
2682
|
|
|
2763
|
-
##### [first_textfield](https://github.com/appium/ruby_lib/blob/
|
|
2683
|
+
##### [first_textfield](https://github.com/appium/ruby_lib/blob/5e5b3fbd4d7c84904f9a3158975081fc1786ad0e/lib/appium_lib/android/element/textfield.rb#L25) android
|
|
2764
2684
|
|
|
2765
2685
|
> def first_textfield
|
|
2766
2686
|
|
|
@@ -2772,7 +2692,7 @@ __Returns:__
|
|
|
2772
2692
|
|
|
2773
2693
|
--
|
|
2774
2694
|
|
|
2775
|
-
##### [last_textfield](https://github.com/appium/ruby_lib/blob/
|
|
2695
|
+
##### [last_textfield](https://github.com/appium/ruby_lib/blob/5e5b3fbd4d7c84904f9a3158975081fc1786ad0e/lib/appium_lib/android/element/textfield.rb#L31) android
|
|
2776
2696
|
|
|
2777
2697
|
> def last_textfield
|
|
2778
2698
|
|
|
@@ -2784,7 +2704,7 @@ __Returns:__
|
|
|
2784
2704
|
|
|
2785
2705
|
--
|
|
2786
2706
|
|
|
2787
|
-
##### [textfield_exact](https://github.com/appium/ruby_lib/blob/
|
|
2707
|
+
##### [textfield_exact](https://github.com/appium/ruby_lib/blob/5e5b3fbd4d7c84904f9a3158975081fc1786ad0e/lib/appium_lib/android/element/textfield.rb#L38) android
|
|
2788
2708
|
|
|
2789
2709
|
> def textfield_exact(value)
|
|
2790
2710
|
|
|
@@ -2800,7 +2720,7 @@ __Returns:__
|
|
|
2800
2720
|
|
|
2801
2721
|
--
|
|
2802
2722
|
|
|
2803
|
-
##### [textfields_exact](https://github.com/appium/ruby_lib/blob/
|
|
2723
|
+
##### [textfields_exact](https://github.com/appium/ruby_lib/blob/5e5b3fbd4d7c84904f9a3158975081fc1786ad0e/lib/appium_lib/android/element/textfield.rb#L45) android
|
|
2804
2724
|
|
|
2805
2725
|
> def textfields_exact(value)
|
|
2806
2726
|
|
|
@@ -2816,7 +2736,7 @@ __Returns:__
|
|
|
2816
2736
|
|
|
2817
2737
|
--
|
|
2818
2738
|
|
|
2819
|
-
##### [value](https://github.com/appium/ruby_lib/blob/
|
|
2739
|
+
##### [value](https://github.com/appium/ruby_lib/blob/5e5b3fbd4d7c84904f9a3158975081fc1786ad0e/lib/appium_lib/common/patch.rb#L12)
|
|
2820
2740
|
|
|
2821
2741
|
> def value
|
|
2822
2742
|
|
|
@@ -2826,7 +2746,7 @@ Fixes NoMethodError: undefined method `value' for Selenium::WebDriver::Element
|
|
|
2826
2746
|
|
|
2827
2747
|
--
|
|
2828
2748
|
|
|
2829
|
-
##### [name](https://github.com/appium/ruby_lib/blob/
|
|
2749
|
+
##### [name](https://github.com/appium/ruby_lib/blob/5e5b3fbd4d7c84904f9a3158975081fc1786ad0e/lib/appium_lib/common/patch.rb#L19)
|
|
2830
2750
|
|
|
2831
2751
|
> def name
|
|
2832
2752
|
|
|
@@ -2836,7 +2756,7 @@ Fixes NoMethodError: undefined method `name' for Selenium::WebDriver::Element
|
|
|
2836
2756
|
|
|
2837
2757
|
--
|
|
2838
2758
|
|
|
2839
|
-
##### [location_rel](https://github.com/appium/ruby_lib/blob/
|
|
2759
|
+
##### [location_rel](https://github.com/appium/ruby_lib/blob/5e5b3fbd4d7c84904f9a3158975081fc1786ad0e/lib/appium_lib/common/patch.rb#L31)
|
|
2840
2760
|
|
|
2841
2761
|
> def location_rel
|
|
2842
2762
|
|
|
@@ -2854,7 +2774,7 @@ __Returns:__
|
|
|
2854
2774
|
|
|
2855
2775
|
--
|
|
2856
2776
|
|
|
2857
|
-
##### [DEFAULT_HEADERS](https://github.com/appium/ruby_lib/blob/
|
|
2777
|
+
##### [DEFAULT_HEADERS](https://github.com/appium/ruby_lib/blob/5e5b3fbd4d7c84904f9a3158975081fc1786ad0e/lib/appium_lib/common/patch.rb#L152)
|
|
2858
2778
|
|
|
2859
2779
|
> DEFAULT_HEADERS = { 'Accept' => CONTENT_TYPE, 'User-Agent' => "appium/ruby_lib/#{::Appium::VERSION}" }.freeze
|
|
2860
2780
|
|
|
@@ -2862,7 +2782,7 @@ __Returns:__
|
|
|
2862
2782
|
|
|
2863
2783
|
--
|
|
2864
2784
|
|
|
2865
|
-
##### [patch_remote_driver_commands](https://github.com/appium/ruby_lib/blob/
|
|
2785
|
+
##### [patch_remote_driver_commands](https://github.com/appium/ruby_lib/blob/5e5b3fbd4d7c84904f9a3158975081fc1786ad0e/lib/appium_lib/common/patch.rb#L155)
|
|
2866
2786
|
|
|
2867
2787
|
> def patch_remote_driver_commands
|
|
2868
2788
|
|