appium_lib 9.3.4 → 9.3.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/CHANGELOG.md +18 -0
- data/android_tests/lib/android/specs/android/element/generic.rb +13 -2
- data/android_tests/lib/android/specs/common/command.rb +3 -0
- data/android_tests/lib/android/specs/common/device.rb +12 -0
- data/android_tests/lib/android/specs/common/device_touchaction.rb +3 -1
- data/docs/android_docs.md +286 -229
- data/docs/ios_docs.md +314 -243
- data/docs/ios_xcuitest.md +7 -0
- data/ios_tests/lib/ios/specs/device/device.rb +23 -3
- data/ios_tests/lib/ios/specs/ios/mobile_methods.rb +20 -0
- data/lib/appium_lib/android/element/generic.rb +14 -10
- data/lib/appium_lib/android/helper.rb +5 -5
- data/lib/appium_lib/common/command.rb +3 -0
- data/lib/appium_lib/common/version.rb +2 -2
- data/lib/appium_lib/device/device.rb +25 -1
- data/lib/appium_lib/device/multi_touch.rb +3 -0
- data/lib/appium_lib/device/touch_actions.rb +10 -0
- data/lib/appium_lib/ios/mobile_methods.rb +14 -0
- data/release_notes.md +11 -0
- metadata +3 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 371b61576f4a09297c56460c227bd9b2358eb0bf
|
4
|
+
data.tar.gz: 43a5f0acdfe9ef9701a47dc4e40de306d7a5ddd0
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 4641342b0dd043293b889900557253e44c460ba21b70a7cdecbd4531477c99d035f644abdd4f4c24e131b4a563a53d4f449f9493e140374fb4643175ed75f08e
|
7
|
+
data.tar.gz: 597e4fa16f2912cd51c61dd7a66f5a367ab6feaa0095c204d7e83a92ec95dcaf5c2704284cd7b1652d5daa487300551fca59dc9b596832acaab852894d4cf11c
|
data/CHANGELOG.md
CHANGED
@@ -3,6 +3,24 @@ Commit based release not is [release_notes.md](./release_notes.md)
|
|
3
3
|
|
4
4
|
Release tags are https://github.com/appium/ruby_lib/releases .
|
5
5
|
|
6
|
+
## v9.3.5
|
7
|
+
### 1. Enhancements
|
8
|
+
- add some commands for Android and class chain for iOS [#513](https://github.com/appium/ruby_lib/issues/513)
|
9
|
+
- iOS
|
10
|
+
- `find_element :class_chain, 'XCUIElementTypeWindow/*/*/XCUIElementTypeStaticText'`
|
11
|
+
- Android
|
12
|
+
- `get_system_bars`
|
13
|
+
- `get_display_density`
|
14
|
+
- `is_keyboard_shown`
|
15
|
+
- add scrollable index parameter into scroll methods [#506](https://github.com/appium/ruby_lib/issues/506)
|
16
|
+
- `scroll_to(text, scrollable_index = 0)`
|
17
|
+
- `scroll_to_exact(text, scrollable_index = 0)`
|
18
|
+
- clear `@actions` in Appium::TouchAction if `perform` is called [#511](https://github.com/appium/ruby_lib/issues/511)
|
19
|
+
|
20
|
+
### 2. Bug fixes
|
21
|
+
|
22
|
+
### 3. Deprecations
|
23
|
+
|
6
24
|
## v9.3.4
|
7
25
|
### 1. Enhancements
|
8
26
|
- [remove workaround](https://github.com/appium/ruby_lib/pull/474/commits/57cc95264e83e14862f729683b93c1f020a30ce5) to pass CI
|
@@ -33,14 +33,25 @@ describe 'android/element/generic' do
|
|
33
33
|
# scroll_to is broken
|
34
34
|
t 'scroll_to' do
|
35
35
|
wait { find('Views').click }
|
36
|
-
wait { scroll_to('
|
36
|
+
wait { scroll_to('scrollbars').text.must_equal 'ScrollBars' }
|
37
|
+
|
38
|
+
wait { find('ScrollBars').click }
|
39
|
+
wait { text('style').click }
|
40
|
+
wait { scroll_to('Developers', 1).text.must_include 'What would it take to build a better mobile phone?' }
|
41
|
+
back
|
42
|
+
back
|
37
43
|
# back to start activity
|
38
44
|
back
|
39
45
|
end
|
40
46
|
|
41
47
|
t 'scroll_to_exact' do
|
42
48
|
wait { find('Views').click }
|
43
|
-
|
49
|
+
|
50
|
+
wait { scroll_to_exact('ScrollBars').text.must_equal 'ScrollBars' }
|
51
|
+
wait { find('ScrollBars').click }
|
52
|
+
wait { text('style').click }
|
53
|
+
back
|
54
|
+
back
|
44
55
|
# back to start activity
|
45
56
|
back
|
46
57
|
end
|
@@ -20,6 +20,9 @@ describe 'common/command.rb' do
|
|
20
20
|
Selenium::WebDriver::Remote::Bridge.method_defined?(:get_network_connection).must_equal true
|
21
21
|
Selenium::WebDriver::Remote::Bridge.method_defined?(:get_performance_data_types).must_equal true
|
22
22
|
Selenium::WebDriver::Remote::Bridge.method_defined?(:get_performance_data).must_equal true
|
23
|
+
Selenium::WebDriver::Remote::Bridge.method_defined?(:get_system_bars).must_equal true
|
24
|
+
Selenium::WebDriver::Remote::Bridge.method_defined?(:get_display_density).must_equal true
|
25
|
+
Selenium::WebDriver::Remote::Bridge.method_defined?(:is_keyboard_shown).must_equal true
|
23
26
|
end
|
24
27
|
|
25
28
|
t 'check all command with arg' do
|
@@ -23,6 +23,18 @@ describe 'common/device' do
|
|
23
23
|
Date.parse(device_time)
|
24
24
|
end
|
25
25
|
|
26
|
+
t 'get_system_bars' do
|
27
|
+
get_system_bars
|
28
|
+
end
|
29
|
+
|
30
|
+
t 'get_display_density' do
|
31
|
+
(get_display_density > 0).must_equal true
|
32
|
+
end
|
33
|
+
|
34
|
+
t 'system_bars' do
|
35
|
+
is_keyboard_shown.must_equal false
|
36
|
+
end
|
37
|
+
|
26
38
|
t 'background_app' do
|
27
39
|
wait { background_app 5 }
|
28
40
|
end
|
@@ -3,7 +3,9 @@ describe 'common/device_touchaction' do
|
|
3
3
|
t 'action_chain' do
|
4
4
|
wait do
|
5
5
|
e = text('Accessibility')
|
6
|
-
Appium::TouchAction.new.press(element: e, x: 0.5, y: 0.5).release(element: e)
|
6
|
+
touch_action = Appium::TouchAction.new.press(element: e, x: 0.5, y: 0.5).release(element: e)
|
7
|
+
touch_action.perform
|
8
|
+
touch_action.actions.must_equal []
|
7
9
|
end
|
8
10
|
wait { text('Custom View') }
|
9
11
|
back
|
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/11cdf97bf9c4a90ac4e7c7dcf518cfb3fcd99ef2/lib/appium_lib/driver.rb#L75)
|
2
2
|
|
3
3
|
> def self.load_settings(opts = {})
|
4
4
|
|
@@ -27,7 +27,7 @@ __Returns:__
|
|
27
27
|
|
28
28
|
--
|
29
29
|
|
30
|
-
##### [load_appium_txt](https://github.com/appium/ruby_lib/blob/
|
30
|
+
##### [load_appium_txt](https://github.com/appium/ruby_lib/blob/11cdf97bf9c4a90ac4e7c7dcf518cfb3fcd99ef2/lib/appium_lib/driver.rb#L111)
|
31
31
|
|
32
32
|
> def self.load_settings(opts = {})
|
33
33
|
|
@@ -57,7 +57,7 @@ __Returns:__
|
|
57
57
|
|
58
58
|
--
|
59
59
|
|
60
|
-
##### [expand_required_files](https://github.com/appium/ruby_lib/blob/
|
60
|
+
##### [expand_required_files](https://github.com/appium/ruby_lib/blob/11cdf97bf9c4a90ac4e7c7dcf518cfb3fcd99ef2/lib/appium_lib/driver.rb#L117)
|
61
61
|
|
62
62
|
> def self.expand_required_files(base_dir, file_paths)
|
63
63
|
|
@@ -75,7 +75,7 @@ __Returns:__
|
|
75
75
|
|
76
76
|
--
|
77
77
|
|
78
|
-
##### [symbolize_keys](https://github.com/appium/ruby_lib/blob/
|
78
|
+
##### [symbolize_keys](https://github.com/appium/ruby_lib/blob/11cdf97bf9c4a90ac4e7c7dcf518cfb3fcd99ef2/lib/appium_lib/driver.rb#L149)
|
79
79
|
|
80
80
|
> def self.symbolize_keys(hash)
|
81
81
|
|
@@ -86,7 +86,7 @@ https://github.com/rails/docrails/blob/a3b1105ada3da64acfa3843b164b14b734456a50/
|
|
86
86
|
|
87
87
|
--
|
88
88
|
|
89
|
-
##### [promote_singleton_appium_methods](https://github.com/appium/ruby_lib/blob/
|
89
|
+
##### [promote_singleton_appium_methods](https://github.com/appium/ruby_lib/blob/11cdf97bf9c4a90ac4e7c7dcf518cfb3fcd99ef2/lib/appium_lib/driver.rb#L170)
|
90
90
|
|
91
91
|
> def self.promote_singleton_appium_methods(modules)
|
92
92
|
|
@@ -104,7 +104,7 @@ otherwise, the array of modules will be used as the promotion target.
|
|
104
104
|
|
105
105
|
--
|
106
106
|
|
107
|
-
##### [promote_appium_methods](https://github.com/appium/ruby_lib/blob/
|
107
|
+
##### [promote_appium_methods](https://github.com/appium/ruby_lib/blob/11cdf97bf9c4a90ac4e7c7dcf518cfb3fcd99ef2/lib/appium_lib/driver.rb#L223)
|
108
108
|
|
109
109
|
> def self.promote_appium_methods(class_array)
|
110
110
|
|
@@ -134,7 +134,7 @@ __Parameters:__
|
|
134
134
|
|
135
135
|
--
|
136
136
|
|
137
|
-
##### [init_caps_for_appium](https://github.com/appium/ruby_lib/blob/
|
137
|
+
##### [init_caps_for_appium](https://github.com/appium/ruby_lib/blob/11cdf97bf9c4a90ac4e7c7dcf518cfb3fcd99ef2/lib/appium_lib/driver.rb#L258)
|
138
138
|
|
139
139
|
> def self.init_caps_for_appium(opts_caps = {})
|
140
140
|
|
@@ -153,7 +153,7 @@ __Returns:__
|
|
153
153
|
|
154
154
|
--
|
155
155
|
|
156
|
-
##### [global_webdriver_http_sleep](https://github.com/appium/ruby_lib/blob/
|
156
|
+
##### [global_webdriver_http_sleep](https://github.com/appium/ruby_lib/blob/11cdf97bf9c4a90ac4e7c7dcf518cfb3fcd99ef2/lib/appium_lib/driver.rb#L276)
|
157
157
|
|
158
158
|
> def global_webdriver_http_sleep
|
159
159
|
|
@@ -161,7 +161,7 @@ The amount to sleep in seconds before every webdriver http call.
|
|
161
161
|
|
162
162
|
--
|
163
163
|
|
164
|
-
##### [global_webdriver_http_sleep=](https://github.com/appium/ruby_lib/blob/
|
164
|
+
##### [global_webdriver_http_sleep=](https://github.com/appium/ruby_lib/blob/11cdf97bf9c4a90ac4e7c7dcf518cfb3fcd99ef2/lib/appium_lib/driver.rb#L276)
|
165
165
|
|
166
166
|
> def global_webdriver_http_sleep=(value)
|
167
167
|
|
@@ -169,7 +169,7 @@ The amount to sleep in seconds before every webdriver http call.
|
|
169
169
|
|
170
170
|
--
|
171
171
|
|
172
|
-
##### [caps](https://github.com/appium/ruby_lib/blob/
|
172
|
+
##### [caps](https://github.com/appium/ruby_lib/blob/11cdf97bf9c4a90ac4e7c7dcf518cfb3fcd99ef2/lib/appium_lib/driver.rb#L278)
|
173
173
|
|
174
174
|
> def caps
|
175
175
|
|
@@ -177,7 +177,7 @@ Selenium webdriver capabilities
|
|
177
177
|
|
178
178
|
--
|
179
179
|
|
180
|
-
##### [caps=](https://github.com/appium/ruby_lib/blob/
|
180
|
+
##### [caps=](https://github.com/appium/ruby_lib/blob/11cdf97bf9c4a90ac4e7c7dcf518cfb3fcd99ef2/lib/appium_lib/driver.rb#L278)
|
181
181
|
|
182
182
|
> def caps=(value)
|
183
183
|
|
@@ -185,7 +185,7 @@ Selenium webdriver capabilities
|
|
185
185
|
|
186
186
|
--
|
187
187
|
|
188
|
-
##### [custom_url](https://github.com/appium/ruby_lib/blob/
|
188
|
+
##### [custom_url](https://github.com/appium/ruby_lib/blob/11cdf97bf9c4a90ac4e7c7dcf518cfb3fcd99ef2/lib/appium_lib/driver.rb#L280)
|
189
189
|
|
190
190
|
> def custom_url
|
191
191
|
|
@@ -193,7 +193,7 @@ Custom URL for the selenium server
|
|
193
193
|
|
194
194
|
--
|
195
195
|
|
196
|
-
##### [custom_url=](https://github.com/appium/ruby_lib/blob/
|
196
|
+
##### [custom_url=](https://github.com/appium/ruby_lib/blob/11cdf97bf9c4a90ac4e7c7dcf518cfb3fcd99ef2/lib/appium_lib/driver.rb#L280)
|
197
197
|
|
198
198
|
> def custom_url=(value)
|
199
199
|
|
@@ -201,7 +201,7 @@ Custom URL for the selenium server
|
|
201
201
|
|
202
202
|
--
|
203
203
|
|
204
|
-
##### [export_session](https://github.com/appium/ruby_lib/blob/
|
204
|
+
##### [export_session](https://github.com/appium/ruby_lib/blob/11cdf97bf9c4a90ac4e7c7dcf518cfb3fcd99ef2/lib/appium_lib/driver.rb#L282)
|
205
205
|
|
206
206
|
> def export_session
|
207
207
|
|
@@ -209,7 +209,7 @@ Export session id to textfile in /tmp for 3rd party tools
|
|
209
209
|
|
210
210
|
--
|
211
211
|
|
212
|
-
##### [export_session=](https://github.com/appium/ruby_lib/blob/
|
212
|
+
##### [export_session=](https://github.com/appium/ruby_lib/blob/11cdf97bf9c4a90ac4e7c7dcf518cfb3fcd99ef2/lib/appium_lib/driver.rb#L282)
|
213
213
|
|
214
214
|
> def export_session=(value)
|
215
215
|
|
@@ -217,7 +217,7 @@ Export session id to textfile in /tmp for 3rd party tools
|
|
217
217
|
|
218
218
|
--
|
219
219
|
|
220
|
-
##### [default_wait](https://github.com/appium/ruby_lib/blob/
|
220
|
+
##### [default_wait](https://github.com/appium/ruby_lib/blob/11cdf97bf9c4a90ac4e7c7dcf518cfb3fcd99ef2/lib/appium_lib/driver.rb#L287)
|
221
221
|
|
222
222
|
> def default_wait
|
223
223
|
|
@@ -231,7 +231,7 @@ __Returns:__
|
|
231
231
|
|
232
232
|
--
|
233
233
|
|
234
|
-
##### [sauce_username](https://github.com/appium/ruby_lib/blob/
|
234
|
+
##### [sauce_username](https://github.com/appium/ruby_lib/blob/11cdf97bf9c4a90ac4e7c7dcf518cfb3fcd99ef2/lib/appium_lib/driver.rb#L289)
|
235
235
|
|
236
236
|
> def sauce_username
|
237
237
|
|
@@ -239,7 +239,7 @@ Username for use on Sauce Labs. Set `false` to disable Sauce, even when SAUCE_US
|
|
239
239
|
|
240
240
|
--
|
241
241
|
|
242
|
-
##### [sauce_username=](https://github.com/appium/ruby_lib/blob/
|
242
|
+
##### [sauce_username=](https://github.com/appium/ruby_lib/blob/11cdf97bf9c4a90ac4e7c7dcf518cfb3fcd99ef2/lib/appium_lib/driver.rb#L289)
|
243
243
|
|
244
244
|
> def sauce_username=(value)
|
245
245
|
|
@@ -247,7 +247,7 @@ Username for use on Sauce Labs. Set `false` to disable Sauce, even when SAUCE_US
|
|
247
247
|
|
248
248
|
--
|
249
249
|
|
250
|
-
##### [sauce_access_key](https://github.com/appium/ruby_lib/blob/
|
250
|
+
##### [sauce_access_key](https://github.com/appium/ruby_lib/blob/11cdf97bf9c4a90ac4e7c7dcf518cfb3fcd99ef2/lib/appium_lib/driver.rb#L291)
|
251
251
|
|
252
252
|
> def sauce_access_key
|
253
253
|
|
@@ -255,7 +255,7 @@ Access Key for use on Sauce Labs. Set `false` to disable Sauce, even when SAUCE_
|
|
255
255
|
|
256
256
|
--
|
257
257
|
|
258
|
-
##### [sauce_access_key=](https://github.com/appium/ruby_lib/blob/
|
258
|
+
##### [sauce_access_key=](https://github.com/appium/ruby_lib/blob/11cdf97bf9c4a90ac4e7c7dcf518cfb3fcd99ef2/lib/appium_lib/driver.rb#L291)
|
259
259
|
|
260
260
|
> def sauce_access_key=(value)
|
261
261
|
|
@@ -263,7 +263,7 @@ Access Key for use on Sauce Labs. Set `false` to disable Sauce, even when SAUCE_
|
|
263
263
|
|
264
264
|
--
|
265
265
|
|
266
|
-
##### [sauce_endpoint](https://github.com/appium/ruby_lib/blob/
|
266
|
+
##### [sauce_endpoint](https://github.com/appium/ruby_lib/blob/11cdf97bf9c4a90ac4e7c7dcf518cfb3fcd99ef2/lib/appium_lib/driver.rb#L293)
|
267
267
|
|
268
268
|
> def sauce_endpoint
|
269
269
|
|
@@ -271,7 +271,7 @@ Override the Sauce Appium endpoint to allow e.g. TestObject tests
|
|
271
271
|
|
272
272
|
--
|
273
273
|
|
274
|
-
##### [sauce_endpoint=](https://github.com/appium/ruby_lib/blob/
|
274
|
+
##### [sauce_endpoint=](https://github.com/appium/ruby_lib/blob/11cdf97bf9c4a90ac4e7c7dcf518cfb3fcd99ef2/lib/appium_lib/driver.rb#L293)
|
275
275
|
|
276
276
|
> def sauce_endpoint=(value)
|
277
277
|
|
@@ -279,7 +279,7 @@ Override the Sauce Appium endpoint to allow e.g. TestObject tests
|
|
279
279
|
|
280
280
|
--
|
281
281
|
|
282
|
-
##### [appium_port](https://github.com/appium/ruby_lib/blob/
|
282
|
+
##### [appium_port](https://github.com/appium/ruby_lib/blob/11cdf97bf9c4a90ac4e7c7dcf518cfb3fcd99ef2/lib/appium_lib/driver.rb#L295)
|
283
283
|
|
284
284
|
> def appium_port
|
285
285
|
|
@@ -287,7 +287,7 @@ Appium's server port
|
|
287
287
|
|
288
288
|
--
|
289
289
|
|
290
|
-
##### [appium_port=](https://github.com/appium/ruby_lib/blob/
|
290
|
+
##### [appium_port=](https://github.com/appium/ruby_lib/blob/11cdf97bf9c4a90ac4e7c7dcf518cfb3fcd99ef2/lib/appium_lib/driver.rb#L295)
|
291
291
|
|
292
292
|
> def appium_port=(value)
|
293
293
|
|
@@ -295,7 +295,7 @@ Appium's server port
|
|
295
295
|
|
296
296
|
--
|
297
297
|
|
298
|
-
##### [appium_device](https://github.com/appium/ruby_lib/blob/
|
298
|
+
##### [appium_device](https://github.com/appium/ruby_lib/blob/11cdf97bf9c4a90ac4e7c7dcf518cfb3fcd99ef2/lib/appium_lib/driver.rb#L297)
|
299
299
|
|
300
300
|
> def appium_device
|
301
301
|
|
@@ -303,7 +303,7 @@ Device type to request from the appium server
|
|
303
303
|
|
304
304
|
--
|
305
305
|
|
306
|
-
##### [appium_device=](https://github.com/appium/ruby_lib/blob/
|
306
|
+
##### [appium_device=](https://github.com/appium/ruby_lib/blob/11cdf97bf9c4a90ac4e7c7dcf518cfb3fcd99ef2/lib/appium_lib/driver.rb#L297)
|
307
307
|
|
308
308
|
> def appium_device=(value)
|
309
309
|
|
@@ -311,7 +311,7 @@ Device type to request from the appium server
|
|
311
311
|
|
312
312
|
--
|
313
313
|
|
314
|
-
##### [automation_name](https://github.com/appium/ruby_lib/blob/
|
314
|
+
##### [automation_name](https://github.com/appium/ruby_lib/blob/11cdf97bf9c4a90ac4e7c7dcf518cfb3fcd99ef2/lib/appium_lib/driver.rb#L300)
|
315
315
|
|
316
316
|
> def automation_name
|
317
317
|
|
@@ -320,7 +320,7 @@ If automation_name is nil, it is not set both client side and server side.
|
|
320
320
|
|
321
321
|
--
|
322
322
|
|
323
|
-
##### [appium_server_status](https://github.com/appium/ruby_lib/blob/
|
323
|
+
##### [appium_server_status](https://github.com/appium/ruby_lib/blob/11cdf97bf9c4a90ac4e7c7dcf518cfb3fcd99ef2/lib/appium_lib/driver.rb#L302)
|
324
324
|
|
325
325
|
> def appium_server_status
|
326
326
|
|
@@ -328,7 +328,7 @@ Appium's server version
|
|
328
328
|
|
329
329
|
--
|
330
330
|
|
331
|
-
##### [appium_debug](https://github.com/appium/ruby_lib/blob/
|
331
|
+
##### [appium_debug](https://github.com/appium/ruby_lib/blob/11cdf97bf9c4a90ac4e7c7dcf518cfb3fcd99ef2/lib/appium_lib/driver.rb#L304)
|
332
332
|
|
333
333
|
> def appium_debug
|
334
334
|
|
@@ -336,7 +336,7 @@ Boolean debug mode for the Appium Ruby bindings
|
|
336
336
|
|
337
337
|
--
|
338
338
|
|
339
|
-
##### [appium_debug=](https://github.com/appium/ruby_lib/blob/
|
339
|
+
##### [appium_debug=](https://github.com/appium/ruby_lib/blob/11cdf97bf9c4a90ac4e7c7dcf518cfb3fcd99ef2/lib/appium_lib/driver.rb#L304)
|
340
340
|
|
341
341
|
> def appium_debug=(value)
|
342
342
|
|
@@ -344,7 +344,7 @@ Boolean debug mode for the Appium Ruby bindings
|
|
344
344
|
|
345
345
|
--
|
346
346
|
|
347
|
-
##### [listener](https://github.com/appium/ruby_lib/blob/
|
347
|
+
##### [listener](https://github.com/appium/ruby_lib/blob/11cdf97bf9c4a90ac4e7c7dcf518cfb3fcd99ef2/lib/appium_lib/driver.rb#L306)
|
348
348
|
|
349
349
|
> def listener
|
350
350
|
|
@@ -352,7 +352,7 @@ instance of AbstractEventListener for logging support
|
|
352
352
|
|
353
353
|
--
|
354
354
|
|
355
|
-
##### [listener=](https://github.com/appium/ruby_lib/blob/
|
355
|
+
##### [listener=](https://github.com/appium/ruby_lib/blob/11cdf97bf9c4a90ac4e7c7dcf518cfb3fcd99ef2/lib/appium_lib/driver.rb#L306)
|
356
356
|
|
357
357
|
> def listener=(value)
|
358
358
|
|
@@ -360,7 +360,7 @@ instance of AbstractEventListener for logging support
|
|
360
360
|
|
361
361
|
--
|
362
362
|
|
363
|
-
##### [driver](https://github.com/appium/ruby_lib/blob/
|
363
|
+
##### [driver](https://github.com/appium/ruby_lib/blob/11cdf97bf9c4a90ac4e7c7dcf518cfb3fcd99ef2/lib/appium_lib/driver.rb#L309)
|
364
364
|
|
365
365
|
> def driver
|
366
366
|
|
@@ -372,7 +372,7 @@ __Returns:__
|
|
372
372
|
|
373
373
|
--
|
374
374
|
|
375
|
-
##### [http_client](https://github.com/appium/ruby_lib/blob/
|
375
|
+
##### [http_client](https://github.com/appium/ruby_lib/blob/11cdf97bf9c4a90ac4e7c7dcf518cfb3fcd99ef2/lib/appium_lib/driver.rb#L312)
|
376
376
|
|
377
377
|
> def http_client
|
378
378
|
|
@@ -384,7 +384,7 @@ __Returns:__
|
|
384
384
|
|
385
385
|
--
|
386
386
|
|
387
|
-
##### [appium_wait_timeout](https://github.com/appium/ruby_lib/blob/
|
387
|
+
##### [appium_wait_timeout](https://github.com/appium/ruby_lib/blob/11cdf97bf9c4a90ac4e7c7dcf518cfb3fcd99ef2/lib/appium_lib/driver.rb#L317)
|
388
388
|
|
389
389
|
> def appium_wait_timeout
|
390
390
|
|
@@ -398,7 +398,7 @@ __Returns:__
|
|
398
398
|
|
399
399
|
--
|
400
400
|
|
401
|
-
##### [appium_wait_interval](https://github.com/appium/ruby_lib/blob/
|
401
|
+
##### [appium_wait_interval](https://github.com/appium/ruby_lib/blob/11cdf97bf9c4a90ac4e7c7dcf518cfb3fcd99ef2/lib/appium_lib/driver.rb#L322)
|
402
402
|
|
403
403
|
> def appium_wait_interval
|
404
404
|
|
@@ -412,7 +412,7 @@ __Returns:__
|
|
412
412
|
|
413
413
|
--
|
414
414
|
|
415
|
-
##### [initialize](https://github.com/appium/ruby_lib/blob/
|
415
|
+
##### [initialize](https://github.com/appium/ruby_lib/blob/11cdf97bf9c4a90ac4e7c7dcf518cfb3fcd99ef2/lib/appium_lib/driver.rb#L362)
|
416
416
|
|
417
417
|
> def initialize(opts = {})
|
418
418
|
|
@@ -428,7 +428,7 @@ __Returns:__
|
|
428
428
|
|
429
429
|
--
|
430
430
|
|
431
|
-
##### [driver_attributes](https://github.com/appium/ruby_lib/blob/
|
431
|
+
##### [driver_attributes](https://github.com/appium/ruby_lib/blob/11cdf97bf9c4a90ac4e7c7dcf518cfb3fcd99ef2/lib/appium_lib/driver.rb#L440)
|
432
432
|
|
433
433
|
> def driver_attributes
|
434
434
|
|
@@ -436,7 +436,7 @@ Returns a hash of the driver attributes
|
|
436
436
|
|
437
437
|
--
|
438
438
|
|
439
|
-
##### [device_is_android?](https://github.com/appium/ruby_lib/blob/
|
439
|
+
##### [device_is_android?](https://github.com/appium/ruby_lib/blob/11cdf97bf9c4a90ac4e7c7dcf518cfb3fcd99ef2/lib/appium_lib/driver.rb#L465)
|
440
440
|
|
441
441
|
> def device_is_android?
|
442
442
|
|
@@ -448,7 +448,7 @@ __Returns:__
|
|
448
448
|
|
449
449
|
--
|
450
450
|
|
451
|
-
##### [automation_name_is_xcuitest?](https://github.com/appium/ruby_lib/blob/
|
451
|
+
##### [automation_name_is_xcuitest?](https://github.com/appium/ruby_lib/blob/11cdf97bf9c4a90ac4e7c7dcf518cfb3fcd99ef2/lib/appium_lib/driver.rb#L471)
|
452
452
|
|
453
453
|
> def automation_name_is_xcuitest?
|
454
454
|
|
@@ -460,7 +460,7 @@ __Returns:__
|
|
460
460
|
|
461
461
|
--
|
462
462
|
|
463
|
-
##### [check_server_version_xcuitest](https://github.com/appium/ruby_lib/blob/
|
463
|
+
##### [check_server_version_xcuitest](https://github.com/appium/ruby_lib/blob/11cdf97bf9c4a90ac4e7c7dcf518cfb3fcd99ef2/lib/appium_lib/driver.rb#L478)
|
464
464
|
|
465
465
|
> def check_server_version_xcuitest
|
466
466
|
|
@@ -473,7 +473,7 @@ __Returns:__
|
|
473
473
|
|
474
474
|
--
|
475
475
|
|
476
|
-
##### [appium_server_version](https://github.com/appium/ruby_lib/blob/
|
476
|
+
##### [appium_server_version](https://github.com/appium/ruby_lib/blob/11cdf97bf9c4a90ac4e7c7dcf518cfb3fcd99ef2/lib/appium_lib/driver.rb#L497)
|
477
477
|
|
478
478
|
> def appium_server_version
|
479
479
|
|
@@ -494,7 +494,7 @@ __Returns:__
|
|
494
494
|
|
495
495
|
--
|
496
496
|
|
497
|
-
##### [appium_client_version](https://github.com/appium/ruby_lib/blob/
|
497
|
+
##### [appium_client_version](https://github.com/appium/ruby_lib/blob/11cdf97bf9c4a90ac4e7c7dcf518cfb3fcd99ef2/lib/appium_lib/driver.rb#L510)
|
498
498
|
|
499
499
|
> def appium_client_version
|
500
500
|
|
@@ -512,7 +512,7 @@ __Returns:__
|
|
512
512
|
|
513
513
|
--
|
514
514
|
|
515
|
-
##### [absolute_app_path](https://github.com/appium/ruby_lib/blob/
|
515
|
+
##### [absolute_app_path](https://github.com/appium/ruby_lib/blob/11cdf97bf9c4a90ac4e7c7dcf518cfb3fcd99ef2/lib/appium_lib/driver.rb#L522)
|
516
516
|
|
517
517
|
> def self.absolute_app_path(opts)
|
518
518
|
|
@@ -529,7 +529,7 @@ __Returns:__
|
|
529
529
|
|
530
530
|
--
|
531
531
|
|
532
|
-
##### [server_url](https://github.com/appium/ruby_lib/blob/
|
532
|
+
##### [server_url](https://github.com/appium/ruby_lib/blob/11cdf97bf9c4a90ac4e7c7dcf518cfb3fcd99ef2/lib/appium_lib/driver.rb#L555)
|
533
533
|
|
534
534
|
> def server_url
|
535
535
|
|
@@ -541,7 +541,7 @@ __Returns:__
|
|
541
541
|
|
542
542
|
--
|
543
543
|
|
544
|
-
##### [restart](https://github.com/appium/ruby_lib/blob/
|
544
|
+
##### [restart](https://github.com/appium/ruby_lib/blob/11cdf97bf9c4a90ac4e7c7dcf518cfb3fcd99ef2/lib/appium_lib/driver.rb#L566)
|
545
545
|
|
546
546
|
> def restart
|
547
547
|
|
@@ -553,7 +553,7 @@ __Returns:__
|
|
553
553
|
|
554
554
|
--
|
555
555
|
|
556
|
-
##### [screenshot](https://github.com/appium/ruby_lib/blob/
|
556
|
+
##### [screenshot](https://github.com/appium/ruby_lib/blob/11cdf97bf9c4a90ac4e7c7dcf518cfb3fcd99ef2/lib/appium_lib/driver.rb#L577)
|
557
557
|
|
558
558
|
> def screenshot(png_save_path)
|
559
559
|
|
@@ -571,7 +571,7 @@ __Returns:__
|
|
571
571
|
|
572
572
|
--
|
573
573
|
|
574
|
-
##### [driver_quit](https://github.com/appium/ruby_lib/blob/
|
574
|
+
##### [driver_quit](https://github.com/appium/ruby_lib/blob/11cdf97bf9c4a90ac4e7c7dcf518cfb3fcd99ef2/lib/appium_lib/driver.rb#L584)
|
575
575
|
|
576
576
|
> def driver_quit
|
577
577
|
|
@@ -583,7 +583,7 @@ __Returns:__
|
|
583
583
|
|
584
584
|
--
|
585
585
|
|
586
|
-
##### [start_driver](https://github.com/appium/ruby_lib/blob/
|
586
|
+
##### [start_driver](https://github.com/appium/ruby_lib/blob/11cdf97bf9c4a90ac4e7c7dcf518cfb3fcd99ef2/lib/appium_lib/driver.rb#L594)
|
587
587
|
|
588
588
|
> def start_driver
|
589
589
|
|
@@ -595,7 +595,7 @@ __Returns:__
|
|
595
595
|
|
596
596
|
--
|
597
597
|
|
598
|
-
##### [no_wait](https://github.com/appium/ruby_lib/blob/
|
598
|
+
##### [no_wait](https://github.com/appium/ruby_lib/blob/11cdf97bf9c4a90ac4e7c7dcf518cfb3fcd99ef2/lib/appium_lib/driver.rb#L632)
|
599
599
|
|
600
600
|
> def no_wait
|
601
601
|
|
@@ -603,7 +603,7 @@ Set implicit wait to zero.
|
|
603
603
|
|
604
604
|
--
|
605
605
|
|
606
|
-
##### [set_wait](https://github.com/appium/ruby_lib/blob/
|
606
|
+
##### [set_wait](https://github.com/appium/ruby_lib/blob/11cdf97bf9c4a90ac4e7c7dcf518cfb3fcd99ef2/lib/appium_lib/driver.rb#L646)
|
607
607
|
|
608
608
|
> def set_wait(timeout = nil)
|
609
609
|
|
@@ -625,7 +625,7 @@ __Returns:__
|
|
625
625
|
|
626
626
|
--
|
627
627
|
|
628
|
-
##### [exists](https://github.com/appium/ruby_lib/blob/
|
628
|
+
##### [exists](https://github.com/appium/ruby_lib/blob/11cdf97bf9c4a90ac4e7c7dcf518cfb3fcd99ef2/lib/appium_lib/driver.rb#L663)
|
629
629
|
|
630
630
|
> def exists(pre_check = 0, post_check = @default_wait)
|
631
631
|
|
@@ -649,7 +649,7 @@ __Returns:__
|
|
649
649
|
|
650
650
|
--
|
651
651
|
|
652
|
-
##### [execute_script](https://github.com/appium/ruby_lib/blob/
|
652
|
+
##### [execute_script](https://github.com/appium/ruby_lib/blob/11cdf97bf9c4a90ac4e7c7dcf518cfb3fcd99ef2/lib/appium_lib/driver.rb#L687)
|
653
653
|
|
654
654
|
> def execute_script(script, *args)
|
655
655
|
|
@@ -667,7 +667,7 @@ __Returns:__
|
|
667
667
|
|
668
668
|
--
|
669
669
|
|
670
|
-
##### [find_elements](https://github.com/appium/ruby_lib/blob/
|
670
|
+
##### [find_elements](https://github.com/appium/ruby_lib/blob/11cdf97bf9c4a90ac4e7c7dcf518cfb3fcd99ef2/lib/appium_lib/driver.rb#L695)
|
671
671
|
|
672
672
|
> def find_elements(*args)
|
673
673
|
|
@@ -683,7 +683,7 @@ __Returns:__
|
|
683
683
|
|
684
684
|
--
|
685
685
|
|
686
|
-
##### [find_element](https://github.com/appium/ruby_lib/blob/
|
686
|
+
##### [find_element](https://github.com/appium/ruby_lib/blob/11cdf97bf9c4a90ac4e7c7dcf518cfb3fcd99ef2/lib/appium_lib/driver.rb#L703)
|
687
687
|
|
688
688
|
> def find_element(*args)
|
689
689
|
|
@@ -699,7 +699,7 @@ __Returns:__
|
|
699
699
|
|
700
700
|
--
|
701
701
|
|
702
|
-
##### [set_location](https://github.com/appium/ruby_lib/blob/
|
702
|
+
##### [set_location](https://github.com/appium/ruby_lib/blob/11cdf97bf9c4a90ac4e7c7dcf518cfb3fcd99ef2/lib/appium_lib/driver.rb#L716)
|
703
703
|
|
704
704
|
> def set_location(opts = {})
|
705
705
|
|
@@ -715,7 +715,7 @@ __Returns:__
|
|
715
715
|
|
716
716
|
--
|
717
717
|
|
718
|
-
##### [x](https://github.com/appium/ruby_lib/blob/
|
718
|
+
##### [x](https://github.com/appium/ruby_lib/blob/11cdf97bf9c4a90ac4e7c7dcf518cfb3fcd99ef2/lib/appium_lib/driver.rb#L726)
|
719
719
|
|
720
720
|
> def x
|
721
721
|
|
@@ -728,7 +728,7 @@ __Returns:__
|
|
728
728
|
|
729
729
|
--
|
730
730
|
|
731
|
-
##### [set_automation_name_if_nil](https://github.com/appium/ruby_lib/blob/
|
731
|
+
##### [set_automation_name_if_nil](https://github.com/appium/ruby_lib/blob/11cdf97bf9c4a90ac4e7c7dcf518cfb3fcd99ef2/lib/appium_lib/driver.rb#L735)
|
732
732
|
|
733
733
|
> def set_automation_name_if_nil
|
734
734
|
|
@@ -737,7 +737,7 @@ Since @automation_name is set only client side before start_driver is called.
|
|
737
737
|
|
738
738
|
--
|
739
739
|
|
740
|
-
##### [logger=](https://github.com/appium/ruby_lib/blob/
|
740
|
+
##### [logger=](https://github.com/appium/ruby_lib/blob/11cdf97bf9c4a90ac4e7c7dcf518cfb3fcd99ef2/lib/appium_lib/logger.rb#L13)
|
741
741
|
|
742
742
|
> def logger=(value)
|
743
743
|
|
@@ -749,7 +749,7 @@ __Parameters:__
|
|
749
749
|
|
750
750
|
--
|
751
751
|
|
752
|
-
##### [logger](https://github.com/appium/ruby_lib/blob/
|
752
|
+
##### [logger](https://github.com/appium/ruby_lib/blob/11cdf97bf9c4a90ac4e7c7dcf518cfb3fcd99ef2/lib/appium_lib/logger.rb#L17)
|
753
753
|
|
754
754
|
> def logger
|
755
755
|
|
@@ -757,7 +757,7 @@ __Parameters:__
|
|
757
757
|
|
758
758
|
--
|
759
759
|
|
760
|
-
##### [app_strings](https://github.com/appium/ruby_lib/blob/
|
760
|
+
##### [app_strings](https://github.com/appium/ruby_lib/blob/11cdf97bf9c4a90ac4e7c7dcf518cfb3fcd99ef2/lib/appium_lib/device/device.rb#L7)
|
761
761
|
|
762
762
|
> def app_strings
|
763
763
|
|
@@ -768,7 +768,7 @@ app_strings #=> "TransitionsTitle"=>"Transitions", "WebTitle"=>"Web"
|
|
768
768
|
|
769
769
|
--
|
770
770
|
|
771
|
-
##### [background_app](https://github.com/appium/ruby_lib/blob/
|
771
|
+
##### [background_app](https://github.com/appium/ruby_lib/blob/11cdf97bf9c4a90ac4e7c7dcf518cfb3fcd99ef2/lib/appium_lib/device/device.rb#L13)
|
772
772
|
|
773
773
|
> def background_app
|
774
774
|
|
@@ -777,7 +777,7 @@ This is a blocking application
|
|
777
777
|
|
778
778
|
--
|
779
779
|
|
780
|
-
##### [current_activity](https://github.com/appium/ruby_lib/blob/
|
780
|
+
##### [current_activity](https://github.com/appium/ruby_lib/blob/11cdf97bf9c4a90ac4e7c7dcf518cfb3fcd99ef2/lib/appium_lib/device/device.rb#L24)
|
781
781
|
|
782
782
|
> def current_activity
|
783
783
|
|
@@ -785,7 +785,52 @@ This is a blocking application
|
|
785
785
|
|
786
786
|
--
|
787
787
|
|
788
|
-
##### [
|
788
|
+
##### [get_system_bars](https://github.com/appium/ruby_lib/blob/11cdf97bf9c4a90ac4e7c7dcf518cfb3fcd99ef2/lib/appium_lib/device/device.rb#L26)
|
789
|
+
|
790
|
+
> def get_system_bars
|
791
|
+
|
792
|
+
Get system bar's information
|
793
|
+
```ruby
|
794
|
+
get_system_bars
|
795
|
+
```
|
796
|
+
|
797
|
+
__Returns:__
|
798
|
+
|
799
|
+
[String] System bar
|
800
|
+
|
801
|
+
--
|
802
|
+
|
803
|
+
##### [get_display_density](https://github.com/appium/ruby_lib/blob/11cdf97bf9c4a90ac4e7c7dcf518cfb3fcd99ef2/lib/appium_lib/device/device.rb#L34)
|
804
|
+
|
805
|
+
> def get_display_density
|
806
|
+
|
807
|
+
Get connected device's density.
|
808
|
+
```ruby
|
809
|
+
get_display_density # 320
|
810
|
+
```
|
811
|
+
|
812
|
+
__Returns:__
|
813
|
+
|
814
|
+
[Integer] The size of density
|
815
|
+
|
816
|
+
--
|
817
|
+
|
818
|
+
##### [is_keyboard_shown](https://github.com/appium/ruby_lib/blob/11cdf97bf9c4a90ac4e7c7dcf518cfb3fcd99ef2/lib/appium_lib/device/device.rb#L42)
|
819
|
+
|
820
|
+
> def is_keyboard_shown
|
821
|
+
|
822
|
+
Get whether keyboard is displayed or not.
|
823
|
+
```ruby
|
824
|
+
is_keyboard_shown # false
|
825
|
+
```
|
826
|
+
|
827
|
+
__Returns:__
|
828
|
+
|
829
|
+
[Bool] Return true if keyboard is shown. Return false if keyboard is hidden.
|
830
|
+
|
831
|
+
--
|
832
|
+
|
833
|
+
##### [launch_app](https://github.com/appium/ruby_lib/blob/11cdf97bf9c4a90ac4e7c7dcf518cfb3fcd99ef2/lib/appium_lib/device/device.rb#L50)
|
789
834
|
|
790
835
|
> def launch_app
|
791
836
|
|
@@ -793,7 +838,7 @@ Start the simulator and application configured with desired capabilities
|
|
793
838
|
|
794
839
|
--
|
795
840
|
|
796
|
-
##### [reset](https://github.com/appium/ruby_lib/blob/
|
841
|
+
##### [reset](https://github.com/appium/ruby_lib/blob/11cdf97bf9c4a90ac4e7c7dcf518cfb3fcd99ef2/lib/appium_lib/device/device.rb#L53)
|
797
842
|
|
798
843
|
> def reset
|
799
844
|
|
@@ -801,7 +846,7 @@ Reset the device, relaunching the application.
|
|
801
846
|
|
802
847
|
--
|
803
848
|
|
804
|
-
##### [shake](https://github.com/appium/ruby_lib/blob/
|
849
|
+
##### [shake](https://github.com/appium/ruby_lib/blob/11cdf97bf9c4a90ac4e7c7dcf518cfb3fcd99ef2/lib/appium_lib/device/device.rb#L56)
|
805
850
|
|
806
851
|
> def shake
|
807
852
|
|
@@ -809,7 +854,7 @@ Cause the device to shake
|
|
809
854
|
|
810
855
|
--
|
811
856
|
|
812
|
-
##### [toggle_flight_mode](https://github.com/appium/ruby_lib/blob/
|
857
|
+
##### [toggle_flight_mode](https://github.com/appium/ruby_lib/blob/11cdf97bf9c4a90ac4e7c7dcf518cfb3fcd99ef2/lib/appium_lib/device/device.rb#L59)
|
813
858
|
|
814
859
|
> def toggle_flight_mode
|
815
860
|
|
@@ -817,7 +862,7 @@ Toggle flight mode on or off
|
|
817
862
|
|
818
863
|
--
|
819
864
|
|
820
|
-
##### [device_locked?](https://github.com/appium/ruby_lib/blob/
|
865
|
+
##### [device_locked?](https://github.com/appium/ruby_lib/blob/11cdf97bf9c4a90ac4e7c7dcf518cfb3fcd99ef2/lib/appium_lib/device/device.rb#L62)
|
821
866
|
|
822
867
|
> def device_locked?
|
823
868
|
|
@@ -825,7 +870,7 @@ Toggle flight mode on or off
|
|
825
870
|
|
826
871
|
--
|
827
872
|
|
828
|
-
##### [hide_keyboard](https://github.com/appium/ruby_lib/blob/
|
873
|
+
##### [hide_keyboard](https://github.com/appium/ruby_lib/blob/11cdf97bf9c4a90ac4e7c7dcf518cfb3fcd99ef2/lib/appium_lib/device/device.rb#L64)
|
829
874
|
|
830
875
|
> def hide_keyboard
|
831
876
|
|
@@ -838,7 +883,7 @@ Defaults to 'Done'.
|
|
838
883
|
|
839
884
|
--
|
840
885
|
|
841
|
-
##### [press_keycode](https://github.com/appium/ruby_lib/blob/
|
886
|
+
##### [press_keycode](https://github.com/appium/ruby_lib/blob/11cdf97bf9c4a90ac4e7c7dcf518cfb3fcd99ef2/lib/appium_lib/device/device.rb#L73)
|
842
887
|
|
843
888
|
> def press_keycode
|
844
889
|
|
@@ -853,7 +898,7 @@ __Parameters:__
|
|
853
898
|
|
854
899
|
--
|
855
900
|
|
856
|
-
##### [long_press_keycode](https://github.com/appium/ruby_lib/blob/
|
901
|
+
##### [long_press_keycode](https://github.com/appium/ruby_lib/blob/11cdf97bf9c4a90ac4e7c7dcf518cfb3fcd99ef2/lib/appium_lib/device/device.rb#L79)
|
857
902
|
|
858
903
|
> def long_press_keycode
|
859
904
|
|
@@ -868,7 +913,7 @@ __Parameters:__
|
|
868
913
|
|
869
914
|
--
|
870
915
|
|
871
|
-
##### [push_file](https://github.com/appium/ruby_lib/blob/
|
916
|
+
##### [push_file](https://github.com/appium/ruby_lib/blob/11cdf97bf9c4a90ac4e7c7dcf518cfb3fcd99ef2/lib/appium_lib/device/device.rb#L85)
|
872
917
|
|
873
918
|
> def push_file
|
874
919
|
|
@@ -882,7 +927,7 @@ __Parameters:__
|
|
882
927
|
|
883
928
|
--
|
884
929
|
|
885
|
-
##### [pull_file](https://github.com/appium/ruby_lib/blob/
|
930
|
+
##### [pull_file](https://github.com/appium/ruby_lib/blob/11cdf97bf9c4a90ac4e7c7dcf518cfb3fcd99ef2/lib/appium_lib/device/device.rb#L90)
|
886
931
|
|
887
932
|
> def pull_file
|
888
933
|
|
@@ -899,7 +944,7 @@ __Parameters:__
|
|
899
944
|
|
900
945
|
--
|
901
946
|
|
902
|
-
##### [pull_folder](https://github.com/appium/ruby_lib/blob/
|
947
|
+
##### [pull_folder](https://github.com/appium/ruby_lib/blob/11cdf97bf9c4a90ac4e7c7dcf518cfb3fcd99ef2/lib/appium_lib/device/device.rb#L100)
|
903
948
|
|
904
949
|
> def pull_folder
|
905
950
|
|
@@ -914,7 +959,7 @@ __Parameters:__
|
|
914
959
|
|
915
960
|
--
|
916
961
|
|
917
|
-
##### [touch_id](https://github.com/appium/ruby_lib/blob/
|
962
|
+
##### [touch_id](https://github.com/appium/ruby_lib/blob/11cdf97bf9c4a90ac4e7c7dcf518cfb3fcd99ef2/lib/appium_lib/device/device.rb#L108)
|
918
963
|
|
919
964
|
> def touch_id
|
920
965
|
|
@@ -931,7 +976,7 @@ Defaults to true.
|
|
931
976
|
|
932
977
|
--
|
933
978
|
|
934
|
-
##### [end_coverage](https://github.com/appium/ruby_lib/blob/
|
979
|
+
##### [end_coverage](https://github.com/appium/ruby_lib/blob/11cdf97bf9c4a90ac4e7c7dcf518cfb3fcd99ef2/lib/appium_lib/device/device.rb#L117)
|
935
980
|
|
936
981
|
> def end_coverage
|
937
982
|
|
@@ -945,7 +990,7 @@ __Parameters:__
|
|
945
990
|
|
946
991
|
--
|
947
992
|
|
948
|
-
##### [get_settings](https://github.com/appium/ruby_lib/blob/
|
993
|
+
##### [get_settings](https://github.com/appium/ruby_lib/blob/11cdf97bf9c4a90ac4e7c7dcf518cfb3fcd99ef2/lib/appium_lib/device/device.rb#L122)
|
949
994
|
|
950
995
|
> def get_settings
|
951
996
|
|
@@ -953,7 +998,7 @@ Get appium Settings for current test session
|
|
953
998
|
|
954
999
|
--
|
955
1000
|
|
956
|
-
##### [update_settings](https://github.com/appium/ruby_lib/blob/
|
1001
|
+
##### [update_settings](https://github.com/appium/ruby_lib/blob/11cdf97bf9c4a90ac4e7c7dcf518cfb3fcd99ef2/lib/appium_lib/device/device.rb#L125)
|
957
1002
|
|
958
1003
|
> def update_settings
|
959
1004
|
|
@@ -965,7 +1010,7 @@ __Parameters:__
|
|
965
1010
|
|
966
1011
|
--
|
967
1012
|
|
968
|
-
##### [start_activity](https://github.com/appium/ruby_lib/blob/
|
1013
|
+
##### [start_activity](https://github.com/appium/ruby_lib/blob/11cdf97bf9c4a90ac4e7c7dcf518cfb3fcd99ef2/lib/appium_lib/device/device.rb#L129)
|
969
1014
|
|
970
1015
|
> def start_activity
|
971
1016
|
|
@@ -979,7 +1024,7 @@ start_activity app_package: 'io.appium.android.apis',
|
|
979
1024
|
|
980
1025
|
--
|
981
1026
|
|
982
|
-
##### [get_network_connection](https://github.com/appium/ruby_lib/blob/
|
1027
|
+
##### [get_network_connection](https://github.com/appium/ruby_lib/blob/11cdf97bf9c4a90ac4e7c7dcf518cfb3fcd99ef2/lib/appium_lib/device/device.rb#L143)
|
983
1028
|
|
984
1029
|
> def get_network_connection
|
985
1030
|
|
@@ -988,7 +1033,7 @@ See set_network_connection method for return value
|
|
988
1033
|
|
989
1034
|
--
|
990
1035
|
|
991
|
-
##### [set_network_connection](https://github.com/appium/ruby_lib/blob/
|
1036
|
+
##### [set_network_connection](https://github.com/appium/ruby_lib/blob/11cdf97bf9c4a90ac4e7c7dcf518cfb3fcd99ef2/lib/appium_lib/device/device.rb#L147)
|
992
1037
|
|
993
1038
|
> def set_network_connection
|
994
1039
|
|
@@ -1007,7 +1052,7 @@ __Parameters:__
|
|
1007
1052
|
|
1008
1053
|
--
|
1009
1054
|
|
1010
|
-
##### [set_immediate_value](https://github.com/appium/ruby_lib/blob/
|
1055
|
+
##### [set_immediate_value](https://github.com/appium/ruby_lib/blob/11cdf97bf9c4a90ac4e7c7dcf518cfb3fcd99ef2/lib/appium_lib/device/device.rb#L160)
|
1011
1056
|
|
1012
1057
|
> def set_immediate_value
|
1013
1058
|
|
@@ -1021,7 +1066,7 @@ set_immediate_value element, 'hello'
|
|
1021
1066
|
|
1022
1067
|
--
|
1023
1068
|
|
1024
|
-
##### [get_performance_data_types](https://github.com/appium/ruby_lib/blob/
|
1069
|
+
##### [get_performance_data_types](https://github.com/appium/ruby_lib/blob/11cdf97bf9c4a90ac4e7c7dcf518cfb3fcd99ef2/lib/appium_lib/device/device.rb#L169)
|
1025
1070
|
|
1026
1071
|
> def get_performance_data_types
|
1027
1072
|
|
@@ -1035,7 +1080,7 @@ get_performance_data_types #=> ["cpuinfo", "batteryinfo", "networkinfo", "memory
|
|
1035
1080
|
|
1036
1081
|
--
|
1037
1082
|
|
1038
|
-
##### [extend_search_contexts](https://github.com/appium/ruby_lib/blob/
|
1083
|
+
##### [extend_search_contexts](https://github.com/appium/ruby_lib/blob/11cdf97bf9c4a90ac4e7c7dcf518cfb3fcd99ef2/lib/appium_lib/device/device.rb#L424)
|
1039
1084
|
|
1040
1085
|
> def extend_search_contexts
|
1041
1086
|
|
@@ -1043,7 +1088,7 @@ get_performance_data_types #=> ["cpuinfo", "batteryinfo", "networkinfo", "memory
|
|
1043
1088
|
|
1044
1089
|
--
|
1045
1090
|
|
1046
|
-
##### [find_element](https://github.com/appium/ruby_lib/blob/
|
1091
|
+
##### [find_element](https://github.com/appium/ruby_lib/blob/11cdf97bf9c4a90ac4e7c7dcf518cfb3fcd99ef2/lib/appium_lib/device/device.rb#L424)
|
1047
1092
|
|
1048
1093
|
> def find_element
|
1049
1094
|
|
@@ -1051,7 +1096,7 @@ get_performance_data_types #=> ["cpuinfo", "batteryinfo", "networkinfo", "memory
|
|
1051
1096
|
|
1052
1097
|
--
|
1053
1098
|
|
1054
|
-
##### [find_elements](https://github.com/appium/ruby_lib/blob/
|
1099
|
+
##### [find_elements](https://github.com/appium/ruby_lib/blob/11cdf97bf9c4a90ac4e7c7dcf518cfb3fcd99ef2/lib/appium_lib/device/device.rb#L424)
|
1055
1100
|
|
1056
1101
|
> def find_elements
|
1057
1102
|
|
@@ -1063,7 +1108,7 @@ find_element/s with their accessibility_id
|
|
1063
1108
|
|
1064
1109
|
--
|
1065
1110
|
|
1066
|
-
##### [add_touch_actions](https://github.com/appium/ruby_lib/blob/
|
1111
|
+
##### [add_touch_actions](https://github.com/appium/ruby_lib/blob/11cdf97bf9c4a90ac4e7c7dcf518cfb3fcd99ef2/lib/appium_lib/device/device.rb#L455)
|
1067
1112
|
|
1068
1113
|
> def add_touch_actions
|
1069
1114
|
|
@@ -1071,7 +1116,7 @@ find_element/s with their accessibility_id
|
|
1071
1116
|
|
1072
1117
|
--
|
1073
1118
|
|
1074
|
-
##### [add_ime_actions](https://github.com/appium/ruby_lib/blob/
|
1119
|
+
##### [add_ime_actions](https://github.com/appium/ruby_lib/blob/11cdf97bf9c4a90ac4e7c7dcf518cfb3fcd99ef2/lib/appium_lib/device/device.rb#L478)
|
1075
1120
|
|
1076
1121
|
> def add_ime_actions
|
1077
1122
|
|
@@ -1079,7 +1124,7 @@ find_element/s with their accessibility_id
|
|
1079
1124
|
|
1080
1125
|
--
|
1081
1126
|
|
1082
|
-
##### [set_context](https://github.com/appium/ruby_lib/blob/
|
1127
|
+
##### [set_context](https://github.com/appium/ruby_lib/blob/11cdf97bf9c4a90ac4e7c7dcf518cfb3fcd99ef2/lib/appium_lib/device/device.rb#L553)
|
1083
1128
|
|
1084
1129
|
> def set_context
|
1085
1130
|
|
@@ -1094,7 +1139,7 @@ __Parameters:__
|
|
1094
1139
|
|
1095
1140
|
--
|
1096
1141
|
|
1097
|
-
##### [current_context](https://github.com/appium/ruby_lib/blob/
|
1142
|
+
##### [current_context](https://github.com/appium/ruby_lib/blob/11cdf97bf9c4a90ac4e7c7dcf518cfb3fcd99ef2/lib/appium_lib/device/device.rb#L561)
|
1098
1143
|
|
1099
1144
|
> def current_context
|
1100
1145
|
|
@@ -1106,7 +1151,7 @@ __Returns:__
|
|
1106
1151
|
|
1107
1152
|
--
|
1108
1153
|
|
1109
|
-
##### [available_contexts](https://github.com/appium/ruby_lib/blob/
|
1154
|
+
##### [available_contexts](https://github.com/appium/ruby_lib/blob/11cdf97bf9c4a90ac4e7c7dcf518cfb3fcd99ef2/lib/appium_lib/device/device.rb#L564)
|
1110
1155
|
|
1111
1156
|
> def available_contexts
|
1112
1157
|
|
@@ -1118,7 +1163,7 @@ __Returns:__
|
|
1118
1163
|
|
1119
1164
|
--
|
1120
1165
|
|
1121
|
-
##### [within_context](https://github.com/appium/ruby_lib/blob/
|
1166
|
+
##### [within_context](https://github.com/appium/ruby_lib/blob/11cdf97bf9c4a90ac4e7c7dcf518cfb3fcd99ef2/lib/appium_lib/device/device.rb#L574)
|
1122
1167
|
|
1123
1168
|
> def within_context(context)
|
1124
1169
|
|
@@ -1134,7 +1179,7 @@ __Parameters:__
|
|
1134
1179
|
|
1135
1180
|
--
|
1136
1181
|
|
1137
|
-
##### [switch_to_default_context](https://github.com/appium/ruby_lib/blob/
|
1182
|
+
##### [switch_to_default_context](https://github.com/appium/ruby_lib/blob/11cdf97bf9c4a90ac4e7c7dcf518cfb3fcd99ef2/lib/appium_lib/device/device.rb#L582)
|
1138
1183
|
|
1139
1184
|
> def switch_to_default_context
|
1140
1185
|
|
@@ -1142,7 +1187,7 @@ Change to the default context. This is equivalent to `set_context nil`.
|
|
1142
1187
|
|
1143
1188
|
--
|
1144
1189
|
|
1145
|
-
##### [pinch](https://github.com/appium/ruby_lib/blob/
|
1190
|
+
##### [pinch](https://github.com/appium/ruby_lib/blob/11cdf97bf9c4a90ac4e7c7dcf518cfb3fcd99ef2/lib/appium_lib/device/multi_touch.rb#L28)
|
1146
1191
|
|
1147
1192
|
> def pinch(percentage = 25, auto_perform = true)
|
1148
1193
|
|
@@ -1161,7 +1206,7 @@ __Parameters:__
|
|
1161
1206
|
|
1162
1207
|
--
|
1163
1208
|
|
1164
|
-
##### [zoom](https://github.com/appium/ruby_lib/blob/
|
1209
|
+
##### [zoom](https://github.com/appium/ruby_lib/blob/11cdf97bf9c4a90ac4e7c7dcf518cfb3fcd99ef2/lib/appium_lib/device/multi_touch.rb#L57)
|
1165
1210
|
|
1166
1211
|
> def zoom(percentage = 200, auto_perform = true)
|
1167
1212
|
|
@@ -1180,7 +1225,7 @@ __Parameters:__
|
|
1180
1225
|
|
1181
1226
|
--
|
1182
1227
|
|
1183
|
-
##### [pinch_for_xcuitest](https://github.com/appium/ruby_lib/blob/
|
1228
|
+
##### [pinch_for_xcuitest](https://github.com/appium/ruby_lib/blob/11cdf97bf9c4a90ac4e7c7dcf518cfb3fcd99ef2/lib/appium_lib/device/multi_touch.rb#L79)
|
1184
1229
|
|
1185
1230
|
> def pinch_for_xcuitest(rate)
|
1186
1231
|
|
@@ -1188,7 +1233,7 @@ __Parameters:__
|
|
1188
1233
|
|
1189
1234
|
--
|
1190
1235
|
|
1191
|
-
##### [pinch_android](https://github.com/appium/ruby_lib/blob/
|
1236
|
+
##### [pinch_android](https://github.com/appium/ruby_lib/blob/11cdf97bf9c4a90ac4e7c7dcf518cfb3fcd99ef2/lib/appium_lib/device/multi_touch.rb#L94)
|
1192
1237
|
|
1193
1238
|
> def pinch_android(rate)
|
1194
1239
|
|
@@ -1196,7 +1241,7 @@ __Parameters:__
|
|
1196
1241
|
|
1197
1242
|
--
|
1198
1243
|
|
1199
|
-
##### [pinch_ios](https://github.com/appium/ruby_lib/blob/
|
1244
|
+
##### [pinch_ios](https://github.com/appium/ruby_lib/blob/11cdf97bf9c4a90ac4e7c7dcf518cfb3fcd99ef2/lib/appium_lib/device/multi_touch.rb#L108)
|
1200
1245
|
|
1201
1246
|
> def pinch_ios(rate)
|
1202
1247
|
|
@@ -1204,7 +1249,7 @@ __Parameters:__
|
|
1204
1249
|
|
1205
1250
|
--
|
1206
1251
|
|
1207
|
-
##### [zoom_for_xcuitest](https://github.com/appium/ruby_lib/blob/
|
1252
|
+
##### [zoom_for_xcuitest](https://github.com/appium/ruby_lib/blob/11cdf97bf9c4a90ac4e7c7dcf518cfb3fcd99ef2/lib/appium_lib/device/multi_touch.rb#L122)
|
1208
1253
|
|
1209
1254
|
> def zoom_for_xcuitest(rate)
|
1210
1255
|
|
@@ -1212,7 +1257,7 @@ __Parameters:__
|
|
1212
1257
|
|
1213
1258
|
--
|
1214
1259
|
|
1215
|
-
##### [zoom_android](https://github.com/appium/ruby_lib/blob/
|
1260
|
+
##### [zoom_android](https://github.com/appium/ruby_lib/blob/11cdf97bf9c4a90ac4e7c7dcf518cfb3fcd99ef2/lib/appium_lib/device/multi_touch.rb#L137)
|
1216
1261
|
|
1217
1262
|
> def zoom_android(rate)
|
1218
1263
|
|
@@ -1220,7 +1265,7 @@ __Parameters:__
|
|
1220
1265
|
|
1221
1266
|
--
|
1222
1267
|
|
1223
|
-
##### [zoom_ios](https://github.com/appium/ruby_lib/blob/
|
1268
|
+
##### [zoom_ios](https://github.com/appium/ruby_lib/blob/11cdf97bf9c4a90ac4e7c7dcf518cfb3fcd99ef2/lib/appium_lib/device/multi_touch.rb#L151)
|
1224
1269
|
|
1225
1270
|
> def zoom_ios(rate)
|
1226
1271
|
|
@@ -1228,7 +1273,15 @@ __Parameters:__
|
|
1228
1273
|
|
1229
1274
|
--
|
1230
1275
|
|
1231
|
-
##### [
|
1276
|
+
##### [actions](https://github.com/appium/ruby_lib/blob/11cdf97bf9c4a90ac4e7c7dcf518cfb3fcd99ef2/lib/appium_lib/device/multi_touch.rb#L166)
|
1277
|
+
|
1278
|
+
> def actions
|
1279
|
+
|
1280
|
+
self
|
1281
|
+
|
1282
|
+
--
|
1283
|
+
|
1284
|
+
##### [initialize](https://github.com/appium/ruby_lib/blob/11cdf97bf9c4a90ac4e7c7dcf518cfb3fcd99ef2/lib/appium_lib/device/multi_touch.rb#L169)
|
1232
1285
|
|
1233
1286
|
> def initialize
|
1234
1287
|
|
@@ -1240,7 +1293,7 @@ __Returns:__
|
|
1240
1293
|
|
1241
1294
|
--
|
1242
1295
|
|
1243
|
-
##### [add](https://github.com/appium/ruby_lib/blob/
|
1296
|
+
##### [add](https://github.com/appium/ruby_lib/blob/11cdf97bf9c4a90ac4e7c7dcf518cfb3fcd99ef2/lib/appium_lib/device/multi_touch.rb#L175)
|
1244
1297
|
|
1245
1298
|
> def add(chain)
|
1246
1299
|
|
@@ -1252,7 +1305,7 @@ __Parameters:__
|
|
1252
1305
|
|
1253
1306
|
--
|
1254
1307
|
|
1255
|
-
##### [perform](https://github.com/appium/ruby_lib/blob/
|
1308
|
+
##### [perform](https://github.com/appium/ruby_lib/blob/11cdf97bf9c4a90ac4e7c7dcf518cfb3fcd99ef2/lib/appium_lib/device/multi_touch.rb#L180)
|
1256
1309
|
|
1257
1310
|
> def perform
|
1258
1311
|
|
@@ -1260,7 +1313,7 @@ Ask Appium to perform the actions
|
|
1260
1313
|
|
1261
1314
|
--
|
1262
1315
|
|
1263
|
-
##### [ACTIONS](https://github.com/appium/ruby_lib/blob/
|
1316
|
+
##### [ACTIONS](https://github.com/appium/ruby_lib/blob/11cdf97bf9c4a90ac4e7c7dcf518cfb3fcd99ef2/lib/appium_lib/device/touch_actions.rb#L20)
|
1264
1317
|
|
1265
1318
|
> ACTIONS = [:move_to, :long_press, :double_tap, :two_finger_tap, :press, :release, :tap, :wait, :perform].freeze
|
1266
1319
|
|
@@ -1268,7 +1321,7 @@ Ask Appium to perform the actions
|
|
1268
1321
|
|
1269
1322
|
--
|
1270
1323
|
|
1271
|
-
##### [COMPLEX_ACTIONS](https://github.com/appium/ruby_lib/blob/
|
1324
|
+
##### [COMPLEX_ACTIONS](https://github.com/appium/ruby_lib/blob/11cdf97bf9c4a90ac4e7c7dcf518cfb3fcd99ef2/lib/appium_lib/device/touch_actions.rb#L21)
|
1272
1325
|
|
1273
1326
|
> COMPLEX_ACTIONS = [:swipe].freeze
|
1274
1327
|
|
@@ -1276,7 +1329,7 @@ Ask Appium to perform the actions
|
|
1276
1329
|
|
1277
1330
|
--
|
1278
1331
|
|
1279
|
-
##### [actions](https://github.com/appium/ruby_lib/blob/
|
1332
|
+
##### [actions](https://github.com/appium/ruby_lib/blob/11cdf97bf9c4a90ac4e7c7dcf518cfb3fcd99ef2/lib/appium_lib/device/touch_actions.rb#L35)
|
1280
1333
|
|
1281
1334
|
> def actions
|
1282
1335
|
|
@@ -1284,7 +1337,7 @@ Returns the value of attribute actions
|
|
1284
1337
|
|
1285
1338
|
--
|
1286
1339
|
|
1287
|
-
##### [initialize](https://github.com/appium/ruby_lib/blob/
|
1340
|
+
##### [initialize](https://github.com/appium/ruby_lib/blob/11cdf97bf9c4a90ac4e7c7dcf518cfb3fcd99ef2/lib/appium_lib/device/touch_actions.rb#L37)
|
1288
1341
|
|
1289
1342
|
> def initialize
|
1290
1343
|
|
@@ -1296,7 +1349,7 @@ __Returns:__
|
|
1296
1349
|
|
1297
1350
|
--
|
1298
1351
|
|
1299
|
-
##### [move_to](https://github.com/appium/ruby_lib/blob/
|
1352
|
+
##### [move_to](https://github.com/appium/ruby_lib/blob/11cdf97bf9c4a90ac4e7c7dcf518cfb3fcd99ef2/lib/appium_lib/device/touch_actions.rb#L48)
|
1300
1353
|
|
1301
1354
|
> def move_to(opts)
|
1302
1355
|
|
@@ -1310,7 +1363,7 @@ __Parameters:__
|
|
1310
1363
|
|
1311
1364
|
--
|
1312
1365
|
|
1313
|
-
##### [long_press](https://github.com/appium/ruby_lib/blob/
|
1366
|
+
##### [long_press](https://github.com/appium/ruby_lib/blob/11cdf97bf9c4a90ac4e7c7dcf518cfb3fcd99ef2/lib/appium_lib/device/touch_actions.rb#L62)
|
1314
1367
|
|
1315
1368
|
> def long_press(opts)
|
1316
1369
|
|
@@ -1331,7 +1384,7 @@ __Parameters:__
|
|
1331
1384
|
|
1332
1385
|
--
|
1333
1386
|
|
1334
|
-
##### [press](https://github.com/appium/ruby_lib/blob/
|
1387
|
+
##### [press](https://github.com/appium/ruby_lib/blob/11cdf97bf9c4a90ac4e7c7dcf518cfb3fcd99ef2/lib/appium_lib/device/touch_actions.rb#L74)
|
1335
1388
|
|
1336
1389
|
> def press(opts)
|
1337
1390
|
|
@@ -1344,7 +1397,7 @@ __Parameters:__
|
|
1344
1397
|
|
1345
1398
|
--
|
1346
1399
|
|
1347
|
-
##### [release](https://github.com/appium/ruby_lib/blob/
|
1400
|
+
##### [release](https://github.com/appium/ruby_lib/blob/11cdf97bf9c4a90ac4e7c7dcf518cfb3fcd99ef2/lib/appium_lib/device/touch_actions.rb#L85)
|
1348
1401
|
|
1349
1402
|
> def release(opts = nil)
|
1350
1403
|
|
@@ -1356,7 +1409,7 @@ __Parameters:__
|
|
1356
1409
|
|
1357
1410
|
--
|
1358
1411
|
|
1359
|
-
##### [tap](https://github.com/appium/ruby_lib/blob/
|
1412
|
+
##### [tap](https://github.com/appium/ruby_lib/blob/11cdf97bf9c4a90ac4e7c7dcf518cfb3fcd99ef2/lib/appium_lib/device/touch_actions.rb#L97)
|
1360
1413
|
|
1361
1414
|
> def tap(opts)
|
1362
1415
|
|
@@ -1369,7 +1422,7 @@ __Parameters:__
|
|
1369
1422
|
|
1370
1423
|
--
|
1371
1424
|
|
1372
|
-
##### [double_tap](https://github.com/appium/ruby_lib/blob/
|
1425
|
+
##### [double_tap](https://github.com/appium/ruby_lib/blob/11cdf97bf9c4a90ac4e7c7dcf518cfb3fcd99ef2/lib/appium_lib/device/touch_actions.rb#L110)
|
1373
1426
|
|
1374
1427
|
> def double_tap(opts)
|
1375
1428
|
|
@@ -1381,7 +1434,7 @@ __Parameters:__
|
|
1381
1434
|
|
1382
1435
|
--
|
1383
1436
|
|
1384
|
-
##### [two_finger_tap](https://github.com/appium/ruby_lib/blob/
|
1437
|
+
##### [two_finger_tap](https://github.com/appium/ruby_lib/blob/11cdf97bf9c4a90ac4e7c7dcf518cfb3fcd99ef2/lib/appium_lib/device/touch_actions.rb#L121)
|
1385
1438
|
|
1386
1439
|
> def two_finger_tap(opts)
|
1387
1440
|
|
@@ -1393,7 +1446,7 @@ __Parameters:__
|
|
1393
1446
|
|
1394
1447
|
--
|
1395
1448
|
|
1396
|
-
##### [wait](https://github.com/appium/ruby_lib/blob/
|
1449
|
+
##### [wait](https://github.com/appium/ruby_lib/blob/11cdf97bf9c4a90ac4e7c7dcf518cfb3fcd99ef2/lib/appium_lib/device/touch_actions.rb#L129)
|
1397
1450
|
|
1398
1451
|
> def wait(milliseconds)
|
1399
1452
|
|
@@ -1405,7 +1458,7 @@ __Parameters:__
|
|
1405
1458
|
|
1406
1459
|
--
|
1407
1460
|
|
1408
|
-
##### [swipe](https://github.com/appium/ruby_lib/blob/
|
1461
|
+
##### [swipe](https://github.com/appium/ruby_lib/blob/11cdf97bf9c4a90ac4e7c7dcf518cfb3fcd99ef2/lib/appium_lib/device/touch_actions.rb#L152)
|
1409
1462
|
|
1410
1463
|
> def swipe(opts, ele = nil)
|
1411
1464
|
|
@@ -1426,7 +1479,7 @@ __Parameters:__
|
|
1426
1479
|
|
1427
1480
|
--
|
1428
1481
|
|
1429
|
-
##### [perform](https://github.com/appium/ruby_lib/blob/
|
1482
|
+
##### [perform](https://github.com/appium/ruby_lib/blob/11cdf97bf9c4a90ac4e7c7dcf518cfb3fcd99ef2/lib/appium_lib/device/touch_actions.rb#L177)
|
1430
1483
|
|
1431
1484
|
> def perform
|
1432
1485
|
|
@@ -1434,7 +1487,7 @@ Ask the driver to perform all actions in this action chain.
|
|
1434
1487
|
|
1435
1488
|
--
|
1436
1489
|
|
1437
|
-
##### [cancel](https://github.com/appium/ruby_lib/blob/
|
1490
|
+
##### [cancel](https://github.com/appium/ruby_lib/blob/11cdf97bf9c4a90ac4e7c7dcf518cfb3fcd99ef2/lib/appium_lib/device/touch_actions.rb#L184)
|
1438
1491
|
|
1439
1492
|
> def cancel
|
1440
1493
|
|
@@ -1442,7 +1495,7 @@ Does nothing, currently.
|
|
1442
1495
|
|
1443
1496
|
--
|
1444
1497
|
|
1445
|
-
##### [swipe_coordinates](https://github.com/appium/ruby_lib/blob/
|
1498
|
+
##### [swipe_coordinates](https://github.com/appium/ruby_lib/blob/11cdf97bf9c4a90ac4e7c7dcf518cfb3fcd99ef2/lib/appium_lib/device/touch_actions.rb#L190)
|
1446
1499
|
|
1447
1500
|
> def swipe_coordinates(end_x: nil, end_y: nil, offset_x: nil, offset_y: nil)
|
1448
1501
|
|
@@ -1450,7 +1503,7 @@ Does nothing, currently.
|
|
1450
1503
|
|
1451
1504
|
--
|
1452
1505
|
|
1453
|
-
##### [chain_method](https://github.com/appium/ruby_lib/blob/
|
1506
|
+
##### [chain_method](https://github.com/appium/ruby_lib/blob/11cdf97bf9c4a90ac4e7c7dcf518cfb3fcd99ef2/lib/appium_lib/device/touch_actions.rb#L208)
|
1454
1507
|
|
1455
1508
|
> def chain_method(method, args = nil)
|
1456
1509
|
|
@@ -1458,7 +1511,7 @@ Does nothing, currently.
|
|
1458
1511
|
|
1459
1512
|
--
|
1460
1513
|
|
1461
|
-
##### [args_with_ele_ref](https://github.com/appium/ruby_lib/blob/
|
1514
|
+
##### [args_with_ele_ref](https://github.com/appium/ruby_lib/blob/11cdf97bf9c4a90ac4e7c7dcf518cfb3fcd99ef2/lib/appium_lib/device/touch_actions.rb#L214)
|
1462
1515
|
|
1463
1516
|
> def args_with_ele_ref(args)
|
1464
1517
|
|
@@ -1466,7 +1519,7 @@ Does nothing, currently.
|
|
1466
1519
|
|
1467
1520
|
--
|
1468
1521
|
|
1469
|
-
##### [_generic_wait](https://github.com/appium/ruby_lib/blob/
|
1522
|
+
##### [_generic_wait](https://github.com/appium/ruby_lib/blob/11cdf97bf9c4a90ac4e7c7dcf518cfb3fcd99ef2/lib/appium_lib/common/wait.rb#L9)
|
1470
1523
|
|
1471
1524
|
> def _generic_wait(opts = {})
|
1472
1525
|
|
@@ -1475,7 +1528,7 @@ https://github.com/SeleniumHQ/selenium/blob/cf501dda3f0ed12233de51ce8170c0e8090f
|
|
1475
1528
|
|
1476
1529
|
--
|
1477
1530
|
|
1478
|
-
##### [_process_wait_opts](https://github.com/appium/ruby_lib/blob/
|
1531
|
+
##### [_process_wait_opts](https://github.com/appium/ruby_lib/blob/11cdf97bf9c4a90ac4e7c7dcf518cfb3fcd99ef2/lib/appium_lib/common/wait.rb#L48)
|
1479
1532
|
|
1480
1533
|
> def _process_wait_opts(opts)
|
1481
1534
|
|
@@ -1483,7 +1536,7 @@ process opts before calling _generic_wait
|
|
1483
1536
|
|
1484
1537
|
--
|
1485
1538
|
|
1486
|
-
##### [wait_true](https://github.com/appium/ruby_lib/blob/
|
1539
|
+
##### [wait_true](https://github.com/appium/ruby_lib/blob/11cdf97bf9c4a90ac4e7c7dcf518cfb3fcd99ef2/lib/appium_lib/common/wait.rb#L69)
|
1487
1540
|
|
1488
1541
|
> def wait_true(opts = {}, &block)
|
1489
1542
|
|
@@ -1503,7 +1556,7 @@ __Parameters:__
|
|
1503
1556
|
|
1504
1557
|
--
|
1505
1558
|
|
1506
|
-
##### [wait](https://github.com/appium/ruby_lib/blob/
|
1559
|
+
##### [wait](https://github.com/appium/ruby_lib/blob/11cdf97bf9c4a90ac4e7c7dcf518cfb3fcd99ef2/lib/appium_lib/common/wait.rb#L87)
|
1507
1560
|
|
1508
1561
|
> def wait(opts = {}, &block)
|
1509
1562
|
|
@@ -1521,7 +1574,7 @@ __Parameters:__
|
|
1521
1574
|
|
1522
1575
|
--
|
1523
1576
|
|
1524
|
-
##### [ignore](https://github.com/appium/ruby_lib/blob/
|
1577
|
+
##### [ignore](https://github.com/appium/ruby_lib/blob/11cdf97bf9c4a90ac4e7c7dcf518cfb3fcd99ef2/lib/appium_lib/common/helper.rb#L24)
|
1525
1578
|
|
1526
1579
|
> def ignore
|
1527
1580
|
|
@@ -1529,7 +1582,7 @@ Return yield and ignore any exceptions.
|
|
1529
1582
|
|
1530
1583
|
--
|
1531
1584
|
|
1532
|
-
##### [back](https://github.com/appium/ruby_lib/blob/
|
1585
|
+
##### [back](https://github.com/appium/ruby_lib/blob/11cdf97bf9c4a90ac4e7c7dcf518cfb3fcd99ef2/lib/appium_lib/common/helper.rb#L31)
|
1533
1586
|
|
1534
1587
|
> def back
|
1535
1588
|
|
@@ -1541,7 +1594,7 @@ __Returns:__
|
|
1541
1594
|
|
1542
1595
|
--
|
1543
1596
|
|
1544
|
-
##### [session_id](https://github.com/appium/ruby_lib/blob/
|
1597
|
+
##### [session_id](https://github.com/appium/ruby_lib/blob/11cdf97bf9c4a90ac4e7c7dcf518cfb3fcd99ef2/lib/appium_lib/common/helper.rb#L36)
|
1545
1598
|
|
1546
1599
|
> def session_id
|
1547
1600
|
|
@@ -1549,7 +1602,7 @@ For Sauce Labs reporting. Returns the current session id.
|
|
1549
1602
|
|
1550
1603
|
--
|
1551
1604
|
|
1552
|
-
##### [xpath](https://github.com/appium/ruby_lib/blob/
|
1605
|
+
##### [xpath](https://github.com/appium/ruby_lib/blob/11cdf97bf9c4a90ac4e7c7dcf518cfb3fcd99ef2/lib/appium_lib/common/helper.rb#L44)
|
1553
1606
|
|
1554
1607
|
> def xpath(xpath_str)
|
1555
1608
|
|
@@ -1565,7 +1618,7 @@ __Returns:__
|
|
1565
1618
|
|
1566
1619
|
--
|
1567
1620
|
|
1568
|
-
##### [xpaths](https://github.com/appium/ruby_lib/blob/
|
1621
|
+
##### [xpaths](https://github.com/appium/ruby_lib/blob/11cdf97bf9c4a90ac4e7c7dcf518cfb3fcd99ef2/lib/appium_lib/common/helper.rb#L52)
|
1569
1622
|
|
1570
1623
|
> def xpaths(xpath_str)
|
1571
1624
|
|
@@ -1581,7 +1634,7 @@ __Returns:__
|
|
1581
1634
|
|
1582
1635
|
--
|
1583
1636
|
|
1584
|
-
##### [_print_source](https://github.com/appium/ruby_lib/blob/
|
1637
|
+
##### [_print_source](https://github.com/appium/ruby_lib/blob/11cdf97bf9c4a90ac4e7c7dcf518cfb3fcd99ef2/lib/appium_lib/common/helper.rb#L56)
|
1585
1638
|
|
1586
1639
|
> def _print_source(source)
|
1587
1640
|
|
@@ -1589,7 +1642,7 @@ __Returns:__
|
|
1589
1642
|
|
1590
1643
|
--
|
1591
1644
|
|
1592
|
-
##### [result](https://github.com/appium/ruby_lib/blob/
|
1645
|
+
##### [result](https://github.com/appium/ruby_lib/blob/11cdf97bf9c4a90ac4e7c7dcf518cfb3fcd99ef2/lib/appium_lib/common/helper.rb#L69)
|
1593
1646
|
|
1594
1647
|
> def result
|
1595
1648
|
|
@@ -1597,7 +1650,7 @@ Returns the value of attribute result
|
|
1597
1650
|
|
1598
1651
|
--
|
1599
1652
|
|
1600
|
-
##### [initialize](https://github.com/appium/ruby_lib/blob/
|
1653
|
+
##### [initialize](https://github.com/appium/ruby_lib/blob/11cdf97bf9c4a90ac4e7c7dcf518cfb3fcd99ef2/lib/appium_lib/common/helper.rb#L71)
|
1601
1654
|
|
1602
1655
|
> def initialize
|
1603
1656
|
|
@@ -1609,7 +1662,7 @@ __Returns:__
|
|
1609
1662
|
|
1610
1663
|
--
|
1611
1664
|
|
1612
|
-
##### [reset](https://github.com/appium/ruby_lib/blob/
|
1665
|
+
##### [reset](https://github.com/appium/ruby_lib/blob/11cdf97bf9c4a90ac4e7c7dcf518cfb3fcd99ef2/lib/appium_lib/common/helper.rb#L75)
|
1613
1666
|
|
1614
1667
|
> def reset
|
1615
1668
|
|
@@ -1617,7 +1670,7 @@ __Returns:__
|
|
1617
1670
|
|
1618
1671
|
--
|
1619
1672
|
|
1620
|
-
##### [start_element](https://github.com/appium/ruby_lib/blob/
|
1673
|
+
##### [start_element](https://github.com/appium/ruby_lib/blob/11cdf97bf9c4a90ac4e7c7dcf518cfb3fcd99ef2/lib/appium_lib/common/helper.rb#L80)
|
1621
1674
|
|
1622
1675
|
> def start_element(name, attrs = [])
|
1623
1676
|
|
@@ -1625,7 +1678,7 @@ http://nokogiri.org/Nokogiri/XML/SAX/Document.html
|
|
1625
1678
|
|
1626
1679
|
--
|
1627
1680
|
|
1628
|
-
##### [formatted_result](https://github.com/appium/ruby_lib/blob/
|
1681
|
+
##### [formatted_result](https://github.com/appium/ruby_lib/blob/11cdf97bf9c4a90ac4e7c7dcf518cfb3fcd99ef2/lib/appium_lib/common/helper.rb#L86)
|
1629
1682
|
|
1630
1683
|
> def formatted_result
|
1631
1684
|
|
@@ -1633,7 +1686,7 @@ http://nokogiri.org/Nokogiri/XML/SAX/Document.html
|
|
1633
1686
|
|
1634
1687
|
--
|
1635
1688
|
|
1636
|
-
##### [get_page_class](https://github.com/appium/ruby_lib/blob/
|
1689
|
+
##### [get_page_class](https://github.com/appium/ruby_lib/blob/11cdf97bf9c4a90ac4e7c7dcf518cfb3fcd99ef2/lib/appium_lib/common/helper.rb#L97)
|
1637
1690
|
|
1638
1691
|
> def get_page_class
|
1639
1692
|
|
@@ -1641,7 +1694,7 @@ Returns a string of class counts of visible elements.
|
|
1641
1694
|
|
1642
1695
|
--
|
1643
1696
|
|
1644
|
-
##### [page_class](https://github.com/appium/ruby_lib/blob/
|
1697
|
+
##### [page_class](https://github.com/appium/ruby_lib/blob/11cdf97bf9c4a90ac4e7c7dcf518cfb3fcd99ef2/lib/appium_lib/common/helper.rb#L108)
|
1645
1698
|
|
1646
1699
|
> def page_class
|
1647
1700
|
|
@@ -1650,7 +1703,7 @@ Useful for appium_console.
|
|
1650
1703
|
|
1651
1704
|
--
|
1652
1705
|
|
1653
|
-
##### [px_to_window_rel](https://github.com/appium/ruby_lib/blob/
|
1706
|
+
##### [px_to_window_rel](https://github.com/appium/ruby_lib/blob/11cdf97bf9c4a90ac4e7c7dcf518cfb3fcd99ef2/lib/appium_lib/common/helper.rb#L118)
|
1654
1707
|
|
1655
1708
|
> def px_to_window_rel(opts = {})
|
1656
1709
|
|
@@ -1662,7 +1715,7 @@ px_to_window_rel x: 50, y: 150
|
|
1662
1715
|
|
1663
1716
|
--
|
1664
1717
|
|
1665
|
-
##### [xml_keys](https://github.com/appium/ruby_lib/blob/
|
1718
|
+
##### [xml_keys](https://github.com/appium/ruby_lib/blob/11cdf97bf9c4a90ac4e7c7dcf518cfb3fcd99ef2/lib/appium_lib/common/helper.rb#L137)
|
1666
1719
|
|
1667
1720
|
> def xml_keys(target)
|
1668
1721
|
|
@@ -1678,7 +1731,7 @@ __Returns:__
|
|
1678
1731
|
|
1679
1732
|
--
|
1680
1733
|
|
1681
|
-
##### [xml_values](https://github.com/appium/ruby_lib/blob/
|
1734
|
+
##### [xml_values](https://github.com/appium/ruby_lib/blob/11cdf97bf9c4a90ac4e7c7dcf518cfb3fcd99ef2/lib/appium_lib/common/helper.rb#L145)
|
1682
1735
|
|
1683
1736
|
> def xml_values(target)
|
1684
1737
|
|
@@ -1694,7 +1747,7 @@ __Returns:__
|
|
1694
1747
|
|
1695
1748
|
--
|
1696
1749
|
|
1697
|
-
##### [resolve_id](https://github.com/appium/ruby_lib/blob/
|
1750
|
+
##### [resolve_id](https://github.com/appium/ruby_lib/blob/11cdf97bf9c4a90ac4e7c7dcf518cfb3fcd99ef2/lib/appium_lib/common/helper.rb#L153)
|
1698
1751
|
|
1699
1752
|
> def resolve_id(id)
|
1700
1753
|
|
@@ -1710,7 +1763,7 @@ __Returns:__
|
|
1710
1763
|
|
1711
1764
|
--
|
1712
1765
|
|
1713
|
-
##### [filter](https://github.com/appium/ruby_lib/blob/
|
1766
|
+
##### [filter](https://github.com/appium/ruby_lib/blob/11cdf97bf9c4a90ac4e7c7dcf518cfb3fcd99ef2/lib/appium_lib/common/helper.rb#L159)
|
1714
1767
|
|
1715
1768
|
> def filter
|
1716
1769
|
|
@@ -1718,7 +1771,7 @@ Returns the value of attribute filter
|
|
1718
1771
|
|
1719
1772
|
--
|
1720
1773
|
|
1721
|
-
##### [filter=](https://github.com/appium/ruby_lib/blob/
|
1774
|
+
##### [filter=](https://github.com/appium/ruby_lib/blob/11cdf97bf9c4a90ac4e7c7dcf518cfb3fcd99ef2/lib/appium_lib/common/helper.rb#L162)
|
1722
1775
|
|
1723
1776
|
> def filter=(value)
|
1724
1777
|
|
@@ -1726,7 +1779,7 @@ convert to string to support symbols
|
|
1726
1779
|
|
1727
1780
|
--
|
1728
1781
|
|
1729
|
-
##### [initialize](https://github.com/appium/ruby_lib/blob/
|
1782
|
+
##### [initialize](https://github.com/appium/ruby_lib/blob/11cdf97bf9c4a90ac4e7c7dcf518cfb3fcd99ef2/lib/appium_lib/common/helper.rb#L168)
|
1730
1783
|
|
1731
1784
|
> def initialize
|
1732
1785
|
|
@@ -1738,7 +1791,7 @@ __Returns:__
|
|
1738
1791
|
|
1739
1792
|
--
|
1740
1793
|
|
1741
|
-
##### [reset](https://github.com/appium/ruby_lib/blob/
|
1794
|
+
##### [reset](https://github.com/appium/ruby_lib/blob/11cdf97bf9c4a90ac4e7c7dcf518cfb3fcd99ef2/lib/appium_lib/common/helper.rb#L173)
|
1742
1795
|
|
1743
1796
|
> def reset
|
1744
1797
|
|
@@ -1746,7 +1799,7 @@ __Returns:__
|
|
1746
1799
|
|
1747
1800
|
--
|
1748
1801
|
|
1749
|
-
##### [result](https://github.com/appium/ruby_lib/blob/
|
1802
|
+
##### [result](https://github.com/appium/ruby_lib/blob/11cdf97bf9c4a90ac4e7c7dcf518cfb3fcd99ef2/lib/appium_lib/common/helper.rb#L179)
|
1750
1803
|
|
1751
1804
|
> def result
|
1752
1805
|
|
@@ -1754,7 +1807,7 @@ __Returns:__
|
|
1754
1807
|
|
1755
1808
|
--
|
1756
1809
|
|
1757
|
-
##### [start_element](https://github.com/appium/ruby_lib/blob/
|
1810
|
+
##### [start_element](https://github.com/appium/ruby_lib/blob/11cdf97bf9c4a90ac4e7c7dcf518cfb3fcd99ef2/lib/appium_lib/common/helper.rb#L195)
|
1758
1811
|
|
1759
1812
|
> def start_element(name, attrs = [])
|
1760
1813
|
|
@@ -1762,7 +1815,7 @@ __Returns:__
|
|
1762
1815
|
|
1763
1816
|
--
|
1764
1817
|
|
1765
|
-
##### [end_element](https://github.com/appium/ruby_lib/blob/
|
1818
|
+
##### [end_element](https://github.com/appium/ruby_lib/blob/11cdf97bf9c4a90ac4e7c7dcf518cfb3fcd99ef2/lib/appium_lib/common/helper.rb#L204)
|
1766
1819
|
|
1767
1820
|
> def end_element(name)
|
1768
1821
|
|
@@ -1770,7 +1823,7 @@ __Returns:__
|
|
1770
1823
|
|
1771
1824
|
--
|
1772
1825
|
|
1773
|
-
##### [characters](https://github.com/appium/ruby_lib/blob/
|
1826
|
+
##### [characters](https://github.com/appium/ruby_lib/blob/11cdf97bf9c4a90ac4e7c7dcf518cfb3fcd99ef2/lib/appium_lib/common/helper.rb#L210)
|
1774
1827
|
|
1775
1828
|
> def characters(chars)
|
1776
1829
|
|
@@ -1778,7 +1831,7 @@ __Returns:__
|
|
1778
1831
|
|
1779
1832
|
--
|
1780
1833
|
|
1781
|
-
##### [_no_such_element](https://github.com/appium/ruby_lib/blob/
|
1834
|
+
##### [_no_such_element](https://github.com/appium/ruby_lib/blob/11cdf97bf9c4a90ac4e7c7dcf518cfb3fcd99ef2/lib/appium_lib/common/helper.rb#L217)
|
1782
1835
|
|
1783
1836
|
> def _no_such_element
|
1784
1837
|
|
@@ -1786,7 +1839,7 @@ __Returns:__
|
|
1786
1839
|
|
1787
1840
|
--
|
1788
1841
|
|
1789
|
-
##### [COMMAND_NO_ARG](https://github.com/appium/ruby_lib/blob/
|
1842
|
+
##### [COMMAND_NO_ARG](https://github.com/appium/ruby_lib/blob/11cdf97bf9c4a90ac4e7c7dcf518cfb3fcd99ef2/lib/appium_lib/common/command.rb#L4)
|
1790
1843
|
|
1791
1844
|
> COMMAND_NO_ARG = {
|
1792
1845
|
|
@@ -1794,7 +1847,7 @@ __Returns:__
|
|
1794
1847
|
|
1795
1848
|
--
|
1796
1849
|
|
1797
|
-
##### [COMMAND](https://github.com/appium/ruby_lib/blob/
|
1850
|
+
##### [COMMAND](https://github.com/appium/ruby_lib/blob/11cdf97bf9c4a90ac4e7c7dcf518cfb3fcd99ef2/lib/appium_lib/common/command.rb#L27)
|
1798
1851
|
|
1799
1852
|
> COMMAND = {
|
1800
1853
|
|
@@ -1802,7 +1855,7 @@ __Returns:__
|
|
1802
1855
|
|
1803
1856
|
--
|
1804
1857
|
|
1805
|
-
##### [window_size](https://github.com/appium/ruby_lib/blob/
|
1858
|
+
##### [window_size](https://github.com/appium/ruby_lib/blob/11cdf97bf9c4a90ac4e7c7dcf518cfb3fcd99ef2/lib/appium_lib/common/element/window.rb#L5)
|
1806
1859
|
|
1807
1860
|
> def window_size
|
1808
1861
|
|
@@ -1810,7 +1863,7 @@ Get the window's size
|
|
1810
1863
|
|
1811
1864
|
--
|
1812
1865
|
|
1813
|
-
##### [FINDERS](https://github.com/appium/ruby_lib/blob/
|
1866
|
+
##### [FINDERS](https://github.com/appium/ruby_lib/blob/11cdf97bf9c4a90ac4e7c7dcf518cfb3fcd99ef2/lib/appium_lib/common/search_context.rb#L5)
|
1814
1867
|
|
1815
1868
|
> FINDERS = {
|
1816
1869
|
|
@@ -1818,7 +1871,7 @@ rubocop:disable Style/MutableConstant
|
|
1818
1871
|
|
1819
1872
|
--
|
1820
1873
|
|
1821
|
-
##### [result](https://github.com/appium/ruby_lib/blob/
|
1874
|
+
##### [result](https://github.com/appium/ruby_lib/blob/11cdf97bf9c4a90ac4e7c7dcf518cfb3fcd99ef2/lib/appium_lib/android/helper.rb#L6) android
|
1822
1875
|
|
1823
1876
|
> def result
|
1824
1877
|
|
@@ -1826,7 +1879,7 @@ Returns the value of attribute result
|
|
1826
1879
|
|
1827
1880
|
--
|
1828
1881
|
|
1829
|
-
##### [keys](https://github.com/appium/ruby_lib/blob/
|
1882
|
+
##### [keys](https://github.com/appium/ruby_lib/blob/11cdf97bf9c4a90ac4e7c7dcf518cfb3fcd99ef2/lib/appium_lib/android/helper.rb#L6) android
|
1830
1883
|
|
1831
1884
|
> def keys
|
1832
1885
|
|
@@ -1834,7 +1887,7 @@ Returns the value of attribute keys
|
|
1834
1887
|
|
1835
1888
|
--
|
1836
1889
|
|
1837
|
-
##### [instance](https://github.com/appium/ruby_lib/blob/
|
1890
|
+
##### [instance](https://github.com/appium/ruby_lib/blob/11cdf97bf9c4a90ac4e7c7dcf518cfb3fcd99ef2/lib/appium_lib/android/helper.rb#L6) android
|
1838
1891
|
|
1839
1892
|
> def instance
|
1840
1893
|
|
@@ -1842,7 +1895,7 @@ Returns the value of attribute instance
|
|
1842
1895
|
|
1843
1896
|
--
|
1844
1897
|
|
1845
|
-
##### [filter](https://github.com/appium/ruby_lib/blob/
|
1898
|
+
##### [filter](https://github.com/appium/ruby_lib/blob/11cdf97bf9c4a90ac4e7c7dcf518cfb3fcd99ef2/lib/appium_lib/android/helper.rb#L6) android
|
1846
1899
|
|
1847
1900
|
> def filter
|
1848
1901
|
|
@@ -1850,7 +1903,7 @@ Returns the value of attribute filter
|
|
1850
1903
|
|
1851
1904
|
--
|
1852
1905
|
|
1853
|
-
##### [filter=](https://github.com/appium/ruby_lib/blob/
|
1906
|
+
##### [filter=](https://github.com/appium/ruby_lib/blob/11cdf97bf9c4a90ac4e7c7dcf518cfb3fcd99ef2/lib/appium_lib/android/helper.rb#L9) android
|
1854
1907
|
|
1855
1908
|
> def filter=(value)
|
1856
1909
|
|
@@ -1858,7 +1911,7 @@ convert to string to support symbols
|
|
1858
1911
|
|
1859
1912
|
--
|
1860
1913
|
|
1861
|
-
##### [initialize](https://github.com/appium/ruby_lib/blob/
|
1914
|
+
##### [initialize](https://github.com/appium/ruby_lib/blob/11cdf97bf9c4a90ac4e7c7dcf518cfb3fcd99ef2/lib/appium_lib/android/helper.rb#L15) android
|
1862
1915
|
|
1863
1916
|
> def initialize
|
1864
1917
|
|
@@ -1870,7 +1923,7 @@ __Returns:__
|
|
1870
1923
|
|
1871
1924
|
--
|
1872
1925
|
|
1873
|
-
##### [reset](https://github.com/appium/ruby_lib/blob/
|
1926
|
+
##### [reset](https://github.com/appium/ruby_lib/blob/11cdf97bf9c4a90ac4e7c7dcf518cfb3fcd99ef2/lib/appium_lib/android/helper.rb#L21) android
|
1874
1927
|
|
1875
1928
|
> def reset
|
1876
1929
|
|
@@ -1878,7 +1931,7 @@ __Returns:__
|
|
1878
1931
|
|
1879
1932
|
--
|
1880
1933
|
|
1881
|
-
##### [start_element](https://github.com/appium/ruby_lib/blob/
|
1934
|
+
##### [start_element](https://github.com/appium/ruby_lib/blob/11cdf97bf9c4a90ac4e7c7dcf518cfb3fcd99ef2/lib/appium_lib/android/helper.rb#L28) android
|
1882
1935
|
|
1883
1936
|
> def start_element(name, attrs = [])
|
1884
1937
|
|
@@ -1886,7 +1939,7 @@ http://nokogiri.org/Nokogiri/XML/SAX/Document.html
|
|
1886
1939
|
|
1887
1940
|
--
|
1888
1941
|
|
1889
|
-
##### [_fix_android_native_source](https://github.com/appium/ruby_lib/blob/
|
1942
|
+
##### [_fix_android_native_source](https://github.com/appium/ruby_lib/blob/11cdf97bf9c4a90ac4e7c7dcf518cfb3fcd99ef2/lib/appium_lib/android/helper.rb#L88) android
|
1890
1943
|
|
1891
1944
|
> def _fix_android_native_source(source)
|
1892
1945
|
|
@@ -1896,7 +1949,7 @@ https://code.google.com/p/android/issues/detail?id=74143
|
|
1896
1949
|
|
1897
1950
|
--
|
1898
1951
|
|
1899
|
-
##### [source](https://github.com/appium/ruby_lib/blob/
|
1952
|
+
##### [source](https://github.com/appium/ruby_lib/blob/11cdf97bf9c4a90ac4e7c7dcf518cfb3fcd99ef2/lib/appium_lib/android/helper.rb#L116) android
|
1900
1953
|
|
1901
1954
|
> def source
|
1902
1955
|
|
@@ -1908,7 +1961,7 @@ __Returns:__
|
|
1908
1961
|
|
1909
1962
|
--
|
1910
1963
|
|
1911
|
-
##### [get_android_inspect](https://github.com/appium/ruby_lib/blob/
|
1964
|
+
##### [get_android_inspect](https://github.com/appium/ruby_lib/blob/11cdf97bf9c4a90ac4e7c7dcf518cfb3fcd99ef2/lib/appium_lib/android/helper.rb#L126) android
|
1912
1965
|
|
1913
1966
|
> def get_android_inspect(class_name = false)
|
1914
1967
|
|
@@ -1927,7 +1980,7 @@ __Returns:__
|
|
1927
1980
|
|
1928
1981
|
--
|
1929
1982
|
|
1930
|
-
##### [page](https://github.com/appium/ruby_lib/blob/
|
1983
|
+
##### [page](https://github.com/appium/ruby_lib/blob/11cdf97bf9c4a90ac4e7c7dcf518cfb3fcd99ef2/lib/appium_lib/android/helper.rb#L152) android
|
1931
1984
|
|
1932
1985
|
> def page(opts = {})
|
1933
1986
|
|
@@ -1946,7 +1999,7 @@ __Returns:__
|
|
1946
1999
|
|
1947
2000
|
--
|
1948
2001
|
|
1949
|
-
##### [current_app](https://github.com/appium/ruby_lib/blob/
|
2002
|
+
##### [current_app](https://github.com/appium/ruby_lib/blob/11cdf97bf9c4a90ac4e7c7dcf518cfb3fcd99ef2/lib/appium_lib/android/helper.rb#L164) android
|
1950
2003
|
|
1951
2004
|
> def current_app
|
1952
2005
|
|
@@ -1956,7 +2009,7 @@ example line:
|
|
1956
2009
|
|
1957
2010
|
--
|
1958
2011
|
|
1959
|
-
##### [id](https://github.com/appium/ruby_lib/blob/
|
2012
|
+
##### [id](https://github.com/appium/ruby_lib/blob/11cdf97bf9c4a90ac4e7c7dcf518cfb3fcd99ef2/lib/appium_lib/android/helper.rb#L188) android
|
1960
2013
|
|
1961
2014
|
> def id(id)
|
1962
2015
|
|
@@ -1972,7 +2025,7 @@ __Returns:__
|
|
1972
2025
|
|
1973
2026
|
--
|
1974
2027
|
|
1975
|
-
##### [ids](https://github.com/appium/ruby_lib/blob/
|
2028
|
+
##### [ids](https://github.com/appium/ruby_lib/blob/11cdf97bf9c4a90ac4e7c7dcf518cfb3fcd99ef2/lib/appium_lib/android/helper.rb#L196) android
|
1976
2029
|
|
1977
2030
|
> def ids(id)
|
1978
2031
|
|
@@ -1988,7 +2041,7 @@ __Returns:__
|
|
1988
2041
|
|
1989
2042
|
--
|
1990
2043
|
|
1991
|
-
##### [ele_index](https://github.com/appium/ruby_lib/blob/
|
2044
|
+
##### [ele_index](https://github.com/appium/ruby_lib/blob/11cdf97bf9c4a90ac4e7c7dcf518cfb3fcd99ef2/lib/appium_lib/android/helper.rb#L205) android
|
1992
2045
|
|
1993
2046
|
> def ele_index(class_name, index)
|
1994
2047
|
|
@@ -2006,7 +2059,7 @@ __Returns:__
|
|
2006
2059
|
|
2007
2060
|
--
|
2008
2061
|
|
2009
|
-
##### [first_ele](https://github.com/appium/ruby_lib/blob/
|
2062
|
+
##### [first_ele](https://github.com/appium/ruby_lib/blob/11cdf97bf9c4a90ac4e7c7dcf518cfb3fcd99ef2/lib/appium_lib/android/helper.rb#L223) android
|
2010
2063
|
|
2011
2064
|
> def first_ele(class_name)
|
2012
2065
|
|
@@ -2022,7 +2075,7 @@ __Returns:__
|
|
2022
2075
|
|
2023
2076
|
--
|
2024
2077
|
|
2025
|
-
##### [last_ele](https://github.com/appium/ruby_lib/blob/
|
2078
|
+
##### [last_ele](https://github.com/appium/ruby_lib/blob/11cdf97bf9c4a90ac4e7c7dcf518cfb3fcd99ef2/lib/appium_lib/android/helper.rb#L230) android
|
2026
2079
|
|
2027
2080
|
> def last_ele(class_name)
|
2028
2081
|
|
@@ -2038,7 +2091,7 @@ __Returns:__
|
|
2038
2091
|
|
2039
2092
|
--
|
2040
2093
|
|
2041
|
-
##### [tag](https://github.com/appium/ruby_lib/blob/
|
2094
|
+
##### [tag](https://github.com/appium/ruby_lib/blob/11cdf97bf9c4a90ac4e7c7dcf518cfb3fcd99ef2/lib/appium_lib/android/helper.rb#L238) android
|
2042
2095
|
|
2043
2096
|
> def tag(class_name)
|
2044
2097
|
|
@@ -2054,7 +2107,7 @@ __Returns:__
|
|
2054
2107
|
|
2055
2108
|
--
|
2056
2109
|
|
2057
|
-
##### [tags](https://github.com/appium/ruby_lib/blob/
|
2110
|
+
##### [tags](https://github.com/appium/ruby_lib/blob/11cdf97bf9c4a90ac4e7c7dcf518cfb3fcd99ef2/lib/appium_lib/android/helper.rb#L246) android
|
2058
2111
|
|
2059
2112
|
> def tags(class_name)
|
2060
2113
|
|
@@ -2070,7 +2123,7 @@ __Returns:__
|
|
2070
2123
|
|
2071
2124
|
--
|
2072
2125
|
|
2073
|
-
##### [string_visible_contains](https://github.com/appium/ruby_lib/blob/
|
2126
|
+
##### [string_visible_contains](https://github.com/appium/ruby_lib/blob/11cdf97bf9c4a90ac4e7c7dcf518cfb3fcd99ef2/lib/appium_lib/android/helper.rb#L288) android
|
2074
2127
|
|
2075
2128
|
> def string_visible_contains(class_name, value)
|
2076
2129
|
|
@@ -2090,7 +2143,7 @@ __Returns:__
|
|
2090
2143
|
|
2091
2144
|
--
|
2092
2145
|
|
2093
|
-
##### [complex_find_contains](https://github.com/appium/ruby_lib/blob/
|
2146
|
+
##### [complex_find_contains](https://github.com/appium/ruby_lib/blob/11cdf97bf9c4a90ac4e7c7dcf518cfb3fcd99ef2/lib/appium_lib/android/helper.rb#L308) android
|
2094
2147
|
|
2095
2148
|
> def complex_find_contains(element, value)
|
2096
2149
|
|
@@ -2108,7 +2161,7 @@ __Returns:__
|
|
2108
2161
|
|
2109
2162
|
--
|
2110
2163
|
|
2111
|
-
##### [complex_finds_contains](https://github.com/appium/ruby_lib/blob/
|
2164
|
+
##### [complex_finds_contains](https://github.com/appium/ruby_lib/blob/11cdf97bf9c4a90ac4e7c7dcf518cfb3fcd99ef2/lib/appium_lib/android/helper.rb#L316) android
|
2112
2165
|
|
2113
2166
|
> def complex_finds_contains(element, value)
|
2114
2167
|
|
@@ -2126,7 +2179,7 @@ __Returns:__
|
|
2126
2179
|
|
2127
2180
|
--
|
2128
2181
|
|
2129
|
-
##### [complex_find_exact](https://github.com/appium/ruby_lib/blob/
|
2182
|
+
##### [complex_find_exact](https://github.com/appium/ruby_lib/blob/11cdf97bf9c4a90ac4e7c7dcf518cfb3fcd99ef2/lib/appium_lib/android/helper.rb#L345) android
|
2130
2183
|
|
2131
2184
|
> def complex_find_exact(class_name, value)
|
2132
2185
|
|
@@ -2144,7 +2197,7 @@ __Returns:__
|
|
2144
2197
|
|
2145
2198
|
--
|
2146
2199
|
|
2147
|
-
##### [complex_finds_exact](https://github.com/appium/ruby_lib/blob/
|
2200
|
+
##### [complex_finds_exact](https://github.com/appium/ruby_lib/blob/11cdf97bf9c4a90ac4e7c7dcf518cfb3fcd99ef2/lib/appium_lib/android/helper.rb#L353) android
|
2148
2201
|
|
2149
2202
|
> def complex_finds_exact(class_name, value)
|
2150
2203
|
|
@@ -2162,7 +2215,7 @@ __Returns:__
|
|
2162
2215
|
|
2163
2216
|
--
|
2164
2217
|
|
2165
|
-
##### [get_source](https://github.com/appium/ruby_lib/blob/
|
2218
|
+
##### [get_source](https://github.com/appium/ruby_lib/blob/11cdf97bf9c4a90ac4e7c7dcf518cfb3fcd99ef2/lib/appium_lib/android/helper.rb#L361) android
|
2166
2219
|
|
2167
2220
|
> def get_source
|
2168
2221
|
|
@@ -2176,7 +2229,7 @@ __Returns:__
|
|
2176
2229
|
|
2177
2230
|
--
|
2178
2231
|
|
2179
|
-
##### [_nodeset_to_uiselector](https://github.com/appium/ruby_lib/blob/
|
2232
|
+
##### [_nodeset_to_uiselector](https://github.com/appium/ruby_lib/blob/11cdf97bf9c4a90ac4e7c7dcf518cfb3fcd99ef2/lib/appium_lib/android/client_xpath.rb#L5) android
|
2180
2233
|
|
2181
2234
|
> def _nodeset_to_uiselector(opts = {})
|
2182
2235
|
|
@@ -2184,7 +2237,7 @@ __Returns:__
|
|
2184
2237
|
|
2185
2238
|
--
|
2186
2239
|
|
2187
|
-
##### [_client_xpath](https://github.com/appium/ruby_lib/blob/
|
2240
|
+
##### [_client_xpath](https://github.com/appium/ruby_lib/blob/11cdf97bf9c4a90ac4e7c7dcf518cfb3fcd99ef2/lib/appium_lib/android/client_xpath.rb#L20) android
|
2188
2241
|
|
2189
2242
|
> def _client_xpath(opts = {})
|
2190
2243
|
|
@@ -2192,7 +2245,7 @@ __Returns:__
|
|
2192
2245
|
|
2193
2246
|
--
|
2194
2247
|
|
2195
|
-
##### [client_xpath](https://github.com/appium/ruby_lib/blob/
|
2248
|
+
##### [client_xpath](https://github.com/appium/ruby_lib/blob/11cdf97bf9c4a90ac4e7c7dcf518cfb3fcd99ef2/lib/appium_lib/android/client_xpath.rb#L36) android
|
2196
2249
|
|
2197
2250
|
> def client_xpath(xpath)
|
2198
2251
|
|
@@ -2200,7 +2253,7 @@ __Returns:__
|
|
2200
2253
|
|
2201
2254
|
--
|
2202
2255
|
|
2203
|
-
##### [client_xpaths](https://github.com/appium/ruby_lib/blob/
|
2256
|
+
##### [client_xpaths](https://github.com/appium/ruby_lib/blob/11cdf97bf9c4a90ac4e7c7dcf518cfb3fcd99ef2/lib/appium_lib/android/client_xpath.rb#L40) android
|
2204
2257
|
|
2205
2258
|
> def client_xpaths(xpath)
|
2206
2259
|
|
@@ -2208,7 +2261,7 @@ __Returns:__
|
|
2208
2261
|
|
2209
2262
|
--
|
2210
2263
|
|
2211
|
-
##### [TextView](https://github.com/appium/ruby_lib/blob/
|
2264
|
+
##### [TextView](https://github.com/appium/ruby_lib/blob/11cdf97bf9c4a90ac4e7c7dcf518cfb3fcd99ef2/lib/appium_lib/android/element/text.rb#L4) android
|
2212
2265
|
|
2213
2266
|
> TextView = 'android.widget.TextView'.freeze
|
2214
2267
|
|
@@ -2216,7 +2269,7 @@ __Returns:__
|
|
2216
2269
|
|
2217
2270
|
--
|
2218
2271
|
|
2219
|
-
##### [text](https://github.com/appium/ruby_lib/blob/
|
2272
|
+
##### [text](https://github.com/appium/ruby_lib/blob/11cdf97bf9c4a90ac4e7c7dcf518cfb3fcd99ef2/lib/appium_lib/android/element/text.rb#L10) android
|
2220
2273
|
|
2221
2274
|
> def text(value)
|
2222
2275
|
|
@@ -2233,7 +2286,7 @@ __Returns:__
|
|
2233
2286
|
|
2234
2287
|
--
|
2235
2288
|
|
2236
|
-
##### [texts](https://github.com/appium/ruby_lib/blob/
|
2289
|
+
##### [texts](https://github.com/appium/ruby_lib/blob/11cdf97bf9c4a90ac4e7c7dcf518cfb3fcd99ef2/lib/appium_lib/android/element/text.rb#L19) android
|
2237
2290
|
|
2238
2291
|
> def texts(value = false)
|
2239
2292
|
|
@@ -2250,7 +2303,7 @@ __Returns:__
|
|
2250
2303
|
|
2251
2304
|
--
|
2252
2305
|
|
2253
|
-
##### [first_text](https://github.com/appium/ruby_lib/blob/
|
2306
|
+
##### [first_text](https://github.com/appium/ruby_lib/blob/11cdf97bf9c4a90ac4e7c7dcf518cfb3fcd99ef2/lib/appium_lib/android/element/text.rb#L26) android
|
2254
2307
|
|
2255
2308
|
> def first_text
|
2256
2309
|
|
@@ -2262,7 +2315,7 @@ __Returns:__
|
|
2262
2315
|
|
2263
2316
|
--
|
2264
2317
|
|
2265
|
-
##### [last_text](https://github.com/appium/ruby_lib/blob/
|
2318
|
+
##### [last_text](https://github.com/appium/ruby_lib/blob/11cdf97bf9c4a90ac4e7c7dcf518cfb3fcd99ef2/lib/appium_lib/android/element/text.rb#L32) android
|
2266
2319
|
|
2267
2320
|
> def last_text
|
2268
2321
|
|
@@ -2274,7 +2327,7 @@ __Returns:__
|
|
2274
2327
|
|
2275
2328
|
--
|
2276
2329
|
|
2277
|
-
##### [text_exact](https://github.com/appium/ruby_lib/blob/
|
2330
|
+
##### [text_exact](https://github.com/appium/ruby_lib/blob/11cdf97bf9c4a90ac4e7c7dcf518cfb3fcd99ef2/lib/appium_lib/android/element/text.rb#L39) android
|
2278
2331
|
|
2279
2332
|
> def text_exact(value)
|
2280
2333
|
|
@@ -2290,7 +2343,7 @@ __Returns:__
|
|
2290
2343
|
|
2291
2344
|
--
|
2292
2345
|
|
2293
|
-
##### [texts_exact](https://github.com/appium/ruby_lib/blob/
|
2346
|
+
##### [texts_exact](https://github.com/appium/ruby_lib/blob/11cdf97bf9c4a90ac4e7c7dcf518cfb3fcd99ef2/lib/appium_lib/android/element/text.rb#L46) android
|
2294
2347
|
|
2295
2348
|
> def texts_exact(value)
|
2296
2349
|
|
@@ -2306,7 +2359,7 @@ __Returns:__
|
|
2306
2359
|
|
2307
2360
|
--
|
2308
2361
|
|
2309
|
-
##### [alert_click](https://github.com/appium/ruby_lib/blob/
|
2362
|
+
##### [alert_click](https://github.com/appium/ruby_lib/blob/11cdf97bf9c4a90ac4e7c7dcf518cfb3fcd99ef2/lib/appium_lib/android/element/alert.rb#L6) android
|
2310
2363
|
|
2311
2364
|
> def alert_click(value)
|
2312
2365
|
|
@@ -2322,7 +2375,7 @@ __Returns:__
|
|
2322
2375
|
|
2323
2376
|
--
|
2324
2377
|
|
2325
|
-
##### [alert_accept](https://github.com/appium/ruby_lib/blob/
|
2378
|
+
##### [alert_accept](https://github.com/appium/ruby_lib/blob/11cdf97bf9c4a90ac4e7c7dcf518cfb3fcd99ef2/lib/appium_lib/android/element/alert.rb#L13) android
|
2326
2379
|
|
2327
2380
|
> def alert_accept
|
2328
2381
|
|
@@ -2335,7 +2388,7 @@ __Returns:__
|
|
2335
2388
|
|
2336
2389
|
--
|
2337
2390
|
|
2338
|
-
##### [alert_accept_text](https://github.com/appium/ruby_lib/blob/
|
2391
|
+
##### [alert_accept_text](https://github.com/appium/ruby_lib/blob/11cdf97bf9c4a90ac4e7c7dcf518cfb3fcd99ef2/lib/appium_lib/android/element/alert.rb#L20) android
|
2339
2392
|
|
2340
2393
|
> def alert_accept_text
|
2341
2394
|
|
@@ -2348,7 +2401,7 @@ __Returns:__
|
|
2348
2401
|
|
2349
2402
|
--
|
2350
2403
|
|
2351
|
-
##### [alert_dismiss](https://github.com/appium/ruby_lib/blob/
|
2404
|
+
##### [alert_dismiss](https://github.com/appium/ruby_lib/blob/11cdf97bf9c4a90ac4e7c7dcf518cfb3fcd99ef2/lib/appium_lib/android/element/alert.rb#L27) android
|
2352
2405
|
|
2353
2406
|
> def alert_dismiss
|
2354
2407
|
|
@@ -2361,7 +2414,7 @@ __Returns:__
|
|
2361
2414
|
|
2362
2415
|
--
|
2363
2416
|
|
2364
|
-
##### [alert_dismiss_text](https://github.com/appium/ruby_lib/blob/
|
2417
|
+
##### [alert_dismiss_text](https://github.com/appium/ruby_lib/blob/11cdf97bf9c4a90ac4e7c7dcf518cfb3fcd99ef2/lib/appium_lib/android/element/alert.rb#L34) android
|
2365
2418
|
|
2366
2419
|
> def alert_dismiss_text
|
2367
2420
|
|
@@ -2374,7 +2427,7 @@ __Returns:__
|
|
2374
2427
|
|
2375
2428
|
--
|
2376
2429
|
|
2377
|
-
##### [Button](https://github.com/appium/ruby_lib/blob/
|
2430
|
+
##### [Button](https://github.com/appium/ruby_lib/blob/11cdf97bf9c4a90ac4e7c7dcf518cfb3fcd99ef2/lib/appium_lib/android/element/button.rb#L4) android
|
2378
2431
|
|
2379
2432
|
> Button = 'android.widget.Button'.freeze
|
2380
2433
|
|
@@ -2382,7 +2435,7 @@ __Returns:__
|
|
2382
2435
|
|
2383
2436
|
--
|
2384
2437
|
|
2385
|
-
##### [ImageButton](https://github.com/appium/ruby_lib/blob/
|
2438
|
+
##### [ImageButton](https://github.com/appium/ruby_lib/blob/11cdf97bf9c4a90ac4e7c7dcf518cfb3fcd99ef2/lib/appium_lib/android/element/button.rb#L5) android
|
2386
2439
|
|
2387
2440
|
> ImageButton = 'android.widget.ImageButton'.freeze
|
2388
2441
|
|
@@ -2390,7 +2443,7 @@ __Returns:__
|
|
2390
2443
|
|
2391
2444
|
--
|
2392
2445
|
|
2393
|
-
##### [button](https://github.com/appium/ruby_lib/blob/
|
2446
|
+
##### [button](https://github.com/appium/ruby_lib/blob/11cdf97bf9c4a90ac4e7c7dcf518cfb3fcd99ef2/lib/appium_lib/android/element/button.rb#L43) android
|
2394
2447
|
|
2395
2448
|
> def button(value)
|
2396
2449
|
|
@@ -2407,7 +2460,7 @@ __Returns:__
|
|
2407
2460
|
|
2408
2461
|
--
|
2409
2462
|
|
2410
|
-
##### [buttons](https://github.com/appium/ruby_lib/blob/
|
2463
|
+
##### [buttons](https://github.com/appium/ruby_lib/blob/11cdf97bf9c4a90ac4e7c7dcf518cfb3fcd99ef2/lib/appium_lib/android/element/button.rb#L60) android
|
2411
2464
|
|
2412
2465
|
> def buttons(value = false)
|
2413
2466
|
|
@@ -2424,7 +2477,7 @@ __Returns:__
|
|
2424
2477
|
|
2425
2478
|
--
|
2426
2479
|
|
2427
|
-
##### [first_button](https://github.com/appium/ruby_lib/blob/
|
2480
|
+
##### [first_button](https://github.com/appium/ruby_lib/blob/11cdf97bf9c4a90ac4e7c7dcf518cfb3fcd99ef2/lib/appium_lib/android/element/button.rb#L67) android
|
2428
2481
|
|
2429
2482
|
> def first_button
|
2430
2483
|
|
@@ -2436,7 +2489,7 @@ __Returns:__
|
|
2436
2489
|
|
2437
2490
|
--
|
2438
2491
|
|
2439
|
-
##### [last_button](https://github.com/appium/ruby_lib/blob/
|
2492
|
+
##### [last_button](https://github.com/appium/ruby_lib/blob/11cdf97bf9c4a90ac4e7c7dcf518cfb3fcd99ef2/lib/appium_lib/android/element/button.rb#L73) android
|
2440
2493
|
|
2441
2494
|
> def last_button
|
2442
2495
|
|
@@ -2448,7 +2501,7 @@ __Returns:__
|
|
2448
2501
|
|
2449
2502
|
--
|
2450
2503
|
|
2451
|
-
##### [button_exact](https://github.com/appium/ruby_lib/blob/
|
2504
|
+
##### [button_exact](https://github.com/appium/ruby_lib/blob/11cdf97bf9c4a90ac4e7c7dcf518cfb3fcd99ef2/lib/appium_lib/android/element/button.rb#L89) android
|
2452
2505
|
|
2453
2506
|
> def button_exact(value)
|
2454
2507
|
|
@@ -2464,7 +2517,7 @@ __Returns:__
|
|
2464
2517
|
|
2465
2518
|
--
|
2466
2519
|
|
2467
|
-
##### [buttons_exact](https://github.com/appium/ruby_lib/blob/
|
2520
|
+
##### [buttons_exact](https://github.com/appium/ruby_lib/blob/11cdf97bf9c4a90ac4e7c7dcf518cfb3fcd99ef2/lib/appium_lib/android/element/button.rb#L96) android
|
2468
2521
|
|
2469
2522
|
> def buttons_exact(value)
|
2470
2523
|
|
@@ -2480,7 +2533,7 @@ __Returns:__
|
|
2480
2533
|
|
2481
2534
|
--
|
2482
2535
|
|
2483
|
-
##### [uiautomator_find](https://github.com/appium/ruby_lib/blob/
|
2536
|
+
##### [uiautomator_find](https://github.com/appium/ruby_lib/blob/11cdf97bf9c4a90ac4e7c7dcf518cfb3fcd99ef2/lib/appium_lib/android/mobile_methods.rb#L10) android
|
2484
2537
|
|
2485
2538
|
> def uiautomator_find
|
2486
2539
|
|
@@ -2492,7 +2545,7 @@ find_element/s can be used with a [UISelector](http://developer.android.com/tool
|
|
2492
2545
|
|
2493
2546
|
--
|
2494
2547
|
|
2495
|
-
##### [find](https://github.com/appium/ruby_lib/blob/
|
2548
|
+
##### [find](https://github.com/appium/ruby_lib/blob/11cdf97bf9c4a90ac4e7c7dcf518cfb3fcd99ef2/lib/appium_lib/android/element/generic.rb#L6) android
|
2496
2549
|
|
2497
2550
|
> def find(value)
|
2498
2551
|
|
@@ -2508,7 +2561,7 @@ __Returns:__
|
|
2508
2561
|
|
2509
2562
|
--
|
2510
2563
|
|
2511
|
-
##### [finds](https://github.com/appium/ruby_lib/blob/
|
2564
|
+
##### [finds](https://github.com/appium/ruby_lib/blob/11cdf97bf9c4a90ac4e7c7dcf518cfb3fcd99ef2/lib/appium_lib/android/element/generic.rb#L13) android
|
2512
2565
|
|
2513
2566
|
> def finds(value)
|
2514
2567
|
|
@@ -2524,7 +2577,7 @@ __Returns:__
|
|
2524
2577
|
|
2525
2578
|
--
|
2526
2579
|
|
2527
|
-
##### [find_exact](https://github.com/appium/ruby_lib/blob/
|
2580
|
+
##### [find_exact](https://github.com/appium/ruby_lib/blob/11cdf97bf9c4a90ac4e7c7dcf518cfb3fcd99ef2/lib/appium_lib/android/element/generic.rb#L20) android
|
2528
2581
|
|
2529
2582
|
> def find_exact(value)
|
2530
2583
|
|
@@ -2540,7 +2593,7 @@ __Returns:__
|
|
2540
2593
|
|
2541
2594
|
--
|
2542
2595
|
|
2543
|
-
##### [finds_exact](https://github.com/appium/ruby_lib/blob/
|
2596
|
+
##### [finds_exact](https://github.com/appium/ruby_lib/blob/11cdf97bf9c4a90ac4e7c7dcf518cfb3fcd99ef2/lib/appium_lib/android/element/generic.rb#L27) android
|
2544
2597
|
|
2545
2598
|
> def finds_exact(value)
|
2546
2599
|
|
@@ -2556,15 +2609,17 @@ __Returns:__
|
|
2556
2609
|
|
2557
2610
|
--
|
2558
2611
|
|
2559
|
-
##### [scroll_to](https://github.com/appium/ruby_lib/blob/
|
2612
|
+
##### [scroll_to](https://github.com/appium/ruby_lib/blob/11cdf97bf9c4a90ac4e7c7dcf518cfb3fcd99ef2/lib/appium_lib/android/element/generic.rb#L40) android
|
2560
2613
|
|
2561
|
-
> def scroll_to(text)
|
2614
|
+
> def scroll_to(text, scrollable_index = 0)
|
2562
2615
|
|
2563
2616
|
Scroll to the first element containing target text or description.
|
2564
2617
|
|
2565
2618
|
__Parameters:__
|
2566
2619
|
|
2567
|
-
[String] text - the text to search for in the text value and content description
|
2620
|
+
[String] text - the text or resourceId to search for in the text value and content description
|
2621
|
+
|
2622
|
+
[Integer] scrollable_index - the index for scrollable views.
|
2568
2623
|
|
2569
2624
|
__Returns:__
|
2570
2625
|
|
@@ -2572,15 +2627,17 @@ __Returns:__
|
|
2572
2627
|
|
2573
2628
|
--
|
2574
2629
|
|
2575
|
-
##### [scroll_to_exact](https://github.com/appium/ruby_lib/blob/
|
2630
|
+
##### [scroll_to_exact](https://github.com/appium/ruby_lib/blob/11cdf97bf9c4a90ac4e7c7dcf518cfb3fcd99ef2/lib/appium_lib/android/element/generic.rb#L54) android
|
2576
2631
|
|
2577
|
-
> def scroll_to_exact(text)
|
2632
|
+
> def scroll_to_exact(text, scrollable_index = 0)
|
2578
2633
|
|
2579
2634
|
Scroll to the first element with the exact target text or description.
|
2580
2635
|
|
2581
2636
|
__Parameters:__
|
2582
2637
|
|
2583
|
-
[String] text - the text to search for in the text value and content description
|
2638
|
+
[String] text - the text or resourceId to search for in the text value and content description
|
2639
|
+
|
2640
|
+
[Integer] scrollable_index - the index for scrollable views.
|
2584
2641
|
|
2585
2642
|
__Returns:__
|
2586
2643
|
|
@@ -2588,7 +2645,7 @@ __Returns:__
|
|
2588
2645
|
|
2589
2646
|
--
|
2590
2647
|
|
2591
|
-
##### [EditText](https://github.com/appium/ruby_lib/blob/
|
2648
|
+
##### [EditText](https://github.com/appium/ruby_lib/blob/11cdf97bf9c4a90ac4e7c7dcf518cfb3fcd99ef2/lib/appium_lib/android/element/textfield.rb#L3) android
|
2592
2649
|
|
2593
2650
|
> EditText = 'android.widget.EditText'.freeze
|
2594
2651
|
|
@@ -2596,7 +2653,7 @@ __Returns:__
|
|
2596
2653
|
|
2597
2654
|
--
|
2598
2655
|
|
2599
|
-
##### [textfield](https://github.com/appium/ruby_lib/blob/
|
2656
|
+
##### [textfield](https://github.com/appium/ruby_lib/blob/11cdf97bf9c4a90ac4e7c7dcf518cfb3fcd99ef2/lib/appium_lib/android/element/textfield.rb#L9) android
|
2600
2657
|
|
2601
2658
|
> def textfield(value)
|
2602
2659
|
|
@@ -2613,7 +2670,7 @@ __Returns:__
|
|
2613
2670
|
|
2614
2671
|
--
|
2615
2672
|
|
2616
|
-
##### [textfields](https://github.com/appium/ruby_lib/blob/
|
2673
|
+
##### [textfields](https://github.com/appium/ruby_lib/blob/11cdf97bf9c4a90ac4e7c7dcf518cfb3fcd99ef2/lib/appium_lib/android/element/textfield.rb#L18) android
|
2617
2674
|
|
2618
2675
|
> def textfields(value = false)
|
2619
2676
|
|
@@ -2630,7 +2687,7 @@ __Returns:__
|
|
2630
2687
|
|
2631
2688
|
--
|
2632
2689
|
|
2633
|
-
##### [first_textfield](https://github.com/appium/ruby_lib/blob/
|
2690
|
+
##### [first_textfield](https://github.com/appium/ruby_lib/blob/11cdf97bf9c4a90ac4e7c7dcf518cfb3fcd99ef2/lib/appium_lib/android/element/textfield.rb#L25) android
|
2634
2691
|
|
2635
2692
|
> def first_textfield
|
2636
2693
|
|
@@ -2642,7 +2699,7 @@ __Returns:__
|
|
2642
2699
|
|
2643
2700
|
--
|
2644
2701
|
|
2645
|
-
##### [last_textfield](https://github.com/appium/ruby_lib/blob/
|
2702
|
+
##### [last_textfield](https://github.com/appium/ruby_lib/blob/11cdf97bf9c4a90ac4e7c7dcf518cfb3fcd99ef2/lib/appium_lib/android/element/textfield.rb#L31) android
|
2646
2703
|
|
2647
2704
|
> def last_textfield
|
2648
2705
|
|
@@ -2654,7 +2711,7 @@ __Returns:__
|
|
2654
2711
|
|
2655
2712
|
--
|
2656
2713
|
|
2657
|
-
##### [textfield_exact](https://github.com/appium/ruby_lib/blob/
|
2714
|
+
##### [textfield_exact](https://github.com/appium/ruby_lib/blob/11cdf97bf9c4a90ac4e7c7dcf518cfb3fcd99ef2/lib/appium_lib/android/element/textfield.rb#L38) android
|
2658
2715
|
|
2659
2716
|
> def textfield_exact(value)
|
2660
2717
|
|
@@ -2670,7 +2727,7 @@ __Returns:__
|
|
2670
2727
|
|
2671
2728
|
--
|
2672
2729
|
|
2673
|
-
##### [textfields_exact](https://github.com/appium/ruby_lib/blob/
|
2730
|
+
##### [textfields_exact](https://github.com/appium/ruby_lib/blob/11cdf97bf9c4a90ac4e7c7dcf518cfb3fcd99ef2/lib/appium_lib/android/element/textfield.rb#L45) android
|
2674
2731
|
|
2675
2732
|
> def textfields_exact(value)
|
2676
2733
|
|
@@ -2686,7 +2743,7 @@ __Returns:__
|
|
2686
2743
|
|
2687
2744
|
--
|
2688
2745
|
|
2689
|
-
##### [value](https://github.com/appium/ruby_lib/blob/
|
2746
|
+
##### [value](https://github.com/appium/ruby_lib/blob/11cdf97bf9c4a90ac4e7c7dcf518cfb3fcd99ef2/lib/appium_lib/common/patch.rb#L12)
|
2690
2747
|
|
2691
2748
|
> def value
|
2692
2749
|
|
@@ -2696,7 +2753,7 @@ Fixes NoMethodError: undefined method `value' for Selenium::WebDriver::Element
|
|
2696
2753
|
|
2697
2754
|
--
|
2698
2755
|
|
2699
|
-
##### [name](https://github.com/appium/ruby_lib/blob/
|
2756
|
+
##### [name](https://github.com/appium/ruby_lib/blob/11cdf97bf9c4a90ac4e7c7dcf518cfb3fcd99ef2/lib/appium_lib/common/patch.rb#L19)
|
2700
2757
|
|
2701
2758
|
> def name
|
2702
2759
|
|
@@ -2706,7 +2763,7 @@ Fixes NoMethodError: undefined method `name' for Selenium::WebDriver::Element
|
|
2706
2763
|
|
2707
2764
|
--
|
2708
2765
|
|
2709
|
-
##### [location_rel](https://github.com/appium/ruby_lib/blob/
|
2766
|
+
##### [location_rel](https://github.com/appium/ruby_lib/blob/11cdf97bf9c4a90ac4e7c7dcf518cfb3fcd99ef2/lib/appium_lib/common/patch.rb#L31)
|
2710
2767
|
|
2711
2768
|
> def location_rel
|
2712
2769
|
|
@@ -2724,7 +2781,7 @@ __Returns:__
|
|
2724
2781
|
|
2725
2782
|
--
|
2726
2783
|
|
2727
|
-
##### [DEFAULT_HEADERS](https://github.com/appium/ruby_lib/blob/
|
2784
|
+
##### [DEFAULT_HEADERS](https://github.com/appium/ruby_lib/blob/11cdf97bf9c4a90ac4e7c7dcf518cfb3fcd99ef2/lib/appium_lib/common/patch.rb#L152)
|
2728
2785
|
|
2729
2786
|
> DEFAULT_HEADERS = { 'Accept' => CONTENT_TYPE, 'User-Agent' => "appium/ruby_lib/#{::Appium::VERSION}" }.freeze
|
2730
2787
|
|
@@ -2732,7 +2789,7 @@ __Returns:__
|
|
2732
2789
|
|
2733
2790
|
--
|
2734
2791
|
|
2735
|
-
##### [patch_remote_driver_commands](https://github.com/appium/ruby_lib/blob/
|
2792
|
+
##### [patch_remote_driver_commands](https://github.com/appium/ruby_lib/blob/11cdf97bf9c4a90ac4e7c7dcf518cfb3fcd99ef2/lib/appium_lib/common/patch.rb#L155)
|
2736
2793
|
|
2737
2794
|
> def patch_remote_driver_commands
|
2738
2795
|
|