appium_lib 9.1.1 → 9.1.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/.rubocop.yml +0 -7
- data/android_tests/lib/android/specs/android/element/text.rb +2 -2
- data/android_tests/lib/android/specs/android/element/textfield.rb +12 -2
- data/android_tests/lib/android/specs/common/element/window.rb +2 -0
- data/android_tests/lib/android/specs/driver.rb +6 -0
- data/docs/android_docs.md +231 -213
- data/docs/ios_docs.md +240 -222
- data/ios_tests/lib/ios/specs/common/element/window.rb +2 -0
- data/ios_tests/lib/ios/specs/driver.rb +6 -0
- data/ios_tests/lib/ios/specs/ios/element/generic.rb +3 -1
- data/ios_tests/lib/ios/specs/ios/element/textfield.rb +18 -2
- data/lib/appium_lib/common/helper.rb +3 -3
- data/lib/appium_lib/common/version.rb +2 -2
- data/lib/appium_lib/common/wait.rb +5 -5
- data/lib/appium_lib/device/device.rb +11 -3
- data/lib/appium_lib/device/touch_actions.rb +1 -2
- data/lib/appium_lib/driver.rb +15 -2
- data/lib/appium_lib/ios/helper.rb +3 -29
- data/release_notes.md +21 -0
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: cce086e77dac7846ff6e6bd24e6947e87a56ebf3
|
4
|
+
data.tar.gz: eb6e33a8b0b9eb94173400dc712576c60274f19d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: c0f0ad534b499147f2d20056cd82a2c3747e2cc68ee7bca1a8d064a175cae4f9e16283b6d002a4095385128639fda2f29360c004944aa9cb9953d418a81cb480
|
7
|
+
data.tar.gz: 0c6610bfd9bdb93f4ddb34abfb8de57a92f33cd7fcc06387788ed0e3ca5de9bb02e10f560d9cd7b5797601c9e9286077d3c85d02c19d582386fbb602327d851a
|
data/.rubocop.yml
CHANGED
@@ -38,12 +38,5 @@ Style/IndentHash:
|
|
38
38
|
Enabled: false
|
39
39
|
Style/VariableNumber:
|
40
40
|
EnforcedStyle: 'snake_case'
|
41
|
-
# The followings should checked again
|
42
|
-
Style/IdenticalConditionalBranches:
|
43
|
-
Enabled: false
|
44
41
|
Lint/NestedMethodDefinition:
|
45
42
|
Enabled: false
|
46
|
-
Lint/UnifiedInteger:
|
47
|
-
Enabled: false
|
48
|
-
Performance/RedundantBlockCall:
|
49
|
-
Enabled: false
|
@@ -1,7 +1,7 @@
|
|
1
1
|
# rake android['android/element/text']
|
2
2
|
describe 'android/element/text' do
|
3
|
-
def must_raise_no_element
|
4
|
-
proc {
|
3
|
+
def must_raise_no_element
|
4
|
+
proc { yield }.must_raise Selenium::WebDriver::Error::NoSuchElementError
|
5
5
|
end
|
6
6
|
|
7
7
|
t 'text' do
|
@@ -1,6 +1,6 @@
|
|
1
1
|
describe 'android/element/textfield' do
|
2
|
-
def must_raise_no_element
|
3
|
-
proc {
|
2
|
+
def must_raise_no_element
|
3
|
+
proc { yield }.must_raise Selenium::WebDriver::Error::NoSuchElementError
|
4
4
|
end
|
5
5
|
|
6
6
|
def left
|
@@ -58,5 +58,15 @@ describe 'android/element/textfield' do
|
|
58
58
|
hide_keyboard
|
59
59
|
end
|
60
60
|
|
61
|
+
t 'set_immediate_value' do
|
62
|
+
message = 'hello'
|
63
|
+
|
64
|
+
wait do
|
65
|
+
elem = textfield(1)
|
66
|
+
set_immediate_value(elem, message)
|
67
|
+
elem.text.must_equal message
|
68
|
+
end
|
69
|
+
end
|
70
|
+
|
61
71
|
t { after_last }
|
62
72
|
end
|
@@ -136,6 +136,12 @@ describe 'driver' do
|
|
136
136
|
end
|
137
137
|
end
|
138
138
|
|
139
|
+
t 'client_version' do
|
140
|
+
client_version = appium_client_version
|
141
|
+
expected = { version: ::Appium::VERSION }
|
142
|
+
client_version.must_equal expected
|
143
|
+
end
|
144
|
+
|
139
145
|
# Skip:
|
140
146
|
# ios_capabilities # save for iOS tests
|
141
147
|
# absolute_app_path # tested already by starting the driver for this test
|
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/22401b065f2317e82d37b5188ad9c18c701b0a41/lib/appium_lib/driver.rb#L74)
|
2
2
|
|
3
3
|
> def self.load_settings(opts = {})
|
4
4
|
|
@@ -26,7 +26,7 @@ __Returns:__
|
|
26
26
|
|
27
27
|
--
|
28
28
|
|
29
|
-
##### [load_appium_txt](https://github.com/appium/ruby_lib/blob/
|
29
|
+
##### [load_appium_txt](https://github.com/appium/ruby_lib/blob/22401b065f2317e82d37b5188ad9c18c701b0a41/lib/appium_lib/driver.rb#L110)
|
30
30
|
|
31
31
|
> def self.load_settings(opts = {})
|
32
32
|
|
@@ -55,7 +55,7 @@ __Returns:__
|
|
55
55
|
|
56
56
|
--
|
57
57
|
|
58
|
-
##### [expand_required_files](https://github.com/appium/ruby_lib/blob/
|
58
|
+
##### [expand_required_files](https://github.com/appium/ruby_lib/blob/22401b065f2317e82d37b5188ad9c18c701b0a41/lib/appium_lib/driver.rb#L116)
|
59
59
|
|
60
60
|
> def self.expand_required_files(base_dir, file_paths)
|
61
61
|
|
@@ -73,7 +73,7 @@ __Returns:__
|
|
73
73
|
|
74
74
|
--
|
75
75
|
|
76
|
-
##### [symbolize_keys](https://github.com/appium/ruby_lib/blob/
|
76
|
+
##### [symbolize_keys](https://github.com/appium/ruby_lib/blob/22401b065f2317e82d37b5188ad9c18c701b0a41/lib/appium_lib/driver.rb#L148)
|
77
77
|
|
78
78
|
> def self.symbolize_keys(hash)
|
79
79
|
|
@@ -84,7 +84,7 @@ https://github.com/rails/docrails/blob/a3b1105ada3da64acfa3843b164b14b734456a50/
|
|
84
84
|
|
85
85
|
--
|
86
86
|
|
87
|
-
##### [promote_singleton_appium_methods](https://github.com/appium/ruby_lib/blob/
|
87
|
+
##### [promote_singleton_appium_methods](https://github.com/appium/ruby_lib/blob/22401b065f2317e82d37b5188ad9c18c701b0a41/lib/appium_lib/driver.rb#L169)
|
88
88
|
|
89
89
|
> def self.promote_singleton_appium_methods(modules)
|
90
90
|
|
@@ -102,7 +102,7 @@ otherwise, the array of modules will be used as the promotion target.
|
|
102
102
|
|
103
103
|
--
|
104
104
|
|
105
|
-
##### [promote_appium_methods](https://github.com/appium/ruby_lib/blob/
|
105
|
+
##### [promote_appium_methods](https://github.com/appium/ruby_lib/blob/22401b065f2317e82d37b5188ad9c18c701b0a41/lib/appium_lib/driver.rb#L222)
|
106
106
|
|
107
107
|
> def self.promote_appium_methods(class_array)
|
108
108
|
|
@@ -132,7 +132,7 @@ __Parameters:__
|
|
132
132
|
|
133
133
|
--
|
134
134
|
|
135
|
-
##### [init_caps_for_appium](https://github.com/appium/ruby_lib/blob/
|
135
|
+
##### [init_caps_for_appium](https://github.com/appium/ruby_lib/blob/22401b065f2317e82d37b5188ad9c18c701b0a41/lib/appium_lib/driver.rb#L254)
|
136
136
|
|
137
137
|
> def self.init_caps_for_appium(opts_caps = {})
|
138
138
|
|
@@ -142,7 +142,7 @@ https://github.com/SeleniumHQ/selenium/blob/selenium-3.0.1/rb/lib/selenium/webdr
|
|
142
142
|
|
143
143
|
--
|
144
144
|
|
145
|
-
##### [global_webdriver_http_sleep](https://github.com/appium/ruby_lib/blob/
|
145
|
+
##### [global_webdriver_http_sleep](https://github.com/appium/ruby_lib/blob/22401b065f2317e82d37b5188ad9c18c701b0a41/lib/appium_lib/driver.rb#L272)
|
146
146
|
|
147
147
|
> def global_webdriver_http_sleep
|
148
148
|
|
@@ -150,7 +150,7 @@ The amount to sleep in seconds before every webdriver http call.
|
|
150
150
|
|
151
151
|
--
|
152
152
|
|
153
|
-
##### [global_webdriver_http_sleep=](https://github.com/appium/ruby_lib/blob/
|
153
|
+
##### [global_webdriver_http_sleep=](https://github.com/appium/ruby_lib/blob/22401b065f2317e82d37b5188ad9c18c701b0a41/lib/appium_lib/driver.rb#L272)
|
154
154
|
|
155
155
|
> def global_webdriver_http_sleep=(value)
|
156
156
|
|
@@ -158,7 +158,7 @@ The amount to sleep in seconds before every webdriver http call.
|
|
158
158
|
|
159
159
|
--
|
160
160
|
|
161
|
-
##### [caps](https://github.com/appium/ruby_lib/blob/
|
161
|
+
##### [caps](https://github.com/appium/ruby_lib/blob/22401b065f2317e82d37b5188ad9c18c701b0a41/lib/appium_lib/driver.rb#L274)
|
162
162
|
|
163
163
|
> def caps
|
164
164
|
|
@@ -166,7 +166,7 @@ Selenium webdriver capabilities
|
|
166
166
|
|
167
167
|
--
|
168
168
|
|
169
|
-
##### [caps=](https://github.com/appium/ruby_lib/blob/
|
169
|
+
##### [caps=](https://github.com/appium/ruby_lib/blob/22401b065f2317e82d37b5188ad9c18c701b0a41/lib/appium_lib/driver.rb#L274)
|
170
170
|
|
171
171
|
> def caps=(value)
|
172
172
|
|
@@ -174,7 +174,7 @@ Selenium webdriver capabilities
|
|
174
174
|
|
175
175
|
--
|
176
176
|
|
177
|
-
##### [custom_url](https://github.com/appium/ruby_lib/blob/
|
177
|
+
##### [custom_url](https://github.com/appium/ruby_lib/blob/22401b065f2317e82d37b5188ad9c18c701b0a41/lib/appium_lib/driver.rb#L276)
|
178
178
|
|
179
179
|
> def custom_url
|
180
180
|
|
@@ -182,7 +182,7 @@ Custom URL for the selenium server
|
|
182
182
|
|
183
183
|
--
|
184
184
|
|
185
|
-
##### [custom_url=](https://github.com/appium/ruby_lib/blob/
|
185
|
+
##### [custom_url=](https://github.com/appium/ruby_lib/blob/22401b065f2317e82d37b5188ad9c18c701b0a41/lib/appium_lib/driver.rb#L276)
|
186
186
|
|
187
187
|
> def custom_url=(value)
|
188
188
|
|
@@ -190,7 +190,7 @@ Custom URL for the selenium server
|
|
190
190
|
|
191
191
|
--
|
192
192
|
|
193
|
-
##### [export_session](https://github.com/appium/ruby_lib/blob/
|
193
|
+
##### [export_session](https://github.com/appium/ruby_lib/blob/22401b065f2317e82d37b5188ad9c18c701b0a41/lib/appium_lib/driver.rb#L278)
|
194
194
|
|
195
195
|
> def export_session
|
196
196
|
|
@@ -198,7 +198,7 @@ Export session id to textfile in /tmp for 3rd party tools
|
|
198
198
|
|
199
199
|
--
|
200
200
|
|
201
|
-
##### [export_session=](https://github.com/appium/ruby_lib/blob/
|
201
|
+
##### [export_session=](https://github.com/appium/ruby_lib/blob/22401b065f2317e82d37b5188ad9c18c701b0a41/lib/appium_lib/driver.rb#L278)
|
202
202
|
|
203
203
|
> def export_session=(value)
|
204
204
|
|
@@ -206,7 +206,7 @@ Export session id to textfile in /tmp for 3rd party tools
|
|
206
206
|
|
207
207
|
--
|
208
208
|
|
209
|
-
##### [default_wait](https://github.com/appium/ruby_lib/blob/
|
209
|
+
##### [default_wait](https://github.com/appium/ruby_lib/blob/22401b065f2317e82d37b5188ad9c18c701b0a41/lib/appium_lib/driver.rb#L283)
|
210
210
|
|
211
211
|
> def default_wait
|
212
212
|
|
@@ -220,7 +220,7 @@ __Returns:__
|
|
220
220
|
|
221
221
|
--
|
222
222
|
|
223
|
-
##### [default_wait=](https://github.com/appium/ruby_lib/blob/
|
223
|
+
##### [default_wait=](https://github.com/appium/ruby_lib/blob/22401b065f2317e82d37b5188ad9c18c701b0a41/lib/appium_lib/driver.rb#L283)
|
224
224
|
|
225
225
|
> def default_wait=(value)
|
226
226
|
|
@@ -234,7 +234,7 @@ __Returns:__
|
|
234
234
|
|
235
235
|
--
|
236
236
|
|
237
|
-
##### [last_waits](https://github.com/appium/ruby_lib/blob/
|
237
|
+
##### [last_waits](https://github.com/appium/ruby_lib/blob/22401b065f2317e82d37b5188ad9c18c701b0a41/lib/appium_lib/driver.rb#L285)
|
238
238
|
|
239
239
|
> def last_waits
|
240
240
|
|
@@ -242,7 +242,7 @@ Array of previous wait time values
|
|
242
242
|
|
243
243
|
--
|
244
244
|
|
245
|
-
##### [last_waits=](https://github.com/appium/ruby_lib/blob/
|
245
|
+
##### [last_waits=](https://github.com/appium/ruby_lib/blob/22401b065f2317e82d37b5188ad9c18c701b0a41/lib/appium_lib/driver.rb#L285)
|
246
246
|
|
247
247
|
> def last_waits=(value)
|
248
248
|
|
@@ -250,7 +250,7 @@ Array of previous wait time values
|
|
250
250
|
|
251
251
|
--
|
252
252
|
|
253
|
-
##### [sauce_username](https://github.com/appium/ruby_lib/blob/
|
253
|
+
##### [sauce_username](https://github.com/appium/ruby_lib/blob/22401b065f2317e82d37b5188ad9c18c701b0a41/lib/appium_lib/driver.rb#L287)
|
254
254
|
|
255
255
|
> def sauce_username
|
256
256
|
|
@@ -258,7 +258,7 @@ Username for use on Sauce Labs
|
|
258
258
|
|
259
259
|
--
|
260
260
|
|
261
|
-
##### [sauce_username=](https://github.com/appium/ruby_lib/blob/
|
261
|
+
##### [sauce_username=](https://github.com/appium/ruby_lib/blob/22401b065f2317e82d37b5188ad9c18c701b0a41/lib/appium_lib/driver.rb#L287)
|
262
262
|
|
263
263
|
> def sauce_username=(value)
|
264
264
|
|
@@ -266,7 +266,7 @@ Username for use on Sauce Labs
|
|
266
266
|
|
267
267
|
--
|
268
268
|
|
269
|
-
##### [sauce_access_key](https://github.com/appium/ruby_lib/blob/
|
269
|
+
##### [sauce_access_key](https://github.com/appium/ruby_lib/blob/22401b065f2317e82d37b5188ad9c18c701b0a41/lib/appium_lib/driver.rb#L289)
|
270
270
|
|
271
271
|
> def sauce_access_key
|
272
272
|
|
@@ -274,7 +274,7 @@ Access Key for use on Sauce Labs
|
|
274
274
|
|
275
275
|
--
|
276
276
|
|
277
|
-
##### [sauce_access_key=](https://github.com/appium/ruby_lib/blob/
|
277
|
+
##### [sauce_access_key=](https://github.com/appium/ruby_lib/blob/22401b065f2317e82d37b5188ad9c18c701b0a41/lib/appium_lib/driver.rb#L289)
|
278
278
|
|
279
279
|
> def sauce_access_key=(value)
|
280
280
|
|
@@ -282,7 +282,7 @@ Access Key for use on Sauce Labs
|
|
282
282
|
|
283
283
|
--
|
284
284
|
|
285
|
-
##### [appium_port](https://github.com/appium/ruby_lib/blob/
|
285
|
+
##### [appium_port](https://github.com/appium/ruby_lib/blob/22401b065f2317e82d37b5188ad9c18c701b0a41/lib/appium_lib/driver.rb#L291)
|
286
286
|
|
287
287
|
> def appium_port
|
288
288
|
|
@@ -290,7 +290,7 @@ Appium's server port
|
|
290
290
|
|
291
291
|
--
|
292
292
|
|
293
|
-
##### [appium_port=](https://github.com/appium/ruby_lib/blob/
|
293
|
+
##### [appium_port=](https://github.com/appium/ruby_lib/blob/22401b065f2317e82d37b5188ad9c18c701b0a41/lib/appium_lib/driver.rb#L291)
|
294
294
|
|
295
295
|
> def appium_port=(value)
|
296
296
|
|
@@ -298,7 +298,7 @@ Appium's server port
|
|
298
298
|
|
299
299
|
--
|
300
300
|
|
301
|
-
##### [appium_device](https://github.com/appium/ruby_lib/blob/
|
301
|
+
##### [appium_device](https://github.com/appium/ruby_lib/blob/22401b065f2317e82d37b5188ad9c18c701b0a41/lib/appium_lib/driver.rb#L293)
|
302
302
|
|
303
303
|
> def appium_device
|
304
304
|
|
@@ -306,7 +306,7 @@ Device type to request from the appium server
|
|
306
306
|
|
307
307
|
--
|
308
308
|
|
309
|
-
##### [appium_device=](https://github.com/appium/ruby_lib/blob/
|
309
|
+
##### [appium_device=](https://github.com/appium/ruby_lib/blob/22401b065f2317e82d37b5188ad9c18c701b0a41/lib/appium_lib/driver.rb#L293)
|
310
310
|
|
311
311
|
> def appium_device=(value)
|
312
312
|
|
@@ -314,7 +314,7 @@ Device type to request from the appium server
|
|
314
314
|
|
315
315
|
--
|
316
316
|
|
317
|
-
##### [automation_name](https://github.com/appium/ruby_lib/blob/
|
317
|
+
##### [automation_name](https://github.com/appium/ruby_lib/blob/22401b065f2317e82d37b5188ad9c18c701b0a41/lib/appium_lib/driver.rb#L295)
|
318
318
|
|
319
319
|
> def automation_name
|
320
320
|
|
@@ -322,7 +322,7 @@ Automation name sent to appium server
|
|
322
322
|
|
323
323
|
--
|
324
324
|
|
325
|
-
##### [appium_server_version](https://github.com/appium/ruby_lib/blob/
|
325
|
+
##### [appium_server_version](https://github.com/appium/ruby_lib/blob/22401b065f2317e82d37b5188ad9c18c701b0a41/lib/appium_lib/driver.rb#L297)
|
326
326
|
|
327
327
|
> def appium_server_version
|
328
328
|
|
@@ -343,7 +343,7 @@ __Returns:__
|
|
343
343
|
|
344
344
|
--
|
345
345
|
|
346
|
-
##### [appium_debug](https://github.com/appium/ruby_lib/blob/
|
346
|
+
##### [appium_debug](https://github.com/appium/ruby_lib/blob/22401b065f2317e82d37b5188ad9c18c701b0a41/lib/appium_lib/driver.rb#L299)
|
347
347
|
|
348
348
|
> def appium_debug
|
349
349
|
|
@@ -351,7 +351,7 @@ Boolean debug mode for the Appium Ruby bindings
|
|
351
351
|
|
352
352
|
--
|
353
353
|
|
354
|
-
##### [appium_debug=](https://github.com/appium/ruby_lib/blob/
|
354
|
+
##### [appium_debug=](https://github.com/appium/ruby_lib/blob/22401b065f2317e82d37b5188ad9c18c701b0a41/lib/appium_lib/driver.rb#L299)
|
355
355
|
|
356
356
|
> def appium_debug=(value)
|
357
357
|
|
@@ -359,7 +359,7 @@ Boolean debug mode for the Appium Ruby bindings
|
|
359
359
|
|
360
360
|
--
|
361
361
|
|
362
|
-
##### [listener](https://github.com/appium/ruby_lib/blob/
|
362
|
+
##### [listener](https://github.com/appium/ruby_lib/blob/22401b065f2317e82d37b5188ad9c18c701b0a41/lib/appium_lib/driver.rb#L301)
|
363
363
|
|
364
364
|
> def listener
|
365
365
|
|
@@ -367,7 +367,7 @@ instance of AbstractEventListener for logging support
|
|
367
367
|
|
368
368
|
--
|
369
369
|
|
370
|
-
##### [listener=](https://github.com/appium/ruby_lib/blob/
|
370
|
+
##### [listener=](https://github.com/appium/ruby_lib/blob/22401b065f2317e82d37b5188ad9c18c701b0a41/lib/appium_lib/driver.rb#L301)
|
371
371
|
|
372
372
|
> def listener=(value)
|
373
373
|
|
@@ -375,7 +375,7 @@ instance of AbstractEventListener for logging support
|
|
375
375
|
|
376
376
|
--
|
377
377
|
|
378
|
-
##### [driver](https://github.com/appium/ruby_lib/blob/
|
378
|
+
##### [driver](https://github.com/appium/ruby_lib/blob/22401b065f2317e82d37b5188ad9c18c701b0a41/lib/appium_lib/driver.rb#L304)
|
379
379
|
|
380
380
|
> def driver
|
381
381
|
|
@@ -387,7 +387,7 @@ __Returns:__
|
|
387
387
|
|
388
388
|
--
|
389
389
|
|
390
|
-
##### [initialize](https://github.com/appium/ruby_lib/blob/
|
390
|
+
##### [initialize](https://github.com/appium/ruby_lib/blob/22401b065f2317e82d37b5188ad9c18c701b0a41/lib/appium_lib/driver.rb#L325)
|
391
391
|
|
392
392
|
> def initialize(opts = {})
|
393
393
|
|
@@ -418,7 +418,7 @@ __Returns:__
|
|
418
418
|
|
419
419
|
--
|
420
420
|
|
421
|
-
##### [driver_attributes](https://github.com/appium/ruby_lib/blob/
|
421
|
+
##### [driver_attributes](https://github.com/appium/ruby_lib/blob/22401b065f2317e82d37b5188ad9c18c701b0a41/lib/appium_lib/driver.rb#L398)
|
422
422
|
|
423
423
|
> def driver_attributes
|
424
424
|
|
@@ -426,7 +426,7 @@ Returns a hash of the driver attributes
|
|
426
426
|
|
427
427
|
--
|
428
428
|
|
429
|
-
##### [device_is_android?](https://github.com/appium/ruby_lib/blob/
|
429
|
+
##### [device_is_android?](https://github.com/appium/ruby_lib/blob/22401b065f2317e82d37b5188ad9c18c701b0a41/lib/appium_lib/driver.rb#L420)
|
430
430
|
|
431
431
|
> def device_is_android?
|
432
432
|
|
@@ -438,7 +438,7 @@ __Returns:__
|
|
438
438
|
|
439
439
|
--
|
440
440
|
|
441
|
-
##### [automation_name_is_xcuitest?](https://github.com/appium/ruby_lib/blob/
|
441
|
+
##### [automation_name_is_xcuitest?](https://github.com/appium/ruby_lib/blob/22401b065f2317e82d37b5188ad9c18c701b0a41/lib/appium_lib/driver.rb#L426)
|
442
442
|
|
443
443
|
> def automation_name_is_xcuitest?
|
444
444
|
|
@@ -450,7 +450,7 @@ __Returns:__
|
|
450
450
|
|
451
451
|
--
|
452
452
|
|
453
|
-
##### [check_server_version_xcuitest](https://github.com/appium/ruby_lib/blob/
|
453
|
+
##### [check_server_version_xcuitest](https://github.com/appium/ruby_lib/blob/22401b065f2317e82d37b5188ad9c18c701b0a41/lib/appium_lib/driver.rb#L433)
|
454
454
|
|
455
455
|
> def check_server_version_xcuitest
|
456
456
|
|
@@ -463,7 +463,25 @@ __Returns:__
|
|
463
463
|
|
464
464
|
--
|
465
465
|
|
466
|
-
##### [
|
466
|
+
##### [appium_client_version](https://github.com/appium/ruby_lib/blob/22401b065f2317e82d37b5188ad9c18c701b0a41/lib/appium_lib/driver.rb#L465)
|
467
|
+
|
468
|
+
> def appium_client_version
|
469
|
+
|
470
|
+
Returns the client's version info
|
471
|
+
|
472
|
+
```ruby
|
473
|
+
{
|
474
|
+
"version" => "9.1.1"
|
475
|
+
}
|
476
|
+
```
|
477
|
+
|
478
|
+
__Returns:__
|
479
|
+
|
480
|
+
[Hash]
|
481
|
+
|
482
|
+
--
|
483
|
+
|
484
|
+
##### [absolute_app_path](https://github.com/appium/ruby_lib/blob/22401b065f2317e82d37b5188ad9c18c701b0a41/lib/appium_lib/driver.rb#L477)
|
467
485
|
|
468
486
|
> def self.absolute_app_path(opts)
|
469
487
|
|
@@ -480,7 +498,7 @@ __Returns:__
|
|
480
498
|
|
481
499
|
--
|
482
500
|
|
483
|
-
##### [server_url](https://github.com/appium/ruby_lib/blob/
|
501
|
+
##### [server_url](https://github.com/appium/ruby_lib/blob/22401b065f2317e82d37b5188ad9c18c701b0a41/lib/appium_lib/driver.rb#L510)
|
484
502
|
|
485
503
|
> def server_url
|
486
504
|
|
@@ -492,7 +510,7 @@ __Returns:__
|
|
492
510
|
|
493
511
|
--
|
494
512
|
|
495
|
-
##### [restart](https://github.com/appium/ruby_lib/blob/
|
513
|
+
##### [restart](https://github.com/appium/ruby_lib/blob/22401b065f2317e82d37b5188ad9c18c701b0a41/lib/appium_lib/driver.rb#L521)
|
496
514
|
|
497
515
|
> def restart
|
498
516
|
|
@@ -504,7 +522,7 @@ __Returns:__
|
|
504
522
|
|
505
523
|
--
|
506
524
|
|
507
|
-
##### [screenshot](https://github.com/appium/ruby_lib/blob/
|
525
|
+
##### [screenshot](https://github.com/appium/ruby_lib/blob/22401b065f2317e82d37b5188ad9c18c701b0a41/lib/appium_lib/driver.rb#L532)
|
508
526
|
|
509
527
|
> def screenshot(png_save_path)
|
510
528
|
|
@@ -522,7 +540,7 @@ __Returns:__
|
|
522
540
|
|
523
541
|
--
|
524
542
|
|
525
|
-
##### [driver_quit](https://github.com/appium/ruby_lib/blob/
|
543
|
+
##### [driver_quit](https://github.com/appium/ruby_lib/blob/22401b065f2317e82d37b5188ad9c18c701b0a41/lib/appium_lib/driver.rb#L539)
|
526
544
|
|
527
545
|
> def driver_quit
|
528
546
|
|
@@ -534,7 +552,7 @@ __Returns:__
|
|
534
552
|
|
535
553
|
--
|
536
554
|
|
537
|
-
##### [start_driver](https://github.com/appium/ruby_lib/blob/
|
555
|
+
##### [start_driver](https://github.com/appium/ruby_lib/blob/22401b065f2317e82d37b5188ad9c18c701b0a41/lib/appium_lib/driver.rb#L549)
|
538
556
|
|
539
557
|
> def start_driver
|
540
558
|
|
@@ -546,7 +564,7 @@ __Returns:__
|
|
546
564
|
|
547
565
|
--
|
548
566
|
|
549
|
-
##### [no_wait](https://github.com/appium/ruby_lib/blob/
|
567
|
+
##### [no_wait](https://github.com/appium/ruby_lib/blob/22401b065f2317e82d37b5188ad9c18c701b0a41/lib/appium_lib/driver.rb#L586)
|
550
568
|
|
551
569
|
> def no_wait
|
552
570
|
|
@@ -554,7 +572,7 @@ Set implicit wait and default_wait to zero.
|
|
554
572
|
|
555
573
|
--
|
556
574
|
|
557
|
-
##### [set_wait](https://github.com/appium/ruby_lib/blob/
|
575
|
+
##### [set_wait](https://github.com/appium/ruby_lib/blob/22401b065f2317e82d37b5188ad9c18c701b0a41/lib/appium_lib/driver.rb#L605)
|
558
576
|
|
559
577
|
> def set_wait(timeout = nil)
|
560
578
|
|
@@ -579,9 +597,9 @@ __Returns:__
|
|
579
597
|
|
580
598
|
--
|
581
599
|
|
582
|
-
##### [exists](https://github.com/appium/ruby_lib/blob/
|
600
|
+
##### [exists](https://github.com/appium/ruby_lib/blob/22401b065f2317e82d37b5188ad9c18c701b0a41/lib/appium_lib/driver.rb#L632)
|
583
601
|
|
584
|
-
> def exists(pre_check = 0, post_check = @default_wait
|
602
|
+
> def exists(pre_check = 0, post_check = @default_wait)
|
585
603
|
|
586
604
|
Returns existence of element.
|
587
605
|
|
@@ -605,7 +623,7 @@ __Returns:__
|
|
605
623
|
|
606
624
|
--
|
607
625
|
|
608
|
-
##### [execute_script](https://github.com/appium/ruby_lib/blob/
|
626
|
+
##### [execute_script](https://github.com/appium/ruby_lib/blob/22401b065f2317e82d37b5188ad9c18c701b0a41/lib/appium_lib/driver.rb#L656)
|
609
627
|
|
610
628
|
> def execute_script(script, *args)
|
611
629
|
|
@@ -623,7 +641,7 @@ __Returns:__
|
|
623
641
|
|
624
642
|
--
|
625
643
|
|
626
|
-
##### [find_elements](https://github.com/appium/ruby_lib/blob/
|
644
|
+
##### [find_elements](https://github.com/appium/ruby_lib/blob/22401b065f2317e82d37b5188ad9c18c701b0a41/lib/appium_lib/driver.rb#L664)
|
627
645
|
|
628
646
|
> def find_elements(*args)
|
629
647
|
|
@@ -639,7 +657,7 @@ __Returns:__
|
|
639
657
|
|
640
658
|
--
|
641
659
|
|
642
|
-
##### [find_element](https://github.com/appium/ruby_lib/blob/
|
660
|
+
##### [find_element](https://github.com/appium/ruby_lib/blob/22401b065f2317e82d37b5188ad9c18c701b0a41/lib/appium_lib/driver.rb#L672)
|
643
661
|
|
644
662
|
> def find_element(*args)
|
645
663
|
|
@@ -655,7 +673,7 @@ __Returns:__
|
|
655
673
|
|
656
674
|
--
|
657
675
|
|
658
|
-
##### [set_location](https://github.com/appium/ruby_lib/blob/
|
676
|
+
##### [set_location](https://github.com/appium/ruby_lib/blob/22401b065f2317e82d37b5188ad9c18c701b0a41/lib/appium_lib/driver.rb#L685)
|
659
677
|
|
660
678
|
> def set_location(opts = {})
|
661
679
|
|
@@ -671,7 +689,7 @@ __Returns:__
|
|
671
689
|
|
672
690
|
--
|
673
691
|
|
674
|
-
##### [x](https://github.com/appium/ruby_lib/blob/
|
692
|
+
##### [x](https://github.com/appium/ruby_lib/blob/22401b065f2317e82d37b5188ad9c18c701b0a41/lib/appium_lib/driver.rb#L695)
|
675
693
|
|
676
694
|
> def x
|
677
695
|
|
@@ -684,7 +702,7 @@ __Returns:__
|
|
684
702
|
|
685
703
|
--
|
686
704
|
|
687
|
-
##### [logger=](https://github.com/appium/ruby_lib/blob/
|
705
|
+
##### [logger=](https://github.com/appium/ruby_lib/blob/22401b065f2317e82d37b5188ad9c18c701b0a41/lib/appium_lib/logger.rb#L13)
|
688
706
|
|
689
707
|
> def logger=(value)
|
690
708
|
|
@@ -696,7 +714,7 @@ __Parameters:__
|
|
696
714
|
|
697
715
|
--
|
698
716
|
|
699
|
-
##### [logger](https://github.com/appium/ruby_lib/blob/
|
717
|
+
##### [logger](https://github.com/appium/ruby_lib/blob/22401b065f2317e82d37b5188ad9c18c701b0a41/lib/appium_lib/logger.rb#L17)
|
700
718
|
|
701
719
|
> def logger
|
702
720
|
|
@@ -704,7 +722,7 @@ __Parameters:__
|
|
704
722
|
|
705
723
|
--
|
706
724
|
|
707
|
-
##### [app_strings](https://github.com/appium/ruby_lib/blob/
|
725
|
+
##### [app_strings](https://github.com/appium/ruby_lib/blob/22401b065f2317e82d37b5188ad9c18c701b0a41/lib/appium_lib/device/device.rb#L7)
|
708
726
|
|
709
727
|
> def app_strings
|
710
728
|
|
@@ -715,7 +733,7 @@ app_strings #=> "TransitionsTitle"=>"Transitions", "WebTitle"=>"Web"
|
|
715
733
|
|
716
734
|
--
|
717
735
|
|
718
|
-
##### [background_app](https://github.com/appium/ruby_lib/blob/
|
736
|
+
##### [background_app](https://github.com/appium/ruby_lib/blob/22401b065f2317e82d37b5188ad9c18c701b0a41/lib/appium_lib/device/device.rb#L13)
|
719
737
|
|
720
738
|
> def background_app
|
721
739
|
|
@@ -724,7 +742,7 @@ This is a blocking application
|
|
724
742
|
|
725
743
|
--
|
726
744
|
|
727
|
-
##### [current_activity](https://github.com/appium/ruby_lib/blob/
|
745
|
+
##### [current_activity](https://github.com/appium/ruby_lib/blob/22401b065f2317e82d37b5188ad9c18c701b0a41/lib/appium_lib/device/device.rb#L18)
|
728
746
|
|
729
747
|
> def current_activity
|
730
748
|
|
@@ -732,7 +750,7 @@ This is a blocking application
|
|
732
750
|
|
733
751
|
--
|
734
752
|
|
735
|
-
##### [launch_app](https://github.com/appium/ruby_lib/blob/
|
753
|
+
##### [launch_app](https://github.com/appium/ruby_lib/blob/22401b065f2317e82d37b5188ad9c18c701b0a41/lib/appium_lib/device/device.rb#L20)
|
736
754
|
|
737
755
|
> def launch_app
|
738
756
|
|
@@ -740,7 +758,7 @@ Start the simulator and application configured with desired capabilities
|
|
740
758
|
|
741
759
|
--
|
742
760
|
|
743
|
-
##### [reset](https://github.com/appium/ruby_lib/blob/
|
761
|
+
##### [reset](https://github.com/appium/ruby_lib/blob/22401b065f2317e82d37b5188ad9c18c701b0a41/lib/appium_lib/device/device.rb#L23)
|
744
762
|
|
745
763
|
> def reset
|
746
764
|
|
@@ -748,7 +766,7 @@ Reset the device, relaunching the application.
|
|
748
766
|
|
749
767
|
--
|
750
768
|
|
751
|
-
##### [shake](https://github.com/appium/ruby_lib/blob/
|
769
|
+
##### [shake](https://github.com/appium/ruby_lib/blob/22401b065f2317e82d37b5188ad9c18c701b0a41/lib/appium_lib/device/device.rb#L26)
|
752
770
|
|
753
771
|
> def shake
|
754
772
|
|
@@ -756,7 +774,7 @@ Cause the device to shake
|
|
756
774
|
|
757
775
|
--
|
758
776
|
|
759
|
-
##### [toggle_flight_mode](https://github.com/appium/ruby_lib/blob/
|
777
|
+
##### [toggle_flight_mode](https://github.com/appium/ruby_lib/blob/22401b065f2317e82d37b5188ad9c18c701b0a41/lib/appium_lib/device/device.rb#L29)
|
760
778
|
|
761
779
|
> def toggle_flight_mode
|
762
780
|
|
@@ -764,7 +782,7 @@ Toggle flight mode on or off
|
|
764
782
|
|
765
783
|
--
|
766
784
|
|
767
|
-
##### [device_locked?](https://github.com/appium/ruby_lib/blob/
|
785
|
+
##### [device_locked?](https://github.com/appium/ruby_lib/blob/22401b065f2317e82d37b5188ad9c18c701b0a41/lib/appium_lib/device/device.rb#L32)
|
768
786
|
|
769
787
|
> def device_locked?
|
770
788
|
|
@@ -772,7 +790,7 @@ Toggle flight mode on or off
|
|
772
790
|
|
773
791
|
--
|
774
792
|
|
775
|
-
##### [hide_keyboard](https://github.com/appium/ruby_lib/blob/
|
793
|
+
##### [hide_keyboard](https://github.com/appium/ruby_lib/blob/22401b065f2317e82d37b5188ad9c18c701b0a41/lib/appium_lib/device/device.rb#L34)
|
776
794
|
|
777
795
|
> def hide_keyboard
|
778
796
|
|
@@ -785,7 +803,7 @@ Defaults to 'Done'.
|
|
785
803
|
|
786
804
|
--
|
787
805
|
|
788
|
-
##### [press_keycode](https://github.com/appium/ruby_lib/blob/
|
806
|
+
##### [press_keycode](https://github.com/appium/ruby_lib/blob/22401b065f2317e82d37b5188ad9c18c701b0a41/lib/appium_lib/device/device.rb#L43)
|
789
807
|
|
790
808
|
> def press_keycode
|
791
809
|
|
@@ -800,7 +818,7 @@ __Parameters:__
|
|
800
818
|
|
801
819
|
--
|
802
820
|
|
803
|
-
##### [long_press_keycode](https://github.com/appium/ruby_lib/blob/
|
821
|
+
##### [long_press_keycode](https://github.com/appium/ruby_lib/blob/22401b065f2317e82d37b5188ad9c18c701b0a41/lib/appium_lib/device/device.rb#L49)
|
804
822
|
|
805
823
|
> def long_press_keycode
|
806
824
|
|
@@ -815,7 +833,7 @@ __Parameters:__
|
|
815
833
|
|
816
834
|
--
|
817
835
|
|
818
|
-
##### [push_file](https://github.com/appium/ruby_lib/blob/
|
836
|
+
##### [push_file](https://github.com/appium/ruby_lib/blob/22401b065f2317e82d37b5188ad9c18c701b0a41/lib/appium_lib/device/device.rb#L55)
|
819
837
|
|
820
838
|
> def push_file
|
821
839
|
|
@@ -829,7 +847,7 @@ __Parameters:__
|
|
829
847
|
|
830
848
|
--
|
831
849
|
|
832
|
-
##### [pull_file](https://github.com/appium/ruby_lib/blob/
|
850
|
+
##### [pull_file](https://github.com/appium/ruby_lib/blob/22401b065f2317e82d37b5188ad9c18c701b0a41/lib/appium_lib/device/device.rb#L60)
|
833
851
|
|
834
852
|
> def pull_file
|
835
853
|
|
@@ -846,7 +864,7 @@ __Parameters:__
|
|
846
864
|
|
847
865
|
--
|
848
866
|
|
849
|
-
##### [pull_folder](https://github.com/appium/ruby_lib/blob/
|
867
|
+
##### [pull_folder](https://github.com/appium/ruby_lib/blob/22401b065f2317e82d37b5188ad9c18c701b0a41/lib/appium_lib/device/device.rb#L70)
|
850
868
|
|
851
869
|
> def pull_folder
|
852
870
|
|
@@ -861,7 +879,7 @@ __Parameters:__
|
|
861
879
|
|
862
880
|
--
|
863
881
|
|
864
|
-
##### [touch_id](https://github.com/appium/ruby_lib/blob/
|
882
|
+
##### [touch_id](https://github.com/appium/ruby_lib/blob/22401b065f2317e82d37b5188ad9c18c701b0a41/lib/appium_lib/device/device.rb#L78)
|
865
883
|
|
866
884
|
> def touch_id
|
867
885
|
|
@@ -878,7 +896,7 @@ Defaults to true.
|
|
878
896
|
|
879
897
|
--
|
880
898
|
|
881
|
-
##### [end_coverage](https://github.com/appium/ruby_lib/blob/
|
899
|
+
##### [end_coverage](https://github.com/appium/ruby_lib/blob/22401b065f2317e82d37b5188ad9c18c701b0a41/lib/appium_lib/device/device.rb#L87)
|
882
900
|
|
883
901
|
> def end_coverage
|
884
902
|
|
@@ -892,7 +910,7 @@ __Parameters:__
|
|
892
910
|
|
893
911
|
--
|
894
912
|
|
895
|
-
##### [get_settings](https://github.com/appium/ruby_lib/blob/
|
913
|
+
##### [get_settings](https://github.com/appium/ruby_lib/blob/22401b065f2317e82d37b5188ad9c18c701b0a41/lib/appium_lib/device/device.rb#L92)
|
896
914
|
|
897
915
|
> def get_settings
|
898
916
|
|
@@ -900,7 +918,7 @@ Get appium Settings for current test session
|
|
900
918
|
|
901
919
|
--
|
902
920
|
|
903
|
-
##### [extend_search_contexts](https://github.com/appium/ruby_lib/blob/
|
921
|
+
##### [extend_search_contexts](https://github.com/appium/ruby_lib/blob/22401b065f2317e82d37b5188ad9c18c701b0a41/lib/appium_lib/device/device.rb#L364)
|
904
922
|
|
905
923
|
> def extend_search_contexts
|
906
924
|
|
@@ -908,7 +926,7 @@ Get appium Settings for current test session
|
|
908
926
|
|
909
927
|
--
|
910
928
|
|
911
|
-
##### [find_element](https://github.com/appium/ruby_lib/blob/
|
929
|
+
##### [find_element](https://github.com/appium/ruby_lib/blob/22401b065f2317e82d37b5188ad9c18c701b0a41/lib/appium_lib/device/device.rb#L364)
|
912
930
|
|
913
931
|
> def find_element
|
914
932
|
|
@@ -916,7 +934,7 @@ Get appium Settings for current test session
|
|
916
934
|
|
917
935
|
--
|
918
936
|
|
919
|
-
##### [find_elements](https://github.com/appium/ruby_lib/blob/
|
937
|
+
##### [find_elements](https://github.com/appium/ruby_lib/blob/22401b065f2317e82d37b5188ad9c18c701b0a41/lib/appium_lib/device/device.rb#L364)
|
920
938
|
|
921
939
|
> def find_elements
|
922
940
|
|
@@ -928,7 +946,7 @@ find_element/s with their accessibility_id
|
|
928
946
|
|
929
947
|
--
|
930
948
|
|
931
|
-
##### [add_touch_actions](https://github.com/appium/ruby_lib/blob/
|
949
|
+
##### [add_touch_actions](https://github.com/appium/ruby_lib/blob/22401b065f2317e82d37b5188ad9c18c701b0a41/lib/appium_lib/device/device.rb#L396)
|
932
950
|
|
933
951
|
> def add_touch_actions
|
934
952
|
|
@@ -936,7 +954,7 @@ find_element/s with their accessibility_id
|
|
936
954
|
|
937
955
|
--
|
938
956
|
|
939
|
-
##### [add_ime_actions](https://github.com/appium/ruby_lib/blob/
|
957
|
+
##### [add_ime_actions](https://github.com/appium/ruby_lib/blob/22401b065f2317e82d37b5188ad9c18c701b0a41/lib/appium_lib/device/device.rb#L419)
|
940
958
|
|
941
959
|
> def add_ime_actions
|
942
960
|
|
@@ -944,7 +962,7 @@ find_element/s with their accessibility_id
|
|
944
962
|
|
945
963
|
--
|
946
964
|
|
947
|
-
##### [set_context](https://github.com/appium/ruby_lib/blob/
|
965
|
+
##### [set_context](https://github.com/appium/ruby_lib/blob/22401b065f2317e82d37b5188ad9c18c701b0a41/lib/appium_lib/device/device.rb#L494)
|
948
966
|
|
949
967
|
> def set_context
|
950
968
|
|
@@ -959,7 +977,7 @@ __Parameters:__
|
|
959
977
|
|
960
978
|
--
|
961
979
|
|
962
|
-
##### [current_context](https://github.com/appium/ruby_lib/blob/
|
980
|
+
##### [current_context](https://github.com/appium/ruby_lib/blob/22401b065f2317e82d37b5188ad9c18c701b0a41/lib/appium_lib/device/device.rb#L502)
|
963
981
|
|
964
982
|
> def current_context
|
965
983
|
|
@@ -971,7 +989,7 @@ __Returns:__
|
|
971
989
|
|
972
990
|
--
|
973
991
|
|
974
|
-
##### [available_contexts](https://github.com/appium/ruby_lib/blob/
|
992
|
+
##### [available_contexts](https://github.com/appium/ruby_lib/blob/22401b065f2317e82d37b5188ad9c18c701b0a41/lib/appium_lib/device/device.rb#L505)
|
975
993
|
|
976
994
|
> def available_contexts
|
977
995
|
|
@@ -983,7 +1001,7 @@ __Returns:__
|
|
983
1001
|
|
984
1002
|
--
|
985
1003
|
|
986
|
-
##### [within_context](https://github.com/appium/ruby_lib/blob/
|
1004
|
+
##### [within_context](https://github.com/appium/ruby_lib/blob/22401b065f2317e82d37b5188ad9c18c701b0a41/lib/appium_lib/device/device.rb#L515)
|
987
1005
|
|
988
1006
|
> def within_context(context)
|
989
1007
|
|
@@ -999,7 +1017,7 @@ __Parameters:__
|
|
999
1017
|
|
1000
1018
|
--
|
1001
1019
|
|
1002
|
-
##### [switch_to_default_context](https://github.com/appium/ruby_lib/blob/
|
1020
|
+
##### [switch_to_default_context](https://github.com/appium/ruby_lib/blob/22401b065f2317e82d37b5188ad9c18c701b0a41/lib/appium_lib/device/device.rb#L523)
|
1003
1021
|
|
1004
1022
|
> def switch_to_default_context
|
1005
1023
|
|
@@ -1007,7 +1025,7 @@ Change to the default context. This is equivalent to `set_context nil`.
|
|
1007
1025
|
|
1008
1026
|
--
|
1009
1027
|
|
1010
|
-
##### [pinch](https://github.com/appium/ruby_lib/blob/
|
1028
|
+
##### [pinch](https://github.com/appium/ruby_lib/blob/22401b065f2317e82d37b5188ad9c18c701b0a41/lib/appium_lib/device/multi_touch.rb#L28)
|
1011
1029
|
|
1012
1030
|
> def pinch(percentage = 25, auto_perform = true)
|
1013
1031
|
|
@@ -1026,7 +1044,7 @@ __Parameters:__
|
|
1026
1044
|
|
1027
1045
|
--
|
1028
1046
|
|
1029
|
-
##### [zoom](https://github.com/appium/ruby_lib/blob/
|
1047
|
+
##### [zoom](https://github.com/appium/ruby_lib/blob/22401b065f2317e82d37b5188ad9c18c701b0a41/lib/appium_lib/device/multi_touch.rb#L64)
|
1030
1048
|
|
1031
1049
|
> def zoom(percentage = 200, auto_perform = true)
|
1032
1050
|
|
@@ -1045,7 +1063,7 @@ __Parameters:__
|
|
1045
1063
|
|
1046
1064
|
--
|
1047
1065
|
|
1048
|
-
##### [initialize](https://github.com/appium/ruby_lib/blob/
|
1066
|
+
##### [initialize](https://github.com/appium/ruby_lib/blob/22401b065f2317e82d37b5188ad9c18c701b0a41/lib/appium_lib/device/multi_touch.rb#L95)
|
1049
1067
|
|
1050
1068
|
> def initialize
|
1051
1069
|
|
@@ -1057,7 +1075,7 @@ __Returns:__
|
|
1057
1075
|
|
1058
1076
|
--
|
1059
1077
|
|
1060
|
-
##### [add](https://github.com/appium/ruby_lib/blob/
|
1078
|
+
##### [add](https://github.com/appium/ruby_lib/blob/22401b065f2317e82d37b5188ad9c18c701b0a41/lib/appium_lib/device/multi_touch.rb#L101)
|
1061
1079
|
|
1062
1080
|
> def add(chain)
|
1063
1081
|
|
@@ -1069,7 +1087,7 @@ __Parameters:__
|
|
1069
1087
|
|
1070
1088
|
--
|
1071
1089
|
|
1072
|
-
##### [perform](https://github.com/appium/ruby_lib/blob/
|
1090
|
+
##### [perform](https://github.com/appium/ruby_lib/blob/22401b065f2317e82d37b5188ad9c18c701b0a41/lib/appium_lib/device/multi_touch.rb#L106)
|
1073
1091
|
|
1074
1092
|
> def perform
|
1075
1093
|
|
@@ -1077,7 +1095,7 @@ Ask Appium to perform the actions
|
|
1077
1095
|
|
1078
1096
|
--
|
1079
1097
|
|
1080
|
-
##### [ACTIONS](https://github.com/appium/ruby_lib/blob/
|
1098
|
+
##### [ACTIONS](https://github.com/appium/ruby_lib/blob/22401b065f2317e82d37b5188ad9c18c701b0a41/lib/appium_lib/device/touch_actions.rb#L11)
|
1081
1099
|
|
1082
1100
|
> ACTIONS = [:move_to, :long_press, :double_tap, :two_finger_tap, :press, :release, :tap, :wait, :perform].freeze
|
1083
1101
|
|
@@ -1085,7 +1103,7 @@ Ask Appium to perform the actions
|
|
1085
1103
|
|
1086
1104
|
--
|
1087
1105
|
|
1088
|
-
##### [COMPLEX_ACTIONS](https://github.com/appium/ruby_lib/blob/
|
1106
|
+
##### [COMPLEX_ACTIONS](https://github.com/appium/ruby_lib/blob/22401b065f2317e82d37b5188ad9c18c701b0a41/lib/appium_lib/device/touch_actions.rb#L12)
|
1089
1107
|
|
1090
1108
|
> COMPLEX_ACTIONS = [:swipe].freeze
|
1091
1109
|
|
@@ -1093,7 +1111,7 @@ Ask Appium to perform the actions
|
|
1093
1111
|
|
1094
1112
|
--
|
1095
1113
|
|
1096
|
-
##### [actions](https://github.com/appium/ruby_lib/blob/
|
1114
|
+
##### [actions](https://github.com/appium/ruby_lib/blob/22401b065f2317e82d37b5188ad9c18c701b0a41/lib/appium_lib/device/touch_actions.rb#L26)
|
1097
1115
|
|
1098
1116
|
> def actions
|
1099
1117
|
|
@@ -1101,7 +1119,7 @@ Returns the value of attribute actions
|
|
1101
1119
|
|
1102
1120
|
--
|
1103
1121
|
|
1104
|
-
##### [initialize](https://github.com/appium/ruby_lib/blob/
|
1122
|
+
##### [initialize](https://github.com/appium/ruby_lib/blob/22401b065f2317e82d37b5188ad9c18c701b0a41/lib/appium_lib/device/touch_actions.rb#L28)
|
1105
1123
|
|
1106
1124
|
> def initialize
|
1107
1125
|
|
@@ -1113,7 +1131,7 @@ __Returns:__
|
|
1113
1131
|
|
1114
1132
|
--
|
1115
1133
|
|
1116
|
-
##### [move_to](https://github.com/appium/ruby_lib/blob/
|
1134
|
+
##### [move_to](https://github.com/appium/ruby_lib/blob/22401b065f2317e82d37b5188ad9c18c701b0a41/lib/appium_lib/device/touch_actions.rb#L36)
|
1117
1135
|
|
1118
1136
|
> def move_to(opts)
|
1119
1137
|
|
@@ -1125,7 +1143,7 @@ __Parameters:__
|
|
1125
1143
|
|
1126
1144
|
--
|
1127
1145
|
|
1128
|
-
##### [long_press](https://github.com/appium/ruby_lib/blob/
|
1146
|
+
##### [long_press](https://github.com/appium/ruby_lib/blob/22401b065f2317e82d37b5188ad9c18c701b0a41/lib/appium_lib/device/touch_actions.rb#L46)
|
1129
1147
|
|
1130
1148
|
> def long_press(opts)
|
1131
1149
|
|
@@ -1143,7 +1161,7 @@ __Parameters:__
|
|
1143
1161
|
|
1144
1162
|
--
|
1145
1163
|
|
1146
|
-
##### [press](https://github.com/appium/ruby_lib/blob/
|
1164
|
+
##### [press](https://github.com/appium/ruby_lib/blob/22401b065f2317e82d37b5188ad9c18c701b0a41/lib/appium_lib/device/touch_actions.rb#L58)
|
1147
1165
|
|
1148
1166
|
> def press(opts)
|
1149
1167
|
|
@@ -1156,7 +1174,7 @@ __Parameters:__
|
|
1156
1174
|
|
1157
1175
|
--
|
1158
1176
|
|
1159
|
-
##### [release](https://github.com/appium/ruby_lib/blob/
|
1177
|
+
##### [release](https://github.com/appium/ruby_lib/blob/22401b065f2317e82d37b5188ad9c18c701b0a41/lib/appium_lib/device/touch_actions.rb#L69)
|
1160
1178
|
|
1161
1179
|
> def release(opts = nil)
|
1162
1180
|
|
@@ -1168,7 +1186,7 @@ __Parameters:__
|
|
1168
1186
|
|
1169
1187
|
--
|
1170
1188
|
|
1171
|
-
##### [tap](https://github.com/appium/ruby_lib/blob/
|
1189
|
+
##### [tap](https://github.com/appium/ruby_lib/blob/22401b065f2317e82d37b5188ad9c18c701b0a41/lib/appium_lib/device/touch_actions.rb#L80)
|
1172
1190
|
|
1173
1191
|
> def tap(opts)
|
1174
1192
|
|
@@ -1180,7 +1198,7 @@ __Parameters:__
|
|
1180
1198
|
|
1181
1199
|
--
|
1182
1200
|
|
1183
|
-
##### [double_tap](https://github.com/appium/ruby_lib/blob/
|
1201
|
+
##### [double_tap](https://github.com/appium/ruby_lib/blob/22401b065f2317e82d37b5188ad9c18c701b0a41/lib/appium_lib/device/touch_actions.rb#L93)
|
1184
1202
|
|
1185
1203
|
> def double_tap(opts)
|
1186
1204
|
|
@@ -1192,7 +1210,7 @@ __Parameters:__
|
|
1192
1210
|
|
1193
1211
|
--
|
1194
1212
|
|
1195
|
-
##### [two_finger_tap](https://github.com/appium/ruby_lib/blob/
|
1213
|
+
##### [two_finger_tap](https://github.com/appium/ruby_lib/blob/22401b065f2317e82d37b5188ad9c18c701b0a41/lib/appium_lib/device/touch_actions.rb#L104)
|
1196
1214
|
|
1197
1215
|
> def two_finger_tap(opts)
|
1198
1216
|
|
@@ -1204,7 +1222,7 @@ __Parameters:__
|
|
1204
1222
|
|
1205
1223
|
--
|
1206
1224
|
|
1207
|
-
##### [wait](https://github.com/appium/ruby_lib/blob/
|
1225
|
+
##### [wait](https://github.com/appium/ruby_lib/blob/22401b065f2317e82d37b5188ad9c18c701b0a41/lib/appium_lib/device/touch_actions.rb#L112)
|
1208
1226
|
|
1209
1227
|
> def wait(milliseconds)
|
1210
1228
|
|
@@ -1216,7 +1234,7 @@ __Parameters:__
|
|
1216
1234
|
|
1217
1235
|
--
|
1218
1236
|
|
1219
|
-
##### [swipe](https://github.com/appium/ruby_lib/blob/
|
1237
|
+
##### [swipe](https://github.com/appium/ruby_lib/blob/22401b065f2317e82d37b5188ad9c18c701b0a41/lib/appium_lib/device/touch_actions.rb#L127)
|
1220
1238
|
|
1221
1239
|
> def swipe(opts, ele = nil)
|
1222
1240
|
|
@@ -1230,7 +1248,7 @@ __Parameters:__
|
|
1230
1248
|
|
1231
1249
|
--
|
1232
1250
|
|
1233
|
-
##### [perform](https://github.com/appium/ruby_lib/blob/
|
1251
|
+
##### [perform](https://github.com/appium/ruby_lib/blob/22401b065f2317e82d37b5188ad9c18c701b0a41/lib/appium_lib/device/touch_actions.rb#L161)
|
1234
1252
|
|
1235
1253
|
> def perform
|
1236
1254
|
|
@@ -1238,7 +1256,7 @@ Ask the driver to perform all actions in this action chain.
|
|
1238
1256
|
|
1239
1257
|
--
|
1240
1258
|
|
1241
|
-
##### [cancel](https://github.com/appium/ruby_lib/blob/
|
1259
|
+
##### [cancel](https://github.com/appium/ruby_lib/blob/22401b065f2317e82d37b5188ad9c18c701b0a41/lib/appium_lib/device/touch_actions.rb#L167)
|
1242
1260
|
|
1243
1261
|
> def cancel
|
1244
1262
|
|
@@ -1246,7 +1264,7 @@ Does nothing, currently.
|
|
1246
1264
|
|
1247
1265
|
--
|
1248
1266
|
|
1249
|
-
##### [chain_method](https://github.com/appium/ruby_lib/blob/
|
1267
|
+
##### [chain_method](https://github.com/appium/ruby_lib/blob/22401b065f2317e82d37b5188ad9c18c701b0a41/lib/appium_lib/device/touch_actions.rb#L175)
|
1250
1268
|
|
1251
1269
|
> def chain_method(method, args = nil)
|
1252
1270
|
|
@@ -1254,7 +1272,7 @@ Does nothing, currently.
|
|
1254
1272
|
|
1255
1273
|
--
|
1256
1274
|
|
1257
|
-
##### [args_with_ele_ref](https://github.com/appium/ruby_lib/blob/
|
1275
|
+
##### [args_with_ele_ref](https://github.com/appium/ruby_lib/blob/22401b065f2317e82d37b5188ad9c18c701b0a41/lib/appium_lib/device/touch_actions.rb#L181)
|
1258
1276
|
|
1259
1277
|
> def args_with_ele_ref(args)
|
1260
1278
|
|
@@ -1262,16 +1280,16 @@ Does nothing, currently.
|
|
1262
1280
|
|
1263
1281
|
--
|
1264
1282
|
|
1265
|
-
##### [_generic_wait](https://github.com/appium/ruby_lib/blob/
|
1283
|
+
##### [_generic_wait](https://github.com/appium/ruby_lib/blob/22401b065f2317e82d37b5188ad9c18c701b0a41/lib/appium_lib/common/wait.rb#L9)
|
1266
1284
|
|
1267
|
-
> def _generic_wait(opts = {}
|
1285
|
+
> def _generic_wait(opts = {})
|
1268
1286
|
|
1269
1287
|
Wait code from the selenium Ruby gem
|
1270
1288
|
https://github.com/SeleniumHQ/selenium/blob/cf501dda3f0ed12233de51ce8170c0e8090f0c20/rb/lib/selenium/webdriver/common/wait.rb
|
1271
1289
|
|
1272
1290
|
--
|
1273
1291
|
|
1274
|
-
##### [_process_wait_opts](https://github.com/appium/ruby_lib/blob/
|
1292
|
+
##### [_process_wait_opts](https://github.com/appium/ruby_lib/blob/22401b065f2317e82d37b5188ad9c18c701b0a41/lib/appium_lib/common/wait.rb#L48)
|
1275
1293
|
|
1276
1294
|
> def _process_wait_opts(opts)
|
1277
1295
|
|
@@ -1279,11 +1297,11 @@ process opts before calling _generic_wait
|
|
1279
1297
|
|
1280
1298
|
--
|
1281
1299
|
|
1282
|
-
##### [wait_true](https://github.com/appium/ruby_lib/blob/
|
1300
|
+
##### [wait_true](https://github.com/appium/ruby_lib/blob/22401b065f2317e82d37b5188ad9c18c701b0a41/lib/appium_lib/common/wait.rb#L69)
|
1283
1301
|
|
1284
1302
|
> def wait_true(opts = {}, &block)
|
1285
1303
|
|
1286
|
-
Check every interval seconds to see if
|
1304
|
+
Check every interval seconds to see if yield returns a truthy value.
|
1287
1305
|
Note this isn't a strict boolean true, any truthy value is accepted.
|
1288
1306
|
false and nil are considered failures.
|
1289
1307
|
Give up after timeout seconds.
|
@@ -1299,11 +1317,11 @@ __Parameters:__
|
|
1299
1317
|
|
1300
1318
|
--
|
1301
1319
|
|
1302
|
-
##### [wait](https://github.com/appium/ruby_lib/blob/
|
1320
|
+
##### [wait](https://github.com/appium/ruby_lib/blob/22401b065f2317e82d37b5188ad9c18c701b0a41/lib/appium_lib/common/wait.rb#L87)
|
1303
1321
|
|
1304
1322
|
> def wait(opts = {}, &block)
|
1305
1323
|
|
1306
|
-
Check every interval seconds to see if
|
1324
|
+
Check every interval seconds to see if yield doesn't raise an exception.
|
1307
1325
|
Give up after timeout seconds.
|
1308
1326
|
|
1309
1327
|
Wait code from the selenium Ruby gem
|
@@ -1317,15 +1335,15 @@ __Parameters:__
|
|
1317
1335
|
|
1318
1336
|
--
|
1319
1337
|
|
1320
|
-
##### [ignore](https://github.com/appium/ruby_lib/blob/
|
1338
|
+
##### [ignore](https://github.com/appium/ruby_lib/blob/22401b065f2317e82d37b5188ad9c18c701b0a41/lib/appium_lib/common/helper.rb#L24)
|
1321
1339
|
|
1322
|
-
> def ignore
|
1340
|
+
> def ignore
|
1323
1341
|
|
1324
|
-
Return
|
1342
|
+
Return yield and ignore any exceptions.
|
1325
1343
|
|
1326
1344
|
--
|
1327
1345
|
|
1328
|
-
##### [back](https://github.com/appium/ruby_lib/blob/
|
1346
|
+
##### [back](https://github.com/appium/ruby_lib/blob/22401b065f2317e82d37b5188ad9c18c701b0a41/lib/appium_lib/common/helper.rb#L31)
|
1329
1347
|
|
1330
1348
|
> def back
|
1331
1349
|
|
@@ -1337,7 +1355,7 @@ __Returns:__
|
|
1337
1355
|
|
1338
1356
|
--
|
1339
1357
|
|
1340
|
-
##### [session_id](https://github.com/appium/ruby_lib/blob/
|
1358
|
+
##### [session_id](https://github.com/appium/ruby_lib/blob/22401b065f2317e82d37b5188ad9c18c701b0a41/lib/appium_lib/common/helper.rb#L36)
|
1341
1359
|
|
1342
1360
|
> def session_id
|
1343
1361
|
|
@@ -1345,7 +1363,7 @@ For Sauce Labs reporting. Returns the current session id.
|
|
1345
1363
|
|
1346
1364
|
--
|
1347
1365
|
|
1348
|
-
##### [xpath](https://github.com/appium/ruby_lib/blob/
|
1366
|
+
##### [xpath](https://github.com/appium/ruby_lib/blob/22401b065f2317e82d37b5188ad9c18c701b0a41/lib/appium_lib/common/helper.rb#L44)
|
1349
1367
|
|
1350
1368
|
> def xpath(xpath_str)
|
1351
1369
|
|
@@ -1361,7 +1379,7 @@ __Returns:__
|
|
1361
1379
|
|
1362
1380
|
--
|
1363
1381
|
|
1364
|
-
##### [xpaths](https://github.com/appium/ruby_lib/blob/
|
1382
|
+
##### [xpaths](https://github.com/appium/ruby_lib/blob/22401b065f2317e82d37b5188ad9c18c701b0a41/lib/appium_lib/common/helper.rb#L52)
|
1365
1383
|
|
1366
1384
|
> def xpaths(xpath_str)
|
1367
1385
|
|
@@ -1377,7 +1395,7 @@ __Returns:__
|
|
1377
1395
|
|
1378
1396
|
--
|
1379
1397
|
|
1380
|
-
##### [_print_source](https://github.com/appium/ruby_lib/blob/
|
1398
|
+
##### [_print_source](https://github.com/appium/ruby_lib/blob/22401b065f2317e82d37b5188ad9c18c701b0a41/lib/appium_lib/common/helper.rb#L56)
|
1381
1399
|
|
1382
1400
|
> def _print_source(source)
|
1383
1401
|
|
@@ -1385,7 +1403,7 @@ __Returns:__
|
|
1385
1403
|
|
1386
1404
|
--
|
1387
1405
|
|
1388
|
-
##### [result](https://github.com/appium/ruby_lib/blob/
|
1406
|
+
##### [result](https://github.com/appium/ruby_lib/blob/22401b065f2317e82d37b5188ad9c18c701b0a41/lib/appium_lib/common/helper.rb#L69)
|
1389
1407
|
|
1390
1408
|
> def result
|
1391
1409
|
|
@@ -1393,7 +1411,7 @@ Returns the value of attribute result
|
|
1393
1411
|
|
1394
1412
|
--
|
1395
1413
|
|
1396
|
-
##### [initialize](https://github.com/appium/ruby_lib/blob/
|
1414
|
+
##### [initialize](https://github.com/appium/ruby_lib/blob/22401b065f2317e82d37b5188ad9c18c701b0a41/lib/appium_lib/common/helper.rb#L71)
|
1397
1415
|
|
1398
1416
|
> def initialize
|
1399
1417
|
|
@@ -1405,7 +1423,7 @@ __Returns:__
|
|
1405
1423
|
|
1406
1424
|
--
|
1407
1425
|
|
1408
|
-
##### [reset](https://github.com/appium/ruby_lib/blob/
|
1426
|
+
##### [reset](https://github.com/appium/ruby_lib/blob/22401b065f2317e82d37b5188ad9c18c701b0a41/lib/appium_lib/common/helper.rb#L75)
|
1409
1427
|
|
1410
1428
|
> def reset
|
1411
1429
|
|
@@ -1413,7 +1431,7 @@ __Returns:__
|
|
1413
1431
|
|
1414
1432
|
--
|
1415
1433
|
|
1416
|
-
##### [start_element](https://github.com/appium/ruby_lib/blob/
|
1434
|
+
##### [start_element](https://github.com/appium/ruby_lib/blob/22401b065f2317e82d37b5188ad9c18c701b0a41/lib/appium_lib/common/helper.rb#L80)
|
1417
1435
|
|
1418
1436
|
> def start_element(name, attrs = [])
|
1419
1437
|
|
@@ -1421,7 +1439,7 @@ http://nokogiri.org/Nokogiri/XML/SAX/Document.html
|
|
1421
1439
|
|
1422
1440
|
--
|
1423
1441
|
|
1424
|
-
##### [formatted_result](https://github.com/appium/ruby_lib/blob/
|
1442
|
+
##### [formatted_result](https://github.com/appium/ruby_lib/blob/22401b065f2317e82d37b5188ad9c18c701b0a41/lib/appium_lib/common/helper.rb#L86)
|
1425
1443
|
|
1426
1444
|
> def formatted_result
|
1427
1445
|
|
@@ -1429,7 +1447,7 @@ http://nokogiri.org/Nokogiri/XML/SAX/Document.html
|
|
1429
1447
|
|
1430
1448
|
--
|
1431
1449
|
|
1432
|
-
##### [get_page_class](https://github.com/appium/ruby_lib/blob/
|
1450
|
+
##### [get_page_class](https://github.com/appium/ruby_lib/blob/22401b065f2317e82d37b5188ad9c18c701b0a41/lib/appium_lib/common/helper.rb#L97)
|
1433
1451
|
|
1434
1452
|
> def get_page_class
|
1435
1453
|
|
@@ -1437,7 +1455,7 @@ Returns a string of class counts of visible elements.
|
|
1437
1455
|
|
1438
1456
|
--
|
1439
1457
|
|
1440
|
-
##### [page_class](https://github.com/appium/ruby_lib/blob/
|
1458
|
+
##### [page_class](https://github.com/appium/ruby_lib/blob/22401b065f2317e82d37b5188ad9c18c701b0a41/lib/appium_lib/common/helper.rb#L108)
|
1441
1459
|
|
1442
1460
|
> def page_class
|
1443
1461
|
|
@@ -1446,7 +1464,7 @@ Useful for appium_console.
|
|
1446
1464
|
|
1447
1465
|
--
|
1448
1466
|
|
1449
|
-
##### [px_to_window_rel](https://github.com/appium/ruby_lib/blob/
|
1467
|
+
##### [px_to_window_rel](https://github.com/appium/ruby_lib/blob/22401b065f2317e82d37b5188ad9c18c701b0a41/lib/appium_lib/common/helper.rb#L118)
|
1450
1468
|
|
1451
1469
|
> def px_to_window_rel(opts = {})
|
1452
1470
|
|
@@ -1458,7 +1476,7 @@ px_to_window_rel x: 50, y: 150
|
|
1458
1476
|
|
1459
1477
|
--
|
1460
1478
|
|
1461
|
-
##### [xml_keys](https://github.com/appium/ruby_lib/blob/
|
1479
|
+
##### [xml_keys](https://github.com/appium/ruby_lib/blob/22401b065f2317e82d37b5188ad9c18c701b0a41/lib/appium_lib/common/helper.rb#L137)
|
1462
1480
|
|
1463
1481
|
> def xml_keys(target)
|
1464
1482
|
|
@@ -1474,7 +1492,7 @@ __Returns:__
|
|
1474
1492
|
|
1475
1493
|
--
|
1476
1494
|
|
1477
|
-
##### [xml_values](https://github.com/appium/ruby_lib/blob/
|
1495
|
+
##### [xml_values](https://github.com/appium/ruby_lib/blob/22401b065f2317e82d37b5188ad9c18c701b0a41/lib/appium_lib/common/helper.rb#L145)
|
1478
1496
|
|
1479
1497
|
> def xml_values(target)
|
1480
1498
|
|
@@ -1490,7 +1508,7 @@ __Returns:__
|
|
1490
1508
|
|
1491
1509
|
--
|
1492
1510
|
|
1493
|
-
##### [resolve_id](https://github.com/appium/ruby_lib/blob/
|
1511
|
+
##### [resolve_id](https://github.com/appium/ruby_lib/blob/22401b065f2317e82d37b5188ad9c18c701b0a41/lib/appium_lib/common/helper.rb#L153)
|
1494
1512
|
|
1495
1513
|
> def resolve_id(id)
|
1496
1514
|
|
@@ -1506,7 +1524,7 @@ __Returns:__
|
|
1506
1524
|
|
1507
1525
|
--
|
1508
1526
|
|
1509
|
-
##### [filter](https://github.com/appium/ruby_lib/blob/
|
1527
|
+
##### [filter](https://github.com/appium/ruby_lib/blob/22401b065f2317e82d37b5188ad9c18c701b0a41/lib/appium_lib/common/helper.rb#L159)
|
1510
1528
|
|
1511
1529
|
> def filter
|
1512
1530
|
|
@@ -1514,7 +1532,7 @@ Returns the value of attribute filter
|
|
1514
1532
|
|
1515
1533
|
--
|
1516
1534
|
|
1517
|
-
##### [filter=](https://github.com/appium/ruby_lib/blob/
|
1535
|
+
##### [filter=](https://github.com/appium/ruby_lib/blob/22401b065f2317e82d37b5188ad9c18c701b0a41/lib/appium_lib/common/helper.rb#L162)
|
1518
1536
|
|
1519
1537
|
> def filter=(value)
|
1520
1538
|
|
@@ -1522,7 +1540,7 @@ convert to string to support symbols
|
|
1522
1540
|
|
1523
1541
|
--
|
1524
1542
|
|
1525
|
-
##### [initialize](https://github.com/appium/ruby_lib/blob/
|
1543
|
+
##### [initialize](https://github.com/appium/ruby_lib/blob/22401b065f2317e82d37b5188ad9c18c701b0a41/lib/appium_lib/common/helper.rb#L168)
|
1526
1544
|
|
1527
1545
|
> def initialize
|
1528
1546
|
|
@@ -1534,7 +1552,7 @@ __Returns:__
|
|
1534
1552
|
|
1535
1553
|
--
|
1536
1554
|
|
1537
|
-
##### [reset](https://github.com/appium/ruby_lib/blob/
|
1555
|
+
##### [reset](https://github.com/appium/ruby_lib/blob/22401b065f2317e82d37b5188ad9c18c701b0a41/lib/appium_lib/common/helper.rb#L173)
|
1538
1556
|
|
1539
1557
|
> def reset
|
1540
1558
|
|
@@ -1542,7 +1560,7 @@ __Returns:__
|
|
1542
1560
|
|
1543
1561
|
--
|
1544
1562
|
|
1545
|
-
##### [result](https://github.com/appium/ruby_lib/blob/
|
1563
|
+
##### [result](https://github.com/appium/ruby_lib/blob/22401b065f2317e82d37b5188ad9c18c701b0a41/lib/appium_lib/common/helper.rb#L179)
|
1546
1564
|
|
1547
1565
|
> def result
|
1548
1566
|
|
@@ -1550,7 +1568,7 @@ __Returns:__
|
|
1550
1568
|
|
1551
1569
|
--
|
1552
1570
|
|
1553
|
-
##### [start_element](https://github.com/appium/ruby_lib/blob/
|
1571
|
+
##### [start_element](https://github.com/appium/ruby_lib/blob/22401b065f2317e82d37b5188ad9c18c701b0a41/lib/appium_lib/common/helper.rb#L195)
|
1554
1572
|
|
1555
1573
|
> def start_element(name, attrs = [])
|
1556
1574
|
|
@@ -1558,7 +1576,7 @@ __Returns:__
|
|
1558
1576
|
|
1559
1577
|
--
|
1560
1578
|
|
1561
|
-
##### [end_element](https://github.com/appium/ruby_lib/blob/
|
1579
|
+
##### [end_element](https://github.com/appium/ruby_lib/blob/22401b065f2317e82d37b5188ad9c18c701b0a41/lib/appium_lib/common/helper.rb#L204)
|
1562
1580
|
|
1563
1581
|
> def end_element(name)
|
1564
1582
|
|
@@ -1566,7 +1584,7 @@ __Returns:__
|
|
1566
1584
|
|
1567
1585
|
--
|
1568
1586
|
|
1569
|
-
##### [characters](https://github.com/appium/ruby_lib/blob/
|
1587
|
+
##### [characters](https://github.com/appium/ruby_lib/blob/22401b065f2317e82d37b5188ad9c18c701b0a41/lib/appium_lib/common/helper.rb#L210)
|
1570
1588
|
|
1571
1589
|
> def characters(chars)
|
1572
1590
|
|
@@ -1574,7 +1592,7 @@ __Returns:__
|
|
1574
1592
|
|
1575
1593
|
--
|
1576
1594
|
|
1577
|
-
##### [_no_such_element](https://github.com/appium/ruby_lib/blob/
|
1595
|
+
##### [_no_such_element](https://github.com/appium/ruby_lib/blob/22401b065f2317e82d37b5188ad9c18c701b0a41/lib/appium_lib/common/helper.rb#L217)
|
1578
1596
|
|
1579
1597
|
> def _no_such_element
|
1580
1598
|
|
@@ -1582,7 +1600,7 @@ __Returns:__
|
|
1582
1600
|
|
1583
1601
|
--
|
1584
1602
|
|
1585
|
-
##### [COMMAND_NO_ARG](https://github.com/appium/ruby_lib/blob/
|
1603
|
+
##### [COMMAND_NO_ARG](https://github.com/appium/ruby_lib/blob/22401b065f2317e82d37b5188ad9c18c701b0a41/lib/appium_lib/common/command.rb#L4)
|
1586
1604
|
|
1587
1605
|
> COMMAND_NO_ARG = {
|
1588
1606
|
|
@@ -1590,7 +1608,7 @@ __Returns:__
|
|
1590
1608
|
|
1591
1609
|
--
|
1592
1610
|
|
1593
|
-
##### [COMMAND](https://github.com/appium/ruby_lib/blob/
|
1611
|
+
##### [COMMAND](https://github.com/appium/ruby_lib/blob/22401b065f2317e82d37b5188ad9c18c701b0a41/lib/appium_lib/common/command.rb#L23)
|
1594
1612
|
|
1595
1613
|
> COMMAND = {
|
1596
1614
|
|
@@ -1598,7 +1616,7 @@ __Returns:__
|
|
1598
1616
|
|
1599
1617
|
--
|
1600
1618
|
|
1601
|
-
##### [FINDERS](https://github.com/appium/ruby_lib/blob/
|
1619
|
+
##### [FINDERS](https://github.com/appium/ruby_lib/blob/22401b065f2317e82d37b5188ad9c18c701b0a41/lib/appium_lib/common/search_context.rb#L5)
|
1602
1620
|
|
1603
1621
|
> FINDERS = {
|
1604
1622
|
|
@@ -1606,7 +1624,7 @@ rubocop:disable Style/MutableConstant
|
|
1606
1624
|
|
1607
1625
|
--
|
1608
1626
|
|
1609
|
-
##### [window_size](https://github.com/appium/ruby_lib/blob/
|
1627
|
+
##### [window_size](https://github.com/appium/ruby_lib/blob/22401b065f2317e82d37b5188ad9c18c701b0a41/lib/appium_lib/common/element/window.rb#L5)
|
1610
1628
|
|
1611
1629
|
> def window_size
|
1612
1630
|
|
@@ -1614,7 +1632,7 @@ Get the window's size
|
|
1614
1632
|
|
1615
1633
|
--
|
1616
1634
|
|
1617
|
-
##### [result](https://github.com/appium/ruby_lib/blob/
|
1635
|
+
##### [result](https://github.com/appium/ruby_lib/blob/22401b065f2317e82d37b5188ad9c18c701b0a41/lib/appium_lib/android/helper.rb#L6) android
|
1618
1636
|
|
1619
1637
|
> def result
|
1620
1638
|
|
@@ -1622,7 +1640,7 @@ Returns the value of attribute result
|
|
1622
1640
|
|
1623
1641
|
--
|
1624
1642
|
|
1625
|
-
##### [keys](https://github.com/appium/ruby_lib/blob/
|
1643
|
+
##### [keys](https://github.com/appium/ruby_lib/blob/22401b065f2317e82d37b5188ad9c18c701b0a41/lib/appium_lib/android/helper.rb#L6) android
|
1626
1644
|
|
1627
1645
|
> def keys
|
1628
1646
|
|
@@ -1630,7 +1648,7 @@ Returns the value of attribute keys
|
|
1630
1648
|
|
1631
1649
|
--
|
1632
1650
|
|
1633
|
-
##### [instance](https://github.com/appium/ruby_lib/blob/
|
1651
|
+
##### [instance](https://github.com/appium/ruby_lib/blob/22401b065f2317e82d37b5188ad9c18c701b0a41/lib/appium_lib/android/helper.rb#L6) android
|
1634
1652
|
|
1635
1653
|
> def instance
|
1636
1654
|
|
@@ -1638,7 +1656,7 @@ Returns the value of attribute instance
|
|
1638
1656
|
|
1639
1657
|
--
|
1640
1658
|
|
1641
|
-
##### [filter](https://github.com/appium/ruby_lib/blob/
|
1659
|
+
##### [filter](https://github.com/appium/ruby_lib/blob/22401b065f2317e82d37b5188ad9c18c701b0a41/lib/appium_lib/android/helper.rb#L6) android
|
1642
1660
|
|
1643
1661
|
> def filter
|
1644
1662
|
|
@@ -1646,7 +1664,7 @@ Returns the value of attribute filter
|
|
1646
1664
|
|
1647
1665
|
--
|
1648
1666
|
|
1649
|
-
##### [filter=](https://github.com/appium/ruby_lib/blob/
|
1667
|
+
##### [filter=](https://github.com/appium/ruby_lib/blob/22401b065f2317e82d37b5188ad9c18c701b0a41/lib/appium_lib/android/helper.rb#L9) android
|
1650
1668
|
|
1651
1669
|
> def filter=(value)
|
1652
1670
|
|
@@ -1654,7 +1672,7 @@ convert to string to support symbols
|
|
1654
1672
|
|
1655
1673
|
--
|
1656
1674
|
|
1657
|
-
##### [initialize](https://github.com/appium/ruby_lib/blob/
|
1675
|
+
##### [initialize](https://github.com/appium/ruby_lib/blob/22401b065f2317e82d37b5188ad9c18c701b0a41/lib/appium_lib/android/helper.rb#L15) android
|
1658
1676
|
|
1659
1677
|
> def initialize
|
1660
1678
|
|
@@ -1666,7 +1684,7 @@ __Returns:__
|
|
1666
1684
|
|
1667
1685
|
--
|
1668
1686
|
|
1669
|
-
##### [reset](https://github.com/appium/ruby_lib/blob/
|
1687
|
+
##### [reset](https://github.com/appium/ruby_lib/blob/22401b065f2317e82d37b5188ad9c18c701b0a41/lib/appium_lib/android/helper.rb#L21) android
|
1670
1688
|
|
1671
1689
|
> def reset
|
1672
1690
|
|
@@ -1674,7 +1692,7 @@ __Returns:__
|
|
1674
1692
|
|
1675
1693
|
--
|
1676
1694
|
|
1677
|
-
##### [start_element](https://github.com/appium/ruby_lib/blob/
|
1695
|
+
##### [start_element](https://github.com/appium/ruby_lib/blob/22401b065f2317e82d37b5188ad9c18c701b0a41/lib/appium_lib/android/helper.rb#L28) android
|
1678
1696
|
|
1679
1697
|
> def start_element(name, attrs = [])
|
1680
1698
|
|
@@ -1682,7 +1700,7 @@ http://nokogiri.org/Nokogiri/XML/SAX/Document.html
|
|
1682
1700
|
|
1683
1701
|
--
|
1684
1702
|
|
1685
|
-
##### [_fix_android_native_source](https://github.com/appium/ruby_lib/blob/
|
1703
|
+
##### [_fix_android_native_source](https://github.com/appium/ruby_lib/blob/22401b065f2317e82d37b5188ad9c18c701b0a41/lib/appium_lib/android/helper.rb#L88) android
|
1686
1704
|
|
1687
1705
|
> def _fix_android_native_source(source)
|
1688
1706
|
|
@@ -1692,7 +1710,7 @@ https://code.google.com/p/android/issues/detail?id=74143
|
|
1692
1710
|
|
1693
1711
|
--
|
1694
1712
|
|
1695
|
-
##### [source](https://github.com/appium/ruby_lib/blob/
|
1713
|
+
##### [source](https://github.com/appium/ruby_lib/blob/22401b065f2317e82d37b5188ad9c18c701b0a41/lib/appium_lib/android/helper.rb#L116) android
|
1696
1714
|
|
1697
1715
|
> def source
|
1698
1716
|
|
@@ -1704,7 +1722,7 @@ __Returns:__
|
|
1704
1722
|
|
1705
1723
|
--
|
1706
1724
|
|
1707
|
-
##### [get_android_inspect](https://github.com/appium/ruby_lib/blob/
|
1725
|
+
##### [get_android_inspect](https://github.com/appium/ruby_lib/blob/22401b065f2317e82d37b5188ad9c18c701b0a41/lib/appium_lib/android/helper.rb#L126) android
|
1708
1726
|
|
1709
1727
|
> def get_android_inspect(class_name = false)
|
1710
1728
|
|
@@ -1723,7 +1741,7 @@ __Returns:__
|
|
1723
1741
|
|
1724
1742
|
--
|
1725
1743
|
|
1726
|
-
##### [page](https://github.com/appium/ruby_lib/blob/
|
1744
|
+
##### [page](https://github.com/appium/ruby_lib/blob/22401b065f2317e82d37b5188ad9c18c701b0a41/lib/appium_lib/android/helper.rb#L152) android
|
1727
1745
|
|
1728
1746
|
> def page(opts = {})
|
1729
1747
|
|
@@ -1742,7 +1760,7 @@ __Returns:__
|
|
1742
1760
|
|
1743
1761
|
--
|
1744
1762
|
|
1745
|
-
##### [current_app](https://github.com/appium/ruby_lib/blob/
|
1763
|
+
##### [current_app](https://github.com/appium/ruby_lib/blob/22401b065f2317e82d37b5188ad9c18c701b0a41/lib/appium_lib/android/helper.rb#L164) android
|
1746
1764
|
|
1747
1765
|
> def current_app
|
1748
1766
|
|
@@ -1752,7 +1770,7 @@ example line:
|
|
1752
1770
|
|
1753
1771
|
--
|
1754
1772
|
|
1755
|
-
##### [id](https://github.com/appium/ruby_lib/blob/
|
1773
|
+
##### [id](https://github.com/appium/ruby_lib/blob/22401b065f2317e82d37b5188ad9c18c701b0a41/lib/appium_lib/android/helper.rb#L188) android
|
1756
1774
|
|
1757
1775
|
> def id(id)
|
1758
1776
|
|
@@ -1768,7 +1786,7 @@ __Returns:__
|
|
1768
1786
|
|
1769
1787
|
--
|
1770
1788
|
|
1771
|
-
##### [ids](https://github.com/appium/ruby_lib/blob/
|
1789
|
+
##### [ids](https://github.com/appium/ruby_lib/blob/22401b065f2317e82d37b5188ad9c18c701b0a41/lib/appium_lib/android/helper.rb#L196) android
|
1772
1790
|
|
1773
1791
|
> def ids(id)
|
1774
1792
|
|
@@ -1784,7 +1802,7 @@ __Returns:__
|
|
1784
1802
|
|
1785
1803
|
--
|
1786
1804
|
|
1787
|
-
##### [ele_index](https://github.com/appium/ruby_lib/blob/
|
1805
|
+
##### [ele_index](https://github.com/appium/ruby_lib/blob/22401b065f2317e82d37b5188ad9c18c701b0a41/lib/appium_lib/android/helper.rb#L205) android
|
1788
1806
|
|
1789
1807
|
> def ele_index(class_name, index)
|
1790
1808
|
|
@@ -1802,7 +1820,7 @@ __Returns:__
|
|
1802
1820
|
|
1803
1821
|
--
|
1804
1822
|
|
1805
|
-
##### [first_ele](https://github.com/appium/ruby_lib/blob/
|
1823
|
+
##### [first_ele](https://github.com/appium/ruby_lib/blob/22401b065f2317e82d37b5188ad9c18c701b0a41/lib/appium_lib/android/helper.rb#L223) android
|
1806
1824
|
|
1807
1825
|
> def first_ele(class_name)
|
1808
1826
|
|
@@ -1818,7 +1836,7 @@ __Returns:__
|
|
1818
1836
|
|
1819
1837
|
--
|
1820
1838
|
|
1821
|
-
##### [last_ele](https://github.com/appium/ruby_lib/blob/
|
1839
|
+
##### [last_ele](https://github.com/appium/ruby_lib/blob/22401b065f2317e82d37b5188ad9c18c701b0a41/lib/appium_lib/android/helper.rb#L230) android
|
1822
1840
|
|
1823
1841
|
> def last_ele(class_name)
|
1824
1842
|
|
@@ -1834,7 +1852,7 @@ __Returns:__
|
|
1834
1852
|
|
1835
1853
|
--
|
1836
1854
|
|
1837
|
-
##### [tag](https://github.com/appium/ruby_lib/blob/
|
1855
|
+
##### [tag](https://github.com/appium/ruby_lib/blob/22401b065f2317e82d37b5188ad9c18c701b0a41/lib/appium_lib/android/helper.rb#L238) android
|
1838
1856
|
|
1839
1857
|
> def tag(class_name)
|
1840
1858
|
|
@@ -1850,7 +1868,7 @@ __Returns:__
|
|
1850
1868
|
|
1851
1869
|
--
|
1852
1870
|
|
1853
|
-
##### [tags](https://github.com/appium/ruby_lib/blob/
|
1871
|
+
##### [tags](https://github.com/appium/ruby_lib/blob/22401b065f2317e82d37b5188ad9c18c701b0a41/lib/appium_lib/android/helper.rb#L246) android
|
1854
1872
|
|
1855
1873
|
> def tags(class_name)
|
1856
1874
|
|
@@ -1866,7 +1884,7 @@ __Returns:__
|
|
1866
1884
|
|
1867
1885
|
--
|
1868
1886
|
|
1869
|
-
##### [string_visible_contains](https://github.com/appium/ruby_lib/blob/
|
1887
|
+
##### [string_visible_contains](https://github.com/appium/ruby_lib/blob/22401b065f2317e82d37b5188ad9c18c701b0a41/lib/appium_lib/android/helper.rb#L288) android
|
1870
1888
|
|
1871
1889
|
> def string_visible_contains(class_name, value)
|
1872
1890
|
|
@@ -1886,7 +1904,7 @@ __Returns:__
|
|
1886
1904
|
|
1887
1905
|
--
|
1888
1906
|
|
1889
|
-
##### [complex_find_contains](https://github.com/appium/ruby_lib/blob/
|
1907
|
+
##### [complex_find_contains](https://github.com/appium/ruby_lib/blob/22401b065f2317e82d37b5188ad9c18c701b0a41/lib/appium_lib/android/helper.rb#L308) android
|
1890
1908
|
|
1891
1909
|
> def complex_find_contains(element, value)
|
1892
1910
|
|
@@ -1904,7 +1922,7 @@ __Returns:__
|
|
1904
1922
|
|
1905
1923
|
--
|
1906
1924
|
|
1907
|
-
##### [complex_finds_contains](https://github.com/appium/ruby_lib/blob/
|
1925
|
+
##### [complex_finds_contains](https://github.com/appium/ruby_lib/blob/22401b065f2317e82d37b5188ad9c18c701b0a41/lib/appium_lib/android/helper.rb#L316) android
|
1908
1926
|
|
1909
1927
|
> def complex_finds_contains(element, value)
|
1910
1928
|
|
@@ -1922,7 +1940,7 @@ __Returns:__
|
|
1922
1940
|
|
1923
1941
|
--
|
1924
1942
|
|
1925
|
-
##### [complex_find_exact](https://github.com/appium/ruby_lib/blob/
|
1943
|
+
##### [complex_find_exact](https://github.com/appium/ruby_lib/blob/22401b065f2317e82d37b5188ad9c18c701b0a41/lib/appium_lib/android/helper.rb#L345) android
|
1926
1944
|
|
1927
1945
|
> def complex_find_exact(class_name, value)
|
1928
1946
|
|
@@ -1940,7 +1958,7 @@ __Returns:__
|
|
1940
1958
|
|
1941
1959
|
--
|
1942
1960
|
|
1943
|
-
##### [complex_finds_exact](https://github.com/appium/ruby_lib/blob/
|
1961
|
+
##### [complex_finds_exact](https://github.com/appium/ruby_lib/blob/22401b065f2317e82d37b5188ad9c18c701b0a41/lib/appium_lib/android/helper.rb#L353) android
|
1944
1962
|
|
1945
1963
|
> def complex_finds_exact(class_name, value)
|
1946
1964
|
|
@@ -1958,7 +1976,7 @@ __Returns:__
|
|
1958
1976
|
|
1959
1977
|
--
|
1960
1978
|
|
1961
|
-
##### [get_source](https://github.com/appium/ruby_lib/blob/
|
1979
|
+
##### [get_source](https://github.com/appium/ruby_lib/blob/22401b065f2317e82d37b5188ad9c18c701b0a41/lib/appium_lib/android/helper.rb#L361) android
|
1962
1980
|
|
1963
1981
|
> def get_source
|
1964
1982
|
|
@@ -1972,7 +1990,7 @@ __Returns:__
|
|
1972
1990
|
|
1973
1991
|
--
|
1974
1992
|
|
1975
|
-
##### [TextView](https://github.com/appium/ruby_lib/blob/
|
1993
|
+
##### [TextView](https://github.com/appium/ruby_lib/blob/22401b065f2317e82d37b5188ad9c18c701b0a41/lib/appium_lib/android/element/text.rb#L4) android
|
1976
1994
|
|
1977
1995
|
> TextView = 'android.widget.TextView'.freeze
|
1978
1996
|
|
@@ -1980,7 +1998,7 @@ __Returns:__
|
|
1980
1998
|
|
1981
1999
|
--
|
1982
2000
|
|
1983
|
-
##### [text](https://github.com/appium/ruby_lib/blob/
|
2001
|
+
##### [text](https://github.com/appium/ruby_lib/blob/22401b065f2317e82d37b5188ad9c18c701b0a41/lib/appium_lib/android/element/text.rb#L10) android
|
1984
2002
|
|
1985
2003
|
> def text(value)
|
1986
2004
|
|
@@ -1997,7 +2015,7 @@ __Returns:__
|
|
1997
2015
|
|
1998
2016
|
--
|
1999
2017
|
|
2000
|
-
##### [texts](https://github.com/appium/ruby_lib/blob/
|
2018
|
+
##### [texts](https://github.com/appium/ruby_lib/blob/22401b065f2317e82d37b5188ad9c18c701b0a41/lib/appium_lib/android/element/text.rb#L19) android
|
2001
2019
|
|
2002
2020
|
> def texts(value = false)
|
2003
2021
|
|
@@ -2014,7 +2032,7 @@ __Returns:__
|
|
2014
2032
|
|
2015
2033
|
--
|
2016
2034
|
|
2017
|
-
##### [first_text](https://github.com/appium/ruby_lib/blob/
|
2035
|
+
##### [first_text](https://github.com/appium/ruby_lib/blob/22401b065f2317e82d37b5188ad9c18c701b0a41/lib/appium_lib/android/element/text.rb#L26) android
|
2018
2036
|
|
2019
2037
|
> def first_text
|
2020
2038
|
|
@@ -2026,7 +2044,7 @@ __Returns:__
|
|
2026
2044
|
|
2027
2045
|
--
|
2028
2046
|
|
2029
|
-
##### [last_text](https://github.com/appium/ruby_lib/blob/
|
2047
|
+
##### [last_text](https://github.com/appium/ruby_lib/blob/22401b065f2317e82d37b5188ad9c18c701b0a41/lib/appium_lib/android/element/text.rb#L32) android
|
2030
2048
|
|
2031
2049
|
> def last_text
|
2032
2050
|
|
@@ -2038,7 +2056,7 @@ __Returns:__
|
|
2038
2056
|
|
2039
2057
|
--
|
2040
2058
|
|
2041
|
-
##### [text_exact](https://github.com/appium/ruby_lib/blob/
|
2059
|
+
##### [text_exact](https://github.com/appium/ruby_lib/blob/22401b065f2317e82d37b5188ad9c18c701b0a41/lib/appium_lib/android/element/text.rb#L39) android
|
2042
2060
|
|
2043
2061
|
> def text_exact(value)
|
2044
2062
|
|
@@ -2054,7 +2072,7 @@ __Returns:__
|
|
2054
2072
|
|
2055
2073
|
--
|
2056
2074
|
|
2057
|
-
##### [texts_exact](https://github.com/appium/ruby_lib/blob/
|
2075
|
+
##### [texts_exact](https://github.com/appium/ruby_lib/blob/22401b065f2317e82d37b5188ad9c18c701b0a41/lib/appium_lib/android/element/text.rb#L46) android
|
2058
2076
|
|
2059
2077
|
> def texts_exact(value)
|
2060
2078
|
|
@@ -2070,7 +2088,7 @@ __Returns:__
|
|
2070
2088
|
|
2071
2089
|
--
|
2072
2090
|
|
2073
|
-
##### [_nodeset_to_uiselector](https://github.com/appium/ruby_lib/blob/
|
2091
|
+
##### [_nodeset_to_uiselector](https://github.com/appium/ruby_lib/blob/22401b065f2317e82d37b5188ad9c18c701b0a41/lib/appium_lib/android/client_xpath.rb#L5) android
|
2074
2092
|
|
2075
2093
|
> def _nodeset_to_uiselector(opts = {})
|
2076
2094
|
|
@@ -2078,7 +2096,7 @@ __Returns:__
|
|
2078
2096
|
|
2079
2097
|
--
|
2080
2098
|
|
2081
|
-
##### [_client_xpath](https://github.com/appium/ruby_lib/blob/
|
2099
|
+
##### [_client_xpath](https://github.com/appium/ruby_lib/blob/22401b065f2317e82d37b5188ad9c18c701b0a41/lib/appium_lib/android/client_xpath.rb#L20) android
|
2082
2100
|
|
2083
2101
|
> def _client_xpath(opts = {})
|
2084
2102
|
|
@@ -2086,7 +2104,7 @@ __Returns:__
|
|
2086
2104
|
|
2087
2105
|
--
|
2088
2106
|
|
2089
|
-
##### [client_xpath](https://github.com/appium/ruby_lib/blob/
|
2107
|
+
##### [client_xpath](https://github.com/appium/ruby_lib/blob/22401b065f2317e82d37b5188ad9c18c701b0a41/lib/appium_lib/android/client_xpath.rb#L36) android
|
2090
2108
|
|
2091
2109
|
> def client_xpath(xpath)
|
2092
2110
|
|
@@ -2094,7 +2112,7 @@ __Returns:__
|
|
2094
2112
|
|
2095
2113
|
--
|
2096
2114
|
|
2097
|
-
##### [client_xpaths](https://github.com/appium/ruby_lib/blob/
|
2115
|
+
##### [client_xpaths](https://github.com/appium/ruby_lib/blob/22401b065f2317e82d37b5188ad9c18c701b0a41/lib/appium_lib/android/client_xpath.rb#L40) android
|
2098
2116
|
|
2099
2117
|
> def client_xpaths(xpath)
|
2100
2118
|
|
@@ -2102,7 +2120,7 @@ __Returns:__
|
|
2102
2120
|
|
2103
2121
|
--
|
2104
2122
|
|
2105
|
-
##### [alert_click](https://github.com/appium/ruby_lib/blob/
|
2123
|
+
##### [alert_click](https://github.com/appium/ruby_lib/blob/22401b065f2317e82d37b5188ad9c18c701b0a41/lib/appium_lib/android/element/alert.rb#L6) android
|
2106
2124
|
|
2107
2125
|
> def alert_click(value)
|
2108
2126
|
|
@@ -2118,7 +2136,7 @@ __Returns:__
|
|
2118
2136
|
|
2119
2137
|
--
|
2120
2138
|
|
2121
|
-
##### [alert_accept](https://github.com/appium/ruby_lib/blob/
|
2139
|
+
##### [alert_accept](https://github.com/appium/ruby_lib/blob/22401b065f2317e82d37b5188ad9c18c701b0a41/lib/appium_lib/android/element/alert.rb#L13) android
|
2122
2140
|
|
2123
2141
|
> def alert_accept
|
2124
2142
|
|
@@ -2131,7 +2149,7 @@ __Returns:__
|
|
2131
2149
|
|
2132
2150
|
--
|
2133
2151
|
|
2134
|
-
##### [alert_accept_text](https://github.com/appium/ruby_lib/blob/
|
2152
|
+
##### [alert_accept_text](https://github.com/appium/ruby_lib/blob/22401b065f2317e82d37b5188ad9c18c701b0a41/lib/appium_lib/android/element/alert.rb#L20) android
|
2135
2153
|
|
2136
2154
|
> def alert_accept_text
|
2137
2155
|
|
@@ -2144,7 +2162,7 @@ __Returns:__
|
|
2144
2162
|
|
2145
2163
|
--
|
2146
2164
|
|
2147
|
-
##### [alert_dismiss](https://github.com/appium/ruby_lib/blob/
|
2165
|
+
##### [alert_dismiss](https://github.com/appium/ruby_lib/blob/22401b065f2317e82d37b5188ad9c18c701b0a41/lib/appium_lib/android/element/alert.rb#L27) android
|
2148
2166
|
|
2149
2167
|
> def alert_dismiss
|
2150
2168
|
|
@@ -2157,7 +2175,7 @@ __Returns:__
|
|
2157
2175
|
|
2158
2176
|
--
|
2159
2177
|
|
2160
|
-
##### [alert_dismiss_text](https://github.com/appium/ruby_lib/blob/
|
2178
|
+
##### [alert_dismiss_text](https://github.com/appium/ruby_lib/blob/22401b065f2317e82d37b5188ad9c18c701b0a41/lib/appium_lib/android/element/alert.rb#L34) android
|
2161
2179
|
|
2162
2180
|
> def alert_dismiss_text
|
2163
2181
|
|
@@ -2170,7 +2188,7 @@ __Returns:__
|
|
2170
2188
|
|
2171
2189
|
--
|
2172
2190
|
|
2173
|
-
##### [Button](https://github.com/appium/ruby_lib/blob/
|
2191
|
+
##### [Button](https://github.com/appium/ruby_lib/blob/22401b065f2317e82d37b5188ad9c18c701b0a41/lib/appium_lib/android/element/button.rb#L4) android
|
2174
2192
|
|
2175
2193
|
> Button = 'android.widget.Button'.freeze
|
2176
2194
|
|
@@ -2178,7 +2196,7 @@ __Returns:__
|
|
2178
2196
|
|
2179
2197
|
--
|
2180
2198
|
|
2181
|
-
##### [ImageButton](https://github.com/appium/ruby_lib/blob/
|
2199
|
+
##### [ImageButton](https://github.com/appium/ruby_lib/blob/22401b065f2317e82d37b5188ad9c18c701b0a41/lib/appium_lib/android/element/button.rb#L5) android
|
2182
2200
|
|
2183
2201
|
> ImageButton = 'android.widget.ImageButton'.freeze
|
2184
2202
|
|
@@ -2186,7 +2204,7 @@ __Returns:__
|
|
2186
2204
|
|
2187
2205
|
--
|
2188
2206
|
|
2189
|
-
##### [button](https://github.com/appium/ruby_lib/blob/
|
2207
|
+
##### [button](https://github.com/appium/ruby_lib/blob/22401b065f2317e82d37b5188ad9c18c701b0a41/lib/appium_lib/android/element/button.rb#L43) android
|
2190
2208
|
|
2191
2209
|
> def button(value)
|
2192
2210
|
|
@@ -2203,7 +2221,7 @@ __Returns:__
|
|
2203
2221
|
|
2204
2222
|
--
|
2205
2223
|
|
2206
|
-
##### [buttons](https://github.com/appium/ruby_lib/blob/
|
2224
|
+
##### [buttons](https://github.com/appium/ruby_lib/blob/22401b065f2317e82d37b5188ad9c18c701b0a41/lib/appium_lib/android/element/button.rb#L60) android
|
2207
2225
|
|
2208
2226
|
> def buttons(value = false)
|
2209
2227
|
|
@@ -2220,7 +2238,7 @@ __Returns:__
|
|
2220
2238
|
|
2221
2239
|
--
|
2222
2240
|
|
2223
|
-
##### [first_button](https://github.com/appium/ruby_lib/blob/
|
2241
|
+
##### [first_button](https://github.com/appium/ruby_lib/blob/22401b065f2317e82d37b5188ad9c18c701b0a41/lib/appium_lib/android/element/button.rb#L67) android
|
2224
2242
|
|
2225
2243
|
> def first_button
|
2226
2244
|
|
@@ -2232,7 +2250,7 @@ __Returns:__
|
|
2232
2250
|
|
2233
2251
|
--
|
2234
2252
|
|
2235
|
-
##### [last_button](https://github.com/appium/ruby_lib/blob/
|
2253
|
+
##### [last_button](https://github.com/appium/ruby_lib/blob/22401b065f2317e82d37b5188ad9c18c701b0a41/lib/appium_lib/android/element/button.rb#L73) android
|
2236
2254
|
|
2237
2255
|
> def last_button
|
2238
2256
|
|
@@ -2244,7 +2262,7 @@ __Returns:__
|
|
2244
2262
|
|
2245
2263
|
--
|
2246
2264
|
|
2247
|
-
##### [button_exact](https://github.com/appium/ruby_lib/blob/
|
2265
|
+
##### [button_exact](https://github.com/appium/ruby_lib/blob/22401b065f2317e82d37b5188ad9c18c701b0a41/lib/appium_lib/android/element/button.rb#L89) android
|
2248
2266
|
|
2249
2267
|
> def button_exact(value)
|
2250
2268
|
|
@@ -2260,7 +2278,7 @@ __Returns:__
|
|
2260
2278
|
|
2261
2279
|
--
|
2262
2280
|
|
2263
|
-
##### [buttons_exact](https://github.com/appium/ruby_lib/blob/
|
2281
|
+
##### [buttons_exact](https://github.com/appium/ruby_lib/blob/22401b065f2317e82d37b5188ad9c18c701b0a41/lib/appium_lib/android/element/button.rb#L96) android
|
2264
2282
|
|
2265
2283
|
> def buttons_exact(value)
|
2266
2284
|
|
@@ -2276,7 +2294,7 @@ __Returns:__
|
|
2276
2294
|
|
2277
2295
|
--
|
2278
2296
|
|
2279
|
-
##### [uiautomator_find](https://github.com/appium/ruby_lib/blob/
|
2297
|
+
##### [uiautomator_find](https://github.com/appium/ruby_lib/blob/22401b065f2317e82d37b5188ad9c18c701b0a41/lib/appium_lib/android/mobile_methods.rb#L10) android
|
2280
2298
|
|
2281
2299
|
> def uiautomator_find
|
2282
2300
|
|
@@ -2288,7 +2306,7 @@ find_element/s can be used with a [UISelector](http://developer.android.com/tool
|
|
2288
2306
|
|
2289
2307
|
--
|
2290
2308
|
|
2291
|
-
##### [find](https://github.com/appium/ruby_lib/blob/
|
2309
|
+
##### [find](https://github.com/appium/ruby_lib/blob/22401b065f2317e82d37b5188ad9c18c701b0a41/lib/appium_lib/android/element/generic.rb#L6) android
|
2292
2310
|
|
2293
2311
|
> def find(value)
|
2294
2312
|
|
@@ -2304,7 +2322,7 @@ __Returns:__
|
|
2304
2322
|
|
2305
2323
|
--
|
2306
2324
|
|
2307
|
-
##### [finds](https://github.com/appium/ruby_lib/blob/
|
2325
|
+
##### [finds](https://github.com/appium/ruby_lib/blob/22401b065f2317e82d37b5188ad9c18c701b0a41/lib/appium_lib/android/element/generic.rb#L13) android
|
2308
2326
|
|
2309
2327
|
> def finds(value)
|
2310
2328
|
|
@@ -2320,7 +2338,7 @@ __Returns:__
|
|
2320
2338
|
|
2321
2339
|
--
|
2322
2340
|
|
2323
|
-
##### [find_exact](https://github.com/appium/ruby_lib/blob/
|
2341
|
+
##### [find_exact](https://github.com/appium/ruby_lib/blob/22401b065f2317e82d37b5188ad9c18c701b0a41/lib/appium_lib/android/element/generic.rb#L20) android
|
2324
2342
|
|
2325
2343
|
> def find_exact(value)
|
2326
2344
|
|
@@ -2336,7 +2354,7 @@ __Returns:__
|
|
2336
2354
|
|
2337
2355
|
--
|
2338
2356
|
|
2339
|
-
##### [finds_exact](https://github.com/appium/ruby_lib/blob/
|
2357
|
+
##### [finds_exact](https://github.com/appium/ruby_lib/blob/22401b065f2317e82d37b5188ad9c18c701b0a41/lib/appium_lib/android/element/generic.rb#L27) android
|
2340
2358
|
|
2341
2359
|
> def finds_exact(value)
|
2342
2360
|
|
@@ -2352,7 +2370,7 @@ __Returns:__
|
|
2352
2370
|
|
2353
2371
|
--
|
2354
2372
|
|
2355
|
-
##### [scroll_to](https://github.com/appium/ruby_lib/blob/
|
2373
|
+
##### [scroll_to](https://github.com/appium/ruby_lib/blob/22401b065f2317e82d37b5188ad9c18c701b0a41/lib/appium_lib/android/element/generic.rb#L39) android
|
2356
2374
|
|
2357
2375
|
> def scroll_to(text)
|
2358
2376
|
|
@@ -2368,7 +2386,7 @@ __Returns:__
|
|
2368
2386
|
|
2369
2387
|
--
|
2370
2388
|
|
2371
|
-
##### [scroll_to_exact](https://github.com/appium/ruby_lib/blob/
|
2389
|
+
##### [scroll_to_exact](https://github.com/appium/ruby_lib/blob/22401b065f2317e82d37b5188ad9c18c701b0a41/lib/appium_lib/android/element/generic.rb#L51) android
|
2372
2390
|
|
2373
2391
|
> def scroll_to_exact(text)
|
2374
2392
|
|
@@ -2384,7 +2402,7 @@ __Returns:__
|
|
2384
2402
|
|
2385
2403
|
--
|
2386
2404
|
|
2387
|
-
##### [EditText](https://github.com/appium/ruby_lib/blob/
|
2405
|
+
##### [EditText](https://github.com/appium/ruby_lib/blob/22401b065f2317e82d37b5188ad9c18c701b0a41/lib/appium_lib/android/element/textfield.rb#L3) android
|
2388
2406
|
|
2389
2407
|
> EditText = 'android.widget.EditText'.freeze
|
2390
2408
|
|
@@ -2392,7 +2410,7 @@ __Returns:__
|
|
2392
2410
|
|
2393
2411
|
--
|
2394
2412
|
|
2395
|
-
##### [textfield](https://github.com/appium/ruby_lib/blob/
|
2413
|
+
##### [textfield](https://github.com/appium/ruby_lib/blob/22401b065f2317e82d37b5188ad9c18c701b0a41/lib/appium_lib/android/element/textfield.rb#L9) android
|
2396
2414
|
|
2397
2415
|
> def textfield(value)
|
2398
2416
|
|
@@ -2409,7 +2427,7 @@ __Returns:__
|
|
2409
2427
|
|
2410
2428
|
--
|
2411
2429
|
|
2412
|
-
##### [textfields](https://github.com/appium/ruby_lib/blob/
|
2430
|
+
##### [textfields](https://github.com/appium/ruby_lib/blob/22401b065f2317e82d37b5188ad9c18c701b0a41/lib/appium_lib/android/element/textfield.rb#L18) android
|
2413
2431
|
|
2414
2432
|
> def textfields(value = false)
|
2415
2433
|
|
@@ -2426,7 +2444,7 @@ __Returns:__
|
|
2426
2444
|
|
2427
2445
|
--
|
2428
2446
|
|
2429
|
-
##### [first_textfield](https://github.com/appium/ruby_lib/blob/
|
2447
|
+
##### [first_textfield](https://github.com/appium/ruby_lib/blob/22401b065f2317e82d37b5188ad9c18c701b0a41/lib/appium_lib/android/element/textfield.rb#L25) android
|
2430
2448
|
|
2431
2449
|
> def first_textfield
|
2432
2450
|
|
@@ -2438,7 +2456,7 @@ __Returns:__
|
|
2438
2456
|
|
2439
2457
|
--
|
2440
2458
|
|
2441
|
-
##### [last_textfield](https://github.com/appium/ruby_lib/blob/
|
2459
|
+
##### [last_textfield](https://github.com/appium/ruby_lib/blob/22401b065f2317e82d37b5188ad9c18c701b0a41/lib/appium_lib/android/element/textfield.rb#L31) android
|
2442
2460
|
|
2443
2461
|
> def last_textfield
|
2444
2462
|
|
@@ -2450,7 +2468,7 @@ __Returns:__
|
|
2450
2468
|
|
2451
2469
|
--
|
2452
2470
|
|
2453
|
-
##### [textfield_exact](https://github.com/appium/ruby_lib/blob/
|
2471
|
+
##### [textfield_exact](https://github.com/appium/ruby_lib/blob/22401b065f2317e82d37b5188ad9c18c701b0a41/lib/appium_lib/android/element/textfield.rb#L38) android
|
2454
2472
|
|
2455
2473
|
> def textfield_exact(value)
|
2456
2474
|
|
@@ -2466,7 +2484,7 @@ __Returns:__
|
|
2466
2484
|
|
2467
2485
|
--
|
2468
2486
|
|
2469
|
-
##### [textfields_exact](https://github.com/appium/ruby_lib/blob/
|
2487
|
+
##### [textfields_exact](https://github.com/appium/ruby_lib/blob/22401b065f2317e82d37b5188ad9c18c701b0a41/lib/appium_lib/android/element/textfield.rb#L45) android
|
2470
2488
|
|
2471
2489
|
> def textfields_exact(value)
|
2472
2490
|
|
@@ -2482,7 +2500,7 @@ __Returns:__
|
|
2482
2500
|
|
2483
2501
|
--
|
2484
2502
|
|
2485
|
-
##### [value](https://github.com/appium/ruby_lib/blob/
|
2503
|
+
##### [value](https://github.com/appium/ruby_lib/blob/22401b065f2317e82d37b5188ad9c18c701b0a41/lib/appium_lib/common/patch.rb#L12)
|
2486
2504
|
|
2487
2505
|
> def value
|
2488
2506
|
|
@@ -2492,7 +2510,7 @@ Fixes NoMethodError: undefined method `value' for Selenium::WebDriver::Element
|
|
2492
2510
|
|
2493
2511
|
--
|
2494
2512
|
|
2495
|
-
##### [name](https://github.com/appium/ruby_lib/blob/
|
2513
|
+
##### [name](https://github.com/appium/ruby_lib/blob/22401b065f2317e82d37b5188ad9c18c701b0a41/lib/appium_lib/common/patch.rb#L19)
|
2496
2514
|
|
2497
2515
|
> def name
|
2498
2516
|
|
@@ -2502,7 +2520,7 @@ Fixes NoMethodError: undefined method `name' for Selenium::WebDriver::Element
|
|
2502
2520
|
|
2503
2521
|
--
|
2504
2522
|
|
2505
|
-
##### [location_rel](https://github.com/appium/ruby_lib/blob/
|
2523
|
+
##### [location_rel](https://github.com/appium/ruby_lib/blob/22401b065f2317e82d37b5188ad9c18c701b0a41/lib/appium_lib/common/patch.rb#L31)
|
2506
2524
|
|
2507
2525
|
> def location_rel
|
2508
2526
|
|
@@ -2520,7 +2538,7 @@ __Returns:__
|
|
2520
2538
|
|
2521
2539
|
--
|
2522
2540
|
|
2523
|
-
##### [DEFAULT_HEADERS](https://github.com/appium/ruby_lib/blob/
|
2541
|
+
##### [DEFAULT_HEADERS](https://github.com/appium/ruby_lib/blob/22401b065f2317e82d37b5188ad9c18c701b0a41/lib/appium_lib/common/patch.rb#L152)
|
2524
2542
|
|
2525
2543
|
> DEFAULT_HEADERS = { 'Accept' => CONTENT_TYPE, 'User-Agent' => "appium/ruby_lib/#{::Appium::VERSION}" }.freeze
|
2526
2544
|
|
@@ -2528,7 +2546,7 @@ __Returns:__
|
|
2528
2546
|
|
2529
2547
|
--
|
2530
2548
|
|
2531
|
-
##### [patch_remote_driver_commands](https://github.com/appium/ruby_lib/blob/
|
2549
|
+
##### [patch_remote_driver_commands](https://github.com/appium/ruby_lib/blob/22401b065f2317e82d37b5188ad9c18c701b0a41/lib/appium_lib/common/patch.rb#L155)
|
2532
2550
|
|
2533
2551
|
> def patch_remote_driver_commands
|
2534
2552
|
|