appium_lib 10.3.1 → 10.4.0
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/appium_lib.gemspec +1 -1
- data/docs/android_docs.md +238 -212
- data/docs/ios_docs.md +284 -258
- data/lib/appium_lib/driver.rb +39 -1
- data/lib/appium_lib/version.rb +2 -2
- data/readme.md +0 -2
- data/release_notes.md +8 -0
- metadata +4 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 988da3db055af85801b0abdfe03797c346d40cefdcb9a52f2f262b81e09fb800
|
4
|
+
data.tar.gz: b88a151619c7a49145a1499a67ba76a4e7ca4f827a0926cc777d03202cd442df
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 38899ff597b85287e20e7a1df8ba9c0ef6fa0669b88bd9078ee54932fff24afa891356cb845e2188c5560b258b57e8a2935519a4abf4c242ef79e1fc0e10391a
|
7
|
+
data.tar.gz: 89e1b72b89e2e95c015116c516f37642e52e30dabf6cf0fac3e2acfddf92007e216d80389a6413e29861a1f0c8a0c4ab957b169a95a041c56d779f5679dfa640
|
data/CHANGELOG.md
CHANGED
@@ -10,6 +10,15 @@ Release tags are https://github.com/appium/ruby_lib/releases .
|
|
10
10
|
|
11
11
|
### 3. Deprecations
|
12
12
|
|
13
|
+
## v10.4.0
|
14
|
+
### 1. Enhancements
|
15
|
+
- Add `execute_driver` support
|
16
|
+
|
17
|
+
### 2. Bug fixes
|
18
|
+
- Fix wrong warning message in create session
|
19
|
+
|
20
|
+
### 3. Deprecations
|
21
|
+
|
13
22
|
## v10.3.1
|
14
23
|
### 1. Enhancements
|
15
24
|
|
data/appium_lib.gemspec
CHANGED
@@ -14,7 +14,7 @@ Gem::Specification.new do |s|
|
|
14
14
|
s.homepage = 'https://github.com/appium/ruby_lib' # published as appium_lib
|
15
15
|
s.require_paths = ['lib']
|
16
16
|
|
17
|
-
s.add_runtime_dependency 'appium_lib_core', '~> 3.
|
17
|
+
s.add_runtime_dependency 'appium_lib_core', '~> 3.2'
|
18
18
|
s.add_runtime_dependency 'nokogiri', '~> 1.8', '>= 1.8.1'
|
19
19
|
s.add_runtime_dependency 'tomlrb', '~> 1.1'
|
20
20
|
|
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/954a3a8d4d5cd56fa5a4e80d021805759dbf5e10/lib/appium_lib/appium.rb#L60) common
|
2
2
|
|
3
3
|
> def 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/954a3a8d4d5cd56fa5a4e80d021805759dbf5e10/lib/appium_lib/appium.rb#L96) common
|
31
31
|
|
32
32
|
> def load_settings(opts = {})
|
33
33
|
|
@@ -56,7 +56,7 @@ __Returns:__
|
|
56
56
|
|
57
57
|
--
|
58
58
|
|
59
|
-
##### [expand_required_files](https://github.com/appium/ruby_lib/blob/
|
59
|
+
##### [expand_required_files](https://github.com/appium/ruby_lib/blob/954a3a8d4d5cd56fa5a4e80d021805759dbf5e10/lib/appium_lib/appium.rb#L101) common
|
60
60
|
|
61
61
|
> def expand_required_files(base_dir, file_paths)
|
62
62
|
|
@@ -74,7 +74,7 @@ __Returns:__
|
|
74
74
|
|
75
75
|
--
|
76
76
|
|
77
|
-
##### [promote_singleton_appium_methods](https://github.com/appium/ruby_lib/blob/
|
77
|
+
##### [promote_singleton_appium_methods](https://github.com/appium/ruby_lib/blob/954a3a8d4d5cd56fa5a4e80d021805759dbf5e10/lib/appium_lib/appium.rb#L143) common
|
78
78
|
|
79
79
|
> def promote_singleton_appium_methods(modules, driver = $driver)
|
80
80
|
|
@@ -98,7 +98,7 @@ __Parameters:__
|
|
98
98
|
|
99
99
|
--
|
100
100
|
|
101
|
-
##### [promote_appium_methods](https://github.com/appium/ruby_lib/blob/
|
101
|
+
##### [promote_appium_methods](https://github.com/appium/ruby_lib/blob/954a3a8d4d5cd56fa5a4e80d021805759dbf5e10/lib/appium_lib/appium.rb#L199) common
|
102
102
|
|
103
103
|
> def promote_appium_methods(class_array, driver = $driver)
|
104
104
|
|
@@ -116,7 +116,7 @@ __Parameters:__
|
|
116
116
|
|
117
117
|
--
|
118
118
|
|
119
|
-
##### [global_webdriver_http_sleep](https://github.com/appium/ruby_lib/blob/
|
119
|
+
##### [global_webdriver_http_sleep](https://github.com/appium/ruby_lib/blob/954a3a8d4d5cd56fa5a4e80d021805759dbf5e10/lib/appium_lib/driver.rb#L49) common
|
120
120
|
|
121
121
|
> def global_webdriver_http_sleep
|
122
122
|
|
@@ -124,7 +124,7 @@ The amount to sleep in seconds before every webdriver http call.
|
|
124
124
|
|
125
125
|
--
|
126
126
|
|
127
|
-
##### [global_webdriver_http_sleep=](https://github.com/appium/ruby_lib/blob/
|
127
|
+
##### [global_webdriver_http_sleep=](https://github.com/appium/ruby_lib/blob/954a3a8d4d5cd56fa5a4e80d021805759dbf5e10/lib/appium_lib/driver.rb#L49) common
|
128
128
|
|
129
129
|
> def global_webdriver_http_sleep=(value)
|
130
130
|
|
@@ -132,7 +132,7 @@ The amount to sleep in seconds before every webdriver http call.
|
|
132
132
|
|
133
133
|
--
|
134
134
|
|
135
|
-
##### [sauce](https://github.com/appium/ruby_lib/blob/
|
135
|
+
##### [sauce](https://github.com/appium/ruby_lib/blob/954a3a8d4d5cd56fa5a4e80d021805759dbf5e10/lib/appium_lib/driver.rb#L52) common
|
136
136
|
|
137
137
|
> def sauce
|
138
138
|
|
@@ -140,7 +140,7 @@ SauceLab's settings
|
|
140
140
|
|
141
141
|
--
|
142
142
|
|
143
|
-
##### [sauce_username](https://github.com/appium/ruby_lib/blob/
|
143
|
+
##### [sauce_username](https://github.com/appium/ruby_lib/blob/954a3a8d4d5cd56fa5a4e80d021805759dbf5e10/lib/appium_lib/driver.rb#L55) common
|
144
144
|
|
145
145
|
> def sauce_username
|
146
146
|
|
@@ -149,7 +149,7 @@ same as @sauce.username
|
|
149
149
|
|
150
150
|
--
|
151
151
|
|
152
|
-
##### [sauce_access_key](https://github.com/appium/ruby_lib/blob/
|
152
|
+
##### [sauce_access_key](https://github.com/appium/ruby_lib/blob/954a3a8d4d5cd56fa5a4e80d021805759dbf5e10/lib/appium_lib/driver.rb#L58) common
|
153
153
|
|
154
154
|
> def sauce_access_key
|
155
155
|
|
@@ -158,7 +158,7 @@ same as @sauce.access_key
|
|
158
158
|
|
159
159
|
--
|
160
160
|
|
161
|
-
##### [sauce_endpoint](https://github.com/appium/ruby_lib/blob/
|
161
|
+
##### [sauce_endpoint](https://github.com/appium/ruby_lib/blob/954a3a8d4d5cd56fa5a4e80d021805759dbf5e10/lib/appium_lib/driver.rb#L61) common
|
162
162
|
|
163
163
|
> def sauce_endpoint
|
164
164
|
|
@@ -167,7 +167,7 @@ same as @sauce.endpoint
|
|
167
167
|
|
168
168
|
--
|
169
169
|
|
170
|
-
##### [caps](https://github.com/appium/ruby_lib/blob/
|
170
|
+
##### [caps](https://github.com/appium/ruby_lib/blob/954a3a8d4d5cd56fa5a4e80d021805759dbf5e10/lib/appium_lib/driver.rb#L65) common
|
171
171
|
|
172
172
|
> def caps
|
173
173
|
|
@@ -176,7 +176,7 @@ read http://www.rubydoc.info/github/appium/ruby_lib_core/Appium/Core/Driver
|
|
176
176
|
|
177
177
|
--
|
178
178
|
|
179
|
-
##### [custom_url](https://github.com/appium/ruby_lib/blob/
|
179
|
+
##### [custom_url](https://github.com/appium/ruby_lib/blob/954a3a8d4d5cd56fa5a4e80d021805759dbf5e10/lib/appium_lib/driver.rb#L66) common
|
180
180
|
|
181
181
|
> def custom_url
|
182
182
|
|
@@ -184,7 +184,7 @@ Returns the value of attribute custom_url
|
|
184
184
|
|
185
185
|
--
|
186
186
|
|
187
|
-
##### [export_session](https://github.com/appium/ruby_lib/blob/
|
187
|
+
##### [export_session](https://github.com/appium/ruby_lib/blob/954a3a8d4d5cd56fa5a4e80d021805759dbf5e10/lib/appium_lib/driver.rb#L67) common
|
188
188
|
|
189
189
|
> def export_session
|
190
190
|
|
@@ -192,7 +192,7 @@ Returns the value of attribute export_session
|
|
192
192
|
|
193
193
|
--
|
194
194
|
|
195
|
-
##### [export_session_path](https://github.com/appium/ruby_lib/blob/
|
195
|
+
##### [export_session_path](https://github.com/appium/ruby_lib/blob/954a3a8d4d5cd56fa5a4e80d021805759dbf5e10/lib/appium_lib/driver.rb#L68) common
|
196
196
|
|
197
197
|
> def export_session_path
|
198
198
|
|
@@ -200,7 +200,7 @@ Returns the value of attribute export_session_path
|
|
200
200
|
|
201
201
|
--
|
202
202
|
|
203
|
-
##### [default_wait](https://github.com/appium/ruby_lib/blob/
|
203
|
+
##### [default_wait](https://github.com/appium/ruby_lib/blob/954a3a8d4d5cd56fa5a4e80d021805759dbf5e10/lib/appium_lib/driver.rb#L69) common
|
204
204
|
|
205
205
|
> def default_wait
|
206
206
|
|
@@ -208,7 +208,7 @@ Returns the value of attribute default_wait
|
|
208
208
|
|
209
209
|
--
|
210
210
|
|
211
|
-
##### [appium_port](https://github.com/appium/ruby_lib/blob/
|
211
|
+
##### [appium_port](https://github.com/appium/ruby_lib/blob/954a3a8d4d5cd56fa5a4e80d021805759dbf5e10/lib/appium_lib/driver.rb#L70) common
|
212
212
|
|
213
213
|
> def appium_port
|
214
214
|
|
@@ -216,7 +216,7 @@ Returns the value of attribute appium_port
|
|
216
216
|
|
217
217
|
--
|
218
218
|
|
219
|
-
##### [appium_device](https://github.com/appium/ruby_lib/blob/
|
219
|
+
##### [appium_device](https://github.com/appium/ruby_lib/blob/954a3a8d4d5cd56fa5a4e80d021805759dbf5e10/lib/appium_lib/driver.rb#L71) common
|
220
220
|
|
221
221
|
> def appium_device
|
222
222
|
|
@@ -224,7 +224,7 @@ Returns the value of attribute appium_device
|
|
224
224
|
|
225
225
|
--
|
226
226
|
|
227
|
-
##### [automation_name](https://github.com/appium/ruby_lib/blob/
|
227
|
+
##### [automation_name](https://github.com/appium/ruby_lib/blob/954a3a8d4d5cd56fa5a4e80d021805759dbf5e10/lib/appium_lib/driver.rb#L72) common
|
228
228
|
|
229
229
|
> def automation_name
|
230
230
|
|
@@ -232,7 +232,7 @@ Returns the value of attribute automation_name
|
|
232
232
|
|
233
233
|
--
|
234
234
|
|
235
|
-
##### [listener](https://github.com/appium/ruby_lib/blob/
|
235
|
+
##### [listener](https://github.com/appium/ruby_lib/blob/954a3a8d4d5cd56fa5a4e80d021805759dbf5e10/lib/appium_lib/driver.rb#L73) common
|
236
236
|
|
237
237
|
> def listener
|
238
238
|
|
@@ -240,7 +240,7 @@ Returns the value of attribute listener
|
|
240
240
|
|
241
241
|
--
|
242
242
|
|
243
|
-
##### [http_client](https://github.com/appium/ruby_lib/blob/
|
243
|
+
##### [http_client](https://github.com/appium/ruby_lib/blob/954a3a8d4d5cd56fa5a4e80d021805759dbf5e10/lib/appium_lib/driver.rb#L74) common
|
244
244
|
|
245
245
|
> def http_client
|
246
246
|
|
@@ -248,7 +248,7 @@ Returns the value of attribute http_client
|
|
248
248
|
|
249
249
|
--
|
250
250
|
|
251
|
-
##### [appium_wait_timeout](https://github.com/appium/ruby_lib/blob/
|
251
|
+
##### [appium_wait_timeout](https://github.com/appium/ruby_lib/blob/954a3a8d4d5cd56fa5a4e80d021805759dbf5e10/lib/appium_lib/driver.rb#L75) common
|
252
252
|
|
253
253
|
> def appium_wait_timeout
|
254
254
|
|
@@ -256,7 +256,7 @@ Returns the value of attribute appium_wait_timeout
|
|
256
256
|
|
257
257
|
--
|
258
258
|
|
259
|
-
##### [appium_wait_interval](https://github.com/appium/ruby_lib/blob/
|
259
|
+
##### [appium_wait_interval](https://github.com/appium/ruby_lib/blob/954a3a8d4d5cd56fa5a4e80d021805759dbf5e10/lib/appium_lib/driver.rb#L76) common
|
260
260
|
|
261
261
|
> def appium_wait_interval
|
262
262
|
|
@@ -264,7 +264,7 @@ Returns the value of attribute appium_wait_interval
|
|
264
264
|
|
265
265
|
--
|
266
266
|
|
267
|
-
##### [appium_server_status](https://github.com/appium/ruby_lib/blob/
|
267
|
+
##### [appium_server_status](https://github.com/appium/ruby_lib/blob/954a3a8d4d5cd56fa5a4e80d021805759dbf5e10/lib/appium_lib/driver.rb#L79) common
|
268
268
|
|
269
269
|
> def appium_server_status
|
270
270
|
|
@@ -272,7 +272,7 @@ Appium's server version
|
|
272
272
|
|
273
273
|
--
|
274
274
|
|
275
|
-
##### [appium_debug](https://github.com/appium/ruby_lib/blob/
|
275
|
+
##### [appium_debug](https://github.com/appium/ruby_lib/blob/954a3a8d4d5cd56fa5a4e80d021805759dbf5e10/lib/appium_lib/driver.rb#L81) common
|
276
276
|
|
277
277
|
> def appium_debug
|
278
278
|
|
@@ -280,7 +280,7 @@ Boolean debug mode for the Appium Ruby bindings
|
|
280
280
|
|
281
281
|
--
|
282
282
|
|
283
|
-
##### [driver](https://github.com/appium/ruby_lib/blob/
|
283
|
+
##### [driver](https://github.com/appium/ruby_lib/blob/954a3a8d4d5cd56fa5a4e80d021805759dbf5e10/lib/appium_lib/driver.rb#L84) common
|
284
284
|
|
285
285
|
> def driver
|
286
286
|
|
@@ -292,7 +292,7 @@ __Returns:__
|
|
292
292
|
|
293
293
|
--
|
294
294
|
|
295
|
-
##### [core](https://github.com/appium/ruby_lib/blob/
|
295
|
+
##### [core](https://github.com/appium/ruby_lib/blob/954a3a8d4d5cd56fa5a4e80d021805759dbf5e10/lib/appium_lib/driver.rb#L86) common
|
296
296
|
|
297
297
|
> def core
|
298
298
|
|
@@ -300,7 +300,7 @@ Instance of Appium::Core::Driver
|
|
300
300
|
|
301
301
|
--
|
302
302
|
|
303
|
-
##### [initialize](https://github.com/appium/ruby_lib/blob/
|
303
|
+
##### [initialize](https://github.com/appium/ruby_lib/blob/954a3a8d4d5cd56fa5a4e80d021805759dbf5e10/lib/appium_lib/driver.rb#L154) common
|
304
304
|
|
305
305
|
> def initialize(opts = {}, global_driver = nil)
|
306
306
|
|
@@ -319,7 +319,7 @@ __Returns:__
|
|
319
319
|
|
320
320
|
--
|
321
321
|
|
322
|
-
##### [driver_attributes](https://github.com/appium/ruby_lib/blob/
|
322
|
+
##### [driver_attributes](https://github.com/appium/ruby_lib/blob/954a3a8d4d5cd56fa5a4e80d021805759dbf5e10/lib/appium_lib/driver.rb#L279) common
|
323
323
|
|
324
324
|
> def driver_attributes
|
325
325
|
|
@@ -327,7 +327,7 @@ Returns a hash of the driver attributes
|
|
327
327
|
|
328
328
|
--
|
329
329
|
|
330
|
-
##### [device_is_android?](https://github.com/appium/ruby_lib/blob/
|
330
|
+
##### [device_is_android?](https://github.com/appium/ruby_lib/blob/954a3a8d4d5cd56fa5a4e80d021805759dbf5e10/lib/appium_lib/driver.rb#L301) common
|
331
331
|
|
332
332
|
> def device_is_android?
|
333
333
|
|
@@ -339,7 +339,7 @@ __Returns:__
|
|
339
339
|
|
340
340
|
--
|
341
341
|
|
342
|
-
##### [device_is_ios?](https://github.com/appium/ruby_lib/blob/
|
342
|
+
##### [device_is_ios?](https://github.com/appium/ruby_lib/blob/954a3a8d4d5cd56fa5a4e80d021805759dbf5e10/lib/appium_lib/driver.rb#L305) common
|
343
343
|
|
344
344
|
> def device_is_ios?
|
345
345
|
|
@@ -351,7 +351,7 @@ __Returns:__
|
|
351
351
|
|
352
352
|
--
|
353
353
|
|
354
|
-
##### [device_is_windows?](https://github.com/appium/ruby_lib/blob/
|
354
|
+
##### [device_is_windows?](https://github.com/appium/ruby_lib/blob/954a3a8d4d5cd56fa5a4e80d021805759dbf5e10/lib/appium_lib/driver.rb#L309) common
|
355
355
|
|
356
356
|
> def device_is_windows?
|
357
357
|
|
@@ -363,7 +363,7 @@ __Returns:__
|
|
363
363
|
|
364
364
|
--
|
365
365
|
|
366
|
-
##### [automation_name_is_uiautomator2?](https://github.com/appium/ruby_lib/blob/
|
366
|
+
##### [automation_name_is_uiautomator2?](https://github.com/appium/ruby_lib/blob/954a3a8d4d5cd56fa5a4e80d021805759dbf5e10/lib/appium_lib/driver.rb#L315) common
|
367
367
|
|
368
368
|
> def automation_name_is_uiautomator2?
|
369
369
|
|
@@ -375,7 +375,7 @@ __Returns:__
|
|
375
375
|
|
376
376
|
--
|
377
377
|
|
378
|
-
##### [automation_name_is_espresso?](https://github.com/appium/ruby_lib/blob/
|
378
|
+
##### [automation_name_is_espresso?](https://github.com/appium/ruby_lib/blob/954a3a8d4d5cd56fa5a4e80d021805759dbf5e10/lib/appium_lib/driver.rb#L321) common
|
379
379
|
|
380
380
|
> def automation_name_is_espresso?
|
381
381
|
|
@@ -387,7 +387,7 @@ __Returns:__
|
|
387
387
|
|
388
388
|
--
|
389
389
|
|
390
|
-
##### [automation_name_is_xcuitest?](https://github.com/appium/ruby_lib/blob/
|
390
|
+
##### [automation_name_is_xcuitest?](https://github.com/appium/ruby_lib/blob/954a3a8d4d5cd56fa5a4e80d021805759dbf5e10/lib/appium_lib/driver.rb#L327) common
|
391
391
|
|
392
392
|
> def automation_name_is_xcuitest?
|
393
393
|
|
@@ -399,7 +399,7 @@ __Returns:__
|
|
399
399
|
|
400
400
|
--
|
401
401
|
|
402
|
-
##### [dialect](https://github.com/appium/ruby_lib/blob/
|
402
|
+
##### [dialect](https://github.com/appium/ruby_lib/blob/954a3a8d4d5cd56fa5a4e80d021805759dbf5e10/lib/appium_lib/driver.rb#L347) common
|
403
403
|
|
404
404
|
> def dialect
|
405
405
|
|
@@ -421,7 +421,7 @@ __Returns:__
|
|
421
421
|
|
422
422
|
--
|
423
423
|
|
424
|
-
##### [action](https://github.com/appium/ruby_lib/blob/
|
424
|
+
##### [action](https://github.com/appium/ruby_lib/blob/954a3a8d4d5cd56fa5a4e80d021805759dbf5e10/lib/appium_lib/driver.rb#L361) common
|
425
425
|
|
426
426
|
> def action
|
427
427
|
|
@@ -434,7 +434,7 @@ __Returns:__
|
|
434
434
|
|
435
435
|
--
|
436
436
|
|
437
|
-
##### [appium_server_version](https://github.com/appium/ruby_lib/blob/
|
437
|
+
##### [appium_server_version](https://github.com/appium/ruby_lib/blob/954a3a8d4d5cd56fa5a4e80d021805759dbf5e10/lib/appium_lib/driver.rb#L381) common
|
438
438
|
|
439
439
|
> def appium_server_version
|
440
440
|
|
@@ -446,7 +446,7 @@ __Returns:__
|
|
446
446
|
|
447
447
|
--
|
448
448
|
|
449
|
-
##### [remote_status](https://github.com/appium/ruby_lib/blob/
|
449
|
+
##### [remote_status](https://github.com/appium/ruby_lib/blob/954a3a8d4d5cd56fa5a4e80d021805759dbf5e10/lib/appium_lib/driver.rb#L389) common
|
450
450
|
|
451
451
|
> def appium_server_version
|
452
452
|
|
@@ -458,7 +458,7 @@ __Returns:__
|
|
458
458
|
|
459
459
|
--
|
460
460
|
|
461
|
-
##### [platform_version](https://github.com/appium/ruby_lib/blob/
|
461
|
+
##### [platform_version](https://github.com/appium/ruby_lib/blob/954a3a8d4d5cd56fa5a4e80d021805759dbf5e10/lib/appium_lib/driver.rb#L393) common
|
462
462
|
|
463
463
|
> def platform_version
|
464
464
|
|
@@ -470,7 +470,7 @@ __Returns:__
|
|
470
470
|
|
471
471
|
--
|
472
472
|
|
473
|
-
##### [appium_client_version](https://github.com/appium/ruby_lib/blob/
|
473
|
+
##### [appium_client_version](https://github.com/appium/ruby_lib/blob/954a3a8d4d5cd56fa5a4e80d021805759dbf5e10/lib/appium_lib/driver.rb#L406) common
|
474
474
|
|
475
475
|
> def appium_client_version
|
476
476
|
|
@@ -482,7 +482,7 @@ __Returns:__
|
|
482
482
|
|
483
483
|
--
|
484
484
|
|
485
|
-
##### [absolute_app_path](https://github.com/appium/ruby_lib/blob/
|
485
|
+
##### [absolute_app_path](https://github.com/appium/ruby_lib/blob/954a3a8d4d5cd56fa5a4e80d021805759dbf5e10/lib/appium_lib/driver.rb#L418) common
|
486
486
|
|
487
487
|
> def self.absolute_app_path(opts)
|
488
488
|
|
@@ -499,7 +499,7 @@ __Returns:__
|
|
499
499
|
|
500
500
|
--
|
501
501
|
|
502
|
-
##### [server_url](https://github.com/appium/ruby_lib/blob/
|
502
|
+
##### [server_url](https://github.com/appium/ruby_lib/blob/954a3a8d4d5cd56fa5a4e80d021805759dbf5e10/lib/appium_lib/driver.rb#L441) common
|
503
503
|
|
504
504
|
> def server_url
|
505
505
|
|
@@ -511,7 +511,7 @@ __Returns:__
|
|
511
511
|
|
512
512
|
--
|
513
513
|
|
514
|
-
##### [restart](https://github.com/appium/ruby_lib/blob/
|
514
|
+
##### [restart](https://github.com/appium/ruby_lib/blob/954a3a8d4d5cd56fa5a4e80d021805759dbf5e10/lib/appium_lib/driver.rb#L450) common
|
515
515
|
|
516
516
|
> def restart
|
517
517
|
|
@@ -523,7 +523,7 @@ __Returns:__
|
|
523
523
|
|
524
524
|
--
|
525
525
|
|
526
|
-
##### [screenshot](https://github.com/appium/ruby_lib/blob/
|
526
|
+
##### [screenshot](https://github.com/appium/ruby_lib/blob/954a3a8d4d5cd56fa5a4e80d021805759dbf5e10/lib/appium_lib/driver.rb#L463) common
|
527
527
|
|
528
528
|
> def screenshot(png_save_path)
|
529
529
|
|
@@ -539,7 +539,7 @@ __Returns:__
|
|
539
539
|
|
540
540
|
--
|
541
541
|
|
542
|
-
##### [element_screenshot](https://github.com/appium/ruby_lib/blob/
|
542
|
+
##### [element_screenshot](https://github.com/appium/ruby_lib/blob/954a3a8d4d5cd56fa5a4e80d021805759dbf5e10/lib/appium_lib/driver.rb#L477) common
|
543
543
|
|
544
544
|
> def element_screenshot(element, png_save_path)
|
545
545
|
|
@@ -557,7 +557,7 @@ __Returns:__
|
|
557
557
|
|
558
558
|
--
|
559
559
|
|
560
|
-
##### [driver_quit](https://github.com/appium/ruby_lib/blob/
|
560
|
+
##### [driver_quit](https://github.com/appium/ruby_lib/blob/954a3a8d4d5cd56fa5a4e80d021805759dbf5e10/lib/appium_lib/driver.rb#L484) common
|
561
561
|
|
562
562
|
> def driver_quit
|
563
563
|
|
@@ -569,7 +569,7 @@ __Returns:__
|
|
569
569
|
|
570
570
|
--
|
571
571
|
|
572
|
-
##### [quit_driver](https://github.com/appium/ruby_lib/blob/
|
572
|
+
##### [quit_driver](https://github.com/appium/ruby_lib/blob/954a3a8d4d5cd56fa5a4e80d021805759dbf5e10/lib/appium_lib/driver.rb#L487) common
|
573
573
|
|
574
574
|
> def driver_quit
|
575
575
|
|
@@ -581,7 +581,7 @@ __Returns:__
|
|
581
581
|
|
582
582
|
--
|
583
583
|
|
584
|
-
##### [window_size](https://github.com/appium/ruby_lib/blob/
|
584
|
+
##### [window_size](https://github.com/appium/ruby_lib/blob/954a3a8d4d5cd56fa5a4e80d021805759dbf5e10/lib/appium_lib/driver.rb#L498) common
|
585
585
|
|
586
586
|
> def window_size
|
587
587
|
|
@@ -593,7 +593,7 @@ __Returns:__
|
|
593
593
|
|
594
594
|
--
|
595
595
|
|
596
|
-
##### [window_rect](https://github.com/appium/ruby_lib/blob/
|
596
|
+
##### [window_rect](https://github.com/appium/ruby_lib/blob/954a3a8d4d5cd56fa5a4e80d021805759dbf5e10/lib/appium_lib/driver.rb#L513) common
|
597
597
|
|
598
598
|
> def window_rect
|
599
599
|
|
@@ -605,7 +605,7 @@ __Returns:__
|
|
605
605
|
|
606
606
|
--
|
607
607
|
|
608
|
-
##### [start_driver](https://github.com/appium/ruby_lib/blob/
|
608
|
+
##### [start_driver](https://github.com/appium/ruby_lib/blob/954a3a8d4d5cd56fa5a4e80d021805759dbf5e10/lib/appium_lib/driver.rb#L546) common
|
609
609
|
|
610
610
|
> def start_driver(http_client_ops =
|
611
611
|
|
@@ -625,7 +625,7 @@ __Returns:__
|
|
625
625
|
|
626
626
|
--
|
627
627
|
|
628
|
-
##### [set_implicit_wait](https://github.com/appium/ruby_lib/blob/
|
628
|
+
##### [set_implicit_wait](https://github.com/appium/ruby_lib/blob/954a3a8d4d5cd56fa5a4e80d021805759dbf5e10/lib/appium_lib/driver.rb#L567) common
|
629
629
|
|
630
630
|
> def set_implicit_wait(wait)
|
631
631
|
|
@@ -633,7 +633,7 @@ To ignore error for Espresso Driver
|
|
633
633
|
|
634
634
|
--
|
635
635
|
|
636
|
-
##### [no_wait](https://github.com/appium/ruby_lib/blob/
|
636
|
+
##### [no_wait](https://github.com/appium/ruby_lib/blob/954a3a8d4d5cd56fa5a4e80d021805759dbf5e10/lib/appium_lib/driver.rb#L578) common
|
637
637
|
|
638
638
|
> def no_wait
|
639
639
|
|
@@ -641,7 +641,7 @@ Set implicit wait to zero.
|
|
641
641
|
|
642
642
|
--
|
643
643
|
|
644
|
-
##### [set_wait](https://github.com/appium/ruby_lib/blob/
|
644
|
+
##### [set_wait](https://github.com/appium/ruby_lib/blob/954a3a8d4d5cd56fa5a4e80d021805759dbf5e10/lib/appium_lib/driver.rb#L592) common
|
645
645
|
|
646
646
|
> def set_wait(timeout = nil)
|
647
647
|
|
@@ -657,7 +657,7 @@ __Returns:__
|
|
657
657
|
|
658
658
|
--
|
659
659
|
|
660
|
-
##### [exists](https://github.com/appium/ruby_lib/blob/
|
660
|
+
##### [exists](https://github.com/appium/ruby_lib/blob/954a3a8d4d5cd56fa5a4e80d021805759dbf5e10/lib/appium_lib/driver.rb#L609) common
|
661
661
|
|
662
662
|
> def exists(pre_check = 0, post_check = @core.default_wait)
|
663
663
|
|
@@ -681,7 +681,7 @@ __Returns:__
|
|
681
681
|
|
682
682
|
--
|
683
683
|
|
684
|
-
##### [execute_script](https://github.com/appium/ruby_lib/blob/
|
684
|
+
##### [execute_script](https://github.com/appium/ruby_lib/blob/954a3a8d4d5cd56fa5a4e80d021805759dbf5e10/lib/appium_lib/driver.rb#L633) common
|
685
685
|
|
686
686
|
> def execute_script(script, *args)
|
687
687
|
|
@@ -699,7 +699,7 @@ __Returns:__
|
|
699
699
|
|
700
700
|
--
|
701
701
|
|
702
|
-
##### [execute_async_script](https://github.com/appium/ruby_lib/blob/
|
702
|
+
##### [execute_async_script](https://github.com/appium/ruby_lib/blob/954a3a8d4d5cd56fa5a4e80d021805759dbf5e10/lib/appium_lib/driver.rb#L641) common
|
703
703
|
|
704
704
|
> def execute_async_script(script, *args)
|
705
705
|
|
@@ -709,7 +709,33 @@ Get the window handles of open browser windows
|
|
709
709
|
|
710
710
|
--
|
711
711
|
|
712
|
-
##### [
|
712
|
+
##### [execute_driver](https://github.com/appium/ruby_lib/blob/954a3a8d4d5cd56fa5a4e80d021805759dbf5e10/lib/appium_lib/driver.rb#L673) common
|
713
|
+
|
714
|
+
> def execute_driver(script: '', type: 'webdriverio', timeout_ms: nil)
|
715
|
+
|
716
|
+
Run a set of script against the current session, allowing execution of many commands in one Appium request.
|
717
|
+
Supports {https://webdriver.io/docs/api.html WebdriverIO} API so far.
|
718
|
+
Please read {http://appium.io/docs/en/commands/session/execute-driver command API} for more details
|
719
|
+
about acceptable scripts and the output.
|
720
|
+
|
721
|
+
__Parameters:__
|
722
|
+
|
723
|
+
[String] script - The string consisting of the script itself
|
724
|
+
|
725
|
+
[String] type - The name of the script type.
|
726
|
+
Defaults to 'webdriverio'. Depends on server implementation which type is supported.
|
727
|
+
|
728
|
+
[Integer] timeout_ms - The number of `ms` Appium should wait for the script to finish
|
729
|
+
before killing it due to timeout.
|
730
|
+
|
731
|
+
__Returns:__
|
732
|
+
|
733
|
+
[Appium::Core::Base::Device::ExecuteDriver::Result] The script result parsed by
|
734
|
+
Appium::Core::Base::Device::ExecuteDriver::Result.
|
735
|
+
|
736
|
+
--
|
737
|
+
|
738
|
+
##### [window_handles](https://github.com/appium/ruby_lib/blob/954a3a8d4d5cd56fa5a4e80d021805759dbf5e10/lib/appium_lib/driver.rb#L677) common
|
713
739
|
|
714
740
|
> def window_handles
|
715
741
|
|
@@ -717,7 +743,7 @@ Get the window handles of open browser windows
|
|
717
743
|
|
718
744
|
--
|
719
745
|
|
720
|
-
##### [window_handle](https://github.com/appium/ruby_lib/blob/
|
746
|
+
##### [window_handle](https://github.com/appium/ruby_lib/blob/954a3a8d4d5cd56fa5a4e80d021805759dbf5e10/lib/appium_lib/driver.rb#L682) common
|
721
747
|
|
722
748
|
> def window_handle
|
723
749
|
|
@@ -725,7 +751,7 @@ Get the current window handle
|
|
725
751
|
|
726
752
|
--
|
727
753
|
|
728
|
-
##### [navigate](https://github.com/appium/ruby_lib/blob/
|
754
|
+
##### [navigate](https://github.com/appium/ruby_lib/blob/954a3a8d4d5cd56fa5a4e80d021805759dbf5e10/lib/appium_lib/driver.rb#L686) common
|
729
755
|
|
730
756
|
> def navigate
|
731
757
|
|
@@ -733,7 +759,7 @@ Get the current window handle
|
|
733
759
|
|
734
760
|
--
|
735
761
|
|
736
|
-
##### [manage](https://github.com/appium/ruby_lib/blob/
|
762
|
+
##### [manage](https://github.com/appium/ruby_lib/blob/954a3a8d4d5cd56fa5a4e80d021805759dbf5e10/lib/appium_lib/driver.rb#L690) common
|
737
763
|
|
738
764
|
> def manage
|
739
765
|
|
@@ -741,7 +767,7 @@ Get the current window handle
|
|
741
767
|
|
742
768
|
--
|
743
769
|
|
744
|
-
##### [get](https://github.com/appium/ruby_lib/blob/
|
770
|
+
##### [get](https://github.com/appium/ruby_lib/blob/954a3a8d4d5cd56fa5a4e80d021805759dbf5e10/lib/appium_lib/driver.rb#L694) common
|
745
771
|
|
746
772
|
> def get(url)
|
747
773
|
|
@@ -749,7 +775,7 @@ Get the current window handle
|
|
749
775
|
|
750
776
|
--
|
751
777
|
|
752
|
-
##### [current_url](https://github.com/appium/ruby_lib/blob/
|
778
|
+
##### [current_url](https://github.com/appium/ruby_lib/blob/954a3a8d4d5cd56fa5a4e80d021805759dbf5e10/lib/appium_lib/driver.rb#L698) common
|
753
779
|
|
754
780
|
> def current_url
|
755
781
|
|
@@ -757,7 +783,7 @@ Get the current window handle
|
|
757
783
|
|
758
784
|
--
|
759
785
|
|
760
|
-
##### [title](https://github.com/appium/ruby_lib/blob/
|
786
|
+
##### [title](https://github.com/appium/ruby_lib/blob/954a3a8d4d5cd56fa5a4e80d021805759dbf5e10/lib/appium_lib/driver.rb#L702) common
|
761
787
|
|
762
788
|
> def title
|
763
789
|
|
@@ -765,7 +791,7 @@ Get the current window handle
|
|
765
791
|
|
766
792
|
--
|
767
793
|
|
768
|
-
##### [switch_to](https://github.com/appium/ruby_lib/blob/
|
794
|
+
##### [switch_to](https://github.com/appium/ruby_lib/blob/954a3a8d4d5cd56fa5a4e80d021805759dbf5e10/lib/appium_lib/driver.rb#L708) common
|
769
795
|
|
770
796
|
> def switch_to
|
771
797
|
|
@@ -777,7 +803,7 @@ __Returns:__
|
|
777
803
|
|
778
804
|
--
|
779
805
|
|
780
|
-
##### [find_elements](https://github.com/appium/ruby_lib/blob/
|
806
|
+
##### [find_elements](https://github.com/appium/ruby_lib/blob/954a3a8d4d5cd56fa5a4e80d021805759dbf5e10/lib/appium_lib/driver.rb#L735) common
|
781
807
|
|
782
808
|
> def find_elements(*args)
|
783
809
|
|
@@ -797,7 +823,7 @@ __Returns:__
|
|
797
823
|
|
798
824
|
--
|
799
825
|
|
800
|
-
##### [find_element](https://github.com/appium/ruby_lib/blob/
|
826
|
+
##### [find_element](https://github.com/appium/ruby_lib/blob/954a3a8d4d5cd56fa5a4e80d021805759dbf5e10/lib/appium_lib/driver.rb#L751) common
|
801
827
|
|
802
828
|
> def find_element(*args)
|
803
829
|
|
@@ -815,7 +841,7 @@ __Returns:__
|
|
815
841
|
|
816
842
|
--
|
817
843
|
|
818
|
-
##### [find_element_by_image](https://github.com/appium/ruby_lib/blob/
|
844
|
+
##### [find_element_by_image](https://github.com/appium/ruby_lib/blob/954a3a8d4d5cd56fa5a4e80d021805759dbf5e10/lib/appium_lib/driver.rb#L766) common
|
819
845
|
|
820
846
|
> def find_element_by_image(png_img_path)
|
821
847
|
|
@@ -831,7 +857,7 @@ __Returns:__
|
|
831
857
|
|
832
858
|
--
|
833
859
|
|
834
|
-
##### [find_elements_by_image](https://github.com/appium/ruby_lib/blob/
|
860
|
+
##### [find_elements_by_image](https://github.com/appium/ruby_lib/blob/954a3a8d4d5cd56fa5a4e80d021805759dbf5e10/lib/appium_lib/driver.rb#L781) common
|
835
861
|
|
836
862
|
> def find_elements_by_image(png_img_paths)
|
837
863
|
|
@@ -847,7 +873,7 @@ __Returns:__
|
|
847
873
|
|
848
874
|
--
|
849
875
|
|
850
|
-
##### [set_location](https://github.com/appium/ruby_lib/blob/
|
876
|
+
##### [set_location](https://github.com/appium/ruby_lib/blob/954a3a8d4d5cd56fa5a4e80d021805759dbf5e10/lib/appium_lib/driver.rb#L794) common
|
851
877
|
|
852
878
|
> def set_location(opts = {})
|
853
879
|
|
@@ -863,7 +889,7 @@ __Returns:__
|
|
863
889
|
|
864
890
|
--
|
865
891
|
|
866
|
-
##### [x](https://github.com/appium/ruby_lib/blob/
|
892
|
+
##### [x](https://github.com/appium/ruby_lib/blob/954a3a8d4d5cd56fa5a4e80d021805759dbf5e10/lib/appium_lib/driver.rb#L804) common
|
867
893
|
|
868
894
|
> def x
|
869
895
|
|
@@ -876,7 +902,7 @@ __Returns:__
|
|
876
902
|
|
877
903
|
--
|
878
904
|
|
879
|
-
##### [username](https://github.com/appium/ruby_lib/blob/
|
905
|
+
##### [username](https://github.com/appium/ruby_lib/blob/954a3a8d4d5cd56fa5a4e80d021805759dbf5e10/lib/appium_lib/sauce_labs.rb#L18) common
|
880
906
|
|
881
907
|
> def username
|
882
908
|
|
@@ -884,7 +910,7 @@ Username for use on Sauce Labs. Set `false` to disable Sauce, even when SAUCE_US
|
|
884
910
|
|
885
911
|
--
|
886
912
|
|
887
|
-
##### [access_key](https://github.com/appium/ruby_lib/blob/
|
913
|
+
##### [access_key](https://github.com/appium/ruby_lib/blob/954a3a8d4d5cd56fa5a4e80d021805759dbf5e10/lib/appium_lib/sauce_labs.rb#L20) common
|
888
914
|
|
889
915
|
> def access_key
|
890
916
|
|
@@ -892,7 +918,7 @@ Access Key for use on Sauce Labs. Set `false` to disable Sauce, even when SAUCE_
|
|
892
918
|
|
893
919
|
--
|
894
920
|
|
895
|
-
##### [endpoint](https://github.com/appium/ruby_lib/blob/
|
921
|
+
##### [endpoint](https://github.com/appium/ruby_lib/blob/954a3a8d4d5cd56fa5a4e80d021805759dbf5e10/lib/appium_lib/sauce_labs.rb#L22) common
|
896
922
|
|
897
923
|
> def endpoint
|
898
924
|
|
@@ -900,7 +926,7 @@ Override the Sauce Appium endpoint to allow e.g. TestObject tests. Default is 'o
|
|
900
926
|
|
901
927
|
--
|
902
928
|
|
903
|
-
##### [initialize](https://github.com/appium/ruby_lib/blob/
|
929
|
+
##### [initialize](https://github.com/appium/ruby_lib/blob/954a3a8d4d5cd56fa5a4e80d021805759dbf5e10/lib/appium_lib/sauce_labs.rb#L47) common
|
904
930
|
|
905
931
|
> def initialize(appium_lib_opts)
|
906
932
|
|
@@ -916,7 +942,7 @@ __Returns:__
|
|
916
942
|
|
917
943
|
--
|
918
944
|
|
919
|
-
##### [sauce_server_url?](https://github.com/appium/ruby_lib/blob/
|
945
|
+
##### [sauce_server_url?](https://github.com/appium/ruby_lib/blob/954a3a8d4d5cd56fa5a4e80d021805759dbf5e10/lib/appium_lib/sauce_labs.rb#L67) common
|
920
946
|
|
921
947
|
> def sauce_server_url?
|
922
948
|
|
@@ -928,7 +954,7 @@ __Returns:__
|
|
928
954
|
|
929
955
|
--
|
930
956
|
|
931
|
-
##### [server_url](https://github.com/appium/ruby_lib/blob/
|
957
|
+
##### [server_url](https://github.com/appium/ruby_lib/blob/954a3a8d4d5cd56fa5a4e80d021805759dbf5e10/lib/appium_lib/sauce_labs.rb#L80) common
|
932
958
|
|
933
959
|
> def server_url
|
934
960
|
|
@@ -940,7 +966,7 @@ __Returns:__
|
|
940
966
|
|
941
967
|
--
|
942
968
|
|
943
|
-
##### [get_log](https://github.com/appium/ruby_lib/blob/
|
969
|
+
##### [get_log](https://github.com/appium/ruby_lib/blob/954a3a8d4d5cd56fa5a4e80d021805759dbf5e10/lib/appium_lib/common/log.rb#L25) common
|
944
970
|
|
945
971
|
> def get_log(type)
|
946
972
|
|
@@ -956,7 +982,7 @@ __Returns:__
|
|
956
982
|
|
957
983
|
--
|
958
984
|
|
959
|
-
##### [get_available_log_types](https://github.com/appium/ruby_lib/blob/
|
985
|
+
##### [get_available_log_types](https://github.com/appium/ruby_lib/blob/954a3a8d4d5cd56fa5a4e80d021805759dbf5e10/lib/appium_lib/common/log.rb#L37) common
|
960
986
|
|
961
987
|
> def get_available_log_types
|
962
988
|
|
@@ -968,7 +994,7 @@ __Returns:__
|
|
968
994
|
|
969
995
|
--
|
970
996
|
|
971
|
-
##### [wait_true](https://github.com/appium/ruby_lib/blob/
|
997
|
+
##### [wait_true](https://github.com/appium/ruby_lib/blob/954a3a8d4d5cd56fa5a4e80d021805759dbf5e10/lib/appium_lib/common/wait.rb#L44) common
|
972
998
|
|
973
999
|
> def wait_true(opts = {})
|
974
1000
|
|
@@ -988,7 +1014,7 @@ __Parameters:__
|
|
988
1014
|
|
989
1015
|
--
|
990
1016
|
|
991
|
-
##### [wait](https://github.com/appium/ruby_lib/blob/
|
1017
|
+
##### [wait](https://github.com/appium/ruby_lib/blob/954a3a8d4d5cd56fa5a4e80d021805759dbf5e10/lib/appium_lib/common/wait.rb#L73) common
|
992
1018
|
|
993
1019
|
> def wait(opts = {})
|
994
1020
|
|
@@ -1006,7 +1032,7 @@ __Parameters:__
|
|
1006
1032
|
|
1007
1033
|
--
|
1008
1034
|
|
1009
|
-
##### [add_touch_actions](https://github.com/appium/ruby_lib/blob/
|
1035
|
+
##### [add_touch_actions](https://github.com/appium/ruby_lib/blob/954a3a8d4d5cd56fa5a4e80d021805759dbf5e10/lib/appium_lib/common/device.rb#L26) common
|
1010
1036
|
|
1011
1037
|
> def add_touch_actions
|
1012
1038
|
|
@@ -1014,7 +1040,7 @@ __Parameters:__
|
|
1014
1040
|
|
1015
1041
|
--
|
1016
1042
|
|
1017
|
-
##### [delegate_from_appium_driver](https://github.com/appium/ruby_lib/blob/
|
1043
|
+
##### [delegate_from_appium_driver](https://github.com/appium/ruby_lib/blob/954a3a8d4d5cd56fa5a4e80d021805759dbf5e10/lib/appium_lib/common/device.rb#L38) common
|
1018
1044
|
|
1019
1045
|
> def delegate_from_appium_driver(method, delegation_target)
|
1020
1046
|
|
@@ -1022,7 +1048,7 @@ __Parameters:__
|
|
1022
1048
|
|
1023
1049
|
--
|
1024
1050
|
|
1025
|
-
##### [ignore](https://github.com/appium/ruby_lib/blob/
|
1051
|
+
##### [ignore](https://github.com/appium/ruby_lib/blob/954a3a8d4d5cd56fa5a4e80d021805759dbf5e10/lib/appium_lib/common/helper.rb#L30) common
|
1026
1052
|
|
1027
1053
|
> def ignore
|
1028
1054
|
|
@@ -1030,7 +1056,7 @@ Return yield and ignore any exceptions.
|
|
1030
1056
|
|
1031
1057
|
--
|
1032
1058
|
|
1033
|
-
##### [back](https://github.com/appium/ruby_lib/blob/
|
1059
|
+
##### [back](https://github.com/appium/ruby_lib/blob/954a3a8d4d5cd56fa5a4e80d021805759dbf5e10/lib/appium_lib/common/helper.rb#L37) common
|
1034
1060
|
|
1035
1061
|
> def back
|
1036
1062
|
|
@@ -1042,7 +1068,7 @@ __Returns:__
|
|
1042
1068
|
|
1043
1069
|
--
|
1044
1070
|
|
1045
|
-
##### [session_id](https://github.com/appium/ruby_lib/blob/
|
1071
|
+
##### [session_id](https://github.com/appium/ruby_lib/blob/954a3a8d4d5cd56fa5a4e80d021805759dbf5e10/lib/appium_lib/common/helper.rb#L48) common
|
1046
1072
|
|
1047
1073
|
> def session_id
|
1048
1074
|
|
@@ -1054,7 +1080,7 @@ __Returns:__
|
|
1054
1080
|
|
1055
1081
|
--
|
1056
1082
|
|
1057
|
-
##### [xpath](https://github.com/appium/ruby_lib/blob/
|
1083
|
+
##### [xpath](https://github.com/appium/ruby_lib/blob/954a3a8d4d5cd56fa5a4e80d021805759dbf5e10/lib/appium_lib/common/helper.rb#L56) common
|
1058
1084
|
|
1059
1085
|
> def xpath(xpath_str)
|
1060
1086
|
|
@@ -1070,7 +1096,7 @@ __Returns:__
|
|
1070
1096
|
|
1071
1097
|
--
|
1072
1098
|
|
1073
|
-
##### [xpaths](https://github.com/appium/ruby_lib/blob/
|
1099
|
+
##### [xpaths](https://github.com/appium/ruby_lib/blob/954a3a8d4d5cd56fa5a4e80d021805759dbf5e10/lib/appium_lib/common/helper.rb#L64) common
|
1074
1100
|
|
1075
1101
|
> def xpaths(xpath_str)
|
1076
1102
|
|
@@ -1086,7 +1112,7 @@ __Returns:__
|
|
1086
1112
|
|
1087
1113
|
--
|
1088
1114
|
|
1089
|
-
##### [result](https://github.com/appium/ruby_lib/blob/
|
1115
|
+
##### [result](https://github.com/appium/ruby_lib/blob/954a3a8d4d5cd56fa5a4e80d021805759dbf5e10/lib/appium_lib/common/helper.rb#L74) common
|
1090
1116
|
|
1091
1117
|
> def result
|
1092
1118
|
|
@@ -1094,7 +1120,7 @@ Returns the value of attribute result
|
|
1094
1120
|
|
1095
1121
|
--
|
1096
1122
|
|
1097
|
-
##### [initialize](https://github.com/appium/ruby_lib/blob/
|
1123
|
+
##### [initialize](https://github.com/appium/ruby_lib/blob/954a3a8d4d5cd56fa5a4e80d021805759dbf5e10/lib/appium_lib/common/helper.rb#L76) common
|
1098
1124
|
|
1099
1125
|
> def initialize(platform)
|
1100
1126
|
|
@@ -1106,7 +1132,7 @@ __Returns:__
|
|
1106
1132
|
|
1107
1133
|
--
|
1108
1134
|
|
1109
|
-
##### [reset](https://github.com/appium/ruby_lib/blob/
|
1135
|
+
##### [reset](https://github.com/appium/ruby_lib/blob/954a3a8d4d5cd56fa5a4e80d021805759dbf5e10/lib/appium_lib/common/helper.rb#L81) common
|
1110
1136
|
|
1111
1137
|
> def reset
|
1112
1138
|
|
@@ -1114,7 +1140,7 @@ __Returns:__
|
|
1114
1140
|
|
1115
1141
|
--
|
1116
1142
|
|
1117
|
-
##### [start_element](https://github.com/appium/ruby_lib/blob/
|
1143
|
+
##### [start_element](https://github.com/appium/ruby_lib/blob/954a3a8d4d5cd56fa5a4e80d021805759dbf5e10/lib/appium_lib/common/helper.rb#L86) common
|
1118
1144
|
|
1119
1145
|
> def start_element(name, attrs = [])
|
1120
1146
|
|
@@ -1122,7 +1148,7 @@ http://nokogiri.org/Nokogiri/XML/SAX/Document.html
|
|
1122
1148
|
|
1123
1149
|
--
|
1124
1150
|
|
1125
|
-
##### [formatted_result](https://github.com/appium/ruby_lib/blob/
|
1151
|
+
##### [formatted_result](https://github.com/appium/ruby_lib/blob/954a3a8d4d5cd56fa5a4e80d021805759dbf5e10/lib/appium_lib/common/helper.rb#L97) common
|
1126
1152
|
|
1127
1153
|
> def formatted_result
|
1128
1154
|
|
@@ -1130,7 +1156,7 @@ http://nokogiri.org/Nokogiri/XML/SAX/Document.html
|
|
1130
1156
|
|
1131
1157
|
--
|
1132
1158
|
|
1133
|
-
##### [get_page_class](https://github.com/appium/ruby_lib/blob/
|
1159
|
+
##### [get_page_class](https://github.com/appium/ruby_lib/blob/954a3a8d4d5cd56fa5a4e80d021805759dbf5e10/lib/appium_lib/common/helper.rb#L115) common
|
1134
1160
|
|
1135
1161
|
> def get_page_class
|
1136
1162
|
|
@@ -1142,7 +1168,7 @@ __Returns:__
|
|
1142
1168
|
|
1143
1169
|
--
|
1144
1170
|
|
1145
|
-
##### [page_class](https://github.com/appium/ruby_lib/blob/
|
1171
|
+
##### [page_class](https://github.com/appium/ruby_lib/blob/954a3a8d4d5cd56fa5a4e80d021805759dbf5e10/lib/appium_lib/common/helper.rb#L140) common
|
1146
1172
|
|
1147
1173
|
> def page_class
|
1148
1174
|
|
@@ -1155,7 +1181,7 @@ __Returns:__
|
|
1155
1181
|
|
1156
1182
|
--
|
1157
1183
|
|
1158
|
-
##### [source](https://github.com/appium/ruby_lib/blob/
|
1184
|
+
##### [source](https://github.com/appium/ruby_lib/blob/954a3a8d4d5cd56fa5a4e80d021805759dbf5e10/lib/appium_lib/common/helper.rb#L147) common
|
1159
1185
|
|
1160
1186
|
> def source
|
1161
1187
|
|
@@ -1167,7 +1193,7 @@ __Returns:__
|
|
1167
1193
|
|
1168
1194
|
--
|
1169
1195
|
|
1170
|
-
##### [get_source](https://github.com/appium/ruby_lib/blob/
|
1196
|
+
##### [get_source](https://github.com/appium/ruby_lib/blob/954a3a8d4d5cd56fa5a4e80d021805759dbf5e10/lib/appium_lib/common/helper.rb#L154) common
|
1171
1197
|
|
1172
1198
|
> def get_source
|
1173
1199
|
|
@@ -1180,7 +1206,7 @@ __Returns:__
|
|
1180
1206
|
|
1181
1207
|
--
|
1182
1208
|
|
1183
|
-
##### [px_to_window_rel](https://github.com/appium/ruby_lib/blob/
|
1209
|
+
##### [px_to_window_rel](https://github.com/appium/ruby_lib/blob/954a3a8d4d5cd56fa5a4e80d021805759dbf5e10/lib/appium_lib/common/helper.rb#L164) common
|
1184
1210
|
|
1185
1211
|
> def px_to_window_rel(opts = {}, driver = $driver)
|
1186
1212
|
|
@@ -1188,7 +1214,7 @@ Converts pixel values to window relative values
|
|
1188
1214
|
|
1189
1215
|
--
|
1190
1216
|
|
1191
|
-
##### [xml_keys](https://github.com/appium/ruby_lib/blob/
|
1217
|
+
##### [xml_keys](https://github.com/appium/ruby_lib/blob/954a3a8d4d5cd56fa5a4e80d021805759dbf5e10/lib/appium_lib/common/helper.rb#L183) common
|
1192
1218
|
|
1193
1219
|
> def xml_keys(target)
|
1194
1220
|
|
@@ -1204,7 +1230,7 @@ __Returns:__
|
|
1204
1230
|
|
1205
1231
|
--
|
1206
1232
|
|
1207
|
-
##### [xml_values](https://github.com/appium/ruby_lib/blob/
|
1233
|
+
##### [xml_values](https://github.com/appium/ruby_lib/blob/954a3a8d4d5cd56fa5a4e80d021805759dbf5e10/lib/appium_lib/common/helper.rb#L191) common
|
1208
1234
|
|
1209
1235
|
> def xml_values(target)
|
1210
1236
|
|
@@ -1220,7 +1246,7 @@ __Returns:__
|
|
1220
1246
|
|
1221
1247
|
--
|
1222
1248
|
|
1223
|
-
##### [resolve_id](https://github.com/appium/ruby_lib/blob/
|
1249
|
+
##### [resolve_id](https://github.com/appium/ruby_lib/blob/954a3a8d4d5cd56fa5a4e80d021805759dbf5e10/lib/appium_lib/common/helper.rb#L199) common
|
1224
1250
|
|
1225
1251
|
> def resolve_id(id)
|
1226
1252
|
|
@@ -1236,7 +1262,7 @@ __Returns:__
|
|
1236
1262
|
|
1237
1263
|
--
|
1238
1264
|
|
1239
|
-
##### [filter](https://github.com/appium/ruby_lib/blob/
|
1265
|
+
##### [filter](https://github.com/appium/ruby_lib/blob/954a3a8d4d5cd56fa5a4e80d021805759dbf5e10/lib/appium_lib/common/helper.rb#L206) common
|
1240
1266
|
|
1241
1267
|
> def filter
|
1242
1268
|
|
@@ -1244,7 +1270,7 @@ Returns the value of attribute filter
|
|
1244
1270
|
|
1245
1271
|
--
|
1246
1272
|
|
1247
|
-
##### [filter=](https://github.com/appium/ruby_lib/blob/
|
1273
|
+
##### [filter=](https://github.com/appium/ruby_lib/blob/954a3a8d4d5cd56fa5a4e80d021805759dbf5e10/lib/appium_lib/common/helper.rb#L209) common
|
1248
1274
|
|
1249
1275
|
> def filter=(value)
|
1250
1276
|
|
@@ -1252,7 +1278,7 @@ convert to string to support symbols
|
|
1252
1278
|
|
1253
1279
|
--
|
1254
1280
|
|
1255
|
-
##### [initialize](https://github.com/appium/ruby_lib/blob/
|
1281
|
+
##### [initialize](https://github.com/appium/ruby_lib/blob/954a3a8d4d5cd56fa5a4e80d021805759dbf5e10/lib/appium_lib/common/helper.rb#L216) common
|
1256
1282
|
|
1257
1283
|
> def initialize
|
1258
1284
|
|
@@ -1264,7 +1290,7 @@ __Returns:__
|
|
1264
1290
|
|
1265
1291
|
--
|
1266
1292
|
|
1267
|
-
##### [reset](https://github.com/appium/ruby_lib/blob/
|
1293
|
+
##### [reset](https://github.com/appium/ruby_lib/blob/954a3a8d4d5cd56fa5a4e80d021805759dbf5e10/lib/appium_lib/common/helper.rb#L221) common
|
1268
1294
|
|
1269
1295
|
> def reset
|
1270
1296
|
|
@@ -1272,7 +1298,7 @@ __Returns:__
|
|
1272
1298
|
|
1273
1299
|
--
|
1274
1300
|
|
1275
|
-
##### [result](https://github.com/appium/ruby_lib/blob/
|
1301
|
+
##### [result](https://github.com/appium/ruby_lib/blob/954a3a8d4d5cd56fa5a4e80d021805759dbf5e10/lib/appium_lib/common/helper.rb#L227) common
|
1276
1302
|
|
1277
1303
|
> def result
|
1278
1304
|
|
@@ -1280,7 +1306,7 @@ __Returns:__
|
|
1280
1306
|
|
1281
1307
|
--
|
1282
1308
|
|
1283
|
-
##### [start_element](https://github.com/appium/ruby_lib/blob/
|
1309
|
+
##### [start_element](https://github.com/appium/ruby_lib/blob/954a3a8d4d5cd56fa5a4e80d021805759dbf5e10/lib/appium_lib/common/helper.rb#L240) common
|
1284
1310
|
|
1285
1311
|
> def start_element(name, attrs = [])
|
1286
1312
|
|
@@ -1288,7 +1314,7 @@ __Returns:__
|
|
1288
1314
|
|
1289
1315
|
--
|
1290
1316
|
|
1291
|
-
##### [end_element](https://github.com/appium/ruby_lib/blob/
|
1317
|
+
##### [end_element](https://github.com/appium/ruby_lib/blob/954a3a8d4d5cd56fa5a4e80d021805759dbf5e10/lib/appium_lib/common/helper.rb#L250) common
|
1292
1318
|
|
1293
1319
|
> def end_element(name)
|
1294
1320
|
|
@@ -1296,7 +1322,7 @@ __Returns:__
|
|
1296
1322
|
|
1297
1323
|
--
|
1298
1324
|
|
1299
|
-
##### [characters](https://github.com/appium/ruby_lib/blob/
|
1325
|
+
##### [characters](https://github.com/appium/ruby_lib/blob/954a3a8d4d5cd56fa5a4e80d021805759dbf5e10/lib/appium_lib/common/helper.rb#L257) common
|
1300
1326
|
|
1301
1327
|
> def characters(chars)
|
1302
1328
|
|
@@ -1304,7 +1330,7 @@ __Returns:__
|
|
1304
1330
|
|
1305
1331
|
--
|
1306
1332
|
|
1307
|
-
##### [DEFAULT_HEADERS](https://github.com/appium/ruby_lib/blob/
|
1333
|
+
##### [DEFAULT_HEADERS](https://github.com/appium/ruby_lib/blob/954a3a8d4d5cd56fa5a4e80d021805759dbf5e10/lib/appium_lib/common/http_client.rb#L22) common
|
1308
1334
|
|
1309
1335
|
> DEFAULT_HEADERS = { 'Accept' => CONTENT_TYPE, 'User-Agent' => "appium/ruby_lib/#{::Appium::VERSION}" }.freeze
|
1310
1336
|
|
@@ -1312,7 +1338,7 @@ Default HTTP client inherit Appium::Core::Base::Http::Default, but has different
|
|
1312
1338
|
|
1313
1339
|
--
|
1314
1340
|
|
1315
|
-
##### [pinch](https://github.com/appium/ruby_lib/blob/
|
1341
|
+
##### [pinch](https://github.com/appium/ruby_lib/blob/954a3a8d4d5cd56fa5a4e80d021805759dbf5e10/lib/appium_lib/common/multi_touch.rb#L65) common
|
1316
1342
|
|
1317
1343
|
> def pinch(percentage = 25, auto_perform = true, driver = $driver)
|
1318
1344
|
|
@@ -1332,7 +1358,7 @@ __Parameters:__
|
|
1332
1358
|
|
1333
1359
|
--
|
1334
1360
|
|
1335
|
-
##### [zoom](https://github.com/appium/ruby_lib/blob/
|
1361
|
+
##### [zoom](https://github.com/appium/ruby_lib/blob/954a3a8d4d5cd56fa5a4e80d021805759dbf5e10/lib/appium_lib/common/multi_touch.rb#L108) common
|
1336
1362
|
|
1337
1363
|
> def zoom(percentage = 200, auto_perform = true, driver = $driver)
|
1338
1364
|
|
@@ -1352,7 +1378,7 @@ __Parameters:__
|
|
1352
1378
|
|
1353
1379
|
--
|
1354
1380
|
|
1355
|
-
##### [initialize](https://github.com/appium/ruby_lib/blob/
|
1381
|
+
##### [initialize](https://github.com/appium/ruby_lib/blob/954a3a8d4d5cd56fa5a4e80d021805759dbf5e10/lib/appium_lib/common/multi_touch.rb#L194) common
|
1356
1382
|
|
1357
1383
|
> def initialize(driver = $driver)
|
1358
1384
|
|
@@ -1364,7 +1390,7 @@ __Returns:__
|
|
1364
1390
|
|
1365
1391
|
--
|
1366
1392
|
|
1367
|
-
##### [COMPLEX_ACTIONS](https://github.com/appium/ruby_lib/blob/
|
1393
|
+
##### [COMPLEX_ACTIONS](https://github.com/appium/ruby_lib/blob/954a3a8d4d5cd56fa5a4e80d021805759dbf5e10/lib/appium_lib/common/touch_actions.rb#L47) common
|
1368
1394
|
|
1369
1395
|
> COMPLEX_ACTIONS = ::Appium::Core::TouchAction::COMPLEX_ACTIONS
|
1370
1396
|
|
@@ -1372,7 +1398,7 @@ __Returns:__
|
|
1372
1398
|
|
1373
1399
|
--
|
1374
1400
|
|
1375
|
-
##### [initialize](https://github.com/appium/ruby_lib/blob/
|
1401
|
+
##### [initialize](https://github.com/appium/ruby_lib/blob/954a3a8d4d5cd56fa5a4e80d021805759dbf5e10/lib/appium_lib/common/touch_actions.rb#L62) common
|
1376
1402
|
|
1377
1403
|
> def initialize(driver = $driver)
|
1378
1404
|
|
@@ -1384,7 +1410,7 @@ __Returns:__
|
|
1384
1410
|
|
1385
1411
|
--
|
1386
1412
|
|
1387
|
-
##### [swipe](https://github.com/appium/ruby_lib/blob/
|
1413
|
+
##### [swipe](https://github.com/appium/ruby_lib/blob/954a3a8d4d5cd56fa5a4e80d021805759dbf5e10/lib/appium_lib/common/touch_actions.rb#L66) common
|
1388
1414
|
|
1389
1415
|
> def swipe(opts)
|
1390
1416
|
|
@@ -1392,7 +1418,7 @@ __Returns:__
|
|
1392
1418
|
|
1393
1419
|
--
|
1394
1420
|
|
1395
|
-
##### [initialize](https://github.com/appium/ruby_lib/blob/
|
1421
|
+
##### [initialize](https://github.com/appium/ruby_lib/blob/954a3a8d4d5cd56fa5a4e80d021805759dbf5e10/lib/appium_lib/common/command/ws_logcat.rb#L19) common
|
1396
1422
|
|
1397
1423
|
> def initialize(url:, output_file: 'logcat.log')
|
1398
1424
|
|
@@ -1404,7 +1430,7 @@ __Returns:__
|
|
1404
1430
|
|
1405
1431
|
--
|
1406
1432
|
|
1407
|
-
##### [handle_message_data](https://github.com/appium/ruby_lib/blob/
|
1433
|
+
##### [handle_message_data](https://github.com/appium/ruby_lib/blob/954a3a8d4d5cd56fa5a4e80d021805759dbf5e10/lib/appium_lib/common/command/ws_logcat.rb#L24) common
|
1408
1434
|
|
1409
1435
|
> def handle_message_data(data)
|
1410
1436
|
|
@@ -1412,7 +1438,7 @@ __Returns:__
|
|
1412
1438
|
|
1413
1439
|
--
|
1414
1440
|
|
1415
|
-
##### [for](https://github.com/appium/ruby_lib/blob/
|
1441
|
+
##### [for](https://github.com/appium/ruby_lib/blob/954a3a8d4d5cd56fa5a4e80d021805759dbf5e10/lib/appium_lib/android/android.rb#L33) android
|
1416
1442
|
|
1417
1443
|
> def self.for(target)
|
1418
1444
|
|
@@ -1420,7 +1446,7 @@ __Returns:__
|
|
1420
1446
|
|
1421
1447
|
--
|
1422
1448
|
|
1423
|
-
##### [TEXT_VIEW](https://github.com/appium/ruby_lib/blob/
|
1449
|
+
##### [TEXT_VIEW](https://github.com/appium/ruby_lib/blob/954a3a8d4d5cd56fa5a4e80d021805759dbf5e10/lib/appium_lib/android/element/text.rb#L18) android
|
1424
1450
|
|
1425
1451
|
> TEXT_VIEW = 'android.widget.TextView'
|
1426
1452
|
|
@@ -1428,7 +1454,7 @@ __Returns:__
|
|
1428
1454
|
|
1429
1455
|
--
|
1430
1456
|
|
1431
|
-
##### [TextView](https://github.com/appium/ruby_lib/blob/
|
1457
|
+
##### [TextView](https://github.com/appium/ruby_lib/blob/954a3a8d4d5cd56fa5a4e80d021805759dbf5e10/lib/appium_lib/android/element/text.rb#L19) android
|
1432
1458
|
|
1433
1459
|
> TextView = TEXT_VIEW
|
1434
1460
|
|
@@ -1436,7 +1462,7 @@ __Returns:__
|
|
1436
1462
|
|
1437
1463
|
--
|
1438
1464
|
|
1439
|
-
##### [text](https://github.com/appium/ruby_lib/blob/
|
1465
|
+
##### [text](https://github.com/appium/ruby_lib/blob/954a3a8d4d5cd56fa5a4e80d021805759dbf5e10/lib/appium_lib/android/element/text.rb#L25) android
|
1440
1466
|
|
1441
1467
|
> def text(value)
|
1442
1468
|
|
@@ -1453,7 +1479,7 @@ __Returns:__
|
|
1453
1479
|
|
1454
1480
|
--
|
1455
1481
|
|
1456
|
-
##### [texts](https://github.com/appium/ruby_lib/blob/
|
1482
|
+
##### [texts](https://github.com/appium/ruby_lib/blob/954a3a8d4d5cd56fa5a4e80d021805759dbf5e10/lib/appium_lib/android/element/text.rb#L35) android
|
1457
1483
|
|
1458
1484
|
> def texts(value = false)
|
1459
1485
|
|
@@ -1470,7 +1496,7 @@ __Returns:__
|
|
1470
1496
|
|
1471
1497
|
--
|
1472
1498
|
|
1473
|
-
##### [first_text](https://github.com/appium/ruby_lib/blob/
|
1499
|
+
##### [first_text](https://github.com/appium/ruby_lib/blob/954a3a8d4d5cd56fa5a4e80d021805759dbf5e10/lib/appium_lib/android/element/text.rb#L43) android
|
1474
1500
|
|
1475
1501
|
> def first_text
|
1476
1502
|
|
@@ -1482,7 +1508,7 @@ __Returns:__
|
|
1482
1508
|
|
1483
1509
|
--
|
1484
1510
|
|
1485
|
-
##### [last_text](https://github.com/appium/ruby_lib/blob/
|
1511
|
+
##### [last_text](https://github.com/appium/ruby_lib/blob/954a3a8d4d5cd56fa5a4e80d021805759dbf5e10/lib/appium_lib/android/element/text.rb#L49) android
|
1486
1512
|
|
1487
1513
|
> def last_text
|
1488
1514
|
|
@@ -1494,7 +1520,7 @@ __Returns:__
|
|
1494
1520
|
|
1495
1521
|
--
|
1496
1522
|
|
1497
|
-
##### [text_exact](https://github.com/appium/ruby_lib/blob/
|
1523
|
+
##### [text_exact](https://github.com/appium/ruby_lib/blob/954a3a8d4d5cd56fa5a4e80d021805759dbf5e10/lib/appium_lib/android/element/text.rb#L56) android
|
1498
1524
|
|
1499
1525
|
> def text_exact(value)
|
1500
1526
|
|
@@ -1510,7 +1536,7 @@ __Returns:__
|
|
1510
1536
|
|
1511
1537
|
--
|
1512
1538
|
|
1513
|
-
##### [texts_exact](https://github.com/appium/ruby_lib/blob/
|
1539
|
+
##### [texts_exact](https://github.com/appium/ruby_lib/blob/954a3a8d4d5cd56fa5a4e80d021805759dbf5e10/lib/appium_lib/android/element/text.rb#L63) android
|
1514
1540
|
|
1515
1541
|
> def texts_exact(value)
|
1516
1542
|
|
@@ -1526,7 +1552,7 @@ __Returns:__
|
|
1526
1552
|
|
1527
1553
|
--
|
1528
1554
|
|
1529
|
-
##### [result](https://github.com/appium/ruby_lib/blob/
|
1555
|
+
##### [result](https://github.com/appium/ruby_lib/blob/954a3a8d4d5cd56fa5a4e80d021805759dbf5e10/lib/appium_lib/android/common/helper.rb#L20) android
|
1530
1556
|
|
1531
1557
|
> def result
|
1532
1558
|
|
@@ -1534,7 +1560,7 @@ Returns the value of attribute result
|
|
1534
1560
|
|
1535
1561
|
--
|
1536
1562
|
|
1537
|
-
##### [keys](https://github.com/appium/ruby_lib/blob/
|
1563
|
+
##### [keys](https://github.com/appium/ruby_lib/blob/954a3a8d4d5cd56fa5a4e80d021805759dbf5e10/lib/appium_lib/android/common/helper.rb#L20) android
|
1538
1564
|
|
1539
1565
|
> def keys
|
1540
1566
|
|
@@ -1542,7 +1568,7 @@ Returns the value of attribute keys
|
|
1542
1568
|
|
1543
1569
|
--
|
1544
1570
|
|
1545
|
-
##### [filter](https://github.com/appium/ruby_lib/blob/
|
1571
|
+
##### [filter](https://github.com/appium/ruby_lib/blob/954a3a8d4d5cd56fa5a4e80d021805759dbf5e10/lib/appium_lib/android/common/helper.rb#L20) android
|
1546
1572
|
|
1547
1573
|
> def filter
|
1548
1574
|
|
@@ -1550,7 +1576,7 @@ Returns the value of attribute filter
|
|
1550
1576
|
|
1551
1577
|
--
|
1552
1578
|
|
1553
|
-
##### [filter=](https://github.com/appium/ruby_lib/blob/
|
1579
|
+
##### [filter=](https://github.com/appium/ruby_lib/blob/954a3a8d4d5cd56fa5a4e80d021805759dbf5e10/lib/appium_lib/android/common/helper.rb#L23) android
|
1554
1580
|
|
1555
1581
|
> def filter=(value)
|
1556
1582
|
|
@@ -1558,7 +1584,7 @@ convert to string to support symbols
|
|
1558
1584
|
|
1559
1585
|
--
|
1560
1586
|
|
1561
|
-
##### [initialize](https://github.com/appium/ruby_lib/blob/
|
1587
|
+
##### [initialize](https://github.com/appium/ruby_lib/blob/954a3a8d4d5cd56fa5a4e80d021805759dbf5e10/lib/appium_lib/android/common/helper.rb#L30) android
|
1562
1588
|
|
1563
1589
|
> def initialize
|
1564
1590
|
|
@@ -1570,7 +1596,7 @@ __Returns:__
|
|
1570
1596
|
|
1571
1597
|
--
|
1572
1598
|
|
1573
|
-
##### [reset](https://github.com/appium/ruby_lib/blob/
|
1599
|
+
##### [reset](https://github.com/appium/ruby_lib/blob/954a3a8d4d5cd56fa5a4e80d021805759dbf5e10/lib/appium_lib/android/common/helper.rb#L35) android
|
1574
1600
|
|
1575
1601
|
> def reset
|
1576
1602
|
|
@@ -1578,7 +1604,7 @@ __Returns:__
|
|
1578
1604
|
|
1579
1605
|
--
|
1580
1606
|
|
1581
|
-
##### [start_element](https://github.com/appium/ruby_lib/blob/
|
1607
|
+
##### [start_element](https://github.com/appium/ruby_lib/blob/954a3a8d4d5cd56fa5a4e80d021805759dbf5e10/lib/appium_lib/android/common/helper.rb#L41) android
|
1582
1608
|
|
1583
1609
|
> def start_element(name, attrs = [], driver = $driver)
|
1584
1610
|
|
@@ -1586,7 +1612,7 @@ http://nokogiri.org/Nokogiri/XML/SAX/Document.html
|
|
1586
1612
|
|
1587
1613
|
--
|
1588
1614
|
|
1589
|
-
##### [get_android_inspect](https://github.com/appium/ruby_lib/blob/
|
1615
|
+
##### [get_android_inspect](https://github.com/appium/ruby_lib/blob/954a3a8d4d5cd56fa5a4e80d021805759dbf5e10/lib/appium_lib/android/common/helper.rb#L95) android
|
1590
1616
|
|
1591
1617
|
> def get_android_inspect(class_name = false)
|
1592
1618
|
|
@@ -1605,7 +1631,7 @@ __Returns:__
|
|
1605
1631
|
|
1606
1632
|
--
|
1607
1633
|
|
1608
|
-
##### [page](https://github.com/appium/ruby_lib/blob/
|
1634
|
+
##### [page](https://github.com/appium/ruby_lib/blob/954a3a8d4d5cd56fa5a4e80d021805759dbf5e10/lib/appium_lib/android/common/helper.rb#L121) android
|
1609
1635
|
|
1610
1636
|
> def page(opts = {})
|
1611
1637
|
|
@@ -1624,7 +1650,7 @@ __Returns:__
|
|
1624
1650
|
|
1625
1651
|
--
|
1626
1652
|
|
1627
|
-
##### [id](https://github.com/appium/ruby_lib/blob/
|
1653
|
+
##### [id](https://github.com/appium/ruby_lib/blob/954a3a8d4d5cd56fa5a4e80d021805759dbf5e10/lib/appium_lib/android/common/helper.rb#L130) android
|
1628
1654
|
|
1629
1655
|
> def id(id)
|
1630
1656
|
|
@@ -1640,7 +1666,7 @@ __Returns:__
|
|
1640
1666
|
|
1641
1667
|
--
|
1642
1668
|
|
1643
|
-
##### [ids](https://github.com/appium/ruby_lib/blob/
|
1669
|
+
##### [ids](https://github.com/appium/ruby_lib/blob/954a3a8d4d5cd56fa5a4e80d021805759dbf5e10/lib/appium_lib/android/common/helper.rb#L138) android
|
1644
1670
|
|
1645
1671
|
> def ids(id)
|
1646
1672
|
|
@@ -1656,7 +1682,7 @@ __Returns:__
|
|
1656
1682
|
|
1657
1683
|
--
|
1658
1684
|
|
1659
|
-
##### [ele_index](https://github.com/appium/ruby_lib/blob/
|
1685
|
+
##### [ele_index](https://github.com/appium/ruby_lib/blob/954a3a8d4d5cd56fa5a4e80d021805759dbf5e10/lib/appium_lib/android/common/helper.rb#L147) android
|
1660
1686
|
|
1661
1687
|
> def ele_index(class_name, index)
|
1662
1688
|
|
@@ -1674,7 +1700,7 @@ __Returns:__
|
|
1674
1700
|
|
1675
1701
|
--
|
1676
1702
|
|
1677
|
-
##### [first_ele](https://github.com/appium/ruby_lib/blob/
|
1703
|
+
##### [first_ele](https://github.com/appium/ruby_lib/blob/954a3a8d4d5cd56fa5a4e80d021805759dbf5e10/lib/appium_lib/android/common/helper.rb#L166) android
|
1678
1704
|
|
1679
1705
|
> def first_ele(class_name)
|
1680
1706
|
|
@@ -1690,7 +1716,7 @@ __Returns:__
|
|
1690
1716
|
|
1691
1717
|
--
|
1692
1718
|
|
1693
|
-
##### [last_ele](https://github.com/appium/ruby_lib/blob/
|
1719
|
+
##### [last_ele](https://github.com/appium/ruby_lib/blob/954a3a8d4d5cd56fa5a4e80d021805759dbf5e10/lib/appium_lib/android/common/helper.rb#L173) android
|
1694
1720
|
|
1695
1721
|
> def last_ele(class_name)
|
1696
1722
|
|
@@ -1706,7 +1732,7 @@ __Returns:__
|
|
1706
1732
|
|
1707
1733
|
--
|
1708
1734
|
|
1709
|
-
##### [tag](https://github.com/appium/ruby_lib/blob/
|
1735
|
+
##### [tag](https://github.com/appium/ruby_lib/blob/954a3a8d4d5cd56fa5a4e80d021805759dbf5e10/lib/appium_lib/android/common/helper.rb#L181) android
|
1710
1736
|
|
1711
1737
|
> def tag(class_name)
|
1712
1738
|
|
@@ -1722,7 +1748,7 @@ __Returns:__
|
|
1722
1748
|
|
1723
1749
|
--
|
1724
1750
|
|
1725
|
-
##### [tags](https://github.com/appium/ruby_lib/blob/
|
1751
|
+
##### [tags](https://github.com/appium/ruby_lib/blob/954a3a8d4d5cd56fa5a4e80d021805759dbf5e10/lib/appium_lib/android/common/helper.rb#L189) android
|
1726
1752
|
|
1727
1753
|
> def tags(class_name)
|
1728
1754
|
|
@@ -1738,7 +1764,7 @@ __Returns:__
|
|
1738
1764
|
|
1739
1765
|
--
|
1740
1766
|
|
1741
|
-
##### [string_visible_contains_xpath](https://github.com/appium/ruby_lib/blob/
|
1767
|
+
##### [string_visible_contains_xpath](https://github.com/appium/ruby_lib/blob/954a3a8d4d5cd56fa5a4e80d021805759dbf5e10/lib/appium_lib/android/common/helper.rb#L232) android
|
1742
1768
|
|
1743
1769
|
> def string_visible_contains_xpath(class_name, value)
|
1744
1770
|
|
@@ -1759,7 +1785,7 @@ __Returns:__
|
|
1759
1785
|
|
1760
1786
|
--
|
1761
1787
|
|
1762
|
-
##### [string_visible_contains](https://github.com/appium/ruby_lib/blob/
|
1788
|
+
##### [string_visible_contains](https://github.com/appium/ruby_lib/blob/954a3a8d4d5cd56fa5a4e80d021805759dbf5e10/lib/appium_lib/android/common/helper.rb#L252) android
|
1763
1789
|
|
1764
1790
|
> def string_visible_contains(class_name, value)
|
1765
1791
|
|
@@ -1780,7 +1806,7 @@ __Returns:__
|
|
1780
1806
|
|
1781
1807
|
--
|
1782
1808
|
|
1783
|
-
##### [complex_find_contains](https://github.com/appium/ruby_lib/blob/
|
1809
|
+
##### [complex_find_contains](https://github.com/appium/ruby_lib/blob/954a3a8d4d5cd56fa5a4e80d021805759dbf5e10/lib/appium_lib/android/common/helper.rb#L270) android
|
1784
1810
|
|
1785
1811
|
> def complex_find_contains(class_name, value)
|
1786
1812
|
|
@@ -1798,7 +1824,7 @@ __Returns:__
|
|
1798
1824
|
|
1799
1825
|
--
|
1800
1826
|
|
1801
|
-
##### [complex_finds_contains](https://github.com/appium/ruby_lib/blob/
|
1827
|
+
##### [complex_finds_contains](https://github.com/appium/ruby_lib/blob/954a3a8d4d5cd56fa5a4e80d021805759dbf5e10/lib/appium_lib/android/common/helper.rb#L278) android
|
1802
1828
|
|
1803
1829
|
> def complex_finds_contains(class_name, value)
|
1804
1830
|
|
@@ -1816,7 +1842,7 @@ __Returns:__
|
|
1816
1842
|
|
1817
1843
|
--
|
1818
1844
|
|
1819
|
-
##### [complex_find_exact](https://github.com/appium/ruby_lib/blob/
|
1845
|
+
##### [complex_find_exact](https://github.com/appium/ruby_lib/blob/954a3a8d4d5cd56fa5a4e80d021805759dbf5e10/lib/appium_lib/android/common/helper.rb#L320) android
|
1820
1846
|
|
1821
1847
|
> def complex_find_exact(class_name, value)
|
1822
1848
|
|
@@ -1834,7 +1860,7 @@ __Returns:__
|
|
1834
1860
|
|
1835
1861
|
--
|
1836
1862
|
|
1837
|
-
##### [complex_finds_exact](https://github.com/appium/ruby_lib/blob/
|
1863
|
+
##### [complex_finds_exact](https://github.com/appium/ruby_lib/blob/954a3a8d4d5cd56fa5a4e80d021805759dbf5e10/lib/appium_lib/android/common/helper.rb#L328) android
|
1838
1864
|
|
1839
1865
|
> def complex_finds_exact(class_name, value)
|
1840
1866
|
|
@@ -1852,7 +1878,7 @@ __Returns:__
|
|
1852
1878
|
|
1853
1879
|
--
|
1854
1880
|
|
1855
|
-
##### [alert_click](https://github.com/appium/ruby_lib/blob/
|
1881
|
+
##### [alert_click](https://github.com/appium/ruby_lib/blob/954a3a8d4d5cd56fa5a4e80d021805759dbf5e10/lib/appium_lib/android/element/alert.rb#L20) android
|
1856
1882
|
|
1857
1883
|
> def alert_click(value)
|
1858
1884
|
|
@@ -1868,7 +1894,7 @@ __Returns:__
|
|
1868
1894
|
|
1869
1895
|
--
|
1870
1896
|
|
1871
|
-
##### [alert_accept](https://github.com/appium/ruby_lib/blob/
|
1897
|
+
##### [alert_accept](https://github.com/appium/ruby_lib/blob/954a3a8d4d5cd56fa5a4e80d021805759dbf5e10/lib/appium_lib/android/element/alert.rb#L27) android
|
1872
1898
|
|
1873
1899
|
> def alert_accept
|
1874
1900
|
|
@@ -1881,7 +1907,7 @@ __Returns:__
|
|
1881
1907
|
|
1882
1908
|
--
|
1883
1909
|
|
1884
|
-
##### [alert_accept_text](https://github.com/appium/ruby_lib/blob/
|
1910
|
+
##### [alert_accept_text](https://github.com/appium/ruby_lib/blob/954a3a8d4d5cd56fa5a4e80d021805759dbf5e10/lib/appium_lib/android/element/alert.rb#L34) android
|
1885
1911
|
|
1886
1912
|
> def alert_accept_text
|
1887
1913
|
|
@@ -1894,7 +1920,7 @@ __Returns:__
|
|
1894
1920
|
|
1895
1921
|
--
|
1896
1922
|
|
1897
|
-
##### [alert_dismiss](https://github.com/appium/ruby_lib/blob/
|
1923
|
+
##### [alert_dismiss](https://github.com/appium/ruby_lib/blob/954a3a8d4d5cd56fa5a4e80d021805759dbf5e10/lib/appium_lib/android/element/alert.rb#L41) android
|
1898
1924
|
|
1899
1925
|
> def alert_dismiss
|
1900
1926
|
|
@@ -1907,7 +1933,7 @@ __Returns:__
|
|
1907
1933
|
|
1908
1934
|
--
|
1909
1935
|
|
1910
|
-
##### [alert_dismiss_text](https://github.com/appium/ruby_lib/blob/
|
1936
|
+
##### [alert_dismiss_text](https://github.com/appium/ruby_lib/blob/954a3a8d4d5cd56fa5a4e80d021805759dbf5e10/lib/appium_lib/android/element/alert.rb#L48) android
|
1911
1937
|
|
1912
1938
|
> def alert_dismiss_text
|
1913
1939
|
|
@@ -1920,7 +1946,7 @@ __Returns:__
|
|
1920
1946
|
|
1921
1947
|
--
|
1922
1948
|
|
1923
|
-
##### [BUTTON](https://github.com/appium/ruby_lib/blob/
|
1949
|
+
##### [BUTTON](https://github.com/appium/ruby_lib/blob/954a3a8d4d5cd56fa5a4e80d021805759dbf5e10/lib/appium_lib/android/element/button.rb#L17) android
|
1924
1950
|
|
1925
1951
|
> BUTTON = 'android.widget.Button'
|
1926
1952
|
|
@@ -1928,7 +1954,7 @@ __Returns:__
|
|
1928
1954
|
|
1929
1955
|
--
|
1930
1956
|
|
1931
|
-
##### [Button](https://github.com/appium/ruby_lib/blob/
|
1957
|
+
##### [Button](https://github.com/appium/ruby_lib/blob/954a3a8d4d5cd56fa5a4e80d021805759dbf5e10/lib/appium_lib/android/element/button.rb#L18) android
|
1932
1958
|
|
1933
1959
|
> Button = BUTTON # backward compatibility
|
1934
1960
|
|
@@ -1936,7 +1962,7 @@ backward compatibility
|
|
1936
1962
|
|
1937
1963
|
--
|
1938
1964
|
|
1939
|
-
##### [IMAGE_BUTTON](https://github.com/appium/ruby_lib/blob/
|
1965
|
+
##### [IMAGE_BUTTON](https://github.com/appium/ruby_lib/blob/954a3a8d4d5cd56fa5a4e80d021805759dbf5e10/lib/appium_lib/android/element/button.rb#L20) android
|
1940
1966
|
|
1941
1967
|
> IMAGE_BUTTON = 'android.widget.ImageButton'
|
1942
1968
|
|
@@ -1944,7 +1970,7 @@ backward compatibility
|
|
1944
1970
|
|
1945
1971
|
--
|
1946
1972
|
|
1947
|
-
##### [ImageButton](https://github.com/appium/ruby_lib/blob/
|
1973
|
+
##### [ImageButton](https://github.com/appium/ruby_lib/blob/954a3a8d4d5cd56fa5a4e80d021805759dbf5e10/lib/appium_lib/android/element/button.rb#L21) android
|
1948
1974
|
|
1949
1975
|
> ImageButton = IMAGE_BUTTON # backward compatibility
|
1950
1976
|
|
@@ -1952,7 +1978,7 @@ backward compatibility
|
|
1952
1978
|
|
1953
1979
|
--
|
1954
1980
|
|
1955
|
-
##### [button](https://github.com/appium/ruby_lib/blob/
|
1981
|
+
##### [button](https://github.com/appium/ruby_lib/blob/954a3a8d4d5cd56fa5a4e80d021805759dbf5e10/lib/appium_lib/android/element/button.rb#L27) android
|
1956
1982
|
|
1957
1983
|
> def button(value)
|
1958
1984
|
|
@@ -1969,7 +1995,7 @@ __Returns:__
|
|
1969
1995
|
|
1970
1996
|
--
|
1971
1997
|
|
1972
|
-
##### [buttons](https://github.com/appium/ruby_lib/blob/
|
1998
|
+
##### [buttons](https://github.com/appium/ruby_lib/blob/954a3a8d4d5cd56fa5a4e80d021805759dbf5e10/lib/appium_lib/android/element/button.rb#L45) android
|
1973
1999
|
|
1974
2000
|
> def buttons(value = false)
|
1975
2001
|
|
@@ -1986,7 +2012,7 @@ __Returns:__
|
|
1986
2012
|
|
1987
2013
|
--
|
1988
2014
|
|
1989
|
-
##### [first_button](https://github.com/appium/ruby_lib/blob/
|
2015
|
+
##### [first_button](https://github.com/appium/ruby_lib/blob/954a3a8d4d5cd56fa5a4e80d021805759dbf5e10/lib/appium_lib/android/element/button.rb#L53) android
|
1990
2016
|
|
1991
2017
|
> def first_button
|
1992
2018
|
|
@@ -1998,7 +2024,7 @@ __Returns:__
|
|
1998
2024
|
|
1999
2025
|
--
|
2000
2026
|
|
2001
|
-
##### [last_button](https://github.com/appium/ruby_lib/blob/
|
2027
|
+
##### [last_button](https://github.com/appium/ruby_lib/blob/954a3a8d4d5cd56fa5a4e80d021805759dbf5e10/lib/appium_lib/android/element/button.rb#L59) android
|
2002
2028
|
|
2003
2029
|
> def last_button
|
2004
2030
|
|
@@ -2010,7 +2036,7 @@ __Returns:__
|
|
2010
2036
|
|
2011
2037
|
--
|
2012
2038
|
|
2013
|
-
##### [button_exact](https://github.com/appium/ruby_lib/blob/
|
2039
|
+
##### [button_exact](https://github.com/appium/ruby_lib/blob/954a3a8d4d5cd56fa5a4e80d021805759dbf5e10/lib/appium_lib/android/element/button.rb#L75) android
|
2014
2040
|
|
2015
2041
|
> def button_exact(value)
|
2016
2042
|
|
@@ -2026,7 +2052,7 @@ __Returns:__
|
|
2026
2052
|
|
2027
2053
|
--
|
2028
2054
|
|
2029
|
-
##### [buttons_exact](https://github.com/appium/ruby_lib/blob/
|
2055
|
+
##### [buttons_exact](https://github.com/appium/ruby_lib/blob/954a3a8d4d5cd56fa5a4e80d021805759dbf5e10/lib/appium_lib/android/element/button.rb#L82) android
|
2030
2056
|
|
2031
2057
|
> def buttons_exact(value)
|
2032
2058
|
|
@@ -2042,7 +2068,7 @@ __Returns:__
|
|
2042
2068
|
|
2043
2069
|
--
|
2044
2070
|
|
2045
|
-
##### [_button_visible_selectors](https://github.com/appium/ruby_lib/blob/
|
2071
|
+
##### [_button_visible_selectors](https://github.com/appium/ruby_lib/blob/954a3a8d4d5cd56fa5a4e80d021805759dbf5e10/lib/appium_lib/android/element/button.rb#L95) android
|
2046
2072
|
|
2047
2073
|
> def _button_visible_selectors(opts = {})
|
2048
2074
|
|
@@ -2050,7 +2076,7 @@ __Returns:__
|
|
2050
2076
|
|
2051
2077
|
--
|
2052
2078
|
|
2053
|
-
##### [_button_exact_string](https://github.com/appium/ruby_lib/blob/
|
2079
|
+
##### [_button_exact_string](https://github.com/appium/ruby_lib/blob/954a3a8d4d5cd56fa5a4e80d021805759dbf5e10/lib/appium_lib/android/element/button.rb#L108) android
|
2054
2080
|
|
2055
2081
|
> def _button_exact_string(value)
|
2056
2082
|
|
@@ -2058,7 +2084,7 @@ __Returns:__
|
|
2058
2084
|
|
2059
2085
|
--
|
2060
2086
|
|
2061
|
-
##### [_button_contains_string](https://github.com/appium/ruby_lib/blob/
|
2087
|
+
##### [_button_contains_string](https://github.com/appium/ruby_lib/blob/954a3a8d4d5cd56fa5a4e80d021805759dbf5e10/lib/appium_lib/android/element/button.rb#L114) android
|
2062
2088
|
|
2063
2089
|
> def _button_contains_string(value)
|
2064
2090
|
|
@@ -2066,7 +2092,7 @@ __Returns:__
|
|
2066
2092
|
|
2067
2093
|
--
|
2068
2094
|
|
2069
|
-
##### [find](https://github.com/appium/ruby_lib/blob/
|
2095
|
+
##### [find](https://github.com/appium/ruby_lib/blob/954a3a8d4d5cd56fa5a4e80d021805759dbf5e10/lib/appium_lib/android/element/generic.rb#L20) android
|
2070
2096
|
|
2071
2097
|
> def find(value)
|
2072
2098
|
|
@@ -2082,7 +2108,7 @@ __Returns:__
|
|
2082
2108
|
|
2083
2109
|
--
|
2084
2110
|
|
2085
|
-
##### [finds](https://github.com/appium/ruby_lib/blob/
|
2111
|
+
##### [finds](https://github.com/appium/ruby_lib/blob/954a3a8d4d5cd56fa5a4e80d021805759dbf5e10/lib/appium_lib/android/element/generic.rb#L27) android
|
2086
2112
|
|
2087
2113
|
> def finds(value)
|
2088
2114
|
|
@@ -2098,7 +2124,7 @@ __Returns:__
|
|
2098
2124
|
|
2099
2125
|
--
|
2100
2126
|
|
2101
|
-
##### [find_exact](https://github.com/appium/ruby_lib/blob/
|
2127
|
+
##### [find_exact](https://github.com/appium/ruby_lib/blob/954a3a8d4d5cd56fa5a4e80d021805759dbf5e10/lib/appium_lib/android/element/generic.rb#L34) android
|
2102
2128
|
|
2103
2129
|
> def find_exact(value)
|
2104
2130
|
|
@@ -2114,7 +2140,7 @@ __Returns:__
|
|
2114
2140
|
|
2115
2141
|
--
|
2116
2142
|
|
2117
|
-
##### [finds_exact](https://github.com/appium/ruby_lib/blob/
|
2143
|
+
##### [finds_exact](https://github.com/appium/ruby_lib/blob/954a3a8d4d5cd56fa5a4e80d021805759dbf5e10/lib/appium_lib/android/element/generic.rb#L41) android
|
2118
2144
|
|
2119
2145
|
> def finds_exact(value)
|
2120
2146
|
|
@@ -2130,7 +2156,7 @@ __Returns:__
|
|
2130
2156
|
|
2131
2157
|
--
|
2132
2158
|
|
2133
|
-
##### [scroll_to](https://github.com/appium/ruby_lib/blob/
|
2159
|
+
##### [scroll_to](https://github.com/appium/ruby_lib/blob/954a3a8d4d5cd56fa5a4e80d021805759dbf5e10/lib/appium_lib/android/element/generic.rb#L54) android
|
2134
2160
|
|
2135
2161
|
> def scroll_to(text, scrollable_index = 0)
|
2136
2162
|
|
@@ -2148,7 +2174,7 @@ __Returns:__
|
|
2148
2174
|
|
2149
2175
|
--
|
2150
2176
|
|
2151
|
-
##### [scroll_to_exact](https://github.com/appium/ruby_lib/blob/
|
2177
|
+
##### [scroll_to_exact](https://github.com/appium/ruby_lib/blob/954a3a8d4d5cd56fa5a4e80d021805759dbf5e10/lib/appium_lib/android/element/generic.rb#L72) android
|
2152
2178
|
|
2153
2179
|
> def scroll_to_exact(text, scrollable_index = 0)
|
2154
2180
|
|
@@ -2166,7 +2192,7 @@ __Returns:__
|
|
2166
2192
|
|
2167
2193
|
--
|
2168
2194
|
|
2169
|
-
##### [for](https://github.com/appium/ruby_lib/blob/
|
2195
|
+
##### [for](https://github.com/appium/ruby_lib/blob/954a3a8d4d5cd56fa5a4e80d021805759dbf5e10/lib/appium_lib/android/espresso/bridge.rb#L21) android
|
2170
2196
|
|
2171
2197
|
> def self.for(target)
|
2172
2198
|
|
@@ -2174,7 +2200,7 @@ __Returns:__
|
|
2174
2200
|
|
2175
2201
|
--
|
2176
2202
|
|
2177
|
-
##### [complex_find_contains](https://github.com/appium/ruby_lib/blob/
|
2203
|
+
##### [complex_find_contains](https://github.com/appium/ruby_lib/blob/954a3a8d4d5cd56fa5a4e80d021805759dbf5e10/lib/appium_lib/android/espresso/helper.rb#L23) android
|
2178
2204
|
|
2179
2205
|
> def complex_find_contains(class_name, value)
|
2180
2206
|
|
@@ -2192,7 +2218,7 @@ __Returns:__
|
|
2192
2218
|
|
2193
2219
|
--
|
2194
2220
|
|
2195
|
-
##### [complex_finds_contains](https://github.com/appium/ruby_lib/blob/
|
2221
|
+
##### [complex_finds_contains](https://github.com/appium/ruby_lib/blob/954a3a8d4d5cd56fa5a4e80d021805759dbf5e10/lib/appium_lib/android/espresso/helper.rb#L31) android
|
2196
2222
|
|
2197
2223
|
> def complex_finds_contains(class_name, value)
|
2198
2224
|
|
@@ -2210,7 +2236,7 @@ __Returns:__
|
|
2210
2236
|
|
2211
2237
|
--
|
2212
2238
|
|
2213
|
-
##### [complex_find_exact](https://github.com/appium/ruby_lib/blob/
|
2239
|
+
##### [complex_find_exact](https://github.com/appium/ruby_lib/blob/954a3a8d4d5cd56fa5a4e80d021805759dbf5e10/lib/appium_lib/android/espresso/helper.rb#L39) android
|
2214
2240
|
|
2215
2241
|
> def complex_find_exact(class_name, value)
|
2216
2242
|
|
@@ -2228,7 +2254,7 @@ __Returns:__
|
|
2228
2254
|
|
2229
2255
|
--
|
2230
2256
|
|
2231
|
-
##### [complex_finds_exact](https://github.com/appium/ruby_lib/blob/
|
2257
|
+
##### [complex_finds_exact](https://github.com/appium/ruby_lib/blob/954a3a8d4d5cd56fa5a4e80d021805759dbf5e10/lib/appium_lib/android/espresso/helper.rb#L47) android
|
2232
2258
|
|
2233
2259
|
> def complex_finds_exact(class_name, value)
|
2234
2260
|
|
@@ -2246,7 +2272,7 @@ __Returns:__
|
|
2246
2272
|
|
2247
2273
|
--
|
2248
2274
|
|
2249
|
-
##### [EDIT_TEXT](https://github.com/appium/ruby_lib/blob/
|
2275
|
+
##### [EDIT_TEXT](https://github.com/appium/ruby_lib/blob/954a3a8d4d5cd56fa5a4e80d021805759dbf5e10/lib/appium_lib/android/element/textfield.rb#L17) android
|
2250
2276
|
|
2251
2277
|
> EDIT_TEXT = 'android.widget.EditText'
|
2252
2278
|
|
@@ -2254,7 +2280,7 @@ __Returns:__
|
|
2254
2280
|
|
2255
2281
|
--
|
2256
2282
|
|
2257
|
-
##### [EditText](https://github.com/appium/ruby_lib/blob/
|
2283
|
+
##### [EditText](https://github.com/appium/ruby_lib/blob/954a3a8d4d5cd56fa5a4e80d021805759dbf5e10/lib/appium_lib/android/element/textfield.rb#L18) android
|
2258
2284
|
|
2259
2285
|
> EditText = EDIT_TEXT
|
2260
2286
|
|
@@ -2262,7 +2288,7 @@ __Returns:__
|
|
2262
2288
|
|
2263
2289
|
--
|
2264
2290
|
|
2265
|
-
##### [textfield](https://github.com/appium/ruby_lib/blob/
|
2291
|
+
##### [textfield](https://github.com/appium/ruby_lib/blob/954a3a8d4d5cd56fa5a4e80d021805759dbf5e10/lib/appium_lib/android/element/textfield.rb#L24) android
|
2266
2292
|
|
2267
2293
|
> def textfield(value)
|
2268
2294
|
|
@@ -2279,7 +2305,7 @@ __Returns:__
|
|
2279
2305
|
|
2280
2306
|
--
|
2281
2307
|
|
2282
|
-
##### [textfields](https://github.com/appium/ruby_lib/blob/
|
2308
|
+
##### [textfields](https://github.com/appium/ruby_lib/blob/954a3a8d4d5cd56fa5a4e80d021805759dbf5e10/lib/appium_lib/android/element/textfield.rb#L34) android
|
2283
2309
|
|
2284
2310
|
> def textfields(value = false)
|
2285
2311
|
|
@@ -2296,7 +2322,7 @@ __Returns:__
|
|
2296
2322
|
|
2297
2323
|
--
|
2298
2324
|
|
2299
|
-
##### [first_textfield](https://github.com/appium/ruby_lib/blob/
|
2325
|
+
##### [first_textfield](https://github.com/appium/ruby_lib/blob/954a3a8d4d5cd56fa5a4e80d021805759dbf5e10/lib/appium_lib/android/element/textfield.rb#L42) android
|
2300
2326
|
|
2301
2327
|
> def first_textfield
|
2302
2328
|
|
@@ -2308,7 +2334,7 @@ __Returns:__
|
|
2308
2334
|
|
2309
2335
|
--
|
2310
2336
|
|
2311
|
-
##### [last_textfield](https://github.com/appium/ruby_lib/blob/
|
2337
|
+
##### [last_textfield](https://github.com/appium/ruby_lib/blob/954a3a8d4d5cd56fa5a4e80d021805759dbf5e10/lib/appium_lib/android/element/textfield.rb#L48) android
|
2312
2338
|
|
2313
2339
|
> def last_textfield
|
2314
2340
|
|
@@ -2320,7 +2346,7 @@ __Returns:__
|
|
2320
2346
|
|
2321
2347
|
--
|
2322
2348
|
|
2323
|
-
##### [textfield_exact](https://github.com/appium/ruby_lib/blob/
|
2349
|
+
##### [textfield_exact](https://github.com/appium/ruby_lib/blob/954a3a8d4d5cd56fa5a4e80d021805759dbf5e10/lib/appium_lib/android/element/textfield.rb#L55) android
|
2324
2350
|
|
2325
2351
|
> def textfield_exact(value)
|
2326
2352
|
|
@@ -2336,7 +2362,7 @@ __Returns:__
|
|
2336
2362
|
|
2337
2363
|
--
|
2338
2364
|
|
2339
|
-
##### [textfields_exact](https://github.com/appium/ruby_lib/blob/
|
2365
|
+
##### [textfields_exact](https://github.com/appium/ruby_lib/blob/954a3a8d4d5cd56fa5a4e80d021805759dbf5e10/lib/appium_lib/android/element/textfield.rb#L62) android
|
2340
2366
|
|
2341
2367
|
> def textfields_exact(value)
|
2342
2368
|
|
@@ -2352,7 +2378,7 @@ __Returns:__
|
|
2352
2378
|
|
2353
2379
|
--
|
2354
2380
|
|
2355
|
-
##### [for](https://github.com/appium/ruby_lib/blob/
|
2381
|
+
##### [for](https://github.com/appium/ruby_lib/blob/954a3a8d4d5cd56fa5a4e80d021805759dbf5e10/lib/appium_lib/android/uiautomator2/bridge.rb#L21) android
|
2356
2382
|
|
2357
2383
|
> def self.for(target)
|
2358
2384
|
|
@@ -2360,7 +2386,7 @@ __Returns:__
|
|
2360
2386
|
|
2361
2387
|
--
|
2362
2388
|
|
2363
|
-
##### [string_visible_contains](https://github.com/appium/ruby_lib/blob/
|
2389
|
+
##### [string_visible_contains](https://github.com/appium/ruby_lib/blob/954a3a8d4d5cd56fa5a4e80d021805759dbf5e10/lib/appium_lib/android/uiautomator2/helper.rb#L27) android
|
2364
2390
|
|
2365
2391
|
> def string_visible_contains(class_name, value)
|
2366
2392
|
|
@@ -2381,7 +2407,7 @@ __Returns:__
|
|
2381
2407
|
|
2382
2408
|
--
|
2383
2409
|
|
2384
|
-
##### [complex_find_contains](https://github.com/appium/ruby_lib/blob/
|
2410
|
+
##### [complex_find_contains](https://github.com/appium/ruby_lib/blob/954a3a8d4d5cd56fa5a4e80d021805759dbf5e10/lib/appium_lib/android/uiautomator2/helper.rb#L45) android
|
2385
2411
|
|
2386
2412
|
> def complex_find_contains(class_name, value)
|
2387
2413
|
|
@@ -2399,7 +2425,7 @@ __Returns:__
|
|
2399
2425
|
|
2400
2426
|
--
|
2401
2427
|
|
2402
|
-
##### [complex_finds_contains](https://github.com/appium/ruby_lib/blob/
|
2428
|
+
##### [complex_finds_contains](https://github.com/appium/ruby_lib/blob/954a3a8d4d5cd56fa5a4e80d021805759dbf5e10/lib/appium_lib/android/uiautomator2/helper.rb#L56) android
|
2403
2429
|
|
2404
2430
|
> def complex_finds_contains(class_name, value)
|
2405
2431
|
|
@@ -2417,7 +2443,7 @@ __Returns:__
|
|
2417
2443
|
|
2418
2444
|
--
|
2419
2445
|
|
2420
|
-
##### [complex_find_exact](https://github.com/appium/ruby_lib/blob/
|
2446
|
+
##### [complex_find_exact](https://github.com/appium/ruby_lib/blob/954a3a8d4d5cd56fa5a4e80d021805759dbf5e10/lib/appium_lib/android/uiautomator2/helper.rb#L84) android
|
2421
2447
|
|
2422
2448
|
> def complex_find_exact(class_name, value)
|
2423
2449
|
|
@@ -2435,7 +2461,7 @@ __Returns:__
|
|
2435
2461
|
|
2436
2462
|
--
|
2437
2463
|
|
2438
|
-
##### [complex_finds_exact](https://github.com/appium/ruby_lib/blob/
|
2464
|
+
##### [complex_finds_exact](https://github.com/appium/ruby_lib/blob/954a3a8d4d5cd56fa5a4e80d021805759dbf5e10/lib/appium_lib/android/uiautomator2/helper.rb#L95) android
|
2439
2465
|
|
2440
2466
|
> def complex_finds_exact(class_name, value)
|
2441
2467
|
|
@@ -2453,7 +2479,7 @@ __Returns:__
|
|
2453
2479
|
|
2454
2480
|
--
|
2455
2481
|
|
2456
|
-
##### [shell](https://github.com/appium/ruby_lib/blob/
|
2482
|
+
##### [shell](https://github.com/appium/ruby_lib/blob/954a3a8d4d5cd56fa5a4e80d021805759dbf5e10/lib/appium_lib/android/common/command/command.rb#L28) android
|
2457
2483
|
|
2458
2484
|
> def shell(command, arguments)
|
2459
2485
|
|
@@ -2468,7 +2494,7 @@ __Parameters:__
|
|
2468
2494
|
|
2469
2495
|
--
|
2470
2496
|
|
2471
|
-
##### [start_logs_broadcast](https://github.com/appium/ruby_lib/blob/
|
2497
|
+
##### [start_logs_broadcast](https://github.com/appium/ruby_lib/blob/954a3a8d4d5cd56fa5a4e80d021805759dbf5e10/lib/appium_lib/android/common/command/command.rb#L42) android
|
2472
2498
|
|
2473
2499
|
> def start_logs_broadcast(logcat_file = 'logcat.log')
|
2474
2500
|
|
@@ -2480,7 +2506,7 @@ __Parameters:__
|
|
2480
2506
|
|
2481
2507
|
--
|
2482
2508
|
|
2483
|
-
##### [stop_logs_broadcast](https://github.com/appium/ruby_lib/blob/
|
2509
|
+
##### [stop_logs_broadcast](https://github.com/appium/ruby_lib/blob/954a3a8d4d5cd56fa5a4e80d021805759dbf5e10/lib/appium_lib/android/common/command/command.rb#L55) android
|
2484
2510
|
|
2485
2511
|
> def stop_logs_broadcast
|
2486
2512
|
|
@@ -2488,7 +2514,7 @@ Stop Android logcat broadcast websocket
|
|
2488
2514
|
|
2489
2515
|
--
|
2490
2516
|
|
2491
|
-
##### [button](https://github.com/appium/ruby_lib/blob/
|
2517
|
+
##### [button](https://github.com/appium/ruby_lib/blob/954a3a8d4d5cd56fa5a4e80d021805759dbf5e10/lib/appium_lib/android/espresso/element/button.rb#L23) android
|
2492
2518
|
|
2493
2519
|
> def button(value)
|
2494
2520
|
|
@@ -2505,7 +2531,7 @@ __Returns:__
|
|
2505
2531
|
|
2506
2532
|
--
|
2507
2533
|
|
2508
|
-
##### [buttons](https://github.com/appium/ruby_lib/blob/
|
2534
|
+
##### [buttons](https://github.com/appium/ruby_lib/blob/954a3a8d4d5cd56fa5a4e80d021805759dbf5e10/lib/appium_lib/android/espresso/element/button.rb#L46) android
|
2509
2535
|
|
2510
2536
|
> def buttons(value = false)
|
2511
2537
|
|
@@ -2522,7 +2548,7 @@ __Returns:__
|
|
2522
2548
|
|
2523
2549
|
--
|
2524
2550
|
|
2525
|
-
##### [first_button](https://github.com/appium/ruby_lib/blob/
|
2551
|
+
##### [first_button](https://github.com/appium/ruby_lib/blob/954a3a8d4d5cd56fa5a4e80d021805759dbf5e10/lib/appium_lib/android/espresso/element/button.rb#L56) android
|
2526
2552
|
|
2527
2553
|
> def first_button
|
2528
2554
|
|
@@ -2534,7 +2560,7 @@ __Returns:__
|
|
2534
2560
|
|
2535
2561
|
--
|
2536
2562
|
|
2537
|
-
##### [last_button](https://github.com/appium/ruby_lib/blob/
|
2563
|
+
##### [last_button](https://github.com/appium/ruby_lib/blob/954a3a8d4d5cd56fa5a4e80d021805759dbf5e10/lib/appium_lib/android/espresso/element/button.rb#L62) android
|
2538
2564
|
|
2539
2565
|
> def last_button
|
2540
2566
|
|
@@ -2546,7 +2572,7 @@ __Returns:__
|
|
2546
2572
|
|
2547
2573
|
--
|
2548
2574
|
|
2549
|
-
##### [button_exact](https://github.com/appium/ruby_lib/blob/
|
2575
|
+
##### [button_exact](https://github.com/appium/ruby_lib/blob/954a3a8d4d5cd56fa5a4e80d021805759dbf5e10/lib/appium_lib/android/espresso/element/button.rb#L77) android
|
2550
2576
|
|
2551
2577
|
> def button_exact(value)
|
2552
2578
|
|
@@ -2562,7 +2588,7 @@ __Returns:__
|
|
2562
2588
|
|
2563
2589
|
--
|
2564
2590
|
|
2565
|
-
##### [buttons_exact](https://github.com/appium/ruby_lib/blob/
|
2591
|
+
##### [buttons_exact](https://github.com/appium/ruby_lib/blob/954a3a8d4d5cd56fa5a4e80d021805759dbf5e10/lib/appium_lib/android/espresso/element/button.rb#L89) android
|
2566
2592
|
|
2567
2593
|
> def buttons_exact(value)
|
2568
2594
|
|
@@ -2578,7 +2604,7 @@ __Returns:__
|
|
2578
2604
|
|
2579
2605
|
--
|
2580
2606
|
|
2581
|
-
##### [_button_visible_selectors_xpath](https://github.com/appium/ruby_lib/blob/
|
2607
|
+
##### [_button_visible_selectors_xpath](https://github.com/appium/ruby_lib/blob/954a3a8d4d5cd56fa5a4e80d021805759dbf5e10/lib/appium_lib/android/espresso/element/button.rb#L104) android
|
2582
2608
|
|
2583
2609
|
> def _button_visible_selectors_xpath(opts = {})
|
2584
2610
|
|
@@ -2586,7 +2612,7 @@ __Returns:__
|
|
2586
2612
|
|
2587
2613
|
--
|
2588
2614
|
|
2589
|
-
##### [_button_exact_string_xpath](https://github.com/appium/ruby_lib/blob/
|
2615
|
+
##### [_button_exact_string_xpath](https://github.com/appium/ruby_lib/blob/954a3a8d4d5cd56fa5a4e80d021805759dbf5e10/lib/appium_lib/android/espresso/element/button.rb#L125) android
|
2590
2616
|
|
2591
2617
|
> def _button_exact_string_xpath(class_name, value)
|
2592
2618
|
|
@@ -2594,7 +2620,7 @@ __Returns:__
|
|
2594
2620
|
|
2595
2621
|
--
|
2596
2622
|
|
2597
|
-
##### [_button_contains_string_xpath](https://github.com/appium/ruby_lib/blob/
|
2623
|
+
##### [_button_contains_string_xpath](https://github.com/appium/ruby_lib/blob/954a3a8d4d5cd56fa5a4e80d021805759dbf5e10/lib/appium_lib/android/espresso/element/button.rb#L130) android
|
2598
2624
|
|
2599
2625
|
> def _button_contains_string_xpath(class_name, value)
|
2600
2626
|
|
@@ -2602,7 +2628,7 @@ __Returns:__
|
|
2602
2628
|
|
2603
2629
|
--
|
2604
2630
|
|
2605
|
-
##### [scroll_to](https://github.com/appium/ruby_lib/blob/
|
2631
|
+
##### [scroll_to](https://github.com/appium/ruby_lib/blob/954a3a8d4d5cd56fa5a4e80d021805759dbf5e10/lib/appium_lib/android/espresso/element/generic.rb#L23) android
|
2606
2632
|
|
2607
2633
|
> def scroll_to(text)
|
2608
2634
|
|
@@ -2619,7 +2645,7 @@ __Returns:__
|
|
2619
2645
|
|
2620
2646
|
--
|
2621
2647
|
|
2622
|
-
##### [scroll_to_exact](https://github.com/appium/ruby_lib/blob/
|
2648
|
+
##### [scroll_to_exact](https://github.com/appium/ruby_lib/blob/954a3a8d4d5cd56fa5a4e80d021805759dbf5e10/lib/appium_lib/android/espresso/element/generic.rb#L50) android
|
2623
2649
|
|
2624
2650
|
> def scroll_to_exact(text)
|
2625
2651
|
|
@@ -2636,7 +2662,7 @@ __Returns:__
|
|
2636
2662
|
|
2637
2663
|
--
|
2638
2664
|
|
2639
|
-
##### [button](https://github.com/appium/ruby_lib/blob/
|
2665
|
+
##### [button](https://github.com/appium/ruby_lib/blob/954a3a8d4d5cd56fa5a4e80d021805759dbf5e10/lib/appium_lib/android/uiautomator2/element/button.rb#L23) android
|
2640
2666
|
|
2641
2667
|
> def button(value)
|
2642
2668
|
|
@@ -2653,7 +2679,7 @@ __Returns:__
|
|
2653
2679
|
|
2654
2680
|
--
|
2655
2681
|
|
2656
|
-
##### [buttons](https://github.com/appium/ruby_lib/blob/
|
2682
|
+
##### [buttons](https://github.com/appium/ruby_lib/blob/954a3a8d4d5cd56fa5a4e80d021805759dbf5e10/lib/appium_lib/android/uiautomator2/element/button.rb#L44) android
|
2657
2683
|
|
2658
2684
|
> def buttons(value = false)
|
2659
2685
|
|
@@ -2670,7 +2696,7 @@ __Returns:__
|
|
2670
2696
|
|
2671
2697
|
--
|
2672
2698
|
|
2673
|
-
##### [first_button](https://github.com/appium/ruby_lib/blob/
|
2699
|
+
##### [first_button](https://github.com/appium/ruby_lib/blob/954a3a8d4d5cd56fa5a4e80d021805759dbf5e10/lib/appium_lib/android/uiautomator2/element/button.rb#L52) android
|
2674
2700
|
|
2675
2701
|
> def first_button
|
2676
2702
|
|
@@ -2682,7 +2708,7 @@ __Returns:__
|
|
2682
2708
|
|
2683
2709
|
--
|
2684
2710
|
|
2685
|
-
##### [last_button](https://github.com/appium/ruby_lib/blob/
|
2711
|
+
##### [last_button](https://github.com/appium/ruby_lib/blob/954a3a8d4d5cd56fa5a4e80d021805759dbf5e10/lib/appium_lib/android/uiautomator2/element/button.rb#L59) android
|
2686
2712
|
|
2687
2713
|
> def last_button
|
2688
2714
|
|
@@ -2694,7 +2720,7 @@ __Returns:__
|
|
2694
2720
|
|
2695
2721
|
--
|
2696
2722
|
|
2697
|
-
##### [button_exact](https://github.com/appium/ruby_lib/blob/
|
2723
|
+
##### [button_exact](https://github.com/appium/ruby_lib/blob/954a3a8d4d5cd56fa5a4e80d021805759dbf5e10/lib/appium_lib/android/uiautomator2/element/button.rb#L76) android
|
2698
2724
|
|
2699
2725
|
> def button_exact(value)
|
2700
2726
|
|
@@ -2710,7 +2736,7 @@ __Returns:__
|
|
2710
2736
|
|
2711
2737
|
--
|
2712
2738
|
|
2713
|
-
##### [buttons_exact](https://github.com/appium/ruby_lib/blob/
|
2739
|
+
##### [buttons_exact](https://github.com/appium/ruby_lib/blob/954a3a8d4d5cd56fa5a4e80d021805759dbf5e10/lib/appium_lib/android/uiautomator2/element/button.rb#L84) android
|
2714
2740
|
|
2715
2741
|
> def buttons_exact(value)
|
2716
2742
|
|