appium_lib 9.1.2 → 9.1.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.rubocop.yml +9 -0
- data/.travis.yml +4 -1
- data/android_tests/lib/android/specs/android/element/textfield.rb +0 -10
- data/android_tests/lib/android/specs/driver.rb +20 -0
- data/appium_lib.gemspec +1 -1
- data/docs/android_docs.md +223 -208
- data/docs/ios_docs.md +256 -217
- data/docs/ios_xcuitest.md +12 -7
- data/ios_tests/lib/ios/specs/driver.rb +21 -0
- data/ios_tests/lib/ios/specs/ios/element/button.rb +1 -1
- data/ios_tests/lib/ios/specs/ios/element/textfield.rb +0 -16
- data/ios_tests/lib/ios/specs/ios/patch.rb +1 -0
- data/lib/appium_lib/common/version.rb +2 -2
- data/lib/appium_lib/device/device.rb +12 -21
- data/lib/appium_lib/device/touch_actions.rb +4 -0
- data/lib/appium_lib/driver.rb +5 -3
- data/lib/appium_lib/ios/element/button.rb +6 -4
- data/lib/appium_lib/ios/element/generic.rb +23 -0
- data/lib/appium_lib/ios/element/text.rb +6 -4
- data/release_notes.md +13 -0
- metadata +4 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: e20cec2471f77fa3b1508b191028723c3d5d07ff
|
4
|
+
data.tar.gz: debb1ec6c4e6589defacfb6ee8f6ad6727da619b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 5f81b58d29b710481e402d2712a484b143b4bee669c92a68feb1a2bcbbf000205430ce2f03e5ab5ff027f06a1541cfe5794ea0363cd9696960f8fefc743f7a01
|
7
|
+
data.tar.gz: effad8e9dcd48125db6e3a440cb13b3c304a0d93736cb6d4b7b1b5c31d083df0791321038e5b5f14e1a500fbe0a2ce41110c95a138d22029b49e4b04092462af
|
data/.rubocop.yml
CHANGED
@@ -40,3 +40,12 @@ Style/VariableNumber:
|
|
40
40
|
EnforcedStyle: 'snake_case'
|
41
41
|
Lint/NestedMethodDefinition:
|
42
42
|
Enabled: false
|
43
|
+
# Should enable and fix for Ruby3
|
44
|
+
Style/FrozenStringLiteralComment:
|
45
|
+
Enabled: false
|
46
|
+
# Can use over Ruby2.3
|
47
|
+
Style/SafeNavigation:
|
48
|
+
Enabled: false
|
49
|
+
# Can use over Ruby2.3
|
50
|
+
Style/NumericPredicate:
|
51
|
+
Enabled: false
|
data/.travis.yml
CHANGED
@@ -58,15 +58,5 @@ 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
|
-
|
71
61
|
t { after_last }
|
72
62
|
end
|
@@ -67,6 +67,11 @@ describe 'driver' do
|
|
67
67
|
actual_selenium_caps.must_equal 'Android'
|
68
68
|
actual[:caps][:app] = caps_app_for_teardown
|
69
69
|
end
|
70
|
+
|
71
|
+
t 'default timeout for http client' do
|
72
|
+
http_client.open_timeout.must_equal 999_999
|
73
|
+
http_client.read_timeout.must_equal 999_999
|
74
|
+
end
|
70
75
|
end
|
71
76
|
|
72
77
|
describe 'Appium::Driver' do
|
@@ -147,6 +152,21 @@ describe 'driver' do
|
|
147
152
|
# absolute_app_path # tested already by starting the driver for this test
|
148
153
|
# server_url # sauce labs only
|
149
154
|
|
155
|
+
t 'set_immediate_value' do
|
156
|
+
wait { find('app').click }
|
157
|
+
wait { find('activity').click }
|
158
|
+
wait { find('custom title').click }
|
159
|
+
|
160
|
+
message = 'hello'
|
161
|
+
|
162
|
+
wait do
|
163
|
+
elem = textfield(1)
|
164
|
+
elem.clear
|
165
|
+
set_immediate_value(elem, message)
|
166
|
+
elem.text.must_equal message
|
167
|
+
end
|
168
|
+
end
|
169
|
+
|
150
170
|
t 'restart' do
|
151
171
|
set_wait 1 # ensure wait is 1 before we restart.
|
152
172
|
restart
|
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', '~> 3.0', '>= 3.0.
|
16
|
+
s.add_runtime_dependency 'selenium-webdriver', '~> 3.0', '>= 3.0.4'
|
17
17
|
s.add_runtime_dependency 'awesome_print', '~> 1.6'
|
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/ba2fbdcb206609259134fc09eac7940c21cc2c13/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/ba2fbdcb206609259134fc09eac7940c21cc2c13/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/ba2fbdcb206609259134fc09eac7940c21cc2c13/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/ba2fbdcb206609259134fc09eac7940c21cc2c13/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/ba2fbdcb206609259134fc09eac7940c21cc2c13/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/ba2fbdcb206609259134fc09eac7940c21cc2c13/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/ba2fbdcb206609259134fc09eac7940c21cc2c13/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/ba2fbdcb206609259134fc09eac7940c21cc2c13/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/ba2fbdcb206609259134fc09eac7940c21cc2c13/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/ba2fbdcb206609259134fc09eac7940c21cc2c13/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/ba2fbdcb206609259134fc09eac7940c21cc2c13/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/ba2fbdcb206609259134fc09eac7940c21cc2c13/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/ba2fbdcb206609259134fc09eac7940c21cc2c13/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/ba2fbdcb206609259134fc09eac7940c21cc2c13/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/ba2fbdcb206609259134fc09eac7940c21cc2c13/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/ba2fbdcb206609259134fc09eac7940c21cc2c13/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/ba2fbdcb206609259134fc09eac7940c21cc2c13/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/ba2fbdcb206609259134fc09eac7940c21cc2c13/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/ba2fbdcb206609259134fc09eac7940c21cc2c13/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/ba2fbdcb206609259134fc09eac7940c21cc2c13/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/ba2fbdcb206609259134fc09eac7940c21cc2c13/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/ba2fbdcb206609259134fc09eac7940c21cc2c13/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/ba2fbdcb206609259134fc09eac7940c21cc2c13/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/ba2fbdcb206609259134fc09eac7940c21cc2c13/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/ba2fbdcb206609259134fc09eac7940c21cc2c13/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/ba2fbdcb206609259134fc09eac7940c21cc2c13/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/ba2fbdcb206609259134fc09eac7940c21cc2c13/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/ba2fbdcb206609259134fc09eac7940c21cc2c13/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/ba2fbdcb206609259134fc09eac7940c21cc2c13/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/ba2fbdcb206609259134fc09eac7940c21cc2c13/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/ba2fbdcb206609259134fc09eac7940c21cc2c13/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/ba2fbdcb206609259134fc09eac7940c21cc2c13/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/ba2fbdcb206609259134fc09eac7940c21cc2c13/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/ba2fbdcb206609259134fc09eac7940c21cc2c13/lib/appium_lib/driver.rb#L304)
|
379
379
|
|
380
380
|
> def driver
|
381
381
|
|
@@ -387,7 +387,19 @@ __Returns:__
|
|
387
387
|
|
388
388
|
--
|
389
389
|
|
390
|
-
##### [
|
390
|
+
##### [http_client](https://github.com/appium/ruby_lib/blob/ba2fbdcb206609259134fc09eac7940c21cc2c13/lib/appium_lib/driver.rb#L307)
|
391
|
+
|
392
|
+
> def http_client
|
393
|
+
|
394
|
+
Return http client called in start_driver()
|
395
|
+
|
396
|
+
__Returns:__
|
397
|
+
|
398
|
+
[Selenium::WebDriver::Remote::Http::Default] the http client
|
399
|
+
|
400
|
+
--
|
401
|
+
|
402
|
+
##### [initialize](https://github.com/appium/ruby_lib/blob/ba2fbdcb206609259134fc09eac7940c21cc2c13/lib/appium_lib/driver.rb#L328)
|
391
403
|
|
392
404
|
> def initialize(opts = {})
|
393
405
|
|
@@ -418,7 +430,7 @@ __Returns:__
|
|
418
430
|
|
419
431
|
--
|
420
432
|
|
421
|
-
##### [driver_attributes](https://github.com/appium/ruby_lib/blob/
|
433
|
+
##### [driver_attributes](https://github.com/appium/ruby_lib/blob/ba2fbdcb206609259134fc09eac7940c21cc2c13/lib/appium_lib/driver.rb#L401)
|
422
434
|
|
423
435
|
> def driver_attributes
|
424
436
|
|
@@ -426,7 +438,7 @@ Returns a hash of the driver attributes
|
|
426
438
|
|
427
439
|
--
|
428
440
|
|
429
|
-
##### [device_is_android?](https://github.com/appium/ruby_lib/blob/
|
441
|
+
##### [device_is_android?](https://github.com/appium/ruby_lib/blob/ba2fbdcb206609259134fc09eac7940c21cc2c13/lib/appium_lib/driver.rb#L423)
|
430
442
|
|
431
443
|
> def device_is_android?
|
432
444
|
|
@@ -438,7 +450,7 @@ __Returns:__
|
|
438
450
|
|
439
451
|
--
|
440
452
|
|
441
|
-
##### [automation_name_is_xcuitest?](https://github.com/appium/ruby_lib/blob/
|
453
|
+
##### [automation_name_is_xcuitest?](https://github.com/appium/ruby_lib/blob/ba2fbdcb206609259134fc09eac7940c21cc2c13/lib/appium_lib/driver.rb#L429)
|
442
454
|
|
443
455
|
> def automation_name_is_xcuitest?
|
444
456
|
|
@@ -450,7 +462,7 @@ __Returns:__
|
|
450
462
|
|
451
463
|
--
|
452
464
|
|
453
|
-
##### [check_server_version_xcuitest](https://github.com/appium/ruby_lib/blob/
|
465
|
+
##### [check_server_version_xcuitest](https://github.com/appium/ruby_lib/blob/ba2fbdcb206609259134fc09eac7940c21cc2c13/lib/appium_lib/driver.rb#L436)
|
454
466
|
|
455
467
|
> def check_server_version_xcuitest
|
456
468
|
|
@@ -463,7 +475,7 @@ __Returns:__
|
|
463
475
|
|
464
476
|
--
|
465
477
|
|
466
|
-
##### [appium_client_version](https://github.com/appium/ruby_lib/blob/
|
478
|
+
##### [appium_client_version](https://github.com/appium/ruby_lib/blob/ba2fbdcb206609259134fc09eac7940c21cc2c13/lib/appium_lib/driver.rb#L468)
|
467
479
|
|
468
480
|
> def appium_client_version
|
469
481
|
|
@@ -481,7 +493,7 @@ __Returns:__
|
|
481
493
|
|
482
494
|
--
|
483
495
|
|
484
|
-
##### [absolute_app_path](https://github.com/appium/ruby_lib/blob/
|
496
|
+
##### [absolute_app_path](https://github.com/appium/ruby_lib/blob/ba2fbdcb206609259134fc09eac7940c21cc2c13/lib/appium_lib/driver.rb#L480)
|
485
497
|
|
486
498
|
> def self.absolute_app_path(opts)
|
487
499
|
|
@@ -498,7 +510,7 @@ __Returns:__
|
|
498
510
|
|
499
511
|
--
|
500
512
|
|
501
|
-
##### [server_url](https://github.com/appium/ruby_lib/blob/
|
513
|
+
##### [server_url](https://github.com/appium/ruby_lib/blob/ba2fbdcb206609259134fc09eac7940c21cc2c13/lib/appium_lib/driver.rb#L513)
|
502
514
|
|
503
515
|
> def server_url
|
504
516
|
|
@@ -510,7 +522,7 @@ __Returns:__
|
|
510
522
|
|
511
523
|
--
|
512
524
|
|
513
|
-
##### [restart](https://github.com/appium/ruby_lib/blob/
|
525
|
+
##### [restart](https://github.com/appium/ruby_lib/blob/ba2fbdcb206609259134fc09eac7940c21cc2c13/lib/appium_lib/driver.rb#L524)
|
514
526
|
|
515
527
|
> def restart
|
516
528
|
|
@@ -522,7 +534,7 @@ __Returns:__
|
|
522
534
|
|
523
535
|
--
|
524
536
|
|
525
|
-
##### [screenshot](https://github.com/appium/ruby_lib/blob/
|
537
|
+
##### [screenshot](https://github.com/appium/ruby_lib/blob/ba2fbdcb206609259134fc09eac7940c21cc2c13/lib/appium_lib/driver.rb#L535)
|
526
538
|
|
527
539
|
> def screenshot(png_save_path)
|
528
540
|
|
@@ -540,7 +552,7 @@ __Returns:__
|
|
540
552
|
|
541
553
|
--
|
542
554
|
|
543
|
-
##### [driver_quit](https://github.com/appium/ruby_lib/blob/
|
555
|
+
##### [driver_quit](https://github.com/appium/ruby_lib/blob/ba2fbdcb206609259134fc09eac7940c21cc2c13/lib/appium_lib/driver.rb#L542)
|
544
556
|
|
545
557
|
> def driver_quit
|
546
558
|
|
@@ -552,7 +564,7 @@ __Returns:__
|
|
552
564
|
|
553
565
|
--
|
554
566
|
|
555
|
-
##### [start_driver](https://github.com/appium/ruby_lib/blob/
|
567
|
+
##### [start_driver](https://github.com/appium/ruby_lib/blob/ba2fbdcb206609259134fc09eac7940c21cc2c13/lib/appium_lib/driver.rb#L552)
|
556
568
|
|
557
569
|
> def start_driver
|
558
570
|
|
@@ -564,7 +576,7 @@ __Returns:__
|
|
564
576
|
|
565
577
|
--
|
566
578
|
|
567
|
-
##### [no_wait](https://github.com/appium/ruby_lib/blob/
|
579
|
+
##### [no_wait](https://github.com/appium/ruby_lib/blob/ba2fbdcb206609259134fc09eac7940c21cc2c13/lib/appium_lib/driver.rb#L588)
|
568
580
|
|
569
581
|
> def no_wait
|
570
582
|
|
@@ -572,7 +584,7 @@ Set implicit wait and default_wait to zero.
|
|
572
584
|
|
573
585
|
--
|
574
586
|
|
575
|
-
##### [set_wait](https://github.com/appium/ruby_lib/blob/
|
587
|
+
##### [set_wait](https://github.com/appium/ruby_lib/blob/ba2fbdcb206609259134fc09eac7940c21cc2c13/lib/appium_lib/driver.rb#L607)
|
576
588
|
|
577
589
|
> def set_wait(timeout = nil)
|
578
590
|
|
@@ -597,7 +609,7 @@ __Returns:__
|
|
597
609
|
|
598
610
|
--
|
599
611
|
|
600
|
-
##### [exists](https://github.com/appium/ruby_lib/blob/
|
612
|
+
##### [exists](https://github.com/appium/ruby_lib/blob/ba2fbdcb206609259134fc09eac7940c21cc2c13/lib/appium_lib/driver.rb#L634)
|
601
613
|
|
602
614
|
> def exists(pre_check = 0, post_check = @default_wait)
|
603
615
|
|
@@ -623,7 +635,7 @@ __Returns:__
|
|
623
635
|
|
624
636
|
--
|
625
637
|
|
626
|
-
##### [execute_script](https://github.com/appium/ruby_lib/blob/
|
638
|
+
##### [execute_script](https://github.com/appium/ruby_lib/blob/ba2fbdcb206609259134fc09eac7940c21cc2c13/lib/appium_lib/driver.rb#L658)
|
627
639
|
|
628
640
|
> def execute_script(script, *args)
|
629
641
|
|
@@ -641,7 +653,7 @@ __Returns:__
|
|
641
653
|
|
642
654
|
--
|
643
655
|
|
644
|
-
##### [find_elements](https://github.com/appium/ruby_lib/blob/
|
656
|
+
##### [find_elements](https://github.com/appium/ruby_lib/blob/ba2fbdcb206609259134fc09eac7940c21cc2c13/lib/appium_lib/driver.rb#L666)
|
645
657
|
|
646
658
|
> def find_elements(*args)
|
647
659
|
|
@@ -657,7 +669,7 @@ __Returns:__
|
|
657
669
|
|
658
670
|
--
|
659
671
|
|
660
|
-
##### [find_element](https://github.com/appium/ruby_lib/blob/
|
672
|
+
##### [find_element](https://github.com/appium/ruby_lib/blob/ba2fbdcb206609259134fc09eac7940c21cc2c13/lib/appium_lib/driver.rb#L674)
|
661
673
|
|
662
674
|
> def find_element(*args)
|
663
675
|
|
@@ -673,7 +685,7 @@ __Returns:__
|
|
673
685
|
|
674
686
|
--
|
675
687
|
|
676
|
-
##### [set_location](https://github.com/appium/ruby_lib/blob/
|
688
|
+
##### [set_location](https://github.com/appium/ruby_lib/blob/ba2fbdcb206609259134fc09eac7940c21cc2c13/lib/appium_lib/driver.rb#L687)
|
677
689
|
|
678
690
|
> def set_location(opts = {})
|
679
691
|
|
@@ -689,7 +701,7 @@ __Returns:__
|
|
689
701
|
|
690
702
|
--
|
691
703
|
|
692
|
-
##### [x](https://github.com/appium/ruby_lib/blob/
|
704
|
+
##### [x](https://github.com/appium/ruby_lib/blob/ba2fbdcb206609259134fc09eac7940c21cc2c13/lib/appium_lib/driver.rb#L697)
|
693
705
|
|
694
706
|
> def x
|
695
707
|
|
@@ -702,7 +714,7 @@ __Returns:__
|
|
702
714
|
|
703
715
|
--
|
704
716
|
|
705
|
-
##### [logger=](https://github.com/appium/ruby_lib/blob/
|
717
|
+
##### [logger=](https://github.com/appium/ruby_lib/blob/ba2fbdcb206609259134fc09eac7940c21cc2c13/lib/appium_lib/logger.rb#L13)
|
706
718
|
|
707
719
|
> def logger=(value)
|
708
720
|
|
@@ -714,7 +726,7 @@ __Parameters:__
|
|
714
726
|
|
715
727
|
--
|
716
728
|
|
717
|
-
##### [logger](https://github.com/appium/ruby_lib/blob/
|
729
|
+
##### [logger](https://github.com/appium/ruby_lib/blob/ba2fbdcb206609259134fc09eac7940c21cc2c13/lib/appium_lib/logger.rb#L17)
|
718
730
|
|
719
731
|
> def logger
|
720
732
|
|
@@ -722,7 +734,7 @@ __Parameters:__
|
|
722
734
|
|
723
735
|
--
|
724
736
|
|
725
|
-
##### [app_strings](https://github.com/appium/ruby_lib/blob/
|
737
|
+
##### [app_strings](https://github.com/appium/ruby_lib/blob/ba2fbdcb206609259134fc09eac7940c21cc2c13/lib/appium_lib/device/device.rb#L7)
|
726
738
|
|
727
739
|
> def app_strings
|
728
740
|
|
@@ -733,7 +745,7 @@ app_strings #=> "TransitionsTitle"=>"Transitions", "WebTitle"=>"Web"
|
|
733
745
|
|
734
746
|
--
|
735
747
|
|
736
|
-
##### [background_app](https://github.com/appium/ruby_lib/blob/
|
748
|
+
##### [background_app](https://github.com/appium/ruby_lib/blob/ba2fbdcb206609259134fc09eac7940c21cc2c13/lib/appium_lib/device/device.rb#L13)
|
737
749
|
|
738
750
|
> def background_app
|
739
751
|
|
@@ -742,7 +754,7 @@ This is a blocking application
|
|
742
754
|
|
743
755
|
--
|
744
756
|
|
745
|
-
##### [current_activity](https://github.com/appium/ruby_lib/blob/
|
757
|
+
##### [current_activity](https://github.com/appium/ruby_lib/blob/ba2fbdcb206609259134fc09eac7940c21cc2c13/lib/appium_lib/device/device.rb#L18)
|
746
758
|
|
747
759
|
> def current_activity
|
748
760
|
|
@@ -750,7 +762,7 @@ This is a blocking application
|
|
750
762
|
|
751
763
|
--
|
752
764
|
|
753
|
-
##### [launch_app](https://github.com/appium/ruby_lib/blob/
|
765
|
+
##### [launch_app](https://github.com/appium/ruby_lib/blob/ba2fbdcb206609259134fc09eac7940c21cc2c13/lib/appium_lib/device/device.rb#L20)
|
754
766
|
|
755
767
|
> def launch_app
|
756
768
|
|
@@ -758,7 +770,7 @@ Start the simulator and application configured with desired capabilities
|
|
758
770
|
|
759
771
|
--
|
760
772
|
|
761
|
-
##### [reset](https://github.com/appium/ruby_lib/blob/
|
773
|
+
##### [reset](https://github.com/appium/ruby_lib/blob/ba2fbdcb206609259134fc09eac7940c21cc2c13/lib/appium_lib/device/device.rb#L23)
|
762
774
|
|
763
775
|
> def reset
|
764
776
|
|
@@ -766,7 +778,7 @@ Reset the device, relaunching the application.
|
|
766
778
|
|
767
779
|
--
|
768
780
|
|
769
|
-
##### [shake](https://github.com/appium/ruby_lib/blob/
|
781
|
+
##### [shake](https://github.com/appium/ruby_lib/blob/ba2fbdcb206609259134fc09eac7940c21cc2c13/lib/appium_lib/device/device.rb#L26)
|
770
782
|
|
771
783
|
> def shake
|
772
784
|
|
@@ -774,7 +786,7 @@ Cause the device to shake
|
|
774
786
|
|
775
787
|
--
|
776
788
|
|
777
|
-
##### [toggle_flight_mode](https://github.com/appium/ruby_lib/blob/
|
789
|
+
##### [toggle_flight_mode](https://github.com/appium/ruby_lib/blob/ba2fbdcb206609259134fc09eac7940c21cc2c13/lib/appium_lib/device/device.rb#L29)
|
778
790
|
|
779
791
|
> def toggle_flight_mode
|
780
792
|
|
@@ -782,7 +794,7 @@ Toggle flight mode on or off
|
|
782
794
|
|
783
795
|
--
|
784
796
|
|
785
|
-
##### [device_locked?](https://github.com/appium/ruby_lib/blob/
|
797
|
+
##### [device_locked?](https://github.com/appium/ruby_lib/blob/ba2fbdcb206609259134fc09eac7940c21cc2c13/lib/appium_lib/device/device.rb#L32)
|
786
798
|
|
787
799
|
> def device_locked?
|
788
800
|
|
@@ -790,7 +802,7 @@ Toggle flight mode on or off
|
|
790
802
|
|
791
803
|
--
|
792
804
|
|
793
|
-
##### [hide_keyboard](https://github.com/appium/ruby_lib/blob/
|
805
|
+
##### [hide_keyboard](https://github.com/appium/ruby_lib/blob/ba2fbdcb206609259134fc09eac7940c21cc2c13/lib/appium_lib/device/device.rb#L34)
|
794
806
|
|
795
807
|
> def hide_keyboard
|
796
808
|
|
@@ -803,7 +815,7 @@ Defaults to 'Done'.
|
|
803
815
|
|
804
816
|
--
|
805
817
|
|
806
|
-
##### [press_keycode](https://github.com/appium/ruby_lib/blob/
|
818
|
+
##### [press_keycode](https://github.com/appium/ruby_lib/blob/ba2fbdcb206609259134fc09eac7940c21cc2c13/lib/appium_lib/device/device.rb#L43)
|
807
819
|
|
808
820
|
> def press_keycode
|
809
821
|
|
@@ -818,7 +830,7 @@ __Parameters:__
|
|
818
830
|
|
819
831
|
--
|
820
832
|
|
821
|
-
##### [long_press_keycode](https://github.com/appium/ruby_lib/blob/
|
833
|
+
##### [long_press_keycode](https://github.com/appium/ruby_lib/blob/ba2fbdcb206609259134fc09eac7940c21cc2c13/lib/appium_lib/device/device.rb#L49)
|
822
834
|
|
823
835
|
> def long_press_keycode
|
824
836
|
|
@@ -833,7 +845,7 @@ __Parameters:__
|
|
833
845
|
|
834
846
|
--
|
835
847
|
|
836
|
-
##### [push_file](https://github.com/appium/ruby_lib/blob/
|
848
|
+
##### [push_file](https://github.com/appium/ruby_lib/blob/ba2fbdcb206609259134fc09eac7940c21cc2c13/lib/appium_lib/device/device.rb#L55)
|
837
849
|
|
838
850
|
> def push_file
|
839
851
|
|
@@ -847,7 +859,7 @@ __Parameters:__
|
|
847
859
|
|
848
860
|
--
|
849
861
|
|
850
|
-
##### [pull_file](https://github.com/appium/ruby_lib/blob/
|
862
|
+
##### [pull_file](https://github.com/appium/ruby_lib/blob/ba2fbdcb206609259134fc09eac7940c21cc2c13/lib/appium_lib/device/device.rb#L60)
|
851
863
|
|
852
864
|
> def pull_file
|
853
865
|
|
@@ -864,7 +876,7 @@ __Parameters:__
|
|
864
876
|
|
865
877
|
--
|
866
878
|
|
867
|
-
##### [pull_folder](https://github.com/appium/ruby_lib/blob/
|
879
|
+
##### [pull_folder](https://github.com/appium/ruby_lib/blob/ba2fbdcb206609259134fc09eac7940c21cc2c13/lib/appium_lib/device/device.rb#L70)
|
868
880
|
|
869
881
|
> def pull_folder
|
870
882
|
|
@@ -879,7 +891,7 @@ __Parameters:__
|
|
879
891
|
|
880
892
|
--
|
881
893
|
|
882
|
-
##### [touch_id](https://github.com/appium/ruby_lib/blob/
|
894
|
+
##### [touch_id](https://github.com/appium/ruby_lib/blob/ba2fbdcb206609259134fc09eac7940c21cc2c13/lib/appium_lib/device/device.rb#L78)
|
883
895
|
|
884
896
|
> def touch_id
|
885
897
|
|
@@ -896,7 +908,7 @@ Defaults to true.
|
|
896
908
|
|
897
909
|
--
|
898
910
|
|
899
|
-
##### [end_coverage](https://github.com/appium/ruby_lib/blob/
|
911
|
+
##### [end_coverage](https://github.com/appium/ruby_lib/blob/ba2fbdcb206609259134fc09eac7940c21cc2c13/lib/appium_lib/device/device.rb#L87)
|
900
912
|
|
901
913
|
> def end_coverage
|
902
914
|
|
@@ -910,7 +922,7 @@ __Parameters:__
|
|
910
922
|
|
911
923
|
--
|
912
924
|
|
913
|
-
##### [get_settings](https://github.com/appium/ruby_lib/blob/
|
925
|
+
##### [get_settings](https://github.com/appium/ruby_lib/blob/ba2fbdcb206609259134fc09eac7940c21cc2c13/lib/appium_lib/device/device.rb#L92)
|
914
926
|
|
915
927
|
> def get_settings
|
916
928
|
|
@@ -918,7 +930,7 @@ Get appium Settings for current test session
|
|
918
930
|
|
919
931
|
--
|
920
932
|
|
921
|
-
##### [extend_search_contexts](https://github.com/appium/ruby_lib/blob/
|
933
|
+
##### [extend_search_contexts](https://github.com/appium/ruby_lib/blob/ba2fbdcb206609259134fc09eac7940c21cc2c13/lib/appium_lib/device/device.rb#L356)
|
922
934
|
|
923
935
|
> def extend_search_contexts
|
924
936
|
|
@@ -926,7 +938,7 @@ Get appium Settings for current test session
|
|
926
938
|
|
927
939
|
--
|
928
940
|
|
929
|
-
##### [find_element](https://github.com/appium/ruby_lib/blob/
|
941
|
+
##### [find_element](https://github.com/appium/ruby_lib/blob/ba2fbdcb206609259134fc09eac7940c21cc2c13/lib/appium_lib/device/device.rb#L356)
|
930
942
|
|
931
943
|
> def find_element
|
932
944
|
|
@@ -934,7 +946,7 @@ Get appium Settings for current test session
|
|
934
946
|
|
935
947
|
--
|
936
948
|
|
937
|
-
##### [find_elements](https://github.com/appium/ruby_lib/blob/
|
949
|
+
##### [find_elements](https://github.com/appium/ruby_lib/blob/ba2fbdcb206609259134fc09eac7940c21cc2c13/lib/appium_lib/device/device.rb#L356)
|
938
950
|
|
939
951
|
> def find_elements
|
940
952
|
|
@@ -946,7 +958,7 @@ find_element/s with their accessibility_id
|
|
946
958
|
|
947
959
|
--
|
948
960
|
|
949
|
-
##### [add_touch_actions](https://github.com/appium/ruby_lib/blob/
|
961
|
+
##### [add_touch_actions](https://github.com/appium/ruby_lib/blob/ba2fbdcb206609259134fc09eac7940c21cc2c13/lib/appium_lib/device/device.rb#L387)
|
950
962
|
|
951
963
|
> def add_touch_actions
|
952
964
|
|
@@ -954,7 +966,7 @@ find_element/s with their accessibility_id
|
|
954
966
|
|
955
967
|
--
|
956
968
|
|
957
|
-
##### [add_ime_actions](https://github.com/appium/ruby_lib/blob/
|
969
|
+
##### [add_ime_actions](https://github.com/appium/ruby_lib/blob/ba2fbdcb206609259134fc09eac7940c21cc2c13/lib/appium_lib/device/device.rb#L410)
|
958
970
|
|
959
971
|
> def add_ime_actions
|
960
972
|
|
@@ -962,7 +974,7 @@ find_element/s with their accessibility_id
|
|
962
974
|
|
963
975
|
--
|
964
976
|
|
965
|
-
##### [set_context](https://github.com/appium/ruby_lib/blob/
|
977
|
+
##### [set_context](https://github.com/appium/ruby_lib/blob/ba2fbdcb206609259134fc09eac7940c21cc2c13/lib/appium_lib/device/device.rb#L485)
|
966
978
|
|
967
979
|
> def set_context
|
968
980
|
|
@@ -977,7 +989,7 @@ __Parameters:__
|
|
977
989
|
|
978
990
|
--
|
979
991
|
|
980
|
-
##### [current_context](https://github.com/appium/ruby_lib/blob/
|
992
|
+
##### [current_context](https://github.com/appium/ruby_lib/blob/ba2fbdcb206609259134fc09eac7940c21cc2c13/lib/appium_lib/device/device.rb#L493)
|
981
993
|
|
982
994
|
> def current_context
|
983
995
|
|
@@ -989,7 +1001,7 @@ __Returns:__
|
|
989
1001
|
|
990
1002
|
--
|
991
1003
|
|
992
|
-
##### [available_contexts](https://github.com/appium/ruby_lib/blob/
|
1004
|
+
##### [available_contexts](https://github.com/appium/ruby_lib/blob/ba2fbdcb206609259134fc09eac7940c21cc2c13/lib/appium_lib/device/device.rb#L496)
|
993
1005
|
|
994
1006
|
> def available_contexts
|
995
1007
|
|
@@ -1001,7 +1013,7 @@ __Returns:__
|
|
1001
1013
|
|
1002
1014
|
--
|
1003
1015
|
|
1004
|
-
##### [within_context](https://github.com/appium/ruby_lib/blob/
|
1016
|
+
##### [within_context](https://github.com/appium/ruby_lib/blob/ba2fbdcb206609259134fc09eac7940c21cc2c13/lib/appium_lib/device/device.rb#L506)
|
1005
1017
|
|
1006
1018
|
> def within_context(context)
|
1007
1019
|
|
@@ -1017,7 +1029,7 @@ __Parameters:__
|
|
1017
1029
|
|
1018
1030
|
--
|
1019
1031
|
|
1020
|
-
##### [switch_to_default_context](https://github.com/appium/ruby_lib/blob/
|
1032
|
+
##### [switch_to_default_context](https://github.com/appium/ruby_lib/blob/ba2fbdcb206609259134fc09eac7940c21cc2c13/lib/appium_lib/device/device.rb#L514)
|
1021
1033
|
|
1022
1034
|
> def switch_to_default_context
|
1023
1035
|
|
@@ -1025,7 +1037,7 @@ Change to the default context. This is equivalent to `set_context nil`.
|
|
1025
1037
|
|
1026
1038
|
--
|
1027
1039
|
|
1028
|
-
##### [pinch](https://github.com/appium/ruby_lib/blob/
|
1040
|
+
##### [pinch](https://github.com/appium/ruby_lib/blob/ba2fbdcb206609259134fc09eac7940c21cc2c13/lib/appium_lib/device/multi_touch.rb#L28)
|
1029
1041
|
|
1030
1042
|
> def pinch(percentage = 25, auto_perform = true)
|
1031
1043
|
|
@@ -1044,7 +1056,7 @@ __Parameters:__
|
|
1044
1056
|
|
1045
1057
|
--
|
1046
1058
|
|
1047
|
-
##### [zoom](https://github.com/appium/ruby_lib/blob/
|
1059
|
+
##### [zoom](https://github.com/appium/ruby_lib/blob/ba2fbdcb206609259134fc09eac7940c21cc2c13/lib/appium_lib/device/multi_touch.rb#L64)
|
1048
1060
|
|
1049
1061
|
> def zoom(percentage = 200, auto_perform = true)
|
1050
1062
|
|
@@ -1063,7 +1075,7 @@ __Parameters:__
|
|
1063
1075
|
|
1064
1076
|
--
|
1065
1077
|
|
1066
|
-
##### [initialize](https://github.com/appium/ruby_lib/blob/
|
1078
|
+
##### [initialize](https://github.com/appium/ruby_lib/blob/ba2fbdcb206609259134fc09eac7940c21cc2c13/lib/appium_lib/device/multi_touch.rb#L95)
|
1067
1079
|
|
1068
1080
|
> def initialize
|
1069
1081
|
|
@@ -1075,7 +1087,7 @@ __Returns:__
|
|
1075
1087
|
|
1076
1088
|
--
|
1077
1089
|
|
1078
|
-
##### [add](https://github.com/appium/ruby_lib/blob/
|
1090
|
+
##### [add](https://github.com/appium/ruby_lib/blob/ba2fbdcb206609259134fc09eac7940c21cc2c13/lib/appium_lib/device/multi_touch.rb#L101)
|
1079
1091
|
|
1080
1092
|
> def add(chain)
|
1081
1093
|
|
@@ -1087,7 +1099,7 @@ __Parameters:__
|
|
1087
1099
|
|
1088
1100
|
--
|
1089
1101
|
|
1090
|
-
##### [perform](https://github.com/appium/ruby_lib/blob/
|
1102
|
+
##### [perform](https://github.com/appium/ruby_lib/blob/ba2fbdcb206609259134fc09eac7940c21cc2c13/lib/appium_lib/device/multi_touch.rb#L106)
|
1091
1103
|
|
1092
1104
|
> def perform
|
1093
1105
|
|
@@ -1095,7 +1107,7 @@ Ask Appium to perform the actions
|
|
1095
1107
|
|
1096
1108
|
--
|
1097
1109
|
|
1098
|
-
##### [ACTIONS](https://github.com/appium/ruby_lib/blob/
|
1110
|
+
##### [ACTIONS](https://github.com/appium/ruby_lib/blob/ba2fbdcb206609259134fc09eac7940c21cc2c13/lib/appium_lib/device/touch_actions.rb#L11)
|
1099
1111
|
|
1100
1112
|
> ACTIONS = [:move_to, :long_press, :double_tap, :two_finger_tap, :press, :release, :tap, :wait, :perform].freeze
|
1101
1113
|
|
@@ -1103,7 +1115,7 @@ Ask Appium to perform the actions
|
|
1103
1115
|
|
1104
1116
|
--
|
1105
1117
|
|
1106
|
-
##### [COMPLEX_ACTIONS](https://github.com/appium/ruby_lib/blob/
|
1118
|
+
##### [COMPLEX_ACTIONS](https://github.com/appium/ruby_lib/blob/ba2fbdcb206609259134fc09eac7940c21cc2c13/lib/appium_lib/device/touch_actions.rb#L12)
|
1107
1119
|
|
1108
1120
|
> COMPLEX_ACTIONS = [:swipe].freeze
|
1109
1121
|
|
@@ -1111,7 +1123,7 @@ Ask Appium to perform the actions
|
|
1111
1123
|
|
1112
1124
|
--
|
1113
1125
|
|
1114
|
-
##### [actions](https://github.com/appium/ruby_lib/blob/
|
1126
|
+
##### [actions](https://github.com/appium/ruby_lib/blob/ba2fbdcb206609259134fc09eac7940c21cc2c13/lib/appium_lib/device/touch_actions.rb#L26)
|
1115
1127
|
|
1116
1128
|
> def actions
|
1117
1129
|
|
@@ -1119,7 +1131,7 @@ Returns the value of attribute actions
|
|
1119
1131
|
|
1120
1132
|
--
|
1121
1133
|
|
1122
|
-
##### [initialize](https://github.com/appium/ruby_lib/blob/
|
1134
|
+
##### [initialize](https://github.com/appium/ruby_lib/blob/ba2fbdcb206609259134fc09eac7940c21cc2c13/lib/appium_lib/device/touch_actions.rb#L28)
|
1123
1135
|
|
1124
1136
|
> def initialize
|
1125
1137
|
|
@@ -1131,7 +1143,7 @@ __Returns:__
|
|
1131
1143
|
|
1132
1144
|
--
|
1133
1145
|
|
1134
|
-
##### [move_to](https://github.com/appium/ruby_lib/blob/
|
1146
|
+
##### [move_to](https://github.com/appium/ruby_lib/blob/ba2fbdcb206609259134fc09eac7940c21cc2c13/lib/appium_lib/device/touch_actions.rb#L36)
|
1135
1147
|
|
1136
1148
|
> def move_to(opts)
|
1137
1149
|
|
@@ -1143,11 +1155,14 @@ __Parameters:__
|
|
1143
1155
|
|
1144
1156
|
--
|
1145
1157
|
|
1146
|
-
##### [long_press](https://github.com/appium/ruby_lib/blob/
|
1158
|
+
##### [long_press](https://github.com/appium/ruby_lib/blob/ba2fbdcb206609259134fc09eac7940c21cc2c13/lib/appium_lib/device/touch_actions.rb#L50)
|
1147
1159
|
|
1148
1160
|
> def long_press(opts)
|
1149
1161
|
|
1150
1162
|
Press down for a specific duration.
|
1163
|
+
Alternatively, you can use `press(...).wait(...).release()` instead of `long_press` if duration doesn't work well.
|
1164
|
+
https://github.com/appium/ruby_lib/issues/231#issuecomment-269895512
|
1165
|
+
e.g. Appium::TouchAction.new.press(x: 280, y: 530).wait(2000).release.perform
|
1151
1166
|
|
1152
1167
|
__Parameters:__
|
1153
1168
|
|
@@ -1161,7 +1176,7 @@ __Parameters:__
|
|
1161
1176
|
|
1162
1177
|
--
|
1163
1178
|
|
1164
|
-
##### [press](https://github.com/appium/ruby_lib/blob/
|
1179
|
+
##### [press](https://github.com/appium/ruby_lib/blob/ba2fbdcb206609259134fc09eac7940c21cc2c13/lib/appium_lib/device/touch_actions.rb#L62)
|
1165
1180
|
|
1166
1181
|
> def press(opts)
|
1167
1182
|
|
@@ -1174,7 +1189,7 @@ __Parameters:__
|
|
1174
1189
|
|
1175
1190
|
--
|
1176
1191
|
|
1177
|
-
##### [release](https://github.com/appium/ruby_lib/blob/
|
1192
|
+
##### [release](https://github.com/appium/ruby_lib/blob/ba2fbdcb206609259134fc09eac7940c21cc2c13/lib/appium_lib/device/touch_actions.rb#L73)
|
1178
1193
|
|
1179
1194
|
> def release(opts = nil)
|
1180
1195
|
|
@@ -1186,7 +1201,7 @@ __Parameters:__
|
|
1186
1201
|
|
1187
1202
|
--
|
1188
1203
|
|
1189
|
-
##### [tap](https://github.com/appium/ruby_lib/blob/
|
1204
|
+
##### [tap](https://github.com/appium/ruby_lib/blob/ba2fbdcb206609259134fc09eac7940c21cc2c13/lib/appium_lib/device/touch_actions.rb#L84)
|
1190
1205
|
|
1191
1206
|
> def tap(opts)
|
1192
1207
|
|
@@ -1198,7 +1213,7 @@ __Parameters:__
|
|
1198
1213
|
|
1199
1214
|
--
|
1200
1215
|
|
1201
|
-
##### [double_tap](https://github.com/appium/ruby_lib/blob/
|
1216
|
+
##### [double_tap](https://github.com/appium/ruby_lib/blob/ba2fbdcb206609259134fc09eac7940c21cc2c13/lib/appium_lib/device/touch_actions.rb#L97)
|
1202
1217
|
|
1203
1218
|
> def double_tap(opts)
|
1204
1219
|
|
@@ -1210,7 +1225,7 @@ __Parameters:__
|
|
1210
1225
|
|
1211
1226
|
--
|
1212
1227
|
|
1213
|
-
##### [two_finger_tap](https://github.com/appium/ruby_lib/blob/
|
1228
|
+
##### [two_finger_tap](https://github.com/appium/ruby_lib/blob/ba2fbdcb206609259134fc09eac7940c21cc2c13/lib/appium_lib/device/touch_actions.rb#L108)
|
1214
1229
|
|
1215
1230
|
> def two_finger_tap(opts)
|
1216
1231
|
|
@@ -1222,7 +1237,7 @@ __Parameters:__
|
|
1222
1237
|
|
1223
1238
|
--
|
1224
1239
|
|
1225
|
-
##### [wait](https://github.com/appium/ruby_lib/blob/
|
1240
|
+
##### [wait](https://github.com/appium/ruby_lib/blob/ba2fbdcb206609259134fc09eac7940c21cc2c13/lib/appium_lib/device/touch_actions.rb#L116)
|
1226
1241
|
|
1227
1242
|
> def wait(milliseconds)
|
1228
1243
|
|
@@ -1234,7 +1249,7 @@ __Parameters:__
|
|
1234
1249
|
|
1235
1250
|
--
|
1236
1251
|
|
1237
|
-
##### [swipe](https://github.com/appium/ruby_lib/blob/
|
1252
|
+
##### [swipe](https://github.com/appium/ruby_lib/blob/ba2fbdcb206609259134fc09eac7940c21cc2c13/lib/appium_lib/device/touch_actions.rb#L131)
|
1238
1253
|
|
1239
1254
|
> def swipe(opts, ele = nil)
|
1240
1255
|
|
@@ -1248,7 +1263,7 @@ __Parameters:__
|
|
1248
1263
|
|
1249
1264
|
--
|
1250
1265
|
|
1251
|
-
##### [perform](https://github.com/appium/ruby_lib/blob/
|
1266
|
+
##### [perform](https://github.com/appium/ruby_lib/blob/ba2fbdcb206609259134fc09eac7940c21cc2c13/lib/appium_lib/device/touch_actions.rb#L165)
|
1252
1267
|
|
1253
1268
|
> def perform
|
1254
1269
|
|
@@ -1256,7 +1271,7 @@ Ask the driver to perform all actions in this action chain.
|
|
1256
1271
|
|
1257
1272
|
--
|
1258
1273
|
|
1259
|
-
##### [cancel](https://github.com/appium/ruby_lib/blob/
|
1274
|
+
##### [cancel](https://github.com/appium/ruby_lib/blob/ba2fbdcb206609259134fc09eac7940c21cc2c13/lib/appium_lib/device/touch_actions.rb#L171)
|
1260
1275
|
|
1261
1276
|
> def cancel
|
1262
1277
|
|
@@ -1264,7 +1279,7 @@ Does nothing, currently.
|
|
1264
1279
|
|
1265
1280
|
--
|
1266
1281
|
|
1267
|
-
##### [chain_method](https://github.com/appium/ruby_lib/blob/
|
1282
|
+
##### [chain_method](https://github.com/appium/ruby_lib/blob/ba2fbdcb206609259134fc09eac7940c21cc2c13/lib/appium_lib/device/touch_actions.rb#L179)
|
1268
1283
|
|
1269
1284
|
> def chain_method(method, args = nil)
|
1270
1285
|
|
@@ -1272,7 +1287,7 @@ Does nothing, currently.
|
|
1272
1287
|
|
1273
1288
|
--
|
1274
1289
|
|
1275
|
-
##### [args_with_ele_ref](https://github.com/appium/ruby_lib/blob/
|
1290
|
+
##### [args_with_ele_ref](https://github.com/appium/ruby_lib/blob/ba2fbdcb206609259134fc09eac7940c21cc2c13/lib/appium_lib/device/touch_actions.rb#L185)
|
1276
1291
|
|
1277
1292
|
> def args_with_ele_ref(args)
|
1278
1293
|
|
@@ -1280,7 +1295,7 @@ Does nothing, currently.
|
|
1280
1295
|
|
1281
1296
|
--
|
1282
1297
|
|
1283
|
-
##### [_generic_wait](https://github.com/appium/ruby_lib/blob/
|
1298
|
+
##### [_generic_wait](https://github.com/appium/ruby_lib/blob/ba2fbdcb206609259134fc09eac7940c21cc2c13/lib/appium_lib/common/wait.rb#L9)
|
1284
1299
|
|
1285
1300
|
> def _generic_wait(opts = {})
|
1286
1301
|
|
@@ -1289,7 +1304,7 @@ https://github.com/SeleniumHQ/selenium/blob/cf501dda3f0ed12233de51ce8170c0e8090f
|
|
1289
1304
|
|
1290
1305
|
--
|
1291
1306
|
|
1292
|
-
##### [_process_wait_opts](https://github.com/appium/ruby_lib/blob/
|
1307
|
+
##### [_process_wait_opts](https://github.com/appium/ruby_lib/blob/ba2fbdcb206609259134fc09eac7940c21cc2c13/lib/appium_lib/common/wait.rb#L48)
|
1293
1308
|
|
1294
1309
|
> def _process_wait_opts(opts)
|
1295
1310
|
|
@@ -1297,7 +1312,7 @@ process opts before calling _generic_wait
|
|
1297
1312
|
|
1298
1313
|
--
|
1299
1314
|
|
1300
|
-
##### [wait_true](https://github.com/appium/ruby_lib/blob/
|
1315
|
+
##### [wait_true](https://github.com/appium/ruby_lib/blob/ba2fbdcb206609259134fc09eac7940c21cc2c13/lib/appium_lib/common/wait.rb#L69)
|
1301
1316
|
|
1302
1317
|
> def wait_true(opts = {}, &block)
|
1303
1318
|
|
@@ -1317,7 +1332,7 @@ __Parameters:__
|
|
1317
1332
|
|
1318
1333
|
--
|
1319
1334
|
|
1320
|
-
##### [wait](https://github.com/appium/ruby_lib/blob/
|
1335
|
+
##### [wait](https://github.com/appium/ruby_lib/blob/ba2fbdcb206609259134fc09eac7940c21cc2c13/lib/appium_lib/common/wait.rb#L87)
|
1321
1336
|
|
1322
1337
|
> def wait(opts = {}, &block)
|
1323
1338
|
|
@@ -1335,7 +1350,7 @@ __Parameters:__
|
|
1335
1350
|
|
1336
1351
|
--
|
1337
1352
|
|
1338
|
-
##### [ignore](https://github.com/appium/ruby_lib/blob/
|
1353
|
+
##### [ignore](https://github.com/appium/ruby_lib/blob/ba2fbdcb206609259134fc09eac7940c21cc2c13/lib/appium_lib/common/helper.rb#L24)
|
1339
1354
|
|
1340
1355
|
> def ignore
|
1341
1356
|
|
@@ -1343,7 +1358,7 @@ Return yield and ignore any exceptions.
|
|
1343
1358
|
|
1344
1359
|
--
|
1345
1360
|
|
1346
|
-
##### [back](https://github.com/appium/ruby_lib/blob/
|
1361
|
+
##### [back](https://github.com/appium/ruby_lib/blob/ba2fbdcb206609259134fc09eac7940c21cc2c13/lib/appium_lib/common/helper.rb#L31)
|
1347
1362
|
|
1348
1363
|
> def back
|
1349
1364
|
|
@@ -1355,7 +1370,7 @@ __Returns:__
|
|
1355
1370
|
|
1356
1371
|
--
|
1357
1372
|
|
1358
|
-
##### [session_id](https://github.com/appium/ruby_lib/blob/
|
1373
|
+
##### [session_id](https://github.com/appium/ruby_lib/blob/ba2fbdcb206609259134fc09eac7940c21cc2c13/lib/appium_lib/common/helper.rb#L36)
|
1359
1374
|
|
1360
1375
|
> def session_id
|
1361
1376
|
|
@@ -1363,7 +1378,7 @@ For Sauce Labs reporting. Returns the current session id.
|
|
1363
1378
|
|
1364
1379
|
--
|
1365
1380
|
|
1366
|
-
##### [xpath](https://github.com/appium/ruby_lib/blob/
|
1381
|
+
##### [xpath](https://github.com/appium/ruby_lib/blob/ba2fbdcb206609259134fc09eac7940c21cc2c13/lib/appium_lib/common/helper.rb#L44)
|
1367
1382
|
|
1368
1383
|
> def xpath(xpath_str)
|
1369
1384
|
|
@@ -1379,7 +1394,7 @@ __Returns:__
|
|
1379
1394
|
|
1380
1395
|
--
|
1381
1396
|
|
1382
|
-
##### [xpaths](https://github.com/appium/ruby_lib/blob/
|
1397
|
+
##### [xpaths](https://github.com/appium/ruby_lib/blob/ba2fbdcb206609259134fc09eac7940c21cc2c13/lib/appium_lib/common/helper.rb#L52)
|
1383
1398
|
|
1384
1399
|
> def xpaths(xpath_str)
|
1385
1400
|
|
@@ -1395,7 +1410,7 @@ __Returns:__
|
|
1395
1410
|
|
1396
1411
|
--
|
1397
1412
|
|
1398
|
-
##### [_print_source](https://github.com/appium/ruby_lib/blob/
|
1413
|
+
##### [_print_source](https://github.com/appium/ruby_lib/blob/ba2fbdcb206609259134fc09eac7940c21cc2c13/lib/appium_lib/common/helper.rb#L56)
|
1399
1414
|
|
1400
1415
|
> def _print_source(source)
|
1401
1416
|
|
@@ -1403,7 +1418,7 @@ __Returns:__
|
|
1403
1418
|
|
1404
1419
|
--
|
1405
1420
|
|
1406
|
-
##### [result](https://github.com/appium/ruby_lib/blob/
|
1421
|
+
##### [result](https://github.com/appium/ruby_lib/blob/ba2fbdcb206609259134fc09eac7940c21cc2c13/lib/appium_lib/common/helper.rb#L69)
|
1407
1422
|
|
1408
1423
|
> def result
|
1409
1424
|
|
@@ -1411,7 +1426,7 @@ Returns the value of attribute result
|
|
1411
1426
|
|
1412
1427
|
--
|
1413
1428
|
|
1414
|
-
##### [initialize](https://github.com/appium/ruby_lib/blob/
|
1429
|
+
##### [initialize](https://github.com/appium/ruby_lib/blob/ba2fbdcb206609259134fc09eac7940c21cc2c13/lib/appium_lib/common/helper.rb#L71)
|
1415
1430
|
|
1416
1431
|
> def initialize
|
1417
1432
|
|
@@ -1423,7 +1438,7 @@ __Returns:__
|
|
1423
1438
|
|
1424
1439
|
--
|
1425
1440
|
|
1426
|
-
##### [reset](https://github.com/appium/ruby_lib/blob/
|
1441
|
+
##### [reset](https://github.com/appium/ruby_lib/blob/ba2fbdcb206609259134fc09eac7940c21cc2c13/lib/appium_lib/common/helper.rb#L75)
|
1427
1442
|
|
1428
1443
|
> def reset
|
1429
1444
|
|
@@ -1431,7 +1446,7 @@ __Returns:__
|
|
1431
1446
|
|
1432
1447
|
--
|
1433
1448
|
|
1434
|
-
##### [start_element](https://github.com/appium/ruby_lib/blob/
|
1449
|
+
##### [start_element](https://github.com/appium/ruby_lib/blob/ba2fbdcb206609259134fc09eac7940c21cc2c13/lib/appium_lib/common/helper.rb#L80)
|
1435
1450
|
|
1436
1451
|
> def start_element(name, attrs = [])
|
1437
1452
|
|
@@ -1439,7 +1454,7 @@ http://nokogiri.org/Nokogiri/XML/SAX/Document.html
|
|
1439
1454
|
|
1440
1455
|
--
|
1441
1456
|
|
1442
|
-
##### [formatted_result](https://github.com/appium/ruby_lib/blob/
|
1457
|
+
##### [formatted_result](https://github.com/appium/ruby_lib/blob/ba2fbdcb206609259134fc09eac7940c21cc2c13/lib/appium_lib/common/helper.rb#L86)
|
1443
1458
|
|
1444
1459
|
> def formatted_result
|
1445
1460
|
|
@@ -1447,7 +1462,7 @@ http://nokogiri.org/Nokogiri/XML/SAX/Document.html
|
|
1447
1462
|
|
1448
1463
|
--
|
1449
1464
|
|
1450
|
-
##### [get_page_class](https://github.com/appium/ruby_lib/blob/
|
1465
|
+
##### [get_page_class](https://github.com/appium/ruby_lib/blob/ba2fbdcb206609259134fc09eac7940c21cc2c13/lib/appium_lib/common/helper.rb#L97)
|
1451
1466
|
|
1452
1467
|
> def get_page_class
|
1453
1468
|
|
@@ -1455,7 +1470,7 @@ Returns a string of class counts of visible elements.
|
|
1455
1470
|
|
1456
1471
|
--
|
1457
1472
|
|
1458
|
-
##### [page_class](https://github.com/appium/ruby_lib/blob/
|
1473
|
+
##### [page_class](https://github.com/appium/ruby_lib/blob/ba2fbdcb206609259134fc09eac7940c21cc2c13/lib/appium_lib/common/helper.rb#L108)
|
1459
1474
|
|
1460
1475
|
> def page_class
|
1461
1476
|
|
@@ -1464,7 +1479,7 @@ Useful for appium_console.
|
|
1464
1479
|
|
1465
1480
|
--
|
1466
1481
|
|
1467
|
-
##### [px_to_window_rel](https://github.com/appium/ruby_lib/blob/
|
1482
|
+
##### [px_to_window_rel](https://github.com/appium/ruby_lib/blob/ba2fbdcb206609259134fc09eac7940c21cc2c13/lib/appium_lib/common/helper.rb#L118)
|
1468
1483
|
|
1469
1484
|
> def px_to_window_rel(opts = {})
|
1470
1485
|
|
@@ -1476,7 +1491,7 @@ px_to_window_rel x: 50, y: 150
|
|
1476
1491
|
|
1477
1492
|
--
|
1478
1493
|
|
1479
|
-
##### [xml_keys](https://github.com/appium/ruby_lib/blob/
|
1494
|
+
##### [xml_keys](https://github.com/appium/ruby_lib/blob/ba2fbdcb206609259134fc09eac7940c21cc2c13/lib/appium_lib/common/helper.rb#L137)
|
1480
1495
|
|
1481
1496
|
> def xml_keys(target)
|
1482
1497
|
|
@@ -1492,7 +1507,7 @@ __Returns:__
|
|
1492
1507
|
|
1493
1508
|
--
|
1494
1509
|
|
1495
|
-
##### [xml_values](https://github.com/appium/ruby_lib/blob/
|
1510
|
+
##### [xml_values](https://github.com/appium/ruby_lib/blob/ba2fbdcb206609259134fc09eac7940c21cc2c13/lib/appium_lib/common/helper.rb#L145)
|
1496
1511
|
|
1497
1512
|
> def xml_values(target)
|
1498
1513
|
|
@@ -1508,7 +1523,7 @@ __Returns:__
|
|
1508
1523
|
|
1509
1524
|
--
|
1510
1525
|
|
1511
|
-
##### [resolve_id](https://github.com/appium/ruby_lib/blob/
|
1526
|
+
##### [resolve_id](https://github.com/appium/ruby_lib/blob/ba2fbdcb206609259134fc09eac7940c21cc2c13/lib/appium_lib/common/helper.rb#L153)
|
1512
1527
|
|
1513
1528
|
> def resolve_id(id)
|
1514
1529
|
|
@@ -1524,7 +1539,7 @@ __Returns:__
|
|
1524
1539
|
|
1525
1540
|
--
|
1526
1541
|
|
1527
|
-
##### [filter](https://github.com/appium/ruby_lib/blob/
|
1542
|
+
##### [filter](https://github.com/appium/ruby_lib/blob/ba2fbdcb206609259134fc09eac7940c21cc2c13/lib/appium_lib/common/helper.rb#L159)
|
1528
1543
|
|
1529
1544
|
> def filter
|
1530
1545
|
|
@@ -1532,7 +1547,7 @@ Returns the value of attribute filter
|
|
1532
1547
|
|
1533
1548
|
--
|
1534
1549
|
|
1535
|
-
##### [filter=](https://github.com/appium/ruby_lib/blob/
|
1550
|
+
##### [filter=](https://github.com/appium/ruby_lib/blob/ba2fbdcb206609259134fc09eac7940c21cc2c13/lib/appium_lib/common/helper.rb#L162)
|
1536
1551
|
|
1537
1552
|
> def filter=(value)
|
1538
1553
|
|
@@ -1540,7 +1555,7 @@ convert to string to support symbols
|
|
1540
1555
|
|
1541
1556
|
--
|
1542
1557
|
|
1543
|
-
##### [initialize](https://github.com/appium/ruby_lib/blob/
|
1558
|
+
##### [initialize](https://github.com/appium/ruby_lib/blob/ba2fbdcb206609259134fc09eac7940c21cc2c13/lib/appium_lib/common/helper.rb#L168)
|
1544
1559
|
|
1545
1560
|
> def initialize
|
1546
1561
|
|
@@ -1552,7 +1567,7 @@ __Returns:__
|
|
1552
1567
|
|
1553
1568
|
--
|
1554
1569
|
|
1555
|
-
##### [reset](https://github.com/appium/ruby_lib/blob/
|
1570
|
+
##### [reset](https://github.com/appium/ruby_lib/blob/ba2fbdcb206609259134fc09eac7940c21cc2c13/lib/appium_lib/common/helper.rb#L173)
|
1556
1571
|
|
1557
1572
|
> def reset
|
1558
1573
|
|
@@ -1560,7 +1575,7 @@ __Returns:__
|
|
1560
1575
|
|
1561
1576
|
--
|
1562
1577
|
|
1563
|
-
##### [result](https://github.com/appium/ruby_lib/blob/
|
1578
|
+
##### [result](https://github.com/appium/ruby_lib/blob/ba2fbdcb206609259134fc09eac7940c21cc2c13/lib/appium_lib/common/helper.rb#L179)
|
1564
1579
|
|
1565
1580
|
> def result
|
1566
1581
|
|
@@ -1568,7 +1583,7 @@ __Returns:__
|
|
1568
1583
|
|
1569
1584
|
--
|
1570
1585
|
|
1571
|
-
##### [start_element](https://github.com/appium/ruby_lib/blob/
|
1586
|
+
##### [start_element](https://github.com/appium/ruby_lib/blob/ba2fbdcb206609259134fc09eac7940c21cc2c13/lib/appium_lib/common/helper.rb#L195)
|
1572
1587
|
|
1573
1588
|
> def start_element(name, attrs = [])
|
1574
1589
|
|
@@ -1576,7 +1591,7 @@ __Returns:__
|
|
1576
1591
|
|
1577
1592
|
--
|
1578
1593
|
|
1579
|
-
##### [end_element](https://github.com/appium/ruby_lib/blob/
|
1594
|
+
##### [end_element](https://github.com/appium/ruby_lib/blob/ba2fbdcb206609259134fc09eac7940c21cc2c13/lib/appium_lib/common/helper.rb#L204)
|
1580
1595
|
|
1581
1596
|
> def end_element(name)
|
1582
1597
|
|
@@ -1584,7 +1599,7 @@ __Returns:__
|
|
1584
1599
|
|
1585
1600
|
--
|
1586
1601
|
|
1587
|
-
##### [characters](https://github.com/appium/ruby_lib/blob/
|
1602
|
+
##### [characters](https://github.com/appium/ruby_lib/blob/ba2fbdcb206609259134fc09eac7940c21cc2c13/lib/appium_lib/common/helper.rb#L210)
|
1588
1603
|
|
1589
1604
|
> def characters(chars)
|
1590
1605
|
|
@@ -1592,7 +1607,7 @@ __Returns:__
|
|
1592
1607
|
|
1593
1608
|
--
|
1594
1609
|
|
1595
|
-
##### [_no_such_element](https://github.com/appium/ruby_lib/blob/
|
1610
|
+
##### [_no_such_element](https://github.com/appium/ruby_lib/blob/ba2fbdcb206609259134fc09eac7940c21cc2c13/lib/appium_lib/common/helper.rb#L217)
|
1596
1611
|
|
1597
1612
|
> def _no_such_element
|
1598
1613
|
|
@@ -1600,7 +1615,7 @@ __Returns:__
|
|
1600
1615
|
|
1601
1616
|
--
|
1602
1617
|
|
1603
|
-
##### [COMMAND_NO_ARG](https://github.com/appium/ruby_lib/blob/
|
1618
|
+
##### [COMMAND_NO_ARG](https://github.com/appium/ruby_lib/blob/ba2fbdcb206609259134fc09eac7940c21cc2c13/lib/appium_lib/common/command.rb#L4)
|
1604
1619
|
|
1605
1620
|
> COMMAND_NO_ARG = {
|
1606
1621
|
|
@@ -1608,7 +1623,7 @@ __Returns:__
|
|
1608
1623
|
|
1609
1624
|
--
|
1610
1625
|
|
1611
|
-
##### [COMMAND](https://github.com/appium/ruby_lib/blob/
|
1626
|
+
##### [COMMAND](https://github.com/appium/ruby_lib/blob/ba2fbdcb206609259134fc09eac7940c21cc2c13/lib/appium_lib/common/command.rb#L23)
|
1612
1627
|
|
1613
1628
|
> COMMAND = {
|
1614
1629
|
|
@@ -1616,7 +1631,7 @@ __Returns:__
|
|
1616
1631
|
|
1617
1632
|
--
|
1618
1633
|
|
1619
|
-
##### [FINDERS](https://github.com/appium/ruby_lib/blob/
|
1634
|
+
##### [FINDERS](https://github.com/appium/ruby_lib/blob/ba2fbdcb206609259134fc09eac7940c21cc2c13/lib/appium_lib/common/search_context.rb#L5)
|
1620
1635
|
|
1621
1636
|
> FINDERS = {
|
1622
1637
|
|
@@ -1624,7 +1639,7 @@ rubocop:disable Style/MutableConstant
|
|
1624
1639
|
|
1625
1640
|
--
|
1626
1641
|
|
1627
|
-
##### [window_size](https://github.com/appium/ruby_lib/blob/
|
1642
|
+
##### [window_size](https://github.com/appium/ruby_lib/blob/ba2fbdcb206609259134fc09eac7940c21cc2c13/lib/appium_lib/common/element/window.rb#L5)
|
1628
1643
|
|
1629
1644
|
> def window_size
|
1630
1645
|
|
@@ -1632,7 +1647,7 @@ Get the window's size
|
|
1632
1647
|
|
1633
1648
|
--
|
1634
1649
|
|
1635
|
-
##### [result](https://github.com/appium/ruby_lib/blob/
|
1650
|
+
##### [result](https://github.com/appium/ruby_lib/blob/ba2fbdcb206609259134fc09eac7940c21cc2c13/lib/appium_lib/android/helper.rb#L6) android
|
1636
1651
|
|
1637
1652
|
> def result
|
1638
1653
|
|
@@ -1640,7 +1655,7 @@ Returns the value of attribute result
|
|
1640
1655
|
|
1641
1656
|
--
|
1642
1657
|
|
1643
|
-
##### [keys](https://github.com/appium/ruby_lib/blob/
|
1658
|
+
##### [keys](https://github.com/appium/ruby_lib/blob/ba2fbdcb206609259134fc09eac7940c21cc2c13/lib/appium_lib/android/helper.rb#L6) android
|
1644
1659
|
|
1645
1660
|
> def keys
|
1646
1661
|
|
@@ -1648,7 +1663,7 @@ Returns the value of attribute keys
|
|
1648
1663
|
|
1649
1664
|
--
|
1650
1665
|
|
1651
|
-
##### [instance](https://github.com/appium/ruby_lib/blob/
|
1666
|
+
##### [instance](https://github.com/appium/ruby_lib/blob/ba2fbdcb206609259134fc09eac7940c21cc2c13/lib/appium_lib/android/helper.rb#L6) android
|
1652
1667
|
|
1653
1668
|
> def instance
|
1654
1669
|
|
@@ -1656,7 +1671,7 @@ Returns the value of attribute instance
|
|
1656
1671
|
|
1657
1672
|
--
|
1658
1673
|
|
1659
|
-
##### [filter](https://github.com/appium/ruby_lib/blob/
|
1674
|
+
##### [filter](https://github.com/appium/ruby_lib/blob/ba2fbdcb206609259134fc09eac7940c21cc2c13/lib/appium_lib/android/helper.rb#L6) android
|
1660
1675
|
|
1661
1676
|
> def filter
|
1662
1677
|
|
@@ -1664,7 +1679,7 @@ Returns the value of attribute filter
|
|
1664
1679
|
|
1665
1680
|
--
|
1666
1681
|
|
1667
|
-
##### [filter=](https://github.com/appium/ruby_lib/blob/
|
1682
|
+
##### [filter=](https://github.com/appium/ruby_lib/blob/ba2fbdcb206609259134fc09eac7940c21cc2c13/lib/appium_lib/android/helper.rb#L9) android
|
1668
1683
|
|
1669
1684
|
> def filter=(value)
|
1670
1685
|
|
@@ -1672,7 +1687,7 @@ convert to string to support symbols
|
|
1672
1687
|
|
1673
1688
|
--
|
1674
1689
|
|
1675
|
-
##### [initialize](https://github.com/appium/ruby_lib/blob/
|
1690
|
+
##### [initialize](https://github.com/appium/ruby_lib/blob/ba2fbdcb206609259134fc09eac7940c21cc2c13/lib/appium_lib/android/helper.rb#L15) android
|
1676
1691
|
|
1677
1692
|
> def initialize
|
1678
1693
|
|
@@ -1684,7 +1699,7 @@ __Returns:__
|
|
1684
1699
|
|
1685
1700
|
--
|
1686
1701
|
|
1687
|
-
##### [reset](https://github.com/appium/ruby_lib/blob/
|
1702
|
+
##### [reset](https://github.com/appium/ruby_lib/blob/ba2fbdcb206609259134fc09eac7940c21cc2c13/lib/appium_lib/android/helper.rb#L21) android
|
1688
1703
|
|
1689
1704
|
> def reset
|
1690
1705
|
|
@@ -1692,7 +1707,7 @@ __Returns:__
|
|
1692
1707
|
|
1693
1708
|
--
|
1694
1709
|
|
1695
|
-
##### [start_element](https://github.com/appium/ruby_lib/blob/
|
1710
|
+
##### [start_element](https://github.com/appium/ruby_lib/blob/ba2fbdcb206609259134fc09eac7940c21cc2c13/lib/appium_lib/android/helper.rb#L28) android
|
1696
1711
|
|
1697
1712
|
> def start_element(name, attrs = [])
|
1698
1713
|
|
@@ -1700,7 +1715,7 @@ http://nokogiri.org/Nokogiri/XML/SAX/Document.html
|
|
1700
1715
|
|
1701
1716
|
--
|
1702
1717
|
|
1703
|
-
##### [_fix_android_native_source](https://github.com/appium/ruby_lib/blob/
|
1718
|
+
##### [_fix_android_native_source](https://github.com/appium/ruby_lib/blob/ba2fbdcb206609259134fc09eac7940c21cc2c13/lib/appium_lib/android/helper.rb#L88) android
|
1704
1719
|
|
1705
1720
|
> def _fix_android_native_source(source)
|
1706
1721
|
|
@@ -1710,7 +1725,7 @@ https://code.google.com/p/android/issues/detail?id=74143
|
|
1710
1725
|
|
1711
1726
|
--
|
1712
1727
|
|
1713
|
-
##### [source](https://github.com/appium/ruby_lib/blob/
|
1728
|
+
##### [source](https://github.com/appium/ruby_lib/blob/ba2fbdcb206609259134fc09eac7940c21cc2c13/lib/appium_lib/android/helper.rb#L116) android
|
1714
1729
|
|
1715
1730
|
> def source
|
1716
1731
|
|
@@ -1722,7 +1737,7 @@ __Returns:__
|
|
1722
1737
|
|
1723
1738
|
--
|
1724
1739
|
|
1725
|
-
##### [get_android_inspect](https://github.com/appium/ruby_lib/blob/
|
1740
|
+
##### [get_android_inspect](https://github.com/appium/ruby_lib/blob/ba2fbdcb206609259134fc09eac7940c21cc2c13/lib/appium_lib/android/helper.rb#L126) android
|
1726
1741
|
|
1727
1742
|
> def get_android_inspect(class_name = false)
|
1728
1743
|
|
@@ -1741,7 +1756,7 @@ __Returns:__
|
|
1741
1756
|
|
1742
1757
|
--
|
1743
1758
|
|
1744
|
-
##### [page](https://github.com/appium/ruby_lib/blob/
|
1759
|
+
##### [page](https://github.com/appium/ruby_lib/blob/ba2fbdcb206609259134fc09eac7940c21cc2c13/lib/appium_lib/android/helper.rb#L152) android
|
1745
1760
|
|
1746
1761
|
> def page(opts = {})
|
1747
1762
|
|
@@ -1760,7 +1775,7 @@ __Returns:__
|
|
1760
1775
|
|
1761
1776
|
--
|
1762
1777
|
|
1763
|
-
##### [current_app](https://github.com/appium/ruby_lib/blob/
|
1778
|
+
##### [current_app](https://github.com/appium/ruby_lib/blob/ba2fbdcb206609259134fc09eac7940c21cc2c13/lib/appium_lib/android/helper.rb#L164) android
|
1764
1779
|
|
1765
1780
|
> def current_app
|
1766
1781
|
|
@@ -1770,7 +1785,7 @@ example line:
|
|
1770
1785
|
|
1771
1786
|
--
|
1772
1787
|
|
1773
|
-
##### [id](https://github.com/appium/ruby_lib/blob/
|
1788
|
+
##### [id](https://github.com/appium/ruby_lib/blob/ba2fbdcb206609259134fc09eac7940c21cc2c13/lib/appium_lib/android/helper.rb#L188) android
|
1774
1789
|
|
1775
1790
|
> def id(id)
|
1776
1791
|
|
@@ -1786,7 +1801,7 @@ __Returns:__
|
|
1786
1801
|
|
1787
1802
|
--
|
1788
1803
|
|
1789
|
-
##### [ids](https://github.com/appium/ruby_lib/blob/
|
1804
|
+
##### [ids](https://github.com/appium/ruby_lib/blob/ba2fbdcb206609259134fc09eac7940c21cc2c13/lib/appium_lib/android/helper.rb#L196) android
|
1790
1805
|
|
1791
1806
|
> def ids(id)
|
1792
1807
|
|
@@ -1802,7 +1817,7 @@ __Returns:__
|
|
1802
1817
|
|
1803
1818
|
--
|
1804
1819
|
|
1805
|
-
##### [ele_index](https://github.com/appium/ruby_lib/blob/
|
1820
|
+
##### [ele_index](https://github.com/appium/ruby_lib/blob/ba2fbdcb206609259134fc09eac7940c21cc2c13/lib/appium_lib/android/helper.rb#L205) android
|
1806
1821
|
|
1807
1822
|
> def ele_index(class_name, index)
|
1808
1823
|
|
@@ -1820,7 +1835,7 @@ __Returns:__
|
|
1820
1835
|
|
1821
1836
|
--
|
1822
1837
|
|
1823
|
-
##### [first_ele](https://github.com/appium/ruby_lib/blob/
|
1838
|
+
##### [first_ele](https://github.com/appium/ruby_lib/blob/ba2fbdcb206609259134fc09eac7940c21cc2c13/lib/appium_lib/android/helper.rb#L223) android
|
1824
1839
|
|
1825
1840
|
> def first_ele(class_name)
|
1826
1841
|
|
@@ -1836,7 +1851,7 @@ __Returns:__
|
|
1836
1851
|
|
1837
1852
|
--
|
1838
1853
|
|
1839
|
-
##### [last_ele](https://github.com/appium/ruby_lib/blob/
|
1854
|
+
##### [last_ele](https://github.com/appium/ruby_lib/blob/ba2fbdcb206609259134fc09eac7940c21cc2c13/lib/appium_lib/android/helper.rb#L230) android
|
1840
1855
|
|
1841
1856
|
> def last_ele(class_name)
|
1842
1857
|
|
@@ -1852,7 +1867,7 @@ __Returns:__
|
|
1852
1867
|
|
1853
1868
|
--
|
1854
1869
|
|
1855
|
-
##### [tag](https://github.com/appium/ruby_lib/blob/
|
1870
|
+
##### [tag](https://github.com/appium/ruby_lib/blob/ba2fbdcb206609259134fc09eac7940c21cc2c13/lib/appium_lib/android/helper.rb#L238) android
|
1856
1871
|
|
1857
1872
|
> def tag(class_name)
|
1858
1873
|
|
@@ -1868,7 +1883,7 @@ __Returns:__
|
|
1868
1883
|
|
1869
1884
|
--
|
1870
1885
|
|
1871
|
-
##### [tags](https://github.com/appium/ruby_lib/blob/
|
1886
|
+
##### [tags](https://github.com/appium/ruby_lib/blob/ba2fbdcb206609259134fc09eac7940c21cc2c13/lib/appium_lib/android/helper.rb#L246) android
|
1872
1887
|
|
1873
1888
|
> def tags(class_name)
|
1874
1889
|
|
@@ -1884,7 +1899,7 @@ __Returns:__
|
|
1884
1899
|
|
1885
1900
|
--
|
1886
1901
|
|
1887
|
-
##### [string_visible_contains](https://github.com/appium/ruby_lib/blob/
|
1902
|
+
##### [string_visible_contains](https://github.com/appium/ruby_lib/blob/ba2fbdcb206609259134fc09eac7940c21cc2c13/lib/appium_lib/android/helper.rb#L288) android
|
1888
1903
|
|
1889
1904
|
> def string_visible_contains(class_name, value)
|
1890
1905
|
|
@@ -1904,7 +1919,7 @@ __Returns:__
|
|
1904
1919
|
|
1905
1920
|
--
|
1906
1921
|
|
1907
|
-
##### [complex_find_contains](https://github.com/appium/ruby_lib/blob/
|
1922
|
+
##### [complex_find_contains](https://github.com/appium/ruby_lib/blob/ba2fbdcb206609259134fc09eac7940c21cc2c13/lib/appium_lib/android/helper.rb#L308) android
|
1908
1923
|
|
1909
1924
|
> def complex_find_contains(element, value)
|
1910
1925
|
|
@@ -1922,7 +1937,7 @@ __Returns:__
|
|
1922
1937
|
|
1923
1938
|
--
|
1924
1939
|
|
1925
|
-
##### [complex_finds_contains](https://github.com/appium/ruby_lib/blob/
|
1940
|
+
##### [complex_finds_contains](https://github.com/appium/ruby_lib/blob/ba2fbdcb206609259134fc09eac7940c21cc2c13/lib/appium_lib/android/helper.rb#L316) android
|
1926
1941
|
|
1927
1942
|
> def complex_finds_contains(element, value)
|
1928
1943
|
|
@@ -1940,7 +1955,7 @@ __Returns:__
|
|
1940
1955
|
|
1941
1956
|
--
|
1942
1957
|
|
1943
|
-
##### [complex_find_exact](https://github.com/appium/ruby_lib/blob/
|
1958
|
+
##### [complex_find_exact](https://github.com/appium/ruby_lib/blob/ba2fbdcb206609259134fc09eac7940c21cc2c13/lib/appium_lib/android/helper.rb#L345) android
|
1944
1959
|
|
1945
1960
|
> def complex_find_exact(class_name, value)
|
1946
1961
|
|
@@ -1958,7 +1973,7 @@ __Returns:__
|
|
1958
1973
|
|
1959
1974
|
--
|
1960
1975
|
|
1961
|
-
##### [complex_finds_exact](https://github.com/appium/ruby_lib/blob/
|
1976
|
+
##### [complex_finds_exact](https://github.com/appium/ruby_lib/blob/ba2fbdcb206609259134fc09eac7940c21cc2c13/lib/appium_lib/android/helper.rb#L353) android
|
1962
1977
|
|
1963
1978
|
> def complex_finds_exact(class_name, value)
|
1964
1979
|
|
@@ -1976,7 +1991,7 @@ __Returns:__
|
|
1976
1991
|
|
1977
1992
|
--
|
1978
1993
|
|
1979
|
-
##### [get_source](https://github.com/appium/ruby_lib/blob/
|
1994
|
+
##### [get_source](https://github.com/appium/ruby_lib/blob/ba2fbdcb206609259134fc09eac7940c21cc2c13/lib/appium_lib/android/helper.rb#L361) android
|
1980
1995
|
|
1981
1996
|
> def get_source
|
1982
1997
|
|
@@ -1990,7 +2005,7 @@ __Returns:__
|
|
1990
2005
|
|
1991
2006
|
--
|
1992
2007
|
|
1993
|
-
##### [TextView](https://github.com/appium/ruby_lib/blob/
|
2008
|
+
##### [TextView](https://github.com/appium/ruby_lib/blob/ba2fbdcb206609259134fc09eac7940c21cc2c13/lib/appium_lib/android/element/text.rb#L4) android
|
1994
2009
|
|
1995
2010
|
> TextView = 'android.widget.TextView'.freeze
|
1996
2011
|
|
@@ -1998,7 +2013,7 @@ __Returns:__
|
|
1998
2013
|
|
1999
2014
|
--
|
2000
2015
|
|
2001
|
-
##### [text](https://github.com/appium/ruby_lib/blob/
|
2016
|
+
##### [text](https://github.com/appium/ruby_lib/blob/ba2fbdcb206609259134fc09eac7940c21cc2c13/lib/appium_lib/android/element/text.rb#L10) android
|
2002
2017
|
|
2003
2018
|
> def text(value)
|
2004
2019
|
|
@@ -2015,7 +2030,7 @@ __Returns:__
|
|
2015
2030
|
|
2016
2031
|
--
|
2017
2032
|
|
2018
|
-
##### [texts](https://github.com/appium/ruby_lib/blob/
|
2033
|
+
##### [texts](https://github.com/appium/ruby_lib/blob/ba2fbdcb206609259134fc09eac7940c21cc2c13/lib/appium_lib/android/element/text.rb#L19) android
|
2019
2034
|
|
2020
2035
|
> def texts(value = false)
|
2021
2036
|
|
@@ -2032,7 +2047,7 @@ __Returns:__
|
|
2032
2047
|
|
2033
2048
|
--
|
2034
2049
|
|
2035
|
-
##### [first_text](https://github.com/appium/ruby_lib/blob/
|
2050
|
+
##### [first_text](https://github.com/appium/ruby_lib/blob/ba2fbdcb206609259134fc09eac7940c21cc2c13/lib/appium_lib/android/element/text.rb#L26) android
|
2036
2051
|
|
2037
2052
|
> def first_text
|
2038
2053
|
|
@@ -2044,7 +2059,7 @@ __Returns:__
|
|
2044
2059
|
|
2045
2060
|
--
|
2046
2061
|
|
2047
|
-
##### [last_text](https://github.com/appium/ruby_lib/blob/
|
2062
|
+
##### [last_text](https://github.com/appium/ruby_lib/blob/ba2fbdcb206609259134fc09eac7940c21cc2c13/lib/appium_lib/android/element/text.rb#L32) android
|
2048
2063
|
|
2049
2064
|
> def last_text
|
2050
2065
|
|
@@ -2056,7 +2071,7 @@ __Returns:__
|
|
2056
2071
|
|
2057
2072
|
--
|
2058
2073
|
|
2059
|
-
##### [text_exact](https://github.com/appium/ruby_lib/blob/
|
2074
|
+
##### [text_exact](https://github.com/appium/ruby_lib/blob/ba2fbdcb206609259134fc09eac7940c21cc2c13/lib/appium_lib/android/element/text.rb#L39) android
|
2060
2075
|
|
2061
2076
|
> def text_exact(value)
|
2062
2077
|
|
@@ -2072,7 +2087,7 @@ __Returns:__
|
|
2072
2087
|
|
2073
2088
|
--
|
2074
2089
|
|
2075
|
-
##### [texts_exact](https://github.com/appium/ruby_lib/blob/
|
2090
|
+
##### [texts_exact](https://github.com/appium/ruby_lib/blob/ba2fbdcb206609259134fc09eac7940c21cc2c13/lib/appium_lib/android/element/text.rb#L46) android
|
2076
2091
|
|
2077
2092
|
> def texts_exact(value)
|
2078
2093
|
|
@@ -2088,7 +2103,7 @@ __Returns:__
|
|
2088
2103
|
|
2089
2104
|
--
|
2090
2105
|
|
2091
|
-
##### [_nodeset_to_uiselector](https://github.com/appium/ruby_lib/blob/
|
2106
|
+
##### [_nodeset_to_uiselector](https://github.com/appium/ruby_lib/blob/ba2fbdcb206609259134fc09eac7940c21cc2c13/lib/appium_lib/android/client_xpath.rb#L5) android
|
2092
2107
|
|
2093
2108
|
> def _nodeset_to_uiselector(opts = {})
|
2094
2109
|
|
@@ -2096,7 +2111,7 @@ __Returns:__
|
|
2096
2111
|
|
2097
2112
|
--
|
2098
2113
|
|
2099
|
-
##### [_client_xpath](https://github.com/appium/ruby_lib/blob/
|
2114
|
+
##### [_client_xpath](https://github.com/appium/ruby_lib/blob/ba2fbdcb206609259134fc09eac7940c21cc2c13/lib/appium_lib/android/client_xpath.rb#L20) android
|
2100
2115
|
|
2101
2116
|
> def _client_xpath(opts = {})
|
2102
2117
|
|
@@ -2104,7 +2119,7 @@ __Returns:__
|
|
2104
2119
|
|
2105
2120
|
--
|
2106
2121
|
|
2107
|
-
##### [client_xpath](https://github.com/appium/ruby_lib/blob/
|
2122
|
+
##### [client_xpath](https://github.com/appium/ruby_lib/blob/ba2fbdcb206609259134fc09eac7940c21cc2c13/lib/appium_lib/android/client_xpath.rb#L36) android
|
2108
2123
|
|
2109
2124
|
> def client_xpath(xpath)
|
2110
2125
|
|
@@ -2112,7 +2127,7 @@ __Returns:__
|
|
2112
2127
|
|
2113
2128
|
--
|
2114
2129
|
|
2115
|
-
##### [client_xpaths](https://github.com/appium/ruby_lib/blob/
|
2130
|
+
##### [client_xpaths](https://github.com/appium/ruby_lib/blob/ba2fbdcb206609259134fc09eac7940c21cc2c13/lib/appium_lib/android/client_xpath.rb#L40) android
|
2116
2131
|
|
2117
2132
|
> def client_xpaths(xpath)
|
2118
2133
|
|
@@ -2120,7 +2135,7 @@ __Returns:__
|
|
2120
2135
|
|
2121
2136
|
--
|
2122
2137
|
|
2123
|
-
##### [alert_click](https://github.com/appium/ruby_lib/blob/
|
2138
|
+
##### [alert_click](https://github.com/appium/ruby_lib/blob/ba2fbdcb206609259134fc09eac7940c21cc2c13/lib/appium_lib/android/element/alert.rb#L6) android
|
2124
2139
|
|
2125
2140
|
> def alert_click(value)
|
2126
2141
|
|
@@ -2136,7 +2151,7 @@ __Returns:__
|
|
2136
2151
|
|
2137
2152
|
--
|
2138
2153
|
|
2139
|
-
##### [alert_accept](https://github.com/appium/ruby_lib/blob/
|
2154
|
+
##### [alert_accept](https://github.com/appium/ruby_lib/blob/ba2fbdcb206609259134fc09eac7940c21cc2c13/lib/appium_lib/android/element/alert.rb#L13) android
|
2140
2155
|
|
2141
2156
|
> def alert_accept
|
2142
2157
|
|
@@ -2149,7 +2164,7 @@ __Returns:__
|
|
2149
2164
|
|
2150
2165
|
--
|
2151
2166
|
|
2152
|
-
##### [alert_accept_text](https://github.com/appium/ruby_lib/blob/
|
2167
|
+
##### [alert_accept_text](https://github.com/appium/ruby_lib/blob/ba2fbdcb206609259134fc09eac7940c21cc2c13/lib/appium_lib/android/element/alert.rb#L20) android
|
2153
2168
|
|
2154
2169
|
> def alert_accept_text
|
2155
2170
|
|
@@ -2162,7 +2177,7 @@ __Returns:__
|
|
2162
2177
|
|
2163
2178
|
--
|
2164
2179
|
|
2165
|
-
##### [alert_dismiss](https://github.com/appium/ruby_lib/blob/
|
2180
|
+
##### [alert_dismiss](https://github.com/appium/ruby_lib/blob/ba2fbdcb206609259134fc09eac7940c21cc2c13/lib/appium_lib/android/element/alert.rb#L27) android
|
2166
2181
|
|
2167
2182
|
> def alert_dismiss
|
2168
2183
|
|
@@ -2175,7 +2190,7 @@ __Returns:__
|
|
2175
2190
|
|
2176
2191
|
--
|
2177
2192
|
|
2178
|
-
##### [alert_dismiss_text](https://github.com/appium/ruby_lib/blob/
|
2193
|
+
##### [alert_dismiss_text](https://github.com/appium/ruby_lib/blob/ba2fbdcb206609259134fc09eac7940c21cc2c13/lib/appium_lib/android/element/alert.rb#L34) android
|
2179
2194
|
|
2180
2195
|
> def alert_dismiss_text
|
2181
2196
|
|
@@ -2188,7 +2203,7 @@ __Returns:__
|
|
2188
2203
|
|
2189
2204
|
--
|
2190
2205
|
|
2191
|
-
##### [Button](https://github.com/appium/ruby_lib/blob/
|
2206
|
+
##### [Button](https://github.com/appium/ruby_lib/blob/ba2fbdcb206609259134fc09eac7940c21cc2c13/lib/appium_lib/android/element/button.rb#L4) android
|
2192
2207
|
|
2193
2208
|
> Button = 'android.widget.Button'.freeze
|
2194
2209
|
|
@@ -2196,7 +2211,7 @@ __Returns:__
|
|
2196
2211
|
|
2197
2212
|
--
|
2198
2213
|
|
2199
|
-
##### [ImageButton](https://github.com/appium/ruby_lib/blob/
|
2214
|
+
##### [ImageButton](https://github.com/appium/ruby_lib/blob/ba2fbdcb206609259134fc09eac7940c21cc2c13/lib/appium_lib/android/element/button.rb#L5) android
|
2200
2215
|
|
2201
2216
|
> ImageButton = 'android.widget.ImageButton'.freeze
|
2202
2217
|
|
@@ -2204,7 +2219,7 @@ __Returns:__
|
|
2204
2219
|
|
2205
2220
|
--
|
2206
2221
|
|
2207
|
-
##### [button](https://github.com/appium/ruby_lib/blob/
|
2222
|
+
##### [button](https://github.com/appium/ruby_lib/blob/ba2fbdcb206609259134fc09eac7940c21cc2c13/lib/appium_lib/android/element/button.rb#L43) android
|
2208
2223
|
|
2209
2224
|
> def button(value)
|
2210
2225
|
|
@@ -2221,7 +2236,7 @@ __Returns:__
|
|
2221
2236
|
|
2222
2237
|
--
|
2223
2238
|
|
2224
|
-
##### [buttons](https://github.com/appium/ruby_lib/blob/
|
2239
|
+
##### [buttons](https://github.com/appium/ruby_lib/blob/ba2fbdcb206609259134fc09eac7940c21cc2c13/lib/appium_lib/android/element/button.rb#L60) android
|
2225
2240
|
|
2226
2241
|
> def buttons(value = false)
|
2227
2242
|
|
@@ -2238,7 +2253,7 @@ __Returns:__
|
|
2238
2253
|
|
2239
2254
|
--
|
2240
2255
|
|
2241
|
-
##### [first_button](https://github.com/appium/ruby_lib/blob/
|
2256
|
+
##### [first_button](https://github.com/appium/ruby_lib/blob/ba2fbdcb206609259134fc09eac7940c21cc2c13/lib/appium_lib/android/element/button.rb#L67) android
|
2242
2257
|
|
2243
2258
|
> def first_button
|
2244
2259
|
|
@@ -2250,7 +2265,7 @@ __Returns:__
|
|
2250
2265
|
|
2251
2266
|
--
|
2252
2267
|
|
2253
|
-
##### [last_button](https://github.com/appium/ruby_lib/blob/
|
2268
|
+
##### [last_button](https://github.com/appium/ruby_lib/blob/ba2fbdcb206609259134fc09eac7940c21cc2c13/lib/appium_lib/android/element/button.rb#L73) android
|
2254
2269
|
|
2255
2270
|
> def last_button
|
2256
2271
|
|
@@ -2262,7 +2277,7 @@ __Returns:__
|
|
2262
2277
|
|
2263
2278
|
--
|
2264
2279
|
|
2265
|
-
##### [button_exact](https://github.com/appium/ruby_lib/blob/
|
2280
|
+
##### [button_exact](https://github.com/appium/ruby_lib/blob/ba2fbdcb206609259134fc09eac7940c21cc2c13/lib/appium_lib/android/element/button.rb#L89) android
|
2266
2281
|
|
2267
2282
|
> def button_exact(value)
|
2268
2283
|
|
@@ -2278,7 +2293,7 @@ __Returns:__
|
|
2278
2293
|
|
2279
2294
|
--
|
2280
2295
|
|
2281
|
-
##### [buttons_exact](https://github.com/appium/ruby_lib/blob/
|
2296
|
+
##### [buttons_exact](https://github.com/appium/ruby_lib/blob/ba2fbdcb206609259134fc09eac7940c21cc2c13/lib/appium_lib/android/element/button.rb#L96) android
|
2282
2297
|
|
2283
2298
|
> def buttons_exact(value)
|
2284
2299
|
|
@@ -2294,7 +2309,7 @@ __Returns:__
|
|
2294
2309
|
|
2295
2310
|
--
|
2296
2311
|
|
2297
|
-
##### [uiautomator_find](https://github.com/appium/ruby_lib/blob/
|
2312
|
+
##### [uiautomator_find](https://github.com/appium/ruby_lib/blob/ba2fbdcb206609259134fc09eac7940c21cc2c13/lib/appium_lib/android/mobile_methods.rb#L10) android
|
2298
2313
|
|
2299
2314
|
> def uiautomator_find
|
2300
2315
|
|
@@ -2306,7 +2321,7 @@ find_element/s can be used with a [UISelector](http://developer.android.com/tool
|
|
2306
2321
|
|
2307
2322
|
--
|
2308
2323
|
|
2309
|
-
##### [find](https://github.com/appium/ruby_lib/blob/
|
2324
|
+
##### [find](https://github.com/appium/ruby_lib/blob/ba2fbdcb206609259134fc09eac7940c21cc2c13/lib/appium_lib/android/element/generic.rb#L6) android
|
2310
2325
|
|
2311
2326
|
> def find(value)
|
2312
2327
|
|
@@ -2322,7 +2337,7 @@ __Returns:__
|
|
2322
2337
|
|
2323
2338
|
--
|
2324
2339
|
|
2325
|
-
##### [finds](https://github.com/appium/ruby_lib/blob/
|
2340
|
+
##### [finds](https://github.com/appium/ruby_lib/blob/ba2fbdcb206609259134fc09eac7940c21cc2c13/lib/appium_lib/android/element/generic.rb#L13) android
|
2326
2341
|
|
2327
2342
|
> def finds(value)
|
2328
2343
|
|
@@ -2338,7 +2353,7 @@ __Returns:__
|
|
2338
2353
|
|
2339
2354
|
--
|
2340
2355
|
|
2341
|
-
##### [find_exact](https://github.com/appium/ruby_lib/blob/
|
2356
|
+
##### [find_exact](https://github.com/appium/ruby_lib/blob/ba2fbdcb206609259134fc09eac7940c21cc2c13/lib/appium_lib/android/element/generic.rb#L20) android
|
2342
2357
|
|
2343
2358
|
> def find_exact(value)
|
2344
2359
|
|
@@ -2354,7 +2369,7 @@ __Returns:__
|
|
2354
2369
|
|
2355
2370
|
--
|
2356
2371
|
|
2357
|
-
##### [finds_exact](https://github.com/appium/ruby_lib/blob/
|
2372
|
+
##### [finds_exact](https://github.com/appium/ruby_lib/blob/ba2fbdcb206609259134fc09eac7940c21cc2c13/lib/appium_lib/android/element/generic.rb#L27) android
|
2358
2373
|
|
2359
2374
|
> def finds_exact(value)
|
2360
2375
|
|
@@ -2370,7 +2385,7 @@ __Returns:__
|
|
2370
2385
|
|
2371
2386
|
--
|
2372
2387
|
|
2373
|
-
##### [scroll_to](https://github.com/appium/ruby_lib/blob/
|
2388
|
+
##### [scroll_to](https://github.com/appium/ruby_lib/blob/ba2fbdcb206609259134fc09eac7940c21cc2c13/lib/appium_lib/android/element/generic.rb#L39) android
|
2374
2389
|
|
2375
2390
|
> def scroll_to(text)
|
2376
2391
|
|
@@ -2386,7 +2401,7 @@ __Returns:__
|
|
2386
2401
|
|
2387
2402
|
--
|
2388
2403
|
|
2389
|
-
##### [scroll_to_exact](https://github.com/appium/ruby_lib/blob/
|
2404
|
+
##### [scroll_to_exact](https://github.com/appium/ruby_lib/blob/ba2fbdcb206609259134fc09eac7940c21cc2c13/lib/appium_lib/android/element/generic.rb#L51) android
|
2390
2405
|
|
2391
2406
|
> def scroll_to_exact(text)
|
2392
2407
|
|
@@ -2402,7 +2417,7 @@ __Returns:__
|
|
2402
2417
|
|
2403
2418
|
--
|
2404
2419
|
|
2405
|
-
##### [EditText](https://github.com/appium/ruby_lib/blob/
|
2420
|
+
##### [EditText](https://github.com/appium/ruby_lib/blob/ba2fbdcb206609259134fc09eac7940c21cc2c13/lib/appium_lib/android/element/textfield.rb#L3) android
|
2406
2421
|
|
2407
2422
|
> EditText = 'android.widget.EditText'.freeze
|
2408
2423
|
|
@@ -2410,7 +2425,7 @@ __Returns:__
|
|
2410
2425
|
|
2411
2426
|
--
|
2412
2427
|
|
2413
|
-
##### [textfield](https://github.com/appium/ruby_lib/blob/
|
2428
|
+
##### [textfield](https://github.com/appium/ruby_lib/blob/ba2fbdcb206609259134fc09eac7940c21cc2c13/lib/appium_lib/android/element/textfield.rb#L9) android
|
2414
2429
|
|
2415
2430
|
> def textfield(value)
|
2416
2431
|
|
@@ -2427,7 +2442,7 @@ __Returns:__
|
|
2427
2442
|
|
2428
2443
|
--
|
2429
2444
|
|
2430
|
-
##### [textfields](https://github.com/appium/ruby_lib/blob/
|
2445
|
+
##### [textfields](https://github.com/appium/ruby_lib/blob/ba2fbdcb206609259134fc09eac7940c21cc2c13/lib/appium_lib/android/element/textfield.rb#L18) android
|
2431
2446
|
|
2432
2447
|
> def textfields(value = false)
|
2433
2448
|
|
@@ -2444,7 +2459,7 @@ __Returns:__
|
|
2444
2459
|
|
2445
2460
|
--
|
2446
2461
|
|
2447
|
-
##### [first_textfield](https://github.com/appium/ruby_lib/blob/
|
2462
|
+
##### [first_textfield](https://github.com/appium/ruby_lib/blob/ba2fbdcb206609259134fc09eac7940c21cc2c13/lib/appium_lib/android/element/textfield.rb#L25) android
|
2448
2463
|
|
2449
2464
|
> def first_textfield
|
2450
2465
|
|
@@ -2456,7 +2471,7 @@ __Returns:__
|
|
2456
2471
|
|
2457
2472
|
--
|
2458
2473
|
|
2459
|
-
##### [last_textfield](https://github.com/appium/ruby_lib/blob/
|
2474
|
+
##### [last_textfield](https://github.com/appium/ruby_lib/blob/ba2fbdcb206609259134fc09eac7940c21cc2c13/lib/appium_lib/android/element/textfield.rb#L31) android
|
2460
2475
|
|
2461
2476
|
> def last_textfield
|
2462
2477
|
|
@@ -2468,7 +2483,7 @@ __Returns:__
|
|
2468
2483
|
|
2469
2484
|
--
|
2470
2485
|
|
2471
|
-
##### [textfield_exact](https://github.com/appium/ruby_lib/blob/
|
2486
|
+
##### [textfield_exact](https://github.com/appium/ruby_lib/blob/ba2fbdcb206609259134fc09eac7940c21cc2c13/lib/appium_lib/android/element/textfield.rb#L38) android
|
2472
2487
|
|
2473
2488
|
> def textfield_exact(value)
|
2474
2489
|
|
@@ -2484,7 +2499,7 @@ __Returns:__
|
|
2484
2499
|
|
2485
2500
|
--
|
2486
2501
|
|
2487
|
-
##### [textfields_exact](https://github.com/appium/ruby_lib/blob/
|
2502
|
+
##### [textfields_exact](https://github.com/appium/ruby_lib/blob/ba2fbdcb206609259134fc09eac7940c21cc2c13/lib/appium_lib/android/element/textfield.rb#L45) android
|
2488
2503
|
|
2489
2504
|
> def textfields_exact(value)
|
2490
2505
|
|
@@ -2500,7 +2515,7 @@ __Returns:__
|
|
2500
2515
|
|
2501
2516
|
--
|
2502
2517
|
|
2503
|
-
##### [value](https://github.com/appium/ruby_lib/blob/
|
2518
|
+
##### [value](https://github.com/appium/ruby_lib/blob/ba2fbdcb206609259134fc09eac7940c21cc2c13/lib/appium_lib/common/patch.rb#L12)
|
2504
2519
|
|
2505
2520
|
> def value
|
2506
2521
|
|
@@ -2510,7 +2525,7 @@ Fixes NoMethodError: undefined method `value' for Selenium::WebDriver::Element
|
|
2510
2525
|
|
2511
2526
|
--
|
2512
2527
|
|
2513
|
-
##### [name](https://github.com/appium/ruby_lib/blob/
|
2528
|
+
##### [name](https://github.com/appium/ruby_lib/blob/ba2fbdcb206609259134fc09eac7940c21cc2c13/lib/appium_lib/common/patch.rb#L19)
|
2514
2529
|
|
2515
2530
|
> def name
|
2516
2531
|
|
@@ -2520,7 +2535,7 @@ Fixes NoMethodError: undefined method `name' for Selenium::WebDriver::Element
|
|
2520
2535
|
|
2521
2536
|
--
|
2522
2537
|
|
2523
|
-
##### [location_rel](https://github.com/appium/ruby_lib/blob/
|
2538
|
+
##### [location_rel](https://github.com/appium/ruby_lib/blob/ba2fbdcb206609259134fc09eac7940c21cc2c13/lib/appium_lib/common/patch.rb#L31)
|
2524
2539
|
|
2525
2540
|
> def location_rel
|
2526
2541
|
|
@@ -2538,7 +2553,7 @@ __Returns:__
|
|
2538
2553
|
|
2539
2554
|
--
|
2540
2555
|
|
2541
|
-
##### [DEFAULT_HEADERS](https://github.com/appium/ruby_lib/blob/
|
2556
|
+
##### [DEFAULT_HEADERS](https://github.com/appium/ruby_lib/blob/ba2fbdcb206609259134fc09eac7940c21cc2c13/lib/appium_lib/common/patch.rb#L152)
|
2542
2557
|
|
2543
2558
|
> DEFAULT_HEADERS = { 'Accept' => CONTENT_TYPE, 'User-Agent' => "appium/ruby_lib/#{::Appium::VERSION}" }.freeze
|
2544
2559
|
|
@@ -2546,7 +2561,7 @@ __Returns:__
|
|
2546
2561
|
|
2547
2562
|
--
|
2548
2563
|
|
2549
|
-
##### [patch_remote_driver_commands](https://github.com/appium/ruby_lib/blob/
|
2564
|
+
##### [patch_remote_driver_commands](https://github.com/appium/ruby_lib/blob/ba2fbdcb206609259134fc09eac7940c21cc2c13/lib/appium_lib/common/patch.rb#L155)
|
2550
2565
|
|
2551
2566
|
> def patch_remote_driver_commands
|
2552
2567
|
|