appium_lib 9.4.2 → 9.4.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +11 -0
- data/Rakefile +12 -3
- data/android_tests/lib/android/specs/android/helper.rb +9 -1
- data/android_tests/lib/android/specs/common/patch.rb +10 -3
- data/appium_lib.gemspec +1 -1
- data/docs/android_docs.md +249 -239
- data/docs/android_uiautomator.md +10 -0
- data/docs/ios_docs.md +258 -258
- data/docs/ios_xcuitest.md +20 -0
- data/lib/appium_lib/android/element/button.rb +32 -50
- data/lib/appium_lib/android/helper.rb +15 -17
- data/lib/appium_lib/common/version.rb +2 -2
- data/release_notes.md +109 -102
- metadata +8 -8
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 04041ad454c71fcd2bfce91bd25dd2fec494f79c
|
4
|
+
data.tar.gz: 81668b6b7e7831b04f32382cea55931c987b8367
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: bded32f054a9f64af8a7df217c9b0cda10265f5a7570b7e00fde3bdcfaf993779137019c37323b5f3008cdd73ba2e481d7eaad1975f85ba1c02b2584d582c0b1
|
7
|
+
data.tar.gz: e8e5f6017550ba0434783d44b3760ba58915353b84feb401a33a2ec2c377d3a09c500d24122571418329c8cb49d0a86e34577aabb4d07b5e34ce55b9cf2a26d1
|
data/CHANGELOG.md
CHANGED
@@ -3,6 +3,17 @@ Commit based release not is [release_notes.md](./release_notes.md)
|
|
3
3
|
|
4
4
|
Release tags are https://github.com/appium/ruby_lib/releases .
|
5
5
|
|
6
|
+
## v9.4.3
|
7
|
+
### 1. Enhancements
|
8
|
+
- Use uiautomator for uiautomator2 [#561](https://github.com/appium/ruby_lib/pull/561)
|
9
|
+
- improve stability for some methods
|
10
|
+
- don't use selenium-webdriver 3.5+ [#559](https://github.com/appium/ruby_lib/pull/559)
|
11
|
+
- Auto link bug # from release notes [#239](https://github.com/appium/ruby_lib/issues/239)
|
12
|
+
|
13
|
+
### 2. Bug fixes
|
14
|
+
|
15
|
+
### 3. Deprecations
|
16
|
+
|
6
17
|
## v9.4.2
|
7
18
|
### 1. Enhancements
|
8
19
|
|
data/Rakefile
CHANGED
@@ -176,8 +176,8 @@ end
|
|
176
176
|
desc 'Update release notes'
|
177
177
|
task :notes do
|
178
178
|
tag_sort = ->(tag1, tag2) do
|
179
|
-
tag1_numbers = tag1.match(/\.?v(\d+\.\d+\.\d+)$/)[1].split('.').map!
|
180
|
-
tag2_numbers = tag2.match(/\.?v(\d+\.\d+\.\d+)$/)[1].split('.').map!
|
179
|
+
tag1_numbers = tag1.match(/\.?v(\d+\.\d+\.\d+)$/)[1].split('.').map!(&:to_i)
|
180
|
+
tag2_numbers = tag2.match(/\.?v(\d+\.\d+\.\d+)$/)[1].split('.').map!(&:to_i)
|
181
181
|
tag1_numbers <=> tag2_numbers
|
182
182
|
end
|
183
183
|
|
@@ -213,7 +213,16 @@ task :notes do
|
|
213
213
|
# use first 7 chars to match GitHub
|
214
214
|
comment = line.gsub(hex, '').strip
|
215
215
|
next if comment == 'Update release notes'
|
216
|
-
|
216
|
+
|
217
|
+
issue_num = comment.slice(/\(#[0-9]+\)/)
|
218
|
+
# If the issue_num is pull request, GitHub redirects to the pull request.
|
219
|
+
comment_note = if issue_num
|
220
|
+
issue_num.gsub!(/[(#)]/, '')
|
221
|
+
"[#{comment}](https://github.com/appium/#{gh_name}/issues/#{issue_num})"
|
222
|
+
else
|
223
|
+
comment
|
224
|
+
end
|
225
|
+
new_data += "- [#{hex[0...7]}](https://github.com/appium/#{gh_name}/commit/#{hex}) #{comment_note}\n"
|
217
226
|
end
|
218
227
|
data = new_data + "\n"
|
219
228
|
|
@@ -63,7 +63,15 @@ describe 'android/helper' do
|
|
63
63
|
t 'find by id' do
|
64
64
|
wait { find('accessibility').click }
|
65
65
|
wait { find('accessibility node provider').click }
|
66
|
-
|
66
|
+
|
67
|
+
if !automation_name_is_uiautomator2?
|
68
|
+
wait { text 'Accessibility/Accessibility Node Provider' }
|
69
|
+
else
|
70
|
+
# With string.xml
|
71
|
+
# Only for uiautomator1
|
72
|
+
wait { id 'accessibility_node_provider' }
|
73
|
+
end
|
74
|
+
|
67
75
|
2.times { back }
|
68
76
|
end
|
69
77
|
|
@@ -48,9 +48,16 @@ describe 'common/patch' do
|
|
48
48
|
end
|
49
49
|
|
50
50
|
t 'id success' do
|
51
|
-
|
52
|
-
|
53
|
-
|
51
|
+
if !automation_name_is_uiautomator2?
|
52
|
+
wait do
|
53
|
+
el = id 'autocomplete_3_button_7' # <string name="autocomplete_3_button_7">Text</string>
|
54
|
+
el.name.must_equal 'Text'
|
55
|
+
end
|
56
|
+
else
|
57
|
+
wait do
|
58
|
+
el = text 'text' # <string name="autocomplete_3_button_7">Text</string>
|
59
|
+
el.name.must_equal 'Text'
|
60
|
+
end
|
54
61
|
end
|
55
62
|
end
|
56
63
|
|
data/appium_lib.gemspec
CHANGED
@@ -13,7 +13,7 @@ Gem::Specification.new do |s|
|
|
13
13
|
s.homepage = 'https://github.com/appium/ruby_lib' # published as appium_lib
|
14
14
|
s.require_paths = ['lib']
|
15
15
|
|
16
|
-
s.add_runtime_dependency 'selenium-webdriver', '
|
16
|
+
s.add_runtime_dependency 'selenium-webdriver', '>= 3.0.4', '<= 3.4'
|
17
17
|
s.add_runtime_dependency 'awesome_print', '~> 1.7'
|
18
18
|
s.add_runtime_dependency 'json', '>= 1.8'
|
19
19
|
s.add_runtime_dependency 'tomlrb', '~> 1.1'
|
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/24660355c3fa5e5e8691922e1570021fce90b96b/lib/appium_lib/driver.rb#L76)
|
2
2
|
|
3
3
|
> def self.load_settings(opts = {})
|
4
4
|
|
@@ -27,7 +27,7 @@ __Returns:__
|
|
27
27
|
|
28
28
|
--
|
29
29
|
|
30
|
-
##### [load_appium_txt](https://github.com/appium/ruby_lib/blob/
|
30
|
+
##### [load_appium_txt](https://github.com/appium/ruby_lib/blob/24660355c3fa5e5e8691922e1570021fce90b96b/lib/appium_lib/driver.rb#L112)
|
31
31
|
|
32
32
|
> def self.load_settings(opts = {})
|
33
33
|
|
@@ -57,7 +57,7 @@ __Returns:__
|
|
57
57
|
|
58
58
|
--
|
59
59
|
|
60
|
-
##### [expand_required_files](https://github.com/appium/ruby_lib/blob/
|
60
|
+
##### [expand_required_files](https://github.com/appium/ruby_lib/blob/24660355c3fa5e5e8691922e1570021fce90b96b/lib/appium_lib/driver.rb#L118)
|
61
61
|
|
62
62
|
> def self.expand_required_files(base_dir, file_paths)
|
63
63
|
|
@@ -75,7 +75,7 @@ __Returns:__
|
|
75
75
|
|
76
76
|
--
|
77
77
|
|
78
|
-
##### [symbolize_keys](https://github.com/appium/ruby_lib/blob/
|
78
|
+
##### [symbolize_keys](https://github.com/appium/ruby_lib/blob/24660355c3fa5e5e8691922e1570021fce90b96b/lib/appium_lib/driver.rb#L150)
|
79
79
|
|
80
80
|
> def self.symbolize_keys(hash)
|
81
81
|
|
@@ -86,7 +86,7 @@ https://github.com/rails/docrails/blob/a3b1105ada3da64acfa3843b164b14b734456a50/
|
|
86
86
|
|
87
87
|
--
|
88
88
|
|
89
|
-
##### [promote_singleton_appium_methods](https://github.com/appium/ruby_lib/blob/
|
89
|
+
##### [promote_singleton_appium_methods](https://github.com/appium/ruby_lib/blob/24660355c3fa5e5e8691922e1570021fce90b96b/lib/appium_lib/driver.rb#L171)
|
90
90
|
|
91
91
|
> def self.promote_singleton_appium_methods(modules)
|
92
92
|
|
@@ -104,7 +104,7 @@ otherwise, the array of modules will be used as the promotion target.
|
|
104
104
|
|
105
105
|
--
|
106
106
|
|
107
|
-
##### [promote_appium_methods](https://github.com/appium/ruby_lib/blob/
|
107
|
+
##### [promote_appium_methods](https://github.com/appium/ruby_lib/blob/24660355c3fa5e5e8691922e1570021fce90b96b/lib/appium_lib/driver.rb#L224)
|
108
108
|
|
109
109
|
> def self.promote_appium_methods(class_array)
|
110
110
|
|
@@ -134,7 +134,7 @@ __Parameters:__
|
|
134
134
|
|
135
135
|
--
|
136
136
|
|
137
|
-
##### [init_caps_for_appium](https://github.com/appium/ruby_lib/blob/
|
137
|
+
##### [init_caps_for_appium](https://github.com/appium/ruby_lib/blob/24660355c3fa5e5e8691922e1570021fce90b96b/lib/appium_lib/driver.rb#L259)
|
138
138
|
|
139
139
|
> def self.init_caps_for_appium(opts_caps = {})
|
140
140
|
|
@@ -153,7 +153,7 @@ __Returns:__
|
|
153
153
|
|
154
154
|
--
|
155
155
|
|
156
|
-
##### [global_webdriver_http_sleep](https://github.com/appium/ruby_lib/blob/
|
156
|
+
##### [global_webdriver_http_sleep](https://github.com/appium/ruby_lib/blob/24660355c3fa5e5e8691922e1570021fce90b96b/lib/appium_lib/driver.rb#L277)
|
157
157
|
|
158
158
|
> def global_webdriver_http_sleep
|
159
159
|
|
@@ -161,7 +161,7 @@ The amount to sleep in seconds before every webdriver http call.
|
|
161
161
|
|
162
162
|
--
|
163
163
|
|
164
|
-
##### [global_webdriver_http_sleep=](https://github.com/appium/ruby_lib/blob/
|
164
|
+
##### [global_webdriver_http_sleep=](https://github.com/appium/ruby_lib/blob/24660355c3fa5e5e8691922e1570021fce90b96b/lib/appium_lib/driver.rb#L277)
|
165
165
|
|
166
166
|
> def global_webdriver_http_sleep=(value)
|
167
167
|
|
@@ -169,7 +169,7 @@ The amount to sleep in seconds before every webdriver http call.
|
|
169
169
|
|
170
170
|
--
|
171
171
|
|
172
|
-
##### [caps](https://github.com/appium/ruby_lib/blob/
|
172
|
+
##### [caps](https://github.com/appium/ruby_lib/blob/24660355c3fa5e5e8691922e1570021fce90b96b/lib/appium_lib/driver.rb#L279)
|
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/24660355c3fa5e5e8691922e1570021fce90b96b/lib/appium_lib/driver.rb#L279)
|
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/24660355c3fa5e5e8691922e1570021fce90b96b/lib/appium_lib/driver.rb#L281)
|
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/24660355c3fa5e5e8691922e1570021fce90b96b/lib/appium_lib/driver.rb#L281)
|
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/24660355c3fa5e5e8691922e1570021fce90b96b/lib/appium_lib/driver.rb#L283)
|
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/24660355c3fa5e5e8691922e1570021fce90b96b/lib/appium_lib/driver.rb#L283)
|
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/24660355c3fa5e5e8691922e1570021fce90b96b/lib/appium_lib/driver.rb#L288)
|
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/24660355c3fa5e5e8691922e1570021fce90b96b/lib/appium_lib/driver.rb#L290)
|
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/24660355c3fa5e5e8691922e1570021fce90b96b/lib/appium_lib/driver.rb#L290)
|
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/24660355c3fa5e5e8691922e1570021fce90b96b/lib/appium_lib/driver.rb#L292)
|
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/24660355c3fa5e5e8691922e1570021fce90b96b/lib/appium_lib/driver.rb#L292)
|
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/24660355c3fa5e5e8691922e1570021fce90b96b/lib/appium_lib/driver.rb#L294)
|
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/24660355c3fa5e5e8691922e1570021fce90b96b/lib/appium_lib/driver.rb#L294)
|
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/24660355c3fa5e5e8691922e1570021fce90b96b/lib/appium_lib/driver.rb#L296)
|
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/24660355c3fa5e5e8691922e1570021fce90b96b/lib/appium_lib/driver.rb#L296)
|
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/24660355c3fa5e5e8691922e1570021fce90b96b/lib/appium_lib/driver.rb#L298)
|
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/24660355c3fa5e5e8691922e1570021fce90b96b/lib/appium_lib/driver.rb#L298)
|
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/24660355c3fa5e5e8691922e1570021fce90b96b/lib/appium_lib/driver.rb#L301)
|
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/24660355c3fa5e5e8691922e1570021fce90b96b/lib/appium_lib/driver.rb#L303)
|
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/24660355c3fa5e5e8691922e1570021fce90b96b/lib/appium_lib/driver.rb#L305)
|
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/24660355c3fa5e5e8691922e1570021fce90b96b/lib/appium_lib/driver.rb#L305)
|
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/24660355c3fa5e5e8691922e1570021fce90b96b/lib/appium_lib/driver.rb#L307)
|
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/24660355c3fa5e5e8691922e1570021fce90b96b/lib/appium_lib/driver.rb#L307)
|
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/24660355c3fa5e5e8691922e1570021fce90b96b/lib/appium_lib/driver.rb#L310)
|
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/24660355c3fa5e5e8691922e1570021fce90b96b/lib/appium_lib/driver.rb#L313)
|
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/24660355c3fa5e5e8691922e1570021fce90b96b/lib/appium_lib/driver.rb#L318)
|
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/24660355c3fa5e5e8691922e1570021fce90b96b/lib/appium_lib/driver.rb#L323)
|
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/24660355c3fa5e5e8691922e1570021fce90b96b/lib/appium_lib/driver.rb#L363)
|
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/24660355c3fa5e5e8691922e1570021fce90b96b/lib/appium_lib/driver.rb#L442)
|
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/24660355c3fa5e5e8691922e1570021fce90b96b/lib/appium_lib/driver.rb#L467)
|
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/24660355c3fa5e5e8691922e1570021fce90b96b/lib/appium_lib/driver.rb#L473)
|
452
452
|
|
453
453
|
> def automation_name_is_xcuitest?
|
454
454
|
|
@@ -460,7 +460,7 @@ __Returns:__
|
|
460
460
|
|
461
461
|
--
|
462
462
|
|
463
|
-
##### [automation_name_is_uiautomator2?](https://github.com/appium/ruby_lib/blob/
|
463
|
+
##### [automation_name_is_uiautomator2?](https://github.com/appium/ruby_lib/blob/24660355c3fa5e5e8691922e1570021fce90b96b/lib/appium_lib/driver.rb#L479)
|
464
464
|
|
465
465
|
> def automation_name_is_uiautomator2?
|
466
466
|
|
@@ -472,7 +472,7 @@ __Returns:__
|
|
472
472
|
|
473
473
|
--
|
474
474
|
|
475
|
-
##### [check_server_version_xcuitest](https://github.com/appium/ruby_lib/blob/
|
475
|
+
##### [check_server_version_xcuitest](https://github.com/appium/ruby_lib/blob/24660355c3fa5e5e8691922e1570021fce90b96b/lib/appium_lib/driver.rb#L486)
|
476
476
|
|
477
477
|
> def check_server_version_xcuitest
|
478
478
|
|
@@ -485,7 +485,7 @@ __Returns:__
|
|
485
485
|
|
486
486
|
--
|
487
487
|
|
488
|
-
##### [appium_server_version](https://github.com/appium/ruby_lib/blob/
|
488
|
+
##### [appium_server_version](https://github.com/appium/ruby_lib/blob/24660355c3fa5e5e8691922e1570021fce90b96b/lib/appium_lib/driver.rb#L507)
|
489
489
|
|
490
490
|
> def appium_server_version
|
491
491
|
|
@@ -506,7 +506,7 @@ __Returns:__
|
|
506
506
|
|
507
507
|
--
|
508
508
|
|
509
|
-
##### [appium_client_version](https://github.com/appium/ruby_lib/blob/
|
509
|
+
##### [appium_client_version](https://github.com/appium/ruby_lib/blob/24660355c3fa5e5e8691922e1570021fce90b96b/lib/appium_lib/driver.rb#L524)
|
510
510
|
|
511
511
|
> def appium_client_version
|
512
512
|
|
@@ -524,7 +524,7 @@ __Returns:__
|
|
524
524
|
|
525
525
|
--
|
526
526
|
|
527
|
-
##### [absolute_app_path](https://github.com/appium/ruby_lib/blob/
|
527
|
+
##### [absolute_app_path](https://github.com/appium/ruby_lib/blob/24660355c3fa5e5e8691922e1570021fce90b96b/lib/appium_lib/driver.rb#L536)
|
528
528
|
|
529
529
|
> def self.absolute_app_path(opts)
|
530
530
|
|
@@ -541,7 +541,7 @@ __Returns:__
|
|
541
541
|
|
542
542
|
--
|
543
543
|
|
544
|
-
##### [server_url](https://github.com/appium/ruby_lib/blob/
|
544
|
+
##### [server_url](https://github.com/appium/ruby_lib/blob/24660355c3fa5e5e8691922e1570021fce90b96b/lib/appium_lib/driver.rb#L569)
|
545
545
|
|
546
546
|
> def server_url
|
547
547
|
|
@@ -553,7 +553,7 @@ __Returns:__
|
|
553
553
|
|
554
554
|
--
|
555
555
|
|
556
|
-
##### [restart](https://github.com/appium/ruby_lib/blob/
|
556
|
+
##### [restart](https://github.com/appium/ruby_lib/blob/24660355c3fa5e5e8691922e1570021fce90b96b/lib/appium_lib/driver.rb#L580)
|
557
557
|
|
558
558
|
> def restart
|
559
559
|
|
@@ -565,7 +565,7 @@ __Returns:__
|
|
565
565
|
|
566
566
|
--
|
567
567
|
|
568
|
-
##### [screenshot](https://github.com/appium/ruby_lib/blob/
|
568
|
+
##### [screenshot](https://github.com/appium/ruby_lib/blob/24660355c3fa5e5e8691922e1570021fce90b96b/lib/appium_lib/driver.rb#L591)
|
569
569
|
|
570
570
|
> def screenshot(png_save_path)
|
571
571
|
|
@@ -583,7 +583,7 @@ __Returns:__
|
|
583
583
|
|
584
584
|
--
|
585
585
|
|
586
|
-
##### [driver_quit](https://github.com/appium/ruby_lib/blob/
|
586
|
+
##### [driver_quit](https://github.com/appium/ruby_lib/blob/24660355c3fa5e5e8691922e1570021fce90b96b/lib/appium_lib/driver.rb#L598)
|
587
587
|
|
588
588
|
> def driver_quit
|
589
589
|
|
@@ -595,7 +595,7 @@ __Returns:__
|
|
595
595
|
|
596
596
|
--
|
597
597
|
|
598
|
-
##### [start_driver](https://github.com/appium/ruby_lib/blob/
|
598
|
+
##### [start_driver](https://github.com/appium/ruby_lib/blob/24660355c3fa5e5e8691922e1570021fce90b96b/lib/appium_lib/driver.rb#L608)
|
599
599
|
|
600
600
|
> def start_driver
|
601
601
|
|
@@ -607,7 +607,7 @@ __Returns:__
|
|
607
607
|
|
608
608
|
--
|
609
609
|
|
610
|
-
##### [no_wait](https://github.com/appium/ruby_lib/blob/
|
610
|
+
##### [no_wait](https://github.com/appium/ruby_lib/blob/24660355c3fa5e5e8691922e1570021fce90b96b/lib/appium_lib/driver.rb#L646)
|
611
611
|
|
612
612
|
> def no_wait
|
613
613
|
|
@@ -615,7 +615,7 @@ Set implicit wait to zero.
|
|
615
615
|
|
616
616
|
--
|
617
617
|
|
618
|
-
##### [set_wait](https://github.com/appium/ruby_lib/blob/
|
618
|
+
##### [set_wait](https://github.com/appium/ruby_lib/blob/24660355c3fa5e5e8691922e1570021fce90b96b/lib/appium_lib/driver.rb#L660)
|
619
619
|
|
620
620
|
> def set_wait(timeout = nil)
|
621
621
|
|
@@ -637,7 +637,7 @@ __Returns:__
|
|
637
637
|
|
638
638
|
--
|
639
639
|
|
640
|
-
##### [exists](https://github.com/appium/ruby_lib/blob/
|
640
|
+
##### [exists](https://github.com/appium/ruby_lib/blob/24660355c3fa5e5e8691922e1570021fce90b96b/lib/appium_lib/driver.rb#L677)
|
641
641
|
|
642
642
|
> def exists(pre_check = 0, post_check = @default_wait)
|
643
643
|
|
@@ -661,7 +661,7 @@ __Returns:__
|
|
661
661
|
|
662
662
|
--
|
663
663
|
|
664
|
-
##### [execute_script](https://github.com/appium/ruby_lib/blob/
|
664
|
+
##### [execute_script](https://github.com/appium/ruby_lib/blob/24660355c3fa5e5e8691922e1570021fce90b96b/lib/appium_lib/driver.rb#L701)
|
665
665
|
|
666
666
|
> def execute_script(script, *args)
|
667
667
|
|
@@ -679,7 +679,7 @@ __Returns:__
|
|
679
679
|
|
680
680
|
--
|
681
681
|
|
682
|
-
##### [find_elements](https://github.com/appium/ruby_lib/blob/
|
682
|
+
##### [find_elements](https://github.com/appium/ruby_lib/blob/24660355c3fa5e5e8691922e1570021fce90b96b/lib/appium_lib/driver.rb#L723)
|
683
683
|
|
684
684
|
> def find_elements(*args)
|
685
685
|
|
@@ -705,7 +705,7 @@ __Returns:__
|
|
705
705
|
|
706
706
|
--
|
707
707
|
|
708
|
-
##### [find_element](https://github.com/appium/ruby_lib/blob/
|
708
|
+
##### [find_element](https://github.com/appium/ruby_lib/blob/24660355c3fa5e5e8691922e1570021fce90b96b/lib/appium_lib/driver.rb#L738)
|
709
709
|
|
710
710
|
> def find_element(*args)
|
711
711
|
|
@@ -726,7 +726,7 @@ __Returns:__
|
|
726
726
|
|
727
727
|
--
|
728
728
|
|
729
|
-
##### [set_location](https://github.com/appium/ruby_lib/blob/
|
729
|
+
##### [set_location](https://github.com/appium/ruby_lib/blob/24660355c3fa5e5e8691922e1570021fce90b96b/lib/appium_lib/driver.rb#L751)
|
730
730
|
|
731
731
|
> def set_location(opts = {})
|
732
732
|
|
@@ -742,7 +742,7 @@ __Returns:__
|
|
742
742
|
|
743
743
|
--
|
744
744
|
|
745
|
-
##### [x](https://github.com/appium/ruby_lib/blob/
|
745
|
+
##### [x](https://github.com/appium/ruby_lib/blob/24660355c3fa5e5e8691922e1570021fce90b96b/lib/appium_lib/driver.rb#L761)
|
746
746
|
|
747
747
|
> def x
|
748
748
|
|
@@ -755,7 +755,7 @@ __Returns:__
|
|
755
755
|
|
756
756
|
--
|
757
757
|
|
758
|
-
##### [set_automation_name_if_nil](https://github.com/appium/ruby_lib/blob/
|
758
|
+
##### [set_automation_name_if_nil](https://github.com/appium/ruby_lib/blob/24660355c3fa5e5e8691922e1570021fce90b96b/lib/appium_lib/driver.rb#L770)
|
759
759
|
|
760
760
|
> def set_automation_name_if_nil
|
761
761
|
|
@@ -764,7 +764,7 @@ Since @automation_name is set only client side before start_driver is called.
|
|
764
764
|
|
765
765
|
--
|
766
766
|
|
767
|
-
##### [logger=](https://github.com/appium/ruby_lib/blob/
|
767
|
+
##### [logger=](https://github.com/appium/ruby_lib/blob/24660355c3fa5e5e8691922e1570021fce90b96b/lib/appium_lib/logger.rb#L13)
|
768
768
|
|
769
769
|
> def logger=(value)
|
770
770
|
|
@@ -776,7 +776,7 @@ __Parameters:__
|
|
776
776
|
|
777
777
|
--
|
778
778
|
|
779
|
-
##### [logger](https://github.com/appium/ruby_lib/blob/
|
779
|
+
##### [logger](https://github.com/appium/ruby_lib/blob/24660355c3fa5e5e8691922e1570021fce90b96b/lib/appium_lib/logger.rb#L17)
|
780
780
|
|
781
781
|
> def logger
|
782
782
|
|
@@ -784,7 +784,7 @@ __Parameters:__
|
|
784
784
|
|
785
785
|
--
|
786
786
|
|
787
|
-
##### [app_strings](https://github.com/appium/ruby_lib/blob/
|
787
|
+
##### [app_strings](https://github.com/appium/ruby_lib/blob/24660355c3fa5e5e8691922e1570021fce90b96b/lib/appium_lib/device/device.rb#L7)
|
788
788
|
|
789
789
|
> def app_strings
|
790
790
|
|
@@ -795,7 +795,7 @@ app_strings #=> "TransitionsTitle"=>"Transitions", "WebTitle"=>"Web"
|
|
795
795
|
|
796
796
|
--
|
797
797
|
|
798
|
-
##### [background_app](https://github.com/appium/ruby_lib/blob/
|
798
|
+
##### [background_app](https://github.com/appium/ruby_lib/blob/24660355c3fa5e5e8691922e1570021fce90b96b/lib/appium_lib/device/device.rb#L13)
|
799
799
|
|
800
800
|
> def background_app
|
801
801
|
|
@@ -804,7 +804,7 @@ This is a blocking application
|
|
804
804
|
|
805
805
|
--
|
806
806
|
|
807
|
-
##### [current_activity](https://github.com/appium/ruby_lib/blob/
|
807
|
+
##### [current_activity](https://github.com/appium/ruby_lib/blob/24660355c3fa5e5e8691922e1570021fce90b96b/lib/appium_lib/device/device.rb#L24)
|
808
808
|
|
809
809
|
> def current_activity
|
810
810
|
|
@@ -812,7 +812,7 @@ This is a blocking application
|
|
812
812
|
|
813
813
|
--
|
814
814
|
|
815
|
-
##### [get_system_bars](https://github.com/appium/ruby_lib/blob/
|
815
|
+
##### [get_system_bars](https://github.com/appium/ruby_lib/blob/24660355c3fa5e5e8691922e1570021fce90b96b/lib/appium_lib/device/device.rb#L26)
|
816
816
|
|
817
817
|
> def get_system_bars
|
818
818
|
|
@@ -827,7 +827,7 @@ __Returns:__
|
|
827
827
|
|
828
828
|
--
|
829
829
|
|
830
|
-
##### [get_display_density](https://github.com/appium/ruby_lib/blob/
|
830
|
+
##### [get_display_density](https://github.com/appium/ruby_lib/blob/24660355c3fa5e5e8691922e1570021fce90b96b/lib/appium_lib/device/device.rb#L34)
|
831
831
|
|
832
832
|
> def get_display_density
|
833
833
|
|
@@ -842,7 +842,7 @@ __Returns:__
|
|
842
842
|
|
843
843
|
--
|
844
844
|
|
845
|
-
##### [is_keyboard_shown](https://github.com/appium/ruby_lib/blob/
|
845
|
+
##### [is_keyboard_shown](https://github.com/appium/ruby_lib/blob/24660355c3fa5e5e8691922e1570021fce90b96b/lib/appium_lib/device/device.rb#L42)
|
846
846
|
|
847
847
|
> def is_keyboard_shown
|
848
848
|
|
@@ -857,7 +857,7 @@ __Returns:__
|
|
857
857
|
|
858
858
|
--
|
859
859
|
|
860
|
-
##### [launch_app](https://github.com/appium/ruby_lib/blob/
|
860
|
+
##### [launch_app](https://github.com/appium/ruby_lib/blob/24660355c3fa5e5e8691922e1570021fce90b96b/lib/appium_lib/device/device.rb#L50)
|
861
861
|
|
862
862
|
> def launch_app
|
863
863
|
|
@@ -865,7 +865,7 @@ Start the simulator and application configured with desired capabilities
|
|
865
865
|
|
866
866
|
--
|
867
867
|
|
868
|
-
##### [reset](https://github.com/appium/ruby_lib/blob/
|
868
|
+
##### [reset](https://github.com/appium/ruby_lib/blob/24660355c3fa5e5e8691922e1570021fce90b96b/lib/appium_lib/device/device.rb#L53)
|
869
869
|
|
870
870
|
> def reset
|
871
871
|
|
@@ -873,7 +873,7 @@ Reset the device, relaunching the application.
|
|
873
873
|
|
874
874
|
--
|
875
875
|
|
876
|
-
##### [shake](https://github.com/appium/ruby_lib/blob/
|
876
|
+
##### [shake](https://github.com/appium/ruby_lib/blob/24660355c3fa5e5e8691922e1570021fce90b96b/lib/appium_lib/device/device.rb#L56)
|
877
877
|
|
878
878
|
> def shake
|
879
879
|
|
@@ -881,7 +881,7 @@ Cause the device to shake
|
|
881
881
|
|
882
882
|
--
|
883
883
|
|
884
|
-
##### [toggle_flight_mode](https://github.com/appium/ruby_lib/blob/
|
884
|
+
##### [toggle_flight_mode](https://github.com/appium/ruby_lib/blob/24660355c3fa5e5e8691922e1570021fce90b96b/lib/appium_lib/device/device.rb#L59)
|
885
885
|
|
886
886
|
> def toggle_flight_mode
|
887
887
|
|
@@ -889,7 +889,7 @@ Toggle flight mode on or off
|
|
889
889
|
|
890
890
|
--
|
891
891
|
|
892
|
-
##### [device_locked?](https://github.com/appium/ruby_lib/blob/
|
892
|
+
##### [device_locked?](https://github.com/appium/ruby_lib/blob/24660355c3fa5e5e8691922e1570021fce90b96b/lib/appium_lib/device/device.rb#L62)
|
893
893
|
|
894
894
|
> def device_locked?
|
895
895
|
|
@@ -897,7 +897,7 @@ Toggle flight mode on or off
|
|
897
897
|
|
898
898
|
--
|
899
899
|
|
900
|
-
##### [hide_keyboard](https://github.com/appium/ruby_lib/blob/
|
900
|
+
##### [hide_keyboard](https://github.com/appium/ruby_lib/blob/24660355c3fa5e5e8691922e1570021fce90b96b/lib/appium_lib/device/device.rb#L64)
|
901
901
|
|
902
902
|
> def hide_keyboard
|
903
903
|
|
@@ -910,7 +910,7 @@ Defaults to 'Done'.
|
|
910
910
|
|
911
911
|
--
|
912
912
|
|
913
|
-
##### [press_keycode](https://github.com/appium/ruby_lib/blob/
|
913
|
+
##### [press_keycode](https://github.com/appium/ruby_lib/blob/24660355c3fa5e5e8691922e1570021fce90b96b/lib/appium_lib/device/device.rb#L73)
|
914
914
|
|
915
915
|
> def press_keycode
|
916
916
|
|
@@ -925,7 +925,7 @@ __Parameters:__
|
|
925
925
|
|
926
926
|
--
|
927
927
|
|
928
|
-
##### [long_press_keycode](https://github.com/appium/ruby_lib/blob/
|
928
|
+
##### [long_press_keycode](https://github.com/appium/ruby_lib/blob/24660355c3fa5e5e8691922e1570021fce90b96b/lib/appium_lib/device/device.rb#L79)
|
929
929
|
|
930
930
|
> def long_press_keycode
|
931
931
|
|
@@ -940,7 +940,7 @@ __Parameters:__
|
|
940
940
|
|
941
941
|
--
|
942
942
|
|
943
|
-
##### [push_file](https://github.com/appium/ruby_lib/blob/
|
943
|
+
##### [push_file](https://github.com/appium/ruby_lib/blob/24660355c3fa5e5e8691922e1570021fce90b96b/lib/appium_lib/device/device.rb#L85)
|
944
944
|
|
945
945
|
> def push_file
|
946
946
|
|
@@ -954,7 +954,7 @@ __Parameters:__
|
|
954
954
|
|
955
955
|
--
|
956
956
|
|
957
|
-
##### [pull_file](https://github.com/appium/ruby_lib/blob/
|
957
|
+
##### [pull_file](https://github.com/appium/ruby_lib/blob/24660355c3fa5e5e8691922e1570021fce90b96b/lib/appium_lib/device/device.rb#L90)
|
958
958
|
|
959
959
|
> def pull_file
|
960
960
|
|
@@ -971,7 +971,7 @@ __Parameters:__
|
|
971
971
|
|
972
972
|
--
|
973
973
|
|
974
|
-
##### [pull_folder](https://github.com/appium/ruby_lib/blob/
|
974
|
+
##### [pull_folder](https://github.com/appium/ruby_lib/blob/24660355c3fa5e5e8691922e1570021fce90b96b/lib/appium_lib/device/device.rb#L100)
|
975
975
|
|
976
976
|
> def pull_folder
|
977
977
|
|
@@ -986,7 +986,7 @@ __Parameters:__
|
|
986
986
|
|
987
987
|
--
|
988
988
|
|
989
|
-
##### [touch_id](https://github.com/appium/ruby_lib/blob/
|
989
|
+
##### [touch_id](https://github.com/appium/ruby_lib/blob/24660355c3fa5e5e8691922e1570021fce90b96b/lib/appium_lib/device/device.rb#L108)
|
990
990
|
|
991
991
|
> def touch_id
|
992
992
|
|
@@ -1003,7 +1003,7 @@ Defaults to true.
|
|
1003
1003
|
|
1004
1004
|
--
|
1005
1005
|
|
1006
|
-
##### [toggle_touch_id_enrollment](https://github.com/appium/ruby_lib/blob/
|
1006
|
+
##### [toggle_touch_id_enrollment](https://github.com/appium/ruby_lib/blob/24660355c3fa5e5e8691922e1570021fce90b96b/lib/appium_lib/device/device.rb#L117)
|
1007
1007
|
|
1008
1008
|
> def toggle_touch_id_enrollment
|
1009
1009
|
|
@@ -1011,7 +1011,7 @@ iOS Simulator only: Toggle touch id enrollment on an iOS Simulator.
|
|
1011
1011
|
|
1012
1012
|
--
|
1013
1013
|
|
1014
|
-
##### [end_coverage](https://github.com/appium/ruby_lib/blob/
|
1014
|
+
##### [end_coverage](https://github.com/appium/ruby_lib/blob/24660355c3fa5e5e8691922e1570021fce90b96b/lib/appium_lib/device/device.rb#L120)
|
1015
1015
|
|
1016
1016
|
> def end_coverage
|
1017
1017
|
|
@@ -1025,7 +1025,7 @@ __Parameters:__
|
|
1025
1025
|
|
1026
1026
|
--
|
1027
1027
|
|
1028
|
-
##### [get_settings](https://github.com/appium/ruby_lib/blob/
|
1028
|
+
##### [get_settings](https://github.com/appium/ruby_lib/blob/24660355c3fa5e5e8691922e1570021fce90b96b/lib/appium_lib/device/device.rb#L125)
|
1029
1029
|
|
1030
1030
|
> def get_settings
|
1031
1031
|
|
@@ -1033,7 +1033,7 @@ Get appium Settings for current test session
|
|
1033
1033
|
|
1034
1034
|
--
|
1035
1035
|
|
1036
|
-
##### [update_settings](https://github.com/appium/ruby_lib/blob/
|
1036
|
+
##### [update_settings](https://github.com/appium/ruby_lib/blob/24660355c3fa5e5e8691922e1570021fce90b96b/lib/appium_lib/device/device.rb#L128)
|
1037
1037
|
|
1038
1038
|
> def update_settings
|
1039
1039
|
|
@@ -1045,7 +1045,7 @@ __Parameters:__
|
|
1045
1045
|
|
1046
1046
|
--
|
1047
1047
|
|
1048
|
-
##### [start_activity](https://github.com/appium/ruby_lib/blob/
|
1048
|
+
##### [start_activity](https://github.com/appium/ruby_lib/blob/24660355c3fa5e5e8691922e1570021fce90b96b/lib/appium_lib/device/device.rb#L132)
|
1049
1049
|
|
1050
1050
|
> def start_activity
|
1051
1051
|
|
@@ -1059,7 +1059,7 @@ start_activity app_package: 'io.appium.android.apis',
|
|
1059
1059
|
|
1060
1060
|
--
|
1061
1061
|
|
1062
|
-
##### [get_network_connection](https://github.com/appium/ruby_lib/blob/
|
1062
|
+
##### [get_network_connection](https://github.com/appium/ruby_lib/blob/24660355c3fa5e5e8691922e1570021fce90b96b/lib/appium_lib/device/device.rb#L146)
|
1063
1063
|
|
1064
1064
|
> def get_network_connection
|
1065
1065
|
|
@@ -1068,7 +1068,7 @@ See set_network_connection method for return value
|
|
1068
1068
|
|
1069
1069
|
--
|
1070
1070
|
|
1071
|
-
##### [set_network_connection](https://github.com/appium/ruby_lib/blob/
|
1071
|
+
##### [set_network_connection](https://github.com/appium/ruby_lib/blob/24660355c3fa5e5e8691922e1570021fce90b96b/lib/appium_lib/device/device.rb#L150)
|
1072
1072
|
|
1073
1073
|
> def set_network_connection
|
1074
1074
|
|
@@ -1087,7 +1087,7 @@ __Parameters:__
|
|
1087
1087
|
|
1088
1088
|
--
|
1089
1089
|
|
1090
|
-
##### [set_immediate_value](https://github.com/appium/ruby_lib/blob/
|
1090
|
+
##### [set_immediate_value](https://github.com/appium/ruby_lib/blob/24660355c3fa5e5e8691922e1570021fce90b96b/lib/appium_lib/device/device.rb#L163)
|
1091
1091
|
|
1092
1092
|
> def set_immediate_value
|
1093
1093
|
|
@@ -1101,7 +1101,7 @@ set_immediate_value element, 'hello'
|
|
1101
1101
|
|
1102
1102
|
--
|
1103
1103
|
|
1104
|
-
##### [get_performance_data_types](https://github.com/appium/ruby_lib/blob/
|
1104
|
+
##### [get_performance_data_types](https://github.com/appium/ruby_lib/blob/24660355c3fa5e5e8691922e1570021fce90b96b/lib/appium_lib/device/device.rb#L172)
|
1105
1105
|
|
1106
1106
|
> def get_performance_data_types
|
1107
1107
|
|
@@ -1115,7 +1115,7 @@ get_performance_data_types #=> ["cpuinfo", "batteryinfo", "networkinfo", "memory
|
|
1115
1115
|
|
1116
1116
|
--
|
1117
1117
|
|
1118
|
-
##### [extend_search_contexts](https://github.com/appium/ruby_lib/blob/
|
1118
|
+
##### [extend_search_contexts](https://github.com/appium/ruby_lib/blob/24660355c3fa5e5e8691922e1570021fce90b96b/lib/appium_lib/device/device.rb#L434)
|
1119
1119
|
|
1120
1120
|
> def extend_search_contexts
|
1121
1121
|
|
@@ -1123,7 +1123,7 @@ get_performance_data_types #=> ["cpuinfo", "batteryinfo", "networkinfo", "memory
|
|
1123
1123
|
|
1124
1124
|
--
|
1125
1125
|
|
1126
|
-
##### [find_element_with_appium](https://github.com/appium/ruby_lib/blob/
|
1126
|
+
##### [find_element_with_appium](https://github.com/appium/ruby_lib/blob/24660355c3fa5e5e8691922e1570021fce90b96b/lib/appium_lib/device/device.rb#L434)
|
1127
1127
|
|
1128
1128
|
> def find_element_with_appium
|
1129
1129
|
|
@@ -1131,7 +1131,7 @@ get_performance_data_types #=> ["cpuinfo", "batteryinfo", "networkinfo", "memory
|
|
1131
1131
|
|
1132
1132
|
--
|
1133
1133
|
|
1134
|
-
##### [find_elements_with_appium](https://github.com/appium/ruby_lib/blob/
|
1134
|
+
##### [find_elements_with_appium](https://github.com/appium/ruby_lib/blob/24660355c3fa5e5e8691922e1570021fce90b96b/lib/appium_lib/device/device.rb#L434)
|
1135
1135
|
|
1136
1136
|
> def find_elements_with_appium
|
1137
1137
|
|
@@ -1143,7 +1143,7 @@ find_element/s_with_appium with their accessibility_id
|
|
1143
1143
|
|
1144
1144
|
--
|
1145
1145
|
|
1146
|
-
##### [add_touch_actions](https://github.com/appium/ruby_lib/blob/
|
1146
|
+
##### [add_touch_actions](https://github.com/appium/ruby_lib/blob/24660355c3fa5e5e8691922e1570021fce90b96b/lib/appium_lib/device/device.rb#L465)
|
1147
1147
|
|
1148
1148
|
> def add_touch_actions
|
1149
1149
|
|
@@ -1151,7 +1151,7 @@ find_element/s_with_appium with their accessibility_id
|
|
1151
1151
|
|
1152
1152
|
--
|
1153
1153
|
|
1154
|
-
##### [add_ime_actions](https://github.com/appium/ruby_lib/blob/
|
1154
|
+
##### [add_ime_actions](https://github.com/appium/ruby_lib/blob/24660355c3fa5e5e8691922e1570021fce90b96b/lib/appium_lib/device/device.rb#L488)
|
1155
1155
|
|
1156
1156
|
> def add_ime_actions
|
1157
1157
|
|
@@ -1159,7 +1159,7 @@ find_element/s_with_appium with their accessibility_id
|
|
1159
1159
|
|
1160
1160
|
--
|
1161
1161
|
|
1162
|
-
##### [set_context](https://github.com/appium/ruby_lib/blob/
|
1162
|
+
##### [set_context](https://github.com/appium/ruby_lib/blob/24660355c3fa5e5e8691922e1570021fce90b96b/lib/appium_lib/device/device.rb#L563)
|
1163
1163
|
|
1164
1164
|
> def set_context
|
1165
1165
|
|
@@ -1174,7 +1174,7 @@ __Parameters:__
|
|
1174
1174
|
|
1175
1175
|
--
|
1176
1176
|
|
1177
|
-
##### [current_context](https://github.com/appium/ruby_lib/blob/
|
1177
|
+
##### [current_context](https://github.com/appium/ruby_lib/blob/24660355c3fa5e5e8691922e1570021fce90b96b/lib/appium_lib/device/device.rb#L571)
|
1178
1178
|
|
1179
1179
|
> def current_context
|
1180
1180
|
|
@@ -1186,7 +1186,7 @@ __Returns:__
|
|
1186
1186
|
|
1187
1187
|
--
|
1188
1188
|
|
1189
|
-
##### [available_contexts](https://github.com/appium/ruby_lib/blob/
|
1189
|
+
##### [available_contexts](https://github.com/appium/ruby_lib/blob/24660355c3fa5e5e8691922e1570021fce90b96b/lib/appium_lib/device/device.rb#L574)
|
1190
1190
|
|
1191
1191
|
> def available_contexts
|
1192
1192
|
|
@@ -1198,7 +1198,7 @@ __Returns:__
|
|
1198
1198
|
|
1199
1199
|
--
|
1200
1200
|
|
1201
|
-
##### [within_context](https://github.com/appium/ruby_lib/blob/
|
1201
|
+
##### [within_context](https://github.com/appium/ruby_lib/blob/24660355c3fa5e5e8691922e1570021fce90b96b/lib/appium_lib/device/device.rb#L584)
|
1202
1202
|
|
1203
1203
|
> def within_context(context)
|
1204
1204
|
|
@@ -1214,7 +1214,7 @@ __Parameters:__
|
|
1214
1214
|
|
1215
1215
|
--
|
1216
1216
|
|
1217
|
-
##### [switch_to_default_context](https://github.com/appium/ruby_lib/blob/
|
1217
|
+
##### [switch_to_default_context](https://github.com/appium/ruby_lib/blob/24660355c3fa5e5e8691922e1570021fce90b96b/lib/appium_lib/device/device.rb#L592)
|
1218
1218
|
|
1219
1219
|
> def switch_to_default_context
|
1220
1220
|
|
@@ -1222,7 +1222,7 @@ Change to the default context. This is equivalent to `set_context nil`.
|
|
1222
1222
|
|
1223
1223
|
--
|
1224
1224
|
|
1225
|
-
##### [pinch](https://github.com/appium/ruby_lib/blob/
|
1225
|
+
##### [pinch](https://github.com/appium/ruby_lib/blob/24660355c3fa5e5e8691922e1570021fce90b96b/lib/appium_lib/device/multi_touch.rb#L28)
|
1226
1226
|
|
1227
1227
|
> def pinch(percentage = 25, auto_perform = true)
|
1228
1228
|
|
@@ -1241,7 +1241,7 @@ __Parameters:__
|
|
1241
1241
|
|
1242
1242
|
--
|
1243
1243
|
|
1244
|
-
##### [zoom](https://github.com/appium/ruby_lib/blob/
|
1244
|
+
##### [zoom](https://github.com/appium/ruby_lib/blob/24660355c3fa5e5e8691922e1570021fce90b96b/lib/appium_lib/device/multi_touch.rb#L57)
|
1245
1245
|
|
1246
1246
|
> def zoom(percentage = 200, auto_perform = true)
|
1247
1247
|
|
@@ -1260,7 +1260,7 @@ __Parameters:__
|
|
1260
1260
|
|
1261
1261
|
--
|
1262
1262
|
|
1263
|
-
##### [pinch_for_xcuitest](https://github.com/appium/ruby_lib/blob/
|
1263
|
+
##### [pinch_for_xcuitest](https://github.com/appium/ruby_lib/blob/24660355c3fa5e5e8691922e1570021fce90b96b/lib/appium_lib/device/multi_touch.rb#L79)
|
1264
1264
|
|
1265
1265
|
> def pinch_for_xcuitest(rate)
|
1266
1266
|
|
@@ -1268,7 +1268,7 @@ __Parameters:__
|
|
1268
1268
|
|
1269
1269
|
--
|
1270
1270
|
|
1271
|
-
##### [pinch_android](https://github.com/appium/ruby_lib/blob/
|
1271
|
+
##### [pinch_android](https://github.com/appium/ruby_lib/blob/24660355c3fa5e5e8691922e1570021fce90b96b/lib/appium_lib/device/multi_touch.rb#L94)
|
1272
1272
|
|
1273
1273
|
> def pinch_android(rate)
|
1274
1274
|
|
@@ -1276,7 +1276,7 @@ __Parameters:__
|
|
1276
1276
|
|
1277
1277
|
--
|
1278
1278
|
|
1279
|
-
##### [pinch_ios](https://github.com/appium/ruby_lib/blob/
|
1279
|
+
##### [pinch_ios](https://github.com/appium/ruby_lib/blob/24660355c3fa5e5e8691922e1570021fce90b96b/lib/appium_lib/device/multi_touch.rb#L108)
|
1280
1280
|
|
1281
1281
|
> def pinch_ios(rate)
|
1282
1282
|
|
@@ -1284,7 +1284,7 @@ __Parameters:__
|
|
1284
1284
|
|
1285
1285
|
--
|
1286
1286
|
|
1287
|
-
##### [zoom_for_xcuitest](https://github.com/appium/ruby_lib/blob/
|
1287
|
+
##### [zoom_for_xcuitest](https://github.com/appium/ruby_lib/blob/24660355c3fa5e5e8691922e1570021fce90b96b/lib/appium_lib/device/multi_touch.rb#L122)
|
1288
1288
|
|
1289
1289
|
> def zoom_for_xcuitest(rate)
|
1290
1290
|
|
@@ -1292,7 +1292,7 @@ __Parameters:__
|
|
1292
1292
|
|
1293
1293
|
--
|
1294
1294
|
|
1295
|
-
##### [zoom_android](https://github.com/appium/ruby_lib/blob/
|
1295
|
+
##### [zoom_android](https://github.com/appium/ruby_lib/blob/24660355c3fa5e5e8691922e1570021fce90b96b/lib/appium_lib/device/multi_touch.rb#L137)
|
1296
1296
|
|
1297
1297
|
> def zoom_android(rate)
|
1298
1298
|
|
@@ -1300,7 +1300,7 @@ __Parameters:__
|
|
1300
1300
|
|
1301
1301
|
--
|
1302
1302
|
|
1303
|
-
##### [zoom_ios](https://github.com/appium/ruby_lib/blob/
|
1303
|
+
##### [zoom_ios](https://github.com/appium/ruby_lib/blob/24660355c3fa5e5e8691922e1570021fce90b96b/lib/appium_lib/device/multi_touch.rb#L151)
|
1304
1304
|
|
1305
1305
|
> def zoom_ios(rate)
|
1306
1306
|
|
@@ -1308,7 +1308,7 @@ __Parameters:__
|
|
1308
1308
|
|
1309
1309
|
--
|
1310
1310
|
|
1311
|
-
##### [actions](https://github.com/appium/ruby_lib/blob/
|
1311
|
+
##### [actions](https://github.com/appium/ruby_lib/blob/24660355c3fa5e5e8691922e1570021fce90b96b/lib/appium_lib/device/multi_touch.rb#L166)
|
1312
1312
|
|
1313
1313
|
> def actions
|
1314
1314
|
|
@@ -1316,7 +1316,7 @@ self
|
|
1316
1316
|
|
1317
1317
|
--
|
1318
1318
|
|
1319
|
-
##### [initialize](https://github.com/appium/ruby_lib/blob/
|
1319
|
+
##### [initialize](https://github.com/appium/ruby_lib/blob/24660355c3fa5e5e8691922e1570021fce90b96b/lib/appium_lib/device/multi_touch.rb#L169)
|
1320
1320
|
|
1321
1321
|
> def initialize
|
1322
1322
|
|
@@ -1328,7 +1328,7 @@ __Returns:__
|
|
1328
1328
|
|
1329
1329
|
--
|
1330
1330
|
|
1331
|
-
##### [add](https://github.com/appium/ruby_lib/blob/
|
1331
|
+
##### [add](https://github.com/appium/ruby_lib/blob/24660355c3fa5e5e8691922e1570021fce90b96b/lib/appium_lib/device/multi_touch.rb#L175)
|
1332
1332
|
|
1333
1333
|
> def add(chain)
|
1334
1334
|
|
@@ -1340,7 +1340,7 @@ __Parameters:__
|
|
1340
1340
|
|
1341
1341
|
--
|
1342
1342
|
|
1343
|
-
##### [perform](https://github.com/appium/ruby_lib/blob/
|
1343
|
+
##### [perform](https://github.com/appium/ruby_lib/blob/24660355c3fa5e5e8691922e1570021fce90b96b/lib/appium_lib/device/multi_touch.rb#L180)
|
1344
1344
|
|
1345
1345
|
> def perform
|
1346
1346
|
|
@@ -1348,7 +1348,7 @@ Ask Appium to perform the actions
|
|
1348
1348
|
|
1349
1349
|
--
|
1350
1350
|
|
1351
|
-
##### [ACTIONS](https://github.com/appium/ruby_lib/blob/
|
1351
|
+
##### [ACTIONS](https://github.com/appium/ruby_lib/blob/24660355c3fa5e5e8691922e1570021fce90b96b/lib/appium_lib/device/touch_actions.rb#L20)
|
1352
1352
|
|
1353
1353
|
> ACTIONS = [:move_to, :long_press, :double_tap, :two_finger_tap, :press, :release, :tap, :wait, :perform].freeze
|
1354
1354
|
|
@@ -1356,7 +1356,7 @@ Ask Appium to perform the actions
|
|
1356
1356
|
|
1357
1357
|
--
|
1358
1358
|
|
1359
|
-
##### [COMPLEX_ACTIONS](https://github.com/appium/ruby_lib/blob/
|
1359
|
+
##### [COMPLEX_ACTIONS](https://github.com/appium/ruby_lib/blob/24660355c3fa5e5e8691922e1570021fce90b96b/lib/appium_lib/device/touch_actions.rb#L21)
|
1360
1360
|
|
1361
1361
|
> COMPLEX_ACTIONS = [:swipe].freeze
|
1362
1362
|
|
@@ -1364,7 +1364,7 @@ Ask Appium to perform the actions
|
|
1364
1364
|
|
1365
1365
|
--
|
1366
1366
|
|
1367
|
-
##### [actions](https://github.com/appium/ruby_lib/blob/
|
1367
|
+
##### [actions](https://github.com/appium/ruby_lib/blob/24660355c3fa5e5e8691922e1570021fce90b96b/lib/appium_lib/device/touch_actions.rb#L35)
|
1368
1368
|
|
1369
1369
|
> def actions
|
1370
1370
|
|
@@ -1372,7 +1372,7 @@ Returns the value of attribute actions
|
|
1372
1372
|
|
1373
1373
|
--
|
1374
1374
|
|
1375
|
-
##### [initialize](https://github.com/appium/ruby_lib/blob/
|
1375
|
+
##### [initialize](https://github.com/appium/ruby_lib/blob/24660355c3fa5e5e8691922e1570021fce90b96b/lib/appium_lib/device/touch_actions.rb#L37)
|
1376
1376
|
|
1377
1377
|
> def initialize
|
1378
1378
|
|
@@ -1384,7 +1384,7 @@ __Returns:__
|
|
1384
1384
|
|
1385
1385
|
--
|
1386
1386
|
|
1387
|
-
##### [move_to](https://github.com/appium/ruby_lib/blob/
|
1387
|
+
##### [move_to](https://github.com/appium/ruby_lib/blob/24660355c3fa5e5e8691922e1570021fce90b96b/lib/appium_lib/device/touch_actions.rb#L48)
|
1388
1388
|
|
1389
1389
|
> def move_to(opts)
|
1390
1390
|
|
@@ -1398,7 +1398,7 @@ __Parameters:__
|
|
1398
1398
|
|
1399
1399
|
--
|
1400
1400
|
|
1401
|
-
##### [long_press](https://github.com/appium/ruby_lib/blob/
|
1401
|
+
##### [long_press](https://github.com/appium/ruby_lib/blob/24660355c3fa5e5e8691922e1570021fce90b96b/lib/appium_lib/device/touch_actions.rb#L62)
|
1402
1402
|
|
1403
1403
|
> def long_press(opts)
|
1404
1404
|
|
@@ -1419,7 +1419,7 @@ __Parameters:__
|
|
1419
1419
|
|
1420
1420
|
--
|
1421
1421
|
|
1422
|
-
##### [press](https://github.com/appium/ruby_lib/blob/
|
1422
|
+
##### [press](https://github.com/appium/ruby_lib/blob/24660355c3fa5e5e8691922e1570021fce90b96b/lib/appium_lib/device/touch_actions.rb#L74)
|
1423
1423
|
|
1424
1424
|
> def press(opts)
|
1425
1425
|
|
@@ -1432,7 +1432,7 @@ __Parameters:__
|
|
1432
1432
|
|
1433
1433
|
--
|
1434
1434
|
|
1435
|
-
##### [release](https://github.com/appium/ruby_lib/blob/
|
1435
|
+
##### [release](https://github.com/appium/ruby_lib/blob/24660355c3fa5e5e8691922e1570021fce90b96b/lib/appium_lib/device/touch_actions.rb#L85)
|
1436
1436
|
|
1437
1437
|
> def release(opts = nil)
|
1438
1438
|
|
@@ -1444,7 +1444,7 @@ __Parameters:__
|
|
1444
1444
|
|
1445
1445
|
--
|
1446
1446
|
|
1447
|
-
##### [tap](https://github.com/appium/ruby_lib/blob/
|
1447
|
+
##### [tap](https://github.com/appium/ruby_lib/blob/24660355c3fa5e5e8691922e1570021fce90b96b/lib/appium_lib/device/touch_actions.rb#L97)
|
1448
1448
|
|
1449
1449
|
> def tap(opts)
|
1450
1450
|
|
@@ -1457,7 +1457,7 @@ __Parameters:__
|
|
1457
1457
|
|
1458
1458
|
--
|
1459
1459
|
|
1460
|
-
##### [double_tap](https://github.com/appium/ruby_lib/blob/
|
1460
|
+
##### [double_tap](https://github.com/appium/ruby_lib/blob/24660355c3fa5e5e8691922e1570021fce90b96b/lib/appium_lib/device/touch_actions.rb#L110)
|
1461
1461
|
|
1462
1462
|
> def double_tap(opts)
|
1463
1463
|
|
@@ -1469,7 +1469,7 @@ __Parameters:__
|
|
1469
1469
|
|
1470
1470
|
--
|
1471
1471
|
|
1472
|
-
##### [two_finger_tap](https://github.com/appium/ruby_lib/blob/
|
1472
|
+
##### [two_finger_tap](https://github.com/appium/ruby_lib/blob/24660355c3fa5e5e8691922e1570021fce90b96b/lib/appium_lib/device/touch_actions.rb#L121)
|
1473
1473
|
|
1474
1474
|
> def two_finger_tap(opts)
|
1475
1475
|
|
@@ -1481,7 +1481,7 @@ __Parameters:__
|
|
1481
1481
|
|
1482
1482
|
--
|
1483
1483
|
|
1484
|
-
##### [wait](https://github.com/appium/ruby_lib/blob/
|
1484
|
+
##### [wait](https://github.com/appium/ruby_lib/blob/24660355c3fa5e5e8691922e1570021fce90b96b/lib/appium_lib/device/touch_actions.rb#L129)
|
1485
1485
|
|
1486
1486
|
> def wait(milliseconds)
|
1487
1487
|
|
@@ -1493,7 +1493,7 @@ __Parameters:__
|
|
1493
1493
|
|
1494
1494
|
--
|
1495
1495
|
|
1496
|
-
##### [swipe](https://github.com/appium/ruby_lib/blob/
|
1496
|
+
##### [swipe](https://github.com/appium/ruby_lib/blob/24660355c3fa5e5e8691922e1570021fce90b96b/lib/appium_lib/device/touch_actions.rb#L152)
|
1497
1497
|
|
1498
1498
|
> def swipe(opts, ele = nil)
|
1499
1499
|
|
@@ -1514,7 +1514,7 @@ __Parameters:__
|
|
1514
1514
|
|
1515
1515
|
--
|
1516
1516
|
|
1517
|
-
##### [perform](https://github.com/appium/ruby_lib/blob/
|
1517
|
+
##### [perform](https://github.com/appium/ruby_lib/blob/24660355c3fa5e5e8691922e1570021fce90b96b/lib/appium_lib/device/touch_actions.rb#L177)
|
1518
1518
|
|
1519
1519
|
> def perform
|
1520
1520
|
|
@@ -1522,7 +1522,7 @@ Ask the driver to perform all actions in this action chain.
|
|
1522
1522
|
|
1523
1523
|
--
|
1524
1524
|
|
1525
|
-
##### [cancel](https://github.com/appium/ruby_lib/blob/
|
1525
|
+
##### [cancel](https://github.com/appium/ruby_lib/blob/24660355c3fa5e5e8691922e1570021fce90b96b/lib/appium_lib/device/touch_actions.rb#L184)
|
1526
1526
|
|
1527
1527
|
> def cancel
|
1528
1528
|
|
@@ -1530,7 +1530,7 @@ Does nothing, currently.
|
|
1530
1530
|
|
1531
1531
|
--
|
1532
1532
|
|
1533
|
-
##### [swipe_coordinates](https://github.com/appium/ruby_lib/blob/
|
1533
|
+
##### [swipe_coordinates](https://github.com/appium/ruby_lib/blob/24660355c3fa5e5e8691922e1570021fce90b96b/lib/appium_lib/device/touch_actions.rb#L190)
|
1534
1534
|
|
1535
1535
|
> def swipe_coordinates(end_x: nil, end_y: nil, offset_x: nil, offset_y: nil)
|
1536
1536
|
|
@@ -1538,7 +1538,7 @@ Does nothing, currently.
|
|
1538
1538
|
|
1539
1539
|
--
|
1540
1540
|
|
1541
|
-
##### [chain_method](https://github.com/appium/ruby_lib/blob/
|
1541
|
+
##### [chain_method](https://github.com/appium/ruby_lib/blob/24660355c3fa5e5e8691922e1570021fce90b96b/lib/appium_lib/device/touch_actions.rb#L208)
|
1542
1542
|
|
1543
1543
|
> def chain_method(method, args = nil)
|
1544
1544
|
|
@@ -1546,7 +1546,7 @@ Does nothing, currently.
|
|
1546
1546
|
|
1547
1547
|
--
|
1548
1548
|
|
1549
|
-
##### [args_with_ele_ref](https://github.com/appium/ruby_lib/blob/
|
1549
|
+
##### [args_with_ele_ref](https://github.com/appium/ruby_lib/blob/24660355c3fa5e5e8691922e1570021fce90b96b/lib/appium_lib/device/touch_actions.rb#L214)
|
1550
1550
|
|
1551
1551
|
> def args_with_ele_ref(args)
|
1552
1552
|
|
@@ -1554,7 +1554,7 @@ Does nothing, currently.
|
|
1554
1554
|
|
1555
1555
|
--
|
1556
1556
|
|
1557
|
-
##### [_generic_wait](https://github.com/appium/ruby_lib/blob/
|
1557
|
+
##### [_generic_wait](https://github.com/appium/ruby_lib/blob/24660355c3fa5e5e8691922e1570021fce90b96b/lib/appium_lib/common/wait.rb#L9)
|
1558
1558
|
|
1559
1559
|
> def _generic_wait(opts = {})
|
1560
1560
|
|
@@ -1563,7 +1563,7 @@ https://github.com/SeleniumHQ/selenium/blob/cf501dda3f0ed12233de51ce8170c0e8090f
|
|
1563
1563
|
|
1564
1564
|
--
|
1565
1565
|
|
1566
|
-
##### [_process_wait_opts](https://github.com/appium/ruby_lib/blob/
|
1566
|
+
##### [_process_wait_opts](https://github.com/appium/ruby_lib/blob/24660355c3fa5e5e8691922e1570021fce90b96b/lib/appium_lib/common/wait.rb#L48)
|
1567
1567
|
|
1568
1568
|
> def _process_wait_opts(opts)
|
1569
1569
|
|
@@ -1571,7 +1571,7 @@ process opts before calling _generic_wait
|
|
1571
1571
|
|
1572
1572
|
--
|
1573
1573
|
|
1574
|
-
##### [wait_true](https://github.com/appium/ruby_lib/blob/
|
1574
|
+
##### [wait_true](https://github.com/appium/ruby_lib/blob/24660355c3fa5e5e8691922e1570021fce90b96b/lib/appium_lib/common/wait.rb#L69)
|
1575
1575
|
|
1576
1576
|
> def wait_true(opts = {}, &block)
|
1577
1577
|
|
@@ -1591,7 +1591,7 @@ __Parameters:__
|
|
1591
1591
|
|
1592
1592
|
--
|
1593
1593
|
|
1594
|
-
##### [wait](https://github.com/appium/ruby_lib/blob/
|
1594
|
+
##### [wait](https://github.com/appium/ruby_lib/blob/24660355c3fa5e5e8691922e1570021fce90b96b/lib/appium_lib/common/wait.rb#L87)
|
1595
1595
|
|
1596
1596
|
> def wait(opts = {}, &block)
|
1597
1597
|
|
@@ -1609,7 +1609,7 @@ __Parameters:__
|
|
1609
1609
|
|
1610
1610
|
--
|
1611
1611
|
|
1612
|
-
##### [ignore](https://github.com/appium/ruby_lib/blob/
|
1612
|
+
##### [ignore](https://github.com/appium/ruby_lib/blob/24660355c3fa5e5e8691922e1570021fce90b96b/lib/appium_lib/common/helper.rb#L24)
|
1613
1613
|
|
1614
1614
|
> def ignore
|
1615
1615
|
|
@@ -1617,7 +1617,7 @@ Return yield and ignore any exceptions.
|
|
1617
1617
|
|
1618
1618
|
--
|
1619
1619
|
|
1620
|
-
##### [back](https://github.com/appium/ruby_lib/blob/
|
1620
|
+
##### [back](https://github.com/appium/ruby_lib/blob/24660355c3fa5e5e8691922e1570021fce90b96b/lib/appium_lib/common/helper.rb#L31)
|
1621
1621
|
|
1622
1622
|
> def back
|
1623
1623
|
|
@@ -1629,7 +1629,7 @@ __Returns:__
|
|
1629
1629
|
|
1630
1630
|
--
|
1631
1631
|
|
1632
|
-
##### [session_id](https://github.com/appium/ruby_lib/blob/
|
1632
|
+
##### [session_id](https://github.com/appium/ruby_lib/blob/24660355c3fa5e5e8691922e1570021fce90b96b/lib/appium_lib/common/helper.rb#L36)
|
1633
1633
|
|
1634
1634
|
> def session_id
|
1635
1635
|
|
@@ -1637,7 +1637,7 @@ For Sauce Labs reporting. Returns the current session id.
|
|
1637
1637
|
|
1638
1638
|
--
|
1639
1639
|
|
1640
|
-
##### [xpath](https://github.com/appium/ruby_lib/blob/
|
1640
|
+
##### [xpath](https://github.com/appium/ruby_lib/blob/24660355c3fa5e5e8691922e1570021fce90b96b/lib/appium_lib/common/helper.rb#L44)
|
1641
1641
|
|
1642
1642
|
> def xpath(xpath_str)
|
1643
1643
|
|
@@ -1653,7 +1653,7 @@ __Returns:__
|
|
1653
1653
|
|
1654
1654
|
--
|
1655
1655
|
|
1656
|
-
##### [xpaths](https://github.com/appium/ruby_lib/blob/
|
1656
|
+
##### [xpaths](https://github.com/appium/ruby_lib/blob/24660355c3fa5e5e8691922e1570021fce90b96b/lib/appium_lib/common/helper.rb#L52)
|
1657
1657
|
|
1658
1658
|
> def xpaths(xpath_str)
|
1659
1659
|
|
@@ -1669,7 +1669,7 @@ __Returns:__
|
|
1669
1669
|
|
1670
1670
|
--
|
1671
1671
|
|
1672
|
-
##### [_print_source](https://github.com/appium/ruby_lib/blob/
|
1672
|
+
##### [_print_source](https://github.com/appium/ruby_lib/blob/24660355c3fa5e5e8691922e1570021fce90b96b/lib/appium_lib/common/helper.rb#L56)
|
1673
1673
|
|
1674
1674
|
> def _print_source(source)
|
1675
1675
|
|
@@ -1677,7 +1677,7 @@ __Returns:__
|
|
1677
1677
|
|
1678
1678
|
--
|
1679
1679
|
|
1680
|
-
##### [result](https://github.com/appium/ruby_lib/blob/
|
1680
|
+
##### [result](https://github.com/appium/ruby_lib/blob/24660355c3fa5e5e8691922e1570021fce90b96b/lib/appium_lib/common/helper.rb#L69)
|
1681
1681
|
|
1682
1682
|
> def result
|
1683
1683
|
|
@@ -1685,7 +1685,7 @@ Returns the value of attribute result
|
|
1685
1685
|
|
1686
1686
|
--
|
1687
1687
|
|
1688
|
-
##### [initialize](https://github.com/appium/ruby_lib/blob/
|
1688
|
+
##### [initialize](https://github.com/appium/ruby_lib/blob/24660355c3fa5e5e8691922e1570021fce90b96b/lib/appium_lib/common/helper.rb#L71)
|
1689
1689
|
|
1690
1690
|
> def initialize
|
1691
1691
|
|
@@ -1697,7 +1697,7 @@ __Returns:__
|
|
1697
1697
|
|
1698
1698
|
--
|
1699
1699
|
|
1700
|
-
##### [reset](https://github.com/appium/ruby_lib/blob/
|
1700
|
+
##### [reset](https://github.com/appium/ruby_lib/blob/24660355c3fa5e5e8691922e1570021fce90b96b/lib/appium_lib/common/helper.rb#L75)
|
1701
1701
|
|
1702
1702
|
> def reset
|
1703
1703
|
|
@@ -1705,7 +1705,7 @@ __Returns:__
|
|
1705
1705
|
|
1706
1706
|
--
|
1707
1707
|
|
1708
|
-
##### [start_element](https://github.com/appium/ruby_lib/blob/
|
1708
|
+
##### [start_element](https://github.com/appium/ruby_lib/blob/24660355c3fa5e5e8691922e1570021fce90b96b/lib/appium_lib/common/helper.rb#L80)
|
1709
1709
|
|
1710
1710
|
> def start_element(name, attrs = [])
|
1711
1711
|
|
@@ -1713,7 +1713,7 @@ http://nokogiri.org/Nokogiri/XML/SAX/Document.html
|
|
1713
1713
|
|
1714
1714
|
--
|
1715
1715
|
|
1716
|
-
##### [formatted_result](https://github.com/appium/ruby_lib/blob/
|
1716
|
+
##### [formatted_result](https://github.com/appium/ruby_lib/blob/24660355c3fa5e5e8691922e1570021fce90b96b/lib/appium_lib/common/helper.rb#L86)
|
1717
1717
|
|
1718
1718
|
> def formatted_result
|
1719
1719
|
|
@@ -1721,7 +1721,7 @@ http://nokogiri.org/Nokogiri/XML/SAX/Document.html
|
|
1721
1721
|
|
1722
1722
|
--
|
1723
1723
|
|
1724
|
-
##### [get_page_class](https://github.com/appium/ruby_lib/blob/
|
1724
|
+
##### [get_page_class](https://github.com/appium/ruby_lib/blob/24660355c3fa5e5e8691922e1570021fce90b96b/lib/appium_lib/common/helper.rb#L97)
|
1725
1725
|
|
1726
1726
|
> def get_page_class
|
1727
1727
|
|
@@ -1729,7 +1729,7 @@ Returns a string of class counts of visible elements.
|
|
1729
1729
|
|
1730
1730
|
--
|
1731
1731
|
|
1732
|
-
##### [page_class](https://github.com/appium/ruby_lib/blob/
|
1732
|
+
##### [page_class](https://github.com/appium/ruby_lib/blob/24660355c3fa5e5e8691922e1570021fce90b96b/lib/appium_lib/common/helper.rb#L108)
|
1733
1733
|
|
1734
1734
|
> def page_class
|
1735
1735
|
|
@@ -1738,7 +1738,7 @@ Useful for appium_console.
|
|
1738
1738
|
|
1739
1739
|
--
|
1740
1740
|
|
1741
|
-
##### [px_to_window_rel](https://github.com/appium/ruby_lib/blob/
|
1741
|
+
##### [px_to_window_rel](https://github.com/appium/ruby_lib/blob/24660355c3fa5e5e8691922e1570021fce90b96b/lib/appium_lib/common/helper.rb#L118)
|
1742
1742
|
|
1743
1743
|
> def px_to_window_rel(opts = {})
|
1744
1744
|
|
@@ -1750,7 +1750,7 @@ px_to_window_rel x: 50, y: 150
|
|
1750
1750
|
|
1751
1751
|
--
|
1752
1752
|
|
1753
|
-
##### [xml_keys](https://github.com/appium/ruby_lib/blob/
|
1753
|
+
##### [xml_keys](https://github.com/appium/ruby_lib/blob/24660355c3fa5e5e8691922e1570021fce90b96b/lib/appium_lib/common/helper.rb#L137)
|
1754
1754
|
|
1755
1755
|
> def xml_keys(target)
|
1756
1756
|
|
@@ -1766,7 +1766,7 @@ __Returns:__
|
|
1766
1766
|
|
1767
1767
|
--
|
1768
1768
|
|
1769
|
-
##### [xml_values](https://github.com/appium/ruby_lib/blob/
|
1769
|
+
##### [xml_values](https://github.com/appium/ruby_lib/blob/24660355c3fa5e5e8691922e1570021fce90b96b/lib/appium_lib/common/helper.rb#L145)
|
1770
1770
|
|
1771
1771
|
> def xml_values(target)
|
1772
1772
|
|
@@ -1782,7 +1782,7 @@ __Returns:__
|
|
1782
1782
|
|
1783
1783
|
--
|
1784
1784
|
|
1785
|
-
##### [resolve_id](https://github.com/appium/ruby_lib/blob/
|
1785
|
+
##### [resolve_id](https://github.com/appium/ruby_lib/blob/24660355c3fa5e5e8691922e1570021fce90b96b/lib/appium_lib/common/helper.rb#L153)
|
1786
1786
|
|
1787
1787
|
> def resolve_id(id)
|
1788
1788
|
|
@@ -1798,7 +1798,7 @@ __Returns:__
|
|
1798
1798
|
|
1799
1799
|
--
|
1800
1800
|
|
1801
|
-
##### [filter](https://github.com/appium/ruby_lib/blob/
|
1801
|
+
##### [filter](https://github.com/appium/ruby_lib/blob/24660355c3fa5e5e8691922e1570021fce90b96b/lib/appium_lib/common/helper.rb#L159)
|
1802
1802
|
|
1803
1803
|
> def filter
|
1804
1804
|
|
@@ -1806,7 +1806,7 @@ Returns the value of attribute filter
|
|
1806
1806
|
|
1807
1807
|
--
|
1808
1808
|
|
1809
|
-
##### [filter=](https://github.com/appium/ruby_lib/blob/
|
1809
|
+
##### [filter=](https://github.com/appium/ruby_lib/blob/24660355c3fa5e5e8691922e1570021fce90b96b/lib/appium_lib/common/helper.rb#L162)
|
1810
1810
|
|
1811
1811
|
> def filter=(value)
|
1812
1812
|
|
@@ -1814,7 +1814,7 @@ convert to string to support symbols
|
|
1814
1814
|
|
1815
1815
|
--
|
1816
1816
|
|
1817
|
-
##### [initialize](https://github.com/appium/ruby_lib/blob/
|
1817
|
+
##### [initialize](https://github.com/appium/ruby_lib/blob/24660355c3fa5e5e8691922e1570021fce90b96b/lib/appium_lib/common/helper.rb#L168)
|
1818
1818
|
|
1819
1819
|
> def initialize
|
1820
1820
|
|
@@ -1826,7 +1826,7 @@ __Returns:__
|
|
1826
1826
|
|
1827
1827
|
--
|
1828
1828
|
|
1829
|
-
##### [reset](https://github.com/appium/ruby_lib/blob/
|
1829
|
+
##### [reset](https://github.com/appium/ruby_lib/blob/24660355c3fa5e5e8691922e1570021fce90b96b/lib/appium_lib/common/helper.rb#L173)
|
1830
1830
|
|
1831
1831
|
> def reset
|
1832
1832
|
|
@@ -1834,7 +1834,7 @@ __Returns:__
|
|
1834
1834
|
|
1835
1835
|
--
|
1836
1836
|
|
1837
|
-
##### [result](https://github.com/appium/ruby_lib/blob/
|
1837
|
+
##### [result](https://github.com/appium/ruby_lib/blob/24660355c3fa5e5e8691922e1570021fce90b96b/lib/appium_lib/common/helper.rb#L179)
|
1838
1838
|
|
1839
1839
|
> def result
|
1840
1840
|
|
@@ -1842,7 +1842,7 @@ __Returns:__
|
|
1842
1842
|
|
1843
1843
|
--
|
1844
1844
|
|
1845
|
-
##### [start_element](https://github.com/appium/ruby_lib/blob/
|
1845
|
+
##### [start_element](https://github.com/appium/ruby_lib/blob/24660355c3fa5e5e8691922e1570021fce90b96b/lib/appium_lib/common/helper.rb#L195)
|
1846
1846
|
|
1847
1847
|
> def start_element(name, attrs = [])
|
1848
1848
|
|
@@ -1850,7 +1850,7 @@ __Returns:__
|
|
1850
1850
|
|
1851
1851
|
--
|
1852
1852
|
|
1853
|
-
##### [end_element](https://github.com/appium/ruby_lib/blob/
|
1853
|
+
##### [end_element](https://github.com/appium/ruby_lib/blob/24660355c3fa5e5e8691922e1570021fce90b96b/lib/appium_lib/common/helper.rb#L204)
|
1854
1854
|
|
1855
1855
|
> def end_element(name)
|
1856
1856
|
|
@@ -1858,7 +1858,7 @@ __Returns:__
|
|
1858
1858
|
|
1859
1859
|
--
|
1860
1860
|
|
1861
|
-
##### [characters](https://github.com/appium/ruby_lib/blob/
|
1861
|
+
##### [characters](https://github.com/appium/ruby_lib/blob/24660355c3fa5e5e8691922e1570021fce90b96b/lib/appium_lib/common/helper.rb#L210)
|
1862
1862
|
|
1863
1863
|
> def characters(chars)
|
1864
1864
|
|
@@ -1866,7 +1866,7 @@ __Returns:__
|
|
1866
1866
|
|
1867
1867
|
--
|
1868
1868
|
|
1869
|
-
##### [_no_such_element](https://github.com/appium/ruby_lib/blob/
|
1869
|
+
##### [_no_such_element](https://github.com/appium/ruby_lib/blob/24660355c3fa5e5e8691922e1570021fce90b96b/lib/appium_lib/common/helper.rb#L217)
|
1870
1870
|
|
1871
1871
|
> def _no_such_element
|
1872
1872
|
|
@@ -1874,7 +1874,7 @@ __Returns:__
|
|
1874
1874
|
|
1875
1875
|
--
|
1876
1876
|
|
1877
|
-
##### [COMMAND_NO_ARG](https://github.com/appium/ruby_lib/blob/
|
1877
|
+
##### [COMMAND_NO_ARG](https://github.com/appium/ruby_lib/blob/24660355c3fa5e5e8691922e1570021fce90b96b/lib/appium_lib/common/command.rb#L4)
|
1878
1878
|
|
1879
1879
|
> COMMAND_NO_ARG = {
|
1880
1880
|
|
@@ -1882,7 +1882,7 @@ __Returns:__
|
|
1882
1882
|
|
1883
1883
|
--
|
1884
1884
|
|
1885
|
-
##### [COMMAND](https://github.com/appium/ruby_lib/blob/
|
1885
|
+
##### [COMMAND](https://github.com/appium/ruby_lib/blob/24660355c3fa5e5e8691922e1570021fce90b96b/lib/appium_lib/common/command.rb#L27)
|
1886
1886
|
|
1887
1887
|
> COMMAND = {
|
1888
1888
|
|
@@ -1890,7 +1890,7 @@ __Returns:__
|
|
1890
1890
|
|
1891
1891
|
--
|
1892
1892
|
|
1893
|
-
##### [window_size](https://github.com/appium/ruby_lib/blob/
|
1893
|
+
##### [window_size](https://github.com/appium/ruby_lib/blob/24660355c3fa5e5e8691922e1570021fce90b96b/lib/appium_lib/common/element/window.rb#L5)
|
1894
1894
|
|
1895
1895
|
> def window_size
|
1896
1896
|
|
@@ -1898,7 +1898,7 @@ Get the window's size
|
|
1898
1898
|
|
1899
1899
|
--
|
1900
1900
|
|
1901
|
-
##### [FINDERS](https://github.com/appium/ruby_lib/blob/
|
1901
|
+
##### [FINDERS](https://github.com/appium/ruby_lib/blob/24660355c3fa5e5e8691922e1570021fce90b96b/lib/appium_lib/common/search_context.rb#L5)
|
1902
1902
|
|
1903
1903
|
> FINDERS = {
|
1904
1904
|
|
@@ -1906,7 +1906,7 @@ rubocop:disable Style/MutableConstant
|
|
1906
1906
|
|
1907
1907
|
--
|
1908
1908
|
|
1909
|
-
##### [result](https://github.com/appium/ruby_lib/blob/
|
1909
|
+
##### [result](https://github.com/appium/ruby_lib/blob/24660355c3fa5e5e8691922e1570021fce90b96b/lib/appium_lib/android/helper.rb#L6) android
|
1910
1910
|
|
1911
1911
|
> def result
|
1912
1912
|
|
@@ -1914,7 +1914,7 @@ Returns the value of attribute result
|
|
1914
1914
|
|
1915
1915
|
--
|
1916
1916
|
|
1917
|
-
##### [keys](https://github.com/appium/ruby_lib/blob/
|
1917
|
+
##### [keys](https://github.com/appium/ruby_lib/blob/24660355c3fa5e5e8691922e1570021fce90b96b/lib/appium_lib/android/helper.rb#L6) android
|
1918
1918
|
|
1919
1919
|
> def keys
|
1920
1920
|
|
@@ -1922,7 +1922,7 @@ Returns the value of attribute keys
|
|
1922
1922
|
|
1923
1923
|
--
|
1924
1924
|
|
1925
|
-
##### [instance](https://github.com/appium/ruby_lib/blob/
|
1925
|
+
##### [instance](https://github.com/appium/ruby_lib/blob/24660355c3fa5e5e8691922e1570021fce90b96b/lib/appium_lib/android/helper.rb#L6) android
|
1926
1926
|
|
1927
1927
|
> def instance
|
1928
1928
|
|
@@ -1930,7 +1930,7 @@ Returns the value of attribute instance
|
|
1930
1930
|
|
1931
1931
|
--
|
1932
1932
|
|
1933
|
-
##### [filter](https://github.com/appium/ruby_lib/blob/
|
1933
|
+
##### [filter](https://github.com/appium/ruby_lib/blob/24660355c3fa5e5e8691922e1570021fce90b96b/lib/appium_lib/android/helper.rb#L6) android
|
1934
1934
|
|
1935
1935
|
> def filter
|
1936
1936
|
|
@@ -1938,7 +1938,7 @@ Returns the value of attribute filter
|
|
1938
1938
|
|
1939
1939
|
--
|
1940
1940
|
|
1941
|
-
##### [filter=](https://github.com/appium/ruby_lib/blob/
|
1941
|
+
##### [filter=](https://github.com/appium/ruby_lib/blob/24660355c3fa5e5e8691922e1570021fce90b96b/lib/appium_lib/android/helper.rb#L9) android
|
1942
1942
|
|
1943
1943
|
> def filter=(value)
|
1944
1944
|
|
@@ -1946,7 +1946,7 @@ convert to string to support symbols
|
|
1946
1946
|
|
1947
1947
|
--
|
1948
1948
|
|
1949
|
-
##### [initialize](https://github.com/appium/ruby_lib/blob/
|
1949
|
+
##### [initialize](https://github.com/appium/ruby_lib/blob/24660355c3fa5e5e8691922e1570021fce90b96b/lib/appium_lib/android/helper.rb#L15) android
|
1950
1950
|
|
1951
1951
|
> def initialize
|
1952
1952
|
|
@@ -1958,7 +1958,7 @@ __Returns:__
|
|
1958
1958
|
|
1959
1959
|
--
|
1960
1960
|
|
1961
|
-
##### [reset](https://github.com/appium/ruby_lib/blob/
|
1961
|
+
##### [reset](https://github.com/appium/ruby_lib/blob/24660355c3fa5e5e8691922e1570021fce90b96b/lib/appium_lib/android/helper.rb#L21) android
|
1962
1962
|
|
1963
1963
|
> def reset
|
1964
1964
|
|
@@ -1966,7 +1966,7 @@ __Returns:__
|
|
1966
1966
|
|
1967
1967
|
--
|
1968
1968
|
|
1969
|
-
##### [start_element](https://github.com/appium/ruby_lib/blob/
|
1969
|
+
##### [start_element](https://github.com/appium/ruby_lib/blob/24660355c3fa5e5e8691922e1570021fce90b96b/lib/appium_lib/android/helper.rb#L28) android
|
1970
1970
|
|
1971
1971
|
> def start_element(name, attrs = [])
|
1972
1972
|
|
@@ -1974,7 +1974,7 @@ http://nokogiri.org/Nokogiri/XML/SAX/Document.html
|
|
1974
1974
|
|
1975
1975
|
--
|
1976
1976
|
|
1977
|
-
##### [_fix_android_native_source](https://github.com/appium/ruby_lib/blob/
|
1977
|
+
##### [_fix_android_native_source](https://github.com/appium/ruby_lib/blob/24660355c3fa5e5e8691922e1570021fce90b96b/lib/appium_lib/android/helper.rb#L88) android
|
1978
1978
|
|
1979
1979
|
> def _fix_android_native_source(source)
|
1980
1980
|
|
@@ -1984,7 +1984,7 @@ https://code.google.com/p/android/issues/detail?id=74143
|
|
1984
1984
|
|
1985
1985
|
--
|
1986
1986
|
|
1987
|
-
##### [source](https://github.com/appium/ruby_lib/blob/
|
1987
|
+
##### [source](https://github.com/appium/ruby_lib/blob/24660355c3fa5e5e8691922e1570021fce90b96b/lib/appium_lib/android/helper.rb#L116) android
|
1988
1988
|
|
1989
1989
|
> def source
|
1990
1990
|
|
@@ -1996,7 +1996,7 @@ __Returns:__
|
|
1996
1996
|
|
1997
1997
|
--
|
1998
1998
|
|
1999
|
-
##### [get_android_inspect](https://github.com/appium/ruby_lib/blob/
|
1999
|
+
##### [get_android_inspect](https://github.com/appium/ruby_lib/blob/24660355c3fa5e5e8691922e1570021fce90b96b/lib/appium_lib/android/helper.rb#L126) android
|
2000
2000
|
|
2001
2001
|
> def get_android_inspect(class_name = false)
|
2002
2002
|
|
@@ -2015,7 +2015,7 @@ __Returns:__
|
|
2015
2015
|
|
2016
2016
|
--
|
2017
2017
|
|
2018
|
-
##### [page](https://github.com/appium/ruby_lib/blob/
|
2018
|
+
##### [page](https://github.com/appium/ruby_lib/blob/24660355c3fa5e5e8691922e1570021fce90b96b/lib/appium_lib/android/helper.rb#L152) android
|
2019
2019
|
|
2020
2020
|
> def page(opts = {})
|
2021
2021
|
|
@@ -2034,7 +2034,7 @@ __Returns:__
|
|
2034
2034
|
|
2035
2035
|
--
|
2036
2036
|
|
2037
|
-
##### [current_app](https://github.com/appium/ruby_lib/blob/
|
2037
|
+
##### [current_app](https://github.com/appium/ruby_lib/blob/24660355c3fa5e5e8691922e1570021fce90b96b/lib/appium_lib/android/helper.rb#L164) android
|
2038
2038
|
|
2039
2039
|
> def current_app
|
2040
2040
|
|
@@ -2044,7 +2044,7 @@ example line:
|
|
2044
2044
|
|
2045
2045
|
--
|
2046
2046
|
|
2047
|
-
##### [id](https://github.com/appium/ruby_lib/blob/
|
2047
|
+
##### [id](https://github.com/appium/ruby_lib/blob/24660355c3fa5e5e8691922e1570021fce90b96b/lib/appium_lib/android/helper.rb#L188) android
|
2048
2048
|
|
2049
2049
|
> def id(id)
|
2050
2050
|
|
@@ -2060,7 +2060,7 @@ __Returns:__
|
|
2060
2060
|
|
2061
2061
|
--
|
2062
2062
|
|
2063
|
-
##### [ids](https://github.com/appium/ruby_lib/blob/
|
2063
|
+
##### [ids](https://github.com/appium/ruby_lib/blob/24660355c3fa5e5e8691922e1570021fce90b96b/lib/appium_lib/android/helper.rb#L196) android
|
2064
2064
|
|
2065
2065
|
> def ids(id)
|
2066
2066
|
|
@@ -2076,7 +2076,7 @@ __Returns:__
|
|
2076
2076
|
|
2077
2077
|
--
|
2078
2078
|
|
2079
|
-
##### [ele_index](https://github.com/appium/ruby_lib/blob/
|
2079
|
+
##### [ele_index](https://github.com/appium/ruby_lib/blob/24660355c3fa5e5e8691922e1570021fce90b96b/lib/appium_lib/android/helper.rb#L205) android
|
2080
2080
|
|
2081
2081
|
> def ele_index(class_name, index)
|
2082
2082
|
|
@@ -2094,7 +2094,7 @@ __Returns:__
|
|
2094
2094
|
|
2095
2095
|
--
|
2096
2096
|
|
2097
|
-
##### [first_ele](https://github.com/appium/ruby_lib/blob/
|
2097
|
+
##### [first_ele](https://github.com/appium/ruby_lib/blob/24660355c3fa5e5e8691922e1570021fce90b96b/lib/appium_lib/android/helper.rb#L223) android
|
2098
2098
|
|
2099
2099
|
> def first_ele(class_name)
|
2100
2100
|
|
@@ -2110,7 +2110,7 @@ __Returns:__
|
|
2110
2110
|
|
2111
2111
|
--
|
2112
2112
|
|
2113
|
-
##### [last_ele](https://github.com/appium/ruby_lib/blob/
|
2113
|
+
##### [last_ele](https://github.com/appium/ruby_lib/blob/24660355c3fa5e5e8691922e1570021fce90b96b/lib/appium_lib/android/helper.rb#L230) android
|
2114
2114
|
|
2115
2115
|
> def last_ele(class_name)
|
2116
2116
|
|
@@ -2126,7 +2126,7 @@ __Returns:__
|
|
2126
2126
|
|
2127
2127
|
--
|
2128
2128
|
|
2129
|
-
##### [tag](https://github.com/appium/ruby_lib/blob/
|
2129
|
+
##### [tag](https://github.com/appium/ruby_lib/blob/24660355c3fa5e5e8691922e1570021fce90b96b/lib/appium_lib/android/helper.rb#L238) android
|
2130
2130
|
|
2131
2131
|
> def tag(class_name)
|
2132
2132
|
|
@@ -2142,7 +2142,7 @@ __Returns:__
|
|
2142
2142
|
|
2143
2143
|
--
|
2144
2144
|
|
2145
|
-
##### [tags](https://github.com/appium/ruby_lib/blob/
|
2145
|
+
##### [tags](https://github.com/appium/ruby_lib/blob/24660355c3fa5e5e8691922e1570021fce90b96b/lib/appium_lib/android/helper.rb#L246) android
|
2146
2146
|
|
2147
2147
|
> def tags(class_name)
|
2148
2148
|
|
@@ -2158,13 +2158,14 @@ __Returns:__
|
|
2158
2158
|
|
2159
2159
|
--
|
2160
2160
|
|
2161
|
-
##### [string_visible_contains_xpath](https://github.com/appium/ruby_lib/blob/
|
2161
|
+
##### [string_visible_contains_xpath](https://github.com/appium/ruby_lib/blob/24660355c3fa5e5e8691922e1570021fce90b96b/lib/appium_lib/android/helper.rb#L289) android
|
2162
2162
|
|
2163
2163
|
> def string_visible_contains_xpath(class_name, value)
|
2164
2164
|
|
2165
2165
|
Returns a string that matches the first element that contains value
|
2166
2166
|
For automationName is uiautomator2
|
2167
2167
|
example: string_visible_contains_xpath 'UIATextField', 'sign in'
|
2168
|
+
note for XPath: https://github.com/appium/ruby_lib/pull/561
|
2168
2169
|
|
2169
2170
|
__Parameters:__
|
2170
2171
|
|
@@ -2178,13 +2179,14 @@ __Returns:__
|
|
2178
2179
|
|
2179
2180
|
--
|
2180
2181
|
|
2181
|
-
##### [string_visible_contains](https://github.com/appium/ruby_lib/blob/
|
2182
|
+
##### [string_visible_contains](https://github.com/appium/ruby_lib/blob/24660355c3fa5e5e8691922e1570021fce90b96b/lib/appium_lib/android/helper.rb#L309) android
|
2182
2183
|
|
2183
2184
|
> def string_visible_contains(class_name, value)
|
2184
2185
|
|
2185
2186
|
Returns a string that matches the first element that contains value
|
2186
2187
|
For automationName is Appium
|
2187
2188
|
example: string_visible_contains 'UIATextField', 'sign in'
|
2189
|
+
note for XPath: https://github.com/appium/ruby_lib/pull/561
|
2188
2190
|
|
2189
2191
|
__Parameters:__
|
2190
2192
|
|
@@ -2198,15 +2200,15 @@ __Returns:__
|
|
2198
2200
|
|
2199
2201
|
--
|
2200
2202
|
|
2201
|
-
##### [complex_find_contains](https://github.com/appium/ruby_lib/blob/
|
2203
|
+
##### [complex_find_contains](https://github.com/appium/ruby_lib/blob/24660355c3fa5e5e8691922e1570021fce90b96b/lib/appium_lib/android/helper.rb#L327) android
|
2202
2204
|
|
2203
|
-
> def complex_find_contains(
|
2205
|
+
> def complex_find_contains(class_name, value)
|
2204
2206
|
|
2205
2207
|
Find the first element that contains value
|
2206
2208
|
|
2207
2209
|
__Parameters:__
|
2208
2210
|
|
2209
|
-
[String]
|
2211
|
+
[String] class_name - the class name for the element
|
2210
2212
|
|
2211
2213
|
[String] value - the value to search for
|
2212
2214
|
|
@@ -2216,15 +2218,15 @@ __Returns:__
|
|
2216
2218
|
|
2217
2219
|
--
|
2218
2220
|
|
2219
|
-
##### [complex_finds_contains](https://github.com/appium/ruby_lib/blob/
|
2221
|
+
##### [complex_finds_contains](https://github.com/appium/ruby_lib/blob/24660355c3fa5e5e8691922e1570021fce90b96b/lib/appium_lib/android/helper.rb#L341) android
|
2220
2222
|
|
2221
|
-
> def complex_finds_contains(
|
2223
|
+
> def complex_finds_contains(class_name, value)
|
2222
2224
|
|
2223
2225
|
Find all elements containing value
|
2224
2226
|
|
2225
2227
|
__Parameters:__
|
2226
2228
|
|
2227
|
-
[String]
|
2229
|
+
[String] class_name - the class name for the element
|
2228
2230
|
|
2229
2231
|
[String] value - the value to search for
|
2230
2232
|
|
@@ -2234,7 +2236,7 @@ __Returns:__
|
|
2234
2236
|
|
2235
2237
|
--
|
2236
2238
|
|
2237
|
-
##### [complex_find_exact](https://github.com/appium/ruby_lib/blob/
|
2239
|
+
##### [complex_find_exact](https://github.com/appium/ruby_lib/blob/24660355c3fa5e5e8691922e1570021fce90b96b/lib/appium_lib/android/helper.rb#L385) android
|
2238
2240
|
|
2239
2241
|
> def complex_find_exact(class_name, value)
|
2240
2242
|
|
@@ -2252,7 +2254,7 @@ __Returns:__
|
|
2252
2254
|
|
2253
2255
|
--
|
2254
2256
|
|
2255
|
-
##### [complex_finds_exact](https://github.com/appium/ruby_lib/blob/
|
2257
|
+
##### [complex_finds_exact](https://github.com/appium/ruby_lib/blob/24660355c3fa5e5e8691922e1570021fce90b96b/lib/appium_lib/android/helper.rb#L399) android
|
2256
2258
|
|
2257
2259
|
> def complex_finds_exact(class_name, value)
|
2258
2260
|
|
@@ -2270,7 +2272,7 @@ __Returns:__
|
|
2270
2272
|
|
2271
2273
|
--
|
2272
2274
|
|
2273
|
-
##### [get_source](https://github.com/appium/ruby_lib/blob/
|
2275
|
+
##### [get_source](https://github.com/appium/ruby_lib/blob/24660355c3fa5e5e8691922e1570021fce90b96b/lib/appium_lib/android/helper.rb#L407) android
|
2274
2276
|
|
2275
2277
|
> def get_source
|
2276
2278
|
|
@@ -2284,7 +2286,7 @@ __Returns:__
|
|
2284
2286
|
|
2285
2287
|
--
|
2286
2288
|
|
2287
|
-
##### [_nodeset_to_uiselector](https://github.com/appium/ruby_lib/blob/
|
2289
|
+
##### [_nodeset_to_uiselector](https://github.com/appium/ruby_lib/blob/24660355c3fa5e5e8691922e1570021fce90b96b/lib/appium_lib/android/client_xpath.rb#L5) android
|
2288
2290
|
|
2289
2291
|
> def _nodeset_to_uiselector(opts = {})
|
2290
2292
|
|
@@ -2292,7 +2294,7 @@ __Returns:__
|
|
2292
2294
|
|
2293
2295
|
--
|
2294
2296
|
|
2295
|
-
##### [_client_xpath](https://github.com/appium/ruby_lib/blob/
|
2297
|
+
##### [_client_xpath](https://github.com/appium/ruby_lib/blob/24660355c3fa5e5e8691922e1570021fce90b96b/lib/appium_lib/android/client_xpath.rb#L20) android
|
2296
2298
|
|
2297
2299
|
> def _client_xpath(opts = {})
|
2298
2300
|
|
@@ -2300,7 +2302,7 @@ __Returns:__
|
|
2300
2302
|
|
2301
2303
|
--
|
2302
2304
|
|
2303
|
-
##### [client_xpath](https://github.com/appium/ruby_lib/blob/
|
2305
|
+
##### [client_xpath](https://github.com/appium/ruby_lib/blob/24660355c3fa5e5e8691922e1570021fce90b96b/lib/appium_lib/android/client_xpath.rb#L36) android
|
2304
2306
|
|
2305
2307
|
> def client_xpath(xpath)
|
2306
2308
|
|
@@ -2308,7 +2310,7 @@ __Returns:__
|
|
2308
2310
|
|
2309
2311
|
--
|
2310
2312
|
|
2311
|
-
##### [client_xpaths](https://github.com/appium/ruby_lib/blob/
|
2313
|
+
##### [client_xpaths](https://github.com/appium/ruby_lib/blob/24660355c3fa5e5e8691922e1570021fce90b96b/lib/appium_lib/android/client_xpath.rb#L40) android
|
2312
2314
|
|
2313
2315
|
> def client_xpaths(xpath)
|
2314
2316
|
|
@@ -2316,7 +2318,7 @@ __Returns:__
|
|
2316
2318
|
|
2317
2319
|
--
|
2318
2320
|
|
2319
|
-
##### [TextView](https://github.com/appium/ruby_lib/blob/
|
2321
|
+
##### [TextView](https://github.com/appium/ruby_lib/blob/24660355c3fa5e5e8691922e1570021fce90b96b/lib/appium_lib/android/element/text.rb#L4) android
|
2320
2322
|
|
2321
2323
|
> TextView = 'android.widget.TextView'.freeze
|
2322
2324
|
|
@@ -2324,7 +2326,7 @@ __Returns:__
|
|
2324
2326
|
|
2325
2327
|
--
|
2326
2328
|
|
2327
|
-
##### [text](https://github.com/appium/ruby_lib/blob/
|
2329
|
+
##### [text](https://github.com/appium/ruby_lib/blob/24660355c3fa5e5e8691922e1570021fce90b96b/lib/appium_lib/android/element/text.rb#L10) android
|
2328
2330
|
|
2329
2331
|
> def text(value)
|
2330
2332
|
|
@@ -2341,7 +2343,7 @@ __Returns:__
|
|
2341
2343
|
|
2342
2344
|
--
|
2343
2345
|
|
2344
|
-
##### [texts](https://github.com/appium/ruby_lib/blob/
|
2346
|
+
##### [texts](https://github.com/appium/ruby_lib/blob/24660355c3fa5e5e8691922e1570021fce90b96b/lib/appium_lib/android/element/text.rb#L19) android
|
2345
2347
|
|
2346
2348
|
> def texts(value = false)
|
2347
2349
|
|
@@ -2358,7 +2360,7 @@ __Returns:__
|
|
2358
2360
|
|
2359
2361
|
--
|
2360
2362
|
|
2361
|
-
##### [first_text](https://github.com/appium/ruby_lib/blob/
|
2363
|
+
##### [first_text](https://github.com/appium/ruby_lib/blob/24660355c3fa5e5e8691922e1570021fce90b96b/lib/appium_lib/android/element/text.rb#L26) android
|
2362
2364
|
|
2363
2365
|
> def first_text
|
2364
2366
|
|
@@ -2370,7 +2372,7 @@ __Returns:__
|
|
2370
2372
|
|
2371
2373
|
--
|
2372
2374
|
|
2373
|
-
##### [last_text](https://github.com/appium/ruby_lib/blob/
|
2375
|
+
##### [last_text](https://github.com/appium/ruby_lib/blob/24660355c3fa5e5e8691922e1570021fce90b96b/lib/appium_lib/android/element/text.rb#L32) android
|
2374
2376
|
|
2375
2377
|
> def last_text
|
2376
2378
|
|
@@ -2382,7 +2384,7 @@ __Returns:__
|
|
2382
2384
|
|
2383
2385
|
--
|
2384
2386
|
|
2385
|
-
##### [text_exact](https://github.com/appium/ruby_lib/blob/
|
2387
|
+
##### [text_exact](https://github.com/appium/ruby_lib/blob/24660355c3fa5e5e8691922e1570021fce90b96b/lib/appium_lib/android/element/text.rb#L39) android
|
2386
2388
|
|
2387
2389
|
> def text_exact(value)
|
2388
2390
|
|
@@ -2398,7 +2400,7 @@ __Returns:__
|
|
2398
2400
|
|
2399
2401
|
--
|
2400
2402
|
|
2401
|
-
##### [texts_exact](https://github.com/appium/ruby_lib/blob/
|
2403
|
+
##### [texts_exact](https://github.com/appium/ruby_lib/blob/24660355c3fa5e5e8691922e1570021fce90b96b/lib/appium_lib/android/element/text.rb#L46) android
|
2402
2404
|
|
2403
2405
|
> def texts_exact(value)
|
2404
2406
|
|
@@ -2414,7 +2416,7 @@ __Returns:__
|
|
2414
2416
|
|
2415
2417
|
--
|
2416
2418
|
|
2417
|
-
##### [alert_click](https://github.com/appium/ruby_lib/blob/
|
2419
|
+
##### [alert_click](https://github.com/appium/ruby_lib/blob/24660355c3fa5e5e8691922e1570021fce90b96b/lib/appium_lib/android/element/alert.rb#L6) android
|
2418
2420
|
|
2419
2421
|
> def alert_click(value)
|
2420
2422
|
|
@@ -2430,7 +2432,7 @@ __Returns:__
|
|
2430
2432
|
|
2431
2433
|
--
|
2432
2434
|
|
2433
|
-
##### [alert_accept](https://github.com/appium/ruby_lib/blob/
|
2435
|
+
##### [alert_accept](https://github.com/appium/ruby_lib/blob/24660355c3fa5e5e8691922e1570021fce90b96b/lib/appium_lib/android/element/alert.rb#L13) android
|
2434
2436
|
|
2435
2437
|
> def alert_accept
|
2436
2438
|
|
@@ -2443,7 +2445,7 @@ __Returns:__
|
|
2443
2445
|
|
2444
2446
|
--
|
2445
2447
|
|
2446
|
-
##### [alert_accept_text](https://github.com/appium/ruby_lib/blob/
|
2448
|
+
##### [alert_accept_text](https://github.com/appium/ruby_lib/blob/24660355c3fa5e5e8691922e1570021fce90b96b/lib/appium_lib/android/element/alert.rb#L20) android
|
2447
2449
|
|
2448
2450
|
> def alert_accept_text
|
2449
2451
|
|
@@ -2456,7 +2458,7 @@ __Returns:__
|
|
2456
2458
|
|
2457
2459
|
--
|
2458
2460
|
|
2459
|
-
##### [alert_dismiss](https://github.com/appium/ruby_lib/blob/
|
2461
|
+
##### [alert_dismiss](https://github.com/appium/ruby_lib/blob/24660355c3fa5e5e8691922e1570021fce90b96b/lib/appium_lib/android/element/alert.rb#L27) android
|
2460
2462
|
|
2461
2463
|
> def alert_dismiss
|
2462
2464
|
|
@@ -2469,7 +2471,7 @@ __Returns:__
|
|
2469
2471
|
|
2470
2472
|
--
|
2471
2473
|
|
2472
|
-
##### [alert_dismiss_text](https://github.com/appium/ruby_lib/blob/
|
2474
|
+
##### [alert_dismiss_text](https://github.com/appium/ruby_lib/blob/24660355c3fa5e5e8691922e1570021fce90b96b/lib/appium_lib/android/element/alert.rb#L34) android
|
2473
2475
|
|
2474
2476
|
> def alert_dismiss_text
|
2475
2477
|
|
@@ -2482,7 +2484,7 @@ __Returns:__
|
|
2482
2484
|
|
2483
2485
|
--
|
2484
2486
|
|
2485
|
-
##### [Button](https://github.com/appium/ruby_lib/blob/
|
2487
|
+
##### [Button](https://github.com/appium/ruby_lib/blob/24660355c3fa5e5e8691922e1570021fce90b96b/lib/appium_lib/android/element/button.rb#L4) android
|
2486
2488
|
|
2487
2489
|
> Button = 'android.widget.Button'.freeze
|
2488
2490
|
|
@@ -2490,7 +2492,7 @@ __Returns:__
|
|
2490
2492
|
|
2491
2493
|
--
|
2492
2494
|
|
2493
|
-
##### [ImageButton](https://github.com/appium/ruby_lib/blob/
|
2495
|
+
##### [ImageButton](https://github.com/appium/ruby_lib/blob/24660355c3fa5e5e8691922e1570021fce90b96b/lib/appium_lib/android/element/button.rb#L5) android
|
2494
2496
|
|
2495
2497
|
> ImageButton = 'android.widget.ImageButton'.freeze
|
2496
2498
|
|
@@ -2498,7 +2500,7 @@ __Returns:__
|
|
2498
2500
|
|
2499
2501
|
--
|
2500
2502
|
|
2501
|
-
##### [_button_visible_selectors](https://github.com/appium/ruby_lib/blob/
|
2503
|
+
##### [_button_visible_selectors](https://github.com/appium/ruby_lib/blob/24660355c3fa5e5e8691922e1570021fce90b96b/lib/appium_lib/android/element/button.rb#L9) android
|
2502
2504
|
|
2503
2505
|
> def _button_visible_selectors(opts = {})
|
2504
2506
|
|
@@ -2506,7 +2508,7 @@ __Returns:__
|
|
2506
2508
|
|
2507
2509
|
--
|
2508
2510
|
|
2509
|
-
##### [_button_exact_string](https://github.com/appium/ruby_lib/blob/
|
2511
|
+
##### [_button_exact_string](https://github.com/appium/ruby_lib/blob/24660355c3fa5e5e8691922e1570021fce90b96b/lib/appium_lib/android/element/button.rb#L22) android
|
2510
2512
|
|
2511
2513
|
> def _button_exact_string(value)
|
2512
2514
|
|
@@ -2514,7 +2516,7 @@ __Returns:__
|
|
2514
2516
|
|
2515
2517
|
--
|
2516
2518
|
|
2517
|
-
##### [_button_contains_string](https://github.com/appium/ruby_lib/blob/
|
2519
|
+
##### [_button_contains_string](https://github.com/appium/ruby_lib/blob/24660355c3fa5e5e8691922e1570021fce90b96b/lib/appium_lib/android/element/button.rb#L28) android
|
2518
2520
|
|
2519
2521
|
> def _button_contains_string(value)
|
2520
2522
|
|
@@ -2522,7 +2524,7 @@ __Returns:__
|
|
2522
2524
|
|
2523
2525
|
--
|
2524
2526
|
|
2525
|
-
##### [button](https://github.com/appium/ruby_lib/blob/
|
2527
|
+
##### [button](https://github.com/appium/ruby_lib/blob/24660355c3fa5e5e8691922e1570021fce90b96b/lib/appium_lib/android/element/button.rb#L40) android
|
2526
2528
|
|
2527
2529
|
> def button(value)
|
2528
2530
|
|
@@ -2539,7 +2541,7 @@ __Returns:__
|
|
2539
2541
|
|
2540
2542
|
--
|
2541
2543
|
|
2542
|
-
##### [buttons](https://github.com/appium/ruby_lib/blob/
|
2544
|
+
##### [buttons](https://github.com/appium/ruby_lib/blob/24660355c3fa5e5e8691922e1570021fce90b96b/lib/appium_lib/android/element/button.rb#L68) android
|
2543
2545
|
|
2544
2546
|
> def buttons(value = false)
|
2545
2547
|
|
@@ -2556,7 +2558,7 @@ __Returns:__
|
|
2556
2558
|
|
2557
2559
|
--
|
2558
2560
|
|
2559
|
-
##### [first_button](https://github.com/appium/ruby_lib/blob/
|
2561
|
+
##### [first_button](https://github.com/appium/ruby_lib/blob/24660355c3fa5e5e8691922e1570021fce90b96b/lib/appium_lib/android/element/button.rb#L75) android
|
2560
2562
|
|
2561
2563
|
> def first_button
|
2562
2564
|
|
@@ -2568,7 +2570,7 @@ __Returns:__
|
|
2568
2570
|
|
2569
2571
|
--
|
2570
2572
|
|
2571
|
-
##### [last_button](https://github.com/appium/ruby_lib/blob/
|
2573
|
+
##### [last_button](https://github.com/appium/ruby_lib/blob/24660355c3fa5e5e8691922e1570021fce90b96b/lib/appium_lib/android/element/button.rb#L86) android
|
2572
2574
|
|
2573
2575
|
> def last_button
|
2574
2576
|
|
@@ -2580,7 +2582,7 @@ __Returns:__
|
|
2580
2582
|
|
2581
2583
|
--
|
2582
2584
|
|
2583
|
-
##### [button_exact](https://github.com/appium/ruby_lib/blob/
|
2585
|
+
##### [button_exact](https://github.com/appium/ruby_lib/blob/24660355c3fa5e5e8691922e1570021fce90b96b/lib/appium_lib/android/element/button.rb#L109) android
|
2584
2586
|
|
2585
2587
|
> def button_exact(value)
|
2586
2588
|
|
@@ -2596,7 +2598,7 @@ __Returns:__
|
|
2596
2598
|
|
2597
2599
|
--
|
2598
2600
|
|
2599
|
-
##### [buttons_exact](https://github.com/appium/ruby_lib/blob/
|
2601
|
+
##### [buttons_exact](https://github.com/appium/ruby_lib/blob/24660355c3fa5e5e8691922e1570021fce90b96b/lib/appium_lib/android/element/button.rb#L121) android
|
2600
2602
|
|
2601
2603
|
> def buttons_exact(value)
|
2602
2604
|
|
@@ -2612,7 +2614,15 @@ __Returns:__
|
|
2612
2614
|
|
2613
2615
|
--
|
2614
2616
|
|
2615
|
-
##### [
|
2617
|
+
##### [raise_no_such_element_if_empty](https://github.com/appium/ruby_lib/blob/24660355c3fa5e5e8691922e1570021fce90b96b/lib/appium_lib/android/element/button.rb#L127) android
|
2618
|
+
|
2619
|
+
> def raise_no_such_element_if_empty(elements)
|
2620
|
+
|
2621
|
+
|
2622
|
+
|
2623
|
+
--
|
2624
|
+
|
2625
|
+
##### [uiautomator_find](https://github.com/appium/ruby_lib/blob/24660355c3fa5e5e8691922e1570021fce90b96b/lib/appium_lib/android/mobile_methods.rb#L10) android
|
2616
2626
|
|
2617
2627
|
> def uiautomator_find
|
2618
2628
|
|
@@ -2624,7 +2634,7 @@ find_element/s can be used with a [UISelector](http://developer.android.com/tool
|
|
2624
2634
|
|
2625
2635
|
--
|
2626
2636
|
|
2627
|
-
##### [find](https://github.com/appium/ruby_lib/blob/
|
2637
|
+
##### [find](https://github.com/appium/ruby_lib/blob/24660355c3fa5e5e8691922e1570021fce90b96b/lib/appium_lib/android/element/generic.rb#L6) android
|
2628
2638
|
|
2629
2639
|
> def find(value)
|
2630
2640
|
|
@@ -2640,7 +2650,7 @@ __Returns:__
|
|
2640
2650
|
|
2641
2651
|
--
|
2642
2652
|
|
2643
|
-
##### [finds](https://github.com/appium/ruby_lib/blob/
|
2653
|
+
##### [finds](https://github.com/appium/ruby_lib/blob/24660355c3fa5e5e8691922e1570021fce90b96b/lib/appium_lib/android/element/generic.rb#L13) android
|
2644
2654
|
|
2645
2655
|
> def finds(value)
|
2646
2656
|
|
@@ -2656,7 +2666,7 @@ __Returns:__
|
|
2656
2666
|
|
2657
2667
|
--
|
2658
2668
|
|
2659
|
-
##### [find_exact](https://github.com/appium/ruby_lib/blob/
|
2669
|
+
##### [find_exact](https://github.com/appium/ruby_lib/blob/24660355c3fa5e5e8691922e1570021fce90b96b/lib/appium_lib/android/element/generic.rb#L20) android
|
2660
2670
|
|
2661
2671
|
> def find_exact(value)
|
2662
2672
|
|
@@ -2672,7 +2682,7 @@ __Returns:__
|
|
2672
2682
|
|
2673
2683
|
--
|
2674
2684
|
|
2675
|
-
##### [finds_exact](https://github.com/appium/ruby_lib/blob/
|
2685
|
+
##### [finds_exact](https://github.com/appium/ruby_lib/blob/24660355c3fa5e5e8691922e1570021fce90b96b/lib/appium_lib/android/element/generic.rb#L27) android
|
2676
2686
|
|
2677
2687
|
> def finds_exact(value)
|
2678
2688
|
|
@@ -2688,7 +2698,7 @@ __Returns:__
|
|
2688
2698
|
|
2689
2699
|
--
|
2690
2700
|
|
2691
|
-
##### [scroll_to](https://github.com/appium/ruby_lib/blob/
|
2701
|
+
##### [scroll_to](https://github.com/appium/ruby_lib/blob/24660355c3fa5e5e8691922e1570021fce90b96b/lib/appium_lib/android/element/generic.rb#L40) android
|
2692
2702
|
|
2693
2703
|
> def scroll_to(text, scrollable_index = 0)
|
2694
2704
|
|
@@ -2706,7 +2716,7 @@ __Returns:__
|
|
2706
2716
|
|
2707
2717
|
--
|
2708
2718
|
|
2709
|
-
##### [scroll_to_exact](https://github.com/appium/ruby_lib/blob/
|
2719
|
+
##### [scroll_to_exact](https://github.com/appium/ruby_lib/blob/24660355c3fa5e5e8691922e1570021fce90b96b/lib/appium_lib/android/element/generic.rb#L54) android
|
2710
2720
|
|
2711
2721
|
> def scroll_to_exact(text, scrollable_index = 0)
|
2712
2722
|
|
@@ -2724,7 +2734,7 @@ __Returns:__
|
|
2724
2734
|
|
2725
2735
|
--
|
2726
2736
|
|
2727
|
-
##### [EditText](https://github.com/appium/ruby_lib/blob/
|
2737
|
+
##### [EditText](https://github.com/appium/ruby_lib/blob/24660355c3fa5e5e8691922e1570021fce90b96b/lib/appium_lib/android/element/textfield.rb#L3) android
|
2728
2738
|
|
2729
2739
|
> EditText = 'android.widget.EditText'.freeze
|
2730
2740
|
|
@@ -2732,7 +2742,7 @@ __Returns:__
|
|
2732
2742
|
|
2733
2743
|
--
|
2734
2744
|
|
2735
|
-
##### [textfield](https://github.com/appium/ruby_lib/blob/
|
2745
|
+
##### [textfield](https://github.com/appium/ruby_lib/blob/24660355c3fa5e5e8691922e1570021fce90b96b/lib/appium_lib/android/element/textfield.rb#L9) android
|
2736
2746
|
|
2737
2747
|
> def textfield(value)
|
2738
2748
|
|
@@ -2749,7 +2759,7 @@ __Returns:__
|
|
2749
2759
|
|
2750
2760
|
--
|
2751
2761
|
|
2752
|
-
##### [textfields](https://github.com/appium/ruby_lib/blob/
|
2762
|
+
##### [textfields](https://github.com/appium/ruby_lib/blob/24660355c3fa5e5e8691922e1570021fce90b96b/lib/appium_lib/android/element/textfield.rb#L18) android
|
2753
2763
|
|
2754
2764
|
> def textfields(value = false)
|
2755
2765
|
|
@@ -2766,7 +2776,7 @@ __Returns:__
|
|
2766
2776
|
|
2767
2777
|
--
|
2768
2778
|
|
2769
|
-
##### [first_textfield](https://github.com/appium/ruby_lib/blob/
|
2779
|
+
##### [first_textfield](https://github.com/appium/ruby_lib/blob/24660355c3fa5e5e8691922e1570021fce90b96b/lib/appium_lib/android/element/textfield.rb#L25) android
|
2770
2780
|
|
2771
2781
|
> def first_textfield
|
2772
2782
|
|
@@ -2778,7 +2788,7 @@ __Returns:__
|
|
2778
2788
|
|
2779
2789
|
--
|
2780
2790
|
|
2781
|
-
##### [last_textfield](https://github.com/appium/ruby_lib/blob/
|
2791
|
+
##### [last_textfield](https://github.com/appium/ruby_lib/blob/24660355c3fa5e5e8691922e1570021fce90b96b/lib/appium_lib/android/element/textfield.rb#L31) android
|
2782
2792
|
|
2783
2793
|
> def last_textfield
|
2784
2794
|
|
@@ -2790,7 +2800,7 @@ __Returns:__
|
|
2790
2800
|
|
2791
2801
|
--
|
2792
2802
|
|
2793
|
-
##### [textfield_exact](https://github.com/appium/ruby_lib/blob/
|
2803
|
+
##### [textfield_exact](https://github.com/appium/ruby_lib/blob/24660355c3fa5e5e8691922e1570021fce90b96b/lib/appium_lib/android/element/textfield.rb#L38) android
|
2794
2804
|
|
2795
2805
|
> def textfield_exact(value)
|
2796
2806
|
|
@@ -2806,7 +2816,7 @@ __Returns:__
|
|
2806
2816
|
|
2807
2817
|
--
|
2808
2818
|
|
2809
|
-
##### [textfields_exact](https://github.com/appium/ruby_lib/blob/
|
2819
|
+
##### [textfields_exact](https://github.com/appium/ruby_lib/blob/24660355c3fa5e5e8691922e1570021fce90b96b/lib/appium_lib/android/element/textfield.rb#L45) android
|
2810
2820
|
|
2811
2821
|
> def textfields_exact(value)
|
2812
2822
|
|
@@ -2822,7 +2832,7 @@ __Returns:__
|
|
2822
2832
|
|
2823
2833
|
--
|
2824
2834
|
|
2825
|
-
##### [value](https://github.com/appium/ruby_lib/blob/
|
2835
|
+
##### [value](https://github.com/appium/ruby_lib/blob/24660355c3fa5e5e8691922e1570021fce90b96b/lib/appium_lib/common/patch.rb#L12)
|
2826
2836
|
|
2827
2837
|
> def value
|
2828
2838
|
|
@@ -2832,7 +2842,7 @@ Fixes NoMethodError: undefined method `value' for Selenium::WebDriver::Element
|
|
2832
2842
|
|
2833
2843
|
--
|
2834
2844
|
|
2835
|
-
##### [name](https://github.com/appium/ruby_lib/blob/
|
2845
|
+
##### [name](https://github.com/appium/ruby_lib/blob/24660355c3fa5e5e8691922e1570021fce90b96b/lib/appium_lib/common/patch.rb#L19)
|
2836
2846
|
|
2837
2847
|
> def name
|
2838
2848
|
|
@@ -2842,7 +2852,7 @@ Fixes NoMethodError: undefined method `name' for Selenium::WebDriver::Element
|
|
2842
2852
|
|
2843
2853
|
--
|
2844
2854
|
|
2845
|
-
##### [location_rel](https://github.com/appium/ruby_lib/blob/
|
2855
|
+
##### [location_rel](https://github.com/appium/ruby_lib/blob/24660355c3fa5e5e8691922e1570021fce90b96b/lib/appium_lib/common/patch.rb#L31)
|
2846
2856
|
|
2847
2857
|
> def location_rel
|
2848
2858
|
|
@@ -2860,7 +2870,7 @@ __Returns:__
|
|
2860
2870
|
|
2861
2871
|
--
|
2862
2872
|
|
2863
|
-
##### [DEFAULT_HEADERS](https://github.com/appium/ruby_lib/blob/
|
2873
|
+
##### [DEFAULT_HEADERS](https://github.com/appium/ruby_lib/blob/24660355c3fa5e5e8691922e1570021fce90b96b/lib/appium_lib/common/patch.rb#L152)
|
2864
2874
|
|
2865
2875
|
> DEFAULT_HEADERS = { 'Accept' => CONTENT_TYPE, 'User-Agent' => "appium/ruby_lib/#{::Appium::VERSION}" }.freeze
|
2866
2876
|
|
@@ -2868,7 +2878,7 @@ __Returns:__
|
|
2868
2878
|
|
2869
2879
|
--
|
2870
2880
|
|
2871
|
-
##### [patch_remote_driver_commands](https://github.com/appium/ruby_lib/blob/
|
2881
|
+
##### [patch_remote_driver_commands](https://github.com/appium/ruby_lib/blob/24660355c3fa5e5e8691922e1570021fce90b96b/lib/appium_lib/common/patch.rb#L155)
|
2872
2882
|
|
2873
2883
|
> def patch_remote_driver_commands
|
2874
2884
|
|