appium_lib 8.2.1 → 9.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/android_tests/lib/android/specs/common/device_touchaction.rb +2 -2
- data/appium_lib.gemspec +2 -2
- data/docs/android_docs.md +245 -212
- data/docs/docs.md +17 -15
- data/docs/index_paths.md +2 -2
- data/docs/ios_docs.md +422 -240
- data/docs/ios_xcuitest.md +25 -0
- data/ios_tests/Gemfile +2 -0
- data/ios_tests/appium.txt +2 -1
- data/ios_tests/lib/common.rb +98 -4
- data/ios_tests/lib/ios/specs/common/helper.rb +24 -28
- data/ios_tests/lib/ios/specs/common/patch.rb +1 -1
- data/ios_tests/lib/ios/specs/device/device.rb +17 -11
- data/ios_tests/lib/ios/specs/device/multi_touch.rb +22 -1
- data/ios_tests/lib/ios/specs/device/touch_actions.rb +14 -5
- data/ios_tests/lib/ios/specs/driver.rb +13 -9
- data/ios_tests/lib/ios/specs/ios/element/alert.rb +12 -8
- data/ios_tests/lib/ios/specs/ios/element/button.rb +6 -3
- data/ios_tests/lib/ios/specs/ios/element/text.rb +5 -3
- data/ios_tests/lib/ios/specs/ios/element/textfield.rb +12 -8
- data/ios_tests/lib/ios/specs/ios/helper.rb +9 -3
- data/ios_tests/lib/ios/specs/ios/patch.rb +9 -1
- data/ios_tests/readme.md +3 -2
- data/lib/appium_lib/common/error.rb +5 -0
- data/lib/appium_lib/common/version.rb +2 -2
- data/lib/appium_lib/device/device.rb +7 -1
- data/lib/appium_lib/device/multi_touch.rb +27 -9
- data/lib/appium_lib/device/touch_actions.rb +12 -5
- data/lib/appium_lib/driver.rb +29 -1
- data/lib/appium_lib/ios/element/button.rb +50 -24
- data/lib/appium_lib/ios/element/generic.rb +20 -4
- data/lib/appium_lib/ios/element/text.rb +48 -24
- data/lib/appium_lib/ios/element/textfield.rb +80 -40
- data/lib/appium_lib/ios/helper.rb +107 -33
- data/lib/appium_lib/ios/mobile_methods.rb +1 -0
- data/lib/appium_lib/ios/patch.rb +5 -2
- data/readme.md +1 -0
- data/release_notes.md +10 -0
- metadata +16 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: b66ad1137772906167a62c33d8f4adc53984aaf4
|
4
|
+
data.tar.gz: 3895c3700ed5dedd908d296c891bad78700f50c1
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: cf595faedeb4f08b95cd9664a7fb0472f093c65d136445e565d5207b4a58f2a3768f5dc5555ef7ea64f5d78e25fbf71f555298b6322fd958cf880f675c77c69b
|
7
|
+
data.tar.gz: 5409d672c3cf12da2dda31aedb92aa306fa36d5d87332dab7bf3400bc3ea8f056005e38f8f05ffd4a47e86c56241f98c1d2e1c47c8cdc5b982c415a32299246e
|
@@ -2,10 +2,10 @@
|
|
2
2
|
describe 'common/device_touchaction' do
|
3
3
|
t 'action_chain' do
|
4
4
|
wait do
|
5
|
-
e =
|
5
|
+
e = text('Accessibility')
|
6
6
|
Appium::TouchAction.new.press(element: e, x: 0.5, y: 0.5).release(element: e).perform
|
7
7
|
end
|
8
|
-
wait {
|
8
|
+
wait { text('Custom View') }
|
9
9
|
back
|
10
10
|
wait { text_exact 'NFC' }
|
11
11
|
end
|
data/appium_lib.gemspec
CHANGED
@@ -18,11 +18,11 @@ Gem::Specification.new do |s|
|
|
18
18
|
s.add_runtime_dependency 'awesome_print', '~> 1.6'
|
19
19
|
s.add_runtime_dependency 'json', '~> 1.8'
|
20
20
|
s.add_runtime_dependency 'tomlrb', '~> 1.1'
|
21
|
-
s.add_runtime_dependency 'nokogiri', '~> 1.6.6'
|
21
|
+
s.add_runtime_dependency 'nokogiri', '~> 1.6', '>= 1.6.6'
|
22
22
|
|
23
23
|
s.add_development_dependency 'posix-spawn', '~> 0.3'
|
24
24
|
s.add_development_dependency 'hashdiff', '~> 0.2.2'
|
25
|
-
s.add_development_dependency 'spec', '~> 5.3.4'
|
25
|
+
s.add_development_dependency 'spec', '~> 5.3', '>= 5.3.4'
|
26
26
|
s.add_development_dependency 'fakefs', '~> 0.6.7'
|
27
27
|
|
28
28
|
s.add_development_dependency 'rake', '~> 10.4'
|
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/54ff9c45df80ce901b718347e79e761f93a4316b/lib/appium_lib/driver.rb#L72)
|
2
2
|
|
3
3
|
> def self.load_settings(opts = {})
|
4
4
|
|
@@ -26,7 +26,7 @@ __Returns:__
|
|
26
26
|
|
27
27
|
--
|
28
28
|
|
29
|
-
##### [load_appium_txt](https://github.com/appium/ruby_lib/blob/
|
29
|
+
##### [load_appium_txt](https://github.com/appium/ruby_lib/blob/54ff9c45df80ce901b718347e79e761f93a4316b/lib/appium_lib/driver.rb#L105)
|
30
30
|
|
31
31
|
> def self.load_settings(opts = {})
|
32
32
|
|
@@ -54,7 +54,7 @@ __Returns:__
|
|
54
54
|
|
55
55
|
--
|
56
56
|
|
57
|
-
##### [expand_required_files](https://github.com/appium/ruby_lib/blob/
|
57
|
+
##### [expand_required_files](https://github.com/appium/ruby_lib/blob/54ff9c45df80ce901b718347e79e761f93a4316b/lib/appium_lib/driver.rb#L111)
|
58
58
|
|
59
59
|
> def self.expand_required_files(base_dir, file_paths)
|
60
60
|
|
@@ -72,7 +72,7 @@ __Returns:__
|
|
72
72
|
|
73
73
|
--
|
74
74
|
|
75
|
-
##### [symbolize_keys](https://github.com/appium/ruby_lib/blob/
|
75
|
+
##### [symbolize_keys](https://github.com/appium/ruby_lib/blob/54ff9c45df80ce901b718347e79e761f93a4316b/lib/appium_lib/driver.rb#L143)
|
76
76
|
|
77
77
|
> def self.symbolize_keys(hash)
|
78
78
|
|
@@ -83,7 +83,7 @@ https://github.com/rails/docrails/blob/a3b1105ada3da64acfa3843b164b14b734456a50/
|
|
83
83
|
|
84
84
|
--
|
85
85
|
|
86
|
-
##### [promote_singleton_appium_methods](https://github.com/appium/ruby_lib/blob/
|
86
|
+
##### [promote_singleton_appium_methods](https://github.com/appium/ruby_lib/blob/54ff9c45df80ce901b718347e79e761f93a4316b/lib/appium_lib/driver.rb#L164)
|
87
87
|
|
88
88
|
> def self.promote_singleton_appium_methods(modules)
|
89
89
|
|
@@ -101,7 +101,7 @@ otherwise, the array of modules will be used as the promotion target.
|
|
101
101
|
|
102
102
|
--
|
103
103
|
|
104
|
-
##### [promote_appium_methods](https://github.com/appium/ruby_lib/blob/
|
104
|
+
##### [promote_appium_methods](https://github.com/appium/ruby_lib/blob/54ff9c45df80ce901b718347e79e761f93a4316b/lib/appium_lib/driver.rb#L215)
|
105
105
|
|
106
106
|
> def self.promote_appium_methods(class_array)
|
107
107
|
|
@@ -131,7 +131,7 @@ __Parameters:__
|
|
131
131
|
|
132
132
|
--
|
133
133
|
|
134
|
-
##### [global_webdriver_http_sleep](https://github.com/appium/ruby_lib/blob/
|
134
|
+
##### [global_webdriver_http_sleep](https://github.com/appium/ruby_lib/blob/54ff9c45df80ce901b718347e79e761f93a4316b/lib/appium_lib/driver.rb#L249)
|
135
135
|
|
136
136
|
> def global_webdriver_http_sleep
|
137
137
|
|
@@ -139,7 +139,7 @@ The amount to sleep in seconds before every webdriver http call.
|
|
139
139
|
|
140
140
|
--
|
141
141
|
|
142
|
-
##### [global_webdriver_http_sleep=](https://github.com/appium/ruby_lib/blob/
|
142
|
+
##### [global_webdriver_http_sleep=](https://github.com/appium/ruby_lib/blob/54ff9c45df80ce901b718347e79e761f93a4316b/lib/appium_lib/driver.rb#L249)
|
143
143
|
|
144
144
|
> def global_webdriver_http_sleep=(value)
|
145
145
|
|
@@ -147,7 +147,7 @@ The amount to sleep in seconds before every webdriver http call.
|
|
147
147
|
|
148
148
|
--
|
149
149
|
|
150
|
-
##### [caps](https://github.com/appium/ruby_lib/blob/
|
150
|
+
##### [caps](https://github.com/appium/ruby_lib/blob/54ff9c45df80ce901b718347e79e761f93a4316b/lib/appium_lib/driver.rb#L251)
|
151
151
|
|
152
152
|
> def caps
|
153
153
|
|
@@ -155,7 +155,7 @@ Selenium webdriver capabilities
|
|
155
155
|
|
156
156
|
--
|
157
157
|
|
158
|
-
##### [caps=](https://github.com/appium/ruby_lib/blob/
|
158
|
+
##### [caps=](https://github.com/appium/ruby_lib/blob/54ff9c45df80ce901b718347e79e761f93a4316b/lib/appium_lib/driver.rb#L251)
|
159
159
|
|
160
160
|
> def caps=(value)
|
161
161
|
|
@@ -163,7 +163,7 @@ Selenium webdriver capabilities
|
|
163
163
|
|
164
164
|
--
|
165
165
|
|
166
|
-
##### [custom_url](https://github.com/appium/ruby_lib/blob/
|
166
|
+
##### [custom_url](https://github.com/appium/ruby_lib/blob/54ff9c45df80ce901b718347e79e761f93a4316b/lib/appium_lib/driver.rb#L253)
|
167
167
|
|
168
168
|
> def custom_url
|
169
169
|
|
@@ -171,7 +171,7 @@ Custom URL for the selenium server
|
|
171
171
|
|
172
172
|
--
|
173
173
|
|
174
|
-
##### [custom_url=](https://github.com/appium/ruby_lib/blob/
|
174
|
+
##### [custom_url=](https://github.com/appium/ruby_lib/blob/54ff9c45df80ce901b718347e79e761f93a4316b/lib/appium_lib/driver.rb#L253)
|
175
175
|
|
176
176
|
> def custom_url=(value)
|
177
177
|
|
@@ -179,7 +179,7 @@ Custom URL for the selenium server
|
|
179
179
|
|
180
180
|
--
|
181
181
|
|
182
|
-
##### [export_session](https://github.com/appium/ruby_lib/blob/
|
182
|
+
##### [export_session](https://github.com/appium/ruby_lib/blob/54ff9c45df80ce901b718347e79e761f93a4316b/lib/appium_lib/driver.rb#L255)
|
183
183
|
|
184
184
|
> def export_session
|
185
185
|
|
@@ -187,7 +187,7 @@ Export session id to textfile in /tmp for 3rd party tools
|
|
187
187
|
|
188
188
|
--
|
189
189
|
|
190
|
-
##### [export_session=](https://github.com/appium/ruby_lib/blob/
|
190
|
+
##### [export_session=](https://github.com/appium/ruby_lib/blob/54ff9c45df80ce901b718347e79e761f93a4316b/lib/appium_lib/driver.rb#L255)
|
191
191
|
|
192
192
|
> def export_session=(value)
|
193
193
|
|
@@ -195,7 +195,7 @@ Export session id to textfile in /tmp for 3rd party tools
|
|
195
195
|
|
196
196
|
--
|
197
197
|
|
198
|
-
##### [default_wait](https://github.com/appium/ruby_lib/blob/
|
198
|
+
##### [default_wait](https://github.com/appium/ruby_lib/blob/54ff9c45df80ce901b718347e79e761f93a4316b/lib/appium_lib/driver.rb#L260)
|
199
199
|
|
200
200
|
> def default_wait
|
201
201
|
|
@@ -209,7 +209,7 @@ __Returns:__
|
|
209
209
|
|
210
210
|
--
|
211
211
|
|
212
|
-
##### [default_wait=](https://github.com/appium/ruby_lib/blob/
|
212
|
+
##### [default_wait=](https://github.com/appium/ruby_lib/blob/54ff9c45df80ce901b718347e79e761f93a4316b/lib/appium_lib/driver.rb#L260)
|
213
213
|
|
214
214
|
> def default_wait=(value)
|
215
215
|
|
@@ -223,7 +223,7 @@ __Returns:__
|
|
223
223
|
|
224
224
|
--
|
225
225
|
|
226
|
-
##### [last_waits](https://github.com/appium/ruby_lib/blob/
|
226
|
+
##### [last_waits](https://github.com/appium/ruby_lib/blob/54ff9c45df80ce901b718347e79e761f93a4316b/lib/appium_lib/driver.rb#L262)
|
227
227
|
|
228
228
|
> def last_waits
|
229
229
|
|
@@ -231,7 +231,7 @@ Array of previous wait time values
|
|
231
231
|
|
232
232
|
--
|
233
233
|
|
234
|
-
##### [last_waits=](https://github.com/appium/ruby_lib/blob/
|
234
|
+
##### [last_waits=](https://github.com/appium/ruby_lib/blob/54ff9c45df80ce901b718347e79e761f93a4316b/lib/appium_lib/driver.rb#L262)
|
235
235
|
|
236
236
|
> def last_waits=(value)
|
237
237
|
|
@@ -239,7 +239,7 @@ Array of previous wait time values
|
|
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/54ff9c45df80ce901b718347e79e761f93a4316b/lib/appium_lib/driver.rb#L264)
|
243
243
|
|
244
244
|
> def sauce_username
|
245
245
|
|
@@ -247,7 +247,7 @@ Username for use on Sauce Labs
|
|
247
247
|
|
248
248
|
--
|
249
249
|
|
250
|
-
##### [sauce_username=](https://github.com/appium/ruby_lib/blob/
|
250
|
+
##### [sauce_username=](https://github.com/appium/ruby_lib/blob/54ff9c45df80ce901b718347e79e761f93a4316b/lib/appium_lib/driver.rb#L264)
|
251
251
|
|
252
252
|
> def sauce_username=(value)
|
253
253
|
|
@@ -255,7 +255,7 @@ Username for use on Sauce Labs
|
|
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/54ff9c45df80ce901b718347e79e761f93a4316b/lib/appium_lib/driver.rb#L266)
|
259
259
|
|
260
260
|
> def sauce_access_key
|
261
261
|
|
@@ -263,7 +263,7 @@ Access Key for use on Sauce Labs
|
|
263
263
|
|
264
264
|
--
|
265
265
|
|
266
|
-
##### [sauce_access_key=](https://github.com/appium/ruby_lib/blob/
|
266
|
+
##### [sauce_access_key=](https://github.com/appium/ruby_lib/blob/54ff9c45df80ce901b718347e79e761f93a4316b/lib/appium_lib/driver.rb#L266)
|
267
267
|
|
268
268
|
> def sauce_access_key=(value)
|
269
269
|
|
@@ -271,7 +271,7 @@ Access Key for use on Sauce Labs
|
|
271
271
|
|
272
272
|
--
|
273
273
|
|
274
|
-
##### [appium_port](https://github.com/appium/ruby_lib/blob/
|
274
|
+
##### [appium_port](https://github.com/appium/ruby_lib/blob/54ff9c45df80ce901b718347e79e761f93a4316b/lib/appium_lib/driver.rb#L268)
|
275
275
|
|
276
276
|
> def appium_port
|
277
277
|
|
@@ -279,7 +279,7 @@ Appium's server port
|
|
279
279
|
|
280
280
|
--
|
281
281
|
|
282
|
-
##### [appium_port=](https://github.com/appium/ruby_lib/blob/
|
282
|
+
##### [appium_port=](https://github.com/appium/ruby_lib/blob/54ff9c45df80ce901b718347e79e761f93a4316b/lib/appium_lib/driver.rb#L268)
|
283
283
|
|
284
284
|
> def appium_port=(value)
|
285
285
|
|
@@ -287,7 +287,7 @@ Appium's server port
|
|
287
287
|
|
288
288
|
--
|
289
289
|
|
290
|
-
##### [appium_device](https://github.com/appium/ruby_lib/blob/
|
290
|
+
##### [appium_device](https://github.com/appium/ruby_lib/blob/54ff9c45df80ce901b718347e79e761f93a4316b/lib/appium_lib/driver.rb#L270)
|
291
291
|
|
292
292
|
> def appium_device
|
293
293
|
|
@@ -295,7 +295,7 @@ Device type to request from the appium server
|
|
295
295
|
|
296
296
|
--
|
297
297
|
|
298
|
-
##### [appium_device=](https://github.com/appium/ruby_lib/blob/
|
298
|
+
##### [appium_device=](https://github.com/appium/ruby_lib/blob/54ff9c45df80ce901b718347e79e761f93a4316b/lib/appium_lib/driver.rb#L270)
|
299
299
|
|
300
300
|
> def appium_device=(value)
|
301
301
|
|
@@ -303,7 +303,36 @@ Device type to request from the appium server
|
|
303
303
|
|
304
304
|
--
|
305
305
|
|
306
|
-
##### [
|
306
|
+
##### [automation_name](https://github.com/appium/ruby_lib/blob/54ff9c45df80ce901b718347e79e761f93a4316b/lib/appium_lib/driver.rb#L272)
|
307
|
+
|
308
|
+
> def automation_name
|
309
|
+
|
310
|
+
Automation name sent to appium server
|
311
|
+
|
312
|
+
--
|
313
|
+
|
314
|
+
##### [appium_server_version](https://github.com/appium/ruby_lib/blob/54ff9c45df80ce901b718347e79e761f93a4316b/lib/appium_lib/driver.rb#L274)
|
315
|
+
|
316
|
+
> def appium_server_version
|
317
|
+
|
318
|
+
Returns the server's version info
|
319
|
+
|
320
|
+
```ruby
|
321
|
+
{
|
322
|
+
"build" => {
|
323
|
+
"version" => "0.18.1",
|
324
|
+
"revision" => "d242ebcfd92046a974347ccc3a28f0e898595198"
|
325
|
+
}
|
326
|
+
}
|
327
|
+
```
|
328
|
+
|
329
|
+
__Returns:__
|
330
|
+
|
331
|
+
[Hash]
|
332
|
+
|
333
|
+
--
|
334
|
+
|
335
|
+
##### [appium_debug](https://github.com/appium/ruby_lib/blob/54ff9c45df80ce901b718347e79e761f93a4316b/lib/appium_lib/driver.rb#L276)
|
307
336
|
|
308
337
|
> def appium_debug
|
309
338
|
|
@@ -311,7 +340,7 @@ Boolean debug mode for the Appium Ruby bindings
|
|
311
340
|
|
312
341
|
--
|
313
342
|
|
314
|
-
##### [appium_debug=](https://github.com/appium/ruby_lib/blob/
|
343
|
+
##### [appium_debug=](https://github.com/appium/ruby_lib/blob/54ff9c45df80ce901b718347e79e761f93a4316b/lib/appium_lib/driver.rb#L276)
|
315
344
|
|
316
345
|
> def appium_debug=(value)
|
317
346
|
|
@@ -319,7 +348,7 @@ Boolean debug mode for the Appium Ruby bindings
|
|
319
348
|
|
320
349
|
--
|
321
350
|
|
322
|
-
##### [listener](https://github.com/appium/ruby_lib/blob/
|
351
|
+
##### [listener](https://github.com/appium/ruby_lib/blob/54ff9c45df80ce901b718347e79e761f93a4316b/lib/appium_lib/driver.rb#L278)
|
323
352
|
|
324
353
|
> def listener
|
325
354
|
|
@@ -327,7 +356,7 @@ instance of AbstractEventListener for logging support
|
|
327
356
|
|
328
357
|
--
|
329
358
|
|
330
|
-
##### [listener=](https://github.com/appium/ruby_lib/blob/
|
359
|
+
##### [listener=](https://github.com/appium/ruby_lib/blob/54ff9c45df80ce901b718347e79e761f93a4316b/lib/appium_lib/driver.rb#L278)
|
331
360
|
|
332
361
|
> def listener=(value)
|
333
362
|
|
@@ -335,7 +364,7 @@ instance of AbstractEventListener for logging support
|
|
335
364
|
|
336
365
|
--
|
337
366
|
|
338
|
-
##### [driver](https://github.com/appium/ruby_lib/blob/
|
367
|
+
##### [driver](https://github.com/appium/ruby_lib/blob/54ff9c45df80ce901b718347e79e761f93a4316b/lib/appium_lib/driver.rb#L281)
|
339
368
|
|
340
369
|
> def driver
|
341
370
|
|
@@ -347,7 +376,7 @@ __Returns:__
|
|
347
376
|
|
348
377
|
--
|
349
378
|
|
350
|
-
##### [initialize](https://github.com/appium/ruby_lib/blob/
|
379
|
+
##### [initialize](https://github.com/appium/ruby_lib/blob/54ff9c45df80ce901b718347e79e761f93a4316b/lib/appium_lib/driver.rb#L302)
|
351
380
|
|
352
381
|
> def initialize(opts = {})
|
353
382
|
|
@@ -378,7 +407,7 @@ __Returns:__
|
|
378
407
|
|
379
408
|
--
|
380
409
|
|
381
|
-
##### [driver_attributes](https://github.com/appium/ruby_lib/blob/
|
410
|
+
##### [driver_attributes](https://github.com/appium/ruby_lib/blob/54ff9c45df80ce901b718347e79e761f93a4316b/lib/appium_lib/driver.rb#L372)
|
382
411
|
|
383
412
|
> def driver_attributes
|
384
413
|
|
@@ -386,7 +415,7 @@ Returns a hash of the driver attributes
|
|
386
415
|
|
387
416
|
--
|
388
417
|
|
389
|
-
##### [device_is_android?](https://github.com/appium/ruby_lib/blob/
|
418
|
+
##### [device_is_android?](https://github.com/appium/ruby_lib/blob/54ff9c45df80ce901b718347e79e761f93a4316b/lib/appium_lib/driver.rb#L393)
|
390
419
|
|
391
420
|
> def device_is_android?
|
392
421
|
|
@@ -398,28 +427,32 @@ __Returns:__
|
|
398
427
|
|
399
428
|
--
|
400
429
|
|
401
|
-
##### [
|
430
|
+
##### [automation_name_is_xcuitest?](https://github.com/appium/ruby_lib/blob/54ff9c45df80ce901b718347e79e761f93a4316b/lib/appium_lib/driver.rb#L399)
|
402
431
|
|
403
|
-
> def
|
432
|
+
> def automation_name_is_xcuitest?
|
404
433
|
|
405
|
-
|
434
|
+
Return true if automationName is 'XCUITest'
|
406
435
|
|
407
|
-
|
408
|
-
|
409
|
-
|
410
|
-
|
411
|
-
|
412
|
-
|
413
|
-
|
414
|
-
|
436
|
+
__Returns:__
|
437
|
+
|
438
|
+
[Boolean]
|
439
|
+
|
440
|
+
--
|
441
|
+
|
442
|
+
##### [check_server_version_xcuitest](https://github.com/appium/ruby_lib/blob/54ff9c45df80ce901b718347e79e761f93a4316b/lib/appium_lib/driver.rb#L406)
|
443
|
+
|
444
|
+
> def check_server_version_xcuitest
|
445
|
+
|
446
|
+
Return true if the target Appium server is over REQUIRED_VERSION_XCUITEST.
|
447
|
+
If the Appium server is under REQUIRED_VERSION_XCUITEST, then error is raised.
|
415
448
|
|
416
449
|
__Returns:__
|
417
450
|
|
418
|
-
[
|
451
|
+
[Boolean]
|
419
452
|
|
420
453
|
--
|
421
454
|
|
422
|
-
##### [absolute_app_path](https://github.com/appium/ruby_lib/blob/
|
455
|
+
##### [absolute_app_path](https://github.com/appium/ruby_lib/blob/54ff9c45df80ce901b718347e79e761f93a4316b/lib/appium_lib/driver.rb#L437)
|
423
456
|
|
424
457
|
> def self.absolute_app_path(opts)
|
425
458
|
|
@@ -436,7 +469,7 @@ __Returns:__
|
|
436
469
|
|
437
470
|
--
|
438
471
|
|
439
|
-
##### [server_url](https://github.com/appium/ruby_lib/blob/
|
472
|
+
##### [server_url](https://github.com/appium/ruby_lib/blob/54ff9c45df80ce901b718347e79e761f93a4316b/lib/appium_lib/driver.rb#L470)
|
440
473
|
|
441
474
|
> def server_url
|
442
475
|
|
@@ -448,7 +481,7 @@ __Returns:__
|
|
448
481
|
|
449
482
|
--
|
450
483
|
|
451
|
-
##### [restart](https://github.com/appium/ruby_lib/blob/
|
484
|
+
##### [restart](https://github.com/appium/ruby_lib/blob/54ff9c45df80ce901b718347e79e761f93a4316b/lib/appium_lib/driver.rb#L481)
|
452
485
|
|
453
486
|
> def restart
|
454
487
|
|
@@ -460,7 +493,7 @@ __Returns:__
|
|
460
493
|
|
461
494
|
--
|
462
495
|
|
463
|
-
##### [screenshot](https://github.com/appium/ruby_lib/blob/
|
496
|
+
##### [screenshot](https://github.com/appium/ruby_lib/blob/54ff9c45df80ce901b718347e79e761f93a4316b/lib/appium_lib/driver.rb#L492)
|
464
497
|
|
465
498
|
> def screenshot(png_save_path)
|
466
499
|
|
@@ -478,7 +511,7 @@ __Returns:__
|
|
478
511
|
|
479
512
|
--
|
480
513
|
|
481
|
-
##### [driver_quit](https://github.com/appium/ruby_lib/blob/
|
514
|
+
##### [driver_quit](https://github.com/appium/ruby_lib/blob/54ff9c45df80ce901b718347e79e761f93a4316b/lib/appium_lib/driver.rb#L499)
|
482
515
|
|
483
516
|
> def driver_quit
|
484
517
|
|
@@ -490,7 +523,7 @@ __Returns:__
|
|
490
523
|
|
491
524
|
--
|
492
525
|
|
493
|
-
##### [start_driver](https://github.com/appium/ruby_lib/blob/
|
526
|
+
##### [start_driver](https://github.com/appium/ruby_lib/blob/54ff9c45df80ce901b718347e79e761f93a4316b/lib/appium_lib/driver.rb#L508)
|
494
527
|
|
495
528
|
> def start_driver
|
496
529
|
|
@@ -502,7 +535,7 @@ __Returns:__
|
|
502
535
|
|
503
536
|
--
|
504
537
|
|
505
|
-
##### [no_wait](https://github.com/appium/ruby_lib/blob/
|
538
|
+
##### [no_wait](https://github.com/appium/ruby_lib/blob/54ff9c45df80ce901b718347e79e761f93a4316b/lib/appium_lib/driver.rb#L545)
|
506
539
|
|
507
540
|
> def no_wait
|
508
541
|
|
@@ -510,7 +543,7 @@ Set implicit wait and default_wait to zero.
|
|
510
543
|
|
511
544
|
--
|
512
545
|
|
513
|
-
##### [set_wait](https://github.com/appium/ruby_lib/blob/
|
546
|
+
##### [set_wait](https://github.com/appium/ruby_lib/blob/54ff9c45df80ce901b718347e79e761f93a4316b/lib/appium_lib/driver.rb#L564)
|
514
547
|
|
515
548
|
> def set_wait(timeout = nil)
|
516
549
|
|
@@ -535,7 +568,7 @@ __Returns:__
|
|
535
568
|
|
536
569
|
--
|
537
570
|
|
538
|
-
##### [exists](https://github.com/appium/ruby_lib/blob/
|
571
|
+
##### [exists](https://github.com/appium/ruby_lib/blob/54ff9c45df80ce901b718347e79e761f93a4316b/lib/appium_lib/driver.rb#L591)
|
539
572
|
|
540
573
|
> def exists(pre_check = 0, post_check = @default_wait, &search_block)
|
541
574
|
|
@@ -561,7 +594,7 @@ __Returns:__
|
|
561
594
|
|
562
595
|
--
|
563
596
|
|
564
|
-
##### [execute_script](https://github.com/appium/ruby_lib/blob/
|
597
|
+
##### [execute_script](https://github.com/appium/ruby_lib/blob/54ff9c45df80ce901b718347e79e761f93a4316b/lib/appium_lib/driver.rb#L615)
|
565
598
|
|
566
599
|
> def execute_script(script, *args)
|
567
600
|
|
@@ -579,7 +612,7 @@ __Returns:__
|
|
579
612
|
|
580
613
|
--
|
581
614
|
|
582
|
-
##### [find_elements](https://github.com/appium/ruby_lib/blob/
|
615
|
+
##### [find_elements](https://github.com/appium/ruby_lib/blob/54ff9c45df80ce901b718347e79e761f93a4316b/lib/appium_lib/driver.rb#L623)
|
583
616
|
|
584
617
|
> def find_elements(*args)
|
585
618
|
|
@@ -595,7 +628,7 @@ __Returns:__
|
|
595
628
|
|
596
629
|
--
|
597
630
|
|
598
|
-
##### [find_element](https://github.com/appium/ruby_lib/blob/
|
631
|
+
##### [find_element](https://github.com/appium/ruby_lib/blob/54ff9c45df80ce901b718347e79e761f93a4316b/lib/appium_lib/driver.rb#L631)
|
599
632
|
|
600
633
|
> def find_element(*args)
|
601
634
|
|
@@ -611,7 +644,7 @@ __Returns:__
|
|
611
644
|
|
612
645
|
--
|
613
646
|
|
614
|
-
##### [set_location](https://github.com/appium/ruby_lib/blob/
|
647
|
+
##### [set_location](https://github.com/appium/ruby_lib/blob/54ff9c45df80ce901b718347e79e761f93a4316b/lib/appium_lib/driver.rb#L644)
|
615
648
|
|
616
649
|
> def set_location(opts = {})
|
617
650
|
|
@@ -627,7 +660,7 @@ __Returns:__
|
|
627
660
|
|
628
661
|
--
|
629
662
|
|
630
|
-
##### [x](https://github.com/appium/ruby_lib/blob/
|
663
|
+
##### [x](https://github.com/appium/ruby_lib/blob/54ff9c45df80ce901b718347e79e761f93a4316b/lib/appium_lib/driver.rb#L654)
|
631
664
|
|
632
665
|
> def x
|
633
666
|
|
@@ -640,7 +673,7 @@ __Returns:__
|
|
640
673
|
|
641
674
|
--
|
642
675
|
|
643
|
-
##### [logger=](https://github.com/appium/ruby_lib/blob/
|
676
|
+
##### [logger=](https://github.com/appium/ruby_lib/blob/54ff9c45df80ce901b718347e79e761f93a4316b/lib/appium_lib/logger.rb#L13)
|
644
677
|
|
645
678
|
> def logger=(value)
|
646
679
|
|
@@ -652,7 +685,7 @@ __Parameters:__
|
|
652
685
|
|
653
686
|
--
|
654
687
|
|
655
|
-
##### [logger](https://github.com/appium/ruby_lib/blob/
|
688
|
+
##### [logger](https://github.com/appium/ruby_lib/blob/54ff9c45df80ce901b718347e79e761f93a4316b/lib/appium_lib/logger.rb#L17)
|
656
689
|
|
657
690
|
> def logger
|
658
691
|
|
@@ -660,7 +693,7 @@ __Parameters:__
|
|
660
693
|
|
661
694
|
--
|
662
695
|
|
663
|
-
##### [NoArgMethods](https://github.com/appium/ruby_lib/blob/
|
696
|
+
##### [NoArgMethods](https://github.com/appium/ruby_lib/blob/54ff9c45df80ce901b718347e79e761f93a4316b/lib/appium_lib/device/device.rb#L7)
|
664
697
|
|
665
698
|
> NoArgMethods = {
|
666
699
|
|
@@ -668,7 +701,7 @@ __Parameters:__
|
|
668
701
|
|
669
702
|
--
|
670
703
|
|
671
|
-
##### [app_strings](https://github.com/appium/ruby_lib/blob/
|
704
|
+
##### [app_strings](https://github.com/appium/ruby_lib/blob/54ff9c45df80ce901b718347e79e761f93a4316b/lib/appium_lib/device/device.rb#L25)
|
672
705
|
|
673
706
|
> def app_strings
|
674
707
|
|
@@ -679,7 +712,7 @@ app_strings #=> "TransitionsTitle"=>"Transitions", "WebTitle"=>"Web"
|
|
679
712
|
|
680
713
|
--
|
681
714
|
|
682
|
-
##### [background_app](https://github.com/appium/ruby_lib/blob/
|
715
|
+
##### [background_app](https://github.com/appium/ruby_lib/blob/54ff9c45df80ce901b718347e79e761f93a4316b/lib/appium_lib/device/device.rb#L31)
|
683
716
|
|
684
717
|
> def background_app
|
685
718
|
|
@@ -688,7 +721,7 @@ This is a blocking application
|
|
688
721
|
|
689
722
|
--
|
690
723
|
|
691
|
-
##### [current_activity](https://github.com/appium/ruby_lib/blob/
|
724
|
+
##### [current_activity](https://github.com/appium/ruby_lib/blob/54ff9c45df80ce901b718347e79e761f93a4316b/lib/appium_lib/device/device.rb#L36)
|
692
725
|
|
693
726
|
> def current_activity
|
694
727
|
|
@@ -696,7 +729,7 @@ This is a blocking application
|
|
696
729
|
|
697
730
|
--
|
698
731
|
|
699
|
-
##### [launch_app](https://github.com/appium/ruby_lib/blob/
|
732
|
+
##### [launch_app](https://github.com/appium/ruby_lib/blob/54ff9c45df80ce901b718347e79e761f93a4316b/lib/appium_lib/device/device.rb#L38)
|
700
733
|
|
701
734
|
> def launch_app
|
702
735
|
|
@@ -704,7 +737,7 @@ Start the simulator and application configured with desired capabilities
|
|
704
737
|
|
705
738
|
--
|
706
739
|
|
707
|
-
##### [reset](https://github.com/appium/ruby_lib/blob/
|
740
|
+
##### [reset](https://github.com/appium/ruby_lib/blob/54ff9c45df80ce901b718347e79e761f93a4316b/lib/appium_lib/device/device.rb#L41)
|
708
741
|
|
709
742
|
> def reset
|
710
743
|
|
@@ -712,7 +745,7 @@ Reset the device, relaunching the application.
|
|
712
745
|
|
713
746
|
--
|
714
747
|
|
715
|
-
##### [shake](https://github.com/appium/ruby_lib/blob/
|
748
|
+
##### [shake](https://github.com/appium/ruby_lib/blob/54ff9c45df80ce901b718347e79e761f93a4316b/lib/appium_lib/device/device.rb#L44)
|
716
749
|
|
717
750
|
> def shake
|
718
751
|
|
@@ -720,7 +753,7 @@ Cause the device to shake
|
|
720
753
|
|
721
754
|
--
|
722
755
|
|
723
|
-
##### [toggle_flight_mode](https://github.com/appium/ruby_lib/blob/
|
756
|
+
##### [toggle_flight_mode](https://github.com/appium/ruby_lib/blob/54ff9c45df80ce901b718347e79e761f93a4316b/lib/appium_lib/device/device.rb#L47)
|
724
757
|
|
725
758
|
> def toggle_flight_mode
|
726
759
|
|
@@ -728,7 +761,7 @@ Toggle flight mode on or off
|
|
728
761
|
|
729
762
|
--
|
730
763
|
|
731
|
-
##### [device_locked?](https://github.com/appium/ruby_lib/blob/
|
764
|
+
##### [device_locked?](https://github.com/appium/ruby_lib/blob/54ff9c45df80ce901b718347e79e761f93a4316b/lib/appium_lib/device/device.rb#L50)
|
732
765
|
|
733
766
|
> def device_locked?
|
734
767
|
|
@@ -736,7 +769,7 @@ Toggle flight mode on or off
|
|
736
769
|
|
737
770
|
--
|
738
771
|
|
739
|
-
##### [hide_keyboard](https://github.com/appium/ruby_lib/blob/
|
772
|
+
##### [hide_keyboard](https://github.com/appium/ruby_lib/blob/54ff9c45df80ce901b718347e79e761f93a4316b/lib/appium_lib/device/device.rb#L52)
|
740
773
|
|
741
774
|
> def hide_keyboard
|
742
775
|
|
@@ -749,7 +782,7 @@ Defaults to 'Done'.
|
|
749
782
|
|
750
783
|
--
|
751
784
|
|
752
|
-
##### [press_keycode](https://github.com/appium/ruby_lib/blob/
|
785
|
+
##### [press_keycode](https://github.com/appium/ruby_lib/blob/54ff9c45df80ce901b718347e79e761f93a4316b/lib/appium_lib/device/device.rb#L61)
|
753
786
|
|
754
787
|
> def press_keycode
|
755
788
|
|
@@ -764,7 +797,7 @@ __Parameters:__
|
|
764
797
|
|
765
798
|
--
|
766
799
|
|
767
|
-
##### [long_press_keycode](https://github.com/appium/ruby_lib/blob/
|
800
|
+
##### [long_press_keycode](https://github.com/appium/ruby_lib/blob/54ff9c45df80ce901b718347e79e761f93a4316b/lib/appium_lib/device/device.rb#L67)
|
768
801
|
|
769
802
|
> def long_press_keycode
|
770
803
|
|
@@ -779,7 +812,7 @@ __Parameters:__
|
|
779
812
|
|
780
813
|
--
|
781
814
|
|
782
|
-
##### [push_file](https://github.com/appium/ruby_lib/blob/
|
815
|
+
##### [push_file](https://github.com/appium/ruby_lib/blob/54ff9c45df80ce901b718347e79e761f93a4316b/lib/appium_lib/device/device.rb#L73)
|
783
816
|
|
784
817
|
> def push_file
|
785
818
|
|
@@ -793,7 +826,7 @@ __Parameters:__
|
|
793
826
|
|
794
827
|
--
|
795
828
|
|
796
|
-
##### [pull_file](https://github.com/appium/ruby_lib/blob/
|
829
|
+
##### [pull_file](https://github.com/appium/ruby_lib/blob/54ff9c45df80ce901b718347e79e761f93a4316b/lib/appium_lib/device/device.rb#L78)
|
797
830
|
|
798
831
|
> def pull_file
|
799
832
|
|
@@ -810,7 +843,7 @@ __Parameters:__
|
|
810
843
|
|
811
844
|
--
|
812
845
|
|
813
|
-
##### [pull_folder](https://github.com/appium/ruby_lib/blob/
|
846
|
+
##### [pull_folder](https://github.com/appium/ruby_lib/blob/54ff9c45df80ce901b718347e79e761f93a4316b/lib/appium_lib/device/device.rb#L88)
|
814
847
|
|
815
848
|
> def pull_folder
|
816
849
|
|
@@ -825,7 +858,7 @@ __Parameters:__
|
|
825
858
|
|
826
859
|
--
|
827
860
|
|
828
|
-
##### [touch_id](https://github.com/appium/ruby_lib/blob/
|
861
|
+
##### [touch_id](https://github.com/appium/ruby_lib/blob/54ff9c45df80ce901b718347e79e761f93a4316b/lib/appium_lib/device/device.rb#L96)
|
829
862
|
|
830
863
|
> def touch_id
|
831
864
|
|
@@ -842,7 +875,7 @@ Defaults to true.
|
|
842
875
|
|
843
876
|
--
|
844
877
|
|
845
|
-
##### [end_coverage](https://github.com/appium/ruby_lib/blob/
|
878
|
+
##### [end_coverage](https://github.com/appium/ruby_lib/blob/54ff9c45df80ce901b718347e79e761f93a4316b/lib/appium_lib/device/device.rb#L105)
|
846
879
|
|
847
880
|
> def end_coverage
|
848
881
|
|
@@ -856,7 +889,7 @@ __Parameters:__
|
|
856
889
|
|
857
890
|
--
|
858
891
|
|
859
|
-
##### [get_settings](https://github.com/appium/ruby_lib/blob/
|
892
|
+
##### [get_settings](https://github.com/appium/ruby_lib/blob/54ff9c45df80ce901b718347e79e761f93a4316b/lib/appium_lib/device/device.rb#L110)
|
860
893
|
|
861
894
|
> def get_settings
|
862
895
|
|
@@ -864,7 +897,7 @@ Get appium Settings for current test session
|
|
864
897
|
|
865
898
|
--
|
866
899
|
|
867
|
-
##### [extend_search_contexts](https://github.com/appium/ruby_lib/blob/
|
900
|
+
##### [extend_search_contexts](https://github.com/appium/ruby_lib/blob/54ff9c45df80ce901b718347e79e761f93a4316b/lib/appium_lib/device/device.rb#L400)
|
868
901
|
|
869
902
|
> def extend_search_contexts
|
870
903
|
|
@@ -872,7 +905,7 @@ Get appium Settings for current test session
|
|
872
905
|
|
873
906
|
--
|
874
907
|
|
875
|
-
##### [find_element](https://github.com/appium/ruby_lib/blob/
|
908
|
+
##### [find_element](https://github.com/appium/ruby_lib/blob/54ff9c45df80ce901b718347e79e761f93a4316b/lib/appium_lib/device/device.rb#L400)
|
876
909
|
|
877
910
|
> def find_element
|
878
911
|
|
@@ -880,7 +913,7 @@ Get appium Settings for current test session
|
|
880
913
|
|
881
914
|
--
|
882
915
|
|
883
|
-
##### [find_elements](https://github.com/appium/ruby_lib/blob/
|
916
|
+
##### [find_elements](https://github.com/appium/ruby_lib/blob/54ff9c45df80ce901b718347e79e761f93a4316b/lib/appium_lib/device/device.rb#L400)
|
884
917
|
|
885
918
|
> def find_elements
|
886
919
|
|
@@ -892,7 +925,7 @@ find_element/s with their accessibility_id
|
|
892
925
|
|
893
926
|
--
|
894
927
|
|
895
|
-
##### [add_touch_actions](https://github.com/appium/ruby_lib/blob/
|
928
|
+
##### [add_touch_actions](https://github.com/appium/ruby_lib/blob/54ff9c45df80ce901b718347e79e761f93a4316b/lib/appium_lib/device/device.rb#L406)
|
896
929
|
|
897
930
|
> def add_touch_actions
|
898
931
|
|
@@ -900,7 +933,7 @@ find_element/s with their accessibility_id
|
|
900
933
|
|
901
934
|
--
|
902
935
|
|
903
|
-
##### [add_ime_actions](https://github.com/appium/ruby_lib/blob/
|
936
|
+
##### [add_ime_actions](https://github.com/appium/ruby_lib/blob/54ff9c45df80ce901b718347e79e761f93a4316b/lib/appium_lib/device/device.rb#L429)
|
904
937
|
|
905
938
|
> def add_ime_actions
|
906
939
|
|
@@ -908,7 +941,7 @@ find_element/s with their accessibility_id
|
|
908
941
|
|
909
942
|
--
|
910
943
|
|
911
|
-
##### [set_context](https://github.com/appium/ruby_lib/blob/
|
944
|
+
##### [set_context](https://github.com/appium/ruby_lib/blob/54ff9c45df80ce901b718347e79e761f93a4316b/lib/appium_lib/device/device.rb#L504)
|
912
945
|
|
913
946
|
> def set_context
|
914
947
|
|
@@ -923,7 +956,7 @@ __Parameters:__
|
|
923
956
|
|
924
957
|
--
|
925
958
|
|
926
|
-
##### [current_context](https://github.com/appium/ruby_lib/blob/
|
959
|
+
##### [current_context](https://github.com/appium/ruby_lib/blob/54ff9c45df80ce901b718347e79e761f93a4316b/lib/appium_lib/device/device.rb#L512)
|
927
960
|
|
928
961
|
> def current_context
|
929
962
|
|
@@ -935,7 +968,7 @@ __Returns:__
|
|
935
968
|
|
936
969
|
--
|
937
970
|
|
938
|
-
##### [available_contexts](https://github.com/appium/ruby_lib/blob/
|
971
|
+
##### [available_contexts](https://github.com/appium/ruby_lib/blob/54ff9c45df80ce901b718347e79e761f93a4316b/lib/appium_lib/device/device.rb#L515)
|
939
972
|
|
940
973
|
> def available_contexts
|
941
974
|
|
@@ -947,7 +980,7 @@ __Returns:__
|
|
947
980
|
|
948
981
|
--
|
949
982
|
|
950
|
-
##### [within_context](https://github.com/appium/ruby_lib/blob/
|
983
|
+
##### [within_context](https://github.com/appium/ruby_lib/blob/54ff9c45df80ce901b718347e79e761f93a4316b/lib/appium_lib/device/device.rb#L525)
|
951
984
|
|
952
985
|
> def within_context(context)
|
953
986
|
|
@@ -963,7 +996,7 @@ __Parameters:__
|
|
963
996
|
|
964
997
|
--
|
965
998
|
|
966
|
-
##### [switch_to_default_context](https://github.com/appium/ruby_lib/blob/
|
999
|
+
##### [switch_to_default_context](https://github.com/appium/ruby_lib/blob/54ff9c45df80ce901b718347e79e761f93a4316b/lib/appium_lib/device/device.rb#L533)
|
967
1000
|
|
968
1001
|
> def switch_to_default_context
|
969
1002
|
|
@@ -971,7 +1004,7 @@ Change to the default context. This is equivalent to `set_context nil`.
|
|
971
1004
|
|
972
1005
|
--
|
973
1006
|
|
974
|
-
##### [pinch](https://github.com/appium/ruby_lib/blob/
|
1007
|
+
##### [pinch](https://github.com/appium/ruby_lib/blob/54ff9c45df80ce901b718347e79e761f93a4316b/lib/appium_lib/device/multi_touch.rb#L28)
|
975
1008
|
|
976
1009
|
> def pinch(percentage = 25, auto_perform = true)
|
977
1010
|
|
@@ -990,7 +1023,7 @@ __Parameters:__
|
|
990
1023
|
|
991
1024
|
--
|
992
1025
|
|
993
|
-
##### [zoom](https://github.com/appium/ruby_lib/blob/
|
1026
|
+
##### [zoom](https://github.com/appium/ruby_lib/blob/54ff9c45df80ce901b718347e79e761f93a4316b/lib/appium_lib/device/multi_touch.rb#L64)
|
994
1027
|
|
995
1028
|
> def zoom(percentage = 200, auto_perform = true)
|
996
1029
|
|
@@ -1009,7 +1042,7 @@ __Parameters:__
|
|
1009
1042
|
|
1010
1043
|
--
|
1011
1044
|
|
1012
|
-
##### [initialize](https://github.com/appium/ruby_lib/blob/
|
1045
|
+
##### [initialize](https://github.com/appium/ruby_lib/blob/54ff9c45df80ce901b718347e79e761f93a4316b/lib/appium_lib/device/multi_touch.rb#L95)
|
1013
1046
|
|
1014
1047
|
> def initialize
|
1015
1048
|
|
@@ -1021,7 +1054,7 @@ __Returns:__
|
|
1021
1054
|
|
1022
1055
|
--
|
1023
1056
|
|
1024
|
-
##### [add](https://github.com/appium/ruby_lib/blob/
|
1057
|
+
##### [add](https://github.com/appium/ruby_lib/blob/54ff9c45df80ce901b718347e79e761f93a4316b/lib/appium_lib/device/multi_touch.rb#L101)
|
1025
1058
|
|
1026
1059
|
> def add(chain)
|
1027
1060
|
|
@@ -1033,7 +1066,7 @@ __Parameters:__
|
|
1033
1066
|
|
1034
1067
|
--
|
1035
1068
|
|
1036
|
-
##### [perform](https://github.com/appium/ruby_lib/blob/
|
1069
|
+
##### [perform](https://github.com/appium/ruby_lib/blob/54ff9c45df80ce901b718347e79e761f93a4316b/lib/appium_lib/device/multi_touch.rb#L106)
|
1037
1070
|
|
1038
1071
|
> def perform
|
1039
1072
|
|
@@ -1041,7 +1074,7 @@ Ask Appium to perform the actions
|
|
1041
1074
|
|
1042
1075
|
--
|
1043
1076
|
|
1044
|
-
##### [ACTIONS](https://github.com/appium/ruby_lib/blob/
|
1077
|
+
##### [ACTIONS](https://github.com/appium/ruby_lib/blob/54ff9c45df80ce901b718347e79e761f93a4316b/lib/appium_lib/device/touch_actions.rb#L11)
|
1045
1078
|
|
1046
1079
|
> ACTIONS = [:move_to, :long_press, :double_tap, :two_finger_tap, :press, :release, :tap, :wait, :perform]
|
1047
1080
|
|
@@ -1049,7 +1082,7 @@ Ask Appium to perform the actions
|
|
1049
1082
|
|
1050
1083
|
--
|
1051
1084
|
|
1052
|
-
##### [COMPLEX_ACTIONS](https://github.com/appium/ruby_lib/blob/
|
1085
|
+
##### [COMPLEX_ACTIONS](https://github.com/appium/ruby_lib/blob/54ff9c45df80ce901b718347e79e761f93a4316b/lib/appium_lib/device/touch_actions.rb#L12)
|
1053
1086
|
|
1054
1087
|
> COMPLEX_ACTIONS = [:swipe]
|
1055
1088
|
|
@@ -1057,7 +1090,7 @@ Ask Appium to perform the actions
|
|
1057
1090
|
|
1058
1091
|
--
|
1059
1092
|
|
1060
|
-
##### [actions](https://github.com/appium/ruby_lib/blob/
|
1093
|
+
##### [actions](https://github.com/appium/ruby_lib/blob/54ff9c45df80ce901b718347e79e761f93a4316b/lib/appium_lib/device/touch_actions.rb#L26)
|
1061
1094
|
|
1062
1095
|
> def actions
|
1063
1096
|
|
@@ -1065,7 +1098,7 @@ Returns the value of attribute actions
|
|
1065
1098
|
|
1066
1099
|
--
|
1067
1100
|
|
1068
|
-
##### [initialize](https://github.com/appium/ruby_lib/blob/
|
1101
|
+
##### [initialize](https://github.com/appium/ruby_lib/blob/54ff9c45df80ce901b718347e79e761f93a4316b/lib/appium_lib/device/touch_actions.rb#L28)
|
1069
1102
|
|
1070
1103
|
> def initialize
|
1071
1104
|
|
@@ -1077,7 +1110,7 @@ __Returns:__
|
|
1077
1110
|
|
1078
1111
|
--
|
1079
1112
|
|
1080
|
-
##### [move_to](https://github.com/appium/ruby_lib/blob/
|
1113
|
+
##### [move_to](https://github.com/appium/ruby_lib/blob/54ff9c45df80ce901b718347e79e761f93a4316b/lib/appium_lib/device/touch_actions.rb#L36)
|
1081
1114
|
|
1082
1115
|
> def move_to(opts)
|
1083
1116
|
|
@@ -1089,7 +1122,7 @@ __Parameters:__
|
|
1089
1122
|
|
1090
1123
|
--
|
1091
1124
|
|
1092
|
-
##### [long_press](https://github.com/appium/ruby_lib/blob/
|
1125
|
+
##### [long_press](https://github.com/appium/ruby_lib/blob/54ff9c45df80ce901b718347e79e761f93a4316b/lib/appium_lib/device/touch_actions.rb#L46)
|
1093
1126
|
|
1094
1127
|
> def long_press(opts)
|
1095
1128
|
|
@@ -1107,7 +1140,7 @@ __Parameters:__
|
|
1107
1140
|
|
1108
1141
|
--
|
1109
1142
|
|
1110
|
-
##### [press](https://github.com/appium/ruby_lib/blob/
|
1143
|
+
##### [press](https://github.com/appium/ruby_lib/blob/54ff9c45df80ce901b718347e79e761f93a4316b/lib/appium_lib/device/touch_actions.rb#L58)
|
1111
1144
|
|
1112
1145
|
> def press(opts)
|
1113
1146
|
|
@@ -1120,7 +1153,7 @@ __Parameters:__
|
|
1120
1153
|
|
1121
1154
|
--
|
1122
1155
|
|
1123
|
-
##### [release](https://github.com/appium/ruby_lib/blob/
|
1156
|
+
##### [release](https://github.com/appium/ruby_lib/blob/54ff9c45df80ce901b718347e79e761f93a4316b/lib/appium_lib/device/touch_actions.rb#L69)
|
1124
1157
|
|
1125
1158
|
> def release(opts = nil)
|
1126
1159
|
|
@@ -1132,7 +1165,7 @@ __Parameters:__
|
|
1132
1165
|
|
1133
1166
|
--
|
1134
1167
|
|
1135
|
-
##### [tap](https://github.com/appium/ruby_lib/blob/
|
1168
|
+
##### [tap](https://github.com/appium/ruby_lib/blob/54ff9c45df80ce901b718347e79e761f93a4316b/lib/appium_lib/device/touch_actions.rb#L80)
|
1136
1169
|
|
1137
1170
|
> def tap(opts)
|
1138
1171
|
|
@@ -1144,7 +1177,7 @@ __Parameters:__
|
|
1144
1177
|
|
1145
1178
|
--
|
1146
1179
|
|
1147
|
-
##### [double_tap](https://github.com/appium/ruby_lib/blob/
|
1180
|
+
##### [double_tap](https://github.com/appium/ruby_lib/blob/54ff9c45df80ce901b718347e79e761f93a4316b/lib/appium_lib/device/touch_actions.rb#L93)
|
1148
1181
|
|
1149
1182
|
> def double_tap(opts)
|
1150
1183
|
|
@@ -1156,7 +1189,7 @@ __Parameters:__
|
|
1156
1189
|
|
1157
1190
|
--
|
1158
1191
|
|
1159
|
-
##### [two_finger_tap](https://github.com/appium/ruby_lib/blob/
|
1192
|
+
##### [two_finger_tap](https://github.com/appium/ruby_lib/blob/54ff9c45df80ce901b718347e79e761f93a4316b/lib/appium_lib/device/touch_actions.rb#L104)
|
1160
1193
|
|
1161
1194
|
> def two_finger_tap(opts)
|
1162
1195
|
|
@@ -1168,7 +1201,7 @@ __Parameters:__
|
|
1168
1201
|
|
1169
1202
|
--
|
1170
1203
|
|
1171
|
-
##### [wait](https://github.com/appium/ruby_lib/blob/
|
1204
|
+
##### [wait](https://github.com/appium/ruby_lib/blob/54ff9c45df80ce901b718347e79e761f93a4316b/lib/appium_lib/device/touch_actions.rb#L112)
|
1172
1205
|
|
1173
1206
|
> def wait(milliseconds)
|
1174
1207
|
|
@@ -1180,9 +1213,9 @@ __Parameters:__
|
|
1180
1213
|
|
1181
1214
|
--
|
1182
1215
|
|
1183
|
-
##### [swipe](https://github.com/appium/ruby_lib/blob/
|
1216
|
+
##### [swipe](https://github.com/appium/ruby_lib/blob/54ff9c45df80ce901b718347e79e761f93a4316b/lib/appium_lib/device/touch_actions.rb#L127)
|
1184
1217
|
|
1185
|
-
> def swipe(opts)
|
1218
|
+
> def swipe(opts, ele = nil)
|
1186
1219
|
|
1187
1220
|
Convenience method to peform a swipe.
|
1188
1221
|
|
@@ -1194,7 +1227,7 @@ __Parameters:__
|
|
1194
1227
|
|
1195
1228
|
--
|
1196
1229
|
|
1197
|
-
##### [perform](https://github.com/appium/ruby_lib/blob/
|
1230
|
+
##### [perform](https://github.com/appium/ruby_lib/blob/54ff9c45df80ce901b718347e79e761f93a4316b/lib/appium_lib/device/touch_actions.rb#L162)
|
1198
1231
|
|
1199
1232
|
> def perform
|
1200
1233
|
|
@@ -1202,7 +1235,7 @@ Ask the driver to perform all actions in this action chain.
|
|
1202
1235
|
|
1203
1236
|
--
|
1204
1237
|
|
1205
|
-
##### [cancel](https://github.com/appium/ruby_lib/blob/
|
1238
|
+
##### [cancel](https://github.com/appium/ruby_lib/blob/54ff9c45df80ce901b718347e79e761f93a4316b/lib/appium_lib/device/touch_actions.rb#L168)
|
1206
1239
|
|
1207
1240
|
> def cancel
|
1208
1241
|
|
@@ -1210,7 +1243,7 @@ Does nothing, currently.
|
|
1210
1243
|
|
1211
1244
|
--
|
1212
1245
|
|
1213
|
-
##### [chain_method](https://github.com/appium/ruby_lib/blob/
|
1246
|
+
##### [chain_method](https://github.com/appium/ruby_lib/blob/54ff9c45df80ce901b718347e79e761f93a4316b/lib/appium_lib/device/touch_actions.rb#L176)
|
1214
1247
|
|
1215
1248
|
> def chain_method(method, args = nil)
|
1216
1249
|
|
@@ -1218,7 +1251,7 @@ Does nothing, currently.
|
|
1218
1251
|
|
1219
1252
|
--
|
1220
1253
|
|
1221
|
-
##### [args_with_ele_ref](https://github.com/appium/ruby_lib/blob/
|
1254
|
+
##### [args_with_ele_ref](https://github.com/appium/ruby_lib/blob/54ff9c45df80ce901b718347e79e761f93a4316b/lib/appium_lib/device/touch_actions.rb#L185)
|
1222
1255
|
|
1223
1256
|
> def args_with_ele_ref(args)
|
1224
1257
|
|
@@ -1226,7 +1259,7 @@ Does nothing, currently.
|
|
1226
1259
|
|
1227
1260
|
--
|
1228
1261
|
|
1229
|
-
##### [_generic_wait](https://github.com/appium/ruby_lib/blob/
|
1262
|
+
##### [_generic_wait](https://github.com/appium/ruby_lib/blob/54ff9c45df80ce901b718347e79e761f93a4316b/lib/appium_lib/common/wait.rb#L9)
|
1230
1263
|
|
1231
1264
|
> def _generic_wait(opts = {}, &block)
|
1232
1265
|
|
@@ -1235,7 +1268,7 @@ https://github.com/SeleniumHQ/selenium/blob/cf501dda3f0ed12233de51ce8170c0e8090f
|
|
1235
1268
|
|
1236
1269
|
--
|
1237
1270
|
|
1238
|
-
##### [_process_wait_opts](https://github.com/appium/ruby_lib/blob/
|
1271
|
+
##### [_process_wait_opts](https://github.com/appium/ruby_lib/blob/54ff9c45df80ce901b718347e79e761f93a4316b/lib/appium_lib/common/wait.rb#L54)
|
1239
1272
|
|
1240
1273
|
> def _process_wait_opts(opts)
|
1241
1274
|
|
@@ -1243,7 +1276,7 @@ process opts before calling _generic_wait
|
|
1243
1276
|
|
1244
1277
|
--
|
1245
1278
|
|
1246
|
-
##### [wait_true](https://github.com/appium/ruby_lib/blob/
|
1279
|
+
##### [wait_true](https://github.com/appium/ruby_lib/blob/54ff9c45df80ce901b718347e79e761f93a4316b/lib/appium_lib/common/wait.rb#L75)
|
1247
1280
|
|
1248
1281
|
> def wait_true(opts = {}, &block)
|
1249
1282
|
|
@@ -1263,7 +1296,7 @@ __Parameters:__
|
|
1263
1296
|
|
1264
1297
|
--
|
1265
1298
|
|
1266
|
-
##### [wait](https://github.com/appium/ruby_lib/blob/
|
1299
|
+
##### [wait](https://github.com/appium/ruby_lib/blob/54ff9c45df80ce901b718347e79e761f93a4316b/lib/appium_lib/common/wait.rb#L93)
|
1267
1300
|
|
1268
1301
|
> def wait(opts = {}, &block)
|
1269
1302
|
|
@@ -1281,7 +1314,7 @@ __Parameters:__
|
|
1281
1314
|
|
1282
1315
|
--
|
1283
1316
|
|
1284
|
-
##### [ignore](https://github.com/appium/ruby_lib/blob/
|
1317
|
+
##### [ignore](https://github.com/appium/ruby_lib/blob/54ff9c45df80ce901b718347e79e761f93a4316b/lib/appium_lib/common/helper.rb#L24)
|
1285
1318
|
|
1286
1319
|
> def ignore(&block)
|
1287
1320
|
|
@@ -1289,7 +1322,7 @@ Return block.call and ignore any exceptions.
|
|
1289
1322
|
|
1290
1323
|
--
|
1291
1324
|
|
1292
|
-
##### [back](https://github.com/appium/ruby_lib/blob/
|
1325
|
+
##### [back](https://github.com/appium/ruby_lib/blob/54ff9c45df80ce901b718347e79e761f93a4316b/lib/appium_lib/common/helper.rb#L31)
|
1293
1326
|
|
1294
1327
|
> def back
|
1295
1328
|
|
@@ -1301,7 +1334,7 @@ __Returns:__
|
|
1301
1334
|
|
1302
1335
|
--
|
1303
1336
|
|
1304
|
-
##### [session_id](https://github.com/appium/ruby_lib/blob/
|
1337
|
+
##### [session_id](https://github.com/appium/ruby_lib/blob/54ff9c45df80ce901b718347e79e761f93a4316b/lib/appium_lib/common/helper.rb#L36)
|
1305
1338
|
|
1306
1339
|
> def session_id
|
1307
1340
|
|
@@ -1309,7 +1342,7 @@ For Sauce Labs reporting. Returns the current session id.
|
|
1309
1342
|
|
1310
1343
|
--
|
1311
1344
|
|
1312
|
-
##### [xpath](https://github.com/appium/ruby_lib/blob/
|
1345
|
+
##### [xpath](https://github.com/appium/ruby_lib/blob/54ff9c45df80ce901b718347e79e761f93a4316b/lib/appium_lib/common/helper.rb#L44)
|
1313
1346
|
|
1314
1347
|
> def xpath(xpath_str)
|
1315
1348
|
|
@@ -1325,7 +1358,7 @@ __Returns:__
|
|
1325
1358
|
|
1326
1359
|
--
|
1327
1360
|
|
1328
|
-
##### [xpaths](https://github.com/appium/ruby_lib/blob/
|
1361
|
+
##### [xpaths](https://github.com/appium/ruby_lib/blob/54ff9c45df80ce901b718347e79e761f93a4316b/lib/appium_lib/common/helper.rb#L52)
|
1329
1362
|
|
1330
1363
|
> def xpaths(xpath_str)
|
1331
1364
|
|
@@ -1341,7 +1374,7 @@ __Returns:__
|
|
1341
1374
|
|
1342
1375
|
--
|
1343
1376
|
|
1344
|
-
##### [_print_source](https://github.com/appium/ruby_lib/blob/
|
1377
|
+
##### [_print_source](https://github.com/appium/ruby_lib/blob/54ff9c45df80ce901b718347e79e761f93a4316b/lib/appium_lib/common/helper.rb#L56)
|
1345
1378
|
|
1346
1379
|
> def _print_source(source)
|
1347
1380
|
|
@@ -1349,7 +1382,7 @@ __Returns:__
|
|
1349
1382
|
|
1350
1383
|
--
|
1351
1384
|
|
1352
|
-
##### [result](https://github.com/appium/ruby_lib/blob/
|
1385
|
+
##### [result](https://github.com/appium/ruby_lib/blob/54ff9c45df80ce901b718347e79e761f93a4316b/lib/appium_lib/common/helper.rb#L69)
|
1353
1386
|
|
1354
1387
|
> def result
|
1355
1388
|
|
@@ -1357,7 +1390,7 @@ Returns the value of attribute result
|
|
1357
1390
|
|
1358
1391
|
--
|
1359
1392
|
|
1360
|
-
##### [initialize](https://github.com/appium/ruby_lib/blob/
|
1393
|
+
##### [initialize](https://github.com/appium/ruby_lib/blob/54ff9c45df80ce901b718347e79e761f93a4316b/lib/appium_lib/common/helper.rb#L71)
|
1361
1394
|
|
1362
1395
|
> def initialize
|
1363
1396
|
|
@@ -1369,7 +1402,7 @@ __Returns:__
|
|
1369
1402
|
|
1370
1403
|
--
|
1371
1404
|
|
1372
|
-
##### [reset](https://github.com/appium/ruby_lib/blob/
|
1405
|
+
##### [reset](https://github.com/appium/ruby_lib/blob/54ff9c45df80ce901b718347e79e761f93a4316b/lib/appium_lib/common/helper.rb#L75)
|
1373
1406
|
|
1374
1407
|
> def reset
|
1375
1408
|
|
@@ -1377,7 +1410,7 @@ __Returns:__
|
|
1377
1410
|
|
1378
1411
|
--
|
1379
1412
|
|
1380
|
-
##### [start_element](https://github.com/appium/ruby_lib/blob/
|
1413
|
+
##### [start_element](https://github.com/appium/ruby_lib/blob/54ff9c45df80ce901b718347e79e761f93a4316b/lib/appium_lib/common/helper.rb#L80)
|
1381
1414
|
|
1382
1415
|
> def start_element(name, attrs = [])
|
1383
1416
|
|
@@ -1385,7 +1418,7 @@ http://nokogiri.org/Nokogiri/XML/SAX/Document.html
|
|
1385
1418
|
|
1386
1419
|
--
|
1387
1420
|
|
1388
|
-
##### [formatted_result](https://github.com/appium/ruby_lib/blob/
|
1421
|
+
##### [formatted_result](https://github.com/appium/ruby_lib/blob/54ff9c45df80ce901b718347e79e761f93a4316b/lib/appium_lib/common/helper.rb#L86)
|
1389
1422
|
|
1390
1423
|
> def formatted_result
|
1391
1424
|
|
@@ -1393,7 +1426,7 @@ http://nokogiri.org/Nokogiri/XML/SAX/Document.html
|
|
1393
1426
|
|
1394
1427
|
--
|
1395
1428
|
|
1396
|
-
##### [get_page_class](https://github.com/appium/ruby_lib/blob/
|
1429
|
+
##### [get_page_class](https://github.com/appium/ruby_lib/blob/54ff9c45df80ce901b718347e79e761f93a4316b/lib/appium_lib/common/helper.rb#L97)
|
1397
1430
|
|
1398
1431
|
> def get_page_class
|
1399
1432
|
|
@@ -1401,7 +1434,7 @@ Returns a string of class counts of visible elements.
|
|
1401
1434
|
|
1402
1435
|
--
|
1403
1436
|
|
1404
|
-
##### [page_class](https://github.com/appium/ruby_lib/blob/
|
1437
|
+
##### [page_class](https://github.com/appium/ruby_lib/blob/54ff9c45df80ce901b718347e79e761f93a4316b/lib/appium_lib/common/helper.rb#L108)
|
1405
1438
|
|
1406
1439
|
> def page_class
|
1407
1440
|
|
@@ -1410,7 +1443,7 @@ Useful for appium_console.
|
|
1410
1443
|
|
1411
1444
|
--
|
1412
1445
|
|
1413
|
-
##### [px_to_window_rel](https://github.com/appium/ruby_lib/blob/
|
1446
|
+
##### [px_to_window_rel](https://github.com/appium/ruby_lib/blob/54ff9c45df80ce901b718347e79e761f93a4316b/lib/appium_lib/common/helper.rb#L118)
|
1414
1447
|
|
1415
1448
|
> def px_to_window_rel(opts = {})
|
1416
1449
|
|
@@ -1422,7 +1455,7 @@ px_to_window_rel x: 50, y: 150
|
|
1422
1455
|
|
1423
1456
|
--
|
1424
1457
|
|
1425
|
-
##### [xml_keys](https://github.com/appium/ruby_lib/blob/
|
1458
|
+
##### [xml_keys](https://github.com/appium/ruby_lib/blob/54ff9c45df80ce901b718347e79e761f93a4316b/lib/appium_lib/common/helper.rb#L137)
|
1426
1459
|
|
1427
1460
|
> def xml_keys(target)
|
1428
1461
|
|
@@ -1438,7 +1471,7 @@ __Returns:__
|
|
1438
1471
|
|
1439
1472
|
--
|
1440
1473
|
|
1441
|
-
##### [xml_values](https://github.com/appium/ruby_lib/blob/
|
1474
|
+
##### [xml_values](https://github.com/appium/ruby_lib/blob/54ff9c45df80ce901b718347e79e761f93a4316b/lib/appium_lib/common/helper.rb#L145)
|
1442
1475
|
|
1443
1476
|
> def xml_values(target)
|
1444
1477
|
|
@@ -1454,7 +1487,7 @@ __Returns:__
|
|
1454
1487
|
|
1455
1488
|
--
|
1456
1489
|
|
1457
|
-
##### [resolve_id](https://github.com/appium/ruby_lib/blob/
|
1490
|
+
##### [resolve_id](https://github.com/appium/ruby_lib/blob/54ff9c45df80ce901b718347e79e761f93a4316b/lib/appium_lib/common/helper.rb#L153)
|
1458
1491
|
|
1459
1492
|
> def resolve_id(id)
|
1460
1493
|
|
@@ -1470,7 +1503,7 @@ __Returns:__
|
|
1470
1503
|
|
1471
1504
|
--
|
1472
1505
|
|
1473
|
-
##### [filter](https://github.com/appium/ruby_lib/blob/
|
1506
|
+
##### [filter](https://github.com/appium/ruby_lib/blob/54ff9c45df80ce901b718347e79e761f93a4316b/lib/appium_lib/common/helper.rb#L159)
|
1474
1507
|
|
1475
1508
|
> def filter
|
1476
1509
|
|
@@ -1478,7 +1511,7 @@ Returns the value of attribute filter
|
|
1478
1511
|
|
1479
1512
|
--
|
1480
1513
|
|
1481
|
-
##### [filter=](https://github.com/appium/ruby_lib/blob/
|
1514
|
+
##### [filter=](https://github.com/appium/ruby_lib/blob/54ff9c45df80ce901b718347e79e761f93a4316b/lib/appium_lib/common/helper.rb#L162)
|
1482
1515
|
|
1483
1516
|
> def filter=(value)
|
1484
1517
|
|
@@ -1486,7 +1519,7 @@ convert to string to support symbols
|
|
1486
1519
|
|
1487
1520
|
--
|
1488
1521
|
|
1489
|
-
##### [initialize](https://github.com/appium/ruby_lib/blob/
|
1522
|
+
##### [initialize](https://github.com/appium/ruby_lib/blob/54ff9c45df80ce901b718347e79e761f93a4316b/lib/appium_lib/common/helper.rb#L168)
|
1490
1523
|
|
1491
1524
|
> def initialize
|
1492
1525
|
|
@@ -1498,7 +1531,7 @@ __Returns:__
|
|
1498
1531
|
|
1499
1532
|
--
|
1500
1533
|
|
1501
|
-
##### [reset](https://github.com/appium/ruby_lib/blob/
|
1534
|
+
##### [reset](https://github.com/appium/ruby_lib/blob/54ff9c45df80ce901b718347e79e761f93a4316b/lib/appium_lib/common/helper.rb#L173)
|
1502
1535
|
|
1503
1536
|
> def reset
|
1504
1537
|
|
@@ -1506,7 +1539,7 @@ __Returns:__
|
|
1506
1539
|
|
1507
1540
|
--
|
1508
1541
|
|
1509
|
-
##### [result](https://github.com/appium/ruby_lib/blob/
|
1542
|
+
##### [result](https://github.com/appium/ruby_lib/blob/54ff9c45df80ce901b718347e79e761f93a4316b/lib/appium_lib/common/helper.rb#L179)
|
1510
1543
|
|
1511
1544
|
> def result
|
1512
1545
|
|
@@ -1514,7 +1547,7 @@ __Returns:__
|
|
1514
1547
|
|
1515
1548
|
--
|
1516
1549
|
|
1517
|
-
##### [start_element](https://github.com/appium/ruby_lib/blob/
|
1550
|
+
##### [start_element](https://github.com/appium/ruby_lib/blob/54ff9c45df80ce901b718347e79e761f93a4316b/lib/appium_lib/common/helper.rb#L195)
|
1518
1551
|
|
1519
1552
|
> def start_element(name, attrs = [])
|
1520
1553
|
|
@@ -1522,7 +1555,7 @@ __Returns:__
|
|
1522
1555
|
|
1523
1556
|
--
|
1524
1557
|
|
1525
|
-
##### [end_element](https://github.com/appium/ruby_lib/blob/
|
1558
|
+
##### [end_element](https://github.com/appium/ruby_lib/blob/54ff9c45df80ce901b718347e79e761f93a4316b/lib/appium_lib/common/helper.rb#L204)
|
1526
1559
|
|
1527
1560
|
> def end_element(name)
|
1528
1561
|
|
@@ -1530,7 +1563,7 @@ __Returns:__
|
|
1530
1563
|
|
1531
1564
|
--
|
1532
1565
|
|
1533
|
-
##### [characters](https://github.com/appium/ruby_lib/blob/
|
1566
|
+
##### [characters](https://github.com/appium/ruby_lib/blob/54ff9c45df80ce901b718347e79e761f93a4316b/lib/appium_lib/common/helper.rb#L210)
|
1534
1567
|
|
1535
1568
|
> def characters(chars)
|
1536
1569
|
|
@@ -1538,7 +1571,7 @@ __Returns:__
|
|
1538
1571
|
|
1539
1572
|
--
|
1540
1573
|
|
1541
|
-
##### [_no_such_element](https://github.com/appium/ruby_lib/blob/
|
1574
|
+
##### [_no_such_element](https://github.com/appium/ruby_lib/blob/54ff9c45df80ce901b718347e79e761f93a4316b/lib/appium_lib/common/helper.rb#L217)
|
1542
1575
|
|
1543
1576
|
> def _no_such_element
|
1544
1577
|
|
@@ -1546,7 +1579,7 @@ __Returns:__
|
|
1546
1579
|
|
1547
1580
|
--
|
1548
1581
|
|
1549
|
-
##### [window_size](https://github.com/appium/ruby_lib/blob/
|
1582
|
+
##### [window_size](https://github.com/appium/ruby_lib/blob/54ff9c45df80ce901b718347e79e761f93a4316b/lib/appium_lib/common/element/window.rb#L5)
|
1550
1583
|
|
1551
1584
|
> def window_size
|
1552
1585
|
|
@@ -1554,7 +1587,7 @@ Get the window's size
|
|
1554
1587
|
|
1555
1588
|
--
|
1556
1589
|
|
1557
|
-
##### [result](https://github.com/appium/ruby_lib/blob/
|
1590
|
+
##### [result](https://github.com/appium/ruby_lib/blob/54ff9c45df80ce901b718347e79e761f93a4316b/lib/appium_lib/android/helper.rb#L6) android
|
1558
1591
|
|
1559
1592
|
> def result
|
1560
1593
|
|
@@ -1562,7 +1595,7 @@ Returns the value of attribute result
|
|
1562
1595
|
|
1563
1596
|
--
|
1564
1597
|
|
1565
|
-
##### [keys](https://github.com/appium/ruby_lib/blob/
|
1598
|
+
##### [keys](https://github.com/appium/ruby_lib/blob/54ff9c45df80ce901b718347e79e761f93a4316b/lib/appium_lib/android/helper.rb#L6) android
|
1566
1599
|
|
1567
1600
|
> def keys
|
1568
1601
|
|
@@ -1570,7 +1603,7 @@ Returns the value of attribute keys
|
|
1570
1603
|
|
1571
1604
|
--
|
1572
1605
|
|
1573
|
-
##### [instance](https://github.com/appium/ruby_lib/blob/
|
1606
|
+
##### [instance](https://github.com/appium/ruby_lib/blob/54ff9c45df80ce901b718347e79e761f93a4316b/lib/appium_lib/android/helper.rb#L6) android
|
1574
1607
|
|
1575
1608
|
> def instance
|
1576
1609
|
|
@@ -1578,7 +1611,7 @@ Returns the value of attribute instance
|
|
1578
1611
|
|
1579
1612
|
--
|
1580
1613
|
|
1581
|
-
##### [filter](https://github.com/appium/ruby_lib/blob/
|
1614
|
+
##### [filter](https://github.com/appium/ruby_lib/blob/54ff9c45df80ce901b718347e79e761f93a4316b/lib/appium_lib/android/helper.rb#L6) android
|
1582
1615
|
|
1583
1616
|
> def filter
|
1584
1617
|
|
@@ -1586,7 +1619,7 @@ Returns the value of attribute filter
|
|
1586
1619
|
|
1587
1620
|
--
|
1588
1621
|
|
1589
|
-
##### [filter=](https://github.com/appium/ruby_lib/blob/
|
1622
|
+
##### [filter=](https://github.com/appium/ruby_lib/blob/54ff9c45df80ce901b718347e79e761f93a4316b/lib/appium_lib/android/helper.rb#L9) android
|
1590
1623
|
|
1591
1624
|
> def filter=(value)
|
1592
1625
|
|
@@ -1594,7 +1627,7 @@ convert to string to support symbols
|
|
1594
1627
|
|
1595
1628
|
--
|
1596
1629
|
|
1597
|
-
##### [initialize](https://github.com/appium/ruby_lib/blob/
|
1630
|
+
##### [initialize](https://github.com/appium/ruby_lib/blob/54ff9c45df80ce901b718347e79e761f93a4316b/lib/appium_lib/android/helper.rb#L15) android
|
1598
1631
|
|
1599
1632
|
> def initialize
|
1600
1633
|
|
@@ -1606,7 +1639,7 @@ __Returns:__
|
|
1606
1639
|
|
1607
1640
|
--
|
1608
1641
|
|
1609
|
-
##### [reset](https://github.com/appium/ruby_lib/blob/
|
1642
|
+
##### [reset](https://github.com/appium/ruby_lib/blob/54ff9c45df80ce901b718347e79e761f93a4316b/lib/appium_lib/android/helper.rb#L21) android
|
1610
1643
|
|
1611
1644
|
> def reset
|
1612
1645
|
|
@@ -1614,7 +1647,7 @@ __Returns:__
|
|
1614
1647
|
|
1615
1648
|
--
|
1616
1649
|
|
1617
|
-
##### [start_element](https://github.com/appium/ruby_lib/blob/
|
1650
|
+
##### [start_element](https://github.com/appium/ruby_lib/blob/54ff9c45df80ce901b718347e79e761f93a4316b/lib/appium_lib/android/helper.rb#L28) android
|
1618
1651
|
|
1619
1652
|
> def start_element(name, attrs = [])
|
1620
1653
|
|
@@ -1622,7 +1655,7 @@ http://nokogiri.org/Nokogiri/XML/SAX/Document.html
|
|
1622
1655
|
|
1623
1656
|
--
|
1624
1657
|
|
1625
|
-
##### [_fix_android_native_source](https://github.com/appium/ruby_lib/blob/
|
1658
|
+
##### [_fix_android_native_source](https://github.com/appium/ruby_lib/blob/54ff9c45df80ce901b718347e79e761f93a4316b/lib/appium_lib/android/helper.rb#L88) android
|
1626
1659
|
|
1627
1660
|
> def _fix_android_native_source(source)
|
1628
1661
|
|
@@ -1632,7 +1665,7 @@ https://code.google.com/p/android/issues/detail?id=74143
|
|
1632
1665
|
|
1633
1666
|
--
|
1634
1667
|
|
1635
|
-
##### [source](https://github.com/appium/ruby_lib/blob/
|
1668
|
+
##### [source](https://github.com/appium/ruby_lib/blob/54ff9c45df80ce901b718347e79e761f93a4316b/lib/appium_lib/android/helper.rb#L116) android
|
1636
1669
|
|
1637
1670
|
> def source
|
1638
1671
|
|
@@ -1644,7 +1677,7 @@ __Returns:__
|
|
1644
1677
|
|
1645
1678
|
--
|
1646
1679
|
|
1647
|
-
##### [get_android_inspect](https://github.com/appium/ruby_lib/blob/
|
1680
|
+
##### [get_android_inspect](https://github.com/appium/ruby_lib/blob/54ff9c45df80ce901b718347e79e761f93a4316b/lib/appium_lib/android/helper.rb#L126) android
|
1648
1681
|
|
1649
1682
|
> def get_android_inspect(class_name = false)
|
1650
1683
|
|
@@ -1663,7 +1696,7 @@ __Returns:__
|
|
1663
1696
|
|
1664
1697
|
--
|
1665
1698
|
|
1666
|
-
##### [page](https://github.com/appium/ruby_lib/blob/
|
1699
|
+
##### [page](https://github.com/appium/ruby_lib/blob/54ff9c45df80ce901b718347e79e761f93a4316b/lib/appium_lib/android/helper.rb#L152) android
|
1667
1700
|
|
1668
1701
|
> def page(opts = {})
|
1669
1702
|
|
@@ -1682,7 +1715,7 @@ __Returns:__
|
|
1682
1715
|
|
1683
1716
|
--
|
1684
1717
|
|
1685
|
-
##### [current_app](https://github.com/appium/ruby_lib/blob/
|
1718
|
+
##### [current_app](https://github.com/appium/ruby_lib/blob/54ff9c45df80ce901b718347e79e761f93a4316b/lib/appium_lib/android/helper.rb#L164) android
|
1686
1719
|
|
1687
1720
|
> def current_app
|
1688
1721
|
|
@@ -1692,7 +1725,7 @@ example line:
|
|
1692
1725
|
|
1693
1726
|
--
|
1694
1727
|
|
1695
|
-
##### [id](https://github.com/appium/ruby_lib/blob/
|
1728
|
+
##### [id](https://github.com/appium/ruby_lib/blob/54ff9c45df80ce901b718347e79e761f93a4316b/lib/appium_lib/android/helper.rb#L188) android
|
1696
1729
|
|
1697
1730
|
> def id(id)
|
1698
1731
|
|
@@ -1708,7 +1741,7 @@ __Returns:__
|
|
1708
1741
|
|
1709
1742
|
--
|
1710
1743
|
|
1711
|
-
##### [ids](https://github.com/appium/ruby_lib/blob/
|
1744
|
+
##### [ids](https://github.com/appium/ruby_lib/blob/54ff9c45df80ce901b718347e79e761f93a4316b/lib/appium_lib/android/helper.rb#L196) android
|
1712
1745
|
|
1713
1746
|
> def ids(id)
|
1714
1747
|
|
@@ -1724,7 +1757,7 @@ __Returns:__
|
|
1724
1757
|
|
1725
1758
|
--
|
1726
1759
|
|
1727
|
-
##### [ele_index](https://github.com/appium/ruby_lib/blob/
|
1760
|
+
##### [ele_index](https://github.com/appium/ruby_lib/blob/54ff9c45df80ce901b718347e79e761f93a4316b/lib/appium_lib/android/helper.rb#L205) android
|
1728
1761
|
|
1729
1762
|
> def ele_index(class_name, index)
|
1730
1763
|
|
@@ -1742,7 +1775,7 @@ __Returns:__
|
|
1742
1775
|
|
1743
1776
|
--
|
1744
1777
|
|
1745
|
-
##### [first_ele](https://github.com/appium/ruby_lib/blob/
|
1778
|
+
##### [first_ele](https://github.com/appium/ruby_lib/blob/54ff9c45df80ce901b718347e79e761f93a4316b/lib/appium_lib/android/helper.rb#L223) android
|
1746
1779
|
|
1747
1780
|
> def first_ele(class_name)
|
1748
1781
|
|
@@ -1758,7 +1791,7 @@ __Returns:__
|
|
1758
1791
|
|
1759
1792
|
--
|
1760
1793
|
|
1761
|
-
##### [last_ele](https://github.com/appium/ruby_lib/blob/
|
1794
|
+
##### [last_ele](https://github.com/appium/ruby_lib/blob/54ff9c45df80ce901b718347e79e761f93a4316b/lib/appium_lib/android/helper.rb#L230) android
|
1762
1795
|
|
1763
1796
|
> def last_ele(class_name)
|
1764
1797
|
|
@@ -1774,7 +1807,7 @@ __Returns:__
|
|
1774
1807
|
|
1775
1808
|
--
|
1776
1809
|
|
1777
|
-
##### [tag](https://github.com/appium/ruby_lib/blob/
|
1810
|
+
##### [tag](https://github.com/appium/ruby_lib/blob/54ff9c45df80ce901b718347e79e761f93a4316b/lib/appium_lib/android/helper.rb#L238) android
|
1778
1811
|
|
1779
1812
|
> def tag(class_name)
|
1780
1813
|
|
@@ -1790,7 +1823,7 @@ __Returns:__
|
|
1790
1823
|
|
1791
1824
|
--
|
1792
1825
|
|
1793
|
-
##### [tags](https://github.com/appium/ruby_lib/blob/
|
1826
|
+
##### [tags](https://github.com/appium/ruby_lib/blob/54ff9c45df80ce901b718347e79e761f93a4316b/lib/appium_lib/android/helper.rb#L246) android
|
1794
1827
|
|
1795
1828
|
> def tags(class_name)
|
1796
1829
|
|
@@ -1806,7 +1839,7 @@ __Returns:__
|
|
1806
1839
|
|
1807
1840
|
--
|
1808
1841
|
|
1809
|
-
##### [string_visible_contains](https://github.com/appium/ruby_lib/blob/
|
1842
|
+
##### [string_visible_contains](https://github.com/appium/ruby_lib/blob/54ff9c45df80ce901b718347e79e761f93a4316b/lib/appium_lib/android/helper.rb#L288) android
|
1810
1843
|
|
1811
1844
|
> def string_visible_contains(class_name, value)
|
1812
1845
|
|
@@ -1826,7 +1859,7 @@ __Returns:__
|
|
1826
1859
|
|
1827
1860
|
--
|
1828
1861
|
|
1829
|
-
##### [complex_find_contains](https://github.com/appium/ruby_lib/blob/
|
1862
|
+
##### [complex_find_contains](https://github.com/appium/ruby_lib/blob/54ff9c45df80ce901b718347e79e761f93a4316b/lib/appium_lib/android/helper.rb#L308) android
|
1830
1863
|
|
1831
1864
|
> def complex_find_contains(element, value)
|
1832
1865
|
|
@@ -1844,7 +1877,7 @@ __Returns:__
|
|
1844
1877
|
|
1845
1878
|
--
|
1846
1879
|
|
1847
|
-
##### [complex_finds_contains](https://github.com/appium/ruby_lib/blob/
|
1880
|
+
##### [complex_finds_contains](https://github.com/appium/ruby_lib/blob/54ff9c45df80ce901b718347e79e761f93a4316b/lib/appium_lib/android/helper.rb#L316) android
|
1848
1881
|
|
1849
1882
|
> def complex_finds_contains(element, value)
|
1850
1883
|
|
@@ -1862,7 +1895,7 @@ __Returns:__
|
|
1862
1895
|
|
1863
1896
|
--
|
1864
1897
|
|
1865
|
-
##### [complex_find_exact](https://github.com/appium/ruby_lib/blob/
|
1898
|
+
##### [complex_find_exact](https://github.com/appium/ruby_lib/blob/54ff9c45df80ce901b718347e79e761f93a4316b/lib/appium_lib/android/helper.rb#L345) android
|
1866
1899
|
|
1867
1900
|
> def complex_find_exact(class_name, value)
|
1868
1901
|
|
@@ -1880,7 +1913,7 @@ __Returns:__
|
|
1880
1913
|
|
1881
1914
|
--
|
1882
1915
|
|
1883
|
-
##### [complex_finds_exact](https://github.com/appium/ruby_lib/blob/
|
1916
|
+
##### [complex_finds_exact](https://github.com/appium/ruby_lib/blob/54ff9c45df80ce901b718347e79e761f93a4316b/lib/appium_lib/android/helper.rb#L353) android
|
1884
1917
|
|
1885
1918
|
> def complex_finds_exact(class_name, value)
|
1886
1919
|
|
@@ -1898,7 +1931,7 @@ __Returns:__
|
|
1898
1931
|
|
1899
1932
|
--
|
1900
1933
|
|
1901
|
-
##### [get_source](https://github.com/appium/ruby_lib/blob/
|
1934
|
+
##### [get_source](https://github.com/appium/ruby_lib/blob/54ff9c45df80ce901b718347e79e761f93a4316b/lib/appium_lib/android/helper.rb#L361) android
|
1902
1935
|
|
1903
1936
|
> def get_source
|
1904
1937
|
|
@@ -1912,7 +1945,7 @@ __Returns:__
|
|
1912
1945
|
|
1913
1946
|
--
|
1914
1947
|
|
1915
|
-
##### [TextView](https://github.com/appium/ruby_lib/blob/
|
1948
|
+
##### [TextView](https://github.com/appium/ruby_lib/blob/54ff9c45df80ce901b718347e79e761f93a4316b/lib/appium_lib/android/element/text.rb#L4) android
|
1916
1949
|
|
1917
1950
|
> TextView = 'android.widget.TextView'
|
1918
1951
|
|
@@ -1920,7 +1953,7 @@ __Returns:__
|
|
1920
1953
|
|
1921
1954
|
--
|
1922
1955
|
|
1923
|
-
##### [text](https://github.com/appium/ruby_lib/blob/
|
1956
|
+
##### [text](https://github.com/appium/ruby_lib/blob/54ff9c45df80ce901b718347e79e761f93a4316b/lib/appium_lib/android/element/text.rb#L10) android
|
1924
1957
|
|
1925
1958
|
> def text(value)
|
1926
1959
|
|
@@ -1937,7 +1970,7 @@ __Returns:__
|
|
1937
1970
|
|
1938
1971
|
--
|
1939
1972
|
|
1940
|
-
##### [texts](https://github.com/appium/ruby_lib/blob/
|
1973
|
+
##### [texts](https://github.com/appium/ruby_lib/blob/54ff9c45df80ce901b718347e79e761f93a4316b/lib/appium_lib/android/element/text.rb#L19) android
|
1941
1974
|
|
1942
1975
|
> def texts(value = false)
|
1943
1976
|
|
@@ -1954,7 +1987,7 @@ __Returns:__
|
|
1954
1987
|
|
1955
1988
|
--
|
1956
1989
|
|
1957
|
-
##### [first_text](https://github.com/appium/ruby_lib/blob/
|
1990
|
+
##### [first_text](https://github.com/appium/ruby_lib/blob/54ff9c45df80ce901b718347e79e761f93a4316b/lib/appium_lib/android/element/text.rb#L26) android
|
1958
1991
|
|
1959
1992
|
> def first_text
|
1960
1993
|
|
@@ -1966,7 +1999,7 @@ __Returns:__
|
|
1966
1999
|
|
1967
2000
|
--
|
1968
2001
|
|
1969
|
-
##### [last_text](https://github.com/appium/ruby_lib/blob/
|
2002
|
+
##### [last_text](https://github.com/appium/ruby_lib/blob/54ff9c45df80ce901b718347e79e761f93a4316b/lib/appium_lib/android/element/text.rb#L32) android
|
1970
2003
|
|
1971
2004
|
> def last_text
|
1972
2005
|
|
@@ -1978,7 +2011,7 @@ __Returns:__
|
|
1978
2011
|
|
1979
2012
|
--
|
1980
2013
|
|
1981
|
-
##### [text_exact](https://github.com/appium/ruby_lib/blob/
|
2014
|
+
##### [text_exact](https://github.com/appium/ruby_lib/blob/54ff9c45df80ce901b718347e79e761f93a4316b/lib/appium_lib/android/element/text.rb#L39) android
|
1982
2015
|
|
1983
2016
|
> def text_exact(value)
|
1984
2017
|
|
@@ -1994,7 +2027,7 @@ __Returns:__
|
|
1994
2027
|
|
1995
2028
|
--
|
1996
2029
|
|
1997
|
-
##### [texts_exact](https://github.com/appium/ruby_lib/blob/
|
2030
|
+
##### [texts_exact](https://github.com/appium/ruby_lib/blob/54ff9c45df80ce901b718347e79e761f93a4316b/lib/appium_lib/android/element/text.rb#L46) android
|
1998
2031
|
|
1999
2032
|
> def texts_exact(value)
|
2000
2033
|
|
@@ -2010,7 +2043,7 @@ __Returns:__
|
|
2010
2043
|
|
2011
2044
|
--
|
2012
2045
|
|
2013
|
-
##### [_nodeset_to_uiselector](https://github.com/appium/ruby_lib/blob/
|
2046
|
+
##### [_nodeset_to_uiselector](https://github.com/appium/ruby_lib/blob/54ff9c45df80ce901b718347e79e761f93a4316b/lib/appium_lib/android/client_xpath.rb#L5) android
|
2014
2047
|
|
2015
2048
|
> def _nodeset_to_uiselector(opts = {})
|
2016
2049
|
|
@@ -2018,7 +2051,7 @@ __Returns:__
|
|
2018
2051
|
|
2019
2052
|
--
|
2020
2053
|
|
2021
|
-
##### [_client_xpath](https://github.com/appium/ruby_lib/blob/
|
2054
|
+
##### [_client_xpath](https://github.com/appium/ruby_lib/blob/54ff9c45df80ce901b718347e79e761f93a4316b/lib/appium_lib/android/client_xpath.rb#L20) android
|
2022
2055
|
|
2023
2056
|
> def _client_xpath(opts = {})
|
2024
2057
|
|
@@ -2026,7 +2059,7 @@ __Returns:__
|
|
2026
2059
|
|
2027
2060
|
--
|
2028
2061
|
|
2029
|
-
##### [client_xpath](https://github.com/appium/ruby_lib/blob/
|
2062
|
+
##### [client_xpath](https://github.com/appium/ruby_lib/blob/54ff9c45df80ce901b718347e79e761f93a4316b/lib/appium_lib/android/client_xpath.rb#L36) android
|
2030
2063
|
|
2031
2064
|
> def client_xpath(xpath)
|
2032
2065
|
|
@@ -2034,7 +2067,7 @@ __Returns:__
|
|
2034
2067
|
|
2035
2068
|
--
|
2036
2069
|
|
2037
|
-
##### [client_xpaths](https://github.com/appium/ruby_lib/blob/
|
2070
|
+
##### [client_xpaths](https://github.com/appium/ruby_lib/blob/54ff9c45df80ce901b718347e79e761f93a4316b/lib/appium_lib/android/client_xpath.rb#L40) android
|
2038
2071
|
|
2039
2072
|
> def client_xpaths(xpath)
|
2040
2073
|
|
@@ -2042,7 +2075,7 @@ __Returns:__
|
|
2042
2075
|
|
2043
2076
|
--
|
2044
2077
|
|
2045
|
-
##### [alert_click](https://github.com/appium/ruby_lib/blob/
|
2078
|
+
##### [alert_click](https://github.com/appium/ruby_lib/blob/54ff9c45df80ce901b718347e79e761f93a4316b/lib/appium_lib/android/element/alert.rb#L6) android
|
2046
2079
|
|
2047
2080
|
> def alert_click(value)
|
2048
2081
|
|
@@ -2058,7 +2091,7 @@ __Returns:__
|
|
2058
2091
|
|
2059
2092
|
--
|
2060
2093
|
|
2061
|
-
##### [alert_accept](https://github.com/appium/ruby_lib/blob/
|
2094
|
+
##### [alert_accept](https://github.com/appium/ruby_lib/blob/54ff9c45df80ce901b718347e79e761f93a4316b/lib/appium_lib/android/element/alert.rb#L13) android
|
2062
2095
|
|
2063
2096
|
> def alert_accept
|
2064
2097
|
|
@@ -2071,7 +2104,7 @@ __Returns:__
|
|
2071
2104
|
|
2072
2105
|
--
|
2073
2106
|
|
2074
|
-
##### [alert_accept_text](https://github.com/appium/ruby_lib/blob/
|
2107
|
+
##### [alert_accept_text](https://github.com/appium/ruby_lib/blob/54ff9c45df80ce901b718347e79e761f93a4316b/lib/appium_lib/android/element/alert.rb#L20) android
|
2075
2108
|
|
2076
2109
|
> def alert_accept_text
|
2077
2110
|
|
@@ -2084,7 +2117,7 @@ __Returns:__
|
|
2084
2117
|
|
2085
2118
|
--
|
2086
2119
|
|
2087
|
-
##### [alert_dismiss](https://github.com/appium/ruby_lib/blob/
|
2120
|
+
##### [alert_dismiss](https://github.com/appium/ruby_lib/blob/54ff9c45df80ce901b718347e79e761f93a4316b/lib/appium_lib/android/element/alert.rb#L27) android
|
2088
2121
|
|
2089
2122
|
> def alert_dismiss
|
2090
2123
|
|
@@ -2097,7 +2130,7 @@ __Returns:__
|
|
2097
2130
|
|
2098
2131
|
--
|
2099
2132
|
|
2100
|
-
##### [alert_dismiss_text](https://github.com/appium/ruby_lib/blob/
|
2133
|
+
##### [alert_dismiss_text](https://github.com/appium/ruby_lib/blob/54ff9c45df80ce901b718347e79e761f93a4316b/lib/appium_lib/android/element/alert.rb#L34) android
|
2101
2134
|
|
2102
2135
|
> def alert_dismiss_text
|
2103
2136
|
|
@@ -2110,7 +2143,7 @@ __Returns:__
|
|
2110
2143
|
|
2111
2144
|
--
|
2112
2145
|
|
2113
|
-
##### [Button](https://github.com/appium/ruby_lib/blob/
|
2146
|
+
##### [Button](https://github.com/appium/ruby_lib/blob/54ff9c45df80ce901b718347e79e761f93a4316b/lib/appium_lib/android/element/button.rb#L4) android
|
2114
2147
|
|
2115
2148
|
> Button = 'android.widget.Button'
|
2116
2149
|
|
@@ -2118,7 +2151,7 @@ __Returns:__
|
|
2118
2151
|
|
2119
2152
|
--
|
2120
2153
|
|
2121
|
-
##### [ImageButton](https://github.com/appium/ruby_lib/blob/
|
2154
|
+
##### [ImageButton](https://github.com/appium/ruby_lib/blob/54ff9c45df80ce901b718347e79e761f93a4316b/lib/appium_lib/android/element/button.rb#L5) android
|
2122
2155
|
|
2123
2156
|
> ImageButton = 'android.widget.ImageButton'
|
2124
2157
|
|
@@ -2126,7 +2159,7 @@ __Returns:__
|
|
2126
2159
|
|
2127
2160
|
--
|
2128
2161
|
|
2129
|
-
##### [button](https://github.com/appium/ruby_lib/blob/
|
2162
|
+
##### [button](https://github.com/appium/ruby_lib/blob/54ff9c45df80ce901b718347e79e761f93a4316b/lib/appium_lib/android/element/button.rb#L43) android
|
2130
2163
|
|
2131
2164
|
> def button(value)
|
2132
2165
|
|
@@ -2143,7 +2176,7 @@ __Returns:__
|
|
2143
2176
|
|
2144
2177
|
--
|
2145
2178
|
|
2146
|
-
##### [buttons](https://github.com/appium/ruby_lib/blob/
|
2179
|
+
##### [buttons](https://github.com/appium/ruby_lib/blob/54ff9c45df80ce901b718347e79e761f93a4316b/lib/appium_lib/android/element/button.rb#L60) android
|
2147
2180
|
|
2148
2181
|
> def buttons(value = false)
|
2149
2182
|
|
@@ -2160,7 +2193,7 @@ __Returns:__
|
|
2160
2193
|
|
2161
2194
|
--
|
2162
2195
|
|
2163
|
-
##### [first_button](https://github.com/appium/ruby_lib/blob/
|
2196
|
+
##### [first_button](https://github.com/appium/ruby_lib/blob/54ff9c45df80ce901b718347e79e761f93a4316b/lib/appium_lib/android/element/button.rb#L67) android
|
2164
2197
|
|
2165
2198
|
> def first_button
|
2166
2199
|
|
@@ -2172,7 +2205,7 @@ __Returns:__
|
|
2172
2205
|
|
2173
2206
|
--
|
2174
2207
|
|
2175
|
-
##### [last_button](https://github.com/appium/ruby_lib/blob/
|
2208
|
+
##### [last_button](https://github.com/appium/ruby_lib/blob/54ff9c45df80ce901b718347e79e761f93a4316b/lib/appium_lib/android/element/button.rb#L73) android
|
2176
2209
|
|
2177
2210
|
> def last_button
|
2178
2211
|
|
@@ -2184,7 +2217,7 @@ __Returns:__
|
|
2184
2217
|
|
2185
2218
|
--
|
2186
2219
|
|
2187
|
-
##### [button_exact](https://github.com/appium/ruby_lib/blob/
|
2220
|
+
##### [button_exact](https://github.com/appium/ruby_lib/blob/54ff9c45df80ce901b718347e79e761f93a4316b/lib/appium_lib/android/element/button.rb#L89) android
|
2188
2221
|
|
2189
2222
|
> def button_exact(value)
|
2190
2223
|
|
@@ -2200,7 +2233,7 @@ __Returns:__
|
|
2200
2233
|
|
2201
2234
|
--
|
2202
2235
|
|
2203
|
-
##### [buttons_exact](https://github.com/appium/ruby_lib/blob/
|
2236
|
+
##### [buttons_exact](https://github.com/appium/ruby_lib/blob/54ff9c45df80ce901b718347e79e761f93a4316b/lib/appium_lib/android/element/button.rb#L96) android
|
2204
2237
|
|
2205
2238
|
> def buttons_exact(value)
|
2206
2239
|
|
@@ -2216,7 +2249,7 @@ __Returns:__
|
|
2216
2249
|
|
2217
2250
|
--
|
2218
2251
|
|
2219
|
-
##### [uiautomator_find](https://github.com/appium/ruby_lib/blob/
|
2252
|
+
##### [uiautomator_find](https://github.com/appium/ruby_lib/blob/54ff9c45df80ce901b718347e79e761f93a4316b/lib/appium_lib/android/mobile_methods.rb#L10) android
|
2220
2253
|
|
2221
2254
|
> def uiautomator_find
|
2222
2255
|
|
@@ -2228,7 +2261,7 @@ find_element/s can be used with a [UISelector](http://developer.android.com/tool
|
|
2228
2261
|
|
2229
2262
|
--
|
2230
2263
|
|
2231
|
-
##### [find](https://github.com/appium/ruby_lib/blob/
|
2264
|
+
##### [find](https://github.com/appium/ruby_lib/blob/54ff9c45df80ce901b718347e79e761f93a4316b/lib/appium_lib/android/element/generic.rb#L6) android
|
2232
2265
|
|
2233
2266
|
> def find(value)
|
2234
2267
|
|
@@ -2244,7 +2277,7 @@ __Returns:__
|
|
2244
2277
|
|
2245
2278
|
--
|
2246
2279
|
|
2247
|
-
##### [finds](https://github.com/appium/ruby_lib/blob/
|
2280
|
+
##### [finds](https://github.com/appium/ruby_lib/blob/54ff9c45df80ce901b718347e79e761f93a4316b/lib/appium_lib/android/element/generic.rb#L13) android
|
2248
2281
|
|
2249
2282
|
> def finds(value)
|
2250
2283
|
|
@@ -2260,7 +2293,7 @@ __Returns:__
|
|
2260
2293
|
|
2261
2294
|
--
|
2262
2295
|
|
2263
|
-
##### [find_exact](https://github.com/appium/ruby_lib/blob/
|
2296
|
+
##### [find_exact](https://github.com/appium/ruby_lib/blob/54ff9c45df80ce901b718347e79e761f93a4316b/lib/appium_lib/android/element/generic.rb#L20) android
|
2264
2297
|
|
2265
2298
|
> def find_exact(value)
|
2266
2299
|
|
@@ -2276,7 +2309,7 @@ __Returns:__
|
|
2276
2309
|
|
2277
2310
|
--
|
2278
2311
|
|
2279
|
-
##### [finds_exact](https://github.com/appium/ruby_lib/blob/
|
2312
|
+
##### [finds_exact](https://github.com/appium/ruby_lib/blob/54ff9c45df80ce901b718347e79e761f93a4316b/lib/appium_lib/android/element/generic.rb#L27) android
|
2280
2313
|
|
2281
2314
|
> def finds_exact(value)
|
2282
2315
|
|
@@ -2292,7 +2325,7 @@ __Returns:__
|
|
2292
2325
|
|
2293
2326
|
--
|
2294
2327
|
|
2295
|
-
##### [scroll_to](https://github.com/appium/ruby_lib/blob/
|
2328
|
+
##### [scroll_to](https://github.com/appium/ruby_lib/blob/54ff9c45df80ce901b718347e79e761f93a4316b/lib/appium_lib/android/element/generic.rb#L39) android
|
2296
2329
|
|
2297
2330
|
> def scroll_to(text)
|
2298
2331
|
|
@@ -2308,7 +2341,7 @@ __Returns:__
|
|
2308
2341
|
|
2309
2342
|
--
|
2310
2343
|
|
2311
|
-
##### [scroll_to_exact](https://github.com/appium/ruby_lib/blob/
|
2344
|
+
##### [scroll_to_exact](https://github.com/appium/ruby_lib/blob/54ff9c45df80ce901b718347e79e761f93a4316b/lib/appium_lib/android/element/generic.rb#L51) android
|
2312
2345
|
|
2313
2346
|
> def scroll_to_exact(text)
|
2314
2347
|
|
@@ -2324,7 +2357,7 @@ __Returns:__
|
|
2324
2357
|
|
2325
2358
|
--
|
2326
2359
|
|
2327
|
-
##### [EditText](https://github.com/appium/ruby_lib/blob/
|
2360
|
+
##### [EditText](https://github.com/appium/ruby_lib/blob/54ff9c45df80ce901b718347e79e761f93a4316b/lib/appium_lib/android/element/textfield.rb#L3) android
|
2328
2361
|
|
2329
2362
|
> EditText = 'android.widget.EditText'
|
2330
2363
|
|
@@ -2332,7 +2365,7 @@ __Returns:__
|
|
2332
2365
|
|
2333
2366
|
--
|
2334
2367
|
|
2335
|
-
##### [textfield](https://github.com/appium/ruby_lib/blob/
|
2368
|
+
##### [textfield](https://github.com/appium/ruby_lib/blob/54ff9c45df80ce901b718347e79e761f93a4316b/lib/appium_lib/android/element/textfield.rb#L9) android
|
2336
2369
|
|
2337
2370
|
> def textfield(value)
|
2338
2371
|
|
@@ -2349,7 +2382,7 @@ __Returns:__
|
|
2349
2382
|
|
2350
2383
|
--
|
2351
2384
|
|
2352
|
-
##### [textfields](https://github.com/appium/ruby_lib/blob/
|
2385
|
+
##### [textfields](https://github.com/appium/ruby_lib/blob/54ff9c45df80ce901b718347e79e761f93a4316b/lib/appium_lib/android/element/textfield.rb#L18) android
|
2353
2386
|
|
2354
2387
|
> def textfields(value = false)
|
2355
2388
|
|
@@ -2366,7 +2399,7 @@ __Returns:__
|
|
2366
2399
|
|
2367
2400
|
--
|
2368
2401
|
|
2369
|
-
##### [first_textfield](https://github.com/appium/ruby_lib/blob/
|
2402
|
+
##### [first_textfield](https://github.com/appium/ruby_lib/blob/54ff9c45df80ce901b718347e79e761f93a4316b/lib/appium_lib/android/element/textfield.rb#L25) android
|
2370
2403
|
|
2371
2404
|
> def first_textfield
|
2372
2405
|
|
@@ -2378,7 +2411,7 @@ __Returns:__
|
|
2378
2411
|
|
2379
2412
|
--
|
2380
2413
|
|
2381
|
-
##### [last_textfield](https://github.com/appium/ruby_lib/blob/
|
2414
|
+
##### [last_textfield](https://github.com/appium/ruby_lib/blob/54ff9c45df80ce901b718347e79e761f93a4316b/lib/appium_lib/android/element/textfield.rb#L31) android
|
2382
2415
|
|
2383
2416
|
> def last_textfield
|
2384
2417
|
|
@@ -2390,7 +2423,7 @@ __Returns:__
|
|
2390
2423
|
|
2391
2424
|
--
|
2392
2425
|
|
2393
|
-
##### [textfield_exact](https://github.com/appium/ruby_lib/blob/
|
2426
|
+
##### [textfield_exact](https://github.com/appium/ruby_lib/blob/54ff9c45df80ce901b718347e79e761f93a4316b/lib/appium_lib/android/element/textfield.rb#L38) android
|
2394
2427
|
|
2395
2428
|
> def textfield_exact(value)
|
2396
2429
|
|
@@ -2406,7 +2439,7 @@ __Returns:__
|
|
2406
2439
|
|
2407
2440
|
--
|
2408
2441
|
|
2409
|
-
##### [textfields_exact](https://github.com/appium/ruby_lib/blob/
|
2442
|
+
##### [textfields_exact](https://github.com/appium/ruby_lib/blob/54ff9c45df80ce901b718347e79e761f93a4316b/lib/appium_lib/android/element/textfield.rb#L45) android
|
2410
2443
|
|
2411
2444
|
> def textfields_exact(value)
|
2412
2445
|
|
@@ -2422,7 +2455,7 @@ __Returns:__
|
|
2422
2455
|
|
2423
2456
|
--
|
2424
2457
|
|
2425
|
-
##### [value](https://github.com/appium/ruby_lib/blob/
|
2458
|
+
##### [value](https://github.com/appium/ruby_lib/blob/54ff9c45df80ce901b718347e79e761f93a4316b/lib/appium_lib/common/patch.rb#L12)
|
2426
2459
|
|
2427
2460
|
> def value
|
2428
2461
|
|
@@ -2432,7 +2465,7 @@ Fixes NoMethodError: undefined method `value' for Selenium::WebDriver::Element
|
|
2432
2465
|
|
2433
2466
|
--
|
2434
2467
|
|
2435
|
-
##### [name](https://github.com/appium/ruby_lib/blob/
|
2468
|
+
##### [name](https://github.com/appium/ruby_lib/blob/54ff9c45df80ce901b718347e79e761f93a4316b/lib/appium_lib/common/patch.rb#L19)
|
2436
2469
|
|
2437
2470
|
> def name
|
2438
2471
|
|
@@ -2442,7 +2475,7 @@ Fixes NoMethodError: undefined method `name' for Selenium::WebDriver::Element
|
|
2442
2475
|
|
2443
2476
|
--
|
2444
2477
|
|
2445
|
-
##### [location_rel](https://github.com/appium/ruby_lib/blob/
|
2478
|
+
##### [location_rel](https://github.com/appium/ruby_lib/blob/54ff9c45df80ce901b718347e79e761f93a4316b/lib/appium_lib/common/patch.rb#L31)
|
2446
2479
|
|
2447
2480
|
> def location_rel
|
2448
2481
|
|
@@ -2460,7 +2493,7 @@ __Returns:__
|
|
2460
2493
|
|
2461
2494
|
--
|
2462
2495
|
|
2463
|
-
##### [DEFAULT_HEADERS](https://github.com/appium/ruby_lib/blob/
|
2496
|
+
##### [DEFAULT_HEADERS](https://github.com/appium/ruby_lib/blob/54ff9c45df80ce901b718347e79e761f93a4316b/lib/appium_lib/common/patch.rb#L147)
|
2464
2497
|
|
2465
2498
|
> DEFAULT_HEADERS = { 'Accept' => CONTENT_TYPE, 'User-Agent' => "appium/ruby_lib/#{::Appium::VERSION}" }
|
2466
2499
|
|