appium_lib 3.0.3 → 4.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/android_tests/Rakefile +0 -3
- data/android_tests/appium.txt +1 -0
- data/android_tests/lib/android/specs/android/element/alert.rb +9 -2
- data/android_tests/lib/android/specs/android/element/textfield.rb +5 -0
- data/android_tests/lib/android/specs/android/helper.rb +6 -15
- data/android_tests/lib/android/specs/android/patch.rb +16 -3
- data/android_tests/lib/android/specs/common/device.rb +41 -41
- data/android_tests/lib/android/specs/common/patch.rb +1 -1
- data/android_tests/lib/android/specs/common/web_context.rb +55 -7
- data/android_tests/lib/android/specs/driver.rb +4 -3
- data/android_tests/lib/android/specs/install.rb +25 -0
- data/android_tests/lib/run.rb +4 -3
- data/docs/android_docs.md +357 -187
- data/docs/docs.md +8 -28
- data/docs/ios_docs.md +341 -179
- data/docs/migration.md +6 -0
- data/ios_tests/Rakefile +0 -3
- data/ios_tests/appium.txt +1 -0
- data/ios_tests/lib/common.rb +30 -0
- data/ios_tests/lib/ios/specs/device/device.rb +6 -1
- data/ios_tests/lib/ios/specs/driver.rb +3 -3
- data/ios_tests/lib/ios/specs/ios/element/alert.rb +0 -5
- data/ios_tests/lib/ios/specs/ios/element/textfield.rb +10 -0
- data/ios_tests/lib/run.rb +4 -106
- data/lib/appium_lib.rb +2 -2
- data/lib/appium_lib/android/element/button.rb +16 -26
- data/lib/appium_lib/android/element/generic.rb +15 -12
- data/lib/appium_lib/android/helper.rb +39 -53
- data/lib/appium_lib/common/patch.rb +10 -39
- data/lib/appium_lib/common/version.rb +2 -2
- data/lib/appium_lib/device/device.rb +54 -70
- data/lib/appium_lib/driver.rb +29 -19
- data/lib/appium_lib/ios/helper.rb +50 -1
- data/lib/appium_lib/ios/patch.rb +1 -23
- data/release_notes.md +38 -0
- metadata +4 -4
- data/android_tests/lib/android/specs/android/dynamic.rb +0 -5
- data/lib/appium_lib/android/dynamic.rb +0 -47
data/docs/docs.md
CHANGED
@@ -226,37 +226,17 @@ Reset after each test and when done report the result to Sauce after quiting the
|
|
226
226
|
```ruby
|
227
227
|
require 'rest_client' # https://github.com/archiloque/rest-client
|
228
228
|
require 'json' # for .to_json
|
229
|
-
|
230
|
-
$passed = true
|
229
|
+
require 'sauce_whisk'
|
231
230
|
|
232
231
|
After do |scenario|
|
233
|
-
#
|
234
|
-
$driver.
|
235
|
-
|
236
|
-
if $passed
|
237
|
-
$passed = false if scenario.failed?
|
238
|
-
end
|
239
|
-
end
|
240
|
-
|
241
|
-
at_exit do
|
242
|
-
# selenium-webdriver (2.32.1) or better can use
|
243
|
-
# $driver.driver.session_id
|
244
|
-
ID = $driver.driver.send(:bridge).session_id
|
232
|
+
# end the test session, ignoring any exceptions.
|
233
|
+
ignore { $driver.driver_quit }
|
245
234
|
|
246
|
-
|
247
|
-
|
248
|
-
|
249
|
-
|
250
|
-
|
251
|
-
|
252
|
-
# Keep trying until passed is set correctly. Give up after 30 seconds.
|
253
|
-
wait_true do
|
254
|
-
response = RestClient.put URL, { 'passed' => $passed }.to_json, :content_type => :json, :accept => :json
|
255
|
-
response = JSON.parse(response)
|
256
|
-
|
257
|
-
# Check that the server responded with the right value.
|
258
|
-
response['passed'] == $passed
|
259
|
-
end
|
235
|
+
user = ENV['SAUCE_USERNAME']
|
236
|
+
key = ENV['SAUCE_ACCESS_KEY']
|
237
|
+
if user && !user.empty? && key && !key.empty?
|
238
|
+
passed = ! scenario.failed?
|
239
|
+
SauceWhisk::Jobs.change_status $driver.driver.session_id, passed
|
260
240
|
end
|
261
241
|
end
|
262
242
|
```
|
data/docs/ios_docs.md
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
##### [load_appium_txt](https://github.com/appium/ruby_lib/blob/
|
1
|
+
##### [load_appium_txt](https://github.com/appium/ruby_lib/blob/8cc004ad04ec087a8a11c06ca0749a5e2c6586a7/lib/appium_lib/driver.rb#L70)
|
2
2
|
|
3
3
|
> def self.load_appium_txt opts={}
|
4
4
|
|
@@ -27,7 +27,7 @@ __Returns:__
|
|
27
27
|
|
28
28
|
--
|
29
29
|
|
30
|
-
##### [symbolize_keys](https://github.com/appium/ruby_lib/blob/
|
30
|
+
##### [symbolize_keys](https://github.com/appium/ruby_lib/blob/8cc004ad04ec087a8a11c06ca0749a5e2c6586a7/lib/appium_lib/driver.rb#L140)
|
31
31
|
|
32
32
|
> def self.symbolize_keys hash
|
33
33
|
|
@@ -38,7 +38,7 @@ https://github.com/rails/docrails/blob/a3b1105ada3da64acfa3843b164b14b734456a50/
|
|
38
38
|
|
39
39
|
--
|
40
40
|
|
41
|
-
##### [promote_singleton_appium_methods](https://github.com/appium/ruby_lib/blob/
|
41
|
+
##### [promote_singleton_appium_methods](https://github.com/appium/ruby_lib/blob/8cc004ad04ec087a8a11c06ca0749a5e2c6586a7/lib/appium_lib/driver.rb#L150)
|
42
42
|
|
43
43
|
> def self.promote_singleton_appium_methods main_module
|
44
44
|
|
@@ -46,7 +46,7 @@ https://github.com/rails/docrails/blob/a3b1105ada3da64acfa3843b164b14b734456a50/
|
|
46
46
|
|
47
47
|
--
|
48
48
|
|
49
|
-
##### [promote_appium_methods](https://github.com/appium/ruby_lib/blob/
|
49
|
+
##### [promote_appium_methods](https://github.com/appium/ruby_lib/blob/8cc004ad04ec087a8a11c06ca0749a5e2c6586a7/lib/appium_lib/driver.rb#L179)
|
50
50
|
|
51
51
|
> def self.promote_appium_methods class_array
|
52
52
|
|
@@ -64,7 +64,7 @@ __Parameters:__
|
|
64
64
|
|
65
65
|
--
|
66
66
|
|
67
|
-
##### [global_webdriver_http_sleep](https://github.com/appium/ruby_lib/blob/
|
67
|
+
##### [global_webdriver_http_sleep](https://github.com/appium/ruby_lib/blob/8cc004ad04ec087a8a11c06ca0749a5e2c6586a7/lib/appium_lib/driver.rb#L212)
|
68
68
|
|
69
69
|
> def global_webdriver_http_sleep
|
70
70
|
|
@@ -72,7 +72,7 @@ The amount to sleep in seconds before every webdriver http call.
|
|
72
72
|
|
73
73
|
--
|
74
74
|
|
75
|
-
##### [global_webdriver_http_sleep=](https://github.com/appium/ruby_lib/blob/
|
75
|
+
##### [global_webdriver_http_sleep=](https://github.com/appium/ruby_lib/blob/8cc004ad04ec087a8a11c06ca0749a5e2c6586a7/lib/appium_lib/driver.rb#L212)
|
76
76
|
|
77
77
|
> def global_webdriver_http_sleep=(value)
|
78
78
|
|
@@ -80,7 +80,172 @@ The amount to sleep in seconds before every webdriver http call.
|
|
80
80
|
|
81
81
|
--
|
82
82
|
|
83
|
-
##### [
|
83
|
+
##### [caps](https://github.com/appium/ruby_lib/blob/8cc004ad04ec087a8a11c06ca0749a5e2c6586a7/lib/appium_lib/driver.rb#L212)
|
84
|
+
|
85
|
+
> def caps
|
86
|
+
|
87
|
+
The amount to sleep in seconds before every webdriver http call.
|
88
|
+
|
89
|
+
--
|
90
|
+
|
91
|
+
##### [caps=](https://github.com/appium/ruby_lib/blob/8cc004ad04ec087a8a11c06ca0749a5e2c6586a7/lib/appium_lib/driver.rb#L212)
|
92
|
+
|
93
|
+
> def caps=(value)
|
94
|
+
|
95
|
+
The amount to sleep in seconds before every webdriver http call.
|
96
|
+
|
97
|
+
--
|
98
|
+
|
99
|
+
##### [custom_url](https://github.com/appium/ruby_lib/blob/8cc004ad04ec087a8a11c06ca0749a5e2c6586a7/lib/appium_lib/driver.rb#L212)
|
100
|
+
|
101
|
+
> def custom_url
|
102
|
+
|
103
|
+
The amount to sleep in seconds before every webdriver http call.
|
104
|
+
|
105
|
+
--
|
106
|
+
|
107
|
+
##### [custom_url=](https://github.com/appium/ruby_lib/blob/8cc004ad04ec087a8a11c06ca0749a5e2c6586a7/lib/appium_lib/driver.rb#L212)
|
108
|
+
|
109
|
+
> def custom_url=(value)
|
110
|
+
|
111
|
+
The amount to sleep in seconds before every webdriver http call.
|
112
|
+
|
113
|
+
--
|
114
|
+
|
115
|
+
##### [export_session](https://github.com/appium/ruby_lib/blob/8cc004ad04ec087a8a11c06ca0749a5e2c6586a7/lib/appium_lib/driver.rb#L212)
|
116
|
+
|
117
|
+
> def export_session
|
118
|
+
|
119
|
+
The amount to sleep in seconds before every webdriver http call.
|
120
|
+
|
121
|
+
--
|
122
|
+
|
123
|
+
##### [export_session=](https://github.com/appium/ruby_lib/blob/8cc004ad04ec087a8a11c06ca0749a5e2c6586a7/lib/appium_lib/driver.rb#L212)
|
124
|
+
|
125
|
+
> def export_session=(value)
|
126
|
+
|
127
|
+
The amount to sleep in seconds before every webdriver http call.
|
128
|
+
|
129
|
+
--
|
130
|
+
|
131
|
+
##### [default_wait](https://github.com/appium/ruby_lib/blob/8cc004ad04ec087a8a11c06ca0749a5e2c6586a7/lib/appium_lib/driver.rb#L212)
|
132
|
+
|
133
|
+
> def default_wait
|
134
|
+
|
135
|
+
Returns the default client side wait.
|
136
|
+
This value is independent of what the server is using
|
137
|
+
|
138
|
+
__Returns:__
|
139
|
+
|
140
|
+
[Integer]
|
141
|
+
|
142
|
+
--
|
143
|
+
|
144
|
+
##### [default_wait=](https://github.com/appium/ruby_lib/blob/8cc004ad04ec087a8a11c06ca0749a5e2c6586a7/lib/appium_lib/driver.rb#L212)
|
145
|
+
|
146
|
+
> def default_wait=(value)
|
147
|
+
|
148
|
+
The amount to sleep in seconds before every webdriver http call.
|
149
|
+
|
150
|
+
--
|
151
|
+
|
152
|
+
##### [last_waits](https://github.com/appium/ruby_lib/blob/8cc004ad04ec087a8a11c06ca0749a5e2c6586a7/lib/appium_lib/driver.rb#L212)
|
153
|
+
|
154
|
+
> def last_waits
|
155
|
+
|
156
|
+
The amount to sleep in seconds before every webdriver http call.
|
157
|
+
|
158
|
+
--
|
159
|
+
|
160
|
+
##### [last_waits=](https://github.com/appium/ruby_lib/blob/8cc004ad04ec087a8a11c06ca0749a5e2c6586a7/lib/appium_lib/driver.rb#L212)
|
161
|
+
|
162
|
+
> def last_waits=(value)
|
163
|
+
|
164
|
+
The amount to sleep in seconds before every webdriver http call.
|
165
|
+
|
166
|
+
--
|
167
|
+
|
168
|
+
##### [sauce_username](https://github.com/appium/ruby_lib/blob/8cc004ad04ec087a8a11c06ca0749a5e2c6586a7/lib/appium_lib/driver.rb#L212)
|
169
|
+
|
170
|
+
> def sauce_username
|
171
|
+
|
172
|
+
The amount to sleep in seconds before every webdriver http call.
|
173
|
+
|
174
|
+
--
|
175
|
+
|
176
|
+
##### [sauce_username=](https://github.com/appium/ruby_lib/blob/8cc004ad04ec087a8a11c06ca0749a5e2c6586a7/lib/appium_lib/driver.rb#L212)
|
177
|
+
|
178
|
+
> def sauce_username=(value)
|
179
|
+
|
180
|
+
The amount to sleep in seconds before every webdriver http call.
|
181
|
+
|
182
|
+
--
|
183
|
+
|
184
|
+
##### [sauce_access_key](https://github.com/appium/ruby_lib/blob/8cc004ad04ec087a8a11c06ca0749a5e2c6586a7/lib/appium_lib/driver.rb#L212)
|
185
|
+
|
186
|
+
> def sauce_access_key
|
187
|
+
|
188
|
+
The amount to sleep in seconds before every webdriver http call.
|
189
|
+
|
190
|
+
--
|
191
|
+
|
192
|
+
##### [sauce_access_key=](https://github.com/appium/ruby_lib/blob/8cc004ad04ec087a8a11c06ca0749a5e2c6586a7/lib/appium_lib/driver.rb#L212)
|
193
|
+
|
194
|
+
> def sauce_access_key=(value)
|
195
|
+
|
196
|
+
The amount to sleep in seconds before every webdriver http call.
|
197
|
+
|
198
|
+
--
|
199
|
+
|
200
|
+
##### [appium_port](https://github.com/appium/ruby_lib/blob/8cc004ad04ec087a8a11c06ca0749a5e2c6586a7/lib/appium_lib/driver.rb#L212)
|
201
|
+
|
202
|
+
> def appium_port
|
203
|
+
|
204
|
+
The amount to sleep in seconds before every webdriver http call.
|
205
|
+
|
206
|
+
--
|
207
|
+
|
208
|
+
##### [appium_port=](https://github.com/appium/ruby_lib/blob/8cc004ad04ec087a8a11c06ca0749a5e2c6586a7/lib/appium_lib/driver.rb#L212)
|
209
|
+
|
210
|
+
> def appium_port=(value)
|
211
|
+
|
212
|
+
The amount to sleep in seconds before every webdriver http call.
|
213
|
+
|
214
|
+
--
|
215
|
+
|
216
|
+
##### [appium_device](https://github.com/appium/ruby_lib/blob/8cc004ad04ec087a8a11c06ca0749a5e2c6586a7/lib/appium_lib/driver.rb#L212)
|
217
|
+
|
218
|
+
> def appium_device
|
219
|
+
|
220
|
+
The amount to sleep in seconds before every webdriver http call.
|
221
|
+
|
222
|
+
--
|
223
|
+
|
224
|
+
##### [appium_device=](https://github.com/appium/ruby_lib/blob/8cc004ad04ec087a8a11c06ca0749a5e2c6586a7/lib/appium_lib/driver.rb#L212)
|
225
|
+
|
226
|
+
> def appium_device=(value)
|
227
|
+
|
228
|
+
The amount to sleep in seconds before every webdriver http call.
|
229
|
+
|
230
|
+
--
|
231
|
+
|
232
|
+
##### [appium_debug](https://github.com/appium/ruby_lib/blob/8cc004ad04ec087a8a11c06ca0749a5e2c6586a7/lib/appium_lib/driver.rb#L212)
|
233
|
+
|
234
|
+
> def appium_debug
|
235
|
+
|
236
|
+
The amount to sleep in seconds before every webdriver http call.
|
237
|
+
|
238
|
+
--
|
239
|
+
|
240
|
+
##### [appium_debug=](https://github.com/appium/ruby_lib/blob/8cc004ad04ec087a8a11c06ca0749a5e2c6586a7/lib/appium_lib/driver.rb#L212)
|
241
|
+
|
242
|
+
> def appium_debug=(value)
|
243
|
+
|
244
|
+
The amount to sleep in seconds before every webdriver http call.
|
245
|
+
|
246
|
+
--
|
247
|
+
|
248
|
+
##### [initialize](https://github.com/appium/ruby_lib/blob/8cc004ad04ec087a8a11c06ca0749a5e2c6586a7/lib/appium_lib/driver.rb#L243)
|
84
249
|
|
85
250
|
> def initialize opts={}
|
86
251
|
|
@@ -111,7 +276,7 @@ __Returns:__
|
|
111
276
|
|
112
277
|
--
|
113
278
|
|
114
|
-
##### [driver_attributes](https://github.com/appium/ruby_lib/blob/
|
279
|
+
##### [driver_attributes](https://github.com/appium/ruby_lib/blob/8cc004ad04ec087a8a11c06ca0749a5e2c6586a7/lib/appium_lib/driver.rb#L318)
|
115
280
|
|
116
281
|
> def driver_attributes
|
117
282
|
|
@@ -119,7 +284,7 @@ Returns a hash of the driver attributes
|
|
119
284
|
|
120
285
|
--
|
121
286
|
|
122
|
-
##### [device_is_android?](https://github.com/appium/ruby_lib/blob/
|
287
|
+
##### [device_is_android?](https://github.com/appium/ruby_lib/blob/8cc004ad04ec087a8a11c06ca0749a5e2c6586a7/lib/appium_lib/driver.rb#L338)
|
123
288
|
|
124
289
|
> def device_is_android?
|
125
290
|
|
@@ -131,7 +296,7 @@ __Returns:__
|
|
131
296
|
|
132
297
|
--
|
133
298
|
|
134
|
-
##### [appium_server_version](https://github.com/appium/ruby_lib/blob/
|
299
|
+
##### [appium_server_version](https://github.com/appium/ruby_lib/blob/8cc004ad04ec087a8a11c06ca0749a5e2c6586a7/lib/appium_lib/driver.rb#L354)
|
135
300
|
|
136
301
|
> def appium_server_version
|
137
302
|
|
@@ -152,7 +317,7 @@ __Returns:__
|
|
152
317
|
|
153
318
|
--
|
154
319
|
|
155
|
-
##### [absolute_app_path](https://github.com/appium/ruby_lib/blob/
|
320
|
+
##### [absolute_app_path](https://github.com/appium/ruby_lib/blob/8cc004ad04ec087a8a11c06ca0749a5e2c6586a7/lib/appium_lib/driver.rb#L360)
|
156
321
|
|
157
322
|
> def self.absolute_app_path app_path
|
158
323
|
|
@@ -164,7 +329,7 @@ __Returns:__
|
|
164
329
|
|
165
330
|
--
|
166
331
|
|
167
|
-
##### [server_url](https://github.com/appium/ruby_lib/blob/
|
332
|
+
##### [server_url](https://github.com/appium/ruby_lib/blob/8cc004ad04ec087a8a11c06ca0749a5e2c6586a7/lib/appium_lib/driver.rb#L387)
|
168
333
|
|
169
334
|
> def server_url
|
170
335
|
|
@@ -176,7 +341,7 @@ __Returns:__
|
|
176
341
|
|
177
342
|
--
|
178
343
|
|
179
|
-
##### [restart](https://github.com/appium/ruby_lib/blob/
|
344
|
+
##### [restart](https://github.com/appium/ruby_lib/blob/8cc004ad04ec087a8a11c06ca0749a5e2c6586a7/lib/appium_lib/driver.rb#L398)
|
180
345
|
|
181
346
|
> def restart
|
182
347
|
|
@@ -188,7 +353,7 @@ __Returns:__
|
|
188
353
|
|
189
354
|
--
|
190
355
|
|
191
|
-
##### [driver](https://github.com/appium/ruby_lib/blob/
|
356
|
+
##### [driver](https://github.com/appium/ruby_lib/blob/8cc004ad04ec087a8a11c06ca0749a5e2c6586a7/lib/appium_lib/driver.rb#L405)
|
192
357
|
|
193
358
|
> def driver
|
194
359
|
|
@@ -200,7 +365,7 @@ __Returns:__
|
|
200
365
|
|
201
366
|
--
|
202
367
|
|
203
|
-
##### [screenshot](https://github.com/appium/ruby_lib/blob/
|
368
|
+
##### [screenshot](https://github.com/appium/ruby_lib/blob/8cc004ad04ec087a8a11c06ca0749a5e2c6586a7/lib/appium_lib/driver.rb#L415)
|
204
369
|
|
205
370
|
> def screenshot png_save_path
|
206
371
|
|
@@ -218,7 +383,7 @@ __Returns:__
|
|
218
383
|
|
219
384
|
--
|
220
385
|
|
221
|
-
##### [driver_quit](https://github.com/appium/ruby_lib/blob/
|
386
|
+
##### [driver_quit](https://github.com/appium/ruby_lib/blob/8cc004ad04ec087a8a11c06ca0749a5e2c6586a7/lib/appium_lib/driver.rb#L422)
|
222
387
|
|
223
388
|
> def driver_quit
|
224
389
|
|
@@ -230,7 +395,7 @@ __Returns:__
|
|
230
395
|
|
231
396
|
--
|
232
397
|
|
233
|
-
##### [start_driver](https://github.com/appium/ruby_lib/blob/
|
398
|
+
##### [start_driver](https://github.com/appium/ruby_lib/blob/8cc004ad04ec087a8a11c06ca0749a5e2c6586a7/lib/appium_lib/driver.rb#L430)
|
234
399
|
|
235
400
|
> def start_driver
|
236
401
|
|
@@ -242,7 +407,7 @@ __Returns:__
|
|
242
407
|
|
243
408
|
--
|
244
409
|
|
245
|
-
##### [no_wait](https://github.com/appium/ruby_lib/blob/
|
410
|
+
##### [no_wait](https://github.com/appium/ruby_lib/blob/8cc004ad04ec087a8a11c06ca0749a5e2c6586a7/lib/appium_lib/driver.rb#L457)
|
246
411
|
|
247
412
|
> def no_wait
|
248
413
|
|
@@ -250,7 +415,7 @@ Set implicit wait and default_wait to zero.
|
|
250
415
|
|
251
416
|
--
|
252
417
|
|
253
|
-
##### [set_wait](https://github.com/appium/ruby_lib/blob/
|
418
|
+
##### [set_wait](https://github.com/appium/ruby_lib/blob/8cc004ad04ec087a8a11c06ca0749a5e2c6586a7/lib/appium_lib/driver.rb#L476)
|
254
419
|
|
255
420
|
> def set_wait timeout=nil
|
256
421
|
|
@@ -275,20 +440,7 @@ __Returns:__
|
|
275
440
|
|
276
441
|
--
|
277
442
|
|
278
|
-
##### [
|
279
|
-
|
280
|
-
> def default_wait
|
281
|
-
|
282
|
-
Returns the default client side wait.
|
283
|
-
This value is independent of what the server is using
|
284
|
-
|
285
|
-
__Returns:__
|
286
|
-
|
287
|
-
[Integer]
|
288
|
-
|
289
|
-
--
|
290
|
-
|
291
|
-
##### [exists](https://github.com/appium/ruby_lib/blob/3ed875cc01ba7f670e9b1b8ccfd7b7adb0af82c1/lib/appium_lib/driver.rb#L500)
|
443
|
+
##### [exists](https://github.com/appium/ruby_lib/blob/8cc004ad04ec087a8a11c06ca0749a5e2c6586a7/lib/appium_lib/driver.rb#L510)
|
292
444
|
|
293
445
|
> def exists pre_check=0, post_check=@default_wait, &search_block
|
294
446
|
|
@@ -314,7 +466,7 @@ __Returns:__
|
|
314
466
|
|
315
467
|
--
|
316
468
|
|
317
|
-
##### [execute_script](https://github.com/appium/ruby_lib/blob/
|
469
|
+
##### [execute_script](https://github.com/appium/ruby_lib/blob/8cc004ad04ec087a8a11c06ca0749a5e2c6586a7/lib/appium_lib/driver.rb#L534)
|
318
470
|
|
319
471
|
> def execute_script script, *args
|
320
472
|
|
@@ -332,7 +484,7 @@ __Returns:__
|
|
332
484
|
|
333
485
|
--
|
334
486
|
|
335
|
-
##### [find_elements](https://github.com/appium/ruby_lib/blob/
|
487
|
+
##### [find_elements](https://github.com/appium/ruby_lib/blob/8cc004ad04ec087a8a11c06ca0749a5e2c6586a7/lib/appium_lib/driver.rb#L542)
|
336
488
|
|
337
489
|
> def find_elements *args
|
338
490
|
|
@@ -348,7 +500,7 @@ __Returns:__
|
|
348
500
|
|
349
501
|
--
|
350
502
|
|
351
|
-
##### [find_element](https://github.com/appium/ruby_lib/blob/
|
503
|
+
##### [find_element](https://github.com/appium/ruby_lib/blob/8cc004ad04ec087a8a11c06ca0749a5e2c6586a7/lib/appium_lib/driver.rb#L550)
|
352
504
|
|
353
505
|
> def find_element *args
|
354
506
|
|
@@ -364,7 +516,7 @@ __Returns:__
|
|
364
516
|
|
365
517
|
--
|
366
518
|
|
367
|
-
##### [x](https://github.com/appium/ruby_lib/blob/
|
519
|
+
##### [x](https://github.com/appium/ruby_lib/blob/8cc004ad04ec087a8a11c06ca0749a5e2c6586a7/lib/appium_lib/driver.rb#L557)
|
368
520
|
|
369
521
|
> def x
|
370
522
|
|
@@ -377,7 +529,7 @@ __Returns:__
|
|
377
529
|
|
378
530
|
--
|
379
531
|
|
380
|
-
##### [NoArgMethods](https://github.com/appium/ruby_lib/blob/
|
532
|
+
##### [NoArgMethods](https://github.com/appium/ruby_lib/blob/8cc004ad04ec087a8a11c06ca0749a5e2c6586a7/lib/appium_lib/device/device.rb#L7)
|
381
533
|
|
382
534
|
> NoArgMethods = {
|
383
535
|
|
@@ -385,7 +537,7 @@ __Returns:__
|
|
385
537
|
|
386
538
|
--
|
387
539
|
|
388
|
-
##### [app_strings](https://github.com/appium/ruby_lib/blob/
|
540
|
+
##### [app_strings](https://github.com/appium/ruby_lib/blob/8cc004ad04ec087a8a11c06ca0749a5e2c6586a7/lib/appium_lib/device/device.rb#L22)
|
389
541
|
|
390
542
|
> def app_strings
|
391
543
|
|
@@ -396,7 +548,7 @@ app_strings #=> "TransitionsTitle"=>"Transitions", "WebTitle"=>"Web"
|
|
396
548
|
|
397
549
|
--
|
398
550
|
|
399
|
-
##### [background_app](https://github.com/appium/ruby_lib/blob/
|
551
|
+
##### [background_app](https://github.com/appium/ruby_lib/blob/8cc004ad04ec087a8a11c06ca0749a5e2c6586a7/lib/appium_lib/device/device.rb#L28)
|
400
552
|
|
401
553
|
> def background_app
|
402
554
|
|
@@ -405,7 +557,7 @@ This is a blocking application
|
|
405
557
|
|
406
558
|
--
|
407
559
|
|
408
|
-
##### [current_activity](https://github.com/appium/ruby_lib/blob/
|
560
|
+
##### [current_activity](https://github.com/appium/ruby_lib/blob/8cc004ad04ec087a8a11c06ca0749a5e2c6586a7/lib/appium_lib/device/device.rb#L33)
|
409
561
|
|
410
562
|
> def current_activity
|
411
563
|
|
@@ -413,7 +565,7 @@ This is a blocking application
|
|
413
565
|
|
414
566
|
--
|
415
567
|
|
416
|
-
##### [launch](https://github.com/appium/ruby_lib/blob/
|
568
|
+
##### [launch](https://github.com/appium/ruby_lib/blob/8cc004ad04ec087a8a11c06ca0749a5e2c6586a7/lib/appium_lib/device/device.rb#L35)
|
417
569
|
|
418
570
|
> def launch
|
419
571
|
|
@@ -421,7 +573,7 @@ Start the simulator and applicaton configured with desired capabilities
|
|
421
573
|
|
422
574
|
--
|
423
575
|
|
424
|
-
##### [reset](https://github.com/appium/ruby_lib/blob/
|
576
|
+
##### [reset](https://github.com/appium/ruby_lib/blob/8cc004ad04ec087a8a11c06ca0749a5e2c6586a7/lib/appium_lib/device/device.rb#L38)
|
425
577
|
|
426
578
|
> def reset
|
427
579
|
|
@@ -429,7 +581,7 @@ Reset the device, relaunching the application.
|
|
429
581
|
|
430
582
|
--
|
431
583
|
|
432
|
-
##### [shake](https://github.com/appium/ruby_lib/blob/
|
584
|
+
##### [shake](https://github.com/appium/ruby_lib/blob/8cc004ad04ec087a8a11c06ca0749a5e2c6586a7/lib/appium_lib/device/device.rb#L41)
|
433
585
|
|
434
586
|
> def shake
|
435
587
|
|
@@ -437,7 +589,7 @@ Cause the device to shake
|
|
437
589
|
|
438
590
|
--
|
439
591
|
|
440
|
-
##### [toggle_flight_mode](https://github.com/appium/ruby_lib/blob/
|
592
|
+
##### [toggle_flight_mode](https://github.com/appium/ruby_lib/blob/8cc004ad04ec087a8a11c06ca0749a5e2c6586a7/lib/appium_lib/device/device.rb#L44)
|
441
593
|
|
442
594
|
> def toggle_flight_mode
|
443
595
|
|
@@ -445,55 +597,50 @@ toggle flight mode on or off
|
|
445
597
|
|
446
598
|
--
|
447
599
|
|
448
|
-
##### [
|
449
|
-
|
450
|
-
> def complex_find
|
600
|
+
##### [hide_keyboard](https://github.com/appium/ruby_lib/blob/8cc004ad04ec087a8a11c06ca0749a5e2c6586a7/lib/appium_lib/device/device.rb#L47)
|
451
601
|
|
452
|
-
|
453
|
-
are listed in [link here]. Criteria are formed by creating an array
|
454
|
-
of arrays, each containing a selector and that selector's value.
|
602
|
+
> def hide_keyboard
|
455
603
|
|
456
|
-
|
457
|
-
complex_find [[[2, 'Sau'], [14, true]]] # => Find a clickable element
|
458
|
-
# whose names starts with 'Sau'
|
459
|
-
```
|
604
|
+
Hide the onscreen keyboard
|
460
605
|
|
461
606
|
__Parameters:__
|
462
607
|
|
463
|
-
[
|
464
|
-
|
465
|
-
[Array<Object>] selectors - The selectors to find elements with.
|
608
|
+
[String] close_key - the name of the key which closes the keyboard.
|
609
|
+
Defaults to 'Done'.
|
466
610
|
|
467
611
|
--
|
468
612
|
|
469
|
-
##### [
|
613
|
+
##### [press_keycode](https://github.com/appium/ruby_lib/blob/8cc004ad04ec087a8a11c06ca0749a5e2c6586a7/lib/appium_lib/device/device.rb#L56)
|
470
614
|
|
471
|
-
> def
|
615
|
+
> def press_keycode
|
472
616
|
|
473
|
-
|
617
|
+
Press keycode on the device.
|
618
|
+
http://developer.android.com/reference/android/view/KeyEvent.html
|
474
619
|
|
475
620
|
__Parameters:__
|
476
621
|
|
477
|
-
[
|
478
|
-
|
622
|
+
[integer] key - The key to press.
|
623
|
+
|
624
|
+
[String] metastate - The state the metakeys should be in when pressing the key.
|
479
625
|
|
480
626
|
--
|
481
627
|
|
482
|
-
##### [
|
628
|
+
##### [long_press_keycode](https://github.com/appium/ruby_lib/blob/8cc004ad04ec087a8a11c06ca0749a5e2c6586a7/lib/appium_lib/device/device.rb#L62)
|
483
629
|
|
484
|
-
> def
|
630
|
+
> def long_press_keycode
|
485
631
|
|
486
|
-
|
632
|
+
Long press keycode on the device.
|
633
|
+
http://developer.android.com/reference/android/view/KeyEvent.html
|
487
634
|
|
488
635
|
__Parameters:__
|
489
636
|
|
490
|
-
[integer] key - The key to
|
637
|
+
[integer] key - The key to long press.
|
491
638
|
|
492
|
-
[String] metastate - The state the metakeys should be in when
|
639
|
+
[String] metastate - The state the metakeys should be in when long pressing the key.
|
493
640
|
|
494
641
|
--
|
495
642
|
|
496
|
-
##### [push_file](https://github.com/appium/ruby_lib/blob/
|
643
|
+
##### [push_file](https://github.com/appium/ruby_lib/blob/8cc004ad04ec087a8a11c06ca0749a5e2c6586a7/lib/appium_lib/device/device.rb#L68)
|
497
644
|
|
498
645
|
> def push_file
|
499
646
|
|
@@ -507,7 +654,7 @@ __Parameters:__
|
|
507
654
|
|
508
655
|
--
|
509
656
|
|
510
|
-
##### [pull_file](https://github.com/appium/ruby_lib/blob/
|
657
|
+
##### [pull_file](https://github.com/appium/ruby_lib/blob/8cc004ad04ec087a8a11c06ca0749a5e2c6586a7/lib/appium_lib/device/device.rb#L73)
|
511
658
|
|
512
659
|
> def pull_file
|
513
660
|
|
@@ -524,7 +671,22 @@ __Parameters:__
|
|
524
671
|
|
525
672
|
--
|
526
673
|
|
527
|
-
##### [
|
674
|
+
##### [pull_folder](https://github.com/appium/ruby_lib/blob/8cc004ad04ec087a8a11c06ca0749a5e2c6586a7/lib/appium_lib/device/device.rb#L83)
|
675
|
+
|
676
|
+
> def pull_folder
|
677
|
+
|
678
|
+
Retrieve a folder from the device.
|
679
|
+
```ruby
|
680
|
+
pull_folder '/data/local/tmp' #=> Get the folder at that path
|
681
|
+
```
|
682
|
+
|
683
|
+
__Parameters:__
|
684
|
+
|
685
|
+
[String] path - absolute path to the folder
|
686
|
+
|
687
|
+
--
|
688
|
+
|
689
|
+
##### [extend_search_contexts](https://github.com/appium/ruby_lib/blob/8cc004ad04ec087a8a11c06ca0749a5e2c6586a7/lib/appium_lib/device/device.rb#L274)
|
528
690
|
|
529
691
|
> def extend_search_contexts
|
530
692
|
|
@@ -532,7 +694,7 @@ __Parameters:__
|
|
532
694
|
|
533
695
|
--
|
534
696
|
|
535
|
-
##### [accessiblity_id_find](https://github.com/appium/ruby_lib/blob/
|
697
|
+
##### [accessiblity_id_find](https://github.com/appium/ruby_lib/blob/8cc004ad04ec087a8a11c06ca0749a5e2c6586a7/lib/appium_lib/device/device.rb#L274)
|
536
698
|
|
537
699
|
> def accessiblity_id_find
|
538
700
|
|
@@ -544,7 +706,7 @@ find_element/s with their accessibility_id
|
|
544
706
|
|
545
707
|
--
|
546
708
|
|
547
|
-
##### [add_touch_actions](https://github.com/appium/ruby_lib/blob/
|
709
|
+
##### [add_touch_actions](https://github.com/appium/ruby_lib/blob/8cc004ad04ec087a8a11c06ca0749a5e2c6586a7/lib/appium_lib/device/device.rb#L280)
|
548
710
|
|
549
711
|
> def add_touch_actions
|
550
712
|
|
@@ -552,7 +714,7 @@ find_element/s with their accessibility_id
|
|
552
714
|
|
553
715
|
--
|
554
716
|
|
555
|
-
##### [set_context](https://github.com/appium/ruby_lib/blob/
|
717
|
+
##### [set_context](https://github.com/appium/ruby_lib/blob/8cc004ad04ec087a8a11c06ca0749a5e2c6586a7/lib/appium_lib/device/device.rb#L304)
|
556
718
|
|
557
719
|
> def set_context
|
558
720
|
|
@@ -567,7 +729,7 @@ __Parameters:__
|
|
567
729
|
|
568
730
|
--
|
569
731
|
|
570
|
-
##### [current_context](https://github.com/appium/ruby_lib/blob/
|
732
|
+
##### [current_context](https://github.com/appium/ruby_lib/blob/8cc004ad04ec087a8a11c06ca0749a5e2c6586a7/lib/appium_lib/device/device.rb#L312)
|
571
733
|
|
572
734
|
> def current_context
|
573
735
|
|
@@ -579,7 +741,7 @@ __Returns:__
|
|
579
741
|
|
580
742
|
--
|
581
743
|
|
582
|
-
##### [available_contexts](https://github.com/appium/ruby_lib/blob/
|
744
|
+
##### [available_contexts](https://github.com/appium/ruby_lib/blob/8cc004ad04ec087a8a11c06ca0749a5e2c6586a7/lib/appium_lib/device/device.rb#L315)
|
583
745
|
|
584
746
|
> def available_contexts
|
585
747
|
|
@@ -591,7 +753,7 @@ __Returns:__
|
|
591
753
|
|
592
754
|
--
|
593
755
|
|
594
|
-
##### [within_context](https://github.com/appium/ruby_lib/blob/
|
756
|
+
##### [within_context](https://github.com/appium/ruby_lib/blob/8cc004ad04ec087a8a11c06ca0749a5e2c6586a7/lib/appium_lib/device/device.rb#L325)
|
595
757
|
|
596
758
|
> def within_context(context)
|
597
759
|
|
@@ -607,7 +769,7 @@ __Parameters:__
|
|
607
769
|
|
608
770
|
--
|
609
771
|
|
610
|
-
##### [switch_to_default_context](https://github.com/appium/ruby_lib/blob/
|
772
|
+
##### [switch_to_default_context](https://github.com/appium/ruby_lib/blob/8cc004ad04ec087a8a11c06ca0749a5e2c6586a7/lib/appium_lib/device/device.rb#L333)
|
611
773
|
|
612
774
|
> def switch_to_default_context
|
613
775
|
|
@@ -615,7 +777,7 @@ Change to the default context. This is equivalent to `set_context nil`.
|
|
615
777
|
|
616
778
|
--
|
617
779
|
|
618
|
-
##### [pinch](https://github.com/appium/ruby_lib/blob/
|
780
|
+
##### [pinch](https://github.com/appium/ruby_lib/blob/8cc004ad04ec087a8a11c06ca0749a5e2c6586a7/lib/appium_lib/device/multi_touch.rb#L30)
|
619
781
|
|
620
782
|
> def pinch(percentage=25, auto_perform=true)
|
621
783
|
|
@@ -634,7 +796,7 @@ __Parameters:__
|
|
634
796
|
|
635
797
|
--
|
636
798
|
|
637
|
-
##### [zoom](https://github.com/appium/ruby_lib/blob/
|
799
|
+
##### [zoom](https://github.com/appium/ruby_lib/blob/8cc004ad04ec087a8a11c06ca0749a5e2c6586a7/lib/appium_lib/device/multi_touch.rb#L58)
|
638
800
|
|
639
801
|
> def zoom(percentage=200, auto_perform=true)
|
640
802
|
|
@@ -653,7 +815,7 @@ __Parameters:__
|
|
653
815
|
|
654
816
|
--
|
655
817
|
|
656
|
-
##### [initialize](https://github.com/appium/ruby_lib/blob/
|
818
|
+
##### [initialize](https://github.com/appium/ruby_lib/blob/8cc004ad04ec087a8a11c06ca0749a5e2c6586a7/lib/appium_lib/device/multi_touch.rb#L79)
|
657
819
|
|
658
820
|
> def initialize
|
659
821
|
|
@@ -665,7 +827,7 @@ __Returns:__
|
|
665
827
|
|
666
828
|
--
|
667
829
|
|
668
|
-
##### [add](https://github.com/appium/ruby_lib/blob/
|
830
|
+
##### [add](https://github.com/appium/ruby_lib/blob/8cc004ad04ec087a8a11c06ca0749a5e2c6586a7/lib/appium_lib/device/multi_touch.rb#L85)
|
669
831
|
|
670
832
|
> def add(chain)
|
671
833
|
|
@@ -677,7 +839,7 @@ __Parameters:__
|
|
677
839
|
|
678
840
|
--
|
679
841
|
|
680
|
-
##### [perform](https://github.com/appium/ruby_lib/blob/
|
842
|
+
##### [perform](https://github.com/appium/ruby_lib/blob/8cc004ad04ec087a8a11c06ca0749a5e2c6586a7/lib/appium_lib/device/multi_touch.rb#L90)
|
681
843
|
|
682
844
|
> def perform
|
683
845
|
|
@@ -685,7 +847,7 @@ Ask Appium to perform the actions
|
|
685
847
|
|
686
848
|
--
|
687
849
|
|
688
|
-
##### [ACTIONS](https://github.com/appium/ruby_lib/blob/
|
850
|
+
##### [ACTIONS](https://github.com/appium/ruby_lib/blob/8cc004ad04ec087a8a11c06ca0749a5e2c6586a7/lib/appium_lib/device/touch_actions.rb#L12)
|
689
851
|
|
690
852
|
> ACTIONS = [:move_to, :long_press, :press, :release, :tap, :wait, :perform]
|
691
853
|
|
@@ -693,7 +855,7 @@ Ask Appium to perform the actions
|
|
693
855
|
|
694
856
|
--
|
695
857
|
|
696
|
-
##### [COMPLEX_ACTIONS](https://github.com/appium/ruby_lib/blob/
|
858
|
+
##### [COMPLEX_ACTIONS](https://github.com/appium/ruby_lib/blob/8cc004ad04ec087a8a11c06ca0749a5e2c6586a7/lib/appium_lib/device/touch_actions.rb#L13)
|
697
859
|
|
698
860
|
> COMPLEX_ACTIONS = [:swipe]
|
699
861
|
|
@@ -701,7 +863,7 @@ Ask Appium to perform the actions
|
|
701
863
|
|
702
864
|
--
|
703
865
|
|
704
|
-
##### [actions](https://github.com/appium/ruby_lib/blob/
|
866
|
+
##### [actions](https://github.com/appium/ruby_lib/blob/8cc004ad04ec087a8a11c06ca0749a5e2c6586a7/lib/appium_lib/device/touch_actions.rb#L27)
|
705
867
|
|
706
868
|
> def actions
|
707
869
|
|
@@ -709,7 +871,7 @@ Returns the value of attribute actions
|
|
709
871
|
|
710
872
|
--
|
711
873
|
|
712
|
-
##### [initialize](https://github.com/appium/ruby_lib/blob/
|
874
|
+
##### [initialize](https://github.com/appium/ruby_lib/blob/8cc004ad04ec087a8a11c06ca0749a5e2c6586a7/lib/appium_lib/device/touch_actions.rb#L29)
|
713
875
|
|
714
876
|
> def initialize
|
715
877
|
|
@@ -721,7 +883,7 @@ __Returns:__
|
|
721
883
|
|
722
884
|
--
|
723
885
|
|
724
|
-
##### [move_to](https://github.com/appium/ruby_lib/blob/
|
886
|
+
##### [move_to](https://github.com/appium/ruby_lib/blob/8cc004ad04ec087a8a11c06ca0749a5e2c6586a7/lib/appium_lib/device/touch_actions.rb#L37)
|
725
887
|
|
726
888
|
> def move_to(opts)
|
727
889
|
|
@@ -733,7 +895,7 @@ __Parameters:__
|
|
733
895
|
|
734
896
|
--
|
735
897
|
|
736
|
-
##### [long_press](https://github.com/appium/ruby_lib/blob/
|
898
|
+
##### [long_press](https://github.com/appium/ruby_lib/blob/8cc004ad04ec087a8a11c06ca0749a5e2c6586a7/lib/appium_lib/device/touch_actions.rb#L47)
|
737
899
|
|
738
900
|
> def long_press(opts)
|
739
901
|
|
@@ -751,7 +913,7 @@ __Parameters:__
|
|
751
913
|
|
752
914
|
--
|
753
915
|
|
754
|
-
##### [press](https://github.com/appium/ruby_lib/blob/
|
916
|
+
##### [press](https://github.com/appium/ruby_lib/blob/8cc004ad04ec087a8a11c06ca0749a5e2c6586a7/lib/appium_lib/device/touch_actions.rb#L59)
|
755
917
|
|
756
918
|
> def press(opts)
|
757
919
|
|
@@ -764,7 +926,7 @@ __Parameters:__
|
|
764
926
|
|
765
927
|
--
|
766
928
|
|
767
|
-
##### [release](https://github.com/appium/ruby_lib/blob/
|
929
|
+
##### [release](https://github.com/appium/ruby_lib/blob/8cc004ad04ec087a8a11c06ca0749a5e2c6586a7/lib/appium_lib/device/touch_actions.rb#L70)
|
768
930
|
|
769
931
|
> def release(opts=nil)
|
770
932
|
|
@@ -776,7 +938,7 @@ __Parameters:__
|
|
776
938
|
|
777
939
|
--
|
778
940
|
|
779
|
-
##### [tap](https://github.com/appium/ruby_lib/blob/
|
941
|
+
##### [tap](https://github.com/appium/ruby_lib/blob/8cc004ad04ec087a8a11c06ca0749a5e2c6586a7/lib/appium_lib/device/touch_actions.rb#L81)
|
780
942
|
|
781
943
|
> def tap(opts)
|
782
944
|
|
@@ -788,7 +950,7 @@ __Parameters:__
|
|
788
950
|
|
789
951
|
--
|
790
952
|
|
791
|
-
##### [wait](https://github.com/appium/ruby_lib/blob/
|
953
|
+
##### [wait](https://github.com/appium/ruby_lib/blob/8cc004ad04ec087a8a11c06ca0749a5e2c6586a7/lib/appium_lib/device/touch_actions.rb#L90)
|
792
954
|
|
793
955
|
> def wait(milliseconds)
|
794
956
|
|
@@ -800,7 +962,7 @@ __Parameters:__
|
|
800
962
|
|
801
963
|
--
|
802
964
|
|
803
|
-
##### [swipe](https://github.com/appium/ruby_lib/blob/
|
965
|
+
##### [swipe](https://github.com/appium/ruby_lib/blob/8cc004ad04ec087a8a11c06ca0749a5e2c6586a7/lib/appium_lib/device/touch_actions.rb#L101)
|
804
966
|
|
805
967
|
> def swipe(opts)
|
806
968
|
|
@@ -812,7 +974,7 @@ __Parameters:__
|
|
812
974
|
|
813
975
|
--
|
814
976
|
|
815
|
-
##### [perform](https://github.com/appium/ruby_lib/blob/
|
977
|
+
##### [perform](https://github.com/appium/ruby_lib/blob/8cc004ad04ec087a8a11c06ca0749a5e2c6586a7/lib/appium_lib/device/touch_actions.rb#L116)
|
816
978
|
|
817
979
|
> def perform
|
818
980
|
|
@@ -820,7 +982,7 @@ Ask the driver to perform all actions in this action chain.
|
|
820
982
|
|
821
983
|
--
|
822
984
|
|
823
|
-
##### [cancel](https://github.com/appium/ruby_lib/blob/
|
985
|
+
##### [cancel](https://github.com/appium/ruby_lib/blob/8cc004ad04ec087a8a11c06ca0749a5e2c6586a7/lib/appium_lib/device/touch_actions.rb#L122)
|
824
986
|
|
825
987
|
> def cancel
|
826
988
|
|
@@ -828,7 +990,7 @@ Does nothing, currently.
|
|
828
990
|
|
829
991
|
--
|
830
992
|
|
831
|
-
##### [chain_method](https://github.com/appium/ruby_lib/blob/
|
993
|
+
##### [chain_method](https://github.com/appium/ruby_lib/blob/8cc004ad04ec087a8a11c06ca0749a5e2c6586a7/lib/appium_lib/device/touch_actions.rb#L130)
|
832
994
|
|
833
995
|
> def chain_method(method, args=nil)
|
834
996
|
|
@@ -836,7 +998,7 @@ Does nothing, currently.
|
|
836
998
|
|
837
999
|
--
|
838
1000
|
|
839
|
-
##### [args_with_ele_ref](https://github.com/appium/ruby_lib/blob/
|
1001
|
+
##### [args_with_ele_ref](https://github.com/appium/ruby_lib/blob/8cc004ad04ec087a8a11c06ca0749a5e2c6586a7/lib/appium_lib/device/touch_actions.rb#L139)
|
840
1002
|
|
841
1003
|
> def args_with_ele_ref(args)
|
842
1004
|
|
@@ -844,7 +1006,7 @@ Does nothing, currently.
|
|
844
1006
|
|
845
1007
|
--
|
846
1008
|
|
847
|
-
##### [wait](https://github.com/appium/ruby_lib/blob/
|
1009
|
+
##### [wait](https://github.com/appium/ruby_lib/blob/8cc004ad04ec087a8a11c06ca0749a5e2c6586a7/lib/appium_lib/common/helper.rb#L33)
|
848
1010
|
|
849
1011
|
> def wait max_wait=30, interval=0.5, &block
|
850
1012
|
|
@@ -871,7 +1033,7 @@ __Returns:__
|
|
871
1033
|
|
872
1034
|
--
|
873
1035
|
|
874
|
-
##### [ignore](https://github.com/appium/ruby_lib/blob/
|
1036
|
+
##### [ignore](https://github.com/appium/ruby_lib/blob/8cc004ad04ec087a8a11c06ca0749a5e2c6586a7/lib/appium_lib/common/helper.rb#L54)
|
875
1037
|
|
876
1038
|
> def ignore &block
|
877
1039
|
|
@@ -879,7 +1041,7 @@ Return block.call and ignore any exceptions.
|
|
879
1041
|
|
880
1042
|
--
|
881
1043
|
|
882
|
-
##### [wait_true](https://github.com/appium/ruby_lib/blob/
|
1044
|
+
##### [wait_true](https://github.com/appium/ruby_lib/blob/8cc004ad04ec087a8a11c06ca0749a5e2c6586a7/lib/appium_lib/common/helper.rb#L69)
|
883
1045
|
|
884
1046
|
> def wait_true max_wait=30, interval=0.5, &block
|
885
1047
|
|
@@ -902,7 +1064,7 @@ __Returns:__
|
|
902
1064
|
|
903
1065
|
--
|
904
1066
|
|
905
|
-
##### [back](https://github.com/appium/ruby_lib/blob/
|
1067
|
+
##### [back](https://github.com/appium/ruby_lib/blob/8cc004ad04ec087a8a11c06ca0749a5e2c6586a7/lib/appium_lib/common/helper.rb#L89)
|
906
1068
|
|
907
1069
|
> def back
|
908
1070
|
|
@@ -914,7 +1076,7 @@ __Returns:__
|
|
914
1076
|
|
915
1077
|
--
|
916
1078
|
|
917
|
-
##### [session_id](https://github.com/appium/ruby_lib/blob/
|
1079
|
+
##### [session_id](https://github.com/appium/ruby_lib/blob/8cc004ad04ec087a8a11c06ca0749a5e2c6586a7/lib/appium_lib/common/helper.rb#L94)
|
918
1080
|
|
919
1081
|
> def session_id
|
920
1082
|
|
@@ -922,7 +1084,7 @@ For Sauce Labs reporting. Returns the current session id.
|
|
922
1084
|
|
923
1085
|
--
|
924
1086
|
|
925
|
-
##### [xpath](https://github.com/appium/ruby_lib/blob/
|
1087
|
+
##### [xpath](https://github.com/appium/ruby_lib/blob/8cc004ad04ec087a8a11c06ca0749a5e2c6586a7/lib/appium_lib/common/helper.rb#L102)
|
926
1088
|
|
927
1089
|
> def xpath xpath_str
|
928
1090
|
|
@@ -938,7 +1100,7 @@ __Returns:__
|
|
938
1100
|
|
939
1101
|
--
|
940
1102
|
|
941
|
-
##### [xpaths](https://github.com/appium/ruby_lib/blob/
|
1103
|
+
##### [xpaths](https://github.com/appium/ruby_lib/blob/8cc004ad04ec087a8a11c06ca0749a5e2c6586a7/lib/appium_lib/common/helper.rb#L110)
|
942
1104
|
|
943
1105
|
> def xpaths xpath_str
|
944
1106
|
|
@@ -954,7 +1116,7 @@ __Returns:__
|
|
954
1116
|
|
955
1117
|
--
|
956
1118
|
|
957
|
-
##### [source](https://github.com/appium/ruby_lib/blob/
|
1119
|
+
##### [source](https://github.com/appium/ruby_lib/blob/8cc004ad04ec087a8a11c06ca0749a5e2c6586a7/lib/appium_lib/common/helper.rb#L116)
|
958
1120
|
|
959
1121
|
> def source
|
960
1122
|
|
@@ -966,7 +1128,7 @@ __Returns:__
|
|
966
1128
|
|
967
1129
|
--
|
968
1130
|
|
969
|
-
##### [get_source](https://github.com/appium/ruby_lib/blob/
|
1131
|
+
##### [get_source](https://github.com/appium/ruby_lib/blob/8cc004ad04ec087a8a11c06ca0749a5e2c6586a7/lib/appium_lib/common/helper.rb#L134)
|
970
1132
|
|
971
1133
|
> def get_source
|
972
1134
|
|
@@ -979,7 +1141,7 @@ __Returns:__
|
|
979
1141
|
|
980
1142
|
--
|
981
1143
|
|
982
|
-
##### [result](https://github.com/appium/ruby_lib/blob/
|
1144
|
+
##### [result](https://github.com/appium/ruby_lib/blob/8cc004ad04ec087a8a11c06ca0749a5e2c6586a7/lib/appium_lib/common/helper.rb#L141)
|
983
1145
|
|
984
1146
|
> def result
|
985
1147
|
|
@@ -987,7 +1149,7 @@ Returns the value of attribute result
|
|
987
1149
|
|
988
1150
|
--
|
989
1151
|
|
990
|
-
##### [initialize](https://github.com/appium/ruby_lib/blob/
|
1152
|
+
##### [initialize](https://github.com/appium/ruby_lib/blob/8cc004ad04ec087a8a11c06ca0749a5e2c6586a7/lib/appium_lib/common/helper.rb#L143)
|
991
1153
|
|
992
1154
|
> def initialize
|
993
1155
|
|
@@ -999,7 +1161,7 @@ __Returns:__
|
|
999
1161
|
|
1000
1162
|
--
|
1001
1163
|
|
1002
|
-
##### [reset](https://github.com/appium/ruby_lib/blob/
|
1164
|
+
##### [reset](https://github.com/appium/ruby_lib/blob/8cc004ad04ec087a8a11c06ca0749a5e2c6586a7/lib/appium_lib/common/helper.rb#L147)
|
1003
1165
|
|
1004
1166
|
> def reset
|
1005
1167
|
|
@@ -1007,7 +1169,7 @@ __Returns:__
|
|
1007
1169
|
|
1008
1170
|
--
|
1009
1171
|
|
1010
|
-
##### [start_element](https://github.com/appium/ruby_lib/blob/
|
1172
|
+
##### [start_element](https://github.com/appium/ruby_lib/blob/8cc004ad04ec087a8a11c06ca0749a5e2c6586a7/lib/appium_lib/common/helper.rb#L152)
|
1011
1173
|
|
1012
1174
|
> def start_element name, attrs = []
|
1013
1175
|
|
@@ -1015,7 +1177,7 @@ http://nokogiri.org/Nokogiri/XML/SAX/Document.html
|
|
1015
1177
|
|
1016
1178
|
--
|
1017
1179
|
|
1018
|
-
##### [formatted_result](https://github.com/appium/ruby_lib/blob/
|
1180
|
+
##### [formatted_result](https://github.com/appium/ruby_lib/blob/8cc004ad04ec087a8a11c06ca0749a5e2c6586a7/lib/appium_lib/common/helper.rb#L158)
|
1019
1181
|
|
1020
1182
|
> def formatted_result
|
1021
1183
|
|
@@ -1023,7 +1185,7 @@ http://nokogiri.org/Nokogiri/XML/SAX/Document.html
|
|
1023
1185
|
|
1024
1186
|
--
|
1025
1187
|
|
1026
|
-
##### [get_page_class](https://github.com/appium/ruby_lib/blob/
|
1188
|
+
##### [get_page_class](https://github.com/appium/ruby_lib/blob/8cc004ad04ec087a8a11c06ca0749a5e2c6586a7/lib/appium_lib/common/helper.rb#L169)
|
1027
1189
|
|
1028
1190
|
> def get_page_class
|
1029
1191
|
|
@@ -1031,7 +1193,7 @@ Returns a string of class counts of visible elements.
|
|
1031
1193
|
|
1032
1194
|
--
|
1033
1195
|
|
1034
|
-
##### [page_class](https://github.com/appium/ruby_lib/blob/
|
1196
|
+
##### [page_class](https://github.com/appium/ruby_lib/blob/8cc004ad04ec087a8a11c06ca0749a5e2c6586a7/lib/appium_lib/common/helper.rb#L180)
|
1035
1197
|
|
1036
1198
|
> def page_class
|
1037
1199
|
|
@@ -1040,7 +1202,7 @@ Useful for appium_console.
|
|
1040
1202
|
|
1041
1203
|
--
|
1042
1204
|
|
1043
|
-
##### [px_to_window_rel](https://github.com/appium/ruby_lib/blob/
|
1205
|
+
##### [px_to_window_rel](https://github.com/appium/ruby_lib/blob/8cc004ad04ec087a8a11c06ca0749a5e2c6586a7/lib/appium_lib/common/helper.rb#L190)
|
1044
1206
|
|
1045
1207
|
> def px_to_window_rel opts={}
|
1046
1208
|
|
@@ -1052,7 +1214,7 @@ px_to_window_rel x: 50, y: 150
|
|
1052
1214
|
|
1053
1215
|
--
|
1054
1216
|
|
1055
|
-
##### [xml_keys](https://github.com/appium/ruby_lib/blob/
|
1217
|
+
##### [xml_keys](https://github.com/appium/ruby_lib/blob/8cc004ad04ec087a8a11c06ca0749a5e2c6586a7/lib/appium_lib/common/helper.rb#L207)
|
1056
1218
|
|
1057
1219
|
> def xml_keys target
|
1058
1220
|
|
@@ -1068,7 +1230,7 @@ __Returns:__
|
|
1068
1230
|
|
1069
1231
|
--
|
1070
1232
|
|
1071
|
-
##### [xml_values](https://github.com/appium/ruby_lib/blob/
|
1233
|
+
##### [xml_values](https://github.com/appium/ruby_lib/blob/8cc004ad04ec087a8a11c06ca0749a5e2c6586a7/lib/appium_lib/common/helper.rb#L215)
|
1072
1234
|
|
1073
1235
|
> def xml_values target
|
1074
1236
|
|
@@ -1084,7 +1246,7 @@ __Returns:__
|
|
1084
1246
|
|
1085
1247
|
--
|
1086
1248
|
|
1087
|
-
##### [resolve_id](https://github.com/appium/ruby_lib/blob/
|
1249
|
+
##### [resolve_id](https://github.com/appium/ruby_lib/blob/8cc004ad04ec087a8a11c06ca0749a5e2c6586a7/lib/appium_lib/common/helper.rb#L223)
|
1088
1250
|
|
1089
1251
|
> def resolve_id id
|
1090
1252
|
|
@@ -1100,7 +1262,7 @@ __Returns:__
|
|
1100
1262
|
|
1101
1263
|
--
|
1102
1264
|
|
1103
|
-
##### [filter](https://github.com/appium/ruby_lib/blob/
|
1265
|
+
##### [filter](https://github.com/appium/ruby_lib/blob/8cc004ad04ec087a8a11c06ca0749a5e2c6586a7/lib/appium_lib/common/helper.rb#L229)
|
1104
1266
|
|
1105
1267
|
> def filter
|
1106
1268
|
|
@@ -1108,7 +1270,7 @@ __Returns:__
|
|
1108
1270
|
|
1109
1271
|
--
|
1110
1272
|
|
1111
|
-
##### [filter=](https://github.com/appium/ruby_lib/blob/
|
1273
|
+
##### [filter=](https://github.com/appium/ruby_lib/blob/8cc004ad04ec087a8a11c06ca0749a5e2c6586a7/lib/appium_lib/common/helper.rb#L234)
|
1112
1274
|
|
1113
1275
|
> def filter= value
|
1114
1276
|
|
@@ -1116,7 +1278,7 @@ convert to string to support symbols
|
|
1116
1278
|
|
1117
1279
|
--
|
1118
1280
|
|
1119
|
-
##### [initialize](https://github.com/appium/ruby_lib/blob/
|
1281
|
+
##### [initialize](https://github.com/appium/ruby_lib/blob/8cc004ad04ec087a8a11c06ca0749a5e2c6586a7/lib/appium_lib/common/helper.rb#L240)
|
1120
1282
|
|
1121
1283
|
> def initialize
|
1122
1284
|
|
@@ -1128,7 +1290,7 @@ __Returns:__
|
|
1128
1290
|
|
1129
1291
|
--
|
1130
1292
|
|
1131
|
-
##### [reset](https://github.com/appium/ruby_lib/blob/
|
1293
|
+
##### [reset](https://github.com/appium/ruby_lib/blob/8cc004ad04ec087a8a11c06ca0749a5e2c6586a7/lib/appium_lib/common/helper.rb#L245)
|
1132
1294
|
|
1133
1295
|
> def reset
|
1134
1296
|
|
@@ -1136,7 +1298,7 @@ __Returns:__
|
|
1136
1298
|
|
1137
1299
|
--
|
1138
1300
|
|
1139
|
-
##### [result](https://github.com/appium/ruby_lib/blob/
|
1301
|
+
##### [result](https://github.com/appium/ruby_lib/blob/8cc004ad04ec087a8a11c06ca0749a5e2c6586a7/lib/appium_lib/common/helper.rb#L251)
|
1140
1302
|
|
1141
1303
|
> def result
|
1142
1304
|
|
@@ -1144,7 +1306,7 @@ __Returns:__
|
|
1144
1306
|
|
1145
1307
|
--
|
1146
1308
|
|
1147
|
-
##### [start_element](https://github.com/appium/ruby_lib/blob/
|
1309
|
+
##### [start_element](https://github.com/appium/ruby_lib/blob/8cc004ad04ec087a8a11c06ca0749a5e2c6586a7/lib/appium_lib/common/helper.rb#L265)
|
1148
1310
|
|
1149
1311
|
> def start_element name, attrs = []
|
1150
1312
|
|
@@ -1152,7 +1314,7 @@ __Returns:__
|
|
1152
1314
|
|
1153
1315
|
--
|
1154
1316
|
|
1155
|
-
##### [end_element](https://github.com/appium/ruby_lib/blob/
|
1317
|
+
##### [end_element](https://github.com/appium/ruby_lib/blob/8cc004ad04ec087a8a11c06ca0749a5e2c6586a7/lib/appium_lib/common/helper.rb#L275)
|
1156
1318
|
|
1157
1319
|
> def end_element name
|
1158
1320
|
|
@@ -1160,7 +1322,7 @@ __Returns:__
|
|
1160
1322
|
|
1161
1323
|
--
|
1162
1324
|
|
1163
|
-
##### [characters](https://github.com/appium/ruby_lib/blob/
|
1325
|
+
##### [characters](https://github.com/appium/ruby_lib/blob/8cc004ad04ec087a8a11c06ca0749a5e2c6586a7/lib/appium_lib/common/helper.rb#L281)
|
1164
1326
|
|
1165
1327
|
> def characters(chars)
|
1166
1328
|
|
@@ -1168,7 +1330,7 @@ __Returns:__
|
|
1168
1330
|
|
1169
1331
|
--
|
1170
1332
|
|
1171
|
-
##### [window_size](https://github.com/appium/ruby_lib/blob/
|
1333
|
+
##### [window_size](https://github.com/appium/ruby_lib/blob/8cc004ad04ec087a8a11c06ca0749a5e2c6586a7/lib/appium_lib/common/element/window.rb#L5)
|
1172
1334
|
|
1173
1335
|
> def window_size
|
1174
1336
|
|
@@ -1176,7 +1338,7 @@ Get the window's size
|
|
1176
1338
|
|
1177
1339
|
--
|
1178
1340
|
|
1179
|
-
##### [ios_password](https://github.com/appium/ruby_lib/blob/
|
1341
|
+
##### [ios_password](https://github.com/appium/ruby_lib/blob/8cc004ad04ec087a8a11c06ca0749a5e2c6586a7/lib/appium_lib/ios/helper.rb#L8) ios
|
1180
1342
|
|
1181
1343
|
> def ios_password length=1
|
1182
1344
|
|
@@ -1194,7 +1356,7 @@ __Returns:__
|
|
1194
1356
|
|
1195
1357
|
--
|
1196
1358
|
|
1197
|
-
##### [get_page](https://github.com/appium/ruby_lib/blob/
|
1359
|
+
##### [get_page](https://github.com/appium/ruby_lib/blob/8cc004ad04ec087a8a11c06ca0749a5e2c6586a7/lib/appium_lib/ios/helper.rb#L20) ios
|
1198
1360
|
|
1199
1361
|
> def get_page element=source_window(0), class_name=nil
|
1200
1362
|
|
@@ -1215,7 +1377,7 @@ __Returns:__
|
|
1215
1377
|
|
1216
1378
|
--
|
1217
1379
|
|
1218
|
-
##### [page](https://github.com/appium/ruby_lib/blob/
|
1380
|
+
##### [page](https://github.com/appium/ruby_lib/blob/8cc004ad04ec087a8a11c06ca0749a5e2c6586a7/lib/appium_lib/ios/helper.rb#L125) ios
|
1219
1381
|
|
1220
1382
|
> def page opts={}
|
1221
1383
|
|
@@ -1241,7 +1403,7 @@ __Returns:__
|
|
1241
1403
|
|
1242
1404
|
--
|
1243
1405
|
|
1244
|
-
##### [source_window](https://github.com/appium/ruby_lib/blob/
|
1406
|
+
##### [source_window](https://github.com/appium/ruby_lib/blob/8cc004ad04ec087a8a11c06ca0749a5e2c6586a7/lib/appium_lib/ios/helper.rb#L157) ios
|
1245
1407
|
|
1246
1408
|
> def source_window window_number=0
|
1247
1409
|
|
@@ -1257,7 +1419,7 @@ __Returns:__
|
|
1257
1419
|
|
1258
1420
|
--
|
1259
1421
|
|
1260
|
-
##### [page_window](https://github.com/appium/ruby_lib/blob/
|
1422
|
+
##### [page_window](https://github.com/appium/ruby_lib/blob/8cc004ad04ec087a8a11c06ca0749a5e2c6586a7/lib/appium_lib/ios/helper.rb#L171) ios
|
1261
1423
|
|
1262
1424
|
> def page_window window_number=0
|
1263
1425
|
|
@@ -1275,7 +1437,7 @@ __Returns:__
|
|
1275
1437
|
|
1276
1438
|
--
|
1277
1439
|
|
1278
|
-
##### [id](https://github.com/appium/ruby_lib/blob/
|
1440
|
+
##### [id](https://github.com/appium/ruby_lib/blob/8cc004ad04ec087a8a11c06ca0749a5e2c6586a7/lib/appium_lib/ios/helper.rb#L179) ios
|
1279
1441
|
|
1280
1442
|
> def id id
|
1281
1443
|
|
@@ -1291,7 +1453,7 @@ __Returns:__
|
|
1291
1453
|
|
1292
1454
|
--
|
1293
1455
|
|
1294
|
-
##### [ios_version](https://github.com/appium/ruby_lib/blob/
|
1456
|
+
##### [ios_version](https://github.com/appium/ruby_lib/blob/8cc004ad04ec087a8a11c06ca0749a5e2c6586a7/lib/appium_lib/ios/helper.rb#L189) ios
|
1295
1457
|
|
1296
1458
|
> def ios_version
|
1297
1459
|
|
@@ -1303,7 +1465,7 @@ __Returns:__
|
|
1303
1465
|
|
1304
1466
|
--
|
1305
1467
|
|
1306
|
-
##### [ele_index](https://github.com/appium/ruby_lib/blob/
|
1468
|
+
##### [ele_index](https://github.com/appium/ruby_lib/blob/8cc004ad04ec087a8a11c06ca0749a5e2c6586a7/lib/appium_lib/ios/helper.rb#L198) ios
|
1307
1469
|
|
1308
1470
|
> def ele_index class_name, index
|
1309
1471
|
|
@@ -1321,7 +1483,7 @@ __Returns:__
|
|
1321
1483
|
|
1322
1484
|
--
|
1323
1485
|
|
1324
|
-
##### [find_ele_by_attr](https://github.com/appium/ruby_lib/blob/
|
1486
|
+
##### [find_ele_by_attr](https://github.com/appium/ruby_lib/blob/8cc004ad04ec087a8a11c06ca0749a5e2c6586a7/lib/appium_lib/ios/helper.rb#L216) ios
|
1325
1487
|
|
1326
1488
|
> def find_ele_by_attr class_name, attr, value
|
1327
1489
|
|
@@ -1341,7 +1503,7 @@ __Returns:__
|
|
1341
1503
|
|
1342
1504
|
--
|
1343
1505
|
|
1344
|
-
##### [find_eles_by_attr](https://github.com/appium/ruby_lib/blob/
|
1506
|
+
##### [find_eles_by_attr](https://github.com/appium/ruby_lib/blob/8cc004ad04ec087a8a11c06ca0749a5e2c6586a7/lib/appium_lib/ios/helper.rb#L225) ios
|
1345
1507
|
|
1346
1508
|
> def find_eles_by_attr class_name, attr, value
|
1347
1509
|
|
@@ -1361,7 +1523,7 @@ __Returns:__
|
|
1361
1523
|
|
1362
1524
|
--
|
1363
1525
|
|
1364
|
-
##### [find_ele_by_attr_include](https://github.com/appium/ruby_lib/blob/
|
1526
|
+
##### [find_ele_by_attr_include](https://github.com/appium/ruby_lib/blob/8cc004ad04ec087a8a11c06ca0749a5e2c6586a7/lib/appium_lib/ios/helper.rb#L239) ios
|
1365
1527
|
|
1366
1528
|
> def find_ele_by_attr_include class_name, attr, value
|
1367
1529
|
|
@@ -1381,7 +1543,7 @@ __Returns:__
|
|
1381
1543
|
|
1382
1544
|
--
|
1383
1545
|
|
1384
|
-
##### [find_eles_by_attr_include](https://github.com/appium/ruby_lib/blob/
|
1546
|
+
##### [find_eles_by_attr_include](https://github.com/appium/ruby_lib/blob/8cc004ad04ec087a8a11c06ca0749a5e2c6586a7/lib/appium_lib/ios/helper.rb#L248) ios
|
1385
1547
|
|
1386
1548
|
> def find_eles_by_attr_include class_name, attr, value
|
1387
1549
|
|
@@ -1401,7 +1563,7 @@ __Returns:__
|
|
1401
1563
|
|
1402
1564
|
--
|
1403
1565
|
|
1404
|
-
##### [first_ele](https://github.com/appium/ruby_lib/blob/
|
1566
|
+
##### [first_ele](https://github.com/appium/ruby_lib/blob/8cc004ad04ec087a8a11c06ca0749a5e2c6586a7/lib/appium_lib/ios/helper.rb#L255) ios
|
1405
1567
|
|
1406
1568
|
> def first_ele class_name
|
1407
1569
|
|
@@ -1417,7 +1579,7 @@ __Returns:__
|
|
1417
1579
|
|
1418
1580
|
--
|
1419
1581
|
|
1420
|
-
##### [last_ele](https://github.com/appium/ruby_lib/blob/
|
1582
|
+
##### [last_ele](https://github.com/appium/ruby_lib/blob/8cc004ad04ec087a8a11c06ca0749a5e2c6586a7/lib/appium_lib/ios/helper.rb#L263) ios
|
1421
1583
|
|
1422
1584
|
> def last_ele class_name
|
1423
1585
|
|
@@ -1433,7 +1595,7 @@ __Returns:__
|
|
1433
1595
|
|
1434
1596
|
--
|
1435
1597
|
|
1436
|
-
##### [tag](https://github.com/appium/ruby_lib/blob/
|
1598
|
+
##### [tag](https://github.com/appium/ruby_lib/blob/8cc004ad04ec087a8a11c06ca0749a5e2c6586a7/lib/appium_lib/ios/helper.rb#L271) ios
|
1437
1599
|
|
1438
1600
|
> def tag class_name
|
1439
1601
|
|
@@ -1449,7 +1611,7 @@ __Returns:__
|
|
1449
1611
|
|
1450
1612
|
--
|
1451
1613
|
|
1452
|
-
##### [tags](https://github.com/appium/ruby_lib/blob/
|
1614
|
+
##### [tags](https://github.com/appium/ruby_lib/blob/8cc004ad04ec087a8a11c06ca0749a5e2c6586a7/lib/appium_lib/ios/helper.rb#L279) ios
|
1453
1615
|
|
1454
1616
|
> def tags class_name
|
1455
1617
|
|
@@ -1465,7 +1627,7 @@ __Returns:__
|
|
1465
1627
|
|
1466
1628
|
--
|
1467
1629
|
|
1468
|
-
##### [xpath_visible_contains](https://github.com/appium/ruby_lib/blob/
|
1630
|
+
##### [xpath_visible_contains](https://github.com/appium/ruby_lib/blob/8cc004ad04ec087a8a11c06ca0749a5e2c6586a7/lib/appium_lib/ios/helper.rb#L311) ios
|
1469
1631
|
|
1470
1632
|
> def xpath_visible_contains element, value
|
1471
1633
|
|
@@ -1483,7 +1645,7 @@ __Returns:__
|
|
1483
1645
|
|
1484
1646
|
--
|
1485
1647
|
|
1486
|
-
##### [xpaths_visible_contains](https://github.com/appium/ruby_lib/blob/
|
1648
|
+
##### [xpaths_visible_contains](https://github.com/appium/ruby_lib/blob/8cc004ad04ec087a8a11c06ca0749a5e2c6586a7/lib/appium_lib/ios/helper.rb#L319) ios
|
1487
1649
|
|
1488
1650
|
> def xpaths_visible_contains element, value
|
1489
1651
|
|
@@ -1501,7 +1663,7 @@ __Returns:__
|
|
1501
1663
|
|
1502
1664
|
--
|
1503
1665
|
|
1504
|
-
##### [xpath_visible_exact](https://github.com/appium/ruby_lib/blob/
|
1666
|
+
##### [xpath_visible_exact](https://github.com/appium/ruby_lib/blob/8cc004ad04ec087a8a11c06ca0749a5e2c6586a7/lib/appium_lib/ios/helper.rb#L346) ios
|
1505
1667
|
|
1506
1668
|
> def xpath_visible_exact element, value
|
1507
1669
|
|
@@ -1519,7 +1681,7 @@ __Returns:__
|
|
1519
1681
|
|
1520
1682
|
--
|
1521
1683
|
|
1522
|
-
##### [xpaths_visible_exact](https://github.com/appium/ruby_lib/blob/
|
1684
|
+
##### [xpaths_visible_exact](https://github.com/appium/ruby_lib/blob/8cc004ad04ec087a8a11c06ca0749a5e2c6586a7/lib/appium_lib/ios/helper.rb#L354) ios
|
1523
1685
|
|
1524
1686
|
> def xpaths_visible_exact element, value
|
1525
1687
|
|
@@ -1537,7 +1699,7 @@ __Returns:__
|
|
1537
1699
|
|
1538
1700
|
--
|
1539
1701
|
|
1540
|
-
##### [UIAStaticText](https://github.com/appium/ruby_lib/blob/
|
1702
|
+
##### [UIAStaticText](https://github.com/appium/ruby_lib/blob/8cc004ad04ec087a8a11c06ca0749a5e2c6586a7/lib/appium_lib/ios/element/text.rb#L4) ios
|
1541
1703
|
|
1542
1704
|
> UIAStaticText = 'UIAStaticText'
|
1543
1705
|
|
@@ -1545,7 +1707,7 @@ __Returns:__
|
|
1545
1707
|
|
1546
1708
|
--
|
1547
1709
|
|
1548
|
-
##### [text](https://github.com/appium/ruby_lib/blob/
|
1710
|
+
##### [text](https://github.com/appium/ruby_lib/blob/8cc004ad04ec087a8a11c06ca0749a5e2c6586a7/lib/appium_lib/ios/element/text.rb#L10) ios
|
1549
1711
|
|
1550
1712
|
> def text value
|
1551
1713
|
|
@@ -1562,7 +1724,7 @@ __Returns:__
|
|
1562
1724
|
|
1563
1725
|
--
|
1564
1726
|
|
1565
|
-
##### [texts](https://github.com/appium/ruby_lib/blob/
|
1727
|
+
##### [texts](https://github.com/appium/ruby_lib/blob/8cc004ad04ec087a8a11c06ca0749a5e2c6586a7/lib/appium_lib/ios/element/text.rb#L19) ios
|
1566
1728
|
|
1567
1729
|
> def texts value=false
|
1568
1730
|
|
@@ -1579,7 +1741,7 @@ __Returns:__
|
|
1579
1741
|
|
1580
1742
|
--
|
1581
1743
|
|
1582
|
-
##### [first_text](https://github.com/appium/ruby_lib/blob/
|
1744
|
+
##### [first_text](https://github.com/appium/ruby_lib/blob/8cc004ad04ec087a8a11c06ca0749a5e2c6586a7/lib/appium_lib/ios/element/text.rb#L26) ios
|
1583
1745
|
|
1584
1746
|
> def first_text
|
1585
1747
|
|
@@ -1591,7 +1753,7 @@ __Returns:__
|
|
1591
1753
|
|
1592
1754
|
--
|
1593
1755
|
|
1594
|
-
##### [last_text](https://github.com/appium/ruby_lib/blob/
|
1756
|
+
##### [last_text](https://github.com/appium/ruby_lib/blob/8cc004ad04ec087a8a11c06ca0749a5e2c6586a7/lib/appium_lib/ios/element/text.rb#L32) ios
|
1595
1757
|
|
1596
1758
|
> def last_text
|
1597
1759
|
|
@@ -1603,7 +1765,7 @@ __Returns:__
|
|
1603
1765
|
|
1604
1766
|
--
|
1605
1767
|
|
1606
|
-
##### [text_exact](https://github.com/appium/ruby_lib/blob/
|
1768
|
+
##### [text_exact](https://github.com/appium/ruby_lib/blob/8cc004ad04ec087a8a11c06ca0749a5e2c6586a7/lib/appium_lib/ios/element/text.rb#L39) ios
|
1607
1769
|
|
1608
1770
|
> def text_exact value
|
1609
1771
|
|
@@ -1619,7 +1781,7 @@ __Returns:__
|
|
1619
1781
|
|
1620
1782
|
--
|
1621
1783
|
|
1622
|
-
##### [texts_exact](https://github.com/appium/ruby_lib/blob/
|
1784
|
+
##### [texts_exact](https://github.com/appium/ruby_lib/blob/8cc004ad04ec087a8a11c06ca0749a5e2c6586a7/lib/appium_lib/ios/element/text.rb#L46) ios
|
1623
1785
|
|
1624
1786
|
> def texts_exact value
|
1625
1787
|
|
@@ -1635,7 +1797,7 @@ __Returns:__
|
|
1635
1797
|
|
1636
1798
|
--
|
1637
1799
|
|
1638
|
-
##### [alert_accept](https://github.com/appium/ruby_lib/blob/
|
1800
|
+
##### [alert_accept](https://github.com/appium/ruby_lib/blob/8cc004ad04ec087a8a11c06ca0749a5e2c6586a7/lib/appium_lib/ios/element/alert.rb#L5) ios
|
1639
1801
|
|
1640
1802
|
> def alert_accept
|
1641
1803
|
|
@@ -1647,7 +1809,7 @@ __Returns:__
|
|
1647
1809
|
|
1648
1810
|
--
|
1649
1811
|
|
1650
|
-
##### [alert_dismiss](https://github.com/appium/ruby_lib/blob/
|
1812
|
+
##### [alert_dismiss](https://github.com/appium/ruby_lib/blob/8cc004ad04ec087a8a11c06ca0749a5e2c6586a7/lib/appium_lib/ios/element/alert.rb#L13) ios
|
1651
1813
|
|
1652
1814
|
> def alert_dismiss
|
1653
1815
|
|
@@ -1659,7 +1821,7 @@ __Returns:__
|
|
1659
1821
|
|
1660
1822
|
--
|
1661
1823
|
|
1662
|
-
##### [uiautomation_find](https://github.com/appium/ruby_lib/blob/
|
1824
|
+
##### [uiautomation_find](https://github.com/appium/ruby_lib/blob/8cc004ad04ec087a8a11c06ca0749a5e2c6586a7/lib/appium_lib/ios/mobile_methods.rb#L10) ios
|
1663
1825
|
|
1664
1826
|
> def uiautomation_find
|
1665
1827
|
|
@@ -1671,7 +1833,7 @@ find_element/s can be used with a [UIAutomation command](https://developer.apple
|
|
1671
1833
|
|
1672
1834
|
--
|
1673
1835
|
|
1674
|
-
##### [UIAButton](https://github.com/appium/ruby_lib/blob/
|
1836
|
+
##### [UIAButton](https://github.com/appium/ruby_lib/blob/8cc004ad04ec087a8a11c06ca0749a5e2c6586a7/lib/appium_lib/ios/element/button.rb#L4) ios
|
1675
1837
|
|
1676
1838
|
> UIAButton = 'UIAButton'
|
1677
1839
|
|
@@ -1679,7 +1841,7 @@ find_element/s can be used with a [UIAutomation command](https://developer.apple
|
|
1679
1841
|
|
1680
1842
|
--
|
1681
1843
|
|
1682
|
-
##### [button](https://github.com/appium/ruby_lib/blob/
|
1844
|
+
##### [button](https://github.com/appium/ruby_lib/blob/8cc004ad04ec087a8a11c06ca0749a5e2c6586a7/lib/appium_lib/ios/element/button.rb#L10) ios
|
1683
1845
|
|
1684
1846
|
> def button value
|
1685
1847
|
|
@@ -1696,7 +1858,7 @@ __Returns:__
|
|
1696
1858
|
|
1697
1859
|
--
|
1698
1860
|
|
1699
|
-
##### [buttons](https://github.com/appium/ruby_lib/blob/
|
1861
|
+
##### [buttons](https://github.com/appium/ruby_lib/blob/8cc004ad04ec087a8a11c06ca0749a5e2c6586a7/lib/appium_lib/ios/element/button.rb#L20) ios
|
1700
1862
|
|
1701
1863
|
> def buttons value=false
|
1702
1864
|
|
@@ -1713,7 +1875,7 @@ __Returns:__
|
|
1713
1875
|
|
1714
1876
|
--
|
1715
1877
|
|
1716
|
-
##### [first_button](https://github.com/appium/ruby_lib/blob/
|
1878
|
+
##### [first_button](https://github.com/appium/ruby_lib/blob/8cc004ad04ec087a8a11c06ca0749a5e2c6586a7/lib/appium_lib/ios/element/button.rb#L27) ios
|
1717
1879
|
|
1718
1880
|
> def first_button
|
1719
1881
|
|
@@ -1725,7 +1887,7 @@ __Returns:__
|
|
1725
1887
|
|
1726
1888
|
--
|
1727
1889
|
|
1728
|
-
##### [last_button](https://github.com/appium/ruby_lib/blob/
|
1890
|
+
##### [last_button](https://github.com/appium/ruby_lib/blob/8cc004ad04ec087a8a11c06ca0749a5e2c6586a7/lib/appium_lib/ios/element/button.rb#L33) ios
|
1729
1891
|
|
1730
1892
|
> def last_button
|
1731
1893
|
|
@@ -1737,7 +1899,7 @@ __Returns:__
|
|
1737
1899
|
|
1738
1900
|
--
|
1739
1901
|
|
1740
|
-
##### [button_exact](https://github.com/appium/ruby_lib/blob/
|
1902
|
+
##### [button_exact](https://github.com/appium/ruby_lib/blob/8cc004ad04ec087a8a11c06ca0749a5e2c6586a7/lib/appium_lib/ios/element/button.rb#L40) ios
|
1741
1903
|
|
1742
1904
|
> def button_exact value
|
1743
1905
|
|
@@ -1753,7 +1915,7 @@ __Returns:__
|
|
1753
1915
|
|
1754
1916
|
--
|
1755
1917
|
|
1756
|
-
##### [buttons_exact](https://github.com/appium/ruby_lib/blob/
|
1918
|
+
##### [buttons_exact](https://github.com/appium/ruby_lib/blob/8cc004ad04ec087a8a11c06ca0749a5e2c6586a7/lib/appium_lib/ios/element/button.rb#L47) ios
|
1757
1919
|
|
1758
1920
|
> def buttons_exact value
|
1759
1921
|
|
@@ -1769,7 +1931,7 @@ __Returns:__
|
|
1769
1931
|
|
1770
1932
|
--
|
1771
1933
|
|
1772
|
-
##### [find](https://github.com/appium/ruby_lib/blob/
|
1934
|
+
##### [find](https://github.com/appium/ruby_lib/blob/8cc004ad04ec087a8a11c06ca0749a5e2c6586a7/lib/appium_lib/ios/element/generic.rb#L7) ios
|
1773
1935
|
|
1774
1936
|
> def find value
|
1775
1937
|
|
@@ -1785,7 +1947,7 @@ __Returns:__
|
|
1785
1947
|
|
1786
1948
|
--
|
1787
1949
|
|
1788
|
-
##### [finds](https://github.com/appium/ruby_lib/blob/
|
1950
|
+
##### [finds](https://github.com/appium/ruby_lib/blob/8cc004ad04ec087a8a11c06ca0749a5e2c6586a7/lib/appium_lib/ios/element/generic.rb#L14) ios
|
1789
1951
|
|
1790
1952
|
> def finds value
|
1791
1953
|
|
@@ -1801,7 +1963,7 @@ __Returns:__
|
|
1801
1963
|
|
1802
1964
|
--
|
1803
1965
|
|
1804
|
-
##### [find_exact](https://github.com/appium/ruby_lib/blob/
|
1966
|
+
##### [find_exact](https://github.com/appium/ruby_lib/blob/8cc004ad04ec087a8a11c06ca0749a5e2c6586a7/lib/appium_lib/ios/element/generic.rb#L21) ios
|
1805
1967
|
|
1806
1968
|
> def find_exact value
|
1807
1969
|
|
@@ -1817,7 +1979,7 @@ __Returns:__
|
|
1817
1979
|
|
1818
1980
|
--
|
1819
1981
|
|
1820
|
-
##### [finds_exact](https://github.com/appium/ruby_lib/blob/
|
1982
|
+
##### [finds_exact](https://github.com/appium/ruby_lib/blob/8cc004ad04ec087a8a11c06ca0749a5e2c6586a7/lib/appium_lib/ios/element/generic.rb#L28) ios
|
1821
1983
|
|
1822
1984
|
> def finds_exact value
|
1823
1985
|
|
@@ -1833,7 +1995,7 @@ __Returns:__
|
|
1833
1995
|
|
1834
1996
|
--
|
1835
1997
|
|
1836
|
-
##### [UIATextField](https://github.com/appium/ruby_lib/blob/
|
1998
|
+
##### [UIATextField](https://github.com/appium/ruby_lib/blob/8cc004ad04ec087a8a11c06ca0749a5e2c6586a7/lib/appium_lib/ios/element/textfield.rb#L3) ios
|
1837
1999
|
|
1838
2000
|
> UIATextField = 'UIATextField'
|
1839
2001
|
|
@@ -1841,7 +2003,7 @@ __Returns:__
|
|
1841
2003
|
|
1842
2004
|
--
|
1843
2005
|
|
1844
|
-
##### [UIASecureTextField](https://github.com/appium/ruby_lib/blob/
|
2006
|
+
##### [UIASecureTextField](https://github.com/appium/ruby_lib/blob/8cc004ad04ec087a8a11c06ca0749a5e2c6586a7/lib/appium_lib/ios/element/textfield.rb#L4) ios
|
1845
2007
|
|
1846
2008
|
> UIASecureTextField = 'UIASecureTextField'
|
1847
2009
|
|
@@ -1849,7 +2011,7 @@ __Returns:__
|
|
1849
2011
|
|
1850
2012
|
--
|
1851
2013
|
|
1852
|
-
##### [textfield](https://github.com/appium/ruby_lib/blob/
|
2014
|
+
##### [textfield](https://github.com/appium/ruby_lib/blob/8cc004ad04ec087a8a11c06ca0749a5e2c6586a7/lib/appium_lib/ios/element/textfield.rb#L38) ios
|
1853
2015
|
|
1854
2016
|
> def textfield value
|
1855
2017
|
|
@@ -1866,7 +2028,7 @@ __Returns:__
|
|
1866
2028
|
|
1867
2029
|
--
|
1868
2030
|
|
1869
|
-
##### [textfields](https://github.com/appium/ruby_lib/blob/
|
2031
|
+
##### [textfields](https://github.com/appium/ruby_lib/blob/8cc004ad04ec087a8a11c06ca0749a5e2c6586a7/lib/appium_lib/ios/element/textfield.rb#L55) ios
|
1870
2032
|
|
1871
2033
|
> def textfields value=false
|
1872
2034
|
|
@@ -1883,7 +2045,7 @@ __Returns:__
|
|
1883
2045
|
|
1884
2046
|
--
|
1885
2047
|
|
1886
|
-
##### [first_textfield](https://github.com/appium/ruby_lib/blob/
|
2048
|
+
##### [first_textfield](https://github.com/appium/ruby_lib/blob/8cc004ad04ec087a8a11c06ca0749a5e2c6586a7/lib/appium_lib/ios/element/textfield.rb#L62) ios
|
1887
2049
|
|
1888
2050
|
> def first_textfield
|
1889
2051
|
|
@@ -1895,7 +2057,7 @@ __Returns:__
|
|
1895
2057
|
|
1896
2058
|
--
|
1897
2059
|
|
1898
|
-
##### [last_textfield](https://github.com/appium/ruby_lib/blob/
|
2060
|
+
##### [last_textfield](https://github.com/appium/ruby_lib/blob/8cc004ad04ec087a8a11c06ca0749a5e2c6586a7/lib/appium_lib/ios/element/textfield.rb#L68) ios
|
1899
2061
|
|
1900
2062
|
> def last_textfield
|
1901
2063
|
|
@@ -1907,7 +2069,7 @@ __Returns:__
|
|
1907
2069
|
|
1908
2070
|
--
|
1909
2071
|
|
1910
|
-
##### [textfield_exact](https://github.com/appium/ruby_lib/blob/
|
2072
|
+
##### [textfield_exact](https://github.com/appium/ruby_lib/blob/8cc004ad04ec087a8a11c06ca0749a5e2c6586a7/lib/appium_lib/ios/element/textfield.rb#L75) ios
|
1911
2073
|
|
1912
2074
|
> def textfield_exact value
|
1913
2075
|
|
@@ -1923,7 +2085,7 @@ __Returns:__
|
|
1923
2085
|
|
1924
2086
|
--
|
1925
2087
|
|
1926
|
-
##### [textfields_exact](https://github.com/appium/ruby_lib/blob/
|
2088
|
+
##### [textfields_exact](https://github.com/appium/ruby_lib/blob/8cc004ad04ec087a8a11c06ca0749a5e2c6586a7/lib/appium_lib/ios/element/textfield.rb#L82) ios
|
1927
2089
|
|
1928
2090
|
> def textfields_exact value
|
1929
2091
|
|
@@ -1939,7 +2101,7 @@ __Returns:__
|
|
1939
2101
|
|
1940
2102
|
--
|
1941
2103
|
|
1942
|
-
##### [value](https://github.com/appium/ruby_lib/blob/
|
2104
|
+
##### [value](https://github.com/appium/ruby_lib/blob/8cc004ad04ec087a8a11c06ca0749a5e2c6586a7/lib/appium_lib/common/patch.rb#L10)
|
1943
2105
|
|
1944
2106
|
> def value
|
1945
2107
|
|
@@ -1949,7 +2111,7 @@ Fixes NoMethodError: undefined method `value' for Selenium::WebDriver::Element
|
|
1949
2111
|
|
1950
2112
|
--
|
1951
2113
|
|
1952
|
-
##### [name](https://github.com/appium/ruby_lib/blob/
|
2114
|
+
##### [name](https://github.com/appium/ruby_lib/blob/8cc004ad04ec087a8a11c06ca0749a5e2c6586a7/lib/appium_lib/common/patch.rb#L17)
|
1953
2115
|
|
1954
2116
|
> def name
|
1955
2117
|
|
@@ -1959,7 +2121,7 @@ Fixes NoMethodError: undefined method `name' for Selenium::WebDriver::Element
|
|
1959
2121
|
|
1960
2122
|
--
|
1961
2123
|
|
1962
|
-
##### [location_rel](https://github.com/appium/ruby_lib/blob/
|
2124
|
+
##### [location_rel](https://github.com/appium/ruby_lib/blob/8cc004ad04ec087a8a11c06ca0749a5e2c6586a7/lib/appium_lib/common/patch.rb#L29)
|
1963
2125
|
|
1964
2126
|
> def location_rel
|
1965
2127
|
|