appium_lib 9.3.1 → 9.3.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +9 -0
- data/android_tests/lib/android/specs/driver.rb +1 -0
- data/docs/android_docs.md +238 -222
- data/docs/ios_docs.md +252 -236
- data/ios_tests/appium.txt +1 -0
- data/ios_tests/lib/ios/specs/driver.rb +1 -0
- data/lib/appium_lib/common/version.rb +2 -2
- data/lib/appium_lib/driver.rb +7 -1
- data/readme.md +3 -2
- data/release_notes.md +12 -0
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: e174c6f3c324996f53c87d216b628d11e6a6daf5
|
4
|
+
data.tar.gz: db23d29b11b107642b46b1401b00d59765b826cd
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ce0c92bc50f1b6fea83308bca48c31a7b3d4bb87d6acb09d9df3a2d087840d3aa043cc0b717d1fddcc004bf2ebd78fe2ea8baa07d0ddaa840e8d48f898349976
|
7
|
+
data.tar.gz: 699cccb4e9bf6510c611bcc2bd96292d60cdacb9cc77a582ea372171ab98026c03101e76fc7ce0167c932f63819634015ead3d08a4ede7c55389b93a0bddaefe
|
data/CHANGELOG.md
CHANGED
@@ -3,6 +3,15 @@ Commit based release not is [release_notes.md](./release_notes.md)
|
|
3
3
|
|
4
4
|
Release tags are https://github.com/appium/ruby_lib/releases .
|
5
5
|
|
6
|
+
## v9.3.2
|
7
|
+
### 1. Enhancements
|
8
|
+
- allow SAUCE_ENDPOINT env var to override sauce server url/path [#485](https://github.com/appium/ruby_lib/pull/485)
|
9
|
+
- Read [readme](https://github.com/appium/ruby_lib/blob/89c7c89be058153d119d517eab22ccc318d33649/readme.md#sauce-labs-env-vars)'s `SAUCE_ENDPOINT` section.
|
10
|
+
|
11
|
+
### 2. Bug fixes
|
12
|
+
|
13
|
+
### 3. Deprecations
|
14
|
+
|
6
15
|
## v9.3.1
|
7
16
|
### 1. Enhancements
|
8
17
|
- Clarify disabling Sauce Labs. [#471](https://github.com/appium/ruby_lib/pull/471)
|
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/8451abba066beebd10491c6998ca53aaa35e331d/lib/appium_lib/driver.rb#L75)
|
2
2
|
|
3
3
|
> def self.load_settings(opts = {})
|
4
4
|
|
@@ -27,7 +27,7 @@ __Returns:__
|
|
27
27
|
|
28
28
|
--
|
29
29
|
|
30
|
-
##### [load_appium_txt](https://github.com/appium/ruby_lib/blob/
|
30
|
+
##### [load_appium_txt](https://github.com/appium/ruby_lib/blob/8451abba066beebd10491c6998ca53aaa35e331d/lib/appium_lib/driver.rb#L111)
|
31
31
|
|
32
32
|
> def self.load_settings(opts = {})
|
33
33
|
|
@@ -57,7 +57,7 @@ __Returns:__
|
|
57
57
|
|
58
58
|
--
|
59
59
|
|
60
|
-
##### [expand_required_files](https://github.com/appium/ruby_lib/blob/
|
60
|
+
##### [expand_required_files](https://github.com/appium/ruby_lib/blob/8451abba066beebd10491c6998ca53aaa35e331d/lib/appium_lib/driver.rb#L117)
|
61
61
|
|
62
62
|
> def self.expand_required_files(base_dir, file_paths)
|
63
63
|
|
@@ -75,7 +75,7 @@ __Returns:__
|
|
75
75
|
|
76
76
|
--
|
77
77
|
|
78
|
-
##### [symbolize_keys](https://github.com/appium/ruby_lib/blob/
|
78
|
+
##### [symbolize_keys](https://github.com/appium/ruby_lib/blob/8451abba066beebd10491c6998ca53aaa35e331d/lib/appium_lib/driver.rb#L149)
|
79
79
|
|
80
80
|
> def self.symbolize_keys(hash)
|
81
81
|
|
@@ -86,7 +86,7 @@ https://github.com/rails/docrails/blob/a3b1105ada3da64acfa3843b164b14b734456a50/
|
|
86
86
|
|
87
87
|
--
|
88
88
|
|
89
|
-
##### [promote_singleton_appium_methods](https://github.com/appium/ruby_lib/blob/
|
89
|
+
##### [promote_singleton_appium_methods](https://github.com/appium/ruby_lib/blob/8451abba066beebd10491c6998ca53aaa35e331d/lib/appium_lib/driver.rb#L170)
|
90
90
|
|
91
91
|
> def self.promote_singleton_appium_methods(modules)
|
92
92
|
|
@@ -104,7 +104,7 @@ otherwise, the array of modules will be used as the promotion target.
|
|
104
104
|
|
105
105
|
--
|
106
106
|
|
107
|
-
##### [promote_appium_methods](https://github.com/appium/ruby_lib/blob/
|
107
|
+
##### [promote_appium_methods](https://github.com/appium/ruby_lib/blob/8451abba066beebd10491c6998ca53aaa35e331d/lib/appium_lib/driver.rb#L223)
|
108
108
|
|
109
109
|
> def self.promote_appium_methods(class_array)
|
110
110
|
|
@@ -134,7 +134,7 @@ __Parameters:__
|
|
134
134
|
|
135
135
|
--
|
136
136
|
|
137
|
-
##### [init_caps_for_appium](https://github.com/appium/ruby_lib/blob/
|
137
|
+
##### [init_caps_for_appium](https://github.com/appium/ruby_lib/blob/8451abba066beebd10491c6998ca53aaa35e331d/lib/appium_lib/driver.rb#L258)
|
138
138
|
|
139
139
|
> def self.init_caps_for_appium(opts_caps = {})
|
140
140
|
|
@@ -153,7 +153,7 @@ __Returns:__
|
|
153
153
|
|
154
154
|
--
|
155
155
|
|
156
|
-
##### [global_webdriver_http_sleep](https://github.com/appium/ruby_lib/blob/
|
156
|
+
##### [global_webdriver_http_sleep](https://github.com/appium/ruby_lib/blob/8451abba066beebd10491c6998ca53aaa35e331d/lib/appium_lib/driver.rb#L276)
|
157
157
|
|
158
158
|
> def global_webdriver_http_sleep
|
159
159
|
|
@@ -161,7 +161,7 @@ The amount to sleep in seconds before every webdriver http call.
|
|
161
161
|
|
162
162
|
--
|
163
163
|
|
164
|
-
##### [global_webdriver_http_sleep=](https://github.com/appium/ruby_lib/blob/
|
164
|
+
##### [global_webdriver_http_sleep=](https://github.com/appium/ruby_lib/blob/8451abba066beebd10491c6998ca53aaa35e331d/lib/appium_lib/driver.rb#L276)
|
165
165
|
|
166
166
|
> def global_webdriver_http_sleep=(value)
|
167
167
|
|
@@ -169,7 +169,7 @@ The amount to sleep in seconds before every webdriver http call.
|
|
169
169
|
|
170
170
|
--
|
171
171
|
|
172
|
-
##### [caps](https://github.com/appium/ruby_lib/blob/
|
172
|
+
##### [caps](https://github.com/appium/ruby_lib/blob/8451abba066beebd10491c6998ca53aaa35e331d/lib/appium_lib/driver.rb#L278)
|
173
173
|
|
174
174
|
> def caps
|
175
175
|
|
@@ -177,7 +177,7 @@ Selenium webdriver capabilities
|
|
177
177
|
|
178
178
|
--
|
179
179
|
|
180
|
-
##### [caps=](https://github.com/appium/ruby_lib/blob/
|
180
|
+
##### [caps=](https://github.com/appium/ruby_lib/blob/8451abba066beebd10491c6998ca53aaa35e331d/lib/appium_lib/driver.rb#L278)
|
181
181
|
|
182
182
|
> def caps=(value)
|
183
183
|
|
@@ -185,7 +185,7 @@ Selenium webdriver capabilities
|
|
185
185
|
|
186
186
|
--
|
187
187
|
|
188
|
-
##### [custom_url](https://github.com/appium/ruby_lib/blob/
|
188
|
+
##### [custom_url](https://github.com/appium/ruby_lib/blob/8451abba066beebd10491c6998ca53aaa35e331d/lib/appium_lib/driver.rb#L280)
|
189
189
|
|
190
190
|
> def custom_url
|
191
191
|
|
@@ -193,7 +193,7 @@ Custom URL for the selenium server
|
|
193
193
|
|
194
194
|
--
|
195
195
|
|
196
|
-
##### [custom_url=](https://github.com/appium/ruby_lib/blob/
|
196
|
+
##### [custom_url=](https://github.com/appium/ruby_lib/blob/8451abba066beebd10491c6998ca53aaa35e331d/lib/appium_lib/driver.rb#L280)
|
197
197
|
|
198
198
|
> def custom_url=(value)
|
199
199
|
|
@@ -201,7 +201,7 @@ Custom URL for the selenium server
|
|
201
201
|
|
202
202
|
--
|
203
203
|
|
204
|
-
##### [export_session](https://github.com/appium/ruby_lib/blob/
|
204
|
+
##### [export_session](https://github.com/appium/ruby_lib/blob/8451abba066beebd10491c6998ca53aaa35e331d/lib/appium_lib/driver.rb#L282)
|
205
205
|
|
206
206
|
> def export_session
|
207
207
|
|
@@ -209,7 +209,7 @@ Export session id to textfile in /tmp for 3rd party tools
|
|
209
209
|
|
210
210
|
--
|
211
211
|
|
212
|
-
##### [export_session=](https://github.com/appium/ruby_lib/blob/
|
212
|
+
##### [export_session=](https://github.com/appium/ruby_lib/blob/8451abba066beebd10491c6998ca53aaa35e331d/lib/appium_lib/driver.rb#L282)
|
213
213
|
|
214
214
|
> def export_session=(value)
|
215
215
|
|
@@ -217,7 +217,7 @@ Export session id to textfile in /tmp for 3rd party tools
|
|
217
217
|
|
218
218
|
--
|
219
219
|
|
220
|
-
##### [default_wait](https://github.com/appium/ruby_lib/blob/
|
220
|
+
##### [default_wait](https://github.com/appium/ruby_lib/blob/8451abba066beebd10491c6998ca53aaa35e331d/lib/appium_lib/driver.rb#L287)
|
221
221
|
|
222
222
|
> def default_wait
|
223
223
|
|
@@ -231,7 +231,7 @@ __Returns:__
|
|
231
231
|
|
232
232
|
--
|
233
233
|
|
234
|
-
##### [sauce_username](https://github.com/appium/ruby_lib/blob/
|
234
|
+
##### [sauce_username](https://github.com/appium/ruby_lib/blob/8451abba066beebd10491c6998ca53aaa35e331d/lib/appium_lib/driver.rb#L289)
|
235
235
|
|
236
236
|
> def sauce_username
|
237
237
|
|
@@ -239,7 +239,7 @@ Username for use on Sauce Labs. Set `false` to disable Sauce, even when SAUCE_US
|
|
239
239
|
|
240
240
|
--
|
241
241
|
|
242
|
-
##### [sauce_username=](https://github.com/appium/ruby_lib/blob/
|
242
|
+
##### [sauce_username=](https://github.com/appium/ruby_lib/blob/8451abba066beebd10491c6998ca53aaa35e331d/lib/appium_lib/driver.rb#L289)
|
243
243
|
|
244
244
|
> def sauce_username=(value)
|
245
245
|
|
@@ -247,7 +247,7 @@ Username for use on Sauce Labs. Set `false` to disable Sauce, even when SAUCE_US
|
|
247
247
|
|
248
248
|
--
|
249
249
|
|
250
|
-
##### [sauce_access_key](https://github.com/appium/ruby_lib/blob/
|
250
|
+
##### [sauce_access_key](https://github.com/appium/ruby_lib/blob/8451abba066beebd10491c6998ca53aaa35e331d/lib/appium_lib/driver.rb#L291)
|
251
251
|
|
252
252
|
> def sauce_access_key
|
253
253
|
|
@@ -255,7 +255,7 @@ Access Key for use on Sauce Labs. Set `false` to disable Sauce, even when SAUCE_
|
|
255
255
|
|
256
256
|
--
|
257
257
|
|
258
|
-
##### [sauce_access_key=](https://github.com/appium/ruby_lib/blob/
|
258
|
+
##### [sauce_access_key=](https://github.com/appium/ruby_lib/blob/8451abba066beebd10491c6998ca53aaa35e331d/lib/appium_lib/driver.rb#L291)
|
259
259
|
|
260
260
|
> def sauce_access_key=(value)
|
261
261
|
|
@@ -263,7 +263,23 @@ Access Key for use on Sauce Labs. Set `false` to disable Sauce, even when SAUCE_
|
|
263
263
|
|
264
264
|
--
|
265
265
|
|
266
|
-
##### [
|
266
|
+
##### [sauce_endpoint](https://github.com/appium/ruby_lib/blob/8451abba066beebd10491c6998ca53aaa35e331d/lib/appium_lib/driver.rb#L293)
|
267
|
+
|
268
|
+
> def sauce_endpoint
|
269
|
+
|
270
|
+
Override the Sauce Appium endpoint to allow e.g. TestObject tests
|
271
|
+
|
272
|
+
--
|
273
|
+
|
274
|
+
##### [sauce_endpoint=](https://github.com/appium/ruby_lib/blob/8451abba066beebd10491c6998ca53aaa35e331d/lib/appium_lib/driver.rb#L293)
|
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/8451abba066beebd10491c6998ca53aaa35e331d/lib/appium_lib/driver.rb#L295)
|
267
283
|
|
268
284
|
> def appium_port
|
269
285
|
|
@@ -271,7 +287,7 @@ Appium's server port
|
|
271
287
|
|
272
288
|
--
|
273
289
|
|
274
|
-
##### [appium_port=](https://github.com/appium/ruby_lib/blob/
|
290
|
+
##### [appium_port=](https://github.com/appium/ruby_lib/blob/8451abba066beebd10491c6998ca53aaa35e331d/lib/appium_lib/driver.rb#L295)
|
275
291
|
|
276
292
|
> def appium_port=(value)
|
277
293
|
|
@@ -279,7 +295,7 @@ Appium's server port
|
|
279
295
|
|
280
296
|
--
|
281
297
|
|
282
|
-
##### [appium_device](https://github.com/appium/ruby_lib/blob/
|
298
|
+
##### [appium_device](https://github.com/appium/ruby_lib/blob/8451abba066beebd10491c6998ca53aaa35e331d/lib/appium_lib/driver.rb#L297)
|
283
299
|
|
284
300
|
> def appium_device
|
285
301
|
|
@@ -287,7 +303,7 @@ Device type to request from the appium server
|
|
287
303
|
|
288
304
|
--
|
289
305
|
|
290
|
-
##### [appium_device=](https://github.com/appium/ruby_lib/blob/
|
306
|
+
##### [appium_device=](https://github.com/appium/ruby_lib/blob/8451abba066beebd10491c6998ca53aaa35e331d/lib/appium_lib/driver.rb#L297)
|
291
307
|
|
292
308
|
> def appium_device=(value)
|
293
309
|
|
@@ -295,7 +311,7 @@ Device type to request from the appium server
|
|
295
311
|
|
296
312
|
--
|
297
313
|
|
298
|
-
##### [automation_name](https://github.com/appium/ruby_lib/blob/
|
314
|
+
##### [automation_name](https://github.com/appium/ruby_lib/blob/8451abba066beebd10491c6998ca53aaa35e331d/lib/appium_lib/driver.rb#L300)
|
299
315
|
|
300
316
|
> def automation_name
|
301
317
|
|
@@ -304,7 +320,7 @@ If automation_name is nil, it is not set both client side and server side.
|
|
304
320
|
|
305
321
|
--
|
306
322
|
|
307
|
-
##### [appium_server_version](https://github.com/appium/ruby_lib/blob/
|
323
|
+
##### [appium_server_version](https://github.com/appium/ruby_lib/blob/8451abba066beebd10491c6998ca53aaa35e331d/lib/appium_lib/driver.rb#L302)
|
308
324
|
|
309
325
|
> def appium_server_version
|
310
326
|
|
@@ -325,7 +341,7 @@ __Returns:__
|
|
325
341
|
|
326
342
|
--
|
327
343
|
|
328
|
-
##### [appium_debug](https://github.com/appium/ruby_lib/blob/
|
344
|
+
##### [appium_debug](https://github.com/appium/ruby_lib/blob/8451abba066beebd10491c6998ca53aaa35e331d/lib/appium_lib/driver.rb#L304)
|
329
345
|
|
330
346
|
> def appium_debug
|
331
347
|
|
@@ -333,7 +349,7 @@ Boolean debug mode for the Appium Ruby bindings
|
|
333
349
|
|
334
350
|
--
|
335
351
|
|
336
|
-
##### [appium_debug=](https://github.com/appium/ruby_lib/blob/
|
352
|
+
##### [appium_debug=](https://github.com/appium/ruby_lib/blob/8451abba066beebd10491c6998ca53aaa35e331d/lib/appium_lib/driver.rb#L304)
|
337
353
|
|
338
354
|
> def appium_debug=(value)
|
339
355
|
|
@@ -341,7 +357,7 @@ Boolean debug mode for the Appium Ruby bindings
|
|
341
357
|
|
342
358
|
--
|
343
359
|
|
344
|
-
##### [listener](https://github.com/appium/ruby_lib/blob/
|
360
|
+
##### [listener](https://github.com/appium/ruby_lib/blob/8451abba066beebd10491c6998ca53aaa35e331d/lib/appium_lib/driver.rb#L306)
|
345
361
|
|
346
362
|
> def listener
|
347
363
|
|
@@ -349,7 +365,7 @@ instance of AbstractEventListener for logging support
|
|
349
365
|
|
350
366
|
--
|
351
367
|
|
352
|
-
##### [listener=](https://github.com/appium/ruby_lib/blob/
|
368
|
+
##### [listener=](https://github.com/appium/ruby_lib/blob/8451abba066beebd10491c6998ca53aaa35e331d/lib/appium_lib/driver.rb#L306)
|
353
369
|
|
354
370
|
> def listener=(value)
|
355
371
|
|
@@ -357,7 +373,7 @@ instance of AbstractEventListener for logging support
|
|
357
373
|
|
358
374
|
--
|
359
375
|
|
360
|
-
##### [driver](https://github.com/appium/ruby_lib/blob/
|
376
|
+
##### [driver](https://github.com/appium/ruby_lib/blob/8451abba066beebd10491c6998ca53aaa35e331d/lib/appium_lib/driver.rb#L309)
|
361
377
|
|
362
378
|
> def driver
|
363
379
|
|
@@ -369,7 +385,7 @@ __Returns:__
|
|
369
385
|
|
370
386
|
--
|
371
387
|
|
372
|
-
##### [http_client](https://github.com/appium/ruby_lib/blob/
|
388
|
+
##### [http_client](https://github.com/appium/ruby_lib/blob/8451abba066beebd10491c6998ca53aaa35e331d/lib/appium_lib/driver.rb#L312)
|
373
389
|
|
374
390
|
> def http_client
|
375
391
|
|
@@ -381,7 +397,7 @@ __Returns:__
|
|
381
397
|
|
382
398
|
--
|
383
399
|
|
384
|
-
##### [appium_wait_timeout](https://github.com/appium/ruby_lib/blob/
|
400
|
+
##### [appium_wait_timeout](https://github.com/appium/ruby_lib/blob/8451abba066beebd10491c6998ca53aaa35e331d/lib/appium_lib/driver.rb#L317)
|
385
401
|
|
386
402
|
> def appium_wait_timeout
|
387
403
|
|
@@ -395,7 +411,7 @@ __Returns:__
|
|
395
411
|
|
396
412
|
--
|
397
413
|
|
398
|
-
##### [appium_wait_interval](https://github.com/appium/ruby_lib/blob/
|
414
|
+
##### [appium_wait_interval](https://github.com/appium/ruby_lib/blob/8451abba066beebd10491c6998ca53aaa35e331d/lib/appium_lib/driver.rb#L322)
|
399
415
|
|
400
416
|
> def appium_wait_interval
|
401
417
|
|
@@ -409,7 +425,7 @@ __Returns:__
|
|
409
425
|
|
410
426
|
--
|
411
427
|
|
412
|
-
##### [initialize](https://github.com/appium/ruby_lib/blob/
|
428
|
+
##### [initialize](https://github.com/appium/ruby_lib/blob/8451abba066beebd10491c6998ca53aaa35e331d/lib/appium_lib/driver.rb#L362)
|
413
429
|
|
414
430
|
> def initialize(opts = {})
|
415
431
|
|
@@ -425,7 +441,7 @@ __Returns:__
|
|
425
441
|
|
426
442
|
--
|
427
443
|
|
428
|
-
##### [driver_attributes](https://github.com/appium/ruby_lib/blob/
|
444
|
+
##### [driver_attributes](https://github.com/appium/ruby_lib/blob/8451abba066beebd10491c6998ca53aaa35e331d/lib/appium_lib/driver.rb#L440)
|
429
445
|
|
430
446
|
> def driver_attributes
|
431
447
|
|
@@ -433,7 +449,7 @@ Returns a hash of the driver attributes
|
|
433
449
|
|
434
450
|
--
|
435
451
|
|
436
|
-
##### [device_is_android?](https://github.com/appium/ruby_lib/blob/
|
452
|
+
##### [device_is_android?](https://github.com/appium/ruby_lib/blob/8451abba066beebd10491c6998ca53aaa35e331d/lib/appium_lib/driver.rb#L465)
|
437
453
|
|
438
454
|
> def device_is_android?
|
439
455
|
|
@@ -445,7 +461,7 @@ __Returns:__
|
|
445
461
|
|
446
462
|
--
|
447
463
|
|
448
|
-
##### [automation_name_is_xcuitest?](https://github.com/appium/ruby_lib/blob/
|
464
|
+
##### [automation_name_is_xcuitest?](https://github.com/appium/ruby_lib/blob/8451abba066beebd10491c6998ca53aaa35e331d/lib/appium_lib/driver.rb#L471)
|
449
465
|
|
450
466
|
> def automation_name_is_xcuitest?
|
451
467
|
|
@@ -457,7 +473,7 @@ __Returns:__
|
|
457
473
|
|
458
474
|
--
|
459
475
|
|
460
|
-
##### [check_server_version_xcuitest](https://github.com/appium/ruby_lib/blob/
|
476
|
+
##### [check_server_version_xcuitest](https://github.com/appium/ruby_lib/blob/8451abba066beebd10491c6998ca53aaa35e331d/lib/appium_lib/driver.rb#L478)
|
461
477
|
|
462
478
|
> def check_server_version_xcuitest
|
463
479
|
|
@@ -470,7 +486,7 @@ __Returns:__
|
|
470
486
|
|
471
487
|
--
|
472
488
|
|
473
|
-
##### [appium_client_version](https://github.com/appium/ruby_lib/blob/
|
489
|
+
##### [appium_client_version](https://github.com/appium/ruby_lib/blob/8451abba066beebd10491c6998ca53aaa35e331d/lib/appium_lib/driver.rb#L510)
|
474
490
|
|
475
491
|
> def appium_client_version
|
476
492
|
|
@@ -488,7 +504,7 @@ __Returns:__
|
|
488
504
|
|
489
505
|
--
|
490
506
|
|
491
|
-
##### [absolute_app_path](https://github.com/appium/ruby_lib/blob/
|
507
|
+
##### [absolute_app_path](https://github.com/appium/ruby_lib/blob/8451abba066beebd10491c6998ca53aaa35e331d/lib/appium_lib/driver.rb#L522)
|
492
508
|
|
493
509
|
> def self.absolute_app_path(opts)
|
494
510
|
|
@@ -505,7 +521,7 @@ __Returns:__
|
|
505
521
|
|
506
522
|
--
|
507
523
|
|
508
|
-
##### [server_url](https://github.com/appium/ruby_lib/blob/
|
524
|
+
##### [server_url](https://github.com/appium/ruby_lib/blob/8451abba066beebd10491c6998ca53aaa35e331d/lib/appium_lib/driver.rb#L555)
|
509
525
|
|
510
526
|
> def server_url
|
511
527
|
|
@@ -517,7 +533,7 @@ __Returns:__
|
|
517
533
|
|
518
534
|
--
|
519
535
|
|
520
|
-
##### [restart](https://github.com/appium/ruby_lib/blob/
|
536
|
+
##### [restart](https://github.com/appium/ruby_lib/blob/8451abba066beebd10491c6998ca53aaa35e331d/lib/appium_lib/driver.rb#L566)
|
521
537
|
|
522
538
|
> def restart
|
523
539
|
|
@@ -529,7 +545,7 @@ __Returns:__
|
|
529
545
|
|
530
546
|
--
|
531
547
|
|
532
|
-
##### [screenshot](https://github.com/appium/ruby_lib/blob/
|
548
|
+
##### [screenshot](https://github.com/appium/ruby_lib/blob/8451abba066beebd10491c6998ca53aaa35e331d/lib/appium_lib/driver.rb#L577)
|
533
549
|
|
534
550
|
> def screenshot(png_save_path)
|
535
551
|
|
@@ -547,7 +563,7 @@ __Returns:__
|
|
547
563
|
|
548
564
|
--
|
549
565
|
|
550
|
-
##### [driver_quit](https://github.com/appium/ruby_lib/blob/
|
566
|
+
##### [driver_quit](https://github.com/appium/ruby_lib/blob/8451abba066beebd10491c6998ca53aaa35e331d/lib/appium_lib/driver.rb#L584)
|
551
567
|
|
552
568
|
> def driver_quit
|
553
569
|
|
@@ -559,7 +575,7 @@ __Returns:__
|
|
559
575
|
|
560
576
|
--
|
561
577
|
|
562
|
-
##### [start_driver](https://github.com/appium/ruby_lib/blob/
|
578
|
+
##### [start_driver](https://github.com/appium/ruby_lib/blob/8451abba066beebd10491c6998ca53aaa35e331d/lib/appium_lib/driver.rb#L594)
|
563
579
|
|
564
580
|
> def start_driver
|
565
581
|
|
@@ -571,7 +587,7 @@ __Returns:__
|
|
571
587
|
|
572
588
|
--
|
573
589
|
|
574
|
-
##### [no_wait](https://github.com/appium/ruby_lib/blob/
|
590
|
+
##### [no_wait](https://github.com/appium/ruby_lib/blob/8451abba066beebd10491c6998ca53aaa35e331d/lib/appium_lib/driver.rb#L632)
|
575
591
|
|
576
592
|
> def no_wait
|
577
593
|
|
@@ -579,7 +595,7 @@ Set implicit wait to zero.
|
|
579
595
|
|
580
596
|
--
|
581
597
|
|
582
|
-
##### [set_wait](https://github.com/appium/ruby_lib/blob/
|
598
|
+
##### [set_wait](https://github.com/appium/ruby_lib/blob/8451abba066beebd10491c6998ca53aaa35e331d/lib/appium_lib/driver.rb#L646)
|
583
599
|
|
584
600
|
> def set_wait(timeout = nil)
|
585
601
|
|
@@ -601,7 +617,7 @@ __Returns:__
|
|
601
617
|
|
602
618
|
--
|
603
619
|
|
604
|
-
##### [exists](https://github.com/appium/ruby_lib/blob/
|
620
|
+
##### [exists](https://github.com/appium/ruby_lib/blob/8451abba066beebd10491c6998ca53aaa35e331d/lib/appium_lib/driver.rb#L663)
|
605
621
|
|
606
622
|
> def exists(pre_check = 0, post_check = @default_wait)
|
607
623
|
|
@@ -625,7 +641,7 @@ __Returns:__
|
|
625
641
|
|
626
642
|
--
|
627
643
|
|
628
|
-
##### [execute_script](https://github.com/appium/ruby_lib/blob/
|
644
|
+
##### [execute_script](https://github.com/appium/ruby_lib/blob/8451abba066beebd10491c6998ca53aaa35e331d/lib/appium_lib/driver.rb#L687)
|
629
645
|
|
630
646
|
> def execute_script(script, *args)
|
631
647
|
|
@@ -643,7 +659,7 @@ __Returns:__
|
|
643
659
|
|
644
660
|
--
|
645
661
|
|
646
|
-
##### [find_elements](https://github.com/appium/ruby_lib/blob/
|
662
|
+
##### [find_elements](https://github.com/appium/ruby_lib/blob/8451abba066beebd10491c6998ca53aaa35e331d/lib/appium_lib/driver.rb#L695)
|
647
663
|
|
648
664
|
> def find_elements(*args)
|
649
665
|
|
@@ -659,7 +675,7 @@ __Returns:__
|
|
659
675
|
|
660
676
|
--
|
661
677
|
|
662
|
-
##### [find_element](https://github.com/appium/ruby_lib/blob/
|
678
|
+
##### [find_element](https://github.com/appium/ruby_lib/blob/8451abba066beebd10491c6998ca53aaa35e331d/lib/appium_lib/driver.rb#L703)
|
663
679
|
|
664
680
|
> def find_element(*args)
|
665
681
|
|
@@ -675,7 +691,7 @@ __Returns:__
|
|
675
691
|
|
676
692
|
--
|
677
693
|
|
678
|
-
##### [set_location](https://github.com/appium/ruby_lib/blob/
|
694
|
+
##### [set_location](https://github.com/appium/ruby_lib/blob/8451abba066beebd10491c6998ca53aaa35e331d/lib/appium_lib/driver.rb#L716)
|
679
695
|
|
680
696
|
> def set_location(opts = {})
|
681
697
|
|
@@ -691,7 +707,7 @@ __Returns:__
|
|
691
707
|
|
692
708
|
--
|
693
709
|
|
694
|
-
##### [x](https://github.com/appium/ruby_lib/blob/
|
710
|
+
##### [x](https://github.com/appium/ruby_lib/blob/8451abba066beebd10491c6998ca53aaa35e331d/lib/appium_lib/driver.rb#L726)
|
695
711
|
|
696
712
|
> def x
|
697
713
|
|
@@ -704,7 +720,7 @@ __Returns:__
|
|
704
720
|
|
705
721
|
--
|
706
722
|
|
707
|
-
##### [set_automation_name_if_nil](https://github.com/appium/ruby_lib/blob/
|
723
|
+
##### [set_automation_name_if_nil](https://github.com/appium/ruby_lib/blob/8451abba066beebd10491c6998ca53aaa35e331d/lib/appium_lib/driver.rb#L735)
|
708
724
|
|
709
725
|
> def set_automation_name_if_nil
|
710
726
|
|
@@ -713,7 +729,7 @@ Since @automation_name is set only client side before start_driver is called.
|
|
713
729
|
|
714
730
|
--
|
715
731
|
|
716
|
-
##### [logger=](https://github.com/appium/ruby_lib/blob/
|
732
|
+
##### [logger=](https://github.com/appium/ruby_lib/blob/8451abba066beebd10491c6998ca53aaa35e331d/lib/appium_lib/logger.rb#L13)
|
717
733
|
|
718
734
|
> def logger=(value)
|
719
735
|
|
@@ -725,7 +741,7 @@ __Parameters:__
|
|
725
741
|
|
726
742
|
--
|
727
743
|
|
728
|
-
##### [logger](https://github.com/appium/ruby_lib/blob/
|
744
|
+
##### [logger](https://github.com/appium/ruby_lib/blob/8451abba066beebd10491c6998ca53aaa35e331d/lib/appium_lib/logger.rb#L17)
|
729
745
|
|
730
746
|
> def logger
|
731
747
|
|
@@ -733,7 +749,7 @@ __Parameters:__
|
|
733
749
|
|
734
750
|
--
|
735
751
|
|
736
|
-
##### [app_strings](https://github.com/appium/ruby_lib/blob/
|
752
|
+
##### [app_strings](https://github.com/appium/ruby_lib/blob/8451abba066beebd10491c6998ca53aaa35e331d/lib/appium_lib/device/device.rb#L7)
|
737
753
|
|
738
754
|
> def app_strings
|
739
755
|
|
@@ -744,7 +760,7 @@ app_strings #=> "TransitionsTitle"=>"Transitions", "WebTitle"=>"Web"
|
|
744
760
|
|
745
761
|
--
|
746
762
|
|
747
|
-
##### [background_app](https://github.com/appium/ruby_lib/blob/
|
763
|
+
##### [background_app](https://github.com/appium/ruby_lib/blob/8451abba066beebd10491c6998ca53aaa35e331d/lib/appium_lib/device/device.rb#L13)
|
748
764
|
|
749
765
|
> def background_app
|
750
766
|
|
@@ -753,7 +769,7 @@ This is a blocking application
|
|
753
769
|
|
754
770
|
--
|
755
771
|
|
756
|
-
##### [current_activity](https://github.com/appium/ruby_lib/blob/
|
772
|
+
##### [current_activity](https://github.com/appium/ruby_lib/blob/8451abba066beebd10491c6998ca53aaa35e331d/lib/appium_lib/device/device.rb#L18)
|
757
773
|
|
758
774
|
> def current_activity
|
759
775
|
|
@@ -761,7 +777,7 @@ This is a blocking application
|
|
761
777
|
|
762
778
|
--
|
763
779
|
|
764
|
-
##### [launch_app](https://github.com/appium/ruby_lib/blob/
|
780
|
+
##### [launch_app](https://github.com/appium/ruby_lib/blob/8451abba066beebd10491c6998ca53aaa35e331d/lib/appium_lib/device/device.rb#L20)
|
765
781
|
|
766
782
|
> def launch_app
|
767
783
|
|
@@ -769,7 +785,7 @@ Start the simulator and application configured with desired capabilities
|
|
769
785
|
|
770
786
|
--
|
771
787
|
|
772
|
-
##### [reset](https://github.com/appium/ruby_lib/blob/
|
788
|
+
##### [reset](https://github.com/appium/ruby_lib/blob/8451abba066beebd10491c6998ca53aaa35e331d/lib/appium_lib/device/device.rb#L23)
|
773
789
|
|
774
790
|
> def reset
|
775
791
|
|
@@ -777,7 +793,7 @@ Reset the device, relaunching the application.
|
|
777
793
|
|
778
794
|
--
|
779
795
|
|
780
|
-
##### [shake](https://github.com/appium/ruby_lib/blob/
|
796
|
+
##### [shake](https://github.com/appium/ruby_lib/blob/8451abba066beebd10491c6998ca53aaa35e331d/lib/appium_lib/device/device.rb#L26)
|
781
797
|
|
782
798
|
> def shake
|
783
799
|
|
@@ -785,7 +801,7 @@ Cause the device to shake
|
|
785
801
|
|
786
802
|
--
|
787
803
|
|
788
|
-
##### [toggle_flight_mode](https://github.com/appium/ruby_lib/blob/
|
804
|
+
##### [toggle_flight_mode](https://github.com/appium/ruby_lib/blob/8451abba066beebd10491c6998ca53aaa35e331d/lib/appium_lib/device/device.rb#L29)
|
789
805
|
|
790
806
|
> def toggle_flight_mode
|
791
807
|
|
@@ -793,7 +809,7 @@ Toggle flight mode on or off
|
|
793
809
|
|
794
810
|
--
|
795
811
|
|
796
|
-
##### [device_locked?](https://github.com/appium/ruby_lib/blob/
|
812
|
+
##### [device_locked?](https://github.com/appium/ruby_lib/blob/8451abba066beebd10491c6998ca53aaa35e331d/lib/appium_lib/device/device.rb#L32)
|
797
813
|
|
798
814
|
> def device_locked?
|
799
815
|
|
@@ -801,7 +817,7 @@ Toggle flight mode on or off
|
|
801
817
|
|
802
818
|
--
|
803
819
|
|
804
|
-
##### [hide_keyboard](https://github.com/appium/ruby_lib/blob/
|
820
|
+
##### [hide_keyboard](https://github.com/appium/ruby_lib/blob/8451abba066beebd10491c6998ca53aaa35e331d/lib/appium_lib/device/device.rb#L34)
|
805
821
|
|
806
822
|
> def hide_keyboard
|
807
823
|
|
@@ -814,7 +830,7 @@ Defaults to 'Done'.
|
|
814
830
|
|
815
831
|
--
|
816
832
|
|
817
|
-
##### [press_keycode](https://github.com/appium/ruby_lib/blob/
|
833
|
+
##### [press_keycode](https://github.com/appium/ruby_lib/blob/8451abba066beebd10491c6998ca53aaa35e331d/lib/appium_lib/device/device.rb#L43)
|
818
834
|
|
819
835
|
> def press_keycode
|
820
836
|
|
@@ -829,7 +845,7 @@ __Parameters:__
|
|
829
845
|
|
830
846
|
--
|
831
847
|
|
832
|
-
##### [long_press_keycode](https://github.com/appium/ruby_lib/blob/
|
848
|
+
##### [long_press_keycode](https://github.com/appium/ruby_lib/blob/8451abba066beebd10491c6998ca53aaa35e331d/lib/appium_lib/device/device.rb#L49)
|
833
849
|
|
834
850
|
> def long_press_keycode
|
835
851
|
|
@@ -844,7 +860,7 @@ __Parameters:__
|
|
844
860
|
|
845
861
|
--
|
846
862
|
|
847
|
-
##### [push_file](https://github.com/appium/ruby_lib/blob/
|
863
|
+
##### [push_file](https://github.com/appium/ruby_lib/blob/8451abba066beebd10491c6998ca53aaa35e331d/lib/appium_lib/device/device.rb#L55)
|
848
864
|
|
849
865
|
> def push_file
|
850
866
|
|
@@ -858,7 +874,7 @@ __Parameters:__
|
|
858
874
|
|
859
875
|
--
|
860
876
|
|
861
|
-
##### [pull_file](https://github.com/appium/ruby_lib/blob/
|
877
|
+
##### [pull_file](https://github.com/appium/ruby_lib/blob/8451abba066beebd10491c6998ca53aaa35e331d/lib/appium_lib/device/device.rb#L60)
|
862
878
|
|
863
879
|
> def pull_file
|
864
880
|
|
@@ -875,7 +891,7 @@ __Parameters:__
|
|
875
891
|
|
876
892
|
--
|
877
893
|
|
878
|
-
##### [pull_folder](https://github.com/appium/ruby_lib/blob/
|
894
|
+
##### [pull_folder](https://github.com/appium/ruby_lib/blob/8451abba066beebd10491c6998ca53aaa35e331d/lib/appium_lib/device/device.rb#L70)
|
879
895
|
|
880
896
|
> def pull_folder
|
881
897
|
|
@@ -890,7 +906,7 @@ __Parameters:__
|
|
890
906
|
|
891
907
|
--
|
892
908
|
|
893
|
-
##### [touch_id](https://github.com/appium/ruby_lib/blob/
|
909
|
+
##### [touch_id](https://github.com/appium/ruby_lib/blob/8451abba066beebd10491c6998ca53aaa35e331d/lib/appium_lib/device/device.rb#L78)
|
894
910
|
|
895
911
|
> def touch_id
|
896
912
|
|
@@ -907,7 +923,7 @@ Defaults to true.
|
|
907
923
|
|
908
924
|
--
|
909
925
|
|
910
|
-
##### [end_coverage](https://github.com/appium/ruby_lib/blob/
|
926
|
+
##### [end_coverage](https://github.com/appium/ruby_lib/blob/8451abba066beebd10491c6998ca53aaa35e331d/lib/appium_lib/device/device.rb#L87)
|
911
927
|
|
912
928
|
> def end_coverage
|
913
929
|
|
@@ -921,7 +937,7 @@ __Parameters:__
|
|
921
937
|
|
922
938
|
--
|
923
939
|
|
924
|
-
##### [get_settings](https://github.com/appium/ruby_lib/blob/
|
940
|
+
##### [get_settings](https://github.com/appium/ruby_lib/blob/8451abba066beebd10491c6998ca53aaa35e331d/lib/appium_lib/device/device.rb#L92)
|
925
941
|
|
926
942
|
> def get_settings
|
927
943
|
|
@@ -929,7 +945,7 @@ Get appium Settings for current test session
|
|
929
945
|
|
930
946
|
--
|
931
947
|
|
932
|
-
##### [update_settings](https://github.com/appium/ruby_lib/blob/
|
948
|
+
##### [update_settings](https://github.com/appium/ruby_lib/blob/8451abba066beebd10491c6998ca53aaa35e331d/lib/appium_lib/device/device.rb#L95)
|
933
949
|
|
934
950
|
> def update_settings
|
935
951
|
|
@@ -941,7 +957,7 @@ __Parameters:__
|
|
941
957
|
|
942
958
|
--
|
943
959
|
|
944
|
-
##### [start_activity](https://github.com/appium/ruby_lib/blob/
|
960
|
+
##### [start_activity](https://github.com/appium/ruby_lib/blob/8451abba066beebd10491c6998ca53aaa35e331d/lib/appium_lib/device/device.rb#L99)
|
945
961
|
|
946
962
|
> def start_activity
|
947
963
|
|
@@ -955,7 +971,7 @@ start_activity app_package: 'io.appium.android.apis',
|
|
955
971
|
|
956
972
|
--
|
957
973
|
|
958
|
-
##### [get_network_connection](https://github.com/appium/ruby_lib/blob/
|
974
|
+
##### [get_network_connection](https://github.com/appium/ruby_lib/blob/8451abba066beebd10491c6998ca53aaa35e331d/lib/appium_lib/device/device.rb#L113)
|
959
975
|
|
960
976
|
> def get_network_connection
|
961
977
|
|
@@ -964,7 +980,7 @@ See set_network_connection method for return value
|
|
964
980
|
|
965
981
|
--
|
966
982
|
|
967
|
-
##### [set_network_connection](https://github.com/appium/ruby_lib/blob/
|
983
|
+
##### [set_network_connection](https://github.com/appium/ruby_lib/blob/8451abba066beebd10491c6998ca53aaa35e331d/lib/appium_lib/device/device.rb#L117)
|
968
984
|
|
969
985
|
> def set_network_connection
|
970
986
|
|
@@ -983,7 +999,7 @@ __Parameters:__
|
|
983
999
|
|
984
1000
|
--
|
985
1001
|
|
986
|
-
##### [set_immediate_value](https://github.com/appium/ruby_lib/blob/
|
1002
|
+
##### [set_immediate_value](https://github.com/appium/ruby_lib/blob/8451abba066beebd10491c6998ca53aaa35e331d/lib/appium_lib/device/device.rb#L130)
|
987
1003
|
|
988
1004
|
> def set_immediate_value
|
989
1005
|
|
@@ -997,7 +1013,7 @@ set_immediate_value element, 'hello'
|
|
997
1013
|
|
998
1014
|
--
|
999
1015
|
|
1000
|
-
##### [get_performance_data_types](https://github.com/appium/ruby_lib/blob/
|
1016
|
+
##### [get_performance_data_types](https://github.com/appium/ruby_lib/blob/8451abba066beebd10491c6998ca53aaa35e331d/lib/appium_lib/device/device.rb#L139)
|
1001
1017
|
|
1002
1018
|
> def get_performance_data_types
|
1003
1019
|
|
@@ -1011,7 +1027,7 @@ get_performance_data_types #=> ["cpuinfo", "batteryinfo", "networkinfo", "memory
|
|
1011
1027
|
|
1012
1028
|
--
|
1013
1029
|
|
1014
|
-
##### [extend_search_contexts](https://github.com/appium/ruby_lib/blob/
|
1030
|
+
##### [extend_search_contexts](https://github.com/appium/ruby_lib/blob/8451abba066beebd10491c6998ca53aaa35e331d/lib/appium_lib/device/device.rb#L388)
|
1015
1031
|
|
1016
1032
|
> def extend_search_contexts
|
1017
1033
|
|
@@ -1019,7 +1035,7 @@ get_performance_data_types #=> ["cpuinfo", "batteryinfo", "networkinfo", "memory
|
|
1019
1035
|
|
1020
1036
|
--
|
1021
1037
|
|
1022
|
-
##### [find_element](https://github.com/appium/ruby_lib/blob/
|
1038
|
+
##### [find_element](https://github.com/appium/ruby_lib/blob/8451abba066beebd10491c6998ca53aaa35e331d/lib/appium_lib/device/device.rb#L388)
|
1023
1039
|
|
1024
1040
|
> def find_element
|
1025
1041
|
|
@@ -1027,7 +1043,7 @@ get_performance_data_types #=> ["cpuinfo", "batteryinfo", "networkinfo", "memory
|
|
1027
1043
|
|
1028
1044
|
--
|
1029
1045
|
|
1030
|
-
##### [find_elements](https://github.com/appium/ruby_lib/blob/
|
1046
|
+
##### [find_elements](https://github.com/appium/ruby_lib/blob/8451abba066beebd10491c6998ca53aaa35e331d/lib/appium_lib/device/device.rb#L388)
|
1031
1047
|
|
1032
1048
|
> def find_elements
|
1033
1049
|
|
@@ -1039,7 +1055,7 @@ find_element/s with their accessibility_id
|
|
1039
1055
|
|
1040
1056
|
--
|
1041
1057
|
|
1042
|
-
##### [add_touch_actions](https://github.com/appium/ruby_lib/blob/
|
1058
|
+
##### [add_touch_actions](https://github.com/appium/ruby_lib/blob/8451abba066beebd10491c6998ca53aaa35e331d/lib/appium_lib/device/device.rb#L419)
|
1043
1059
|
|
1044
1060
|
> def add_touch_actions
|
1045
1061
|
|
@@ -1047,7 +1063,7 @@ find_element/s with their accessibility_id
|
|
1047
1063
|
|
1048
1064
|
--
|
1049
1065
|
|
1050
|
-
##### [add_ime_actions](https://github.com/appium/ruby_lib/blob/
|
1066
|
+
##### [add_ime_actions](https://github.com/appium/ruby_lib/blob/8451abba066beebd10491c6998ca53aaa35e331d/lib/appium_lib/device/device.rb#L442)
|
1051
1067
|
|
1052
1068
|
> def add_ime_actions
|
1053
1069
|
|
@@ -1055,7 +1071,7 @@ find_element/s with their accessibility_id
|
|
1055
1071
|
|
1056
1072
|
--
|
1057
1073
|
|
1058
|
-
##### [set_context](https://github.com/appium/ruby_lib/blob/
|
1074
|
+
##### [set_context](https://github.com/appium/ruby_lib/blob/8451abba066beebd10491c6998ca53aaa35e331d/lib/appium_lib/device/device.rb#L517)
|
1059
1075
|
|
1060
1076
|
> def set_context
|
1061
1077
|
|
@@ -1070,7 +1086,7 @@ __Parameters:__
|
|
1070
1086
|
|
1071
1087
|
--
|
1072
1088
|
|
1073
|
-
##### [current_context](https://github.com/appium/ruby_lib/blob/
|
1089
|
+
##### [current_context](https://github.com/appium/ruby_lib/blob/8451abba066beebd10491c6998ca53aaa35e331d/lib/appium_lib/device/device.rb#L525)
|
1074
1090
|
|
1075
1091
|
> def current_context
|
1076
1092
|
|
@@ -1082,7 +1098,7 @@ __Returns:__
|
|
1082
1098
|
|
1083
1099
|
--
|
1084
1100
|
|
1085
|
-
##### [available_contexts](https://github.com/appium/ruby_lib/blob/
|
1101
|
+
##### [available_contexts](https://github.com/appium/ruby_lib/blob/8451abba066beebd10491c6998ca53aaa35e331d/lib/appium_lib/device/device.rb#L528)
|
1086
1102
|
|
1087
1103
|
> def available_contexts
|
1088
1104
|
|
@@ -1094,7 +1110,7 @@ __Returns:__
|
|
1094
1110
|
|
1095
1111
|
--
|
1096
1112
|
|
1097
|
-
##### [within_context](https://github.com/appium/ruby_lib/blob/
|
1113
|
+
##### [within_context](https://github.com/appium/ruby_lib/blob/8451abba066beebd10491c6998ca53aaa35e331d/lib/appium_lib/device/device.rb#L538)
|
1098
1114
|
|
1099
1115
|
> def within_context(context)
|
1100
1116
|
|
@@ -1110,7 +1126,7 @@ __Parameters:__
|
|
1110
1126
|
|
1111
1127
|
--
|
1112
1128
|
|
1113
|
-
##### [switch_to_default_context](https://github.com/appium/ruby_lib/blob/
|
1129
|
+
##### [switch_to_default_context](https://github.com/appium/ruby_lib/blob/8451abba066beebd10491c6998ca53aaa35e331d/lib/appium_lib/device/device.rb#L546)
|
1114
1130
|
|
1115
1131
|
> def switch_to_default_context
|
1116
1132
|
|
@@ -1118,7 +1134,7 @@ Change to the default context. This is equivalent to `set_context nil`.
|
|
1118
1134
|
|
1119
1135
|
--
|
1120
1136
|
|
1121
|
-
##### [pinch](https://github.com/appium/ruby_lib/blob/
|
1137
|
+
##### [pinch](https://github.com/appium/ruby_lib/blob/8451abba066beebd10491c6998ca53aaa35e331d/lib/appium_lib/device/multi_touch.rb#L28)
|
1122
1138
|
|
1123
1139
|
> def pinch(percentage = 25, auto_perform = true)
|
1124
1140
|
|
@@ -1137,7 +1153,7 @@ __Parameters:__
|
|
1137
1153
|
|
1138
1154
|
--
|
1139
1155
|
|
1140
|
-
##### [zoom](https://github.com/appium/ruby_lib/blob/
|
1156
|
+
##### [zoom](https://github.com/appium/ruby_lib/blob/8451abba066beebd10491c6998ca53aaa35e331d/lib/appium_lib/device/multi_touch.rb#L57)
|
1141
1157
|
|
1142
1158
|
> def zoom(percentage = 200, auto_perform = true)
|
1143
1159
|
|
@@ -1156,7 +1172,7 @@ __Parameters:__
|
|
1156
1172
|
|
1157
1173
|
--
|
1158
1174
|
|
1159
|
-
##### [pinch_for_xcuitest](https://github.com/appium/ruby_lib/blob/
|
1175
|
+
##### [pinch_for_xcuitest](https://github.com/appium/ruby_lib/blob/8451abba066beebd10491c6998ca53aaa35e331d/lib/appium_lib/device/multi_touch.rb#L79)
|
1160
1176
|
|
1161
1177
|
> def pinch_for_xcuitest(rate)
|
1162
1178
|
|
@@ -1164,7 +1180,7 @@ __Parameters:__
|
|
1164
1180
|
|
1165
1181
|
--
|
1166
1182
|
|
1167
|
-
##### [pinch_android](https://github.com/appium/ruby_lib/blob/
|
1183
|
+
##### [pinch_android](https://github.com/appium/ruby_lib/blob/8451abba066beebd10491c6998ca53aaa35e331d/lib/appium_lib/device/multi_touch.rb#L94)
|
1168
1184
|
|
1169
1185
|
> def pinch_android(rate)
|
1170
1186
|
|
@@ -1172,7 +1188,7 @@ __Parameters:__
|
|
1172
1188
|
|
1173
1189
|
--
|
1174
1190
|
|
1175
|
-
##### [pinch_ios](https://github.com/appium/ruby_lib/blob/
|
1191
|
+
##### [pinch_ios](https://github.com/appium/ruby_lib/blob/8451abba066beebd10491c6998ca53aaa35e331d/lib/appium_lib/device/multi_touch.rb#L108)
|
1176
1192
|
|
1177
1193
|
> def pinch_ios(rate)
|
1178
1194
|
|
@@ -1180,7 +1196,7 @@ __Parameters:__
|
|
1180
1196
|
|
1181
1197
|
--
|
1182
1198
|
|
1183
|
-
##### [zoom_for_xcuitest](https://github.com/appium/ruby_lib/blob/
|
1199
|
+
##### [zoom_for_xcuitest](https://github.com/appium/ruby_lib/blob/8451abba066beebd10491c6998ca53aaa35e331d/lib/appium_lib/device/multi_touch.rb#L122)
|
1184
1200
|
|
1185
1201
|
> def zoom_for_xcuitest(rate)
|
1186
1202
|
|
@@ -1188,7 +1204,7 @@ __Parameters:__
|
|
1188
1204
|
|
1189
1205
|
--
|
1190
1206
|
|
1191
|
-
##### [zoom_android](https://github.com/appium/ruby_lib/blob/
|
1207
|
+
##### [zoom_android](https://github.com/appium/ruby_lib/blob/8451abba066beebd10491c6998ca53aaa35e331d/lib/appium_lib/device/multi_touch.rb#L137)
|
1192
1208
|
|
1193
1209
|
> def zoom_android(rate)
|
1194
1210
|
|
@@ -1196,7 +1212,7 @@ __Parameters:__
|
|
1196
1212
|
|
1197
1213
|
--
|
1198
1214
|
|
1199
|
-
##### [zoom_ios](https://github.com/appium/ruby_lib/blob/
|
1215
|
+
##### [zoom_ios](https://github.com/appium/ruby_lib/blob/8451abba066beebd10491c6998ca53aaa35e331d/lib/appium_lib/device/multi_touch.rb#L151)
|
1200
1216
|
|
1201
1217
|
> def zoom_ios(rate)
|
1202
1218
|
|
@@ -1204,7 +1220,7 @@ __Parameters:__
|
|
1204
1220
|
|
1205
1221
|
--
|
1206
1222
|
|
1207
|
-
##### [initialize](https://github.com/appium/ruby_lib/blob/
|
1223
|
+
##### [initialize](https://github.com/appium/ruby_lib/blob/8451abba066beebd10491c6998ca53aaa35e331d/lib/appium_lib/device/multi_touch.rb#L167)
|
1208
1224
|
|
1209
1225
|
> def initialize
|
1210
1226
|
|
@@ -1216,7 +1232,7 @@ __Returns:__
|
|
1216
1232
|
|
1217
1233
|
--
|
1218
1234
|
|
1219
|
-
##### [add](https://github.com/appium/ruby_lib/blob/
|
1235
|
+
##### [add](https://github.com/appium/ruby_lib/blob/8451abba066beebd10491c6998ca53aaa35e331d/lib/appium_lib/device/multi_touch.rb#L173)
|
1220
1236
|
|
1221
1237
|
> def add(chain)
|
1222
1238
|
|
@@ -1228,7 +1244,7 @@ __Parameters:__
|
|
1228
1244
|
|
1229
1245
|
--
|
1230
1246
|
|
1231
|
-
##### [perform](https://github.com/appium/ruby_lib/blob/
|
1247
|
+
##### [perform](https://github.com/appium/ruby_lib/blob/8451abba066beebd10491c6998ca53aaa35e331d/lib/appium_lib/device/multi_touch.rb#L178)
|
1232
1248
|
|
1233
1249
|
> def perform
|
1234
1250
|
|
@@ -1236,7 +1252,7 @@ Ask Appium to perform the actions
|
|
1236
1252
|
|
1237
1253
|
--
|
1238
1254
|
|
1239
|
-
##### [ACTIONS](https://github.com/appium/ruby_lib/blob/
|
1255
|
+
##### [ACTIONS](https://github.com/appium/ruby_lib/blob/8451abba066beebd10491c6998ca53aaa35e331d/lib/appium_lib/device/touch_actions.rb#L11)
|
1240
1256
|
|
1241
1257
|
> ACTIONS = [:move_to, :long_press, :double_tap, :two_finger_tap, :press, :release, :tap, :wait, :perform].freeze
|
1242
1258
|
|
@@ -1244,7 +1260,7 @@ Ask Appium to perform the actions
|
|
1244
1260
|
|
1245
1261
|
--
|
1246
1262
|
|
1247
|
-
##### [COMPLEX_ACTIONS](https://github.com/appium/ruby_lib/blob/
|
1263
|
+
##### [COMPLEX_ACTIONS](https://github.com/appium/ruby_lib/blob/8451abba066beebd10491c6998ca53aaa35e331d/lib/appium_lib/device/touch_actions.rb#L12)
|
1248
1264
|
|
1249
1265
|
> COMPLEX_ACTIONS = [:swipe].freeze
|
1250
1266
|
|
@@ -1252,7 +1268,7 @@ Ask Appium to perform the actions
|
|
1252
1268
|
|
1253
1269
|
--
|
1254
1270
|
|
1255
|
-
##### [actions](https://github.com/appium/ruby_lib/blob/
|
1271
|
+
##### [actions](https://github.com/appium/ruby_lib/blob/8451abba066beebd10491c6998ca53aaa35e331d/lib/appium_lib/device/touch_actions.rb#L26)
|
1256
1272
|
|
1257
1273
|
> def actions
|
1258
1274
|
|
@@ -1260,7 +1276,7 @@ Returns the value of attribute actions
|
|
1260
1276
|
|
1261
1277
|
--
|
1262
1278
|
|
1263
|
-
##### [initialize](https://github.com/appium/ruby_lib/blob/
|
1279
|
+
##### [initialize](https://github.com/appium/ruby_lib/blob/8451abba066beebd10491c6998ca53aaa35e331d/lib/appium_lib/device/touch_actions.rb#L28)
|
1264
1280
|
|
1265
1281
|
> def initialize
|
1266
1282
|
|
@@ -1272,7 +1288,7 @@ __Returns:__
|
|
1272
1288
|
|
1273
1289
|
--
|
1274
1290
|
|
1275
|
-
##### [move_to](https://github.com/appium/ruby_lib/blob/
|
1291
|
+
##### [move_to](https://github.com/appium/ruby_lib/blob/8451abba066beebd10491c6998ca53aaa35e331d/lib/appium_lib/device/touch_actions.rb#L39)
|
1276
1292
|
|
1277
1293
|
> def move_to(opts)
|
1278
1294
|
|
@@ -1286,7 +1302,7 @@ __Parameters:__
|
|
1286
1302
|
|
1287
1303
|
--
|
1288
1304
|
|
1289
|
-
##### [long_press](https://github.com/appium/ruby_lib/blob/
|
1305
|
+
##### [long_press](https://github.com/appium/ruby_lib/blob/8451abba066beebd10491c6998ca53aaa35e331d/lib/appium_lib/device/touch_actions.rb#L53)
|
1290
1306
|
|
1291
1307
|
> def long_press(opts)
|
1292
1308
|
|
@@ -1307,7 +1323,7 @@ __Parameters:__
|
|
1307
1323
|
|
1308
1324
|
--
|
1309
1325
|
|
1310
|
-
##### [press](https://github.com/appium/ruby_lib/blob/
|
1326
|
+
##### [press](https://github.com/appium/ruby_lib/blob/8451abba066beebd10491c6998ca53aaa35e331d/lib/appium_lib/device/touch_actions.rb#L65)
|
1311
1327
|
|
1312
1328
|
> def press(opts)
|
1313
1329
|
|
@@ -1320,7 +1336,7 @@ __Parameters:__
|
|
1320
1336
|
|
1321
1337
|
--
|
1322
1338
|
|
1323
|
-
##### [release](https://github.com/appium/ruby_lib/blob/
|
1339
|
+
##### [release](https://github.com/appium/ruby_lib/blob/8451abba066beebd10491c6998ca53aaa35e331d/lib/appium_lib/device/touch_actions.rb#L76)
|
1324
1340
|
|
1325
1341
|
> def release(opts = nil)
|
1326
1342
|
|
@@ -1332,7 +1348,7 @@ __Parameters:__
|
|
1332
1348
|
|
1333
1349
|
--
|
1334
1350
|
|
1335
|
-
##### [tap](https://github.com/appium/ruby_lib/blob/
|
1351
|
+
##### [tap](https://github.com/appium/ruby_lib/blob/8451abba066beebd10491c6998ca53aaa35e331d/lib/appium_lib/device/touch_actions.rb#L88)
|
1336
1352
|
|
1337
1353
|
> def tap(opts)
|
1338
1354
|
|
@@ -1345,7 +1361,7 @@ __Parameters:__
|
|
1345
1361
|
|
1346
1362
|
--
|
1347
1363
|
|
1348
|
-
##### [double_tap](https://github.com/appium/ruby_lib/blob/
|
1364
|
+
##### [double_tap](https://github.com/appium/ruby_lib/blob/8451abba066beebd10491c6998ca53aaa35e331d/lib/appium_lib/device/touch_actions.rb#L101)
|
1349
1365
|
|
1350
1366
|
> def double_tap(opts)
|
1351
1367
|
|
@@ -1357,7 +1373,7 @@ __Parameters:__
|
|
1357
1373
|
|
1358
1374
|
--
|
1359
1375
|
|
1360
|
-
##### [two_finger_tap](https://github.com/appium/ruby_lib/blob/
|
1376
|
+
##### [two_finger_tap](https://github.com/appium/ruby_lib/blob/8451abba066beebd10491c6998ca53aaa35e331d/lib/appium_lib/device/touch_actions.rb#L112)
|
1361
1377
|
|
1362
1378
|
> def two_finger_tap(opts)
|
1363
1379
|
|
@@ -1369,7 +1385,7 @@ __Parameters:__
|
|
1369
1385
|
|
1370
1386
|
--
|
1371
1387
|
|
1372
|
-
##### [wait](https://github.com/appium/ruby_lib/blob/
|
1388
|
+
##### [wait](https://github.com/appium/ruby_lib/blob/8451abba066beebd10491c6998ca53aaa35e331d/lib/appium_lib/device/touch_actions.rb#L120)
|
1373
1389
|
|
1374
1390
|
> def wait(milliseconds)
|
1375
1391
|
|
@@ -1381,7 +1397,7 @@ __Parameters:__
|
|
1381
1397
|
|
1382
1398
|
--
|
1383
1399
|
|
1384
|
-
##### [swipe](https://github.com/appium/ruby_lib/blob/
|
1400
|
+
##### [swipe](https://github.com/appium/ruby_lib/blob/8451abba066beebd10491c6998ca53aaa35e331d/lib/appium_lib/device/touch_actions.rb#L143)
|
1385
1401
|
|
1386
1402
|
> def swipe(opts, ele = nil)
|
1387
1403
|
|
@@ -1402,7 +1418,7 @@ __Parameters:__
|
|
1402
1418
|
|
1403
1419
|
--
|
1404
1420
|
|
1405
|
-
##### [perform](https://github.com/appium/ruby_lib/blob/
|
1421
|
+
##### [perform](https://github.com/appium/ruby_lib/blob/8451abba066beebd10491c6998ca53aaa35e331d/lib/appium_lib/device/touch_actions.rb#L168)
|
1406
1422
|
|
1407
1423
|
> def perform
|
1408
1424
|
|
@@ -1410,7 +1426,7 @@ Ask the driver to perform all actions in this action chain.
|
|
1410
1426
|
|
1411
1427
|
--
|
1412
1428
|
|
1413
|
-
##### [cancel](https://github.com/appium/ruby_lib/blob/
|
1429
|
+
##### [cancel](https://github.com/appium/ruby_lib/blob/8451abba066beebd10491c6998ca53aaa35e331d/lib/appium_lib/device/touch_actions.rb#L174)
|
1414
1430
|
|
1415
1431
|
> def cancel
|
1416
1432
|
|
@@ -1418,7 +1434,7 @@ Does nothing, currently.
|
|
1418
1434
|
|
1419
1435
|
--
|
1420
1436
|
|
1421
|
-
##### [swipe_coordinates](https://github.com/appium/ruby_lib/blob/
|
1437
|
+
##### [swipe_coordinates](https://github.com/appium/ruby_lib/blob/8451abba066beebd10491c6998ca53aaa35e331d/lib/appium_lib/device/touch_actions.rb#L180)
|
1422
1438
|
|
1423
1439
|
> def swipe_coordinates(end_x: nil, end_y: nil, offset_x: nil, offset_y: nil)
|
1424
1440
|
|
@@ -1426,7 +1442,7 @@ Does nothing, currently.
|
|
1426
1442
|
|
1427
1443
|
--
|
1428
1444
|
|
1429
|
-
##### [chain_method](https://github.com/appium/ruby_lib/blob/
|
1445
|
+
##### [chain_method](https://github.com/appium/ruby_lib/blob/8451abba066beebd10491c6998ca53aaa35e331d/lib/appium_lib/device/touch_actions.rb#L198)
|
1430
1446
|
|
1431
1447
|
> def chain_method(method, args = nil)
|
1432
1448
|
|
@@ -1434,7 +1450,7 @@ Does nothing, currently.
|
|
1434
1450
|
|
1435
1451
|
--
|
1436
1452
|
|
1437
|
-
##### [args_with_ele_ref](https://github.com/appium/ruby_lib/blob/
|
1453
|
+
##### [args_with_ele_ref](https://github.com/appium/ruby_lib/blob/8451abba066beebd10491c6998ca53aaa35e331d/lib/appium_lib/device/touch_actions.rb#L204)
|
1438
1454
|
|
1439
1455
|
> def args_with_ele_ref(args)
|
1440
1456
|
|
@@ -1442,7 +1458,7 @@ Does nothing, currently.
|
|
1442
1458
|
|
1443
1459
|
--
|
1444
1460
|
|
1445
|
-
##### [_generic_wait](https://github.com/appium/ruby_lib/blob/
|
1461
|
+
##### [_generic_wait](https://github.com/appium/ruby_lib/blob/8451abba066beebd10491c6998ca53aaa35e331d/lib/appium_lib/common/wait.rb#L9)
|
1446
1462
|
|
1447
1463
|
> def _generic_wait(opts = {})
|
1448
1464
|
|
@@ -1451,7 +1467,7 @@ https://github.com/SeleniumHQ/selenium/blob/cf501dda3f0ed12233de51ce8170c0e8090f
|
|
1451
1467
|
|
1452
1468
|
--
|
1453
1469
|
|
1454
|
-
##### [_process_wait_opts](https://github.com/appium/ruby_lib/blob/
|
1470
|
+
##### [_process_wait_opts](https://github.com/appium/ruby_lib/blob/8451abba066beebd10491c6998ca53aaa35e331d/lib/appium_lib/common/wait.rb#L48)
|
1455
1471
|
|
1456
1472
|
> def _process_wait_opts(opts)
|
1457
1473
|
|
@@ -1459,7 +1475,7 @@ process opts before calling _generic_wait
|
|
1459
1475
|
|
1460
1476
|
--
|
1461
1477
|
|
1462
|
-
##### [wait_true](https://github.com/appium/ruby_lib/blob/
|
1478
|
+
##### [wait_true](https://github.com/appium/ruby_lib/blob/8451abba066beebd10491c6998ca53aaa35e331d/lib/appium_lib/common/wait.rb#L69)
|
1463
1479
|
|
1464
1480
|
> def wait_true(opts = {}, &block)
|
1465
1481
|
|
@@ -1479,7 +1495,7 @@ __Parameters:__
|
|
1479
1495
|
|
1480
1496
|
--
|
1481
1497
|
|
1482
|
-
##### [wait](https://github.com/appium/ruby_lib/blob/
|
1498
|
+
##### [wait](https://github.com/appium/ruby_lib/blob/8451abba066beebd10491c6998ca53aaa35e331d/lib/appium_lib/common/wait.rb#L87)
|
1483
1499
|
|
1484
1500
|
> def wait(opts = {}, &block)
|
1485
1501
|
|
@@ -1497,7 +1513,7 @@ __Parameters:__
|
|
1497
1513
|
|
1498
1514
|
--
|
1499
1515
|
|
1500
|
-
##### [ignore](https://github.com/appium/ruby_lib/blob/
|
1516
|
+
##### [ignore](https://github.com/appium/ruby_lib/blob/8451abba066beebd10491c6998ca53aaa35e331d/lib/appium_lib/common/helper.rb#L24)
|
1501
1517
|
|
1502
1518
|
> def ignore
|
1503
1519
|
|
@@ -1505,7 +1521,7 @@ Return yield and ignore any exceptions.
|
|
1505
1521
|
|
1506
1522
|
--
|
1507
1523
|
|
1508
|
-
##### [back](https://github.com/appium/ruby_lib/blob/
|
1524
|
+
##### [back](https://github.com/appium/ruby_lib/blob/8451abba066beebd10491c6998ca53aaa35e331d/lib/appium_lib/common/helper.rb#L31)
|
1509
1525
|
|
1510
1526
|
> def back
|
1511
1527
|
|
@@ -1517,7 +1533,7 @@ __Returns:__
|
|
1517
1533
|
|
1518
1534
|
--
|
1519
1535
|
|
1520
|
-
##### [session_id](https://github.com/appium/ruby_lib/blob/
|
1536
|
+
##### [session_id](https://github.com/appium/ruby_lib/blob/8451abba066beebd10491c6998ca53aaa35e331d/lib/appium_lib/common/helper.rb#L36)
|
1521
1537
|
|
1522
1538
|
> def session_id
|
1523
1539
|
|
@@ -1525,7 +1541,7 @@ For Sauce Labs reporting. Returns the current session id.
|
|
1525
1541
|
|
1526
1542
|
--
|
1527
1543
|
|
1528
|
-
##### [xpath](https://github.com/appium/ruby_lib/blob/
|
1544
|
+
##### [xpath](https://github.com/appium/ruby_lib/blob/8451abba066beebd10491c6998ca53aaa35e331d/lib/appium_lib/common/helper.rb#L44)
|
1529
1545
|
|
1530
1546
|
> def xpath(xpath_str)
|
1531
1547
|
|
@@ -1541,7 +1557,7 @@ __Returns:__
|
|
1541
1557
|
|
1542
1558
|
--
|
1543
1559
|
|
1544
|
-
##### [xpaths](https://github.com/appium/ruby_lib/blob/
|
1560
|
+
##### [xpaths](https://github.com/appium/ruby_lib/blob/8451abba066beebd10491c6998ca53aaa35e331d/lib/appium_lib/common/helper.rb#L52)
|
1545
1561
|
|
1546
1562
|
> def xpaths(xpath_str)
|
1547
1563
|
|
@@ -1557,7 +1573,7 @@ __Returns:__
|
|
1557
1573
|
|
1558
1574
|
--
|
1559
1575
|
|
1560
|
-
##### [_print_source](https://github.com/appium/ruby_lib/blob/
|
1576
|
+
##### [_print_source](https://github.com/appium/ruby_lib/blob/8451abba066beebd10491c6998ca53aaa35e331d/lib/appium_lib/common/helper.rb#L56)
|
1561
1577
|
|
1562
1578
|
> def _print_source(source)
|
1563
1579
|
|
@@ -1565,7 +1581,7 @@ __Returns:__
|
|
1565
1581
|
|
1566
1582
|
--
|
1567
1583
|
|
1568
|
-
##### [result](https://github.com/appium/ruby_lib/blob/
|
1584
|
+
##### [result](https://github.com/appium/ruby_lib/blob/8451abba066beebd10491c6998ca53aaa35e331d/lib/appium_lib/common/helper.rb#L69)
|
1569
1585
|
|
1570
1586
|
> def result
|
1571
1587
|
|
@@ -1573,7 +1589,7 @@ Returns the value of attribute result
|
|
1573
1589
|
|
1574
1590
|
--
|
1575
1591
|
|
1576
|
-
##### [initialize](https://github.com/appium/ruby_lib/blob/
|
1592
|
+
##### [initialize](https://github.com/appium/ruby_lib/blob/8451abba066beebd10491c6998ca53aaa35e331d/lib/appium_lib/common/helper.rb#L71)
|
1577
1593
|
|
1578
1594
|
> def initialize
|
1579
1595
|
|
@@ -1585,7 +1601,7 @@ __Returns:__
|
|
1585
1601
|
|
1586
1602
|
--
|
1587
1603
|
|
1588
|
-
##### [reset](https://github.com/appium/ruby_lib/blob/
|
1604
|
+
##### [reset](https://github.com/appium/ruby_lib/blob/8451abba066beebd10491c6998ca53aaa35e331d/lib/appium_lib/common/helper.rb#L75)
|
1589
1605
|
|
1590
1606
|
> def reset
|
1591
1607
|
|
@@ -1593,7 +1609,7 @@ __Returns:__
|
|
1593
1609
|
|
1594
1610
|
--
|
1595
1611
|
|
1596
|
-
##### [start_element](https://github.com/appium/ruby_lib/blob/
|
1612
|
+
##### [start_element](https://github.com/appium/ruby_lib/blob/8451abba066beebd10491c6998ca53aaa35e331d/lib/appium_lib/common/helper.rb#L80)
|
1597
1613
|
|
1598
1614
|
> def start_element(name, attrs = [])
|
1599
1615
|
|
@@ -1601,7 +1617,7 @@ http://nokogiri.org/Nokogiri/XML/SAX/Document.html
|
|
1601
1617
|
|
1602
1618
|
--
|
1603
1619
|
|
1604
|
-
##### [formatted_result](https://github.com/appium/ruby_lib/blob/
|
1620
|
+
##### [formatted_result](https://github.com/appium/ruby_lib/blob/8451abba066beebd10491c6998ca53aaa35e331d/lib/appium_lib/common/helper.rb#L86)
|
1605
1621
|
|
1606
1622
|
> def formatted_result
|
1607
1623
|
|
@@ -1609,7 +1625,7 @@ http://nokogiri.org/Nokogiri/XML/SAX/Document.html
|
|
1609
1625
|
|
1610
1626
|
--
|
1611
1627
|
|
1612
|
-
##### [get_page_class](https://github.com/appium/ruby_lib/blob/
|
1628
|
+
##### [get_page_class](https://github.com/appium/ruby_lib/blob/8451abba066beebd10491c6998ca53aaa35e331d/lib/appium_lib/common/helper.rb#L97)
|
1613
1629
|
|
1614
1630
|
> def get_page_class
|
1615
1631
|
|
@@ -1617,7 +1633,7 @@ Returns a string of class counts of visible elements.
|
|
1617
1633
|
|
1618
1634
|
--
|
1619
1635
|
|
1620
|
-
##### [page_class](https://github.com/appium/ruby_lib/blob/
|
1636
|
+
##### [page_class](https://github.com/appium/ruby_lib/blob/8451abba066beebd10491c6998ca53aaa35e331d/lib/appium_lib/common/helper.rb#L108)
|
1621
1637
|
|
1622
1638
|
> def page_class
|
1623
1639
|
|
@@ -1626,7 +1642,7 @@ Useful for appium_console.
|
|
1626
1642
|
|
1627
1643
|
--
|
1628
1644
|
|
1629
|
-
##### [px_to_window_rel](https://github.com/appium/ruby_lib/blob/
|
1645
|
+
##### [px_to_window_rel](https://github.com/appium/ruby_lib/blob/8451abba066beebd10491c6998ca53aaa35e331d/lib/appium_lib/common/helper.rb#L118)
|
1630
1646
|
|
1631
1647
|
> def px_to_window_rel(opts = {})
|
1632
1648
|
|
@@ -1638,7 +1654,7 @@ px_to_window_rel x: 50, y: 150
|
|
1638
1654
|
|
1639
1655
|
--
|
1640
1656
|
|
1641
|
-
##### [xml_keys](https://github.com/appium/ruby_lib/blob/
|
1657
|
+
##### [xml_keys](https://github.com/appium/ruby_lib/blob/8451abba066beebd10491c6998ca53aaa35e331d/lib/appium_lib/common/helper.rb#L137)
|
1642
1658
|
|
1643
1659
|
> def xml_keys(target)
|
1644
1660
|
|
@@ -1654,7 +1670,7 @@ __Returns:__
|
|
1654
1670
|
|
1655
1671
|
--
|
1656
1672
|
|
1657
|
-
##### [xml_values](https://github.com/appium/ruby_lib/blob/
|
1673
|
+
##### [xml_values](https://github.com/appium/ruby_lib/blob/8451abba066beebd10491c6998ca53aaa35e331d/lib/appium_lib/common/helper.rb#L145)
|
1658
1674
|
|
1659
1675
|
> def xml_values(target)
|
1660
1676
|
|
@@ -1670,7 +1686,7 @@ __Returns:__
|
|
1670
1686
|
|
1671
1687
|
--
|
1672
1688
|
|
1673
|
-
##### [resolve_id](https://github.com/appium/ruby_lib/blob/
|
1689
|
+
##### [resolve_id](https://github.com/appium/ruby_lib/blob/8451abba066beebd10491c6998ca53aaa35e331d/lib/appium_lib/common/helper.rb#L153)
|
1674
1690
|
|
1675
1691
|
> def resolve_id(id)
|
1676
1692
|
|
@@ -1686,7 +1702,7 @@ __Returns:__
|
|
1686
1702
|
|
1687
1703
|
--
|
1688
1704
|
|
1689
|
-
##### [filter](https://github.com/appium/ruby_lib/blob/
|
1705
|
+
##### [filter](https://github.com/appium/ruby_lib/blob/8451abba066beebd10491c6998ca53aaa35e331d/lib/appium_lib/common/helper.rb#L159)
|
1690
1706
|
|
1691
1707
|
> def filter
|
1692
1708
|
|
@@ -1694,7 +1710,7 @@ Returns the value of attribute filter
|
|
1694
1710
|
|
1695
1711
|
--
|
1696
1712
|
|
1697
|
-
##### [filter=](https://github.com/appium/ruby_lib/blob/
|
1713
|
+
##### [filter=](https://github.com/appium/ruby_lib/blob/8451abba066beebd10491c6998ca53aaa35e331d/lib/appium_lib/common/helper.rb#L162)
|
1698
1714
|
|
1699
1715
|
> def filter=(value)
|
1700
1716
|
|
@@ -1702,7 +1718,7 @@ convert to string to support symbols
|
|
1702
1718
|
|
1703
1719
|
--
|
1704
1720
|
|
1705
|
-
##### [initialize](https://github.com/appium/ruby_lib/blob/
|
1721
|
+
##### [initialize](https://github.com/appium/ruby_lib/blob/8451abba066beebd10491c6998ca53aaa35e331d/lib/appium_lib/common/helper.rb#L168)
|
1706
1722
|
|
1707
1723
|
> def initialize
|
1708
1724
|
|
@@ -1714,7 +1730,7 @@ __Returns:__
|
|
1714
1730
|
|
1715
1731
|
--
|
1716
1732
|
|
1717
|
-
##### [reset](https://github.com/appium/ruby_lib/blob/
|
1733
|
+
##### [reset](https://github.com/appium/ruby_lib/blob/8451abba066beebd10491c6998ca53aaa35e331d/lib/appium_lib/common/helper.rb#L173)
|
1718
1734
|
|
1719
1735
|
> def reset
|
1720
1736
|
|
@@ -1722,7 +1738,7 @@ __Returns:__
|
|
1722
1738
|
|
1723
1739
|
--
|
1724
1740
|
|
1725
|
-
##### [result](https://github.com/appium/ruby_lib/blob/
|
1741
|
+
##### [result](https://github.com/appium/ruby_lib/blob/8451abba066beebd10491c6998ca53aaa35e331d/lib/appium_lib/common/helper.rb#L179)
|
1726
1742
|
|
1727
1743
|
> def result
|
1728
1744
|
|
@@ -1730,7 +1746,7 @@ __Returns:__
|
|
1730
1746
|
|
1731
1747
|
--
|
1732
1748
|
|
1733
|
-
##### [start_element](https://github.com/appium/ruby_lib/blob/
|
1749
|
+
##### [start_element](https://github.com/appium/ruby_lib/blob/8451abba066beebd10491c6998ca53aaa35e331d/lib/appium_lib/common/helper.rb#L195)
|
1734
1750
|
|
1735
1751
|
> def start_element(name, attrs = [])
|
1736
1752
|
|
@@ -1738,7 +1754,7 @@ __Returns:__
|
|
1738
1754
|
|
1739
1755
|
--
|
1740
1756
|
|
1741
|
-
##### [end_element](https://github.com/appium/ruby_lib/blob/
|
1757
|
+
##### [end_element](https://github.com/appium/ruby_lib/blob/8451abba066beebd10491c6998ca53aaa35e331d/lib/appium_lib/common/helper.rb#L204)
|
1742
1758
|
|
1743
1759
|
> def end_element(name)
|
1744
1760
|
|
@@ -1746,7 +1762,7 @@ __Returns:__
|
|
1746
1762
|
|
1747
1763
|
--
|
1748
1764
|
|
1749
|
-
##### [characters](https://github.com/appium/ruby_lib/blob/
|
1765
|
+
##### [characters](https://github.com/appium/ruby_lib/blob/8451abba066beebd10491c6998ca53aaa35e331d/lib/appium_lib/common/helper.rb#L210)
|
1750
1766
|
|
1751
1767
|
> def characters(chars)
|
1752
1768
|
|
@@ -1754,7 +1770,7 @@ __Returns:__
|
|
1754
1770
|
|
1755
1771
|
--
|
1756
1772
|
|
1757
|
-
##### [_no_such_element](https://github.com/appium/ruby_lib/blob/
|
1773
|
+
##### [_no_such_element](https://github.com/appium/ruby_lib/blob/8451abba066beebd10491c6998ca53aaa35e331d/lib/appium_lib/common/helper.rb#L217)
|
1758
1774
|
|
1759
1775
|
> def _no_such_element
|
1760
1776
|
|
@@ -1762,7 +1778,7 @@ __Returns:__
|
|
1762
1778
|
|
1763
1779
|
--
|
1764
1780
|
|
1765
|
-
##### [COMMAND_NO_ARG](https://github.com/appium/ruby_lib/blob/
|
1781
|
+
##### [COMMAND_NO_ARG](https://github.com/appium/ruby_lib/blob/8451abba066beebd10491c6998ca53aaa35e331d/lib/appium_lib/common/command.rb#L4)
|
1766
1782
|
|
1767
1783
|
> COMMAND_NO_ARG = {
|
1768
1784
|
|
@@ -1770,7 +1786,7 @@ __Returns:__
|
|
1770
1786
|
|
1771
1787
|
--
|
1772
1788
|
|
1773
|
-
##### [COMMAND](https://github.com/appium/ruby_lib/blob/
|
1789
|
+
##### [COMMAND](https://github.com/appium/ruby_lib/blob/8451abba066beebd10491c6998ca53aaa35e331d/lib/appium_lib/common/command.rb#L24)
|
1774
1790
|
|
1775
1791
|
> COMMAND = {
|
1776
1792
|
|
@@ -1778,7 +1794,7 @@ __Returns:__
|
|
1778
1794
|
|
1779
1795
|
--
|
1780
1796
|
|
1781
|
-
##### [window_size](https://github.com/appium/ruby_lib/blob/
|
1797
|
+
##### [window_size](https://github.com/appium/ruby_lib/blob/8451abba066beebd10491c6998ca53aaa35e331d/lib/appium_lib/common/element/window.rb#L5)
|
1782
1798
|
|
1783
1799
|
> def window_size
|
1784
1800
|
|
@@ -1786,7 +1802,7 @@ Get the window's size
|
|
1786
1802
|
|
1787
1803
|
--
|
1788
1804
|
|
1789
|
-
##### [FINDERS](https://github.com/appium/ruby_lib/blob/
|
1805
|
+
##### [FINDERS](https://github.com/appium/ruby_lib/blob/8451abba066beebd10491c6998ca53aaa35e331d/lib/appium_lib/common/search_context.rb#L5)
|
1790
1806
|
|
1791
1807
|
> FINDERS = {
|
1792
1808
|
|
@@ -1794,7 +1810,7 @@ rubocop:disable Style/MutableConstant
|
|
1794
1810
|
|
1795
1811
|
--
|
1796
1812
|
|
1797
|
-
##### [result](https://github.com/appium/ruby_lib/blob/
|
1813
|
+
##### [result](https://github.com/appium/ruby_lib/blob/8451abba066beebd10491c6998ca53aaa35e331d/lib/appium_lib/android/helper.rb#L6) android
|
1798
1814
|
|
1799
1815
|
> def result
|
1800
1816
|
|
@@ -1802,7 +1818,7 @@ Returns the value of attribute result
|
|
1802
1818
|
|
1803
1819
|
--
|
1804
1820
|
|
1805
|
-
##### [keys](https://github.com/appium/ruby_lib/blob/
|
1821
|
+
##### [keys](https://github.com/appium/ruby_lib/blob/8451abba066beebd10491c6998ca53aaa35e331d/lib/appium_lib/android/helper.rb#L6) android
|
1806
1822
|
|
1807
1823
|
> def keys
|
1808
1824
|
|
@@ -1810,7 +1826,7 @@ Returns the value of attribute keys
|
|
1810
1826
|
|
1811
1827
|
--
|
1812
1828
|
|
1813
|
-
##### [instance](https://github.com/appium/ruby_lib/blob/
|
1829
|
+
##### [instance](https://github.com/appium/ruby_lib/blob/8451abba066beebd10491c6998ca53aaa35e331d/lib/appium_lib/android/helper.rb#L6) android
|
1814
1830
|
|
1815
1831
|
> def instance
|
1816
1832
|
|
@@ -1818,7 +1834,7 @@ Returns the value of attribute instance
|
|
1818
1834
|
|
1819
1835
|
--
|
1820
1836
|
|
1821
|
-
##### [filter](https://github.com/appium/ruby_lib/blob/
|
1837
|
+
##### [filter](https://github.com/appium/ruby_lib/blob/8451abba066beebd10491c6998ca53aaa35e331d/lib/appium_lib/android/helper.rb#L6) android
|
1822
1838
|
|
1823
1839
|
> def filter
|
1824
1840
|
|
@@ -1826,7 +1842,7 @@ Returns the value of attribute filter
|
|
1826
1842
|
|
1827
1843
|
--
|
1828
1844
|
|
1829
|
-
##### [filter=](https://github.com/appium/ruby_lib/blob/
|
1845
|
+
##### [filter=](https://github.com/appium/ruby_lib/blob/8451abba066beebd10491c6998ca53aaa35e331d/lib/appium_lib/android/helper.rb#L9) android
|
1830
1846
|
|
1831
1847
|
> def filter=(value)
|
1832
1848
|
|
@@ -1834,7 +1850,7 @@ convert to string to support symbols
|
|
1834
1850
|
|
1835
1851
|
--
|
1836
1852
|
|
1837
|
-
##### [initialize](https://github.com/appium/ruby_lib/blob/
|
1853
|
+
##### [initialize](https://github.com/appium/ruby_lib/blob/8451abba066beebd10491c6998ca53aaa35e331d/lib/appium_lib/android/helper.rb#L15) android
|
1838
1854
|
|
1839
1855
|
> def initialize
|
1840
1856
|
|
@@ -1846,7 +1862,7 @@ __Returns:__
|
|
1846
1862
|
|
1847
1863
|
--
|
1848
1864
|
|
1849
|
-
##### [reset](https://github.com/appium/ruby_lib/blob/
|
1865
|
+
##### [reset](https://github.com/appium/ruby_lib/blob/8451abba066beebd10491c6998ca53aaa35e331d/lib/appium_lib/android/helper.rb#L21) android
|
1850
1866
|
|
1851
1867
|
> def reset
|
1852
1868
|
|
@@ -1854,7 +1870,7 @@ __Returns:__
|
|
1854
1870
|
|
1855
1871
|
--
|
1856
1872
|
|
1857
|
-
##### [start_element](https://github.com/appium/ruby_lib/blob/
|
1873
|
+
##### [start_element](https://github.com/appium/ruby_lib/blob/8451abba066beebd10491c6998ca53aaa35e331d/lib/appium_lib/android/helper.rb#L28) android
|
1858
1874
|
|
1859
1875
|
> def start_element(name, attrs = [])
|
1860
1876
|
|
@@ -1862,7 +1878,7 @@ http://nokogiri.org/Nokogiri/XML/SAX/Document.html
|
|
1862
1878
|
|
1863
1879
|
--
|
1864
1880
|
|
1865
|
-
##### [_fix_android_native_source](https://github.com/appium/ruby_lib/blob/
|
1881
|
+
##### [_fix_android_native_source](https://github.com/appium/ruby_lib/blob/8451abba066beebd10491c6998ca53aaa35e331d/lib/appium_lib/android/helper.rb#L88) android
|
1866
1882
|
|
1867
1883
|
> def _fix_android_native_source(source)
|
1868
1884
|
|
@@ -1872,7 +1888,7 @@ https://code.google.com/p/android/issues/detail?id=74143
|
|
1872
1888
|
|
1873
1889
|
--
|
1874
1890
|
|
1875
|
-
##### [source](https://github.com/appium/ruby_lib/blob/
|
1891
|
+
##### [source](https://github.com/appium/ruby_lib/blob/8451abba066beebd10491c6998ca53aaa35e331d/lib/appium_lib/android/helper.rb#L116) android
|
1876
1892
|
|
1877
1893
|
> def source
|
1878
1894
|
|
@@ -1884,7 +1900,7 @@ __Returns:__
|
|
1884
1900
|
|
1885
1901
|
--
|
1886
1902
|
|
1887
|
-
##### [get_android_inspect](https://github.com/appium/ruby_lib/blob/
|
1903
|
+
##### [get_android_inspect](https://github.com/appium/ruby_lib/blob/8451abba066beebd10491c6998ca53aaa35e331d/lib/appium_lib/android/helper.rb#L126) android
|
1888
1904
|
|
1889
1905
|
> def get_android_inspect(class_name = false)
|
1890
1906
|
|
@@ -1903,7 +1919,7 @@ __Returns:__
|
|
1903
1919
|
|
1904
1920
|
--
|
1905
1921
|
|
1906
|
-
##### [page](https://github.com/appium/ruby_lib/blob/
|
1922
|
+
##### [page](https://github.com/appium/ruby_lib/blob/8451abba066beebd10491c6998ca53aaa35e331d/lib/appium_lib/android/helper.rb#L152) android
|
1907
1923
|
|
1908
1924
|
> def page(opts = {})
|
1909
1925
|
|
@@ -1922,7 +1938,7 @@ __Returns:__
|
|
1922
1938
|
|
1923
1939
|
--
|
1924
1940
|
|
1925
|
-
##### [current_app](https://github.com/appium/ruby_lib/blob/
|
1941
|
+
##### [current_app](https://github.com/appium/ruby_lib/blob/8451abba066beebd10491c6998ca53aaa35e331d/lib/appium_lib/android/helper.rb#L164) android
|
1926
1942
|
|
1927
1943
|
> def current_app
|
1928
1944
|
|
@@ -1932,7 +1948,7 @@ example line:
|
|
1932
1948
|
|
1933
1949
|
--
|
1934
1950
|
|
1935
|
-
##### [id](https://github.com/appium/ruby_lib/blob/
|
1951
|
+
##### [id](https://github.com/appium/ruby_lib/blob/8451abba066beebd10491c6998ca53aaa35e331d/lib/appium_lib/android/helper.rb#L188) android
|
1936
1952
|
|
1937
1953
|
> def id(id)
|
1938
1954
|
|
@@ -1948,7 +1964,7 @@ __Returns:__
|
|
1948
1964
|
|
1949
1965
|
--
|
1950
1966
|
|
1951
|
-
##### [ids](https://github.com/appium/ruby_lib/blob/
|
1967
|
+
##### [ids](https://github.com/appium/ruby_lib/blob/8451abba066beebd10491c6998ca53aaa35e331d/lib/appium_lib/android/helper.rb#L196) android
|
1952
1968
|
|
1953
1969
|
> def ids(id)
|
1954
1970
|
|
@@ -1964,7 +1980,7 @@ __Returns:__
|
|
1964
1980
|
|
1965
1981
|
--
|
1966
1982
|
|
1967
|
-
##### [ele_index](https://github.com/appium/ruby_lib/blob/
|
1983
|
+
##### [ele_index](https://github.com/appium/ruby_lib/blob/8451abba066beebd10491c6998ca53aaa35e331d/lib/appium_lib/android/helper.rb#L205) android
|
1968
1984
|
|
1969
1985
|
> def ele_index(class_name, index)
|
1970
1986
|
|
@@ -1982,7 +1998,7 @@ __Returns:__
|
|
1982
1998
|
|
1983
1999
|
--
|
1984
2000
|
|
1985
|
-
##### [first_ele](https://github.com/appium/ruby_lib/blob/
|
2001
|
+
##### [first_ele](https://github.com/appium/ruby_lib/blob/8451abba066beebd10491c6998ca53aaa35e331d/lib/appium_lib/android/helper.rb#L223) android
|
1986
2002
|
|
1987
2003
|
> def first_ele(class_name)
|
1988
2004
|
|
@@ -1998,7 +2014,7 @@ __Returns:__
|
|
1998
2014
|
|
1999
2015
|
--
|
2000
2016
|
|
2001
|
-
##### [last_ele](https://github.com/appium/ruby_lib/blob/
|
2017
|
+
##### [last_ele](https://github.com/appium/ruby_lib/blob/8451abba066beebd10491c6998ca53aaa35e331d/lib/appium_lib/android/helper.rb#L230) android
|
2002
2018
|
|
2003
2019
|
> def last_ele(class_name)
|
2004
2020
|
|
@@ -2014,7 +2030,7 @@ __Returns:__
|
|
2014
2030
|
|
2015
2031
|
--
|
2016
2032
|
|
2017
|
-
##### [tag](https://github.com/appium/ruby_lib/blob/
|
2033
|
+
##### [tag](https://github.com/appium/ruby_lib/blob/8451abba066beebd10491c6998ca53aaa35e331d/lib/appium_lib/android/helper.rb#L238) android
|
2018
2034
|
|
2019
2035
|
> def tag(class_name)
|
2020
2036
|
|
@@ -2030,7 +2046,7 @@ __Returns:__
|
|
2030
2046
|
|
2031
2047
|
--
|
2032
2048
|
|
2033
|
-
##### [tags](https://github.com/appium/ruby_lib/blob/
|
2049
|
+
##### [tags](https://github.com/appium/ruby_lib/blob/8451abba066beebd10491c6998ca53aaa35e331d/lib/appium_lib/android/helper.rb#L246) android
|
2034
2050
|
|
2035
2051
|
> def tags(class_name)
|
2036
2052
|
|
@@ -2046,7 +2062,7 @@ __Returns:__
|
|
2046
2062
|
|
2047
2063
|
--
|
2048
2064
|
|
2049
|
-
##### [string_visible_contains](https://github.com/appium/ruby_lib/blob/
|
2065
|
+
##### [string_visible_contains](https://github.com/appium/ruby_lib/blob/8451abba066beebd10491c6998ca53aaa35e331d/lib/appium_lib/android/helper.rb#L288) android
|
2050
2066
|
|
2051
2067
|
> def string_visible_contains(class_name, value)
|
2052
2068
|
|
@@ -2066,7 +2082,7 @@ __Returns:__
|
|
2066
2082
|
|
2067
2083
|
--
|
2068
2084
|
|
2069
|
-
##### [complex_find_contains](https://github.com/appium/ruby_lib/blob/
|
2085
|
+
##### [complex_find_contains](https://github.com/appium/ruby_lib/blob/8451abba066beebd10491c6998ca53aaa35e331d/lib/appium_lib/android/helper.rb#L308) android
|
2070
2086
|
|
2071
2087
|
> def complex_find_contains(element, value)
|
2072
2088
|
|
@@ -2084,7 +2100,7 @@ __Returns:__
|
|
2084
2100
|
|
2085
2101
|
--
|
2086
2102
|
|
2087
|
-
##### [complex_finds_contains](https://github.com/appium/ruby_lib/blob/
|
2103
|
+
##### [complex_finds_contains](https://github.com/appium/ruby_lib/blob/8451abba066beebd10491c6998ca53aaa35e331d/lib/appium_lib/android/helper.rb#L316) android
|
2088
2104
|
|
2089
2105
|
> def complex_finds_contains(element, value)
|
2090
2106
|
|
@@ -2102,7 +2118,7 @@ __Returns:__
|
|
2102
2118
|
|
2103
2119
|
--
|
2104
2120
|
|
2105
|
-
##### [complex_find_exact](https://github.com/appium/ruby_lib/blob/
|
2121
|
+
##### [complex_find_exact](https://github.com/appium/ruby_lib/blob/8451abba066beebd10491c6998ca53aaa35e331d/lib/appium_lib/android/helper.rb#L345) android
|
2106
2122
|
|
2107
2123
|
> def complex_find_exact(class_name, value)
|
2108
2124
|
|
@@ -2120,7 +2136,7 @@ __Returns:__
|
|
2120
2136
|
|
2121
2137
|
--
|
2122
2138
|
|
2123
|
-
##### [complex_finds_exact](https://github.com/appium/ruby_lib/blob/
|
2139
|
+
##### [complex_finds_exact](https://github.com/appium/ruby_lib/blob/8451abba066beebd10491c6998ca53aaa35e331d/lib/appium_lib/android/helper.rb#L353) android
|
2124
2140
|
|
2125
2141
|
> def complex_finds_exact(class_name, value)
|
2126
2142
|
|
@@ -2138,7 +2154,7 @@ __Returns:__
|
|
2138
2154
|
|
2139
2155
|
--
|
2140
2156
|
|
2141
|
-
##### [get_source](https://github.com/appium/ruby_lib/blob/
|
2157
|
+
##### [get_source](https://github.com/appium/ruby_lib/blob/8451abba066beebd10491c6998ca53aaa35e331d/lib/appium_lib/android/helper.rb#L361) android
|
2142
2158
|
|
2143
2159
|
> def get_source
|
2144
2160
|
|
@@ -2152,7 +2168,7 @@ __Returns:__
|
|
2152
2168
|
|
2153
2169
|
--
|
2154
2170
|
|
2155
|
-
##### [_nodeset_to_uiselector](https://github.com/appium/ruby_lib/blob/
|
2171
|
+
##### [_nodeset_to_uiselector](https://github.com/appium/ruby_lib/blob/8451abba066beebd10491c6998ca53aaa35e331d/lib/appium_lib/android/client_xpath.rb#L5) android
|
2156
2172
|
|
2157
2173
|
> def _nodeset_to_uiselector(opts = {})
|
2158
2174
|
|
@@ -2160,7 +2176,7 @@ __Returns:__
|
|
2160
2176
|
|
2161
2177
|
--
|
2162
2178
|
|
2163
|
-
##### [_client_xpath](https://github.com/appium/ruby_lib/blob/
|
2179
|
+
##### [_client_xpath](https://github.com/appium/ruby_lib/blob/8451abba066beebd10491c6998ca53aaa35e331d/lib/appium_lib/android/client_xpath.rb#L20) android
|
2164
2180
|
|
2165
2181
|
> def _client_xpath(opts = {})
|
2166
2182
|
|
@@ -2168,7 +2184,7 @@ __Returns:__
|
|
2168
2184
|
|
2169
2185
|
--
|
2170
2186
|
|
2171
|
-
##### [client_xpath](https://github.com/appium/ruby_lib/blob/
|
2187
|
+
##### [client_xpath](https://github.com/appium/ruby_lib/blob/8451abba066beebd10491c6998ca53aaa35e331d/lib/appium_lib/android/client_xpath.rb#L36) android
|
2172
2188
|
|
2173
2189
|
> def client_xpath(xpath)
|
2174
2190
|
|
@@ -2176,7 +2192,7 @@ __Returns:__
|
|
2176
2192
|
|
2177
2193
|
--
|
2178
2194
|
|
2179
|
-
##### [client_xpaths](https://github.com/appium/ruby_lib/blob/
|
2195
|
+
##### [client_xpaths](https://github.com/appium/ruby_lib/blob/8451abba066beebd10491c6998ca53aaa35e331d/lib/appium_lib/android/client_xpath.rb#L40) android
|
2180
2196
|
|
2181
2197
|
> def client_xpaths(xpath)
|
2182
2198
|
|
@@ -2184,7 +2200,7 @@ __Returns:__
|
|
2184
2200
|
|
2185
2201
|
--
|
2186
2202
|
|
2187
|
-
##### [TextView](https://github.com/appium/ruby_lib/blob/
|
2203
|
+
##### [TextView](https://github.com/appium/ruby_lib/blob/8451abba066beebd10491c6998ca53aaa35e331d/lib/appium_lib/android/element/text.rb#L4) android
|
2188
2204
|
|
2189
2205
|
> TextView = 'android.widget.TextView'.freeze
|
2190
2206
|
|
@@ -2192,7 +2208,7 @@ __Returns:__
|
|
2192
2208
|
|
2193
2209
|
--
|
2194
2210
|
|
2195
|
-
##### [text](https://github.com/appium/ruby_lib/blob/
|
2211
|
+
##### [text](https://github.com/appium/ruby_lib/blob/8451abba066beebd10491c6998ca53aaa35e331d/lib/appium_lib/android/element/text.rb#L10) android
|
2196
2212
|
|
2197
2213
|
> def text(value)
|
2198
2214
|
|
@@ -2209,7 +2225,7 @@ __Returns:__
|
|
2209
2225
|
|
2210
2226
|
--
|
2211
2227
|
|
2212
|
-
##### [texts](https://github.com/appium/ruby_lib/blob/
|
2228
|
+
##### [texts](https://github.com/appium/ruby_lib/blob/8451abba066beebd10491c6998ca53aaa35e331d/lib/appium_lib/android/element/text.rb#L19) android
|
2213
2229
|
|
2214
2230
|
> def texts(value = false)
|
2215
2231
|
|
@@ -2226,7 +2242,7 @@ __Returns:__
|
|
2226
2242
|
|
2227
2243
|
--
|
2228
2244
|
|
2229
|
-
##### [first_text](https://github.com/appium/ruby_lib/blob/
|
2245
|
+
##### [first_text](https://github.com/appium/ruby_lib/blob/8451abba066beebd10491c6998ca53aaa35e331d/lib/appium_lib/android/element/text.rb#L26) android
|
2230
2246
|
|
2231
2247
|
> def first_text
|
2232
2248
|
|
@@ -2238,7 +2254,7 @@ __Returns:__
|
|
2238
2254
|
|
2239
2255
|
--
|
2240
2256
|
|
2241
|
-
##### [last_text](https://github.com/appium/ruby_lib/blob/
|
2257
|
+
##### [last_text](https://github.com/appium/ruby_lib/blob/8451abba066beebd10491c6998ca53aaa35e331d/lib/appium_lib/android/element/text.rb#L32) android
|
2242
2258
|
|
2243
2259
|
> def last_text
|
2244
2260
|
|
@@ -2250,7 +2266,7 @@ __Returns:__
|
|
2250
2266
|
|
2251
2267
|
--
|
2252
2268
|
|
2253
|
-
##### [text_exact](https://github.com/appium/ruby_lib/blob/
|
2269
|
+
##### [text_exact](https://github.com/appium/ruby_lib/blob/8451abba066beebd10491c6998ca53aaa35e331d/lib/appium_lib/android/element/text.rb#L39) android
|
2254
2270
|
|
2255
2271
|
> def text_exact(value)
|
2256
2272
|
|
@@ -2266,7 +2282,7 @@ __Returns:__
|
|
2266
2282
|
|
2267
2283
|
--
|
2268
2284
|
|
2269
|
-
##### [texts_exact](https://github.com/appium/ruby_lib/blob/
|
2285
|
+
##### [texts_exact](https://github.com/appium/ruby_lib/blob/8451abba066beebd10491c6998ca53aaa35e331d/lib/appium_lib/android/element/text.rb#L46) android
|
2270
2286
|
|
2271
2287
|
> def texts_exact(value)
|
2272
2288
|
|
@@ -2282,7 +2298,7 @@ __Returns:__
|
|
2282
2298
|
|
2283
2299
|
--
|
2284
2300
|
|
2285
|
-
##### [alert_click](https://github.com/appium/ruby_lib/blob/
|
2301
|
+
##### [alert_click](https://github.com/appium/ruby_lib/blob/8451abba066beebd10491c6998ca53aaa35e331d/lib/appium_lib/android/element/alert.rb#L6) android
|
2286
2302
|
|
2287
2303
|
> def alert_click(value)
|
2288
2304
|
|
@@ -2298,7 +2314,7 @@ __Returns:__
|
|
2298
2314
|
|
2299
2315
|
--
|
2300
2316
|
|
2301
|
-
##### [alert_accept](https://github.com/appium/ruby_lib/blob/
|
2317
|
+
##### [alert_accept](https://github.com/appium/ruby_lib/blob/8451abba066beebd10491c6998ca53aaa35e331d/lib/appium_lib/android/element/alert.rb#L13) android
|
2302
2318
|
|
2303
2319
|
> def alert_accept
|
2304
2320
|
|
@@ -2311,7 +2327,7 @@ __Returns:__
|
|
2311
2327
|
|
2312
2328
|
--
|
2313
2329
|
|
2314
|
-
##### [alert_accept_text](https://github.com/appium/ruby_lib/blob/
|
2330
|
+
##### [alert_accept_text](https://github.com/appium/ruby_lib/blob/8451abba066beebd10491c6998ca53aaa35e331d/lib/appium_lib/android/element/alert.rb#L20) android
|
2315
2331
|
|
2316
2332
|
> def alert_accept_text
|
2317
2333
|
|
@@ -2324,7 +2340,7 @@ __Returns:__
|
|
2324
2340
|
|
2325
2341
|
--
|
2326
2342
|
|
2327
|
-
##### [alert_dismiss](https://github.com/appium/ruby_lib/blob/
|
2343
|
+
##### [alert_dismiss](https://github.com/appium/ruby_lib/blob/8451abba066beebd10491c6998ca53aaa35e331d/lib/appium_lib/android/element/alert.rb#L27) android
|
2328
2344
|
|
2329
2345
|
> def alert_dismiss
|
2330
2346
|
|
@@ -2337,7 +2353,7 @@ __Returns:__
|
|
2337
2353
|
|
2338
2354
|
--
|
2339
2355
|
|
2340
|
-
##### [alert_dismiss_text](https://github.com/appium/ruby_lib/blob/
|
2356
|
+
##### [alert_dismiss_text](https://github.com/appium/ruby_lib/blob/8451abba066beebd10491c6998ca53aaa35e331d/lib/appium_lib/android/element/alert.rb#L34) android
|
2341
2357
|
|
2342
2358
|
> def alert_dismiss_text
|
2343
2359
|
|
@@ -2350,7 +2366,7 @@ __Returns:__
|
|
2350
2366
|
|
2351
2367
|
--
|
2352
2368
|
|
2353
|
-
##### [Button](https://github.com/appium/ruby_lib/blob/
|
2369
|
+
##### [Button](https://github.com/appium/ruby_lib/blob/8451abba066beebd10491c6998ca53aaa35e331d/lib/appium_lib/android/element/button.rb#L4) android
|
2354
2370
|
|
2355
2371
|
> Button = 'android.widget.Button'.freeze
|
2356
2372
|
|
@@ -2358,7 +2374,7 @@ __Returns:__
|
|
2358
2374
|
|
2359
2375
|
--
|
2360
2376
|
|
2361
|
-
##### [ImageButton](https://github.com/appium/ruby_lib/blob/
|
2377
|
+
##### [ImageButton](https://github.com/appium/ruby_lib/blob/8451abba066beebd10491c6998ca53aaa35e331d/lib/appium_lib/android/element/button.rb#L5) android
|
2362
2378
|
|
2363
2379
|
> ImageButton = 'android.widget.ImageButton'.freeze
|
2364
2380
|
|
@@ -2366,7 +2382,7 @@ __Returns:__
|
|
2366
2382
|
|
2367
2383
|
--
|
2368
2384
|
|
2369
|
-
##### [button](https://github.com/appium/ruby_lib/blob/
|
2385
|
+
##### [button](https://github.com/appium/ruby_lib/blob/8451abba066beebd10491c6998ca53aaa35e331d/lib/appium_lib/android/element/button.rb#L43) android
|
2370
2386
|
|
2371
2387
|
> def button(value)
|
2372
2388
|
|
@@ -2383,7 +2399,7 @@ __Returns:__
|
|
2383
2399
|
|
2384
2400
|
--
|
2385
2401
|
|
2386
|
-
##### [buttons](https://github.com/appium/ruby_lib/blob/
|
2402
|
+
##### [buttons](https://github.com/appium/ruby_lib/blob/8451abba066beebd10491c6998ca53aaa35e331d/lib/appium_lib/android/element/button.rb#L60) android
|
2387
2403
|
|
2388
2404
|
> def buttons(value = false)
|
2389
2405
|
|
@@ -2400,7 +2416,7 @@ __Returns:__
|
|
2400
2416
|
|
2401
2417
|
--
|
2402
2418
|
|
2403
|
-
##### [first_button](https://github.com/appium/ruby_lib/blob/
|
2419
|
+
##### [first_button](https://github.com/appium/ruby_lib/blob/8451abba066beebd10491c6998ca53aaa35e331d/lib/appium_lib/android/element/button.rb#L67) android
|
2404
2420
|
|
2405
2421
|
> def first_button
|
2406
2422
|
|
@@ -2412,7 +2428,7 @@ __Returns:__
|
|
2412
2428
|
|
2413
2429
|
--
|
2414
2430
|
|
2415
|
-
##### [last_button](https://github.com/appium/ruby_lib/blob/
|
2431
|
+
##### [last_button](https://github.com/appium/ruby_lib/blob/8451abba066beebd10491c6998ca53aaa35e331d/lib/appium_lib/android/element/button.rb#L73) android
|
2416
2432
|
|
2417
2433
|
> def last_button
|
2418
2434
|
|
@@ -2424,7 +2440,7 @@ __Returns:__
|
|
2424
2440
|
|
2425
2441
|
--
|
2426
2442
|
|
2427
|
-
##### [button_exact](https://github.com/appium/ruby_lib/blob/
|
2443
|
+
##### [button_exact](https://github.com/appium/ruby_lib/blob/8451abba066beebd10491c6998ca53aaa35e331d/lib/appium_lib/android/element/button.rb#L89) android
|
2428
2444
|
|
2429
2445
|
> def button_exact(value)
|
2430
2446
|
|
@@ -2440,7 +2456,7 @@ __Returns:__
|
|
2440
2456
|
|
2441
2457
|
--
|
2442
2458
|
|
2443
|
-
##### [buttons_exact](https://github.com/appium/ruby_lib/blob/
|
2459
|
+
##### [buttons_exact](https://github.com/appium/ruby_lib/blob/8451abba066beebd10491c6998ca53aaa35e331d/lib/appium_lib/android/element/button.rb#L96) android
|
2444
2460
|
|
2445
2461
|
> def buttons_exact(value)
|
2446
2462
|
|
@@ -2456,7 +2472,7 @@ __Returns:__
|
|
2456
2472
|
|
2457
2473
|
--
|
2458
2474
|
|
2459
|
-
##### [uiautomator_find](https://github.com/appium/ruby_lib/blob/
|
2475
|
+
##### [uiautomator_find](https://github.com/appium/ruby_lib/blob/8451abba066beebd10491c6998ca53aaa35e331d/lib/appium_lib/android/mobile_methods.rb#L10) android
|
2460
2476
|
|
2461
2477
|
> def uiautomator_find
|
2462
2478
|
|
@@ -2468,7 +2484,7 @@ find_element/s can be used with a [UISelector](http://developer.android.com/tool
|
|
2468
2484
|
|
2469
2485
|
--
|
2470
2486
|
|
2471
|
-
##### [find](https://github.com/appium/ruby_lib/blob/
|
2487
|
+
##### [find](https://github.com/appium/ruby_lib/blob/8451abba066beebd10491c6998ca53aaa35e331d/lib/appium_lib/android/element/generic.rb#L6) android
|
2472
2488
|
|
2473
2489
|
> def find(value)
|
2474
2490
|
|
@@ -2484,7 +2500,7 @@ __Returns:__
|
|
2484
2500
|
|
2485
2501
|
--
|
2486
2502
|
|
2487
|
-
##### [finds](https://github.com/appium/ruby_lib/blob/
|
2503
|
+
##### [finds](https://github.com/appium/ruby_lib/blob/8451abba066beebd10491c6998ca53aaa35e331d/lib/appium_lib/android/element/generic.rb#L13) android
|
2488
2504
|
|
2489
2505
|
> def finds(value)
|
2490
2506
|
|
@@ -2500,7 +2516,7 @@ __Returns:__
|
|
2500
2516
|
|
2501
2517
|
--
|
2502
2518
|
|
2503
|
-
##### [find_exact](https://github.com/appium/ruby_lib/blob/
|
2519
|
+
##### [find_exact](https://github.com/appium/ruby_lib/blob/8451abba066beebd10491c6998ca53aaa35e331d/lib/appium_lib/android/element/generic.rb#L20) android
|
2504
2520
|
|
2505
2521
|
> def find_exact(value)
|
2506
2522
|
|
@@ -2516,7 +2532,7 @@ __Returns:__
|
|
2516
2532
|
|
2517
2533
|
--
|
2518
2534
|
|
2519
|
-
##### [finds_exact](https://github.com/appium/ruby_lib/blob/
|
2535
|
+
##### [finds_exact](https://github.com/appium/ruby_lib/blob/8451abba066beebd10491c6998ca53aaa35e331d/lib/appium_lib/android/element/generic.rb#L27) android
|
2520
2536
|
|
2521
2537
|
> def finds_exact(value)
|
2522
2538
|
|
@@ -2532,7 +2548,7 @@ __Returns:__
|
|
2532
2548
|
|
2533
2549
|
--
|
2534
2550
|
|
2535
|
-
##### [scroll_to](https://github.com/appium/ruby_lib/blob/
|
2551
|
+
##### [scroll_to](https://github.com/appium/ruby_lib/blob/8451abba066beebd10491c6998ca53aaa35e331d/lib/appium_lib/android/element/generic.rb#L39) android
|
2536
2552
|
|
2537
2553
|
> def scroll_to(text)
|
2538
2554
|
|
@@ -2548,7 +2564,7 @@ __Returns:__
|
|
2548
2564
|
|
2549
2565
|
--
|
2550
2566
|
|
2551
|
-
##### [scroll_to_exact](https://github.com/appium/ruby_lib/blob/
|
2567
|
+
##### [scroll_to_exact](https://github.com/appium/ruby_lib/blob/8451abba066beebd10491c6998ca53aaa35e331d/lib/appium_lib/android/element/generic.rb#L51) android
|
2552
2568
|
|
2553
2569
|
> def scroll_to_exact(text)
|
2554
2570
|
|
@@ -2564,7 +2580,7 @@ __Returns:__
|
|
2564
2580
|
|
2565
2581
|
--
|
2566
2582
|
|
2567
|
-
##### [EditText](https://github.com/appium/ruby_lib/blob/
|
2583
|
+
##### [EditText](https://github.com/appium/ruby_lib/blob/8451abba066beebd10491c6998ca53aaa35e331d/lib/appium_lib/android/element/textfield.rb#L3) android
|
2568
2584
|
|
2569
2585
|
> EditText = 'android.widget.EditText'.freeze
|
2570
2586
|
|
@@ -2572,7 +2588,7 @@ __Returns:__
|
|
2572
2588
|
|
2573
2589
|
--
|
2574
2590
|
|
2575
|
-
##### [textfield](https://github.com/appium/ruby_lib/blob/
|
2591
|
+
##### [textfield](https://github.com/appium/ruby_lib/blob/8451abba066beebd10491c6998ca53aaa35e331d/lib/appium_lib/android/element/textfield.rb#L9) android
|
2576
2592
|
|
2577
2593
|
> def textfield(value)
|
2578
2594
|
|
@@ -2589,7 +2605,7 @@ __Returns:__
|
|
2589
2605
|
|
2590
2606
|
--
|
2591
2607
|
|
2592
|
-
##### [textfields](https://github.com/appium/ruby_lib/blob/
|
2608
|
+
##### [textfields](https://github.com/appium/ruby_lib/blob/8451abba066beebd10491c6998ca53aaa35e331d/lib/appium_lib/android/element/textfield.rb#L18) android
|
2593
2609
|
|
2594
2610
|
> def textfields(value = false)
|
2595
2611
|
|
@@ -2606,7 +2622,7 @@ __Returns:__
|
|
2606
2622
|
|
2607
2623
|
--
|
2608
2624
|
|
2609
|
-
##### [first_textfield](https://github.com/appium/ruby_lib/blob/
|
2625
|
+
##### [first_textfield](https://github.com/appium/ruby_lib/blob/8451abba066beebd10491c6998ca53aaa35e331d/lib/appium_lib/android/element/textfield.rb#L25) android
|
2610
2626
|
|
2611
2627
|
> def first_textfield
|
2612
2628
|
|
@@ -2618,7 +2634,7 @@ __Returns:__
|
|
2618
2634
|
|
2619
2635
|
--
|
2620
2636
|
|
2621
|
-
##### [last_textfield](https://github.com/appium/ruby_lib/blob/
|
2637
|
+
##### [last_textfield](https://github.com/appium/ruby_lib/blob/8451abba066beebd10491c6998ca53aaa35e331d/lib/appium_lib/android/element/textfield.rb#L31) android
|
2622
2638
|
|
2623
2639
|
> def last_textfield
|
2624
2640
|
|
@@ -2630,7 +2646,7 @@ __Returns:__
|
|
2630
2646
|
|
2631
2647
|
--
|
2632
2648
|
|
2633
|
-
##### [textfield_exact](https://github.com/appium/ruby_lib/blob/
|
2649
|
+
##### [textfield_exact](https://github.com/appium/ruby_lib/blob/8451abba066beebd10491c6998ca53aaa35e331d/lib/appium_lib/android/element/textfield.rb#L38) android
|
2634
2650
|
|
2635
2651
|
> def textfield_exact(value)
|
2636
2652
|
|
@@ -2646,7 +2662,7 @@ __Returns:__
|
|
2646
2662
|
|
2647
2663
|
--
|
2648
2664
|
|
2649
|
-
##### [textfields_exact](https://github.com/appium/ruby_lib/blob/
|
2665
|
+
##### [textfields_exact](https://github.com/appium/ruby_lib/blob/8451abba066beebd10491c6998ca53aaa35e331d/lib/appium_lib/android/element/textfield.rb#L45) android
|
2650
2666
|
|
2651
2667
|
> def textfields_exact(value)
|
2652
2668
|
|
@@ -2662,7 +2678,7 @@ __Returns:__
|
|
2662
2678
|
|
2663
2679
|
--
|
2664
2680
|
|
2665
|
-
##### [value](https://github.com/appium/ruby_lib/blob/
|
2681
|
+
##### [value](https://github.com/appium/ruby_lib/blob/8451abba066beebd10491c6998ca53aaa35e331d/lib/appium_lib/common/patch.rb#L12)
|
2666
2682
|
|
2667
2683
|
> def value
|
2668
2684
|
|
@@ -2672,7 +2688,7 @@ Fixes NoMethodError: undefined method `value' for Selenium::WebDriver::Element
|
|
2672
2688
|
|
2673
2689
|
--
|
2674
2690
|
|
2675
|
-
##### [name](https://github.com/appium/ruby_lib/blob/
|
2691
|
+
##### [name](https://github.com/appium/ruby_lib/blob/8451abba066beebd10491c6998ca53aaa35e331d/lib/appium_lib/common/patch.rb#L19)
|
2676
2692
|
|
2677
2693
|
> def name
|
2678
2694
|
|
@@ -2682,7 +2698,7 @@ Fixes NoMethodError: undefined method `name' for Selenium::WebDriver::Element
|
|
2682
2698
|
|
2683
2699
|
--
|
2684
2700
|
|
2685
|
-
##### [location_rel](https://github.com/appium/ruby_lib/blob/
|
2701
|
+
##### [location_rel](https://github.com/appium/ruby_lib/blob/8451abba066beebd10491c6998ca53aaa35e331d/lib/appium_lib/common/patch.rb#L31)
|
2686
2702
|
|
2687
2703
|
> def location_rel
|
2688
2704
|
|
@@ -2700,7 +2716,7 @@ __Returns:__
|
|
2700
2716
|
|
2701
2717
|
--
|
2702
2718
|
|
2703
|
-
##### [DEFAULT_HEADERS](https://github.com/appium/ruby_lib/blob/
|
2719
|
+
##### [DEFAULT_HEADERS](https://github.com/appium/ruby_lib/blob/8451abba066beebd10491c6998ca53aaa35e331d/lib/appium_lib/common/patch.rb#L152)
|
2704
2720
|
|
2705
2721
|
> DEFAULT_HEADERS = { 'Accept' => CONTENT_TYPE, 'User-Agent' => "appium/ruby_lib/#{::Appium::VERSION}" }.freeze
|
2706
2722
|
|
@@ -2708,7 +2724,7 @@ __Returns:__
|
|
2708
2724
|
|
2709
2725
|
--
|
2710
2726
|
|
2711
|
-
##### [patch_remote_driver_commands](https://github.com/appium/ruby_lib/blob/
|
2727
|
+
##### [patch_remote_driver_commands](https://github.com/appium/ruby_lib/blob/8451abba066beebd10491c6998ca53aaa35e331d/lib/appium_lib/common/patch.rb#L155)
|
2712
2728
|
|
2713
2729
|
> def patch_remote_driver_commands
|
2714
2730
|
|