appium_lib 9.3.0 → 9.3.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/CHANGELOG.md +11 -0
- data/android_tests/appium.txt +1 -0
- data/android_tests/lib/android/specs/common/command.rb +2 -0
- data/android_tests/lib/android/specs/common/device.rb +10 -1
- data/android_tests/lib/android/specs/driver.rb +46 -13
- data/appium_lib.gemspec +1 -0
- data/docs/android_docs.md +265 -226
- data/docs/docs.md +12 -19
- data/docs/ios_docs.md +279 -240
- data/ios_tests/appium.txt +1 -0
- data/ios_tests/lib/ios/specs/driver.rb +46 -8
- data/lib/appium_lib/common/command.rb +36 -34
- data/lib/appium_lib/common/version.rb +2 -2
- data/lib/appium_lib/device/device.rb +28 -0
- data/lib/appium_lib/driver.rb +9 -5
- data/readme.md +2 -0
- data/release_notes.md +12 -0
- metadata +17 -3
data/docs/docs.md
CHANGED
@@ -101,33 +101,30 @@ iOS uses accessibility label with a fallback to text.
|
|
101
101
|
|
102
102
|
#### button
|
103
103
|
0. `(Button) button(index)` Find a button by index.
|
104
|
-
0. `(Button) button(text
|
105
|
-
0. `(Button) button_include(text)` Get the first button that includes text.
|
104
|
+
0. `(Button) button(text)` Get the first button that includes text.
|
106
105
|
0. `(Array<String>, Array<Buttons>) buttons(text = nil)` Get an array of button texts or button elements if text is provided.
|
107
|
-
0. `(Array<Button>)
|
106
|
+
0. `(Array<Button>) buttons(text)` Get all buttons that include text.
|
108
107
|
0. `(Button) first_button` Get the first button element.
|
109
108
|
0. `(Button) last_button` Get the last button element.
|
110
109
|
|
111
110
|
#### textfield
|
112
111
|
0. `(Textfield) textfield(index)` Find a textfield by index.
|
113
|
-
0. `(Array<Textfield>)
|
112
|
+
0. `(Array<Textfield>) textfields` Get an array of textfield elements.
|
114
113
|
0. `(Textfield) first_textfield` Get the first textfield element.
|
115
114
|
0. `(Textfield) last_textfield` Get the last textfield element.
|
116
|
-
0. `(Textfield)
|
117
|
-
0. `(Textfield)
|
118
|
-
0. `(Array<String>) textfields` Get an array of textfield texts.
|
115
|
+
0. `(Textfield) textfield_exact(text)` Get the first textfield that matches text.
|
116
|
+
0. `(Textfield) textfield(text)` Get the first textfield that includes text.
|
119
117
|
|
120
118
|
#### text
|
121
119
|
|
122
120
|
The Static Text methods have been prefixed with `s_` to avoid conflicting with the generic text methods.
|
123
121
|
|
124
|
-
0. `(Text)
|
125
|
-
0. `(Array<Text>)
|
126
|
-
0. `(Text)
|
127
|
-
0. `(Text)
|
128
|
-
0. `(Text)
|
129
|
-
0. `(Text)
|
130
|
-
0. `(Array<String>) s_texts` Get an array of text texts.
|
122
|
+
0. `(Text) text(index)` Find a text by index.
|
123
|
+
0. `(Array<Text>) texts` Get an array of text elements.
|
124
|
+
0. `(Text) first_text` Get the first text element.
|
125
|
+
0. `(Text) last_text` Get the last text element.
|
126
|
+
0. `(Text) text_exact(text)` Get the first element that matches text.
|
127
|
+
0. `(Text) text(text)` Get the first textfield that includes text.
|
131
128
|
|
132
129
|
#### window
|
133
130
|
0. `(Object) window_size` Get the window's size.
|
@@ -168,8 +165,6 @@ s.send_keys 'hello'
|
|
168
165
|
s.value == ios_password('hello'.length)
|
169
166
|
```
|
170
167
|
|
171
|
-
[routing.js](https://github.com/appium/appium/blob/master/app/routing.js#L69) lists not yet implemented end points.
|
172
|
-
|
173
168
|
--
|
174
169
|
|
175
170
|
#### Driver
|
@@ -184,11 +179,9 @@ s.value == ios_password('hello'.length)
|
|
184
179
|
|
185
180
|
`find_elements` calls `$driver.find_elements`
|
186
181
|
|
187
|
-
`mobile :swipe, endX: 100, endY: 100, duration: 0.01` calls `$driver.execute_script 'mobile: swipe', endX: 100, endY: 100, duration: 0.01`
|
188
|
-
|
189
182
|
`no_wait` will set implicit wait to 0. `$driver.manage.timeouts.implicit_wait = 0`
|
190
183
|
|
191
|
-
`set_wait` will set implicit wait to default
|
184
|
+
`set_wait` will set implicit wait to default seconds. `$driver.manage.timeouts.implicit_wait = default`
|
192
185
|
|
193
186
|
`set_wait(timeout_seconds)` will set implicit wait to desired timeout. `$driver.manage.timeouts.implicit_wait = timeout`
|
194
187
|
|
data/docs/ios_docs.md
CHANGED
@@ -1,8 +1,9 @@
|
|
1
|
-
##### [load_settings](https://github.com/appium/ruby_lib/blob/
|
1
|
+
##### [load_settings](https://github.com/appium/ruby_lib/blob/fa3b19c9921cbb84d9fd91a097b8c85d485b60f7/lib/appium_lib/driver.rb#L75)
|
2
2
|
|
3
3
|
> def self.load_settings(opts = {})
|
4
4
|
|
5
|
-
Load arbitrary text (toml format)
|
5
|
+
Load arbitrary text ([toml format](https://github.com/toml-lang/toml))
|
6
|
+
The toml is parsed by https://github.com/fbernier/tomlrb .
|
6
7
|
|
7
8
|
```
|
8
9
|
[caps]
|
@@ -26,11 +27,12 @@ __Returns:__
|
|
26
27
|
|
27
28
|
--
|
28
29
|
|
29
|
-
##### [load_appium_txt](https://github.com/appium/ruby_lib/blob/
|
30
|
+
##### [load_appium_txt](https://github.com/appium/ruby_lib/blob/fa3b19c9921cbb84d9fd91a097b8c85d485b60f7/lib/appium_lib/driver.rb#L111)
|
30
31
|
|
31
32
|
> def self.load_settings(opts = {})
|
32
33
|
|
33
|
-
Load arbitrary text (toml format)
|
34
|
+
Load arbitrary text ([toml format](https://github.com/toml-lang/toml))
|
35
|
+
The toml is parsed by https://github.com/fbernier/tomlrb .
|
34
36
|
|
35
37
|
```
|
36
38
|
[caps]
|
@@ -55,7 +57,7 @@ __Returns:__
|
|
55
57
|
|
56
58
|
--
|
57
59
|
|
58
|
-
##### [expand_required_files](https://github.com/appium/ruby_lib/blob/
|
60
|
+
##### [expand_required_files](https://github.com/appium/ruby_lib/blob/fa3b19c9921cbb84d9fd91a097b8c85d485b60f7/lib/appium_lib/driver.rb#L117)
|
59
61
|
|
60
62
|
> def self.expand_required_files(base_dir, file_paths)
|
61
63
|
|
@@ -73,7 +75,7 @@ __Returns:__
|
|
73
75
|
|
74
76
|
--
|
75
77
|
|
76
|
-
##### [symbolize_keys](https://github.com/appium/ruby_lib/blob/
|
78
|
+
##### [symbolize_keys](https://github.com/appium/ruby_lib/blob/fa3b19c9921cbb84d9fd91a097b8c85d485b60f7/lib/appium_lib/driver.rb#L149)
|
77
79
|
|
78
80
|
> def self.symbolize_keys(hash)
|
79
81
|
|
@@ -84,7 +86,7 @@ https://github.com/rails/docrails/blob/a3b1105ada3da64acfa3843b164b14b734456a50/
|
|
84
86
|
|
85
87
|
--
|
86
88
|
|
87
|
-
##### [promote_singleton_appium_methods](https://github.com/appium/ruby_lib/blob/
|
89
|
+
##### [promote_singleton_appium_methods](https://github.com/appium/ruby_lib/blob/fa3b19c9921cbb84d9fd91a097b8c85d485b60f7/lib/appium_lib/driver.rb#L170)
|
88
90
|
|
89
91
|
> def self.promote_singleton_appium_methods(modules)
|
90
92
|
|
@@ -102,7 +104,7 @@ otherwise, the array of modules will be used as the promotion target.
|
|
102
104
|
|
103
105
|
--
|
104
106
|
|
105
|
-
##### [promote_appium_methods](https://github.com/appium/ruby_lib/blob/
|
107
|
+
##### [promote_appium_methods](https://github.com/appium/ruby_lib/blob/fa3b19c9921cbb84d9fd91a097b8c85d485b60f7/lib/appium_lib/driver.rb#L223)
|
106
108
|
|
107
109
|
> def self.promote_appium_methods(class_array)
|
108
110
|
|
@@ -132,7 +134,7 @@ __Parameters:__
|
|
132
134
|
|
133
135
|
--
|
134
136
|
|
135
|
-
##### [init_caps_for_appium](https://github.com/appium/ruby_lib/blob/
|
137
|
+
##### [init_caps_for_appium](https://github.com/appium/ruby_lib/blob/fa3b19c9921cbb84d9fd91a097b8c85d485b60f7/lib/appium_lib/driver.rb#L258)
|
136
138
|
|
137
139
|
> def self.init_caps_for_appium(opts_caps = {})
|
138
140
|
|
@@ -140,9 +142,18 @@ except for browser_name, default capability is equal to ::Selenium::WebDriver::R
|
|
140
142
|
Because Selenium::WebDriver::Remote::Bridge uses Capabilities.firefox by default
|
141
143
|
https://github.com/SeleniumHQ/selenium/blob/selenium-3.0.1/rb/lib/selenium/webdriver/remote/bridge.rb#L67
|
142
144
|
|
145
|
+
__Parameters:__
|
146
|
+
|
147
|
+
[Hash] opts_caps - Capabilities for Appium server. All capability keys are converted to lowerCamelCase when
|
148
|
+
this client sends capabilities to Appium server as JSON format.
|
149
|
+
|
150
|
+
__Returns:__
|
151
|
+
|
152
|
+
[Selenium::WebDriver::Remote::Capabilities] Return instance of Selenium::WebDriver::Remote::Capabilities
|
153
|
+
|
143
154
|
--
|
144
155
|
|
145
|
-
##### [global_webdriver_http_sleep](https://github.com/appium/ruby_lib/blob/
|
156
|
+
##### [global_webdriver_http_sleep](https://github.com/appium/ruby_lib/blob/fa3b19c9921cbb84d9fd91a097b8c85d485b60f7/lib/appium_lib/driver.rb#L276)
|
146
157
|
|
147
158
|
> def global_webdriver_http_sleep
|
148
159
|
|
@@ -150,7 +161,7 @@ The amount to sleep in seconds before every webdriver http call.
|
|
150
161
|
|
151
162
|
--
|
152
163
|
|
153
|
-
##### [global_webdriver_http_sleep=](https://github.com/appium/ruby_lib/blob/
|
164
|
+
##### [global_webdriver_http_sleep=](https://github.com/appium/ruby_lib/blob/fa3b19c9921cbb84d9fd91a097b8c85d485b60f7/lib/appium_lib/driver.rb#L276)
|
154
165
|
|
155
166
|
> def global_webdriver_http_sleep=(value)
|
156
167
|
|
@@ -158,7 +169,7 @@ The amount to sleep in seconds before every webdriver http call.
|
|
158
169
|
|
159
170
|
--
|
160
171
|
|
161
|
-
##### [caps](https://github.com/appium/ruby_lib/blob/
|
172
|
+
##### [caps](https://github.com/appium/ruby_lib/blob/fa3b19c9921cbb84d9fd91a097b8c85d485b60f7/lib/appium_lib/driver.rb#L278)
|
162
173
|
|
163
174
|
> def caps
|
164
175
|
|
@@ -166,7 +177,7 @@ Selenium webdriver capabilities
|
|
166
177
|
|
167
178
|
--
|
168
179
|
|
169
|
-
##### [caps=](https://github.com/appium/ruby_lib/blob/
|
180
|
+
##### [caps=](https://github.com/appium/ruby_lib/blob/fa3b19c9921cbb84d9fd91a097b8c85d485b60f7/lib/appium_lib/driver.rb#L278)
|
170
181
|
|
171
182
|
> def caps=(value)
|
172
183
|
|
@@ -174,7 +185,7 @@ Selenium webdriver capabilities
|
|
174
185
|
|
175
186
|
--
|
176
187
|
|
177
|
-
##### [custom_url](https://github.com/appium/ruby_lib/blob/
|
188
|
+
##### [custom_url](https://github.com/appium/ruby_lib/blob/fa3b19c9921cbb84d9fd91a097b8c85d485b60f7/lib/appium_lib/driver.rb#L280)
|
178
189
|
|
179
190
|
> def custom_url
|
180
191
|
|
@@ -182,7 +193,7 @@ Custom URL for the selenium server
|
|
182
193
|
|
183
194
|
--
|
184
195
|
|
185
|
-
##### [custom_url=](https://github.com/appium/ruby_lib/blob/
|
196
|
+
##### [custom_url=](https://github.com/appium/ruby_lib/blob/fa3b19c9921cbb84d9fd91a097b8c85d485b60f7/lib/appium_lib/driver.rb#L280)
|
186
197
|
|
187
198
|
> def custom_url=(value)
|
188
199
|
|
@@ -190,7 +201,7 @@ Custom URL for the selenium server
|
|
190
201
|
|
191
202
|
--
|
192
203
|
|
193
|
-
##### [export_session](https://github.com/appium/ruby_lib/blob/
|
204
|
+
##### [export_session](https://github.com/appium/ruby_lib/blob/fa3b19c9921cbb84d9fd91a097b8c85d485b60f7/lib/appium_lib/driver.rb#L282)
|
194
205
|
|
195
206
|
> def export_session
|
196
207
|
|
@@ -198,7 +209,7 @@ Export session id to textfile in /tmp for 3rd party tools
|
|
198
209
|
|
199
210
|
--
|
200
211
|
|
201
|
-
##### [export_session=](https://github.com/appium/ruby_lib/blob/
|
212
|
+
##### [export_session=](https://github.com/appium/ruby_lib/blob/fa3b19c9921cbb84d9fd91a097b8c85d485b60f7/lib/appium_lib/driver.rb#L282)
|
202
213
|
|
203
214
|
> def export_session=(value)
|
204
215
|
|
@@ -206,7 +217,7 @@ Export session id to textfile in /tmp for 3rd party tools
|
|
206
217
|
|
207
218
|
--
|
208
219
|
|
209
|
-
##### [default_wait](https://github.com/appium/ruby_lib/blob/
|
220
|
+
##### [default_wait](https://github.com/appium/ruby_lib/blob/fa3b19c9921cbb84d9fd91a097b8c85d485b60f7/lib/appium_lib/driver.rb#L287)
|
210
221
|
|
211
222
|
> def default_wait
|
212
223
|
|
@@ -220,39 +231,39 @@ __Returns:__
|
|
220
231
|
|
221
232
|
--
|
222
233
|
|
223
|
-
##### [sauce_username](https://github.com/appium/ruby_lib/blob/
|
234
|
+
##### [sauce_username](https://github.com/appium/ruby_lib/blob/fa3b19c9921cbb84d9fd91a097b8c85d485b60f7/lib/appium_lib/driver.rb#L289)
|
224
235
|
|
225
236
|
> def sauce_username
|
226
237
|
|
227
|
-
Username for use on Sauce Labs
|
238
|
+
Username for use on Sauce Labs. Set `false` to disable Sauce, even when SAUCE_USERNAME is in ENV.
|
228
239
|
|
229
240
|
--
|
230
241
|
|
231
|
-
##### [sauce_username=](https://github.com/appium/ruby_lib/blob/
|
242
|
+
##### [sauce_username=](https://github.com/appium/ruby_lib/blob/fa3b19c9921cbb84d9fd91a097b8c85d485b60f7/lib/appium_lib/driver.rb#L289)
|
232
243
|
|
233
244
|
> def sauce_username=(value)
|
234
245
|
|
235
|
-
Username for use on Sauce Labs
|
246
|
+
Username for use on Sauce Labs. Set `false` to disable Sauce, even when SAUCE_USERNAME is in ENV.
|
236
247
|
|
237
248
|
--
|
238
249
|
|
239
|
-
##### [sauce_access_key](https://github.com/appium/ruby_lib/blob/
|
250
|
+
##### [sauce_access_key](https://github.com/appium/ruby_lib/blob/fa3b19c9921cbb84d9fd91a097b8c85d485b60f7/lib/appium_lib/driver.rb#L291)
|
240
251
|
|
241
252
|
> def sauce_access_key
|
242
253
|
|
243
|
-
Access Key for use on Sauce Labs
|
254
|
+
Access Key for use on Sauce Labs. Set `false` to disable Sauce, even when SAUCE_ACCESS_KEY is in ENV.
|
244
255
|
|
245
256
|
--
|
246
257
|
|
247
|
-
##### [sauce_access_key=](https://github.com/appium/ruby_lib/blob/
|
258
|
+
##### [sauce_access_key=](https://github.com/appium/ruby_lib/blob/fa3b19c9921cbb84d9fd91a097b8c85d485b60f7/lib/appium_lib/driver.rb#L291)
|
248
259
|
|
249
260
|
> def sauce_access_key=(value)
|
250
261
|
|
251
|
-
Access Key for use on Sauce Labs
|
262
|
+
Access Key for use on Sauce Labs. Set `false` to disable Sauce, even when SAUCE_ACCESS_KEY is in ENV.
|
252
263
|
|
253
264
|
--
|
254
265
|
|
255
|
-
##### [appium_port](https://github.com/appium/ruby_lib/blob/
|
266
|
+
##### [appium_port](https://github.com/appium/ruby_lib/blob/fa3b19c9921cbb84d9fd91a097b8c85d485b60f7/lib/appium_lib/driver.rb#L293)
|
256
267
|
|
257
268
|
> def appium_port
|
258
269
|
|
@@ -260,7 +271,7 @@ Appium's server port
|
|
260
271
|
|
261
272
|
--
|
262
273
|
|
263
|
-
##### [appium_port=](https://github.com/appium/ruby_lib/blob/
|
274
|
+
##### [appium_port=](https://github.com/appium/ruby_lib/blob/fa3b19c9921cbb84d9fd91a097b8c85d485b60f7/lib/appium_lib/driver.rb#L293)
|
264
275
|
|
265
276
|
> def appium_port=(value)
|
266
277
|
|
@@ -268,7 +279,7 @@ Appium's server port
|
|
268
279
|
|
269
280
|
--
|
270
281
|
|
271
|
-
##### [appium_device](https://github.com/appium/ruby_lib/blob/
|
282
|
+
##### [appium_device](https://github.com/appium/ruby_lib/blob/fa3b19c9921cbb84d9fd91a097b8c85d485b60f7/lib/appium_lib/driver.rb#L295)
|
272
283
|
|
273
284
|
> def appium_device
|
274
285
|
|
@@ -276,7 +287,7 @@ Device type to request from the appium server
|
|
276
287
|
|
277
288
|
--
|
278
289
|
|
279
|
-
##### [appium_device=](https://github.com/appium/ruby_lib/blob/
|
290
|
+
##### [appium_device=](https://github.com/appium/ruby_lib/blob/fa3b19c9921cbb84d9fd91a097b8c85d485b60f7/lib/appium_lib/driver.rb#L295)
|
280
291
|
|
281
292
|
> def appium_device=(value)
|
282
293
|
|
@@ -284,7 +295,7 @@ Device type to request from the appium server
|
|
284
295
|
|
285
296
|
--
|
286
297
|
|
287
|
-
##### [automation_name](https://github.com/appium/ruby_lib/blob/
|
298
|
+
##### [automation_name](https://github.com/appium/ruby_lib/blob/fa3b19c9921cbb84d9fd91a097b8c85d485b60f7/lib/appium_lib/driver.rb#L298)
|
288
299
|
|
289
300
|
> def automation_name
|
290
301
|
|
@@ -293,7 +304,7 @@ If automation_name is nil, it is not set both client side and server side.
|
|
293
304
|
|
294
305
|
--
|
295
306
|
|
296
|
-
##### [appium_server_version](https://github.com/appium/ruby_lib/blob/
|
307
|
+
##### [appium_server_version](https://github.com/appium/ruby_lib/blob/fa3b19c9921cbb84d9fd91a097b8c85d485b60f7/lib/appium_lib/driver.rb#L300)
|
297
308
|
|
298
309
|
> def appium_server_version
|
299
310
|
|
@@ -314,7 +325,7 @@ __Returns:__
|
|
314
325
|
|
315
326
|
--
|
316
327
|
|
317
|
-
##### [appium_debug](https://github.com/appium/ruby_lib/blob/
|
328
|
+
##### [appium_debug](https://github.com/appium/ruby_lib/blob/fa3b19c9921cbb84d9fd91a097b8c85d485b60f7/lib/appium_lib/driver.rb#L302)
|
318
329
|
|
319
330
|
> def appium_debug
|
320
331
|
|
@@ -322,7 +333,7 @@ Boolean debug mode for the Appium Ruby bindings
|
|
322
333
|
|
323
334
|
--
|
324
335
|
|
325
|
-
##### [appium_debug=](https://github.com/appium/ruby_lib/blob/
|
336
|
+
##### [appium_debug=](https://github.com/appium/ruby_lib/blob/fa3b19c9921cbb84d9fd91a097b8c85d485b60f7/lib/appium_lib/driver.rb#L302)
|
326
337
|
|
327
338
|
> def appium_debug=(value)
|
328
339
|
|
@@ -330,7 +341,7 @@ Boolean debug mode for the Appium Ruby bindings
|
|
330
341
|
|
331
342
|
--
|
332
343
|
|
333
|
-
##### [listener](https://github.com/appium/ruby_lib/blob/
|
344
|
+
##### [listener](https://github.com/appium/ruby_lib/blob/fa3b19c9921cbb84d9fd91a097b8c85d485b60f7/lib/appium_lib/driver.rb#L304)
|
334
345
|
|
335
346
|
> def listener
|
336
347
|
|
@@ -338,7 +349,7 @@ instance of AbstractEventListener for logging support
|
|
338
349
|
|
339
350
|
--
|
340
351
|
|
341
|
-
##### [listener=](https://github.com/appium/ruby_lib/blob/
|
352
|
+
##### [listener=](https://github.com/appium/ruby_lib/blob/fa3b19c9921cbb84d9fd91a097b8c85d485b60f7/lib/appium_lib/driver.rb#L304)
|
342
353
|
|
343
354
|
> def listener=(value)
|
344
355
|
|
@@ -346,7 +357,7 @@ instance of AbstractEventListener for logging support
|
|
346
357
|
|
347
358
|
--
|
348
359
|
|
349
|
-
##### [driver](https://github.com/appium/ruby_lib/blob/
|
360
|
+
##### [driver](https://github.com/appium/ruby_lib/blob/fa3b19c9921cbb84d9fd91a097b8c85d485b60f7/lib/appium_lib/driver.rb#L307)
|
350
361
|
|
351
362
|
> def driver
|
352
363
|
|
@@ -358,7 +369,7 @@ __Returns:__
|
|
358
369
|
|
359
370
|
--
|
360
371
|
|
361
|
-
##### [http_client](https://github.com/appium/ruby_lib/blob/
|
372
|
+
##### [http_client](https://github.com/appium/ruby_lib/blob/fa3b19c9921cbb84d9fd91a097b8c85d485b60f7/lib/appium_lib/driver.rb#L310)
|
362
373
|
|
363
374
|
> def http_client
|
364
375
|
|
@@ -370,7 +381,7 @@ __Returns:__
|
|
370
381
|
|
371
382
|
--
|
372
383
|
|
373
|
-
##### [appium_wait_timeout](https://github.com/appium/ruby_lib/blob/
|
384
|
+
##### [appium_wait_timeout](https://github.com/appium/ruby_lib/blob/fa3b19c9921cbb84d9fd91a097b8c85d485b60f7/lib/appium_lib/driver.rb#L315)
|
374
385
|
|
375
386
|
> def appium_wait_timeout
|
376
387
|
|
@@ -384,7 +395,7 @@ __Returns:__
|
|
384
395
|
|
385
396
|
--
|
386
397
|
|
387
|
-
##### [appium_wait_interval](https://github.com/appium/ruby_lib/blob/
|
398
|
+
##### [appium_wait_interval](https://github.com/appium/ruby_lib/blob/fa3b19c9921cbb84d9fd91a097b8c85d485b60f7/lib/appium_lib/driver.rb#L320)
|
388
399
|
|
389
400
|
> def appium_wait_interval
|
390
401
|
|
@@ -398,7 +409,7 @@ __Returns:__
|
|
398
409
|
|
399
410
|
--
|
400
411
|
|
401
|
-
##### [initialize](https://github.com/appium/ruby_lib/blob/
|
412
|
+
##### [initialize](https://github.com/appium/ruby_lib/blob/fa3b19c9921cbb84d9fd91a097b8c85d485b60f7/lib/appium_lib/driver.rb#L360)
|
402
413
|
|
403
414
|
> def initialize(opts = {})
|
404
415
|
|
@@ -414,7 +425,7 @@ __Returns:__
|
|
414
425
|
|
415
426
|
--
|
416
427
|
|
417
|
-
##### [driver_attributes](https://github.com/appium/ruby_lib/blob/
|
428
|
+
##### [driver_attributes](https://github.com/appium/ruby_lib/blob/fa3b19c9921cbb84d9fd91a097b8c85d485b60f7/lib/appium_lib/driver.rb#L435)
|
418
429
|
|
419
430
|
> def driver_attributes
|
420
431
|
|
@@ -422,7 +433,7 @@ Returns a hash of the driver attributes
|
|
422
433
|
|
423
434
|
--
|
424
435
|
|
425
|
-
##### [device_is_android?](https://github.com/appium/ruby_lib/blob/
|
436
|
+
##### [device_is_android?](https://github.com/appium/ruby_lib/blob/fa3b19c9921cbb84d9fd91a097b8c85d485b60f7/lib/appium_lib/driver.rb#L459)
|
426
437
|
|
427
438
|
> def device_is_android?
|
428
439
|
|
@@ -434,7 +445,7 @@ __Returns:__
|
|
434
445
|
|
435
446
|
--
|
436
447
|
|
437
|
-
##### [automation_name_is_xcuitest?](https://github.com/appium/ruby_lib/blob/
|
448
|
+
##### [automation_name_is_xcuitest?](https://github.com/appium/ruby_lib/blob/fa3b19c9921cbb84d9fd91a097b8c85d485b60f7/lib/appium_lib/driver.rb#L465)
|
438
449
|
|
439
450
|
> def automation_name_is_xcuitest?
|
440
451
|
|
@@ -446,7 +457,7 @@ __Returns:__
|
|
446
457
|
|
447
458
|
--
|
448
459
|
|
449
|
-
##### [check_server_version_xcuitest](https://github.com/appium/ruby_lib/blob/
|
460
|
+
##### [check_server_version_xcuitest](https://github.com/appium/ruby_lib/blob/fa3b19c9921cbb84d9fd91a097b8c85d485b60f7/lib/appium_lib/driver.rb#L472)
|
450
461
|
|
451
462
|
> def check_server_version_xcuitest
|
452
463
|
|
@@ -459,7 +470,7 @@ __Returns:__
|
|
459
470
|
|
460
471
|
--
|
461
472
|
|
462
|
-
##### [appium_client_version](https://github.com/appium/ruby_lib/blob/
|
473
|
+
##### [appium_client_version](https://github.com/appium/ruby_lib/blob/fa3b19c9921cbb84d9fd91a097b8c85d485b60f7/lib/appium_lib/driver.rb#L504)
|
463
474
|
|
464
475
|
> def appium_client_version
|
465
476
|
|
@@ -477,7 +488,7 @@ __Returns:__
|
|
477
488
|
|
478
489
|
--
|
479
490
|
|
480
|
-
##### [absolute_app_path](https://github.com/appium/ruby_lib/blob/
|
491
|
+
##### [absolute_app_path](https://github.com/appium/ruby_lib/blob/fa3b19c9921cbb84d9fd91a097b8c85d485b60f7/lib/appium_lib/driver.rb#L516)
|
481
492
|
|
482
493
|
> def self.absolute_app_path(opts)
|
483
494
|
|
@@ -494,7 +505,7 @@ __Returns:__
|
|
494
505
|
|
495
506
|
--
|
496
507
|
|
497
|
-
##### [server_url](https://github.com/appium/ruby_lib/blob/
|
508
|
+
##### [server_url](https://github.com/appium/ruby_lib/blob/fa3b19c9921cbb84d9fd91a097b8c85d485b60f7/lib/appium_lib/driver.rb#L549)
|
498
509
|
|
499
510
|
> def server_url
|
500
511
|
|
@@ -506,7 +517,7 @@ __Returns:__
|
|
506
517
|
|
507
518
|
--
|
508
519
|
|
509
|
-
##### [restart](https://github.com/appium/ruby_lib/blob/
|
520
|
+
##### [restart](https://github.com/appium/ruby_lib/blob/fa3b19c9921cbb84d9fd91a097b8c85d485b60f7/lib/appium_lib/driver.rb#L560)
|
510
521
|
|
511
522
|
> def restart
|
512
523
|
|
@@ -518,7 +529,7 @@ __Returns:__
|
|
518
529
|
|
519
530
|
--
|
520
531
|
|
521
|
-
##### [screenshot](https://github.com/appium/ruby_lib/blob/
|
532
|
+
##### [screenshot](https://github.com/appium/ruby_lib/blob/fa3b19c9921cbb84d9fd91a097b8c85d485b60f7/lib/appium_lib/driver.rb#L571)
|
522
533
|
|
523
534
|
> def screenshot(png_save_path)
|
524
535
|
|
@@ -536,7 +547,7 @@ __Returns:__
|
|
536
547
|
|
537
548
|
--
|
538
549
|
|
539
|
-
##### [driver_quit](https://github.com/appium/ruby_lib/blob/
|
550
|
+
##### [driver_quit](https://github.com/appium/ruby_lib/blob/fa3b19c9921cbb84d9fd91a097b8c85d485b60f7/lib/appium_lib/driver.rb#L578)
|
540
551
|
|
541
552
|
> def driver_quit
|
542
553
|
|
@@ -548,7 +559,7 @@ __Returns:__
|
|
548
559
|
|
549
560
|
--
|
550
561
|
|
551
|
-
##### [start_driver](https://github.com/appium/ruby_lib/blob/
|
562
|
+
##### [start_driver](https://github.com/appium/ruby_lib/blob/fa3b19c9921cbb84d9fd91a097b8c85d485b60f7/lib/appium_lib/driver.rb#L588)
|
552
563
|
|
553
564
|
> def start_driver
|
554
565
|
|
@@ -560,7 +571,7 @@ __Returns:__
|
|
560
571
|
|
561
572
|
--
|
562
573
|
|
563
|
-
##### [no_wait](https://github.com/appium/ruby_lib/blob/
|
574
|
+
##### [no_wait](https://github.com/appium/ruby_lib/blob/fa3b19c9921cbb84d9fd91a097b8c85d485b60f7/lib/appium_lib/driver.rb#L626)
|
564
575
|
|
565
576
|
> def no_wait
|
566
577
|
|
@@ -568,7 +579,7 @@ Set implicit wait to zero.
|
|
568
579
|
|
569
580
|
--
|
570
581
|
|
571
|
-
##### [set_wait](https://github.com/appium/ruby_lib/blob/
|
582
|
+
##### [set_wait](https://github.com/appium/ruby_lib/blob/fa3b19c9921cbb84d9fd91a097b8c85d485b60f7/lib/appium_lib/driver.rb#L640)
|
572
583
|
|
573
584
|
> def set_wait(timeout = nil)
|
574
585
|
|
@@ -590,7 +601,7 @@ __Returns:__
|
|
590
601
|
|
591
602
|
--
|
592
603
|
|
593
|
-
##### [exists](https://github.com/appium/ruby_lib/blob/
|
604
|
+
##### [exists](https://github.com/appium/ruby_lib/blob/fa3b19c9921cbb84d9fd91a097b8c85d485b60f7/lib/appium_lib/driver.rb#L657)
|
594
605
|
|
595
606
|
> def exists(pre_check = 0, post_check = @default_wait)
|
596
607
|
|
@@ -614,7 +625,7 @@ __Returns:__
|
|
614
625
|
|
615
626
|
--
|
616
627
|
|
617
|
-
##### [execute_script](https://github.com/appium/ruby_lib/blob/
|
628
|
+
##### [execute_script](https://github.com/appium/ruby_lib/blob/fa3b19c9921cbb84d9fd91a097b8c85d485b60f7/lib/appium_lib/driver.rb#L681)
|
618
629
|
|
619
630
|
> def execute_script(script, *args)
|
620
631
|
|
@@ -632,7 +643,7 @@ __Returns:__
|
|
632
643
|
|
633
644
|
--
|
634
645
|
|
635
|
-
##### [find_elements](https://github.com/appium/ruby_lib/blob/
|
646
|
+
##### [find_elements](https://github.com/appium/ruby_lib/blob/fa3b19c9921cbb84d9fd91a097b8c85d485b60f7/lib/appium_lib/driver.rb#L689)
|
636
647
|
|
637
648
|
> def find_elements(*args)
|
638
649
|
|
@@ -648,7 +659,7 @@ __Returns:__
|
|
648
659
|
|
649
660
|
--
|
650
661
|
|
651
|
-
##### [find_element](https://github.com/appium/ruby_lib/blob/
|
662
|
+
##### [find_element](https://github.com/appium/ruby_lib/blob/fa3b19c9921cbb84d9fd91a097b8c85d485b60f7/lib/appium_lib/driver.rb#L697)
|
652
663
|
|
653
664
|
> def find_element(*args)
|
654
665
|
|
@@ -664,7 +675,7 @@ __Returns:__
|
|
664
675
|
|
665
676
|
--
|
666
677
|
|
667
|
-
##### [set_location](https://github.com/appium/ruby_lib/blob/
|
678
|
+
##### [set_location](https://github.com/appium/ruby_lib/blob/fa3b19c9921cbb84d9fd91a097b8c85d485b60f7/lib/appium_lib/driver.rb#L710)
|
668
679
|
|
669
680
|
> def set_location(opts = {})
|
670
681
|
|
@@ -680,7 +691,7 @@ __Returns:__
|
|
680
691
|
|
681
692
|
--
|
682
693
|
|
683
|
-
##### [x](https://github.com/appium/ruby_lib/blob/
|
694
|
+
##### [x](https://github.com/appium/ruby_lib/blob/fa3b19c9921cbb84d9fd91a097b8c85d485b60f7/lib/appium_lib/driver.rb#L720)
|
684
695
|
|
685
696
|
> def x
|
686
697
|
|
@@ -693,7 +704,7 @@ __Returns:__
|
|
693
704
|
|
694
705
|
--
|
695
706
|
|
696
|
-
##### [set_automation_name_if_nil](https://github.com/appium/ruby_lib/blob/
|
707
|
+
##### [set_automation_name_if_nil](https://github.com/appium/ruby_lib/blob/fa3b19c9921cbb84d9fd91a097b8c85d485b60f7/lib/appium_lib/driver.rb#L729)
|
697
708
|
|
698
709
|
> def set_automation_name_if_nil
|
699
710
|
|
@@ -702,7 +713,7 @@ Since @automation_name is set only client side before start_driver is called.
|
|
702
713
|
|
703
714
|
--
|
704
715
|
|
705
|
-
##### [logger=](https://github.com/appium/ruby_lib/blob/
|
716
|
+
##### [logger=](https://github.com/appium/ruby_lib/blob/fa3b19c9921cbb84d9fd91a097b8c85d485b60f7/lib/appium_lib/logger.rb#L13)
|
706
717
|
|
707
718
|
> def logger=(value)
|
708
719
|
|
@@ -714,7 +725,7 @@ __Parameters:__
|
|
714
725
|
|
715
726
|
--
|
716
727
|
|
717
|
-
##### [logger](https://github.com/appium/ruby_lib/blob/
|
728
|
+
##### [logger](https://github.com/appium/ruby_lib/blob/fa3b19c9921cbb84d9fd91a097b8c85d485b60f7/lib/appium_lib/logger.rb#L17)
|
718
729
|
|
719
730
|
> def logger
|
720
731
|
|
@@ -722,7 +733,7 @@ __Parameters:__
|
|
722
733
|
|
723
734
|
--
|
724
735
|
|
725
|
-
##### [app_strings](https://github.com/appium/ruby_lib/blob/
|
736
|
+
##### [app_strings](https://github.com/appium/ruby_lib/blob/fa3b19c9921cbb84d9fd91a097b8c85d485b60f7/lib/appium_lib/device/device.rb#L7)
|
726
737
|
|
727
738
|
> def app_strings
|
728
739
|
|
@@ -733,7 +744,7 @@ app_strings #=> "TransitionsTitle"=>"Transitions", "WebTitle"=>"Web"
|
|
733
744
|
|
734
745
|
--
|
735
746
|
|
736
|
-
##### [background_app](https://github.com/appium/ruby_lib/blob/
|
747
|
+
##### [background_app](https://github.com/appium/ruby_lib/blob/fa3b19c9921cbb84d9fd91a097b8c85d485b60f7/lib/appium_lib/device/device.rb#L13)
|
737
748
|
|
738
749
|
> def background_app
|
739
750
|
|
@@ -742,7 +753,7 @@ This is a blocking application
|
|
742
753
|
|
743
754
|
--
|
744
755
|
|
745
|
-
##### [current_activity](https://github.com/appium/ruby_lib/blob/
|
756
|
+
##### [current_activity](https://github.com/appium/ruby_lib/blob/fa3b19c9921cbb84d9fd91a097b8c85d485b60f7/lib/appium_lib/device/device.rb#L18)
|
746
757
|
|
747
758
|
> def current_activity
|
748
759
|
|
@@ -750,7 +761,7 @@ This is a blocking application
|
|
750
761
|
|
751
762
|
--
|
752
763
|
|
753
|
-
##### [launch_app](https://github.com/appium/ruby_lib/blob/
|
764
|
+
##### [launch_app](https://github.com/appium/ruby_lib/blob/fa3b19c9921cbb84d9fd91a097b8c85d485b60f7/lib/appium_lib/device/device.rb#L20)
|
754
765
|
|
755
766
|
> def launch_app
|
756
767
|
|
@@ -758,7 +769,7 @@ Start the simulator and application configured with desired capabilities
|
|
758
769
|
|
759
770
|
--
|
760
771
|
|
761
|
-
##### [reset](https://github.com/appium/ruby_lib/blob/
|
772
|
+
##### [reset](https://github.com/appium/ruby_lib/blob/fa3b19c9921cbb84d9fd91a097b8c85d485b60f7/lib/appium_lib/device/device.rb#L23)
|
762
773
|
|
763
774
|
> def reset
|
764
775
|
|
@@ -766,7 +777,7 @@ Reset the device, relaunching the application.
|
|
766
777
|
|
767
778
|
--
|
768
779
|
|
769
|
-
##### [shake](https://github.com/appium/ruby_lib/blob/
|
780
|
+
##### [shake](https://github.com/appium/ruby_lib/blob/fa3b19c9921cbb84d9fd91a097b8c85d485b60f7/lib/appium_lib/device/device.rb#L26)
|
770
781
|
|
771
782
|
> def shake
|
772
783
|
|
@@ -774,7 +785,7 @@ Cause the device to shake
|
|
774
785
|
|
775
786
|
--
|
776
787
|
|
777
|
-
##### [toggle_flight_mode](https://github.com/appium/ruby_lib/blob/
|
788
|
+
##### [toggle_flight_mode](https://github.com/appium/ruby_lib/blob/fa3b19c9921cbb84d9fd91a097b8c85d485b60f7/lib/appium_lib/device/device.rb#L29)
|
778
789
|
|
779
790
|
> def toggle_flight_mode
|
780
791
|
|
@@ -782,7 +793,7 @@ Toggle flight mode on or off
|
|
782
793
|
|
783
794
|
--
|
784
795
|
|
785
|
-
##### [device_locked?](https://github.com/appium/ruby_lib/blob/
|
796
|
+
##### [device_locked?](https://github.com/appium/ruby_lib/blob/fa3b19c9921cbb84d9fd91a097b8c85d485b60f7/lib/appium_lib/device/device.rb#L32)
|
786
797
|
|
787
798
|
> def device_locked?
|
788
799
|
|
@@ -790,7 +801,7 @@ Toggle flight mode on or off
|
|
790
801
|
|
791
802
|
--
|
792
803
|
|
793
|
-
##### [hide_keyboard](https://github.com/appium/ruby_lib/blob/
|
804
|
+
##### [hide_keyboard](https://github.com/appium/ruby_lib/blob/fa3b19c9921cbb84d9fd91a097b8c85d485b60f7/lib/appium_lib/device/device.rb#L34)
|
794
805
|
|
795
806
|
> def hide_keyboard
|
796
807
|
|
@@ -803,7 +814,7 @@ Defaults to 'Done'.
|
|
803
814
|
|
804
815
|
--
|
805
816
|
|
806
|
-
##### [press_keycode](https://github.com/appium/ruby_lib/blob/
|
817
|
+
##### [press_keycode](https://github.com/appium/ruby_lib/blob/fa3b19c9921cbb84d9fd91a097b8c85d485b60f7/lib/appium_lib/device/device.rb#L43)
|
807
818
|
|
808
819
|
> def press_keycode
|
809
820
|
|
@@ -818,7 +829,7 @@ __Parameters:__
|
|
818
829
|
|
819
830
|
--
|
820
831
|
|
821
|
-
##### [long_press_keycode](https://github.com/appium/ruby_lib/blob/
|
832
|
+
##### [long_press_keycode](https://github.com/appium/ruby_lib/blob/fa3b19c9921cbb84d9fd91a097b8c85d485b60f7/lib/appium_lib/device/device.rb#L49)
|
822
833
|
|
823
834
|
> def long_press_keycode
|
824
835
|
|
@@ -833,7 +844,7 @@ __Parameters:__
|
|
833
844
|
|
834
845
|
--
|
835
846
|
|
836
|
-
##### [push_file](https://github.com/appium/ruby_lib/blob/
|
847
|
+
##### [push_file](https://github.com/appium/ruby_lib/blob/fa3b19c9921cbb84d9fd91a097b8c85d485b60f7/lib/appium_lib/device/device.rb#L55)
|
837
848
|
|
838
849
|
> def push_file
|
839
850
|
|
@@ -847,7 +858,7 @@ __Parameters:__
|
|
847
858
|
|
848
859
|
--
|
849
860
|
|
850
|
-
##### [pull_file](https://github.com/appium/ruby_lib/blob/
|
861
|
+
##### [pull_file](https://github.com/appium/ruby_lib/blob/fa3b19c9921cbb84d9fd91a097b8c85d485b60f7/lib/appium_lib/device/device.rb#L60)
|
851
862
|
|
852
863
|
> def pull_file
|
853
864
|
|
@@ -864,7 +875,7 @@ __Parameters:__
|
|
864
875
|
|
865
876
|
--
|
866
877
|
|
867
|
-
##### [pull_folder](https://github.com/appium/ruby_lib/blob/
|
878
|
+
##### [pull_folder](https://github.com/appium/ruby_lib/blob/fa3b19c9921cbb84d9fd91a097b8c85d485b60f7/lib/appium_lib/device/device.rb#L70)
|
868
879
|
|
869
880
|
> def pull_folder
|
870
881
|
|
@@ -879,7 +890,7 @@ __Parameters:__
|
|
879
890
|
|
880
891
|
--
|
881
892
|
|
882
|
-
##### [touch_id](https://github.com/appium/ruby_lib/blob/
|
893
|
+
##### [touch_id](https://github.com/appium/ruby_lib/blob/fa3b19c9921cbb84d9fd91a097b8c85d485b60f7/lib/appium_lib/device/device.rb#L78)
|
883
894
|
|
884
895
|
> def touch_id
|
885
896
|
|
@@ -896,7 +907,7 @@ Defaults to true.
|
|
896
907
|
|
897
908
|
--
|
898
909
|
|
899
|
-
##### [end_coverage](https://github.com/appium/ruby_lib/blob/
|
910
|
+
##### [end_coverage](https://github.com/appium/ruby_lib/blob/fa3b19c9921cbb84d9fd91a097b8c85d485b60f7/lib/appium_lib/device/device.rb#L87)
|
900
911
|
|
901
912
|
> def end_coverage
|
902
913
|
|
@@ -910,7 +921,7 @@ __Parameters:__
|
|
910
921
|
|
911
922
|
--
|
912
923
|
|
913
|
-
##### [get_settings](https://github.com/appium/ruby_lib/blob/
|
924
|
+
##### [get_settings](https://github.com/appium/ruby_lib/blob/fa3b19c9921cbb84d9fd91a097b8c85d485b60f7/lib/appium_lib/device/device.rb#L92)
|
914
925
|
|
915
926
|
> def get_settings
|
916
927
|
|
@@ -918,7 +929,7 @@ Get appium Settings for current test session
|
|
918
929
|
|
919
930
|
--
|
920
931
|
|
921
|
-
##### [update_settings](https://github.com/appium/ruby_lib/blob/
|
932
|
+
##### [update_settings](https://github.com/appium/ruby_lib/blob/fa3b19c9921cbb84d9fd91a097b8c85d485b60f7/lib/appium_lib/device/device.rb#L95)
|
922
933
|
|
923
934
|
> def update_settings
|
924
935
|
|
@@ -930,7 +941,7 @@ __Parameters:__
|
|
930
941
|
|
931
942
|
--
|
932
943
|
|
933
|
-
##### [start_activity](https://github.com/appium/ruby_lib/blob/
|
944
|
+
##### [start_activity](https://github.com/appium/ruby_lib/blob/fa3b19c9921cbb84d9fd91a097b8c85d485b60f7/lib/appium_lib/device/device.rb#L99)
|
934
945
|
|
935
946
|
> def start_activity
|
936
947
|
|
@@ -944,7 +955,7 @@ start_activity app_package: 'io.appium.android.apis',
|
|
944
955
|
|
945
956
|
--
|
946
957
|
|
947
|
-
##### [get_network_connection](https://github.com/appium/ruby_lib/blob/
|
958
|
+
##### [get_network_connection](https://github.com/appium/ruby_lib/blob/fa3b19c9921cbb84d9fd91a097b8c85d485b60f7/lib/appium_lib/device/device.rb#L113)
|
948
959
|
|
949
960
|
> def get_network_connection
|
950
961
|
|
@@ -953,7 +964,7 @@ See set_network_connection method for return value
|
|
953
964
|
|
954
965
|
--
|
955
966
|
|
956
|
-
##### [set_network_connection](https://github.com/appium/ruby_lib/blob/
|
967
|
+
##### [set_network_connection](https://github.com/appium/ruby_lib/blob/fa3b19c9921cbb84d9fd91a097b8c85d485b60f7/lib/appium_lib/device/device.rb#L117)
|
957
968
|
|
958
969
|
> def set_network_connection
|
959
970
|
|
@@ -972,7 +983,35 @@ __Parameters:__
|
|
972
983
|
|
973
984
|
--
|
974
985
|
|
975
|
-
##### [
|
986
|
+
##### [set_immediate_value](https://github.com/appium/ruby_lib/blob/fa3b19c9921cbb84d9fd91a097b8c85d485b60f7/lib/appium_lib/device/device.rb#L130)
|
987
|
+
|
988
|
+
> def set_immediate_value
|
989
|
+
|
990
|
+
Set the value to element directly
|
991
|
+
for iOS; setValue is called in XCUITest instead because XCUITest doesn't provide set value directly.
|
992
|
+
https://github.com/appium/appium-xcuitest-driver/blob/793cdc7d5e84bd553e375076e1c6dc7e242c9cde/lib/commands/element.js#L123
|
993
|
+
|
994
|
+
```ruby
|
995
|
+
set_immediate_value element, 'hello'
|
996
|
+
```
|
997
|
+
|
998
|
+
--
|
999
|
+
|
1000
|
+
##### [get_performance_data_types](https://github.com/appium/ruby_lib/blob/fa3b19c9921cbb84d9fd91a097b8c85d485b60f7/lib/appium_lib/device/device.rb#L139)
|
1001
|
+
|
1002
|
+
> def get_performance_data_types
|
1003
|
+
|
1004
|
+
Get the information type of the system state which is supported to read such as
|
1005
|
+
cpu, memory, network, battery via adb commands.
|
1006
|
+
https://github.com/appium/appium-base-driver/blob/be29aec2318316d12b5c3295e924a5ba8f09b0fb/lib/mjsonwp/routes.js#L300
|
1007
|
+
|
1008
|
+
```ruby
|
1009
|
+
get_performance_data_types #=> ["cpuinfo", "batteryinfo", "networkinfo", "memoryinfo"]
|
1010
|
+
```
|
1011
|
+
|
1012
|
+
--
|
1013
|
+
|
1014
|
+
##### [extend_search_contexts](https://github.com/appium/ruby_lib/blob/fa3b19c9921cbb84d9fd91a097b8c85d485b60f7/lib/appium_lib/device/device.rb#L388)
|
976
1015
|
|
977
1016
|
> def extend_search_contexts
|
978
1017
|
|
@@ -980,7 +1019,7 @@ __Parameters:__
|
|
980
1019
|
|
981
1020
|
--
|
982
1021
|
|
983
|
-
##### [find_element](https://github.com/appium/ruby_lib/blob/
|
1022
|
+
##### [find_element](https://github.com/appium/ruby_lib/blob/fa3b19c9921cbb84d9fd91a097b8c85d485b60f7/lib/appium_lib/device/device.rb#L388)
|
984
1023
|
|
985
1024
|
> def find_element
|
986
1025
|
|
@@ -988,7 +1027,7 @@ __Parameters:__
|
|
988
1027
|
|
989
1028
|
--
|
990
1029
|
|
991
|
-
##### [find_elements](https://github.com/appium/ruby_lib/blob/
|
1030
|
+
##### [find_elements](https://github.com/appium/ruby_lib/blob/fa3b19c9921cbb84d9fd91a097b8c85d485b60f7/lib/appium_lib/device/device.rb#L388)
|
992
1031
|
|
993
1032
|
> def find_elements
|
994
1033
|
|
@@ -1000,7 +1039,7 @@ find_element/s with their accessibility_id
|
|
1000
1039
|
|
1001
1040
|
--
|
1002
1041
|
|
1003
|
-
##### [add_touch_actions](https://github.com/appium/ruby_lib/blob/
|
1042
|
+
##### [add_touch_actions](https://github.com/appium/ruby_lib/blob/fa3b19c9921cbb84d9fd91a097b8c85d485b60f7/lib/appium_lib/device/device.rb#L419)
|
1004
1043
|
|
1005
1044
|
> def add_touch_actions
|
1006
1045
|
|
@@ -1008,7 +1047,7 @@ find_element/s with their accessibility_id
|
|
1008
1047
|
|
1009
1048
|
--
|
1010
1049
|
|
1011
|
-
##### [add_ime_actions](https://github.com/appium/ruby_lib/blob/
|
1050
|
+
##### [add_ime_actions](https://github.com/appium/ruby_lib/blob/fa3b19c9921cbb84d9fd91a097b8c85d485b60f7/lib/appium_lib/device/device.rb#L442)
|
1012
1051
|
|
1013
1052
|
> def add_ime_actions
|
1014
1053
|
|
@@ -1016,7 +1055,7 @@ find_element/s with their accessibility_id
|
|
1016
1055
|
|
1017
1056
|
--
|
1018
1057
|
|
1019
|
-
##### [set_context](https://github.com/appium/ruby_lib/blob/
|
1058
|
+
##### [set_context](https://github.com/appium/ruby_lib/blob/fa3b19c9921cbb84d9fd91a097b8c85d485b60f7/lib/appium_lib/device/device.rb#L517)
|
1020
1059
|
|
1021
1060
|
> def set_context
|
1022
1061
|
|
@@ -1031,7 +1070,7 @@ __Parameters:__
|
|
1031
1070
|
|
1032
1071
|
--
|
1033
1072
|
|
1034
|
-
##### [current_context](https://github.com/appium/ruby_lib/blob/
|
1073
|
+
##### [current_context](https://github.com/appium/ruby_lib/blob/fa3b19c9921cbb84d9fd91a097b8c85d485b60f7/lib/appium_lib/device/device.rb#L525)
|
1035
1074
|
|
1036
1075
|
> def current_context
|
1037
1076
|
|
@@ -1043,7 +1082,7 @@ __Returns:__
|
|
1043
1082
|
|
1044
1083
|
--
|
1045
1084
|
|
1046
|
-
##### [available_contexts](https://github.com/appium/ruby_lib/blob/
|
1085
|
+
##### [available_contexts](https://github.com/appium/ruby_lib/blob/fa3b19c9921cbb84d9fd91a097b8c85d485b60f7/lib/appium_lib/device/device.rb#L528)
|
1047
1086
|
|
1048
1087
|
> def available_contexts
|
1049
1088
|
|
@@ -1055,7 +1094,7 @@ __Returns:__
|
|
1055
1094
|
|
1056
1095
|
--
|
1057
1096
|
|
1058
|
-
##### [within_context](https://github.com/appium/ruby_lib/blob/
|
1097
|
+
##### [within_context](https://github.com/appium/ruby_lib/blob/fa3b19c9921cbb84d9fd91a097b8c85d485b60f7/lib/appium_lib/device/device.rb#L538)
|
1059
1098
|
|
1060
1099
|
> def within_context(context)
|
1061
1100
|
|
@@ -1071,7 +1110,7 @@ __Parameters:__
|
|
1071
1110
|
|
1072
1111
|
--
|
1073
1112
|
|
1074
|
-
##### [switch_to_default_context](https://github.com/appium/ruby_lib/blob/
|
1113
|
+
##### [switch_to_default_context](https://github.com/appium/ruby_lib/blob/fa3b19c9921cbb84d9fd91a097b8c85d485b60f7/lib/appium_lib/device/device.rb#L546)
|
1075
1114
|
|
1076
1115
|
> def switch_to_default_context
|
1077
1116
|
|
@@ -1079,7 +1118,7 @@ Change to the default context. This is equivalent to `set_context nil`.
|
|
1079
1118
|
|
1080
1119
|
--
|
1081
1120
|
|
1082
|
-
##### [pinch](https://github.com/appium/ruby_lib/blob/
|
1121
|
+
##### [pinch](https://github.com/appium/ruby_lib/blob/fa3b19c9921cbb84d9fd91a097b8c85d485b60f7/lib/appium_lib/device/multi_touch.rb#L28)
|
1083
1122
|
|
1084
1123
|
> def pinch(percentage = 25, auto_perform = true)
|
1085
1124
|
|
@@ -1098,7 +1137,7 @@ __Parameters:__
|
|
1098
1137
|
|
1099
1138
|
--
|
1100
1139
|
|
1101
|
-
##### [zoom](https://github.com/appium/ruby_lib/blob/
|
1140
|
+
##### [zoom](https://github.com/appium/ruby_lib/blob/fa3b19c9921cbb84d9fd91a097b8c85d485b60f7/lib/appium_lib/device/multi_touch.rb#L57)
|
1102
1141
|
|
1103
1142
|
> def zoom(percentage = 200, auto_perform = true)
|
1104
1143
|
|
@@ -1117,7 +1156,7 @@ __Parameters:__
|
|
1117
1156
|
|
1118
1157
|
--
|
1119
1158
|
|
1120
|
-
##### [pinch_for_xcuitest](https://github.com/appium/ruby_lib/blob/
|
1159
|
+
##### [pinch_for_xcuitest](https://github.com/appium/ruby_lib/blob/fa3b19c9921cbb84d9fd91a097b8c85d485b60f7/lib/appium_lib/device/multi_touch.rb#L79)
|
1121
1160
|
|
1122
1161
|
> def pinch_for_xcuitest(rate)
|
1123
1162
|
|
@@ -1125,7 +1164,7 @@ __Parameters:__
|
|
1125
1164
|
|
1126
1165
|
--
|
1127
1166
|
|
1128
|
-
##### [pinch_android](https://github.com/appium/ruby_lib/blob/
|
1167
|
+
##### [pinch_android](https://github.com/appium/ruby_lib/blob/fa3b19c9921cbb84d9fd91a097b8c85d485b60f7/lib/appium_lib/device/multi_touch.rb#L94)
|
1129
1168
|
|
1130
1169
|
> def pinch_android(rate)
|
1131
1170
|
|
@@ -1133,7 +1172,7 @@ __Parameters:__
|
|
1133
1172
|
|
1134
1173
|
--
|
1135
1174
|
|
1136
|
-
##### [pinch_ios](https://github.com/appium/ruby_lib/blob/
|
1175
|
+
##### [pinch_ios](https://github.com/appium/ruby_lib/blob/fa3b19c9921cbb84d9fd91a097b8c85d485b60f7/lib/appium_lib/device/multi_touch.rb#L108)
|
1137
1176
|
|
1138
1177
|
> def pinch_ios(rate)
|
1139
1178
|
|
@@ -1141,7 +1180,7 @@ __Parameters:__
|
|
1141
1180
|
|
1142
1181
|
--
|
1143
1182
|
|
1144
|
-
##### [zoom_for_xcuitest](https://github.com/appium/ruby_lib/blob/
|
1183
|
+
##### [zoom_for_xcuitest](https://github.com/appium/ruby_lib/blob/fa3b19c9921cbb84d9fd91a097b8c85d485b60f7/lib/appium_lib/device/multi_touch.rb#L122)
|
1145
1184
|
|
1146
1185
|
> def zoom_for_xcuitest(rate)
|
1147
1186
|
|
@@ -1149,7 +1188,7 @@ __Parameters:__
|
|
1149
1188
|
|
1150
1189
|
--
|
1151
1190
|
|
1152
|
-
##### [zoom_android](https://github.com/appium/ruby_lib/blob/
|
1191
|
+
##### [zoom_android](https://github.com/appium/ruby_lib/blob/fa3b19c9921cbb84d9fd91a097b8c85d485b60f7/lib/appium_lib/device/multi_touch.rb#L137)
|
1153
1192
|
|
1154
1193
|
> def zoom_android(rate)
|
1155
1194
|
|
@@ -1157,7 +1196,7 @@ __Parameters:__
|
|
1157
1196
|
|
1158
1197
|
--
|
1159
1198
|
|
1160
|
-
##### [zoom_ios](https://github.com/appium/ruby_lib/blob/
|
1199
|
+
##### [zoom_ios](https://github.com/appium/ruby_lib/blob/fa3b19c9921cbb84d9fd91a097b8c85d485b60f7/lib/appium_lib/device/multi_touch.rb#L151)
|
1161
1200
|
|
1162
1201
|
> def zoom_ios(rate)
|
1163
1202
|
|
@@ -1165,7 +1204,7 @@ __Parameters:__
|
|
1165
1204
|
|
1166
1205
|
--
|
1167
1206
|
|
1168
|
-
##### [initialize](https://github.com/appium/ruby_lib/blob/
|
1207
|
+
##### [initialize](https://github.com/appium/ruby_lib/blob/fa3b19c9921cbb84d9fd91a097b8c85d485b60f7/lib/appium_lib/device/multi_touch.rb#L167)
|
1169
1208
|
|
1170
1209
|
> def initialize
|
1171
1210
|
|
@@ -1177,7 +1216,7 @@ __Returns:__
|
|
1177
1216
|
|
1178
1217
|
--
|
1179
1218
|
|
1180
|
-
##### [add](https://github.com/appium/ruby_lib/blob/
|
1219
|
+
##### [add](https://github.com/appium/ruby_lib/blob/fa3b19c9921cbb84d9fd91a097b8c85d485b60f7/lib/appium_lib/device/multi_touch.rb#L173)
|
1181
1220
|
|
1182
1221
|
> def add(chain)
|
1183
1222
|
|
@@ -1189,7 +1228,7 @@ __Parameters:__
|
|
1189
1228
|
|
1190
1229
|
--
|
1191
1230
|
|
1192
|
-
##### [perform](https://github.com/appium/ruby_lib/blob/
|
1231
|
+
##### [perform](https://github.com/appium/ruby_lib/blob/fa3b19c9921cbb84d9fd91a097b8c85d485b60f7/lib/appium_lib/device/multi_touch.rb#L178)
|
1193
1232
|
|
1194
1233
|
> def perform
|
1195
1234
|
|
@@ -1197,7 +1236,7 @@ Ask Appium to perform the actions
|
|
1197
1236
|
|
1198
1237
|
--
|
1199
1238
|
|
1200
|
-
##### [ACTIONS](https://github.com/appium/ruby_lib/blob/
|
1239
|
+
##### [ACTIONS](https://github.com/appium/ruby_lib/blob/fa3b19c9921cbb84d9fd91a097b8c85d485b60f7/lib/appium_lib/device/touch_actions.rb#L11)
|
1201
1240
|
|
1202
1241
|
> ACTIONS = [:move_to, :long_press, :double_tap, :two_finger_tap, :press, :release, :tap, :wait, :perform].freeze
|
1203
1242
|
|
@@ -1205,7 +1244,7 @@ Ask Appium to perform the actions
|
|
1205
1244
|
|
1206
1245
|
--
|
1207
1246
|
|
1208
|
-
##### [COMPLEX_ACTIONS](https://github.com/appium/ruby_lib/blob/
|
1247
|
+
##### [COMPLEX_ACTIONS](https://github.com/appium/ruby_lib/blob/fa3b19c9921cbb84d9fd91a097b8c85d485b60f7/lib/appium_lib/device/touch_actions.rb#L12)
|
1209
1248
|
|
1210
1249
|
> COMPLEX_ACTIONS = [:swipe].freeze
|
1211
1250
|
|
@@ -1213,7 +1252,7 @@ Ask Appium to perform the actions
|
|
1213
1252
|
|
1214
1253
|
--
|
1215
1254
|
|
1216
|
-
##### [actions](https://github.com/appium/ruby_lib/blob/
|
1255
|
+
##### [actions](https://github.com/appium/ruby_lib/blob/fa3b19c9921cbb84d9fd91a097b8c85d485b60f7/lib/appium_lib/device/touch_actions.rb#L26)
|
1217
1256
|
|
1218
1257
|
> def actions
|
1219
1258
|
|
@@ -1221,7 +1260,7 @@ Returns the value of attribute actions
|
|
1221
1260
|
|
1222
1261
|
--
|
1223
1262
|
|
1224
|
-
##### [initialize](https://github.com/appium/ruby_lib/blob/
|
1263
|
+
##### [initialize](https://github.com/appium/ruby_lib/blob/fa3b19c9921cbb84d9fd91a097b8c85d485b60f7/lib/appium_lib/device/touch_actions.rb#L28)
|
1225
1264
|
|
1226
1265
|
> def initialize
|
1227
1266
|
|
@@ -1233,7 +1272,7 @@ __Returns:__
|
|
1233
1272
|
|
1234
1273
|
--
|
1235
1274
|
|
1236
|
-
##### [move_to](https://github.com/appium/ruby_lib/blob/
|
1275
|
+
##### [move_to](https://github.com/appium/ruby_lib/blob/fa3b19c9921cbb84d9fd91a097b8c85d485b60f7/lib/appium_lib/device/touch_actions.rb#L39)
|
1237
1276
|
|
1238
1277
|
> def move_to(opts)
|
1239
1278
|
|
@@ -1247,7 +1286,7 @@ __Parameters:__
|
|
1247
1286
|
|
1248
1287
|
--
|
1249
1288
|
|
1250
|
-
##### [long_press](https://github.com/appium/ruby_lib/blob/
|
1289
|
+
##### [long_press](https://github.com/appium/ruby_lib/blob/fa3b19c9921cbb84d9fd91a097b8c85d485b60f7/lib/appium_lib/device/touch_actions.rb#L53)
|
1251
1290
|
|
1252
1291
|
> def long_press(opts)
|
1253
1292
|
|
@@ -1268,7 +1307,7 @@ __Parameters:__
|
|
1268
1307
|
|
1269
1308
|
--
|
1270
1309
|
|
1271
|
-
##### [press](https://github.com/appium/ruby_lib/blob/
|
1310
|
+
##### [press](https://github.com/appium/ruby_lib/blob/fa3b19c9921cbb84d9fd91a097b8c85d485b60f7/lib/appium_lib/device/touch_actions.rb#L65)
|
1272
1311
|
|
1273
1312
|
> def press(opts)
|
1274
1313
|
|
@@ -1281,7 +1320,7 @@ __Parameters:__
|
|
1281
1320
|
|
1282
1321
|
--
|
1283
1322
|
|
1284
|
-
##### [release](https://github.com/appium/ruby_lib/blob/
|
1323
|
+
##### [release](https://github.com/appium/ruby_lib/blob/fa3b19c9921cbb84d9fd91a097b8c85d485b60f7/lib/appium_lib/device/touch_actions.rb#L76)
|
1285
1324
|
|
1286
1325
|
> def release(opts = nil)
|
1287
1326
|
|
@@ -1293,7 +1332,7 @@ __Parameters:__
|
|
1293
1332
|
|
1294
1333
|
--
|
1295
1334
|
|
1296
|
-
##### [tap](https://github.com/appium/ruby_lib/blob/
|
1335
|
+
##### [tap](https://github.com/appium/ruby_lib/blob/fa3b19c9921cbb84d9fd91a097b8c85d485b60f7/lib/appium_lib/device/touch_actions.rb#L88)
|
1297
1336
|
|
1298
1337
|
> def tap(opts)
|
1299
1338
|
|
@@ -1306,7 +1345,7 @@ __Parameters:__
|
|
1306
1345
|
|
1307
1346
|
--
|
1308
1347
|
|
1309
|
-
##### [double_tap](https://github.com/appium/ruby_lib/blob/
|
1348
|
+
##### [double_tap](https://github.com/appium/ruby_lib/blob/fa3b19c9921cbb84d9fd91a097b8c85d485b60f7/lib/appium_lib/device/touch_actions.rb#L101)
|
1310
1349
|
|
1311
1350
|
> def double_tap(opts)
|
1312
1351
|
|
@@ -1318,7 +1357,7 @@ __Parameters:__
|
|
1318
1357
|
|
1319
1358
|
--
|
1320
1359
|
|
1321
|
-
##### [two_finger_tap](https://github.com/appium/ruby_lib/blob/
|
1360
|
+
##### [two_finger_tap](https://github.com/appium/ruby_lib/blob/fa3b19c9921cbb84d9fd91a097b8c85d485b60f7/lib/appium_lib/device/touch_actions.rb#L112)
|
1322
1361
|
|
1323
1362
|
> def two_finger_tap(opts)
|
1324
1363
|
|
@@ -1330,7 +1369,7 @@ __Parameters:__
|
|
1330
1369
|
|
1331
1370
|
--
|
1332
1371
|
|
1333
|
-
##### [wait](https://github.com/appium/ruby_lib/blob/
|
1372
|
+
##### [wait](https://github.com/appium/ruby_lib/blob/fa3b19c9921cbb84d9fd91a097b8c85d485b60f7/lib/appium_lib/device/touch_actions.rb#L120)
|
1334
1373
|
|
1335
1374
|
> def wait(milliseconds)
|
1336
1375
|
|
@@ -1342,7 +1381,7 @@ __Parameters:__
|
|
1342
1381
|
|
1343
1382
|
--
|
1344
1383
|
|
1345
|
-
##### [swipe](https://github.com/appium/ruby_lib/blob/
|
1384
|
+
##### [swipe](https://github.com/appium/ruby_lib/blob/fa3b19c9921cbb84d9fd91a097b8c85d485b60f7/lib/appium_lib/device/touch_actions.rb#L143)
|
1346
1385
|
|
1347
1386
|
> def swipe(opts, ele = nil)
|
1348
1387
|
|
@@ -1363,7 +1402,7 @@ __Parameters:__
|
|
1363
1402
|
|
1364
1403
|
--
|
1365
1404
|
|
1366
|
-
##### [perform](https://github.com/appium/ruby_lib/blob/
|
1405
|
+
##### [perform](https://github.com/appium/ruby_lib/blob/fa3b19c9921cbb84d9fd91a097b8c85d485b60f7/lib/appium_lib/device/touch_actions.rb#L168)
|
1367
1406
|
|
1368
1407
|
> def perform
|
1369
1408
|
|
@@ -1371,7 +1410,7 @@ Ask the driver to perform all actions in this action chain.
|
|
1371
1410
|
|
1372
1411
|
--
|
1373
1412
|
|
1374
|
-
##### [cancel](https://github.com/appium/ruby_lib/blob/
|
1413
|
+
##### [cancel](https://github.com/appium/ruby_lib/blob/fa3b19c9921cbb84d9fd91a097b8c85d485b60f7/lib/appium_lib/device/touch_actions.rb#L174)
|
1375
1414
|
|
1376
1415
|
> def cancel
|
1377
1416
|
|
@@ -1379,7 +1418,7 @@ Does nothing, currently.
|
|
1379
1418
|
|
1380
1419
|
--
|
1381
1420
|
|
1382
|
-
##### [swipe_coordinates](https://github.com/appium/ruby_lib/blob/
|
1421
|
+
##### [swipe_coordinates](https://github.com/appium/ruby_lib/blob/fa3b19c9921cbb84d9fd91a097b8c85d485b60f7/lib/appium_lib/device/touch_actions.rb#L180)
|
1383
1422
|
|
1384
1423
|
> def swipe_coordinates(end_x: nil, end_y: nil, offset_x: nil, offset_y: nil)
|
1385
1424
|
|
@@ -1387,7 +1426,7 @@ Does nothing, currently.
|
|
1387
1426
|
|
1388
1427
|
--
|
1389
1428
|
|
1390
|
-
##### [chain_method](https://github.com/appium/ruby_lib/blob/
|
1429
|
+
##### [chain_method](https://github.com/appium/ruby_lib/blob/fa3b19c9921cbb84d9fd91a097b8c85d485b60f7/lib/appium_lib/device/touch_actions.rb#L198)
|
1391
1430
|
|
1392
1431
|
> def chain_method(method, args = nil)
|
1393
1432
|
|
@@ -1395,7 +1434,7 @@ Does nothing, currently.
|
|
1395
1434
|
|
1396
1435
|
--
|
1397
1436
|
|
1398
|
-
##### [args_with_ele_ref](https://github.com/appium/ruby_lib/blob/
|
1437
|
+
##### [args_with_ele_ref](https://github.com/appium/ruby_lib/blob/fa3b19c9921cbb84d9fd91a097b8c85d485b60f7/lib/appium_lib/device/touch_actions.rb#L204)
|
1399
1438
|
|
1400
1439
|
> def args_with_ele_ref(args)
|
1401
1440
|
|
@@ -1403,7 +1442,7 @@ Does nothing, currently.
|
|
1403
1442
|
|
1404
1443
|
--
|
1405
1444
|
|
1406
|
-
##### [_generic_wait](https://github.com/appium/ruby_lib/blob/
|
1445
|
+
##### [_generic_wait](https://github.com/appium/ruby_lib/blob/fa3b19c9921cbb84d9fd91a097b8c85d485b60f7/lib/appium_lib/common/wait.rb#L9)
|
1407
1446
|
|
1408
1447
|
> def _generic_wait(opts = {})
|
1409
1448
|
|
@@ -1412,7 +1451,7 @@ https://github.com/SeleniumHQ/selenium/blob/cf501dda3f0ed12233de51ce8170c0e8090f
|
|
1412
1451
|
|
1413
1452
|
--
|
1414
1453
|
|
1415
|
-
##### [_process_wait_opts](https://github.com/appium/ruby_lib/blob/
|
1454
|
+
##### [_process_wait_opts](https://github.com/appium/ruby_lib/blob/fa3b19c9921cbb84d9fd91a097b8c85d485b60f7/lib/appium_lib/common/wait.rb#L48)
|
1416
1455
|
|
1417
1456
|
> def _process_wait_opts(opts)
|
1418
1457
|
|
@@ -1420,7 +1459,7 @@ process opts before calling _generic_wait
|
|
1420
1459
|
|
1421
1460
|
--
|
1422
1461
|
|
1423
|
-
##### [wait_true](https://github.com/appium/ruby_lib/blob/
|
1462
|
+
##### [wait_true](https://github.com/appium/ruby_lib/blob/fa3b19c9921cbb84d9fd91a097b8c85d485b60f7/lib/appium_lib/common/wait.rb#L69)
|
1424
1463
|
|
1425
1464
|
> def wait_true(opts = {}, &block)
|
1426
1465
|
|
@@ -1440,7 +1479,7 @@ __Parameters:__
|
|
1440
1479
|
|
1441
1480
|
--
|
1442
1481
|
|
1443
|
-
##### [wait](https://github.com/appium/ruby_lib/blob/
|
1482
|
+
##### [wait](https://github.com/appium/ruby_lib/blob/fa3b19c9921cbb84d9fd91a097b8c85d485b60f7/lib/appium_lib/common/wait.rb#L87)
|
1444
1483
|
|
1445
1484
|
> def wait(opts = {}, &block)
|
1446
1485
|
|
@@ -1458,7 +1497,7 @@ __Parameters:__
|
|
1458
1497
|
|
1459
1498
|
--
|
1460
1499
|
|
1461
|
-
##### [ignore](https://github.com/appium/ruby_lib/blob/
|
1500
|
+
##### [ignore](https://github.com/appium/ruby_lib/blob/fa3b19c9921cbb84d9fd91a097b8c85d485b60f7/lib/appium_lib/common/helper.rb#L24)
|
1462
1501
|
|
1463
1502
|
> def ignore
|
1464
1503
|
|
@@ -1466,7 +1505,7 @@ Return yield and ignore any exceptions.
|
|
1466
1505
|
|
1467
1506
|
--
|
1468
1507
|
|
1469
|
-
##### [back](https://github.com/appium/ruby_lib/blob/
|
1508
|
+
##### [back](https://github.com/appium/ruby_lib/blob/fa3b19c9921cbb84d9fd91a097b8c85d485b60f7/lib/appium_lib/common/helper.rb#L31)
|
1470
1509
|
|
1471
1510
|
> def back
|
1472
1511
|
|
@@ -1478,7 +1517,7 @@ __Returns:__
|
|
1478
1517
|
|
1479
1518
|
--
|
1480
1519
|
|
1481
|
-
##### [session_id](https://github.com/appium/ruby_lib/blob/
|
1520
|
+
##### [session_id](https://github.com/appium/ruby_lib/blob/fa3b19c9921cbb84d9fd91a097b8c85d485b60f7/lib/appium_lib/common/helper.rb#L36)
|
1482
1521
|
|
1483
1522
|
> def session_id
|
1484
1523
|
|
@@ -1486,7 +1525,7 @@ For Sauce Labs reporting. Returns the current session id.
|
|
1486
1525
|
|
1487
1526
|
--
|
1488
1527
|
|
1489
|
-
##### [xpath](https://github.com/appium/ruby_lib/blob/
|
1528
|
+
##### [xpath](https://github.com/appium/ruby_lib/blob/fa3b19c9921cbb84d9fd91a097b8c85d485b60f7/lib/appium_lib/common/helper.rb#L44)
|
1490
1529
|
|
1491
1530
|
> def xpath(xpath_str)
|
1492
1531
|
|
@@ -1502,7 +1541,7 @@ __Returns:__
|
|
1502
1541
|
|
1503
1542
|
--
|
1504
1543
|
|
1505
|
-
##### [xpaths](https://github.com/appium/ruby_lib/blob/
|
1544
|
+
##### [xpaths](https://github.com/appium/ruby_lib/blob/fa3b19c9921cbb84d9fd91a097b8c85d485b60f7/lib/appium_lib/common/helper.rb#L52)
|
1506
1545
|
|
1507
1546
|
> def xpaths(xpath_str)
|
1508
1547
|
|
@@ -1518,7 +1557,7 @@ __Returns:__
|
|
1518
1557
|
|
1519
1558
|
--
|
1520
1559
|
|
1521
|
-
##### [_print_source](https://github.com/appium/ruby_lib/blob/
|
1560
|
+
##### [_print_source](https://github.com/appium/ruby_lib/blob/fa3b19c9921cbb84d9fd91a097b8c85d485b60f7/lib/appium_lib/common/helper.rb#L56)
|
1522
1561
|
|
1523
1562
|
> def _print_source(source)
|
1524
1563
|
|
@@ -1526,7 +1565,7 @@ __Returns:__
|
|
1526
1565
|
|
1527
1566
|
--
|
1528
1567
|
|
1529
|
-
##### [result](https://github.com/appium/ruby_lib/blob/
|
1568
|
+
##### [result](https://github.com/appium/ruby_lib/blob/fa3b19c9921cbb84d9fd91a097b8c85d485b60f7/lib/appium_lib/common/helper.rb#L69)
|
1530
1569
|
|
1531
1570
|
> def result
|
1532
1571
|
|
@@ -1534,7 +1573,7 @@ Returns the value of attribute result
|
|
1534
1573
|
|
1535
1574
|
--
|
1536
1575
|
|
1537
|
-
##### [initialize](https://github.com/appium/ruby_lib/blob/
|
1576
|
+
##### [initialize](https://github.com/appium/ruby_lib/blob/fa3b19c9921cbb84d9fd91a097b8c85d485b60f7/lib/appium_lib/common/helper.rb#L71)
|
1538
1577
|
|
1539
1578
|
> def initialize
|
1540
1579
|
|
@@ -1546,7 +1585,7 @@ __Returns:__
|
|
1546
1585
|
|
1547
1586
|
--
|
1548
1587
|
|
1549
|
-
##### [reset](https://github.com/appium/ruby_lib/blob/
|
1588
|
+
##### [reset](https://github.com/appium/ruby_lib/blob/fa3b19c9921cbb84d9fd91a097b8c85d485b60f7/lib/appium_lib/common/helper.rb#L75)
|
1550
1589
|
|
1551
1590
|
> def reset
|
1552
1591
|
|
@@ -1554,7 +1593,7 @@ __Returns:__
|
|
1554
1593
|
|
1555
1594
|
--
|
1556
1595
|
|
1557
|
-
##### [start_element](https://github.com/appium/ruby_lib/blob/
|
1596
|
+
##### [start_element](https://github.com/appium/ruby_lib/blob/fa3b19c9921cbb84d9fd91a097b8c85d485b60f7/lib/appium_lib/common/helper.rb#L80)
|
1558
1597
|
|
1559
1598
|
> def start_element(name, attrs = [])
|
1560
1599
|
|
@@ -1562,7 +1601,7 @@ http://nokogiri.org/Nokogiri/XML/SAX/Document.html
|
|
1562
1601
|
|
1563
1602
|
--
|
1564
1603
|
|
1565
|
-
##### [formatted_result](https://github.com/appium/ruby_lib/blob/
|
1604
|
+
##### [formatted_result](https://github.com/appium/ruby_lib/blob/fa3b19c9921cbb84d9fd91a097b8c85d485b60f7/lib/appium_lib/common/helper.rb#L86)
|
1566
1605
|
|
1567
1606
|
> def formatted_result
|
1568
1607
|
|
@@ -1570,7 +1609,7 @@ http://nokogiri.org/Nokogiri/XML/SAX/Document.html
|
|
1570
1609
|
|
1571
1610
|
--
|
1572
1611
|
|
1573
|
-
##### [get_page_class](https://github.com/appium/ruby_lib/blob/
|
1612
|
+
##### [get_page_class](https://github.com/appium/ruby_lib/blob/fa3b19c9921cbb84d9fd91a097b8c85d485b60f7/lib/appium_lib/common/helper.rb#L97)
|
1574
1613
|
|
1575
1614
|
> def get_page_class
|
1576
1615
|
|
@@ -1578,7 +1617,7 @@ Returns a string of class counts of visible elements.
|
|
1578
1617
|
|
1579
1618
|
--
|
1580
1619
|
|
1581
|
-
##### [page_class](https://github.com/appium/ruby_lib/blob/
|
1620
|
+
##### [page_class](https://github.com/appium/ruby_lib/blob/fa3b19c9921cbb84d9fd91a097b8c85d485b60f7/lib/appium_lib/common/helper.rb#L108)
|
1582
1621
|
|
1583
1622
|
> def page_class
|
1584
1623
|
|
@@ -1587,7 +1626,7 @@ Useful for appium_console.
|
|
1587
1626
|
|
1588
1627
|
--
|
1589
1628
|
|
1590
|
-
##### [px_to_window_rel](https://github.com/appium/ruby_lib/blob/
|
1629
|
+
##### [px_to_window_rel](https://github.com/appium/ruby_lib/blob/fa3b19c9921cbb84d9fd91a097b8c85d485b60f7/lib/appium_lib/common/helper.rb#L118)
|
1591
1630
|
|
1592
1631
|
> def px_to_window_rel(opts = {})
|
1593
1632
|
|
@@ -1599,7 +1638,7 @@ px_to_window_rel x: 50, y: 150
|
|
1599
1638
|
|
1600
1639
|
--
|
1601
1640
|
|
1602
|
-
##### [xml_keys](https://github.com/appium/ruby_lib/blob/
|
1641
|
+
##### [xml_keys](https://github.com/appium/ruby_lib/blob/fa3b19c9921cbb84d9fd91a097b8c85d485b60f7/lib/appium_lib/common/helper.rb#L137)
|
1603
1642
|
|
1604
1643
|
> def xml_keys(target)
|
1605
1644
|
|
@@ -1615,7 +1654,7 @@ __Returns:__
|
|
1615
1654
|
|
1616
1655
|
--
|
1617
1656
|
|
1618
|
-
##### [xml_values](https://github.com/appium/ruby_lib/blob/
|
1657
|
+
##### [xml_values](https://github.com/appium/ruby_lib/blob/fa3b19c9921cbb84d9fd91a097b8c85d485b60f7/lib/appium_lib/common/helper.rb#L145)
|
1619
1658
|
|
1620
1659
|
> def xml_values(target)
|
1621
1660
|
|
@@ -1631,7 +1670,7 @@ __Returns:__
|
|
1631
1670
|
|
1632
1671
|
--
|
1633
1672
|
|
1634
|
-
##### [resolve_id](https://github.com/appium/ruby_lib/blob/
|
1673
|
+
##### [resolve_id](https://github.com/appium/ruby_lib/blob/fa3b19c9921cbb84d9fd91a097b8c85d485b60f7/lib/appium_lib/common/helper.rb#L153)
|
1635
1674
|
|
1636
1675
|
> def resolve_id(id)
|
1637
1676
|
|
@@ -1647,7 +1686,7 @@ __Returns:__
|
|
1647
1686
|
|
1648
1687
|
--
|
1649
1688
|
|
1650
|
-
##### [filter](https://github.com/appium/ruby_lib/blob/
|
1689
|
+
##### [filter](https://github.com/appium/ruby_lib/blob/fa3b19c9921cbb84d9fd91a097b8c85d485b60f7/lib/appium_lib/common/helper.rb#L159)
|
1651
1690
|
|
1652
1691
|
> def filter
|
1653
1692
|
|
@@ -1655,7 +1694,7 @@ Returns the value of attribute filter
|
|
1655
1694
|
|
1656
1695
|
--
|
1657
1696
|
|
1658
|
-
##### [filter=](https://github.com/appium/ruby_lib/blob/
|
1697
|
+
##### [filter=](https://github.com/appium/ruby_lib/blob/fa3b19c9921cbb84d9fd91a097b8c85d485b60f7/lib/appium_lib/common/helper.rb#L162)
|
1659
1698
|
|
1660
1699
|
> def filter=(value)
|
1661
1700
|
|
@@ -1663,7 +1702,7 @@ convert to string to support symbols
|
|
1663
1702
|
|
1664
1703
|
--
|
1665
1704
|
|
1666
|
-
##### [initialize](https://github.com/appium/ruby_lib/blob/
|
1705
|
+
##### [initialize](https://github.com/appium/ruby_lib/blob/fa3b19c9921cbb84d9fd91a097b8c85d485b60f7/lib/appium_lib/common/helper.rb#L168)
|
1667
1706
|
|
1668
1707
|
> def initialize
|
1669
1708
|
|
@@ -1675,7 +1714,7 @@ __Returns:__
|
|
1675
1714
|
|
1676
1715
|
--
|
1677
1716
|
|
1678
|
-
##### [reset](https://github.com/appium/ruby_lib/blob/
|
1717
|
+
##### [reset](https://github.com/appium/ruby_lib/blob/fa3b19c9921cbb84d9fd91a097b8c85d485b60f7/lib/appium_lib/common/helper.rb#L173)
|
1679
1718
|
|
1680
1719
|
> def reset
|
1681
1720
|
|
@@ -1683,7 +1722,7 @@ __Returns:__
|
|
1683
1722
|
|
1684
1723
|
--
|
1685
1724
|
|
1686
|
-
##### [result](https://github.com/appium/ruby_lib/blob/
|
1725
|
+
##### [result](https://github.com/appium/ruby_lib/blob/fa3b19c9921cbb84d9fd91a097b8c85d485b60f7/lib/appium_lib/common/helper.rb#L179)
|
1687
1726
|
|
1688
1727
|
> def result
|
1689
1728
|
|
@@ -1691,7 +1730,7 @@ __Returns:__
|
|
1691
1730
|
|
1692
1731
|
--
|
1693
1732
|
|
1694
|
-
##### [start_element](https://github.com/appium/ruby_lib/blob/
|
1733
|
+
##### [start_element](https://github.com/appium/ruby_lib/blob/fa3b19c9921cbb84d9fd91a097b8c85d485b60f7/lib/appium_lib/common/helper.rb#L195)
|
1695
1734
|
|
1696
1735
|
> def start_element(name, attrs = [])
|
1697
1736
|
|
@@ -1699,7 +1738,7 @@ __Returns:__
|
|
1699
1738
|
|
1700
1739
|
--
|
1701
1740
|
|
1702
|
-
##### [end_element](https://github.com/appium/ruby_lib/blob/
|
1741
|
+
##### [end_element](https://github.com/appium/ruby_lib/blob/fa3b19c9921cbb84d9fd91a097b8c85d485b60f7/lib/appium_lib/common/helper.rb#L204)
|
1703
1742
|
|
1704
1743
|
> def end_element(name)
|
1705
1744
|
|
@@ -1707,7 +1746,7 @@ __Returns:__
|
|
1707
1746
|
|
1708
1747
|
--
|
1709
1748
|
|
1710
|
-
##### [characters](https://github.com/appium/ruby_lib/blob/
|
1749
|
+
##### [characters](https://github.com/appium/ruby_lib/blob/fa3b19c9921cbb84d9fd91a097b8c85d485b60f7/lib/appium_lib/common/helper.rb#L210)
|
1711
1750
|
|
1712
1751
|
> def characters(chars)
|
1713
1752
|
|
@@ -1715,7 +1754,7 @@ __Returns:__
|
|
1715
1754
|
|
1716
1755
|
--
|
1717
1756
|
|
1718
|
-
##### [_no_such_element](https://github.com/appium/ruby_lib/blob/
|
1757
|
+
##### [_no_such_element](https://github.com/appium/ruby_lib/blob/fa3b19c9921cbb84d9fd91a097b8c85d485b60f7/lib/appium_lib/common/helper.rb#L217)
|
1719
1758
|
|
1720
1759
|
> def _no_such_element
|
1721
1760
|
|
@@ -1723,7 +1762,7 @@ __Returns:__
|
|
1723
1762
|
|
1724
1763
|
--
|
1725
1764
|
|
1726
|
-
##### [COMMAND_NO_ARG](https://github.com/appium/ruby_lib/blob/
|
1765
|
+
##### [COMMAND_NO_ARG](https://github.com/appium/ruby_lib/blob/fa3b19c9921cbb84d9fd91a097b8c85d485b60f7/lib/appium_lib/common/command.rb#L4)
|
1727
1766
|
|
1728
1767
|
> COMMAND_NO_ARG = {
|
1729
1768
|
|
@@ -1731,7 +1770,7 @@ __Returns:__
|
|
1731
1770
|
|
1732
1771
|
--
|
1733
1772
|
|
1734
|
-
##### [COMMAND](https://github.com/appium/ruby_lib/blob/
|
1773
|
+
##### [COMMAND](https://github.com/appium/ruby_lib/blob/fa3b19c9921cbb84d9fd91a097b8c85d485b60f7/lib/appium_lib/common/command.rb#L24)
|
1735
1774
|
|
1736
1775
|
> COMMAND = {
|
1737
1776
|
|
@@ -1739,7 +1778,7 @@ __Returns:__
|
|
1739
1778
|
|
1740
1779
|
--
|
1741
1780
|
|
1742
|
-
##### [window_size](https://github.com/appium/ruby_lib/blob/
|
1781
|
+
##### [window_size](https://github.com/appium/ruby_lib/blob/fa3b19c9921cbb84d9fd91a097b8c85d485b60f7/lib/appium_lib/common/element/window.rb#L5)
|
1743
1782
|
|
1744
1783
|
> def window_size
|
1745
1784
|
|
@@ -1747,7 +1786,7 @@ Get the window's size
|
|
1747
1786
|
|
1748
1787
|
--
|
1749
1788
|
|
1750
|
-
##### [FINDERS](https://github.com/appium/ruby_lib/blob/
|
1789
|
+
##### [FINDERS](https://github.com/appium/ruby_lib/blob/fa3b19c9921cbb84d9fd91a097b8c85d485b60f7/lib/appium_lib/common/search_context.rb#L5)
|
1751
1790
|
|
1752
1791
|
> FINDERS = {
|
1753
1792
|
|
@@ -1755,7 +1794,7 @@ rubocop:disable Style/MutableConstant
|
|
1755
1794
|
|
1756
1795
|
--
|
1757
1796
|
|
1758
|
-
##### [filter](https://github.com/appium/ruby_lib/blob/
|
1797
|
+
##### [filter](https://github.com/appium/ruby_lib/blob/fa3b19c9921cbb84d9fd91a097b8c85d485b60f7/lib/appium_lib/ios/helper.rb#L4) ios
|
1759
1798
|
|
1760
1799
|
> def filter
|
1761
1800
|
|
@@ -1763,7 +1802,7 @@ Returns the value of attribute filter
|
|
1763
1802
|
|
1764
1803
|
--
|
1765
1804
|
|
1766
|
-
##### [filter=](https://github.com/appium/ruby_lib/blob/
|
1805
|
+
##### [filter=](https://github.com/appium/ruby_lib/blob/fa3b19c9921cbb84d9fd91a097b8c85d485b60f7/lib/appium_lib/ios/helper.rb#L4) ios
|
1767
1806
|
|
1768
1807
|
> def filter=(value)
|
1769
1808
|
|
@@ -1775,7 +1814,7 @@ __Parameters:__
|
|
1775
1814
|
|
1776
1815
|
--
|
1777
1816
|
|
1778
|
-
##### [start_element](https://github.com/appium/ruby_lib/blob/
|
1817
|
+
##### [start_element](https://github.com/appium/ruby_lib/blob/fa3b19c9921cbb84d9fd91a097b8c85d485b60f7/lib/appium_lib/ios/helper.rb#L6) ios
|
1779
1818
|
|
1780
1819
|
> def start_element(type, attrs = [])
|
1781
1820
|
|
@@ -1783,7 +1822,7 @@ __Parameters:__
|
|
1783
1822
|
|
1784
1823
|
--
|
1785
1824
|
|
1786
|
-
##### [_print_attr](https://github.com/appium/ruby_lib/blob/
|
1825
|
+
##### [_print_attr](https://github.com/appium/ruby_lib/blob/fa3b19c9921cbb84d9fd91a097b8c85d485b60f7/lib/appium_lib/ios/helper.rb#L15) ios
|
1787
1826
|
|
1788
1827
|
> def _print_attr(type, name, label, value, hint)
|
1789
1828
|
|
@@ -1791,7 +1830,7 @@ __Parameters:__
|
|
1791
1830
|
|
1792
1831
|
--
|
1793
1832
|
|
1794
|
-
##### [ios_password](https://github.com/appium/ruby_lib/blob/
|
1833
|
+
##### [ios_password](https://github.com/appium/ruby_lib/blob/fa3b19c9921cbb84d9fd91a097b8c85d485b60f7/lib/appium_lib/ios/helper.rb#L41) ios
|
1795
1834
|
|
1796
1835
|
> def ios_password(length = 1)
|
1797
1836
|
|
@@ -1809,7 +1848,7 @@ __Returns:__
|
|
1809
1848
|
|
1810
1849
|
--
|
1811
1850
|
|
1812
|
-
##### [get_page](https://github.com/appium/ruby_lib/blob/
|
1851
|
+
##### [get_page](https://github.com/appium/ruby_lib/blob/fa3b19c9921cbb84d9fd91a097b8c85d485b60f7/lib/appium_lib/ios/helper.rb#L53) ios
|
1813
1852
|
|
1814
1853
|
> def get_page(element = source_window(0), class_name = nil)
|
1815
1854
|
|
@@ -1830,7 +1869,7 @@ __Returns:__
|
|
1830
1869
|
|
1831
1870
|
--
|
1832
1871
|
|
1833
|
-
##### [page](https://github.com/appium/ruby_lib/blob/
|
1872
|
+
##### [page](https://github.com/appium/ruby_lib/blob/fa3b19c9921cbb84d9fd91a097b8c85d485b60f7/lib/appium_lib/ios/helper.rb#L139) ios
|
1834
1873
|
|
1835
1874
|
> def page(opts = {})
|
1836
1875
|
|
@@ -1856,7 +1895,7 @@ __Returns:__
|
|
1856
1895
|
|
1857
1896
|
--
|
1858
1897
|
|
1859
|
-
##### [source_window](https://github.com/appium/ruby_lib/blob/
|
1898
|
+
##### [source_window](https://github.com/appium/ruby_lib/blob/fa3b19c9921cbb84d9fd91a097b8c85d485b60f7/lib/appium_lib/ios/helper.rb#L170) ios
|
1860
1899
|
|
1861
1900
|
> def source_window(_window_number = 0)
|
1862
1901
|
|
@@ -1872,7 +1911,7 @@ __Returns:__
|
|
1872
1911
|
|
1873
1912
|
--
|
1874
1913
|
|
1875
|
-
##### [page_window](https://github.com/appium/ruby_lib/blob/
|
1914
|
+
##### [page_window](https://github.com/appium/ruby_lib/blob/fa3b19c9921cbb84d9fd91a097b8c85d485b60f7/lib/appium_lib/ios/helper.rb#L185) ios
|
1876
1915
|
|
1877
1916
|
> def page_window(window_number = 0)
|
1878
1917
|
|
@@ -1890,7 +1929,7 @@ __Returns:__
|
|
1890
1929
|
|
1891
1930
|
--
|
1892
1931
|
|
1893
|
-
##### [id](https://github.com/appium/ruby_lib/blob/
|
1932
|
+
##### [id](https://github.com/appium/ruby_lib/blob/fa3b19c9921cbb84d9fd91a097b8c85d485b60f7/lib/appium_lib/ios/helper.rb#L193) ios
|
1894
1933
|
|
1895
1934
|
> def id(id)
|
1896
1935
|
|
@@ -1906,7 +1945,7 @@ __Returns:__
|
|
1906
1945
|
|
1907
1946
|
--
|
1908
1947
|
|
1909
|
-
##### [ios_version](https://github.com/appium/ruby_lib/blob/
|
1948
|
+
##### [ios_version](https://github.com/appium/ruby_lib/blob/fa3b19c9921cbb84d9fd91a097b8c85d485b60f7/lib/appium_lib/ios/helper.rb#L199) ios
|
1910
1949
|
|
1911
1950
|
> def ios_version
|
1912
1951
|
|
@@ -1918,7 +1957,7 @@ __Returns:__
|
|
1918
1957
|
|
1919
1958
|
--
|
1920
1959
|
|
1921
|
-
##### [ele_index](https://github.com/appium/ruby_lib/blob/
|
1960
|
+
##### [ele_index](https://github.com/appium/ruby_lib/blob/fa3b19c9921cbb84d9fd91a097b8c85d485b60f7/lib/appium_lib/ios/helper.rb#L212) ios
|
1922
1961
|
|
1923
1962
|
> def ele_index(class_name, index)
|
1924
1963
|
|
@@ -1936,7 +1975,7 @@ __Returns:__
|
|
1936
1975
|
|
1937
1976
|
--
|
1938
1977
|
|
1939
|
-
##### [find_ele_by_attr](https://github.com/appium/ruby_lib/blob/
|
1978
|
+
##### [find_ele_by_attr](https://github.com/appium/ruby_lib/blob/fa3b19c9921cbb84d9fd91a097b8c85d485b60f7/lib/appium_lib/ios/helper.rb#L248) ios
|
1940
1979
|
|
1941
1980
|
> def find_ele_by_attr(class_name, attr, value)
|
1942
1981
|
|
@@ -1958,7 +1997,7 @@ __Returns:__
|
|
1958
1997
|
|
1959
1998
|
--
|
1960
1999
|
|
1961
|
-
##### [find_eles_by_attr](https://github.com/appium/ruby_lib/blob/
|
2000
|
+
##### [find_eles_by_attr](https://github.com/appium/ruby_lib/blob/fa3b19c9921cbb84d9fd91a097b8c85d485b60f7/lib/appium_lib/ios/helper.rb#L259) ios
|
1962
2001
|
|
1963
2002
|
> def find_eles_by_attr(class_name, attr, value)
|
1964
2003
|
|
@@ -1980,7 +2019,7 @@ __Returns:__
|
|
1980
2019
|
|
1981
2020
|
--
|
1982
2021
|
|
1983
|
-
##### [find_ele_by_attr_include](https://github.com/appium/ruby_lib/blob/
|
2022
|
+
##### [find_ele_by_attr_include](https://github.com/appium/ruby_lib/blob/fa3b19c9921cbb84d9fd91a097b8c85d485b60f7/lib/appium_lib/ios/helper.rb#L282) ios
|
1984
2023
|
|
1985
2024
|
> def find_ele_by_attr_include(class_name, attr, value)
|
1986
2025
|
|
@@ -2001,7 +2040,7 @@ __Returns:__
|
|
2001
2040
|
|
2002
2041
|
--
|
2003
2042
|
|
2004
|
-
##### [find_eles_by_attr_include](https://github.com/appium/ruby_lib/blob/
|
2043
|
+
##### [find_eles_by_attr_include](https://github.com/appium/ruby_lib/blob/fa3b19c9921cbb84d9fd91a097b8c85d485b60f7/lib/appium_lib/ios/helper.rb#L292) ios
|
2005
2044
|
|
2006
2045
|
> def find_eles_by_attr_include(class_name, attr, value)
|
2007
2046
|
|
@@ -2022,7 +2061,7 @@ __Returns:__
|
|
2022
2061
|
|
2023
2062
|
--
|
2024
2063
|
|
2025
|
-
##### [first_ele](https://github.com/appium/ruby_lib/blob/
|
2064
|
+
##### [first_ele](https://github.com/appium/ruby_lib/blob/fa3b19c9921cbb84d9fd91a097b8c85d485b60f7/lib/appium_lib/ios/helper.rb#L299) ios
|
2026
2065
|
|
2027
2066
|
> def first_ele(class_name)
|
2028
2067
|
|
@@ -2038,7 +2077,7 @@ __Returns:__
|
|
2038
2077
|
|
2039
2078
|
--
|
2040
2079
|
|
2041
|
-
##### [last_ele](https://github.com/appium/ruby_lib/blob/
|
2080
|
+
##### [last_ele](https://github.com/appium/ruby_lib/blob/fa3b19c9921cbb84d9fd91a097b8c85d485b60f7/lib/appium_lib/ios/helper.rb#L306) ios
|
2042
2081
|
|
2043
2082
|
> def last_ele(class_name)
|
2044
2083
|
|
@@ -2054,7 +2093,7 @@ __Returns:__
|
|
2054
2093
|
|
2055
2094
|
--
|
2056
2095
|
|
2057
|
-
##### [tag](https://github.com/appium/ruby_lib/blob/
|
2096
|
+
##### [tag](https://github.com/appium/ruby_lib/blob/fa3b19c9921cbb84d9fd91a097b8c85d485b60f7/lib/appium_lib/ios/helper.rb#L320) ios
|
2058
2097
|
|
2059
2098
|
> def tag(class_name)
|
2060
2099
|
|
@@ -2070,7 +2109,7 @@ __Returns:__
|
|
2070
2109
|
|
2071
2110
|
--
|
2072
2111
|
|
2073
|
-
##### [tags](https://github.com/appium/ruby_lib/blob/
|
2112
|
+
##### [tags](https://github.com/appium/ruby_lib/blob/fa3b19c9921cbb84d9fd91a097b8c85d485b60f7/lib/appium_lib/ios/helper.rb#L332) ios
|
2074
2113
|
|
2075
2114
|
> def tags(class_name)
|
2076
2115
|
|
@@ -2086,7 +2125,7 @@ __Returns:__
|
|
2086
2125
|
|
2087
2126
|
--
|
2088
2127
|
|
2089
|
-
##### [ele_by_json_visible_contains](https://github.com/appium/ruby_lib/blob/
|
2128
|
+
##### [ele_by_json_visible_contains](https://github.com/appium/ruby_lib/blob/fa3b19c9921cbb84d9fd91a097b8c85d485b60f7/lib/appium_lib/ios/helper.rb#L370) ios
|
2090
2129
|
|
2091
2130
|
> def ele_by_json_visible_contains(element, value)
|
2092
2131
|
|
@@ -2105,7 +2144,7 @@ __Returns:__
|
|
2105
2144
|
|
2106
2145
|
--
|
2107
2146
|
|
2108
|
-
##### [eles_by_json_visible_contains](https://github.com/appium/ruby_lib/blob/
|
2147
|
+
##### [eles_by_json_visible_contains](https://github.com/appium/ruby_lib/blob/fa3b19c9921cbb84d9fd91a097b8c85d485b60f7/lib/appium_lib/ios/helper.rb#L379) ios
|
2109
2148
|
|
2110
2149
|
> def eles_by_json_visible_contains(element, value)
|
2111
2150
|
|
@@ -2124,7 +2163,7 @@ __Returns:__
|
|
2124
2163
|
|
2125
2164
|
--
|
2126
2165
|
|
2127
|
-
##### [ele_by_json_visible_exact](https://github.com/appium/ruby_lib/blob/
|
2166
|
+
##### [ele_by_json_visible_exact](https://github.com/appium/ruby_lib/blob/fa3b19c9921cbb84d9fd91a097b8c85d485b60f7/lib/appium_lib/ios/helper.rb#L409) ios
|
2128
2167
|
|
2129
2168
|
> def ele_by_json_visible_exact(element, value)
|
2130
2169
|
|
@@ -2143,7 +2182,7 @@ __Returns:__
|
|
2143
2182
|
|
2144
2183
|
--
|
2145
2184
|
|
2146
|
-
##### [eles_by_json_visible_exact](https://github.com/appium/ruby_lib/blob/
|
2185
|
+
##### [eles_by_json_visible_exact](https://github.com/appium/ruby_lib/blob/fa3b19c9921cbb84d9fd91a097b8c85d485b60f7/lib/appium_lib/ios/helper.rb#L418) ios
|
2147
2186
|
|
2148
2187
|
> def eles_by_json_visible_exact(element, value)
|
2149
2188
|
|
@@ -2162,7 +2201,7 @@ __Returns:__
|
|
2162
2201
|
|
2163
2202
|
--
|
2164
2203
|
|
2165
|
-
##### [_all_pred](https://github.com/appium/ruby_lib/blob/
|
2204
|
+
##### [_all_pred](https://github.com/appium/ruby_lib/blob/fa3b19c9921cbb84d9fd91a097b8c85d485b60f7/lib/appium_lib/ios/helper.rb#L483) ios
|
2166
2205
|
|
2167
2206
|
> def _all_pred(opts)
|
2168
2207
|
|
@@ -2172,7 +2211,7 @@ visible - if true, only visible elements are returned. default true
|
|
2172
2211
|
|
2173
2212
|
--
|
2174
2213
|
|
2175
|
-
##### [ele_with_pred](https://github.com/appium/ruby_lib/blob/
|
2214
|
+
##### [ele_with_pred](https://github.com/appium/ruby_lib/blob/fa3b19c9921cbb84d9fd91a097b8c85d485b60f7/lib/appium_lib/ios/helper.rb#L496) ios
|
2176
2215
|
|
2177
2216
|
> def ele_with_pred(opts)
|
2178
2217
|
|
@@ -2188,7 +2227,7 @@ __Returns:__
|
|
2188
2227
|
|
2189
2228
|
--
|
2190
2229
|
|
2191
|
-
##### [eles_with_pred](https://github.com/appium/ruby_lib/blob/
|
2230
|
+
##### [eles_with_pred](https://github.com/appium/ruby_lib/blob/fa3b19c9921cbb84d9fd91a097b8c85d485b60f7/lib/appium_lib/ios/helper.rb#L507) ios
|
2192
2231
|
|
2193
2232
|
> def eles_with_pred(opts)
|
2194
2233
|
|
@@ -2204,7 +2243,7 @@ __Returns:__
|
|
2204
2243
|
|
2205
2244
|
--
|
2206
2245
|
|
2207
|
-
##### [source](https://github.com/appium/ruby_lib/blob/
|
2246
|
+
##### [source](https://github.com/appium/ruby_lib/blob/fa3b19c9921cbb84d9fd91a097b8c85d485b60f7/lib/appium_lib/ios/helper.rb#L513) ios
|
2208
2247
|
|
2209
2248
|
> def source
|
2210
2249
|
|
@@ -2216,7 +2255,7 @@ __Returns:__
|
|
2216
2255
|
|
2217
2256
|
--
|
2218
2257
|
|
2219
|
-
##### [_validate_object](https://github.com/appium/ruby_lib/blob/
|
2258
|
+
##### [_validate_object](https://github.com/appium/ruby_lib/blob/fa3b19c9921cbb84d9fd91a097b8c85d485b60f7/lib/appium_lib/ios/helper.rb#L517) ios
|
2220
2259
|
|
2221
2260
|
> def _validate_object(*objects)
|
2222
2261
|
|
@@ -2224,7 +2263,7 @@ __Returns:__
|
|
2224
2263
|
|
2225
2264
|
--
|
2226
2265
|
|
2227
|
-
##### [_by_json](https://github.com/appium/ruby_lib/blob/
|
2266
|
+
##### [_by_json](https://github.com/appium/ruby_lib/blob/fa3b19c9921cbb84d9fd91a097b8c85d485b60f7/lib/appium_lib/ios/helper.rb#L566) ios
|
2228
2267
|
|
2229
2268
|
> def _by_json(opts)
|
2230
2269
|
|
@@ -2259,7 +2298,7 @@ opts = {
|
|
2259
2298
|
|
2260
2299
|
--
|
2261
2300
|
|
2262
|
-
##### [eles_by_json](https://github.com/appium/ruby_lib/blob/
|
2301
|
+
##### [eles_by_json](https://github.com/appium/ruby_lib/blob/fa3b19c9921cbb84d9fd91a097b8c85d485b60f7/lib/appium_lib/ios/helper.rb#L616) ios
|
2263
2302
|
|
2264
2303
|
> def eles_by_json(opts)
|
2265
2304
|
|
@@ -2278,7 +2317,7 @@ eles_by_json({
|
|
2278
2317
|
|
2279
2318
|
--
|
2280
2319
|
|
2281
|
-
##### [ele_by_json](https://github.com/appium/ruby_lib/blob/
|
2320
|
+
##### [ele_by_json](https://github.com/appium/ruby_lib/blob/fa3b19c9921cbb84d9fd91a097b8c85d485b60f7/lib/appium_lib/ios/helper.rb#L622) ios
|
2282
2321
|
|
2283
2322
|
> def ele_by_json(opts)
|
2284
2323
|
|
@@ -2286,7 +2325,7 @@ see eles_by_json
|
|
2286
2325
|
|
2287
2326
|
--
|
2288
2327
|
|
2289
|
-
##### [get_source](https://github.com/appium/ruby_lib/blob/
|
2328
|
+
##### [get_source](https://github.com/appium/ruby_lib/blob/fa3b19c9921cbb84d9fd91a097b8c85d485b60f7/lib/appium_lib/ios/helper.rb#L632) ios
|
2290
2329
|
|
2291
2330
|
> def get_source
|
2292
2331
|
|
@@ -2299,7 +2338,7 @@ __Returns:__
|
|
2299
2338
|
|
2300
2339
|
--
|
2301
2340
|
|
2302
|
-
##### [UIAStaticText](https://github.com/appium/ruby_lib/blob/
|
2341
|
+
##### [UIAStaticText](https://github.com/appium/ruby_lib/blob/fa3b19c9921cbb84d9fd91a097b8c85d485b60f7/lib/appium_lib/ios/element/text.rb#L4) ios
|
2303
2342
|
|
2304
2343
|
> UIAStaticText = 'UIAStaticText'.freeze
|
2305
2344
|
|
@@ -2307,7 +2346,7 @@ __Returns:__
|
|
2307
2346
|
|
2308
2347
|
--
|
2309
2348
|
|
2310
|
-
##### [XCUIElementTypeStaticText](https://github.com/appium/ruby_lib/blob/
|
2349
|
+
##### [XCUIElementTypeStaticText](https://github.com/appium/ruby_lib/blob/fa3b19c9921cbb84d9fd91a097b8c85d485b60f7/lib/appium_lib/ios/element/text.rb#L5) ios
|
2311
2350
|
|
2312
2351
|
> XCUIElementTypeStaticText = 'XCUIElementTypeStaticText'.freeze
|
2313
2352
|
|
@@ -2315,7 +2354,7 @@ __Returns:__
|
|
2315
2354
|
|
2316
2355
|
--
|
2317
2356
|
|
2318
|
-
##### [static_text_class](https://github.com/appium/ruby_lib/blob/
|
2357
|
+
##### [static_text_class](https://github.com/appium/ruby_lib/blob/fa3b19c9921cbb84d9fd91a097b8c85d485b60f7/lib/appium_lib/ios/element/text.rb#L8) ios
|
2319
2358
|
|
2320
2359
|
> def static_text_class
|
2321
2360
|
|
@@ -2327,7 +2366,7 @@ __Returns:__
|
|
2327
2366
|
|
2328
2367
|
--
|
2329
2368
|
|
2330
|
-
##### [text](https://github.com/appium/ruby_lib/blob/
|
2369
|
+
##### [text](https://github.com/appium/ruby_lib/blob/fa3b19c9921cbb84d9fd91a097b8c85d485b60f7/lib/appium_lib/ios/element/text.rb#L16) ios
|
2331
2370
|
|
2332
2371
|
> def text(value)
|
2333
2372
|
|
@@ -2344,7 +2383,7 @@ __Returns:__
|
|
2344
2383
|
|
2345
2384
|
--
|
2346
2385
|
|
2347
|
-
##### [texts](https://github.com/appium/ruby_lib/blob/
|
2386
|
+
##### [texts](https://github.com/appium/ruby_lib/blob/fa3b19c9921cbb84d9fd91a097b8c85d485b60f7/lib/appium_lib/ios/element/text.rb#L30) ios
|
2348
2387
|
|
2349
2388
|
> def texts(value = false)
|
2350
2389
|
|
@@ -2361,7 +2400,7 @@ __Returns:__
|
|
2361
2400
|
|
2362
2401
|
--
|
2363
2402
|
|
2364
|
-
##### [first_text](https://github.com/appium/ruby_lib/blob/
|
2403
|
+
##### [first_text](https://github.com/appium/ruby_lib/blob/fa3b19c9921cbb84d9fd91a097b8c85d485b60f7/lib/appium_lib/ios/element/text.rb#L43) ios
|
2365
2404
|
|
2366
2405
|
> def first_text
|
2367
2406
|
|
@@ -2373,7 +2412,7 @@ __Returns:__
|
|
2373
2412
|
|
2374
2413
|
--
|
2375
2414
|
|
2376
|
-
##### [last_text](https://github.com/appium/ruby_lib/blob/
|
2415
|
+
##### [last_text](https://github.com/appium/ruby_lib/blob/fa3b19c9921cbb84d9fd91a097b8c85d485b60f7/lib/appium_lib/ios/element/text.rb#L49) ios
|
2377
2416
|
|
2378
2417
|
> def last_text
|
2379
2418
|
|
@@ -2385,7 +2424,7 @@ __Returns:__
|
|
2385
2424
|
|
2386
2425
|
--
|
2387
2426
|
|
2388
|
-
##### [text_exact](https://github.com/appium/ruby_lib/blob/
|
2427
|
+
##### [text_exact](https://github.com/appium/ruby_lib/blob/fa3b19c9921cbb84d9fd91a097b8c85d485b60f7/lib/appium_lib/ios/element/text.rb#L56) ios
|
2389
2428
|
|
2390
2429
|
> def text_exact(value)
|
2391
2430
|
|
@@ -2401,7 +2440,7 @@ __Returns:__
|
|
2401
2440
|
|
2402
2441
|
--
|
2403
2442
|
|
2404
|
-
##### [texts_exact](https://github.com/appium/ruby_lib/blob/
|
2443
|
+
##### [texts_exact](https://github.com/appium/ruby_lib/blob/fa3b19c9921cbb84d9fd91a097b8c85d485b60f7/lib/appium_lib/ios/element/text.rb#L67) ios
|
2405
2444
|
|
2406
2445
|
> def texts_exact(value)
|
2407
2446
|
|
@@ -2417,7 +2456,7 @@ __Returns:__
|
|
2417
2456
|
|
2418
2457
|
--
|
2419
2458
|
|
2420
|
-
##### [alert_accept](https://github.com/appium/ruby_lib/blob/
|
2459
|
+
##### [alert_accept](https://github.com/appium/ruby_lib/blob/fa3b19c9921cbb84d9fd91a097b8c85d485b60f7/lib/appium_lib/ios/element/alert.rb#L5) ios
|
2421
2460
|
|
2422
2461
|
> def alert_accept
|
2423
2462
|
|
@@ -2429,7 +2468,7 @@ __Returns:__
|
|
2429
2468
|
|
2430
2469
|
--
|
2431
2470
|
|
2432
|
-
##### [alert_dismiss](https://github.com/appium/ruby_lib/blob/
|
2471
|
+
##### [alert_dismiss](https://github.com/appium/ruby_lib/blob/fa3b19c9921cbb84d9fd91a097b8c85d485b60f7/lib/appium_lib/ios/element/alert.rb#L13) ios
|
2433
2472
|
|
2434
2473
|
> def alert_dismiss
|
2435
2474
|
|
@@ -2441,7 +2480,7 @@ __Returns:__
|
|
2441
2480
|
|
2442
2481
|
--
|
2443
2482
|
|
2444
|
-
##### [UIAButton](https://github.com/appium/ruby_lib/blob/
|
2483
|
+
##### [UIAButton](https://github.com/appium/ruby_lib/blob/fa3b19c9921cbb84d9fd91a097b8c85d485b60f7/lib/appium_lib/ios/element/button.rb#L4) ios
|
2445
2484
|
|
2446
2485
|
> UIAButton = 'UIAButton'.freeze
|
2447
2486
|
|
@@ -2449,7 +2488,7 @@ __Returns:__
|
|
2449
2488
|
|
2450
2489
|
--
|
2451
2490
|
|
2452
|
-
##### [XCUIElementTypeButton](https://github.com/appium/ruby_lib/blob/
|
2491
|
+
##### [XCUIElementTypeButton](https://github.com/appium/ruby_lib/blob/fa3b19c9921cbb84d9fd91a097b8c85d485b60f7/lib/appium_lib/ios/element/button.rb#L5) ios
|
2453
2492
|
|
2454
2493
|
> XCUIElementTypeButton = 'XCUIElementTypeButton'.freeze
|
2455
2494
|
|
@@ -2457,7 +2496,7 @@ __Returns:__
|
|
2457
2496
|
|
2458
2497
|
--
|
2459
2498
|
|
2460
|
-
##### [button_class](https://github.com/appium/ruby_lib/blob/
|
2499
|
+
##### [button_class](https://github.com/appium/ruby_lib/blob/fa3b19c9921cbb84d9fd91a097b8c85d485b60f7/lib/appium_lib/ios/element/button.rb#L8) ios
|
2461
2500
|
|
2462
2501
|
> def button_class
|
2463
2502
|
|
@@ -2469,7 +2508,7 @@ __Returns:__
|
|
2469
2508
|
|
2470
2509
|
--
|
2471
2510
|
|
2472
|
-
##### [button](https://github.com/appium/ruby_lib/blob/
|
2511
|
+
##### [button](https://github.com/appium/ruby_lib/blob/fa3b19c9921cbb84d9fd91a097b8c85d485b60f7/lib/appium_lib/ios/element/button.rb#L16) ios
|
2473
2512
|
|
2474
2513
|
> def button(value)
|
2475
2514
|
|
@@ -2486,7 +2525,7 @@ __Returns:__
|
|
2486
2525
|
|
2487
2526
|
--
|
2488
2527
|
|
2489
|
-
##### [buttons](https://github.com/appium/ruby_lib/blob/
|
2528
|
+
##### [buttons](https://github.com/appium/ruby_lib/blob/fa3b19c9921cbb84d9fd91a097b8c85d485b60f7/lib/appium_lib/ios/element/button.rb#L31) ios
|
2490
2529
|
|
2491
2530
|
> def buttons(value = false)
|
2492
2531
|
|
@@ -2503,7 +2542,7 @@ __Returns:__
|
|
2503
2542
|
|
2504
2543
|
--
|
2505
2544
|
|
2506
|
-
##### [first_button](https://github.com/appium/ruby_lib/blob/
|
2545
|
+
##### [first_button](https://github.com/appium/ruby_lib/blob/fa3b19c9921cbb84d9fd91a097b8c85d485b60f7/lib/appium_lib/ios/element/button.rb#L44) ios
|
2507
2546
|
|
2508
2547
|
> def first_button
|
2509
2548
|
|
@@ -2515,7 +2554,7 @@ __Returns:__
|
|
2515
2554
|
|
2516
2555
|
--
|
2517
2556
|
|
2518
|
-
##### [last_button](https://github.com/appium/ruby_lib/blob/
|
2557
|
+
##### [last_button](https://github.com/appium/ruby_lib/blob/fa3b19c9921cbb84d9fd91a097b8c85d485b60f7/lib/appium_lib/ios/element/button.rb#L52) ios
|
2519
2558
|
|
2520
2559
|
> def last_button
|
2521
2560
|
|
@@ -2529,7 +2568,7 @@ __Returns:__
|
|
2529
2568
|
|
2530
2569
|
--
|
2531
2570
|
|
2532
|
-
##### [button_exact](https://github.com/appium/ruby_lib/blob/
|
2571
|
+
##### [button_exact](https://github.com/appium/ruby_lib/blob/fa3b19c9921cbb84d9fd91a097b8c85d485b60f7/lib/appium_lib/ios/element/button.rb#L59) ios
|
2533
2572
|
|
2534
2573
|
> def button_exact(value)
|
2535
2574
|
|
@@ -2545,7 +2584,7 @@ __Returns:__
|
|
2545
2584
|
|
2546
2585
|
--
|
2547
2586
|
|
2548
|
-
##### [buttons_exact](https://github.com/appium/ruby_lib/blob/
|
2587
|
+
##### [buttons_exact](https://github.com/appium/ruby_lib/blob/fa3b19c9921cbb84d9fd91a097b8c85d485b60f7/lib/appium_lib/ios/element/button.rb#L70) ios
|
2549
2588
|
|
2550
2589
|
> def buttons_exact(value)
|
2551
2590
|
|
@@ -2561,7 +2600,7 @@ __Returns:__
|
|
2561
2600
|
|
2562
2601
|
--
|
2563
2602
|
|
2564
|
-
##### [uiautomation_find](https://github.com/appium/ruby_lib/blob/
|
2603
|
+
##### [uiautomation_find](https://github.com/appium/ruby_lib/blob/fa3b19c9921cbb84d9fd91a097b8c85d485b60f7/lib/appium_lib/ios/mobile_methods.rb#L19) ios
|
2565
2604
|
|
2566
2605
|
> def uiautomation_find
|
2567
2606
|
|
@@ -2573,7 +2612,7 @@ find_element/s can be used with a [UIAutomation command](https://developer.apple
|
|
2573
2612
|
|
2574
2613
|
--
|
2575
2614
|
|
2576
|
-
##### [ios_predicate_string_find](https://github.com/appium/ruby_lib/blob/
|
2615
|
+
##### [ios_predicate_string_find](https://github.com/appium/ruby_lib/blob/fa3b19c9921cbb84d9fd91a097b8c85d485b60f7/lib/appium_lib/ios/mobile_methods.rb#L19) ios
|
2577
2616
|
|
2578
2617
|
> def ios_predicate_string_find
|
2579
2618
|
|
@@ -2587,7 +2626,7 @@ find_element/s can be used with a [Predicates](https://developer.apple.com/libra
|
|
2587
2626
|
|
2588
2627
|
--
|
2589
2628
|
|
2590
|
-
##### [find](https://github.com/appium/ruby_lib/blob/
|
2629
|
+
##### [find](https://github.com/appium/ruby_lib/blob/fa3b19c9921cbb84d9fd91a097b8c85d485b60f7/lib/appium_lib/ios/element/generic.rb#L6) ios
|
2591
2630
|
|
2592
2631
|
> def find(value)
|
2593
2632
|
|
@@ -2603,7 +2642,7 @@ __Returns:__
|
|
2603
2642
|
|
2604
2643
|
--
|
2605
2644
|
|
2606
|
-
##### [finds](https://github.com/appium/ruby_lib/blob/
|
2645
|
+
##### [finds](https://github.com/appium/ruby_lib/blob/fa3b19c9921cbb84d9fd91a097b8c85d485b60f7/lib/appium_lib/ios/element/generic.rb#L17) ios
|
2607
2646
|
|
2608
2647
|
> def finds(value)
|
2609
2648
|
|
@@ -2619,7 +2658,7 @@ __Returns:__
|
|
2619
2658
|
|
2620
2659
|
--
|
2621
2660
|
|
2622
|
-
##### [find_exact](https://github.com/appium/ruby_lib/blob/
|
2661
|
+
##### [find_exact](https://github.com/appium/ruby_lib/blob/fa3b19c9921cbb84d9fd91a097b8c85d485b60f7/lib/appium_lib/ios/element/generic.rb#L29) ios
|
2623
2662
|
|
2624
2663
|
> def find_exact(value)
|
2625
2664
|
|
@@ -2635,7 +2674,7 @@ __Returns:__
|
|
2635
2674
|
|
2636
2675
|
--
|
2637
2676
|
|
2638
|
-
##### [finds_exact](https://github.com/appium/ruby_lib/blob/
|
2677
|
+
##### [finds_exact](https://github.com/appium/ruby_lib/blob/fa3b19c9921cbb84d9fd91a097b8c85d485b60f7/lib/appium_lib/ios/element/generic.rb#L40) ios
|
2639
2678
|
|
2640
2679
|
> def finds_exact(value)
|
2641
2680
|
|
@@ -2651,7 +2690,7 @@ __Returns:__
|
|
2651
2690
|
|
2652
2691
|
--
|
2653
2692
|
|
2654
|
-
##### [raise_error_if_no_element](https://github.com/appium/ruby_lib/blob/
|
2693
|
+
##### [raise_error_if_no_element](https://github.com/appium/ruby_lib/blob/fa3b19c9921cbb84d9fd91a097b8c85d485b60f7/lib/appium_lib/ios/element/generic.rb#L51) ios
|
2655
2694
|
|
2656
2695
|
> def raise_error_if_no_element(element)
|
2657
2696
|
|
@@ -2659,7 +2698,7 @@ __Returns:__
|
|
2659
2698
|
|
2660
2699
|
--
|
2661
2700
|
|
2662
|
-
##### [elements_include](https://github.com/appium/ruby_lib/blob/
|
2701
|
+
##### [elements_include](https://github.com/appium/ruby_lib/blob/fa3b19c9921cbb84d9fd91a097b8c85d485b60f7/lib/appium_lib/ios/element/generic.rb#L58) ios
|
2663
2702
|
|
2664
2703
|
> def elements_include(elements, value)
|
2665
2704
|
|
@@ -2667,7 +2706,7 @@ Return all elements include not displayed elements.
|
|
2667
2706
|
|
2668
2707
|
--
|
2669
2708
|
|
2670
|
-
##### [elements_exact](https://github.com/appium/ruby_lib/blob/
|
2709
|
+
##### [elements_exact](https://github.com/appium/ruby_lib/blob/fa3b19c9921cbb84d9fd91a097b8c85d485b60f7/lib/appium_lib/ios/element/generic.rb#L72) ios
|
2671
2710
|
|
2672
2711
|
> def elements_exact(elements, value)
|
2673
2712
|
|
@@ -2675,7 +2714,7 @@ Return all elements include not displayed elements.
|
|
2675
2714
|
|
2676
2715
|
--
|
2677
2716
|
|
2678
|
-
##### [select_visible_elements](https://github.com/appium/ruby_lib/blob/
|
2717
|
+
##### [select_visible_elements](https://github.com/appium/ruby_lib/blob/fa3b19c9921cbb84d9fd91a097b8c85d485b60f7/lib/appium_lib/ios/element/generic.rb#L86) ios
|
2679
2718
|
|
2680
2719
|
> def select_visible_elements(elements)
|
2681
2720
|
|
@@ -2683,7 +2722,7 @@ Return visible elements.
|
|
2683
2722
|
|
2684
2723
|
--
|
2685
2724
|
|
2686
|
-
##### [UIATextField](https://github.com/appium/ruby_lib/blob/
|
2725
|
+
##### [UIATextField](https://github.com/appium/ruby_lib/blob/fa3b19c9921cbb84d9fd91a097b8c85d485b60f7/lib/appium_lib/ios/element/textfield.rb#L3) ios
|
2687
2726
|
|
2688
2727
|
> UIATextField = 'UIATextField'.freeze
|
2689
2728
|
|
@@ -2691,7 +2730,7 @@ Return visible elements.
|
|
2691
2730
|
|
2692
2731
|
--
|
2693
2732
|
|
2694
|
-
##### [UIASecureTextField](https://github.com/appium/ruby_lib/blob/
|
2733
|
+
##### [UIASecureTextField](https://github.com/appium/ruby_lib/blob/fa3b19c9921cbb84d9fd91a097b8c85d485b60f7/lib/appium_lib/ios/element/textfield.rb#L4) ios
|
2695
2734
|
|
2696
2735
|
> UIASecureTextField = 'UIASecureTextField'.freeze
|
2697
2736
|
|
@@ -2699,7 +2738,7 @@ Return visible elements.
|
|
2699
2738
|
|
2700
2739
|
--
|
2701
2740
|
|
2702
|
-
##### [XCUIElementTypeTextField](https://github.com/appium/ruby_lib/blob/
|
2741
|
+
##### [XCUIElementTypeTextField](https://github.com/appium/ruby_lib/blob/fa3b19c9921cbb84d9fd91a097b8c85d485b60f7/lib/appium_lib/ios/element/textfield.rb#L6) ios
|
2703
2742
|
|
2704
2743
|
> XCUIElementTypeTextField = 'XCUIElementTypeTextField'.freeze
|
2705
2744
|
|
@@ -2707,7 +2746,7 @@ Return visible elements.
|
|
2707
2746
|
|
2708
2747
|
--
|
2709
2748
|
|
2710
|
-
##### [XCUIElementTypeSecureTextField](https://github.com/appium/ruby_lib/blob/
|
2749
|
+
##### [XCUIElementTypeSecureTextField](https://github.com/appium/ruby_lib/blob/fa3b19c9921cbb84d9fd91a097b8c85d485b60f7/lib/appium_lib/ios/element/textfield.rb#L7) ios
|
2711
2750
|
|
2712
2751
|
> XCUIElementTypeSecureTextField = 'XCUIElementTypeSecureTextField'.freeze
|
2713
2752
|
|
@@ -2715,7 +2754,7 @@ Return visible elements.
|
|
2715
2754
|
|
2716
2755
|
--
|
2717
2756
|
|
2718
|
-
##### [text_field_class](https://github.com/appium/ruby_lib/blob/
|
2757
|
+
##### [text_field_class](https://github.com/appium/ruby_lib/blob/fa3b19c9921cbb84d9fd91a097b8c85d485b60f7/lib/appium_lib/ios/element/textfield.rb#L10) ios
|
2719
2758
|
|
2720
2759
|
> def text_field_class
|
2721
2760
|
|
@@ -2727,7 +2766,7 @@ __Returns:__
|
|
2727
2766
|
|
2728
2767
|
--
|
2729
2768
|
|
2730
|
-
##### [secure_text_field_class](https://github.com/appium/ruby_lib/blob/
|
2769
|
+
##### [secure_text_field_class](https://github.com/appium/ruby_lib/blob/fa3b19c9921cbb84d9fd91a097b8c85d485b60f7/lib/appium_lib/ios/element/textfield.rb#L15) ios
|
2731
2770
|
|
2732
2771
|
> def secure_text_field_class
|
2733
2772
|
|
@@ -2739,7 +2778,7 @@ __Returns:__
|
|
2739
2778
|
|
2740
2779
|
--
|
2741
2780
|
|
2742
|
-
##### [_textfield_visible](https://github.com/appium/ruby_lib/blob/
|
2781
|
+
##### [_textfield_visible](https://github.com/appium/ruby_lib/blob/fa3b19c9921cbb84d9fd91a097b8c85d485b60f7/lib/appium_lib/ios/element/textfield.rb#L41) ios
|
2743
2782
|
|
2744
2783
|
> def _textfield_visible
|
2745
2784
|
|
@@ -2747,7 +2786,7 @@ Appium
|
|
2747
2786
|
|
2748
2787
|
--
|
2749
2788
|
|
2750
|
-
##### [_textfield_exact_string](https://github.com/appium/ruby_lib/blob/
|
2789
|
+
##### [_textfield_exact_string](https://github.com/appium/ruby_lib/blob/fa3b19c9921cbb84d9fd91a097b8c85d485b60f7/lib/appium_lib/ios/element/textfield.rb#L46) ios
|
2751
2790
|
|
2752
2791
|
> def _textfield_exact_string(value)
|
2753
2792
|
|
@@ -2755,7 +2794,7 @@ Appium
|
|
2755
2794
|
|
2756
2795
|
--
|
2757
2796
|
|
2758
|
-
##### [_textfield_contains_string](https://github.com/appium/ruby_lib/blob/
|
2797
|
+
##### [_textfield_contains_string](https://github.com/appium/ruby_lib/blob/fa3b19c9921cbb84d9fd91a097b8c85d485b60f7/lib/appium_lib/ios/element/textfield.rb#L53) ios
|
2759
2798
|
|
2760
2799
|
> def _textfield_contains_string(value)
|
2761
2800
|
|
@@ -2763,7 +2802,7 @@ Appium
|
|
2763
2802
|
|
2764
2803
|
--
|
2765
2804
|
|
2766
|
-
##### [textfield](https://github.com/appium/ruby_lib/blob/
|
2805
|
+
##### [textfield](https://github.com/appium/ruby_lib/blob/fa3b19c9921cbb84d9fd91a097b8c85d485b60f7/lib/appium_lib/ios/element/textfield.rb#L66) ios
|
2767
2806
|
|
2768
2807
|
> def textfield(value)
|
2769
2808
|
|
@@ -2781,7 +2820,7 @@ __Returns:__
|
|
2781
2820
|
|
2782
2821
|
--
|
2783
2822
|
|
2784
|
-
##### [textfields](https://github.com/appium/ruby_lib/blob/
|
2823
|
+
##### [textfields](https://github.com/appium/ruby_lib/blob/fa3b19c9921cbb84d9fd91a097b8c85d485b60f7/lib/appium_lib/ios/element/textfield.rb#L92) ios
|
2785
2824
|
|
2786
2825
|
> def textfields(value = false)
|
2787
2826
|
|
@@ -2798,7 +2837,7 @@ __Returns:__
|
|
2798
2837
|
|
2799
2838
|
--
|
2800
2839
|
|
2801
|
-
##### [first_textfield](https://github.com/appium/ruby_lib/blob/
|
2840
|
+
##### [first_textfield](https://github.com/appium/ruby_lib/blob/fa3b19c9921cbb84d9fd91a097b8c85d485b60f7/lib/appium_lib/ios/element/textfield.rb#L105) ios
|
2802
2841
|
|
2803
2842
|
> def first_textfield
|
2804
2843
|
|
@@ -2810,7 +2849,7 @@ __Returns:__
|
|
2810
2849
|
|
2811
2850
|
--
|
2812
2851
|
|
2813
|
-
##### [last_textfield](https://github.com/appium/ruby_lib/blob/
|
2852
|
+
##### [last_textfield](https://github.com/appium/ruby_lib/blob/fa3b19c9921cbb84d9fd91a097b8c85d485b60f7/lib/appium_lib/ios/element/textfield.rb#L115) ios
|
2814
2853
|
|
2815
2854
|
> def last_textfield
|
2816
2855
|
|
@@ -2822,7 +2861,7 @@ __Returns:__
|
|
2822
2861
|
|
2823
2862
|
--
|
2824
2863
|
|
2825
|
-
##### [textfield_exact](https://github.com/appium/ruby_lib/blob/
|
2864
|
+
##### [textfield_exact](https://github.com/appium/ruby_lib/blob/fa3b19c9921cbb84d9fd91a097b8c85d485b60f7/lib/appium_lib/ios/element/textfield.rb#L128) ios
|
2826
2865
|
|
2827
2866
|
> def textfield_exact(value)
|
2828
2867
|
|
@@ -2838,7 +2877,7 @@ __Returns:__
|
|
2838
2877
|
|
2839
2878
|
--
|
2840
2879
|
|
2841
|
-
##### [textfields_exact](https://github.com/appium/ruby_lib/blob/
|
2880
|
+
##### [textfields_exact](https://github.com/appium/ruby_lib/blob/fa3b19c9921cbb84d9fd91a097b8c85d485b60f7/lib/appium_lib/ios/element/textfield.rb#L139) ios
|
2842
2881
|
|
2843
2882
|
> def textfields_exact(value)
|
2844
2883
|
|
@@ -2854,7 +2893,7 @@ __Returns:__
|
|
2854
2893
|
|
2855
2894
|
--
|
2856
2895
|
|
2857
|
-
##### [value](https://github.com/appium/ruby_lib/blob/
|
2896
|
+
##### [value](https://github.com/appium/ruby_lib/blob/fa3b19c9921cbb84d9fd91a097b8c85d485b60f7/lib/appium_lib/common/patch.rb#L12)
|
2858
2897
|
|
2859
2898
|
> def value
|
2860
2899
|
|
@@ -2864,7 +2903,7 @@ Fixes NoMethodError: undefined method `value' for Selenium::WebDriver::Element
|
|
2864
2903
|
|
2865
2904
|
--
|
2866
2905
|
|
2867
|
-
##### [name](https://github.com/appium/ruby_lib/blob/
|
2906
|
+
##### [name](https://github.com/appium/ruby_lib/blob/fa3b19c9921cbb84d9fd91a097b8c85d485b60f7/lib/appium_lib/common/patch.rb#L19)
|
2868
2907
|
|
2869
2908
|
> def name
|
2870
2909
|
|
@@ -2874,7 +2913,7 @@ Fixes NoMethodError: undefined method `name' for Selenium::WebDriver::Element
|
|
2874
2913
|
|
2875
2914
|
--
|
2876
2915
|
|
2877
|
-
##### [location_rel](https://github.com/appium/ruby_lib/blob/
|
2916
|
+
##### [location_rel](https://github.com/appium/ruby_lib/blob/fa3b19c9921cbb84d9fd91a097b8c85d485b60f7/lib/appium_lib/common/patch.rb#L31)
|
2878
2917
|
|
2879
2918
|
> def location_rel
|
2880
2919
|
|
@@ -2892,7 +2931,7 @@ __Returns:__
|
|
2892
2931
|
|
2893
2932
|
--
|
2894
2933
|
|
2895
|
-
##### [DEFAULT_HEADERS](https://github.com/appium/ruby_lib/blob/
|
2934
|
+
##### [DEFAULT_HEADERS](https://github.com/appium/ruby_lib/blob/fa3b19c9921cbb84d9fd91a097b8c85d485b60f7/lib/appium_lib/common/patch.rb#L152)
|
2896
2935
|
|
2897
2936
|
> DEFAULT_HEADERS = { 'Accept' => CONTENT_TYPE, 'User-Agent' => "appium/ruby_lib/#{::Appium::VERSION}" }.freeze
|
2898
2937
|
|
@@ -2900,7 +2939,7 @@ __Returns:__
|
|
2900
2939
|
|
2901
2940
|
--
|
2902
2941
|
|
2903
|
-
##### [patch_remote_driver_commands](https://github.com/appium/ruby_lib/blob/
|
2942
|
+
##### [patch_remote_driver_commands](https://github.com/appium/ruby_lib/blob/fa3b19c9921cbb84d9fd91a097b8c85d485b60f7/lib/appium_lib/common/patch.rb#L155)
|
2904
2943
|
|
2905
2944
|
> def patch_remote_driver_commands
|
2906
2945
|
|