appium_lib 9.7.1 → 9.7.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +12 -0
- data/docs/android_docs.md +199 -240
- data/docs/ios_docs.md +251 -292
- data/lib/appium_lib/appium.rb +20 -14
- data/lib/appium_lib/common/helper.rb +34 -5
- data/lib/appium_lib/common/http_client.rb +1 -0
- data/lib/appium_lib/common/log.rb +3 -0
- data/lib/appium_lib/common/multi_touch.rb +38 -39
- data/lib/appium_lib/common/touch_actions.rb +20 -17
- data/lib/appium_lib/core/common/error.rb +5 -0
- data/lib/appium_lib/core/core.rb +28 -0
- data/lib/appium_lib/core/driver.rb +99 -32
- data/lib/appium_lib/core/ios/uiautomation/bridge.rb +2 -1
- data/lib/appium_lib/core/ios/uiautomation/patch.rb +2 -2
- data/lib/appium_lib/driver.rb +78 -92
- data/lib/appium_lib/ios/common/helper.rb +1 -0
- data/lib/appium_lib/sauce_labs.rb +42 -1
- data/lib/appium_lib/version.rb +2 -2
- data/release_notes.md +6 -0
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 0ba69f3bbf517811dd4b2109997a8440892f4a0a
|
4
|
+
data.tar.gz: 1ea951a0fcd43f7830192da97cf913d03015f787
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: d01ab13e6377ef37b031f3422692864924ce6a299de331732f12e46d38d899bb4cf83466f04c03a55923d5ebc18a530fe66ee85b484add0db18b853ec0e7a538
|
7
|
+
data.tar.gz: cb99b422e6757de738987c61b6c8535bf6c7298e8e135e399ee459b2b2142b400c58e34b4ee3855a67f5aa6c1564ff128d5594ae0f39ec1706f07aee5be1518b
|
data/CHANGELOG.md
CHANGED
@@ -3,6 +3,18 @@ Commit based release not is [release_notes.md](./release_notes.md)
|
|
3
3
|
|
4
4
|
Release tags are https://github.com/appium/ruby_lib/releases .
|
5
5
|
|
6
|
+
## v9.7.2
|
7
|
+
|
8
|
+
### 1. Enhancements
|
9
|
+
- Raise error if capability is wrong
|
10
|
+
- [validate `caps` and `appium_lib` #684](https://github.com/appium/ruby_lib/issues/684)
|
11
|
+
|
12
|
+
### 2. Bug fixes
|
13
|
+
- `Bug: NoMethodError: undefined method 'write_session_id' for #<Appium::Core::Driver:0x00007fa69119ce88>` [#686](https://github.com/appium/ruby_lib/issues/686)
|
14
|
+
- undefined local variable or method `patch_webdriver_element' [#687](https://github.com/appium/ruby_lib/issues/687)
|
15
|
+
|
16
|
+
### 3. Deprecations
|
17
|
+
|
6
18
|
## v9.7.1
|
7
19
|
Hot-fix for v9.7.0: [uninitialized constant Appium::VERSION #680](https://github.com/appium/ruby_lib/issues/680)
|
8
20
|
|
data/docs/android_docs.md
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
##### [load_settings](https://github.com/appium/ruby_lib/blob/
|
1
|
+
##### [load_settings](https://github.com/appium/ruby_lib/blob/b9b8784697d9fbe73d3883cf42d260f19138d8f5/lib/appium_lib/appium.rb#L45)
|
2
2
|
|
3
3
|
> def load_settings(opts = {})
|
4
4
|
|
@@ -27,7 +27,7 @@ __Returns:__
|
|
27
27
|
|
28
28
|
--
|
29
29
|
|
30
|
-
##### [load_appium_txt](https://github.com/appium/ruby_lib/blob/
|
30
|
+
##### [load_appium_txt](https://github.com/appium/ruby_lib/blob/b9b8784697d9fbe73d3883cf42d260f19138d8f5/lib/appium_lib/appium.rb#L79)
|
31
31
|
|
32
32
|
> def load_settings(opts = {})
|
33
33
|
|
@@ -56,7 +56,7 @@ __Returns:__
|
|
56
56
|
|
57
57
|
--
|
58
58
|
|
59
|
-
##### [expand_required_files](https://github.com/appium/ruby_lib/blob/
|
59
|
+
##### [expand_required_files](https://github.com/appium/ruby_lib/blob/b9b8784697d9fbe73d3883cf42d260f19138d8f5/lib/appium_lib/appium.rb#L84)
|
60
60
|
|
61
61
|
> def expand_required_files(base_dir, file_paths)
|
62
62
|
|
@@ -74,7 +74,7 @@ __Returns:__
|
|
74
74
|
|
75
75
|
--
|
76
76
|
|
77
|
-
##### [promote_singleton_appium_methods](https://github.com/appium/ruby_lib/blob/
|
77
|
+
##### [promote_singleton_appium_methods](https://github.com/appium/ruby_lib/blob/b9b8784697d9fbe73d3883cf42d260f19138d8f5/lib/appium_lib/appium.rb#L126)
|
78
78
|
|
79
79
|
> def promote_singleton_appium_methods(modules, driver = $driver)
|
80
80
|
|
@@ -90,9 +90,15 @@ if modules is a module instead of an array, then the constants of
|
|
90
90
|
that module are promoted on.
|
91
91
|
otherwise, the array of modules will be used as the promotion target.
|
92
92
|
|
93
|
+
__Parameters:__
|
94
|
+
|
95
|
+
[Array<Module>] modules - An array of modules
|
96
|
+
|
97
|
+
[Driver] driver - A driver to extend for
|
98
|
+
|
93
99
|
--
|
94
100
|
|
95
|
-
##### [promote_appium_methods](https://github.com/appium/ruby_lib/blob/
|
101
|
+
##### [promote_appium_methods](https://github.com/appium/ruby_lib/blob/b9b8784697d9fbe73d3883cf42d260f19138d8f5/lib/appium_lib/appium.rb#L181)
|
96
102
|
|
97
103
|
> def promote_appium_methods(class_array, driver = $driver)
|
98
104
|
|
@@ -100,29 +106,17 @@ Promote appium methods to class instance methods
|
|
100
106
|
|
101
107
|
To promote methods to all classes:
|
102
108
|
|
103
|
-
```ruby
|
104
|
-
Appium.promote_appium_methods Object
|
105
|
-
```
|
106
|
-
|
107
109
|
It's better to promote on specific classes instead of Object
|
108
110
|
|
109
|
-
```ruby
|
110
|
-
# promote on rspec
|
111
|
-
Appium.promote_appium_methods RSpec::Core::ExampleGroup
|
112
|
-
```
|
113
|
-
|
114
|
-
```ruby
|
115
|
-
# promote on minispec
|
116
|
-
Appium.promote_appium_methods Minitest::Spec
|
117
|
-
```
|
118
|
-
|
119
111
|
__Parameters:__
|
120
112
|
|
121
113
|
[Array<Class>] class_array - An array of classes
|
122
114
|
|
115
|
+
[Driver] driver - A driver to extend for
|
116
|
+
|
123
117
|
--
|
124
118
|
|
125
|
-
##### [global_webdriver_http_sleep](https://github.com/appium/ruby_lib/blob/
|
119
|
+
##### [global_webdriver_http_sleep](https://github.com/appium/ruby_lib/blob/b9b8784697d9fbe73d3883cf42d260f19138d8f5/lib/appium_lib/driver.rb#L24)
|
126
120
|
|
127
121
|
> def global_webdriver_http_sleep
|
128
122
|
|
@@ -130,7 +124,7 @@ The amount to sleep in seconds before every webdriver http call.
|
|
130
124
|
|
131
125
|
--
|
132
126
|
|
133
|
-
##### [global_webdriver_http_sleep=](https://github.com/appium/ruby_lib/blob/
|
127
|
+
##### [global_webdriver_http_sleep=](https://github.com/appium/ruby_lib/blob/b9b8784697d9fbe73d3883cf42d260f19138d8f5/lib/appium_lib/driver.rb#L24)
|
134
128
|
|
135
129
|
> def global_webdriver_http_sleep=(value)
|
136
130
|
|
@@ -138,7 +132,7 @@ The amount to sleep in seconds before every webdriver http call.
|
|
138
132
|
|
139
133
|
--
|
140
134
|
|
141
|
-
##### [sauce](https://github.com/appium/ruby_lib/blob/
|
135
|
+
##### [sauce](https://github.com/appium/ruby_lib/blob/b9b8784697d9fbe73d3883cf42d260f19138d8f5/lib/appium_lib/driver.rb#L27)
|
142
136
|
|
143
137
|
> def sauce
|
144
138
|
|
@@ -146,7 +140,7 @@ SauceLab's settings
|
|
146
140
|
|
147
141
|
--
|
148
142
|
|
149
|
-
##### [sauce_username](https://github.com/appium/ruby_lib/blob/
|
143
|
+
##### [sauce_username](https://github.com/appium/ruby_lib/blob/b9b8784697d9fbe73d3883cf42d260f19138d8f5/lib/appium_lib/driver.rb#L30)
|
150
144
|
|
151
145
|
> def sauce_username
|
152
146
|
|
@@ -155,7 +149,7 @@ same as @sauce.username
|
|
155
149
|
|
156
150
|
--
|
157
151
|
|
158
|
-
##### [sauce_access_key](https://github.com/appium/ruby_lib/blob/
|
152
|
+
##### [sauce_access_key](https://github.com/appium/ruby_lib/blob/b9b8784697d9fbe73d3883cf42d260f19138d8f5/lib/appium_lib/driver.rb#L33)
|
159
153
|
|
160
154
|
> def sauce_access_key
|
161
155
|
|
@@ -164,7 +158,7 @@ same as @sauce.access_key
|
|
164
158
|
|
165
159
|
--
|
166
160
|
|
167
|
-
##### [sauce_endpoint](https://github.com/appium/ruby_lib/blob/
|
161
|
+
##### [sauce_endpoint](https://github.com/appium/ruby_lib/blob/b9b8784697d9fbe73d3883cf42d260f19138d8f5/lib/appium_lib/driver.rb#L36)
|
168
162
|
|
169
163
|
> def sauce_endpoint
|
170
164
|
|
@@ -173,7 +167,7 @@ same as @sauce.endpoint
|
|
173
167
|
|
174
168
|
--
|
175
169
|
|
176
|
-
##### [caps](https://github.com/appium/ruby_lib/blob/
|
170
|
+
##### [caps](https://github.com/appium/ruby_lib/blob/b9b8784697d9fbe73d3883cf42d260f19138d8f5/lib/appium_lib/driver.rb#L39)
|
177
171
|
|
178
172
|
> def caps
|
179
173
|
|
@@ -181,7 +175,7 @@ from Core
|
|
181
175
|
|
182
176
|
--
|
183
177
|
|
184
|
-
##### [custom_url](https://github.com/appium/ruby_lib/blob/
|
178
|
+
##### [custom_url](https://github.com/appium/ruby_lib/blob/b9b8784697d9fbe73d3883cf42d260f19138d8f5/lib/appium_lib/driver.rb#L40)
|
185
179
|
|
186
180
|
> def custom_url
|
187
181
|
|
@@ -189,7 +183,7 @@ Returns the value of attribute custom_url
|
|
189
183
|
|
190
184
|
--
|
191
185
|
|
192
|
-
##### [export_session](https://github.com/appium/ruby_lib/blob/
|
186
|
+
##### [export_session](https://github.com/appium/ruby_lib/blob/b9b8784697d9fbe73d3883cf42d260f19138d8f5/lib/appium_lib/driver.rb#L41)
|
193
187
|
|
194
188
|
> def export_session
|
195
189
|
|
@@ -197,7 +191,7 @@ Returns the value of attribute export_session
|
|
197
191
|
|
198
192
|
--
|
199
193
|
|
200
|
-
##### [default_wait](https://github.com/appium/ruby_lib/blob/
|
194
|
+
##### [default_wait](https://github.com/appium/ruby_lib/blob/b9b8784697d9fbe73d3883cf42d260f19138d8f5/lib/appium_lib/driver.rb#L42)
|
201
195
|
|
202
196
|
> def default_wait
|
203
197
|
|
@@ -205,7 +199,7 @@ Returns the value of attribute default_wait
|
|
205
199
|
|
206
200
|
--
|
207
201
|
|
208
|
-
##### [appium_port](https://github.com/appium/ruby_lib/blob/
|
202
|
+
##### [appium_port](https://github.com/appium/ruby_lib/blob/b9b8784697d9fbe73d3883cf42d260f19138d8f5/lib/appium_lib/driver.rb#L43)
|
209
203
|
|
210
204
|
> def appium_port
|
211
205
|
|
@@ -213,7 +207,7 @@ Returns the value of attribute appium_port
|
|
213
207
|
|
214
208
|
--
|
215
209
|
|
216
|
-
##### [appium_device](https://github.com/appium/ruby_lib/blob/
|
210
|
+
##### [appium_device](https://github.com/appium/ruby_lib/blob/b9b8784697d9fbe73d3883cf42d260f19138d8f5/lib/appium_lib/driver.rb#L44)
|
217
211
|
|
218
212
|
> def appium_device
|
219
213
|
|
@@ -221,7 +215,7 @@ Returns the value of attribute appium_device
|
|
221
215
|
|
222
216
|
--
|
223
217
|
|
224
|
-
##### [automation_name](https://github.com/appium/ruby_lib/blob/
|
218
|
+
##### [automation_name](https://github.com/appium/ruby_lib/blob/b9b8784697d9fbe73d3883cf42d260f19138d8f5/lib/appium_lib/driver.rb#L45)
|
225
219
|
|
226
220
|
> def automation_name
|
227
221
|
|
@@ -229,7 +223,7 @@ Returns the value of attribute automation_name
|
|
229
223
|
|
230
224
|
--
|
231
225
|
|
232
|
-
##### [listener](https://github.com/appium/ruby_lib/blob/
|
226
|
+
##### [listener](https://github.com/appium/ruby_lib/blob/b9b8784697d9fbe73d3883cf42d260f19138d8f5/lib/appium_lib/driver.rb#L46)
|
233
227
|
|
234
228
|
> def listener
|
235
229
|
|
@@ -237,7 +231,7 @@ Returns the value of attribute listener
|
|
237
231
|
|
238
232
|
--
|
239
233
|
|
240
|
-
##### [http_client](https://github.com/appium/ruby_lib/blob/
|
234
|
+
##### [http_client](https://github.com/appium/ruby_lib/blob/b9b8784697d9fbe73d3883cf42d260f19138d8f5/lib/appium_lib/driver.rb#L47)
|
241
235
|
|
242
236
|
> def http_client
|
243
237
|
|
@@ -245,7 +239,7 @@ Returns the value of attribute http_client
|
|
245
239
|
|
246
240
|
--
|
247
241
|
|
248
|
-
##### [appium_wait_timeout](https://github.com/appium/ruby_lib/blob/
|
242
|
+
##### [appium_wait_timeout](https://github.com/appium/ruby_lib/blob/b9b8784697d9fbe73d3883cf42d260f19138d8f5/lib/appium_lib/driver.rb#L48)
|
249
243
|
|
250
244
|
> def appium_wait_timeout
|
251
245
|
|
@@ -253,7 +247,7 @@ Returns the value of attribute appium_wait_timeout
|
|
253
247
|
|
254
248
|
--
|
255
249
|
|
256
|
-
##### [appium_wait_interval](https://github.com/appium/ruby_lib/blob/
|
250
|
+
##### [appium_wait_interval](https://github.com/appium/ruby_lib/blob/b9b8784697d9fbe73d3883cf42d260f19138d8f5/lib/appium_lib/driver.rb#L49)
|
257
251
|
|
258
252
|
> def appium_wait_interval
|
259
253
|
|
@@ -261,7 +255,7 @@ Returns the value of attribute appium_wait_interval
|
|
261
255
|
|
262
256
|
--
|
263
257
|
|
264
|
-
##### [appium_server_status](https://github.com/appium/ruby_lib/blob/
|
258
|
+
##### [appium_server_status](https://github.com/appium/ruby_lib/blob/b9b8784697d9fbe73d3883cf42d260f19138d8f5/lib/appium_lib/driver.rb#L52)
|
265
259
|
|
266
260
|
> def appium_server_status
|
267
261
|
|
@@ -269,7 +263,7 @@ Appium's server version
|
|
269
263
|
|
270
264
|
--
|
271
265
|
|
272
|
-
##### [appium_debug](https://github.com/appium/ruby_lib/blob/
|
266
|
+
##### [appium_debug](https://github.com/appium/ruby_lib/blob/b9b8784697d9fbe73d3883cf42d260f19138d8f5/lib/appium_lib/driver.rb#L54)
|
273
267
|
|
274
268
|
> def appium_debug
|
275
269
|
|
@@ -277,7 +271,7 @@ Boolean debug mode for the Appium Ruby bindings
|
|
277
271
|
|
278
272
|
--
|
279
273
|
|
280
|
-
##### [driver](https://github.com/appium/ruby_lib/blob/
|
274
|
+
##### [driver](https://github.com/appium/ruby_lib/blob/b9b8784697d9fbe73d3883cf42d260f19138d8f5/lib/appium_lib/driver.rb#L57)
|
281
275
|
|
282
276
|
> def driver
|
283
277
|
|
@@ -289,7 +283,7 @@ __Returns:__
|
|
289
283
|
|
290
284
|
--
|
291
285
|
|
292
|
-
##### [core](https://github.com/appium/ruby_lib/blob/
|
286
|
+
##### [core](https://github.com/appium/ruby_lib/blob/b9b8784697d9fbe73d3883cf42d260f19138d8f5/lib/appium_lib/driver.rb#L59)
|
293
287
|
|
294
288
|
> def core
|
295
289
|
|
@@ -297,7 +291,7 @@ Instance of Appium::Core::Driver
|
|
297
291
|
|
298
292
|
--
|
299
293
|
|
300
|
-
##### [initialize](https://github.com/appium/ruby_lib/blob/
|
294
|
+
##### [initialize](https://github.com/appium/ruby_lib/blob/b9b8784697d9fbe73d3883cf42d260f19138d8f5/lib/appium_lib/driver.rb#L110)
|
301
295
|
|
302
296
|
> def initialize(opts = {}, global_driver = nil)
|
303
297
|
|
@@ -316,7 +310,7 @@ __Returns:__
|
|
316
310
|
|
317
311
|
--
|
318
312
|
|
319
|
-
##### [driver_attributes](https://github.com/appium/ruby_lib/blob/
|
313
|
+
##### [driver_attributes](https://github.com/appium/ruby_lib/blob/b9b8784697d9fbe73d3883cf42d260f19138d8f5/lib/appium_lib/driver.rb#L215)
|
320
314
|
|
321
315
|
> def driver_attributes
|
322
316
|
|
@@ -324,7 +318,7 @@ Returns a hash of the driver attributes
|
|
324
318
|
|
325
319
|
--
|
326
320
|
|
327
|
-
##### [device_is_android?](https://github.com/appium/ruby_lib/blob/
|
321
|
+
##### [device_is_android?](https://github.com/appium/ruby_lib/blob/b9b8784697d9fbe73d3883cf42d260f19138d8f5/lib/appium_lib/driver.rb#L234)
|
328
322
|
|
329
323
|
> def device_is_android?
|
330
324
|
|
@@ -336,7 +330,7 @@ __Returns:__
|
|
336
330
|
|
337
331
|
--
|
338
332
|
|
339
|
-
##### [device_is_ios?](https://github.com/appium/ruby_lib/blob/
|
333
|
+
##### [device_is_ios?](https://github.com/appium/ruby_lib/blob/b9b8784697d9fbe73d3883cf42d260f19138d8f5/lib/appium_lib/driver.rb#L238)
|
340
334
|
|
341
335
|
> def device_is_ios?
|
342
336
|
|
@@ -348,7 +342,7 @@ __Returns:__
|
|
348
342
|
|
349
343
|
--
|
350
344
|
|
351
|
-
##### [device_is_windows?](https://github.com/appium/ruby_lib/blob/
|
345
|
+
##### [device_is_windows?](https://github.com/appium/ruby_lib/blob/b9b8784697d9fbe73d3883cf42d260f19138d8f5/lib/appium_lib/driver.rb#L242)
|
352
346
|
|
353
347
|
> def device_is_windows?
|
354
348
|
|
@@ -360,7 +354,7 @@ __Returns:__
|
|
360
354
|
|
361
355
|
--
|
362
356
|
|
363
|
-
##### [automation_name_is_uiautomator2?](https://github.com/appium/ruby_lib/blob/
|
357
|
+
##### [automation_name_is_uiautomator2?](https://github.com/appium/ruby_lib/blob/b9b8784697d9fbe73d3883cf42d260f19138d8f5/lib/appium_lib/driver.rb#L248)
|
364
358
|
|
365
359
|
> def automation_name_is_uiautomator2?
|
366
360
|
|
@@ -372,7 +366,7 @@ __Returns:__
|
|
372
366
|
|
373
367
|
--
|
374
368
|
|
375
|
-
##### [automation_name_is_espresso?](https://github.com/appium/ruby_lib/blob/
|
369
|
+
##### [automation_name_is_espresso?](https://github.com/appium/ruby_lib/blob/b9b8784697d9fbe73d3883cf42d260f19138d8f5/lib/appium_lib/driver.rb#L254)
|
376
370
|
|
377
371
|
> def automation_name_is_espresso?
|
378
372
|
|
@@ -384,7 +378,7 @@ __Returns:__
|
|
384
378
|
|
385
379
|
--
|
386
380
|
|
387
|
-
##### [automation_name_is_xcuitest?](https://github.com/appium/ruby_lib/blob/
|
381
|
+
##### [automation_name_is_xcuitest?](https://github.com/appium/ruby_lib/blob/b9b8784697d9fbe73d3883cf42d260f19138d8f5/lib/appium_lib/driver.rb#L260)
|
388
382
|
|
389
383
|
> def automation_name_is_xcuitest?
|
390
384
|
|
@@ -396,7 +390,7 @@ __Returns:__
|
|
396
390
|
|
397
391
|
--
|
398
392
|
|
399
|
-
##### [check_server_version_xcuitest](https://github.com/appium/ruby_lib/blob/
|
393
|
+
##### [check_server_version_xcuitest](https://github.com/appium/ruby_lib/blob/b9b8784697d9fbe73d3883cf42d260f19138d8f5/lib/appium_lib/driver.rb#L267)
|
400
394
|
|
401
395
|
> def check_server_version_xcuitest
|
402
396
|
|
@@ -409,28 +403,19 @@ __Returns:__
|
|
409
403
|
|
410
404
|
--
|
411
405
|
|
412
|
-
##### [appium_server_version](https://github.com/appium/ruby_lib/blob/
|
406
|
+
##### [appium_server_version](https://github.com/appium/ruby_lib/blob/b9b8784697d9fbe73d3883cf42d260f19138d8f5/lib/appium_lib/driver.rb#L288)
|
413
407
|
|
414
408
|
> def appium_server_version
|
415
409
|
|
416
410
|
Returns the server's version info
|
417
411
|
|
418
|
-
```ruby
|
419
|
-
{
|
420
|
-
"build" => {
|
421
|
-
"version" => "0.18.1",
|
422
|
-
"revision" => "d242ebcfd92046a974347ccc3a28f0e898595198"
|
423
|
-
}
|
424
|
-
}
|
425
|
-
```
|
426
|
-
|
427
412
|
__Returns:__
|
428
413
|
|
429
414
|
[Hash]
|
430
415
|
|
431
416
|
--
|
432
417
|
|
433
|
-
##### [platform_version](https://github.com/appium/ruby_lib/blob/
|
418
|
+
##### [platform_version](https://github.com/appium/ruby_lib/blob/b9b8784697d9fbe73d3883cf42d260f19138d8f5/lib/appium_lib/driver.rb#L298)
|
434
419
|
|
435
420
|
> def platform_version
|
436
421
|
|
@@ -442,25 +427,19 @@ __Returns:__
|
|
442
427
|
|
443
428
|
--
|
444
429
|
|
445
|
-
##### [appium_client_version](https://github.com/appium/ruby_lib/blob/
|
430
|
+
##### [appium_client_version](https://github.com/appium/ruby_lib/blob/b9b8784697d9fbe73d3883cf42d260f19138d8f5/lib/appium_lib/driver.rb#L317)
|
446
431
|
|
447
432
|
> def appium_client_version
|
448
433
|
|
449
434
|
Returns the client's version info
|
450
435
|
|
451
|
-
```ruby
|
452
|
-
{
|
453
|
-
"version" => "9.1.1"
|
454
|
-
}
|
455
|
-
```
|
456
|
-
|
457
436
|
__Returns:__
|
458
437
|
|
459
438
|
[Hash]
|
460
439
|
|
461
440
|
--
|
462
441
|
|
463
|
-
##### [absolute_app_path](https://github.com/appium/ruby_lib/blob/
|
442
|
+
##### [absolute_app_path](https://github.com/appium/ruby_lib/blob/b9b8784697d9fbe73d3883cf42d260f19138d8f5/lib/appium_lib/driver.rb#L329)
|
464
443
|
|
465
444
|
> def self.absolute_app_path(opts)
|
466
445
|
|
@@ -477,7 +456,7 @@ __Returns:__
|
|
477
456
|
|
478
457
|
--
|
479
458
|
|
480
|
-
##### [server_url](https://github.com/appium/ruby_lib/blob/
|
459
|
+
##### [server_url](https://github.com/appium/ruby_lib/blob/b9b8784697d9fbe73d3883cf42d260f19138d8f5/lib/appium_lib/driver.rb#L362)
|
481
460
|
|
482
461
|
> def server_url
|
483
462
|
|
@@ -489,7 +468,7 @@ __Returns:__
|
|
489
468
|
|
490
469
|
--
|
491
470
|
|
492
|
-
##### [restart](https://github.com/appium/ruby_lib/blob/
|
471
|
+
##### [restart](https://github.com/appium/ruby_lib/blob/b9b8784697d9fbe73d3883cf42d260f19138d8f5/lib/appium_lib/driver.rb#L370)
|
493
472
|
|
494
473
|
> def restart
|
495
474
|
|
@@ -501,14 +480,12 @@ __Returns:__
|
|
501
480
|
|
502
481
|
--
|
503
482
|
|
504
|
-
##### [screenshot](https://github.com/appium/ruby_lib/blob/
|
483
|
+
##### [screenshot](https://github.com/appium/ruby_lib/blob/b9b8784697d9fbe73d3883cf42d260f19138d8f5/lib/appium_lib/driver.rb#L383)
|
505
484
|
|
506
485
|
> def screenshot(png_save_path)
|
507
486
|
|
508
487
|
Takes a png screenshot and saves to the target path.
|
509
488
|
|
510
|
-
Example: screenshot '/tmp/hi.png'
|
511
|
-
|
512
489
|
__Parameters:__
|
513
490
|
|
514
491
|
[String] png_save_path - the full path to save the png
|
@@ -519,7 +496,7 @@ __Returns:__
|
|
519
496
|
|
520
497
|
--
|
521
498
|
|
522
|
-
##### [driver_quit](https://github.com/appium/ruby_lib/blob/
|
499
|
+
##### [driver_quit](https://github.com/appium/ruby_lib/blob/b9b8784697d9fbe73d3883cf42d260f19138d8f5/lib/appium_lib/driver.rb#L389)
|
523
500
|
|
524
501
|
> def driver_quit
|
525
502
|
|
@@ -531,7 +508,7 @@ __Returns:__
|
|
531
508
|
|
532
509
|
--
|
533
510
|
|
534
|
-
##### [quit_driver](https://github.com/appium/ruby_lib/blob/
|
511
|
+
##### [quit_driver](https://github.com/appium/ruby_lib/blob/b9b8784697d9fbe73d3883cf42d260f19138d8f5/lib/appium_lib/driver.rb#L392)
|
535
512
|
|
536
513
|
> def driver_quit
|
537
514
|
|
@@ -543,7 +520,7 @@ __Returns:__
|
|
543
520
|
|
544
521
|
--
|
545
522
|
|
546
|
-
##### [window_size](https://github.com/appium/ruby_lib/blob/
|
523
|
+
##### [window_size](https://github.com/appium/ruby_lib/blob/b9b8784697d9fbe73d3883cf42d260f19138d8f5/lib/appium_lib/driver.rb#L403)
|
547
524
|
|
548
525
|
> def window_size
|
549
526
|
|
@@ -555,7 +532,7 @@ __Returns:__
|
|
555
532
|
|
556
533
|
--
|
557
534
|
|
558
|
-
##### [start_driver](https://github.com/appium/ruby_lib/blob/
|
535
|
+
##### [start_driver](https://github.com/appium/ruby_lib/blob/b9b8784697d9fbe73d3883cf42d260f19138d8f5/lib/appium_lib/driver.rb#L432)
|
559
536
|
|
560
537
|
> def start_driver(http_client_ops =
|
561
538
|
|
@@ -572,7 +549,7 @@ __Returns:__
|
|
572
549
|
|
573
550
|
--
|
574
551
|
|
575
|
-
##### [set_implicit_wait](https://github.com/appium/ruby_lib/blob/
|
552
|
+
##### [set_implicit_wait](https://github.com/appium/ruby_lib/blob/b9b8784697d9fbe73d3883cf42d260f19138d8f5/lib/appium_lib/driver.rb#L456)
|
576
553
|
|
577
554
|
> def set_implicit_wait(wait)
|
578
555
|
|
@@ -580,7 +557,7 @@ To ignore error for Espresso Driver
|
|
580
557
|
|
581
558
|
--
|
582
559
|
|
583
|
-
##### [no_wait](https://github.com/appium/ruby_lib/blob/
|
560
|
+
##### [no_wait](https://github.com/appium/ruby_lib/blob/b9b8784697d9fbe73d3883cf42d260f19138d8f5/lib/appium_lib/driver.rb#L466)
|
584
561
|
|
585
562
|
> def no_wait
|
586
563
|
|
@@ -588,18 +565,12 @@ Set implicit wait to zero.
|
|
588
565
|
|
589
566
|
--
|
590
567
|
|
591
|
-
##### [set_wait](https://github.com/appium/ruby_lib/blob/
|
568
|
+
##### [set_wait](https://github.com/appium/ruby_lib/blob/b9b8784697d9fbe73d3883cf42d260f19138d8f5/lib/appium_lib/driver.rb#L480)
|
592
569
|
|
593
570
|
> def set_wait(timeout = nil)
|
594
571
|
|
595
572
|
Set implicit wait. Default to @core.default_wait.
|
596
573
|
|
597
|
-
```ruby
|
598
|
-
set_wait 2
|
599
|
-
set_wait # @core.default_wait
|
600
|
-
|
601
|
-
```
|
602
|
-
|
603
574
|
__Parameters:__
|
604
575
|
|
605
576
|
[Integer] timeout - the timeout in seconds
|
@@ -610,7 +581,7 @@ __Returns:__
|
|
610
581
|
|
611
582
|
--
|
612
583
|
|
613
|
-
##### [exists](https://github.com/appium/ruby_lib/blob/
|
584
|
+
##### [exists](https://github.com/appium/ruby_lib/blob/b9b8784697d9fbe73d3883cf42d260f19138d8f5/lib/appium_lib/driver.rb#L497)
|
614
585
|
|
615
586
|
> def exists(pre_check = 0, post_check = @core.default_wait)
|
616
587
|
|
@@ -634,7 +605,7 @@ __Returns:__
|
|
634
605
|
|
635
606
|
--
|
636
607
|
|
637
|
-
##### [execute_script](https://github.com/appium/ruby_lib/blob/
|
608
|
+
##### [execute_script](https://github.com/appium/ruby_lib/blob/b9b8784697d9fbe73d3883cf42d260f19138d8f5/lib/appium_lib/driver.rb#L521)
|
638
609
|
|
639
610
|
> def execute_script(script, *args)
|
640
611
|
|
@@ -652,7 +623,7 @@ __Returns:__
|
|
652
623
|
|
653
624
|
--
|
654
625
|
|
655
|
-
##### [find_elements](https://github.com/appium/ruby_lib/blob/
|
626
|
+
##### [find_elements](https://github.com/appium/ruby_lib/blob/b9b8784697d9fbe73d3883cf42d260f19138d8f5/lib/appium_lib/driver.rb#L543)
|
656
627
|
|
657
628
|
> def find_elements(*args)
|
658
629
|
|
@@ -672,7 +643,7 @@ __Returns:__
|
|
672
643
|
|
673
644
|
--
|
674
645
|
|
675
|
-
##### [find_element](https://github.com/appium/ruby_lib/blob/
|
646
|
+
##### [find_element](https://github.com/appium/ruby_lib/blob/b9b8784697d9fbe73d3883cf42d260f19138d8f5/lib/appium_lib/driver.rb#L558)
|
676
647
|
|
677
648
|
> def find_element(*args)
|
678
649
|
|
@@ -690,7 +661,7 @@ __Returns:__
|
|
690
661
|
|
691
662
|
--
|
692
663
|
|
693
|
-
##### [set_location](https://github.com/appium/ruby_lib/blob/
|
664
|
+
##### [set_location](https://github.com/appium/ruby_lib/blob/b9b8784697d9fbe73d3883cf42d260f19138d8f5/lib/appium_lib/driver.rb#L571)
|
694
665
|
|
695
666
|
> def set_location(opts = {})
|
696
667
|
|
@@ -706,7 +677,7 @@ __Returns:__
|
|
706
677
|
|
707
678
|
--
|
708
679
|
|
709
|
-
##### [x](https://github.com/appium/ruby_lib/blob/
|
680
|
+
##### [x](https://github.com/appium/ruby_lib/blob/b9b8784697d9fbe73d3883cf42d260f19138d8f5/lib/appium_lib/driver.rb#L581)
|
710
681
|
|
711
682
|
> def x
|
712
683
|
|
@@ -719,7 +690,7 @@ __Returns:__
|
|
719
690
|
|
720
691
|
--
|
721
692
|
|
722
|
-
##### [username](https://github.com/appium/ruby_lib/blob/
|
693
|
+
##### [username](https://github.com/appium/ruby_lib/blob/b9b8784697d9fbe73d3883cf42d260f19138d8f5/lib/appium_lib/sauce_labs.rb#L4)
|
723
694
|
|
724
695
|
> def username
|
725
696
|
|
@@ -727,7 +698,7 @@ Username for use on Sauce Labs. Set `false` to disable Sauce, even when SAUCE_US
|
|
727
698
|
|
728
699
|
--
|
729
700
|
|
730
|
-
##### [access_key](https://github.com/appium/ruby_lib/blob/
|
701
|
+
##### [access_key](https://github.com/appium/ruby_lib/blob/b9b8784697d9fbe73d3883cf42d260f19138d8f5/lib/appium_lib/sauce_labs.rb#L6)
|
731
702
|
|
732
703
|
> def access_key
|
733
704
|
|
@@ -735,31 +706,35 @@ Access Key for use on Sauce Labs. Set `false` to disable Sauce, even when SAUCE_
|
|
735
706
|
|
736
707
|
--
|
737
708
|
|
738
|
-
##### [endpoint](https://github.com/appium/ruby_lib/blob/
|
709
|
+
##### [endpoint](https://github.com/appium/ruby_lib/blob/b9b8784697d9fbe73d3883cf42d260f19138d8f5/lib/appium_lib/sauce_labs.rb#L8)
|
739
710
|
|
740
711
|
> def endpoint
|
741
712
|
|
742
|
-
Override the Sauce Appium endpoint to allow e.g. TestObject tests
|
713
|
+
Override the Sauce Appium endpoint to allow e.g. TestObject tests. Default is 'ondemand.saucelabs.com:443/wd/hub'.
|
743
714
|
|
744
715
|
--
|
745
716
|
|
746
|
-
##### [initialize](https://github.com/appium/ruby_lib/blob/
|
717
|
+
##### [initialize](https://github.com/appium/ruby_lib/blob/b9b8784697d9fbe73d3883cf42d260f19138d8f5/lib/appium_lib/sauce_labs.rb#L33)
|
747
718
|
|
748
719
|
> def initialize(appium_lib_opts)
|
749
720
|
|
721
|
+
Create a SauceLabs instance to manage sauce labs related attributes.
|
750
722
|
|
723
|
+
__Parameters:__
|
724
|
+
|
725
|
+
[Hash] appium_lib_opts - Appium library parameter
|
751
726
|
|
752
727
|
__Returns:__
|
753
728
|
|
754
|
-
[SauceLabs]
|
729
|
+
[Appium::SauceLabs]
|
755
730
|
|
756
731
|
--
|
757
732
|
|
758
|
-
##### [sauce_server_url?](https://github.com/appium/ruby_lib/blob/
|
733
|
+
##### [sauce_server_url?](https://github.com/appium/ruby_lib/blob/b9b8784697d9fbe73d3883cf42d260f19138d8f5/lib/appium_lib/sauce_labs.rb#L53)
|
759
734
|
|
760
735
|
> def sauce_server_url?
|
761
736
|
|
762
|
-
|
737
|
+
Return true if an instance of Appium::SauceLabs has sauce_username and sauce_access_key.
|
763
738
|
|
764
739
|
__Returns:__
|
765
740
|
|
@@ -767,15 +742,19 @@ __Returns:__
|
|
767
742
|
|
768
743
|
--
|
769
744
|
|
770
|
-
##### [server_url](https://github.com/appium/ruby_lib/blob/
|
745
|
+
##### [server_url](https://github.com/appium/ruby_lib/blob/b9b8784697d9fbe73d3883cf42d260f19138d8f5/lib/appium_lib/sauce_labs.rb#L66)
|
771
746
|
|
772
747
|
> def server_url
|
773
748
|
|
749
|
+
Return a particular server url to access to. Default is the local address.
|
750
|
+
|
751
|
+
__Returns:__
|
774
752
|
|
753
|
+
[String]
|
775
754
|
|
776
755
|
--
|
777
756
|
|
778
|
-
##### [get_log](https://github.com/appium/ruby_lib/blob/
|
757
|
+
##### [get_log](https://github.com/appium/ruby_lib/blob/b9b8784697d9fbe73d3883cf42d260f19138d8f5/lib/appium_lib/common/log.rb#L11)
|
779
758
|
|
780
759
|
> def get_log(type)
|
781
760
|
|
@@ -791,7 +770,7 @@ __Returns:__
|
|
791
770
|
|
792
771
|
--
|
793
772
|
|
794
|
-
##### [get_available_log_types](https://github.com/appium/ruby_lib/blob/
|
773
|
+
##### [get_available_log_types](https://github.com/appium/ruby_lib/blob/b9b8784697d9fbe73d3883cf42d260f19138d8f5/lib/appium_lib/common/log.rb#L23)
|
795
774
|
|
796
775
|
> def get_available_log_types
|
797
776
|
|
@@ -803,7 +782,7 @@ __Returns:__
|
|
803
782
|
|
804
783
|
--
|
805
784
|
|
806
|
-
##### [initialize](https://github.com/appium/ruby_lib/blob/
|
785
|
+
##### [initialize](https://github.com/appium/ruby_lib/blob/b9b8784697d9fbe73d3883cf42d260f19138d8f5/lib/appium_lib/common/wait.rb#L6)
|
807
786
|
|
808
787
|
> def initialize(opts = {})
|
809
788
|
|
@@ -815,7 +794,7 @@ __Returns:__
|
|
815
794
|
|
816
795
|
--
|
817
796
|
|
818
|
-
##### [wait_true](https://github.com/appium/ruby_lib/blob/
|
797
|
+
##### [wait_true](https://github.com/appium/ruby_lib/blob/b9b8784697d9fbe73d3883cf42d260f19138d8f5/lib/appium_lib/common/wait.rb#L34)
|
819
798
|
|
820
799
|
> def wait_true(opts = {})
|
821
800
|
|
@@ -835,7 +814,7 @@ __Parameters:__
|
|
835
814
|
|
836
815
|
--
|
837
816
|
|
838
|
-
##### [wait](https://github.com/appium/ruby_lib/blob/
|
817
|
+
##### [wait](https://github.com/appium/ruby_lib/blob/b9b8784697d9fbe73d3883cf42d260f19138d8f5/lib/appium_lib/common/wait.rb#L57)
|
839
818
|
|
840
819
|
> def wait(opts = {})
|
841
820
|
|
@@ -853,7 +832,7 @@ __Parameters:__
|
|
853
832
|
|
854
833
|
--
|
855
834
|
|
856
|
-
##### [ignore](https://github.com/appium/ruby_lib/blob/
|
835
|
+
##### [ignore](https://github.com/appium/ruby_lib/blob/b9b8784697d9fbe73d3883cf42d260f19138d8f5/lib/appium_lib/common/helper.rb#L16)
|
857
836
|
|
858
837
|
> def ignore
|
859
838
|
|
@@ -861,7 +840,7 @@ Return yield and ignore any exceptions.
|
|
861
840
|
|
862
841
|
--
|
863
842
|
|
864
|
-
##### [back](https://github.com/appium/ruby_lib/blob/
|
843
|
+
##### [back](https://github.com/appium/ruby_lib/blob/b9b8784697d9fbe73d3883cf42d260f19138d8f5/lib/appium_lib/common/helper.rb#L23)
|
865
844
|
|
866
845
|
> def back
|
867
846
|
|
@@ -873,15 +852,19 @@ __Returns:__
|
|
873
852
|
|
874
853
|
--
|
875
854
|
|
876
|
-
##### [session_id](https://github.com/appium/ruby_lib/blob/
|
855
|
+
##### [session_id](https://github.com/appium/ruby_lib/blob/b9b8784697d9fbe73d3883cf42d260f19138d8f5/lib/appium_lib/common/helper.rb#L34)
|
877
856
|
|
878
857
|
> def session_id
|
879
858
|
|
880
859
|
For Sauce Labs reporting. Returns the current session id.
|
881
860
|
|
861
|
+
__Returns:__
|
862
|
+
|
863
|
+
[String]
|
864
|
+
|
882
865
|
--
|
883
866
|
|
884
|
-
##### [xpath](https://github.com/appium/ruby_lib/blob/
|
867
|
+
##### [xpath](https://github.com/appium/ruby_lib/blob/b9b8784697d9fbe73d3883cf42d260f19138d8f5/lib/appium_lib/common/helper.rb#L42)
|
885
868
|
|
886
869
|
> def xpath(xpath_str)
|
887
870
|
|
@@ -897,7 +880,7 @@ __Returns:__
|
|
897
880
|
|
898
881
|
--
|
899
882
|
|
900
|
-
##### [xpaths](https://github.com/appium/ruby_lib/blob/
|
883
|
+
##### [xpaths](https://github.com/appium/ruby_lib/blob/b9b8784697d9fbe73d3883cf42d260f19138d8f5/lib/appium_lib/common/helper.rb#L50)
|
901
884
|
|
902
885
|
> def xpaths(xpath_str)
|
903
886
|
|
@@ -913,7 +896,7 @@ __Returns:__
|
|
913
896
|
|
914
897
|
--
|
915
898
|
|
916
|
-
##### [result](https://github.com/appium/ruby_lib/blob/
|
899
|
+
##### [result](https://github.com/appium/ruby_lib/blob/b9b8784697d9fbe73d3883cf42d260f19138d8f5/lib/appium_lib/common/helper.rb#L61)
|
917
900
|
|
918
901
|
> def result
|
919
902
|
|
@@ -921,7 +904,7 @@ Returns the value of attribute result
|
|
921
904
|
|
922
905
|
--
|
923
906
|
|
924
|
-
##### [initialize](https://github.com/appium/ruby_lib/blob/
|
907
|
+
##### [initialize](https://github.com/appium/ruby_lib/blob/b9b8784697d9fbe73d3883cf42d260f19138d8f5/lib/appium_lib/common/helper.rb#L63)
|
925
908
|
|
926
909
|
> def initialize
|
927
910
|
|
@@ -933,7 +916,7 @@ __Returns:__
|
|
933
916
|
|
934
917
|
--
|
935
918
|
|
936
|
-
##### [reset](https://github.com/appium/ruby_lib/blob/
|
919
|
+
##### [reset](https://github.com/appium/ruby_lib/blob/b9b8784697d9fbe73d3883cf42d260f19138d8f5/lib/appium_lib/common/helper.rb#L67)
|
937
920
|
|
938
921
|
> def reset
|
939
922
|
|
@@ -941,7 +924,7 @@ __Returns:__
|
|
941
924
|
|
942
925
|
--
|
943
926
|
|
944
|
-
##### [start_element](https://github.com/appium/ruby_lib/blob/
|
927
|
+
##### [start_element](https://github.com/appium/ruby_lib/blob/b9b8784697d9fbe73d3883cf42d260f19138d8f5/lib/appium_lib/common/helper.rb#L72)
|
945
928
|
|
946
929
|
> def start_element(name, attrs = [], driver = $driver)
|
947
930
|
|
@@ -949,7 +932,7 @@ http://nokogiri.org/Nokogiri/XML/SAX/Document.html
|
|
949
932
|
|
950
933
|
--
|
951
934
|
|
952
|
-
##### [formatted_result](https://github.com/appium/ruby_lib/blob/
|
935
|
+
##### [formatted_result](https://github.com/appium/ruby_lib/blob/b9b8784697d9fbe73d3883cf42d260f19138d8f5/lib/appium_lib/common/helper.rb#L78)
|
953
936
|
|
954
937
|
> def formatted_result
|
955
938
|
|
@@ -957,36 +940,40 @@ http://nokogiri.org/Nokogiri/XML/SAX/Document.html
|
|
957
940
|
|
958
941
|
--
|
959
942
|
|
960
|
-
##### [get_page_class](https://github.com/appium/ruby_lib/blob/
|
943
|
+
##### [get_page_class](https://github.com/appium/ruby_lib/blob/b9b8784697d9fbe73d3883cf42d260f19138d8f5/lib/appium_lib/common/helper.rb#L97)
|
961
944
|
|
962
945
|
> def get_page_class
|
963
946
|
|
964
947
|
Returns a string of class counts of visible elements.
|
965
948
|
|
949
|
+
__Returns:__
|
950
|
+
|
951
|
+
[String]
|
952
|
+
|
966
953
|
--
|
967
954
|
|
968
|
-
##### [page_class](https://github.com/appium/ruby_lib/blob/
|
955
|
+
##### [page_class](https://github.com/appium/ruby_lib/blob/b9b8784697d9fbe73d3883cf42d260f19138d8f5/lib/appium_lib/common/helper.rb#L122)
|
969
956
|
|
970
957
|
> def page_class
|
971
958
|
|
972
959
|
Count all classes on screen and print to stdout.
|
973
960
|
Useful for appium_console.
|
974
961
|
|
962
|
+
__Returns:__
|
963
|
+
|
964
|
+
[nil]
|
965
|
+
|
975
966
|
--
|
976
967
|
|
977
|
-
##### [px_to_window_rel](https://github.com/appium/ruby_lib/blob/
|
968
|
+
##### [px_to_window_rel](https://github.com/appium/ruby_lib/blob/b9b8784697d9fbe73d3883cf42d260f19138d8f5/lib/appium_lib/common/helper.rb#L133)
|
978
969
|
|
979
970
|
> def px_to_window_rel(opts = {}, driver = $driver)
|
980
971
|
|
981
972
|
Converts pixel values to window relative values
|
982
973
|
|
983
|
-
```ruby
|
984
|
-
px_to_window_rel x: 50, y: 150
|
985
|
-
```
|
986
|
-
|
987
974
|
--
|
988
975
|
|
989
|
-
##### [xml_keys](https://github.com/appium/ruby_lib/blob/
|
976
|
+
##### [xml_keys](https://github.com/appium/ruby_lib/blob/b9b8784697d9fbe73d3883cf42d260f19138d8f5/lib/appium_lib/common/helper.rb#L152)
|
990
977
|
|
991
978
|
> def xml_keys(target)
|
992
979
|
|
@@ -1002,7 +989,7 @@ __Returns:__
|
|
1002
989
|
|
1003
990
|
--
|
1004
991
|
|
1005
|
-
##### [xml_values](https://github.com/appium/ruby_lib/blob/
|
992
|
+
##### [xml_values](https://github.com/appium/ruby_lib/blob/b9b8784697d9fbe73d3883cf42d260f19138d8f5/lib/appium_lib/common/helper.rb#L160)
|
1006
993
|
|
1007
994
|
> def xml_values(target)
|
1008
995
|
|
@@ -1018,7 +1005,7 @@ __Returns:__
|
|
1018
1005
|
|
1019
1006
|
--
|
1020
1007
|
|
1021
|
-
##### [resolve_id](https://github.com/appium/ruby_lib/blob/
|
1008
|
+
##### [resolve_id](https://github.com/appium/ruby_lib/blob/b9b8784697d9fbe73d3883cf42d260f19138d8f5/lib/appium_lib/common/helper.rb#L168)
|
1022
1009
|
|
1023
1010
|
> def resolve_id(id)
|
1024
1011
|
|
@@ -1034,7 +1021,7 @@ __Returns:__
|
|
1034
1021
|
|
1035
1022
|
--
|
1036
1023
|
|
1037
|
-
##### [filter](https://github.com/appium/ruby_lib/blob/
|
1024
|
+
##### [filter](https://github.com/appium/ruby_lib/blob/b9b8784697d9fbe73d3883cf42d260f19138d8f5/lib/appium_lib/common/helper.rb#L175)
|
1038
1025
|
|
1039
1026
|
> def filter
|
1040
1027
|
|
@@ -1042,7 +1029,7 @@ Returns the value of attribute filter
|
|
1042
1029
|
|
1043
1030
|
--
|
1044
1031
|
|
1045
|
-
##### [filter=](https://github.com/appium/ruby_lib/blob/
|
1032
|
+
##### [filter=](https://github.com/appium/ruby_lib/blob/b9b8784697d9fbe73d3883cf42d260f19138d8f5/lib/appium_lib/common/helper.rb#L178)
|
1046
1033
|
|
1047
1034
|
> def filter=(value)
|
1048
1035
|
|
@@ -1050,7 +1037,7 @@ convert to string to support symbols
|
|
1050
1037
|
|
1051
1038
|
--
|
1052
1039
|
|
1053
|
-
##### [initialize](https://github.com/appium/ruby_lib/blob/
|
1040
|
+
##### [initialize](https://github.com/appium/ruby_lib/blob/b9b8784697d9fbe73d3883cf42d260f19138d8f5/lib/appium_lib/common/helper.rb#L184)
|
1054
1041
|
|
1055
1042
|
> def initialize
|
1056
1043
|
|
@@ -1062,7 +1049,7 @@ __Returns:__
|
|
1062
1049
|
|
1063
1050
|
--
|
1064
1051
|
|
1065
|
-
##### [reset](https://github.com/appium/ruby_lib/blob/
|
1052
|
+
##### [reset](https://github.com/appium/ruby_lib/blob/b9b8784697d9fbe73d3883cf42d260f19138d8f5/lib/appium_lib/common/helper.rb#L189)
|
1066
1053
|
|
1067
1054
|
> def reset
|
1068
1055
|
|
@@ -1070,7 +1057,7 @@ __Returns:__
|
|
1070
1057
|
|
1071
1058
|
--
|
1072
1059
|
|
1073
|
-
##### [result](https://github.com/appium/ruby_lib/blob/
|
1060
|
+
##### [result](https://github.com/appium/ruby_lib/blob/b9b8784697d9fbe73d3883cf42d260f19138d8f5/lib/appium_lib/common/helper.rb#L195)
|
1074
1061
|
|
1075
1062
|
> def result
|
1076
1063
|
|
@@ -1078,7 +1065,7 @@ __Returns:__
|
|
1078
1065
|
|
1079
1066
|
--
|
1080
1067
|
|
1081
|
-
##### [start_element](https://github.com/appium/ruby_lib/blob/
|
1068
|
+
##### [start_element](https://github.com/appium/ruby_lib/blob/b9b8784697d9fbe73d3883cf42d260f19138d8f5/lib/appium_lib/common/helper.rb#L211)
|
1082
1069
|
|
1083
1070
|
> def start_element(name, attrs = [])
|
1084
1071
|
|
@@ -1086,7 +1073,7 @@ __Returns:__
|
|
1086
1073
|
|
1087
1074
|
--
|
1088
1075
|
|
1089
|
-
##### [end_element](https://github.com/appium/ruby_lib/blob/
|
1076
|
+
##### [end_element](https://github.com/appium/ruby_lib/blob/b9b8784697d9fbe73d3883cf42d260f19138d8f5/lib/appium_lib/common/helper.rb#L220)
|
1090
1077
|
|
1091
1078
|
> def end_element(name)
|
1092
1079
|
|
@@ -1094,7 +1081,7 @@ __Returns:__
|
|
1094
1081
|
|
1095
1082
|
--
|
1096
1083
|
|
1097
|
-
##### [characters](https://github.com/appium/ruby_lib/blob/
|
1084
|
+
##### [characters](https://github.com/appium/ruby_lib/blob/b9b8784697d9fbe73d3883cf42d260f19138d8f5/lib/appium_lib/common/helper.rb#L226)
|
1098
1085
|
|
1099
1086
|
> def characters(chars)
|
1100
1087
|
|
@@ -1102,38 +1089,24 @@ __Returns:__
|
|
1102
1089
|
|
1103
1090
|
--
|
1104
1091
|
|
1105
|
-
##### [DEFAULT_HEADERS](https://github.com/appium/ruby_lib/blob/
|
1092
|
+
##### [DEFAULT_HEADERS](https://github.com/appium/ruby_lib/blob/b9b8784697d9fbe73d3883cf42d260f19138d8f5/lib/appium_lib/common/http_client.rb#L8)
|
1106
1093
|
|
1107
1094
|
> DEFAULT_HEADERS = { 'Accept' => CONTENT_TYPE, 'User-Agent' => "appium/ruby_lib/#{::Appium::VERSION}" }.freeze
|
1108
1095
|
|
1109
|
-
|
1096
|
+
Default HTTP client inherit Appium::Core::Base::Http::Default, but has different DEFAULT_HEADERS
|
1110
1097
|
|
1111
1098
|
--
|
1112
1099
|
|
1113
|
-
##### [pinch](https://github.com/appium/ruby_lib/blob/
|
1100
|
+
##### [pinch](https://github.com/appium/ruby_lib/blob/b9b8784697d9fbe73d3883cf42d260f19138d8f5/lib/appium_lib/common/multi_touch.rb#L51)
|
1114
1101
|
|
1115
1102
|
> def pinch(percentage = 25, auto_perform = true, driver = $driver)
|
1116
1103
|
|
1117
1104
|
Convenience method for pinching the screen.
|
1118
1105
|
Places two fingers at the edges of the screen and brings them together.
|
1119
|
-
```ruby
|
1120
|
-
pinch 75 #=> Pinch the screen from the top right and bottom left corners
|
1121
|
-
```
|
1122
|
-
|
1123
1106
|
Without auto_perform
|
1124
1107
|
|
1125
|
-
```ruby
|
1126
|
-
action = pinch 75, false #=> Pinch the screen from the top right and bottom left corners
|
1127
|
-
action.perform #=> to 25% of its size.
|
1128
|
-
```
|
1129
|
-
|
1130
1108
|
With driver
|
1131
1109
|
|
1132
|
-
```ruby
|
1133
|
-
driver = Appium::Driver.new(opts, false).start_driver
|
1134
|
-
pinch 75, true, driver #=> Pinch the screen from the top right and bottom left corners
|
1135
|
-
```
|
1136
|
-
|
1137
1110
|
__Parameters:__
|
1138
1111
|
|
1139
1112
|
[int] percentage - The percent size by which to shrink the screen when pinched.
|
@@ -1144,30 +1117,16 @@ __Parameters:__
|
|
1144
1117
|
|
1145
1118
|
--
|
1146
1119
|
|
1147
|
-
##### [zoom](https://github.com/appium/ruby_lib/blob/
|
1120
|
+
##### [zoom](https://github.com/appium/ruby_lib/blob/b9b8784697d9fbe73d3883cf42d260f19138d8f5/lib/appium_lib/common/multi_touch.rb#L79)
|
1148
1121
|
|
1149
1122
|
> def zoom(percentage = 200, auto_perform = true, driver = $driver)
|
1150
1123
|
|
1151
1124
|
Convenience method for zooming the screen.
|
1152
1125
|
Places two fingers at the edges of the screen and brings them together.
|
1153
|
-
```ruby
|
1154
|
-
action = zoom 200 #=> Zoom in the screen from the center until it doubles in size.
|
1155
|
-
```
|
1156
|
-
|
1157
1126
|
Without auto_perform
|
1158
1127
|
|
1159
|
-
```ruby
|
1160
|
-
action = zoom 200, false #=> Zoom in the screen from the center until it doubles in size.
|
1161
|
-
action.perform #=> to 25% of its size.
|
1162
|
-
```
|
1163
|
-
|
1164
1128
|
With driver
|
1165
1129
|
|
1166
|
-
```ruby
|
1167
|
-
driver = Appium::Driver.new(opts, false).start_driver
|
1168
|
-
pinch 200, true, driver #=> Zoom in the screen from the center until it doubles in size.
|
1169
|
-
```
|
1170
|
-
|
1171
1130
|
__Parameters:__
|
1172
1131
|
|
1173
1132
|
[int] percentage - The percent size by which to shrink the screen when pinched.
|
@@ -1178,7 +1137,7 @@ __Parameters:__
|
|
1178
1137
|
|
1179
1138
|
--
|
1180
1139
|
|
1181
|
-
##### [initialize](https://github.com/appium/ruby_lib/blob/
|
1140
|
+
##### [initialize](https://github.com/appium/ruby_lib/blob/b9b8784697d9fbe73d3883cf42d260f19138d8f5/lib/appium_lib/common/multi_touch.rb#L84)
|
1182
1141
|
|
1183
1142
|
> def initialize(driver = $driver)
|
1184
1143
|
|
@@ -1190,7 +1149,7 @@ __Returns:__
|
|
1190
1149
|
|
1191
1150
|
--
|
1192
1151
|
|
1193
|
-
##### [COMPLEX_ACTIONS](https://github.com/appium/ruby_lib/blob/
|
1152
|
+
##### [COMPLEX_ACTIONS](https://github.com/appium/ruby_lib/blob/b9b8784697d9fbe73d3883cf42d260f19138d8f5/lib/appium_lib/common/touch_actions.rb#L33)
|
1194
1153
|
|
1195
1154
|
> COMPLEX_ACTIONS = ::Appium::Core::TouchAction::COMPLEX_ACTIONS
|
1196
1155
|
|
@@ -1198,7 +1157,7 @@ __Returns:__
|
|
1198
1157
|
|
1199
1158
|
--
|
1200
1159
|
|
1201
|
-
##### [initialize](https://github.com/appium/ruby_lib/blob/
|
1160
|
+
##### [initialize](https://github.com/appium/ruby_lib/blob/b9b8784697d9fbe73d3883cf42d260f19138d8f5/lib/appium_lib/common/touch_actions.rb#L47)
|
1202
1161
|
|
1203
1162
|
> def initialize(driver = $driver)
|
1204
1163
|
|
@@ -1210,7 +1169,7 @@ __Returns:__
|
|
1210
1169
|
|
1211
1170
|
--
|
1212
1171
|
|
1213
|
-
##### [for](https://github.com/appium/ruby_lib/blob/
|
1172
|
+
##### [for](https://github.com/appium/ruby_lib/blob/b9b8784697d9fbe73d3883cf42d260f19138d8f5/lib/appium_lib/android/android.rb#L15) android
|
1214
1173
|
|
1215
1174
|
> def self.for(target)
|
1216
1175
|
|
@@ -1218,7 +1177,7 @@ __Returns:__
|
|
1218
1177
|
|
1219
1178
|
--
|
1220
1179
|
|
1221
|
-
##### [TextView](https://github.com/appium/ruby_lib/blob/
|
1180
|
+
##### [TextView](https://github.com/appium/ruby_lib/blob/b9b8784697d9fbe73d3883cf42d260f19138d8f5/lib/appium_lib/android/element/text.rb#L4) android
|
1222
1181
|
|
1223
1182
|
> TextView = 'android.widget.TextView'.freeze
|
1224
1183
|
|
@@ -1226,7 +1185,7 @@ __Returns:__
|
|
1226
1185
|
|
1227
1186
|
--
|
1228
1187
|
|
1229
|
-
##### [text](https://github.com/appium/ruby_lib/blob/
|
1188
|
+
##### [text](https://github.com/appium/ruby_lib/blob/b9b8784697d9fbe73d3883cf42d260f19138d8f5/lib/appium_lib/android/element/text.rb#L10) android
|
1230
1189
|
|
1231
1190
|
> def text(value)
|
1232
1191
|
|
@@ -1243,7 +1202,7 @@ __Returns:__
|
|
1243
1202
|
|
1244
1203
|
--
|
1245
1204
|
|
1246
|
-
##### [texts](https://github.com/appium/ruby_lib/blob/
|
1205
|
+
##### [texts](https://github.com/appium/ruby_lib/blob/b9b8784697d9fbe73d3883cf42d260f19138d8f5/lib/appium_lib/android/element/text.rb#L19) android
|
1247
1206
|
|
1248
1207
|
> def texts(value = false)
|
1249
1208
|
|
@@ -1260,7 +1219,7 @@ __Returns:__
|
|
1260
1219
|
|
1261
1220
|
--
|
1262
1221
|
|
1263
|
-
##### [first_text](https://github.com/appium/ruby_lib/blob/
|
1222
|
+
##### [first_text](https://github.com/appium/ruby_lib/blob/b9b8784697d9fbe73d3883cf42d260f19138d8f5/lib/appium_lib/android/element/text.rb#L26) android
|
1264
1223
|
|
1265
1224
|
> def first_text
|
1266
1225
|
|
@@ -1272,7 +1231,7 @@ __Returns:__
|
|
1272
1231
|
|
1273
1232
|
--
|
1274
1233
|
|
1275
|
-
##### [last_text](https://github.com/appium/ruby_lib/blob/
|
1234
|
+
##### [last_text](https://github.com/appium/ruby_lib/blob/b9b8784697d9fbe73d3883cf42d260f19138d8f5/lib/appium_lib/android/element/text.rb#L32) android
|
1276
1235
|
|
1277
1236
|
> def last_text
|
1278
1237
|
|
@@ -1284,7 +1243,7 @@ __Returns:__
|
|
1284
1243
|
|
1285
1244
|
--
|
1286
1245
|
|
1287
|
-
##### [text_exact](https://github.com/appium/ruby_lib/blob/
|
1246
|
+
##### [text_exact](https://github.com/appium/ruby_lib/blob/b9b8784697d9fbe73d3883cf42d260f19138d8f5/lib/appium_lib/android/element/text.rb#L39) android
|
1288
1247
|
|
1289
1248
|
> def text_exact(value)
|
1290
1249
|
|
@@ -1300,7 +1259,7 @@ __Returns:__
|
|
1300
1259
|
|
1301
1260
|
--
|
1302
1261
|
|
1303
|
-
##### [texts_exact](https://github.com/appium/ruby_lib/blob/
|
1262
|
+
##### [texts_exact](https://github.com/appium/ruby_lib/blob/b9b8784697d9fbe73d3883cf42d260f19138d8f5/lib/appium_lib/android/element/text.rb#L46) android
|
1304
1263
|
|
1305
1264
|
> def texts_exact(value)
|
1306
1265
|
|
@@ -1316,7 +1275,7 @@ __Returns:__
|
|
1316
1275
|
|
1317
1276
|
--
|
1318
1277
|
|
1319
|
-
##### [result](https://github.com/appium/ruby_lib/blob/
|
1278
|
+
##### [result](https://github.com/appium/ruby_lib/blob/b9b8784697d9fbe73d3883cf42d260f19138d8f5/lib/appium_lib/android/common/helper.rb#L6) android
|
1320
1279
|
|
1321
1280
|
> def result
|
1322
1281
|
|
@@ -1324,7 +1283,7 @@ Returns the value of attribute result
|
|
1324
1283
|
|
1325
1284
|
--
|
1326
1285
|
|
1327
|
-
##### [keys](https://github.com/appium/ruby_lib/blob/
|
1286
|
+
##### [keys](https://github.com/appium/ruby_lib/blob/b9b8784697d9fbe73d3883cf42d260f19138d8f5/lib/appium_lib/android/common/helper.rb#L6) android
|
1328
1287
|
|
1329
1288
|
> def keys
|
1330
1289
|
|
@@ -1332,7 +1291,7 @@ Returns the value of attribute keys
|
|
1332
1291
|
|
1333
1292
|
--
|
1334
1293
|
|
1335
|
-
##### [filter](https://github.com/appium/ruby_lib/blob/
|
1294
|
+
##### [filter](https://github.com/appium/ruby_lib/blob/b9b8784697d9fbe73d3883cf42d260f19138d8f5/lib/appium_lib/android/common/helper.rb#L6) android
|
1336
1295
|
|
1337
1296
|
> def filter
|
1338
1297
|
|
@@ -1340,7 +1299,7 @@ Returns the value of attribute filter
|
|
1340
1299
|
|
1341
1300
|
--
|
1342
1301
|
|
1343
|
-
##### [filter=](https://github.com/appium/ruby_lib/blob/
|
1302
|
+
##### [filter=](https://github.com/appium/ruby_lib/blob/b9b8784697d9fbe73d3883cf42d260f19138d8f5/lib/appium_lib/android/common/helper.rb#L9) android
|
1344
1303
|
|
1345
1304
|
> def filter=(value)
|
1346
1305
|
|
@@ -1348,7 +1307,7 @@ convert to string to support symbols
|
|
1348
1307
|
|
1349
1308
|
--
|
1350
1309
|
|
1351
|
-
##### [initialize](https://github.com/appium/ruby_lib/blob/
|
1310
|
+
##### [initialize](https://github.com/appium/ruby_lib/blob/b9b8784697d9fbe73d3883cf42d260f19138d8f5/lib/appium_lib/android/common/helper.rb#L15) android
|
1352
1311
|
|
1353
1312
|
> def initialize
|
1354
1313
|
|
@@ -1360,7 +1319,7 @@ __Returns:__
|
|
1360
1319
|
|
1361
1320
|
--
|
1362
1321
|
|
1363
|
-
##### [reset](https://github.com/appium/ruby_lib/blob/
|
1322
|
+
##### [reset](https://github.com/appium/ruby_lib/blob/b9b8784697d9fbe73d3883cf42d260f19138d8f5/lib/appium_lib/android/common/helper.rb#L20) android
|
1364
1323
|
|
1365
1324
|
> def reset
|
1366
1325
|
|
@@ -1368,7 +1327,7 @@ __Returns:__
|
|
1368
1327
|
|
1369
1328
|
--
|
1370
1329
|
|
1371
|
-
##### [start_element](https://github.com/appium/ruby_lib/blob/
|
1330
|
+
##### [start_element](https://github.com/appium/ruby_lib/blob/b9b8784697d9fbe73d3883cf42d260f19138d8f5/lib/appium_lib/android/common/helper.rb#L26) android
|
1372
1331
|
|
1373
1332
|
> def start_element(name, attrs = [], driver = $driver)
|
1374
1333
|
|
@@ -1376,7 +1335,7 @@ http://nokogiri.org/Nokogiri/XML/SAX/Document.html
|
|
1376
1335
|
|
1377
1336
|
--
|
1378
1337
|
|
1379
|
-
##### [source](https://github.com/appium/ruby_lib/blob/
|
1338
|
+
##### [source](https://github.com/appium/ruby_lib/blob/b9b8784697d9fbe73d3883cf42d260f19138d8f5/lib/appium_lib/android/common/helper.rb#L76) android
|
1380
1339
|
|
1381
1340
|
> def source
|
1382
1341
|
|
@@ -1388,7 +1347,7 @@ __Returns:__
|
|
1388
1347
|
|
1389
1348
|
--
|
1390
1349
|
|
1391
|
-
##### [get_android_inspect](https://github.com/appium/ruby_lib/blob/
|
1350
|
+
##### [get_android_inspect](https://github.com/appium/ruby_lib/blob/b9b8784697d9fbe73d3883cf42d260f19138d8f5/lib/appium_lib/android/common/helper.rb#L86) android
|
1392
1351
|
|
1393
1352
|
> def get_android_inspect(class_name = false)
|
1394
1353
|
|
@@ -1407,7 +1366,7 @@ __Returns:__
|
|
1407
1366
|
|
1408
1367
|
--
|
1409
1368
|
|
1410
|
-
##### [page](https://github.com/appium/ruby_lib/blob/
|
1369
|
+
##### [page](https://github.com/appium/ruby_lib/blob/b9b8784697d9fbe73d3883cf42d260f19138d8f5/lib/appium_lib/android/common/helper.rb#L112) android
|
1411
1370
|
|
1412
1371
|
> def page(opts = {})
|
1413
1372
|
|
@@ -1426,7 +1385,7 @@ __Returns:__
|
|
1426
1385
|
|
1427
1386
|
--
|
1428
1387
|
|
1429
|
-
##### [current_app](https://github.com/appium/ruby_lib/blob/
|
1388
|
+
##### [current_app](https://github.com/appium/ruby_lib/blob/b9b8784697d9fbe73d3883cf42d260f19138d8f5/lib/appium_lib/android/common/helper.rb#L124) android
|
1430
1389
|
|
1431
1390
|
> def current_app
|
1432
1391
|
|
@@ -1436,7 +1395,7 @@ example line:
|
|
1436
1395
|
|
1437
1396
|
--
|
1438
1397
|
|
1439
|
-
##### [id](https://github.com/appium/ruby_lib/blob/
|
1398
|
+
##### [id](https://github.com/appium/ruby_lib/blob/b9b8784697d9fbe73d3883cf42d260f19138d8f5/lib/appium_lib/android/common/helper.rb#L148) android
|
1440
1399
|
|
1441
1400
|
> def id(id)
|
1442
1401
|
|
@@ -1452,7 +1411,7 @@ __Returns:__
|
|
1452
1411
|
|
1453
1412
|
--
|
1454
1413
|
|
1455
|
-
##### [ids](https://github.com/appium/ruby_lib/blob/
|
1414
|
+
##### [ids](https://github.com/appium/ruby_lib/blob/b9b8784697d9fbe73d3883cf42d260f19138d8f5/lib/appium_lib/android/common/helper.rb#L156) android
|
1456
1415
|
|
1457
1416
|
> def ids(id)
|
1458
1417
|
|
@@ -1468,7 +1427,7 @@ __Returns:__
|
|
1468
1427
|
|
1469
1428
|
--
|
1470
1429
|
|
1471
|
-
##### [ele_index](https://github.com/appium/ruby_lib/blob/
|
1430
|
+
##### [ele_index](https://github.com/appium/ruby_lib/blob/b9b8784697d9fbe73d3883cf42d260f19138d8f5/lib/appium_lib/android/common/helper.rb#L165) android
|
1472
1431
|
|
1473
1432
|
> def ele_index(class_name, index)
|
1474
1433
|
|
@@ -1486,7 +1445,7 @@ __Returns:__
|
|
1486
1445
|
|
1487
1446
|
--
|
1488
1447
|
|
1489
|
-
##### [first_ele](https://github.com/appium/ruby_lib/blob/
|
1448
|
+
##### [first_ele](https://github.com/appium/ruby_lib/blob/b9b8784697d9fbe73d3883cf42d260f19138d8f5/lib/appium_lib/android/common/helper.rb#L183) android
|
1490
1449
|
|
1491
1450
|
> def first_ele(class_name)
|
1492
1451
|
|
@@ -1502,7 +1461,7 @@ __Returns:__
|
|
1502
1461
|
|
1503
1462
|
--
|
1504
1463
|
|
1505
|
-
##### [last_ele](https://github.com/appium/ruby_lib/blob/
|
1464
|
+
##### [last_ele](https://github.com/appium/ruby_lib/blob/b9b8784697d9fbe73d3883cf42d260f19138d8f5/lib/appium_lib/android/common/helper.rb#L190) android
|
1506
1465
|
|
1507
1466
|
> def last_ele(class_name)
|
1508
1467
|
|
@@ -1518,7 +1477,7 @@ __Returns:__
|
|
1518
1477
|
|
1519
1478
|
--
|
1520
1479
|
|
1521
|
-
##### [tag](https://github.com/appium/ruby_lib/blob/
|
1480
|
+
##### [tag](https://github.com/appium/ruby_lib/blob/b9b8784697d9fbe73d3883cf42d260f19138d8f5/lib/appium_lib/android/common/helper.rb#L198) android
|
1522
1481
|
|
1523
1482
|
> def tag(class_name)
|
1524
1483
|
|
@@ -1534,7 +1493,7 @@ __Returns:__
|
|
1534
1493
|
|
1535
1494
|
--
|
1536
1495
|
|
1537
|
-
##### [tags](https://github.com/appium/ruby_lib/blob/
|
1496
|
+
##### [tags](https://github.com/appium/ruby_lib/blob/b9b8784697d9fbe73d3883cf42d260f19138d8f5/lib/appium_lib/android/common/helper.rb#L206) android
|
1538
1497
|
|
1539
1498
|
> def tags(class_name)
|
1540
1499
|
|
@@ -1550,7 +1509,7 @@ __Returns:__
|
|
1550
1509
|
|
1551
1510
|
--
|
1552
1511
|
|
1553
|
-
##### [string_visible_contains_xpath](https://github.com/appium/ruby_lib/blob/
|
1512
|
+
##### [string_visible_contains_xpath](https://github.com/appium/ruby_lib/blob/b9b8784697d9fbe73d3883cf42d260f19138d8f5/lib/appium_lib/android/common/helper.rb#L249) android
|
1554
1513
|
|
1555
1514
|
> def string_visible_contains_xpath(class_name, value)
|
1556
1515
|
|
@@ -1571,7 +1530,7 @@ __Returns:__
|
|
1571
1530
|
|
1572
1531
|
--
|
1573
1532
|
|
1574
|
-
##### [string_visible_contains](https://github.com/appium/ruby_lib/blob/
|
1533
|
+
##### [string_visible_contains](https://github.com/appium/ruby_lib/blob/b9b8784697d9fbe73d3883cf42d260f19138d8f5/lib/appium_lib/android/common/helper.rb#L269) android
|
1575
1534
|
|
1576
1535
|
> def string_visible_contains(class_name, value)
|
1577
1536
|
|
@@ -1592,7 +1551,7 @@ __Returns:__
|
|
1592
1551
|
|
1593
1552
|
--
|
1594
1553
|
|
1595
|
-
##### [complex_find_contains](https://github.com/appium/ruby_lib/blob/
|
1554
|
+
##### [complex_find_contains](https://github.com/appium/ruby_lib/blob/b9b8784697d9fbe73d3883cf42d260f19138d8f5/lib/appium_lib/android/common/helper.rb#L287) android
|
1596
1555
|
|
1597
1556
|
> def complex_find_contains(class_name, value)
|
1598
1557
|
|
@@ -1610,7 +1569,7 @@ __Returns:__
|
|
1610
1569
|
|
1611
1570
|
--
|
1612
1571
|
|
1613
|
-
##### [complex_finds_contains](https://github.com/appium/ruby_lib/blob/
|
1572
|
+
##### [complex_finds_contains](https://github.com/appium/ruby_lib/blob/b9b8784697d9fbe73d3883cf42d260f19138d8f5/lib/appium_lib/android/common/helper.rb#L295) android
|
1614
1573
|
|
1615
1574
|
> def complex_finds_contains(class_name, value)
|
1616
1575
|
|
@@ -1628,7 +1587,7 @@ __Returns:__
|
|
1628
1587
|
|
1629
1588
|
--
|
1630
1589
|
|
1631
|
-
##### [complex_find_exact](https://github.com/appium/ruby_lib/blob/
|
1590
|
+
##### [complex_find_exact](https://github.com/appium/ruby_lib/blob/b9b8784697d9fbe73d3883cf42d260f19138d8f5/lib/appium_lib/android/common/helper.rb#L339) android
|
1632
1591
|
|
1633
1592
|
> def complex_find_exact(class_name, value)
|
1634
1593
|
|
@@ -1646,7 +1605,7 @@ __Returns:__
|
|
1646
1605
|
|
1647
1606
|
--
|
1648
1607
|
|
1649
|
-
##### [complex_finds_exact](https://github.com/appium/ruby_lib/blob/
|
1608
|
+
##### [complex_finds_exact](https://github.com/appium/ruby_lib/blob/b9b8784697d9fbe73d3883cf42d260f19138d8f5/lib/appium_lib/android/common/helper.rb#L347) android
|
1650
1609
|
|
1651
1610
|
> def complex_finds_exact(class_name, value)
|
1652
1611
|
|
@@ -1664,7 +1623,7 @@ __Returns:__
|
|
1664
1623
|
|
1665
1624
|
--
|
1666
1625
|
|
1667
|
-
##### [get_source](https://github.com/appium/ruby_lib/blob/
|
1626
|
+
##### [get_source](https://github.com/appium/ruby_lib/blob/b9b8784697d9fbe73d3883cf42d260f19138d8f5/lib/appium_lib/android/common/helper.rb#L353) android
|
1668
1627
|
|
1669
1628
|
> def get_source
|
1670
1629
|
|
@@ -1676,7 +1635,7 @@ __Returns:__
|
|
1676
1635
|
|
1677
1636
|
--
|
1678
1637
|
|
1679
|
-
##### [alert_click](https://github.com/appium/ruby_lib/blob/
|
1638
|
+
##### [alert_click](https://github.com/appium/ruby_lib/blob/b9b8784697d9fbe73d3883cf42d260f19138d8f5/lib/appium_lib/android/element/alert.rb#L6) android
|
1680
1639
|
|
1681
1640
|
> def alert_click(value)
|
1682
1641
|
|
@@ -1692,7 +1651,7 @@ __Returns:__
|
|
1692
1651
|
|
1693
1652
|
--
|
1694
1653
|
|
1695
|
-
##### [alert_accept](https://github.com/appium/ruby_lib/blob/
|
1654
|
+
##### [alert_accept](https://github.com/appium/ruby_lib/blob/b9b8784697d9fbe73d3883cf42d260f19138d8f5/lib/appium_lib/android/element/alert.rb#L13) android
|
1696
1655
|
|
1697
1656
|
> def alert_accept
|
1698
1657
|
|
@@ -1705,7 +1664,7 @@ __Returns:__
|
|
1705
1664
|
|
1706
1665
|
--
|
1707
1666
|
|
1708
|
-
##### [alert_accept_text](https://github.com/appium/ruby_lib/blob/
|
1667
|
+
##### [alert_accept_text](https://github.com/appium/ruby_lib/blob/b9b8784697d9fbe73d3883cf42d260f19138d8f5/lib/appium_lib/android/element/alert.rb#L20) android
|
1709
1668
|
|
1710
1669
|
> def alert_accept_text
|
1711
1670
|
|
@@ -1718,7 +1677,7 @@ __Returns:__
|
|
1718
1677
|
|
1719
1678
|
--
|
1720
1679
|
|
1721
|
-
##### [alert_dismiss](https://github.com/appium/ruby_lib/blob/
|
1680
|
+
##### [alert_dismiss](https://github.com/appium/ruby_lib/blob/b9b8784697d9fbe73d3883cf42d260f19138d8f5/lib/appium_lib/android/element/alert.rb#L27) android
|
1722
1681
|
|
1723
1682
|
> def alert_dismiss
|
1724
1683
|
|
@@ -1731,7 +1690,7 @@ __Returns:__
|
|
1731
1690
|
|
1732
1691
|
--
|
1733
1692
|
|
1734
|
-
##### [alert_dismiss_text](https://github.com/appium/ruby_lib/blob/
|
1693
|
+
##### [alert_dismiss_text](https://github.com/appium/ruby_lib/blob/b9b8784697d9fbe73d3883cf42d260f19138d8f5/lib/appium_lib/android/element/alert.rb#L34) android
|
1735
1694
|
|
1736
1695
|
> def alert_dismiss_text
|
1737
1696
|
|
@@ -1744,7 +1703,7 @@ __Returns:__
|
|
1744
1703
|
|
1745
1704
|
--
|
1746
1705
|
|
1747
|
-
##### [Button](https://github.com/appium/ruby_lib/blob/
|
1706
|
+
##### [Button](https://github.com/appium/ruby_lib/blob/b9b8784697d9fbe73d3883cf42d260f19138d8f5/lib/appium_lib/android/element/button.rb#L3) android
|
1748
1707
|
|
1749
1708
|
> Button = 'android.widget.Button'.freeze
|
1750
1709
|
|
@@ -1752,7 +1711,7 @@ __Returns:__
|
|
1752
1711
|
|
1753
1712
|
--
|
1754
1713
|
|
1755
|
-
##### [ImageButton](https://github.com/appium/ruby_lib/blob/
|
1714
|
+
##### [ImageButton](https://github.com/appium/ruby_lib/blob/b9b8784697d9fbe73d3883cf42d260f19138d8f5/lib/appium_lib/android/element/button.rb#L4) android
|
1756
1715
|
|
1757
1716
|
> ImageButton = 'android.widget.ImageButton'.freeze
|
1758
1717
|
|
@@ -1760,7 +1719,7 @@ __Returns:__
|
|
1760
1719
|
|
1761
1720
|
--
|
1762
1721
|
|
1763
|
-
##### [button](https://github.com/appium/ruby_lib/blob/
|
1722
|
+
##### [button](https://github.com/appium/ruby_lib/blob/b9b8784697d9fbe73d3883cf42d260f19138d8f5/lib/appium_lib/android/element/button.rb#L10) android
|
1764
1723
|
|
1765
1724
|
> def button(value)
|
1766
1725
|
|
@@ -1777,7 +1736,7 @@ __Returns:__
|
|
1777
1736
|
|
1778
1737
|
--
|
1779
1738
|
|
1780
|
-
##### [buttons](https://github.com/appium/ruby_lib/blob/
|
1739
|
+
##### [buttons](https://github.com/appium/ruby_lib/blob/b9b8784697d9fbe73d3883cf42d260f19138d8f5/lib/appium_lib/android/element/button.rb#L27) android
|
1781
1740
|
|
1782
1741
|
> def buttons(value = false)
|
1783
1742
|
|
@@ -1794,7 +1753,7 @@ __Returns:__
|
|
1794
1753
|
|
1795
1754
|
--
|
1796
1755
|
|
1797
|
-
##### [first_button](https://github.com/appium/ruby_lib/blob/
|
1756
|
+
##### [first_button](https://github.com/appium/ruby_lib/blob/b9b8784697d9fbe73d3883cf42d260f19138d8f5/lib/appium_lib/android/element/button.rb#L34) android
|
1798
1757
|
|
1799
1758
|
> def first_button
|
1800
1759
|
|
@@ -1806,7 +1765,7 @@ __Returns:__
|
|
1806
1765
|
|
1807
1766
|
--
|
1808
1767
|
|
1809
|
-
##### [last_button](https://github.com/appium/ruby_lib/blob/
|
1768
|
+
##### [last_button](https://github.com/appium/ruby_lib/blob/b9b8784697d9fbe73d3883cf42d260f19138d8f5/lib/appium_lib/android/element/button.rb#L40) android
|
1810
1769
|
|
1811
1770
|
> def last_button
|
1812
1771
|
|
@@ -1818,7 +1777,7 @@ __Returns:__
|
|
1818
1777
|
|
1819
1778
|
--
|
1820
1779
|
|
1821
|
-
##### [button_exact](https://github.com/appium/ruby_lib/blob/
|
1780
|
+
##### [button_exact](https://github.com/appium/ruby_lib/blob/b9b8784697d9fbe73d3883cf42d260f19138d8f5/lib/appium_lib/android/element/button.rb#L56) android
|
1822
1781
|
|
1823
1782
|
> def button_exact(value)
|
1824
1783
|
|
@@ -1834,7 +1793,7 @@ __Returns:__
|
|
1834
1793
|
|
1835
1794
|
--
|
1836
1795
|
|
1837
|
-
##### [buttons_exact](https://github.com/appium/ruby_lib/blob/
|
1796
|
+
##### [buttons_exact](https://github.com/appium/ruby_lib/blob/b9b8784697d9fbe73d3883cf42d260f19138d8f5/lib/appium_lib/android/element/button.rb#L63) android
|
1838
1797
|
|
1839
1798
|
> def buttons_exact(value)
|
1840
1799
|
|
@@ -1850,7 +1809,7 @@ __Returns:__
|
|
1850
1809
|
|
1851
1810
|
--
|
1852
1811
|
|
1853
|
-
##### [find](https://github.com/appium/ruby_lib/blob/
|
1812
|
+
##### [find](https://github.com/appium/ruby_lib/blob/b9b8784697d9fbe73d3883cf42d260f19138d8f5/lib/appium_lib/android/element/generic.rb#L6) android
|
1854
1813
|
|
1855
1814
|
> def find(value)
|
1856
1815
|
|
@@ -1866,7 +1825,7 @@ __Returns:__
|
|
1866
1825
|
|
1867
1826
|
--
|
1868
1827
|
|
1869
|
-
##### [finds](https://github.com/appium/ruby_lib/blob/
|
1828
|
+
##### [finds](https://github.com/appium/ruby_lib/blob/b9b8784697d9fbe73d3883cf42d260f19138d8f5/lib/appium_lib/android/element/generic.rb#L13) android
|
1870
1829
|
|
1871
1830
|
> def finds(value)
|
1872
1831
|
|
@@ -1882,7 +1841,7 @@ __Returns:__
|
|
1882
1841
|
|
1883
1842
|
--
|
1884
1843
|
|
1885
|
-
##### [find_exact](https://github.com/appium/ruby_lib/blob/
|
1844
|
+
##### [find_exact](https://github.com/appium/ruby_lib/blob/b9b8784697d9fbe73d3883cf42d260f19138d8f5/lib/appium_lib/android/element/generic.rb#L20) android
|
1886
1845
|
|
1887
1846
|
> def find_exact(value)
|
1888
1847
|
|
@@ -1898,7 +1857,7 @@ __Returns:__
|
|
1898
1857
|
|
1899
1858
|
--
|
1900
1859
|
|
1901
|
-
##### [finds_exact](https://github.com/appium/ruby_lib/blob/
|
1860
|
+
##### [finds_exact](https://github.com/appium/ruby_lib/blob/b9b8784697d9fbe73d3883cf42d260f19138d8f5/lib/appium_lib/android/element/generic.rb#L27) android
|
1902
1861
|
|
1903
1862
|
> def finds_exact(value)
|
1904
1863
|
|
@@ -1914,7 +1873,7 @@ __Returns:__
|
|
1914
1873
|
|
1915
1874
|
--
|
1916
1875
|
|
1917
|
-
##### [scroll_to](https://github.com/appium/ruby_lib/blob/
|
1876
|
+
##### [scroll_to](https://github.com/appium/ruby_lib/blob/b9b8784697d9fbe73d3883cf42d260f19138d8f5/lib/appium_lib/android/element/generic.rb#L40) android
|
1918
1877
|
|
1919
1878
|
> def scroll_to(text, scrollable_index = 0)
|
1920
1879
|
|
@@ -1932,7 +1891,7 @@ __Returns:__
|
|
1932
1891
|
|
1933
1892
|
--
|
1934
1893
|
|
1935
|
-
##### [scroll_to_exact](https://github.com/appium/ruby_lib/blob/
|
1894
|
+
##### [scroll_to_exact](https://github.com/appium/ruby_lib/blob/b9b8784697d9fbe73d3883cf42d260f19138d8f5/lib/appium_lib/android/element/generic.rb#L58) android
|
1936
1895
|
|
1937
1896
|
> def scroll_to_exact(text, scrollable_index = 0)
|
1938
1897
|
|
@@ -1950,7 +1909,7 @@ __Returns:__
|
|
1950
1909
|
|
1951
1910
|
--
|
1952
1911
|
|
1953
|
-
##### [EditText](https://github.com/appium/ruby_lib/blob/
|
1912
|
+
##### [EditText](https://github.com/appium/ruby_lib/blob/b9b8784697d9fbe73d3883cf42d260f19138d8f5/lib/appium_lib/android/element/textfield.rb#L3) android
|
1954
1913
|
|
1955
1914
|
> EditText = 'android.widget.EditText'.freeze
|
1956
1915
|
|
@@ -1958,7 +1917,7 @@ __Returns:__
|
|
1958
1917
|
|
1959
1918
|
--
|
1960
1919
|
|
1961
|
-
##### [textfield](https://github.com/appium/ruby_lib/blob/
|
1920
|
+
##### [textfield](https://github.com/appium/ruby_lib/blob/b9b8784697d9fbe73d3883cf42d260f19138d8f5/lib/appium_lib/android/element/textfield.rb#L9) android
|
1962
1921
|
|
1963
1922
|
> def textfield(value)
|
1964
1923
|
|
@@ -1975,7 +1934,7 @@ __Returns:__
|
|
1975
1934
|
|
1976
1935
|
--
|
1977
1936
|
|
1978
|
-
##### [textfields](https://github.com/appium/ruby_lib/blob/
|
1937
|
+
##### [textfields](https://github.com/appium/ruby_lib/blob/b9b8784697d9fbe73d3883cf42d260f19138d8f5/lib/appium_lib/android/element/textfield.rb#L18) android
|
1979
1938
|
|
1980
1939
|
> def textfields(value = false)
|
1981
1940
|
|
@@ -1992,7 +1951,7 @@ __Returns:__
|
|
1992
1951
|
|
1993
1952
|
--
|
1994
1953
|
|
1995
|
-
##### [first_textfield](https://github.com/appium/ruby_lib/blob/
|
1954
|
+
##### [first_textfield](https://github.com/appium/ruby_lib/blob/b9b8784697d9fbe73d3883cf42d260f19138d8f5/lib/appium_lib/android/element/textfield.rb#L25) android
|
1996
1955
|
|
1997
1956
|
> def first_textfield
|
1998
1957
|
|
@@ -2004,7 +1963,7 @@ __Returns:__
|
|
2004
1963
|
|
2005
1964
|
--
|
2006
1965
|
|
2007
|
-
##### [last_textfield](https://github.com/appium/ruby_lib/blob/
|
1966
|
+
##### [last_textfield](https://github.com/appium/ruby_lib/blob/b9b8784697d9fbe73d3883cf42d260f19138d8f5/lib/appium_lib/android/element/textfield.rb#L31) android
|
2008
1967
|
|
2009
1968
|
> def last_textfield
|
2010
1969
|
|
@@ -2016,7 +1975,7 @@ __Returns:__
|
|
2016
1975
|
|
2017
1976
|
--
|
2018
1977
|
|
2019
|
-
##### [textfield_exact](https://github.com/appium/ruby_lib/blob/
|
1978
|
+
##### [textfield_exact](https://github.com/appium/ruby_lib/blob/b9b8784697d9fbe73d3883cf42d260f19138d8f5/lib/appium_lib/android/element/textfield.rb#L38) android
|
2020
1979
|
|
2021
1980
|
> def textfield_exact(value)
|
2022
1981
|
|
@@ -2032,7 +1991,7 @@ __Returns:__
|
|
2032
1991
|
|
2033
1992
|
--
|
2034
1993
|
|
2035
|
-
##### [textfields_exact](https://github.com/appium/ruby_lib/blob/
|
1994
|
+
##### [textfields_exact](https://github.com/appium/ruby_lib/blob/b9b8784697d9fbe73d3883cf42d260f19138d8f5/lib/appium_lib/android/element/textfield.rb#L45) android
|
2036
1995
|
|
2037
1996
|
> def textfields_exact(value)
|
2038
1997
|
|
@@ -2048,7 +2007,7 @@ __Returns:__
|
|
2048
2007
|
|
2049
2008
|
--
|
2050
2009
|
|
2051
|
-
##### [for](https://github.com/appium/ruby_lib/blob/
|
2010
|
+
##### [for](https://github.com/appium/ruby_lib/blob/b9b8784697d9fbe73d3883cf42d260f19138d8f5/lib/appium_lib/android/uiautomator2/bridge.rb#L7) android
|
2052
2011
|
|
2053
2012
|
> def self.for(target)
|
2054
2013
|
|
@@ -2056,7 +2015,7 @@ __Returns:__
|
|
2056
2015
|
|
2057
2016
|
--
|
2058
2017
|
|
2059
|
-
##### [string_visible_contains](https://github.com/appium/ruby_lib/blob/
|
2018
|
+
##### [string_visible_contains](https://github.com/appium/ruby_lib/blob/b9b8784697d9fbe73d3883cf42d260f19138d8f5/lib/appium_lib/android/uiautomator2/helper.rb#L13) android
|
2060
2019
|
|
2061
2020
|
> def string_visible_contains(class_name, value)
|
2062
2021
|
|
@@ -2077,7 +2036,7 @@ __Returns:__
|
|
2077
2036
|
|
2078
2037
|
--
|
2079
2038
|
|
2080
|
-
##### [complex_find_contains](https://github.com/appium/ruby_lib/blob/
|
2039
|
+
##### [complex_find_contains](https://github.com/appium/ruby_lib/blob/b9b8784697d9fbe73d3883cf42d260f19138d8f5/lib/appium_lib/android/uiautomator2/helper.rb#L31) android
|
2081
2040
|
|
2082
2041
|
> def complex_find_contains(class_name, value)
|
2083
2042
|
|
@@ -2095,7 +2054,7 @@ __Returns:__
|
|
2095
2054
|
|
2096
2055
|
--
|
2097
2056
|
|
2098
|
-
##### [complex_finds_contains](https://github.com/appium/ruby_lib/blob/
|
2057
|
+
##### [complex_finds_contains](https://github.com/appium/ruby_lib/blob/b9b8784697d9fbe73d3883cf42d260f19138d8f5/lib/appium_lib/android/uiautomator2/helper.rb#L41) android
|
2099
2058
|
|
2100
2059
|
> def complex_finds_contains(class_name, value)
|
2101
2060
|
|
@@ -2113,7 +2072,7 @@ __Returns:__
|
|
2113
2072
|
|
2114
2073
|
--
|
2115
2074
|
|
2116
|
-
##### [complex_find_exact](https://github.com/appium/ruby_lib/blob/
|
2075
|
+
##### [complex_find_exact](https://github.com/appium/ruby_lib/blob/b9b8784697d9fbe73d3883cf42d260f19138d8f5/lib/appium_lib/android/uiautomator2/helper.rb#L69) android
|
2117
2076
|
|
2118
2077
|
> def complex_find_exact(class_name, value)
|
2119
2078
|
|
@@ -2131,7 +2090,7 @@ __Returns:__
|
|
2131
2090
|
|
2132
2091
|
--
|
2133
2092
|
|
2134
|
-
##### [complex_finds_exact](https://github.com/appium/ruby_lib/blob/
|
2093
|
+
##### [complex_finds_exact](https://github.com/appium/ruby_lib/blob/b9b8784697d9fbe73d3883cf42d260f19138d8f5/lib/appium_lib/android/uiautomator2/helper.rb#L79) android
|
2135
2094
|
|
2136
2095
|
> def complex_finds_exact(class_name, value)
|
2137
2096
|
|
@@ -2149,7 +2108,7 @@ __Returns:__
|
|
2149
2108
|
|
2150
2109
|
--
|
2151
2110
|
|
2152
|
-
##### [button](https://github.com/appium/ruby_lib/blob/
|
2111
|
+
##### [button](https://github.com/appium/ruby_lib/blob/b9b8784697d9fbe73d3883cf42d260f19138d8f5/lib/appium_lib/android/uiautomator2/element/button.rb#L9) android
|
2153
2112
|
|
2154
2113
|
> def button(value)
|
2155
2114
|
|
@@ -2166,7 +2125,7 @@ __Returns:__
|
|
2166
2125
|
|
2167
2126
|
--
|
2168
2127
|
|
2169
|
-
##### [buttons](https://github.com/appium/ruby_lib/blob/
|
2128
|
+
##### [buttons](https://github.com/appium/ruby_lib/blob/b9b8784697d9fbe73d3883cf42d260f19138d8f5/lib/appium_lib/android/uiautomator2/element/button.rb#L29) android
|
2170
2129
|
|
2171
2130
|
> def buttons(value = false)
|
2172
2131
|
|
@@ -2183,7 +2142,7 @@ __Returns:__
|
|
2183
2142
|
|
2184
2143
|
--
|
2185
2144
|
|
2186
|
-
##### [first_button](https://github.com/appium/ruby_lib/blob/
|
2145
|
+
##### [first_button](https://github.com/appium/ruby_lib/blob/b9b8784697d9fbe73d3883cf42d260f19138d8f5/lib/appium_lib/android/uiautomator2/element/button.rb#L36) android
|
2187
2146
|
|
2188
2147
|
> def first_button
|
2189
2148
|
|
@@ -2195,7 +2154,7 @@ __Returns:__
|
|
2195
2154
|
|
2196
2155
|
--
|
2197
2156
|
|
2198
|
-
##### [last_button](https://github.com/appium/ruby_lib/blob/
|
2157
|
+
##### [last_button](https://github.com/appium/ruby_lib/blob/b9b8784697d9fbe73d3883cf42d260f19138d8f5/lib/appium_lib/android/uiautomator2/element/button.rb#L43) android
|
2199
2158
|
|
2200
2159
|
> def last_button
|
2201
2160
|
|
@@ -2207,7 +2166,7 @@ __Returns:__
|
|
2207
2166
|
|
2208
2167
|
--
|
2209
2168
|
|
2210
|
-
##### [button_exact](https://github.com/appium/ruby_lib/blob/
|
2169
|
+
##### [button_exact](https://github.com/appium/ruby_lib/blob/b9b8784697d9fbe73d3883cf42d260f19138d8f5/lib/appium_lib/android/uiautomator2/element/button.rb#L60) android
|
2211
2170
|
|
2212
2171
|
> def button_exact(value)
|
2213
2172
|
|
@@ -2223,7 +2182,7 @@ __Returns:__
|
|
2223
2182
|
|
2224
2183
|
--
|
2225
2184
|
|
2226
|
-
##### [buttons_exact](https://github.com/appium/ruby_lib/blob/
|
2185
|
+
##### [buttons_exact](https://github.com/appium/ruby_lib/blob/b9b8784697d9fbe73d3883cf42d260f19138d8f5/lib/appium_lib/android/uiautomator2/element/button.rb#L68) android
|
2227
2186
|
|
2228
2187
|
> def buttons_exact(value)
|
2229
2188
|
|