appium_lib 9.8.1 → 9.8.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 +10 -0
- data/appium_lib.gemspec +2 -2
- data/docs/android_docs.md +227 -172
- data/docs/ios_docs.md +373 -224
- data/docs/w3c.md +30 -0
- data/lib/appium_lib/android/android.rb +2 -0
- data/lib/appium_lib/android/common/command/command.rb +21 -0
- data/lib/appium_lib/android/espresso/bridge.rb +1 -0
- data/lib/appium_lib/android/uiautomator2/bridge.rb +1 -0
- data/lib/appium_lib/driver.rb +35 -3
- data/lib/appium_lib/ios/xcuitest/bridge.rb +2 -1
- data/lib/appium_lib/ios/xcuitest/command.rb +1 -0
- data/lib/appium_lib/ios/xcuitest/command/multi_app_handler.rb +125 -0
- data/lib/appium_lib/ios/xcuitest/command/pasteboard.rb +1 -1
- data/lib/appium_lib/ios/xcuitest/command/source.rb +1 -0
- data/lib/appium_lib/version.rb +2 -2
- data/release_notes.md +9 -0
- metadata +9 -6
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 329808422c5f921874133ae3b86128944dc5e2b3
|
4
|
+
data.tar.gz: 74bca0dea21d0851ab96bf90453e72878496eccb
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 7ea0c9085b3285b28b08a0ecc743af0added5e1d07402d653ac6e46c9cb31416409788e5899adc34d9122d5dd00b35c608b8f91ad6763c6c1046769113704dcb
|
7
|
+
data.tar.gz: 2d6b1486314c8f3d364a861458ceb7b878e7b979cb470186e5955f27b50a6b8821551c95f48895b513ce708b1be9b10a86f4ac59bb5fbe05a34583e9b6b293c8
|
data/CHANGELOG.md
CHANGED
@@ -3,6 +3,16 @@ 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.8.2
|
7
|
+
### 1. Enhancements
|
8
|
+
- add `shell` command wrapped `mobile: shell` for Android [#732](https://github.com/appium/ruby_lib/pull/732)
|
9
|
+
- add handling multiple apps for iOS [#729](https://github.com/appium/ruby_lib/issues/729)
|
10
|
+
- Adapt W3C commands and make sure to work Appium 1.7.2+
|
11
|
+
- Which module, msjsonwp or w3c, used depends on server side's response.
|
12
|
+
|
13
|
+
### 2. Bug fixes
|
14
|
+
|
15
|
+
### 3. Deprecations
|
6
16
|
|
7
17
|
## v9.8.1
|
8
18
|
### 1. Enhancements
|
data/appium_lib.gemspec
CHANGED
@@ -13,7 +13,7 @@ Gem::Specification.new do |s|
|
|
13
13
|
s.homepage = 'https://github.com/appium/ruby_lib' # published as appium_lib
|
14
14
|
s.require_paths = ['lib']
|
15
15
|
|
16
|
-
s.add_runtime_dependency 'appium_lib_core', '~> 1.
|
16
|
+
s.add_runtime_dependency 'appium_lib_core', '~> 1.2.3'
|
17
17
|
s.add_runtime_dependency 'tomlrb', '~> 1.1'
|
18
18
|
s.add_runtime_dependency 'nokogiri', '~> 1.6', '>= 1.6.6'
|
19
19
|
|
@@ -23,7 +23,7 @@ Gem::Specification.new do |s|
|
|
23
23
|
s.add_development_dependency 'fakefs', '~> 0.6.7'
|
24
24
|
|
25
25
|
s.add_development_dependency 'rake', '~> 12.0'
|
26
|
-
s.add_development_dependency 'yard', '~> 0.
|
26
|
+
s.add_development_dependency 'yard', '~> 0.9.11'
|
27
27
|
|
28
28
|
s.add_development_dependency 'rubocop', '~> 0.46.0'
|
29
29
|
s.add_development_dependency 'rainbow', '~> 2.1.0'
|
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/d2a48f235b29f5150524d2894b38df79d9cc4f52/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/d2a48f235b29f5150524d2894b38df79d9cc4f52/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/d2a48f235b29f5150524d2894b38df79d9cc4f52/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/d2a48f235b29f5150524d2894b38df79d9cc4f52/lib/appium_lib/appium.rb#L126)
|
78
78
|
|
79
79
|
> def promote_singleton_appium_methods(modules, driver = $driver)
|
80
80
|
|
@@ -98,7 +98,7 @@ __Parameters:__
|
|
98
98
|
|
99
99
|
--
|
100
100
|
|
101
|
-
##### [promote_appium_methods](https://github.com/appium/ruby_lib/blob/
|
101
|
+
##### [promote_appium_methods](https://github.com/appium/ruby_lib/blob/d2a48f235b29f5150524d2894b38df79d9cc4f52/lib/appium_lib/appium.rb#L181)
|
102
102
|
|
103
103
|
> def promote_appium_methods(class_array, driver = $driver)
|
104
104
|
|
@@ -116,7 +116,7 @@ __Parameters:__
|
|
116
116
|
|
117
117
|
--
|
118
118
|
|
119
|
-
##### [global_webdriver_http_sleep](https://github.com/appium/ruby_lib/blob/
|
119
|
+
##### [global_webdriver_http_sleep](https://github.com/appium/ruby_lib/blob/d2a48f235b29f5150524d2894b38df79d9cc4f52/lib/appium_lib/driver.rb#L24)
|
120
120
|
|
121
121
|
> def global_webdriver_http_sleep
|
122
122
|
|
@@ -124,7 +124,7 @@ The amount to sleep in seconds before every webdriver http call.
|
|
124
124
|
|
125
125
|
--
|
126
126
|
|
127
|
-
##### [global_webdriver_http_sleep=](https://github.com/appium/ruby_lib/blob/
|
127
|
+
##### [global_webdriver_http_sleep=](https://github.com/appium/ruby_lib/blob/d2a48f235b29f5150524d2894b38df79d9cc4f52/lib/appium_lib/driver.rb#L24)
|
128
128
|
|
129
129
|
> def global_webdriver_http_sleep=(value)
|
130
130
|
|
@@ -132,7 +132,7 @@ The amount to sleep in seconds before every webdriver http call.
|
|
132
132
|
|
133
133
|
--
|
134
134
|
|
135
|
-
##### [sauce](https://github.com/appium/ruby_lib/blob/
|
135
|
+
##### [sauce](https://github.com/appium/ruby_lib/blob/d2a48f235b29f5150524d2894b38df79d9cc4f52/lib/appium_lib/driver.rb#L27)
|
136
136
|
|
137
137
|
> def sauce
|
138
138
|
|
@@ -140,7 +140,7 @@ SauceLab's settings
|
|
140
140
|
|
141
141
|
--
|
142
142
|
|
143
|
-
##### [sauce_username](https://github.com/appium/ruby_lib/blob/
|
143
|
+
##### [sauce_username](https://github.com/appium/ruby_lib/blob/d2a48f235b29f5150524d2894b38df79d9cc4f52/lib/appium_lib/driver.rb#L30)
|
144
144
|
|
145
145
|
> def sauce_username
|
146
146
|
|
@@ -149,7 +149,7 @@ same as @sauce.username
|
|
149
149
|
|
150
150
|
--
|
151
151
|
|
152
|
-
##### [sauce_access_key](https://github.com/appium/ruby_lib/blob/
|
152
|
+
##### [sauce_access_key](https://github.com/appium/ruby_lib/blob/d2a48f235b29f5150524d2894b38df79d9cc4f52/lib/appium_lib/driver.rb#L33)
|
153
153
|
|
154
154
|
> def sauce_access_key
|
155
155
|
|
@@ -158,7 +158,7 @@ same as @sauce.access_key
|
|
158
158
|
|
159
159
|
--
|
160
160
|
|
161
|
-
##### [sauce_endpoint](https://github.com/appium/ruby_lib/blob/
|
161
|
+
##### [sauce_endpoint](https://github.com/appium/ruby_lib/blob/d2a48f235b29f5150524d2894b38df79d9cc4f52/lib/appium_lib/driver.rb#L36)
|
162
162
|
|
163
163
|
> def sauce_endpoint
|
164
164
|
|
@@ -167,7 +167,7 @@ same as @sauce.endpoint
|
|
167
167
|
|
168
168
|
--
|
169
169
|
|
170
|
-
##### [caps](https://github.com/appium/ruby_lib/blob/
|
170
|
+
##### [caps](https://github.com/appium/ruby_lib/blob/d2a48f235b29f5150524d2894b38df79d9cc4f52/lib/appium_lib/driver.rb#L40)
|
171
171
|
|
172
172
|
> def caps
|
173
173
|
|
@@ -176,7 +176,7 @@ read http://www.rubydoc.info/github/appium/ruby_lib_core/Appium/Core/Driver
|
|
176
176
|
|
177
177
|
--
|
178
178
|
|
179
|
-
##### [custom_url](https://github.com/appium/ruby_lib/blob/
|
179
|
+
##### [custom_url](https://github.com/appium/ruby_lib/blob/d2a48f235b29f5150524d2894b38df79d9cc4f52/lib/appium_lib/driver.rb#L41)
|
180
180
|
|
181
181
|
> def custom_url
|
182
182
|
|
@@ -184,7 +184,7 @@ Returns the value of attribute custom_url
|
|
184
184
|
|
185
185
|
--
|
186
186
|
|
187
|
-
##### [export_session](https://github.com/appium/ruby_lib/blob/
|
187
|
+
##### [export_session](https://github.com/appium/ruby_lib/blob/d2a48f235b29f5150524d2894b38df79d9cc4f52/lib/appium_lib/driver.rb#L42)
|
188
188
|
|
189
189
|
> def export_session
|
190
190
|
|
@@ -192,7 +192,7 @@ Returns the value of attribute export_session
|
|
192
192
|
|
193
193
|
--
|
194
194
|
|
195
|
-
##### [export_session_path](https://github.com/appium/ruby_lib/blob/
|
195
|
+
##### [export_session_path](https://github.com/appium/ruby_lib/blob/d2a48f235b29f5150524d2894b38df79d9cc4f52/lib/appium_lib/driver.rb#L43)
|
196
196
|
|
197
197
|
> def export_session_path
|
198
198
|
|
@@ -200,7 +200,7 @@ Returns the value of attribute export_session_path
|
|
200
200
|
|
201
201
|
--
|
202
202
|
|
203
|
-
##### [default_wait](https://github.com/appium/ruby_lib/blob/
|
203
|
+
##### [default_wait](https://github.com/appium/ruby_lib/blob/d2a48f235b29f5150524d2894b38df79d9cc4f52/lib/appium_lib/driver.rb#L44)
|
204
204
|
|
205
205
|
> def default_wait
|
206
206
|
|
@@ -208,7 +208,7 @@ Returns the value of attribute default_wait
|
|
208
208
|
|
209
209
|
--
|
210
210
|
|
211
|
-
##### [appium_port](https://github.com/appium/ruby_lib/blob/
|
211
|
+
##### [appium_port](https://github.com/appium/ruby_lib/blob/d2a48f235b29f5150524d2894b38df79d9cc4f52/lib/appium_lib/driver.rb#L45)
|
212
212
|
|
213
213
|
> def appium_port
|
214
214
|
|
@@ -216,7 +216,7 @@ Returns the value of attribute appium_port
|
|
216
216
|
|
217
217
|
--
|
218
218
|
|
219
|
-
##### [appium_device](https://github.com/appium/ruby_lib/blob/
|
219
|
+
##### [appium_device](https://github.com/appium/ruby_lib/blob/d2a48f235b29f5150524d2894b38df79d9cc4f52/lib/appium_lib/driver.rb#L46)
|
220
220
|
|
221
221
|
> def appium_device
|
222
222
|
|
@@ -224,7 +224,7 @@ Returns the value of attribute appium_device
|
|
224
224
|
|
225
225
|
--
|
226
226
|
|
227
|
-
##### [automation_name](https://github.com/appium/ruby_lib/blob/
|
227
|
+
##### [automation_name](https://github.com/appium/ruby_lib/blob/d2a48f235b29f5150524d2894b38df79d9cc4f52/lib/appium_lib/driver.rb#L47)
|
228
228
|
|
229
229
|
> def automation_name
|
230
230
|
|
@@ -232,7 +232,7 @@ Returns the value of attribute automation_name
|
|
232
232
|
|
233
233
|
--
|
234
234
|
|
235
|
-
##### [listener](https://github.com/appium/ruby_lib/blob/
|
235
|
+
##### [listener](https://github.com/appium/ruby_lib/blob/d2a48f235b29f5150524d2894b38df79d9cc4f52/lib/appium_lib/driver.rb#L48)
|
236
236
|
|
237
237
|
> def listener
|
238
238
|
|
@@ -240,7 +240,7 @@ Returns the value of attribute listener
|
|
240
240
|
|
241
241
|
--
|
242
242
|
|
243
|
-
##### [http_client](https://github.com/appium/ruby_lib/blob/
|
243
|
+
##### [http_client](https://github.com/appium/ruby_lib/blob/d2a48f235b29f5150524d2894b38df79d9cc4f52/lib/appium_lib/driver.rb#L49)
|
244
244
|
|
245
245
|
> def http_client
|
246
246
|
|
@@ -248,7 +248,7 @@ Returns the value of attribute http_client
|
|
248
248
|
|
249
249
|
--
|
250
250
|
|
251
|
-
##### [appium_wait_timeout](https://github.com/appium/ruby_lib/blob/
|
251
|
+
##### [appium_wait_timeout](https://github.com/appium/ruby_lib/blob/d2a48f235b29f5150524d2894b38df79d9cc4f52/lib/appium_lib/driver.rb#L50)
|
252
252
|
|
253
253
|
> def appium_wait_timeout
|
254
254
|
|
@@ -256,7 +256,7 @@ Returns the value of attribute appium_wait_timeout
|
|
256
256
|
|
257
257
|
--
|
258
258
|
|
259
|
-
##### [appium_wait_interval](https://github.com/appium/ruby_lib/blob/
|
259
|
+
##### [appium_wait_interval](https://github.com/appium/ruby_lib/blob/d2a48f235b29f5150524d2894b38df79d9cc4f52/lib/appium_lib/driver.rb#L51)
|
260
260
|
|
261
261
|
> def appium_wait_interval
|
262
262
|
|
@@ -264,7 +264,7 @@ Returns the value of attribute appium_wait_interval
|
|
264
264
|
|
265
265
|
--
|
266
266
|
|
267
|
-
##### [appium_server_status](https://github.com/appium/ruby_lib/blob/
|
267
|
+
##### [appium_server_status](https://github.com/appium/ruby_lib/blob/d2a48f235b29f5150524d2894b38df79d9cc4f52/lib/appium_lib/driver.rb#L54)
|
268
268
|
|
269
269
|
> def appium_server_status
|
270
270
|
|
@@ -272,7 +272,7 @@ Appium's server version
|
|
272
272
|
|
273
273
|
--
|
274
274
|
|
275
|
-
##### [appium_debug](https://github.com/appium/ruby_lib/blob/
|
275
|
+
##### [appium_debug](https://github.com/appium/ruby_lib/blob/d2a48f235b29f5150524d2894b38df79d9cc4f52/lib/appium_lib/driver.rb#L56)
|
276
276
|
|
277
277
|
> def appium_debug
|
278
278
|
|
@@ -280,7 +280,7 @@ Boolean debug mode for the Appium Ruby bindings
|
|
280
280
|
|
281
281
|
--
|
282
282
|
|
283
|
-
##### [driver](https://github.com/appium/ruby_lib/blob/
|
283
|
+
##### [driver](https://github.com/appium/ruby_lib/blob/d2a48f235b29f5150524d2894b38df79d9cc4f52/lib/appium_lib/driver.rb#L59)
|
284
284
|
|
285
285
|
> def driver
|
286
286
|
|
@@ -292,7 +292,7 @@ __Returns:__
|
|
292
292
|
|
293
293
|
--
|
294
294
|
|
295
|
-
##### [core](https://github.com/appium/ruby_lib/blob/
|
295
|
+
##### [core](https://github.com/appium/ruby_lib/blob/d2a48f235b29f5150524d2894b38df79d9cc4f52/lib/appium_lib/driver.rb#L61)
|
296
296
|
|
297
297
|
> def core
|
298
298
|
|
@@ -300,7 +300,7 @@ Instance of Appium::Core::Driver
|
|
300
300
|
|
301
301
|
--
|
302
302
|
|
303
|
-
##### [initialize](https://github.com/appium/ruby_lib/blob/
|
303
|
+
##### [initialize](https://github.com/appium/ruby_lib/blob/d2a48f235b29f5150524d2894b38df79d9cc4f52/lib/appium_lib/driver.rb#L125)
|
304
304
|
|
305
305
|
> def initialize(opts = {}, global_driver = nil)
|
306
306
|
|
@@ -319,7 +319,7 @@ __Returns:__
|
|
319
319
|
|
320
320
|
--
|
321
321
|
|
322
|
-
##### [driver_attributes](https://github.com/appium/ruby_lib/blob/
|
322
|
+
##### [driver_attributes](https://github.com/appium/ruby_lib/blob/d2a48f235b29f5150524d2894b38df79d9cc4f52/lib/appium_lib/driver.rb#L235)
|
323
323
|
|
324
324
|
> def driver_attributes
|
325
325
|
|
@@ -327,7 +327,7 @@ Returns a hash of the driver attributes
|
|
327
327
|
|
328
328
|
--
|
329
329
|
|
330
|
-
##### [device_is_android?](https://github.com/appium/ruby_lib/blob/
|
330
|
+
##### [device_is_android?](https://github.com/appium/ruby_lib/blob/d2a48f235b29f5150524d2894b38df79d9cc4f52/lib/appium_lib/driver.rb#L255)
|
331
331
|
|
332
332
|
> def device_is_android?
|
333
333
|
|
@@ -339,7 +339,7 @@ __Returns:__
|
|
339
339
|
|
340
340
|
--
|
341
341
|
|
342
|
-
##### [device_is_ios?](https://github.com/appium/ruby_lib/blob/
|
342
|
+
##### [device_is_ios?](https://github.com/appium/ruby_lib/blob/d2a48f235b29f5150524d2894b38df79d9cc4f52/lib/appium_lib/driver.rb#L259)
|
343
343
|
|
344
344
|
> def device_is_ios?
|
345
345
|
|
@@ -351,7 +351,7 @@ __Returns:__
|
|
351
351
|
|
352
352
|
--
|
353
353
|
|
354
|
-
##### [device_is_windows?](https://github.com/appium/ruby_lib/blob/
|
354
|
+
##### [device_is_windows?](https://github.com/appium/ruby_lib/blob/d2a48f235b29f5150524d2894b38df79d9cc4f52/lib/appium_lib/driver.rb#L263)
|
355
355
|
|
356
356
|
> def device_is_windows?
|
357
357
|
|
@@ -363,7 +363,7 @@ __Returns:__
|
|
363
363
|
|
364
364
|
--
|
365
365
|
|
366
|
-
##### [automation_name_is_uiautomator2?](https://github.com/appium/ruby_lib/blob/
|
366
|
+
##### [automation_name_is_uiautomator2?](https://github.com/appium/ruby_lib/blob/d2a48f235b29f5150524d2894b38df79d9cc4f52/lib/appium_lib/driver.rb#L269)
|
367
367
|
|
368
368
|
> def automation_name_is_uiautomator2?
|
369
369
|
|
@@ -375,7 +375,7 @@ __Returns:__
|
|
375
375
|
|
376
376
|
--
|
377
377
|
|
378
|
-
##### [automation_name_is_espresso?](https://github.com/appium/ruby_lib/blob/
|
378
|
+
##### [automation_name_is_espresso?](https://github.com/appium/ruby_lib/blob/d2a48f235b29f5150524d2894b38df79d9cc4f52/lib/appium_lib/driver.rb#L275)
|
379
379
|
|
380
380
|
> def automation_name_is_espresso?
|
381
381
|
|
@@ -387,7 +387,7 @@ __Returns:__
|
|
387
387
|
|
388
388
|
--
|
389
389
|
|
390
|
-
##### [automation_name_is_xcuitest?](https://github.com/appium/ruby_lib/blob/
|
390
|
+
##### [automation_name_is_xcuitest?](https://github.com/appium/ruby_lib/blob/d2a48f235b29f5150524d2894b38df79d9cc4f52/lib/appium_lib/driver.rb#L281)
|
391
391
|
|
392
392
|
> def automation_name_is_xcuitest?
|
393
393
|
|
@@ -399,7 +399,29 @@ __Returns:__
|
|
399
399
|
|
400
400
|
--
|
401
401
|
|
402
|
-
##### [
|
402
|
+
##### [dialect](https://github.com/appium/ruby_lib/blob/d2a48f235b29f5150524d2894b38df79d9cc4f52/lib/appium_lib/driver.rb#L301)
|
403
|
+
|
404
|
+
> def dialect
|
405
|
+
|
406
|
+
Get the dialect value whether current driver is OSS or W3C
|
407
|
+
|
408
|
+
__Returns:__
|
409
|
+
|
410
|
+
[:oss | :w3c] @example
|
411
|
+
|
412
|
+
if dialect == :w3c
|
413
|
+
driver.action
|
414
|
+
.move_to_location(500, 500).pointer_down(:left)
|
415
|
+
.move_to_location(0, 700)
|
416
|
+
.release.perform
|
417
|
+
else
|
418
|
+
action = TouchAction.new(driver).press(x: 500, y: 500).move_to(500, 700).release
|
419
|
+
action.perform
|
420
|
+
end
|
421
|
+
|
422
|
+
--
|
423
|
+
|
424
|
+
##### [check_server_version_xcuitest](https://github.com/appium/ruby_lib/blob/d2a48f235b29f5150524d2894b38df79d9cc4f52/lib/appium_lib/driver.rb#L308)
|
403
425
|
|
404
426
|
> def check_server_version_xcuitest
|
405
427
|
|
@@ -412,7 +434,7 @@ __Returns:__
|
|
412
434
|
|
413
435
|
--
|
414
436
|
|
415
|
-
##### [appium_server_version](https://github.com/appium/ruby_lib/blob/
|
437
|
+
##### [appium_server_version](https://github.com/appium/ruby_lib/blob/d2a48f235b29f5150524d2894b38df79d9cc4f52/lib/appium_lib/driver.rb#L329)
|
416
438
|
|
417
439
|
> def appium_server_version
|
418
440
|
|
@@ -424,7 +446,7 @@ __Returns:__
|
|
424
446
|
|
425
447
|
--
|
426
448
|
|
427
|
-
##### [remote_status](https://github.com/appium/ruby_lib/blob/
|
449
|
+
##### [remote_status](https://github.com/appium/ruby_lib/blob/d2a48f235b29f5150524d2894b38df79d9cc4f52/lib/appium_lib/driver.rb#L336)
|
428
450
|
|
429
451
|
> def appium_server_version
|
430
452
|
|
@@ -436,7 +458,7 @@ __Returns:__
|
|
436
458
|
|
437
459
|
--
|
438
460
|
|
439
|
-
##### [platform_version](https://github.com/appium/ruby_lib/blob/
|
461
|
+
##### [platform_version](https://github.com/appium/ruby_lib/blob/d2a48f235b29f5150524d2894b38df79d9cc4f52/lib/appium_lib/driver.rb#L340)
|
440
462
|
|
441
463
|
> def platform_version
|
442
464
|
|
@@ -448,7 +470,7 @@ __Returns:__
|
|
448
470
|
|
449
471
|
--
|
450
472
|
|
451
|
-
##### [appium_client_version](https://github.com/appium/ruby_lib/blob/
|
473
|
+
##### [appium_client_version](https://github.com/appium/ruby_lib/blob/d2a48f235b29f5150524d2894b38df79d9cc4f52/lib/appium_lib/driver.rb#L353)
|
452
474
|
|
453
475
|
> def appium_client_version
|
454
476
|
|
@@ -460,7 +482,7 @@ __Returns:__
|
|
460
482
|
|
461
483
|
--
|
462
484
|
|
463
|
-
##### [absolute_app_path](https://github.com/appium/ruby_lib/blob/
|
485
|
+
##### [absolute_app_path](https://github.com/appium/ruby_lib/blob/d2a48f235b29f5150524d2894b38df79d9cc4f52/lib/appium_lib/driver.rb#L365)
|
464
486
|
|
465
487
|
> def self.absolute_app_path(opts)
|
466
488
|
|
@@ -477,7 +499,7 @@ __Returns:__
|
|
477
499
|
|
478
500
|
--
|
479
501
|
|
480
|
-
##### [server_url](https://github.com/appium/ruby_lib/blob/
|
502
|
+
##### [server_url](https://github.com/appium/ruby_lib/blob/d2a48f235b29f5150524d2894b38df79d9cc4f52/lib/appium_lib/driver.rb#L398)
|
481
503
|
|
482
504
|
> def server_url
|
483
505
|
|
@@ -489,7 +511,7 @@ __Returns:__
|
|
489
511
|
|
490
512
|
--
|
491
513
|
|
492
|
-
##### [restart](https://github.com/appium/ruby_lib/blob/
|
514
|
+
##### [restart](https://github.com/appium/ruby_lib/blob/d2a48f235b29f5150524d2894b38df79d9cc4f52/lib/appium_lib/driver.rb#L406)
|
493
515
|
|
494
516
|
> def restart
|
495
517
|
|
@@ -501,7 +523,7 @@ __Returns:__
|
|
501
523
|
|
502
524
|
--
|
503
525
|
|
504
|
-
##### [screenshot](https://github.com/appium/ruby_lib/blob/
|
526
|
+
##### [screenshot](https://github.com/appium/ruby_lib/blob/d2a48f235b29f5150524d2894b38df79d9cc4f52/lib/appium_lib/driver.rb#L419)
|
505
527
|
|
506
528
|
> def screenshot(png_save_path)
|
507
529
|
|
@@ -513,11 +535,29 @@ __Parameters:__
|
|
513
535
|
|
514
536
|
__Returns:__
|
515
537
|
|
516
|
-
[
|
538
|
+
[File]
|
539
|
+
|
540
|
+
--
|
541
|
+
|
542
|
+
##### [element_screenshot](https://github.com/appium/ruby_lib/blob/d2a48f235b29f5150524d2894b38df79d9cc4f52/lib/appium_lib/driver.rb#L433)
|
543
|
+
|
544
|
+
> def element_screenshot(element, png_save_path)
|
545
|
+
|
546
|
+
Takes a png screenshot of particular element's area
|
547
|
+
|
548
|
+
__Parameters:__
|
549
|
+
|
550
|
+
[String] element - Element take a screenshot
|
551
|
+
|
552
|
+
[String] png_save_path - the full path to save the png
|
553
|
+
|
554
|
+
__Returns:__
|
555
|
+
|
556
|
+
[File]
|
517
557
|
|
518
558
|
--
|
519
559
|
|
520
|
-
##### [driver_quit](https://github.com/appium/ruby_lib/blob/
|
560
|
+
##### [driver_quit](https://github.com/appium/ruby_lib/blob/d2a48f235b29f5150524d2894b38df79d9cc4f52/lib/appium_lib/driver.rb#L440)
|
521
561
|
|
522
562
|
> def driver_quit
|
523
563
|
|
@@ -529,7 +569,7 @@ __Returns:__
|
|
529
569
|
|
530
570
|
--
|
531
571
|
|
532
|
-
##### [quit_driver](https://github.com/appium/ruby_lib/blob/
|
572
|
+
##### [quit_driver](https://github.com/appium/ruby_lib/blob/d2a48f235b29f5150524d2894b38df79d9cc4f52/lib/appium_lib/driver.rb#L443)
|
533
573
|
|
534
574
|
> def driver_quit
|
535
575
|
|
@@ -541,7 +581,7 @@ __Returns:__
|
|
541
581
|
|
542
582
|
--
|
543
583
|
|
544
|
-
##### [window_size](https://github.com/appium/ruby_lib/blob/
|
584
|
+
##### [window_size](https://github.com/appium/ruby_lib/blob/d2a48f235b29f5150524d2894b38df79d9cc4f52/lib/appium_lib/driver.rb#L454)
|
545
585
|
|
546
586
|
> def window_size
|
547
587
|
|
@@ -553,7 +593,7 @@ __Returns:__
|
|
553
593
|
|
554
594
|
--
|
555
595
|
|
556
|
-
##### [start_driver](https://github.com/appium/ruby_lib/blob/
|
596
|
+
##### [start_driver](https://github.com/appium/ruby_lib/blob/d2a48f235b29f5150524d2894b38df79d9cc4f52/lib/appium_lib/driver.rb#L486)
|
557
597
|
|
558
598
|
> def start_driver(http_client_ops =
|
559
599
|
|
@@ -573,7 +613,7 @@ __Returns:__
|
|
573
613
|
|
574
614
|
--
|
575
615
|
|
576
|
-
##### [set_implicit_wait](https://github.com/appium/ruby_lib/blob/
|
616
|
+
##### [set_implicit_wait](https://github.com/appium/ruby_lib/blob/d2a48f235b29f5150524d2894b38df79d9cc4f52/lib/appium_lib/driver.rb#L508)
|
577
617
|
|
578
618
|
> def set_implicit_wait(wait)
|
579
619
|
|
@@ -581,7 +621,7 @@ To ignore error for Espresso Driver
|
|
581
621
|
|
582
622
|
--
|
583
623
|
|
584
|
-
##### [no_wait](https://github.com/appium/ruby_lib/blob/
|
624
|
+
##### [no_wait](https://github.com/appium/ruby_lib/blob/d2a48f235b29f5150524d2894b38df79d9cc4f52/lib/appium_lib/driver.rb#L518)
|
585
625
|
|
586
626
|
> def no_wait
|
587
627
|
|
@@ -589,7 +629,7 @@ Set implicit wait to zero.
|
|
589
629
|
|
590
630
|
--
|
591
631
|
|
592
|
-
##### [set_wait](https://github.com/appium/ruby_lib/blob/
|
632
|
+
##### [set_wait](https://github.com/appium/ruby_lib/blob/d2a48f235b29f5150524d2894b38df79d9cc4f52/lib/appium_lib/driver.rb#L532)
|
593
633
|
|
594
634
|
> def set_wait(timeout = nil)
|
595
635
|
|
@@ -605,7 +645,7 @@ __Returns:__
|
|
605
645
|
|
606
646
|
--
|
607
647
|
|
608
|
-
##### [exists](https://github.com/appium/ruby_lib/blob/
|
648
|
+
##### [exists](https://github.com/appium/ruby_lib/blob/d2a48f235b29f5150524d2894b38df79d9cc4f52/lib/appium_lib/driver.rb#L549)
|
609
649
|
|
610
650
|
> def exists(pre_check = 0, post_check = @core.default_wait)
|
611
651
|
|
@@ -629,7 +669,7 @@ __Returns:__
|
|
629
669
|
|
630
670
|
--
|
631
671
|
|
632
|
-
##### [execute_script](https://github.com/appium/ruby_lib/blob/
|
672
|
+
##### [execute_script](https://github.com/appium/ruby_lib/blob/d2a48f235b29f5150524d2894b38df79d9cc4f52/lib/appium_lib/driver.rb#L573)
|
633
673
|
|
634
674
|
> def execute_script(script, *args)
|
635
675
|
|
@@ -647,7 +687,7 @@ __Returns:__
|
|
647
687
|
|
648
688
|
--
|
649
689
|
|
650
|
-
##### [find_elements](https://github.com/appium/ruby_lib/blob/
|
690
|
+
##### [find_elements](https://github.com/appium/ruby_lib/blob/d2a48f235b29f5150524d2894b38df79d9cc4f52/lib/appium_lib/driver.rb#L595)
|
651
691
|
|
652
692
|
> def find_elements(*args)
|
653
693
|
|
@@ -667,7 +707,7 @@ __Returns:__
|
|
667
707
|
|
668
708
|
--
|
669
709
|
|
670
|
-
##### [find_element](https://github.com/appium/ruby_lib/blob/
|
710
|
+
##### [find_element](https://github.com/appium/ruby_lib/blob/d2a48f235b29f5150524d2894b38df79d9cc4f52/lib/appium_lib/driver.rb#L610)
|
671
711
|
|
672
712
|
> def find_element(*args)
|
673
713
|
|
@@ -685,7 +725,7 @@ __Returns:__
|
|
685
725
|
|
686
726
|
--
|
687
727
|
|
688
|
-
##### [set_location](https://github.com/appium/ruby_lib/blob/
|
728
|
+
##### [set_location](https://github.com/appium/ruby_lib/blob/d2a48f235b29f5150524d2894b38df79d9cc4f52/lib/appium_lib/driver.rb#L623)
|
689
729
|
|
690
730
|
> def set_location(opts = {})
|
691
731
|
|
@@ -701,7 +741,7 @@ __Returns:__
|
|
701
741
|
|
702
742
|
--
|
703
743
|
|
704
|
-
##### [x](https://github.com/appium/ruby_lib/blob/
|
744
|
+
##### [x](https://github.com/appium/ruby_lib/blob/d2a48f235b29f5150524d2894b38df79d9cc4f52/lib/appium_lib/driver.rb#L633)
|
705
745
|
|
706
746
|
> def x
|
707
747
|
|
@@ -714,7 +754,7 @@ __Returns:__
|
|
714
754
|
|
715
755
|
--
|
716
756
|
|
717
|
-
##### [username](https://github.com/appium/ruby_lib/blob/
|
757
|
+
##### [username](https://github.com/appium/ruby_lib/blob/d2a48f235b29f5150524d2894b38df79d9cc4f52/lib/appium_lib/sauce_labs.rb#L4)
|
718
758
|
|
719
759
|
> def username
|
720
760
|
|
@@ -722,7 +762,7 @@ Username for use on Sauce Labs. Set `false` to disable Sauce, even when SAUCE_US
|
|
722
762
|
|
723
763
|
--
|
724
764
|
|
725
|
-
##### [access_key](https://github.com/appium/ruby_lib/blob/
|
765
|
+
##### [access_key](https://github.com/appium/ruby_lib/blob/d2a48f235b29f5150524d2894b38df79d9cc4f52/lib/appium_lib/sauce_labs.rb#L6)
|
726
766
|
|
727
767
|
> def access_key
|
728
768
|
|
@@ -730,7 +770,7 @@ Access Key for use on Sauce Labs. Set `false` to disable Sauce, even when SAUCE_
|
|
730
770
|
|
731
771
|
--
|
732
772
|
|
733
|
-
##### [endpoint](https://github.com/appium/ruby_lib/blob/
|
773
|
+
##### [endpoint](https://github.com/appium/ruby_lib/blob/d2a48f235b29f5150524d2894b38df79d9cc4f52/lib/appium_lib/sauce_labs.rb#L8)
|
734
774
|
|
735
775
|
> def endpoint
|
736
776
|
|
@@ -738,7 +778,7 @@ Override the Sauce Appium endpoint to allow e.g. TestObject tests. Default is 'o
|
|
738
778
|
|
739
779
|
--
|
740
780
|
|
741
|
-
##### [initialize](https://github.com/appium/ruby_lib/blob/
|
781
|
+
##### [initialize](https://github.com/appium/ruby_lib/blob/d2a48f235b29f5150524d2894b38df79d9cc4f52/lib/appium_lib/sauce_labs.rb#L33)
|
742
782
|
|
743
783
|
> def initialize(appium_lib_opts)
|
744
784
|
|
@@ -754,7 +794,7 @@ __Returns:__
|
|
754
794
|
|
755
795
|
--
|
756
796
|
|
757
|
-
##### [sauce_server_url?](https://github.com/appium/ruby_lib/blob/
|
797
|
+
##### [sauce_server_url?](https://github.com/appium/ruby_lib/blob/d2a48f235b29f5150524d2894b38df79d9cc4f52/lib/appium_lib/sauce_labs.rb#L53)
|
758
798
|
|
759
799
|
> def sauce_server_url?
|
760
800
|
|
@@ -766,7 +806,7 @@ __Returns:__
|
|
766
806
|
|
767
807
|
--
|
768
808
|
|
769
|
-
##### [server_url](https://github.com/appium/ruby_lib/blob/
|
809
|
+
##### [server_url](https://github.com/appium/ruby_lib/blob/d2a48f235b29f5150524d2894b38df79d9cc4f52/lib/appium_lib/sauce_labs.rb#L66)
|
770
810
|
|
771
811
|
> def server_url
|
772
812
|
|
@@ -778,7 +818,7 @@ __Returns:__
|
|
778
818
|
|
779
819
|
--
|
780
820
|
|
781
|
-
##### [get_log](https://github.com/appium/ruby_lib/blob/
|
821
|
+
##### [get_log](https://github.com/appium/ruby_lib/blob/d2a48f235b29f5150524d2894b38df79d9cc4f52/lib/appium_lib/common/log.rb#L11)
|
782
822
|
|
783
823
|
> def get_log(type)
|
784
824
|
|
@@ -794,7 +834,7 @@ __Returns:__
|
|
794
834
|
|
795
835
|
--
|
796
836
|
|
797
|
-
##### [get_available_log_types](https://github.com/appium/ruby_lib/blob/
|
837
|
+
##### [get_available_log_types](https://github.com/appium/ruby_lib/blob/d2a48f235b29f5150524d2894b38df79d9cc4f52/lib/appium_lib/common/log.rb#L23)
|
798
838
|
|
799
839
|
> def get_available_log_types
|
800
840
|
|
@@ -806,7 +846,7 @@ __Returns:__
|
|
806
846
|
|
807
847
|
--
|
808
848
|
|
809
|
-
##### [initialize](https://github.com/appium/ruby_lib/blob/
|
849
|
+
##### [initialize](https://github.com/appium/ruby_lib/blob/d2a48f235b29f5150524d2894b38df79d9cc4f52/lib/appium_lib/common/wait.rb#L6)
|
810
850
|
|
811
851
|
> def initialize(opts = {})
|
812
852
|
|
@@ -818,7 +858,7 @@ __Returns:__
|
|
818
858
|
|
819
859
|
--
|
820
860
|
|
821
|
-
##### [wait_true](https://github.com/appium/ruby_lib/blob/
|
861
|
+
##### [wait_true](https://github.com/appium/ruby_lib/blob/d2a48f235b29f5150524d2894b38df79d9cc4f52/lib/appium_lib/common/wait.rb#L26)
|
822
862
|
|
823
863
|
> def wait_true(opts = {})
|
824
864
|
|
@@ -838,7 +878,7 @@ __Parameters:__
|
|
838
878
|
|
839
879
|
--
|
840
880
|
|
841
|
-
##### [wait](https://github.com/appium/ruby_lib/blob/
|
881
|
+
##### [wait](https://github.com/appium/ruby_lib/blob/d2a48f235b29f5150524d2894b38df79d9cc4f52/lib/appium_lib/common/wait.rb#L43)
|
842
882
|
|
843
883
|
> def wait(opts = {})
|
844
884
|
|
@@ -856,7 +896,7 @@ __Parameters:__
|
|
856
896
|
|
857
897
|
--
|
858
898
|
|
859
|
-
##### [add_touch_actions](https://github.com/appium/ruby_lib/blob/
|
899
|
+
##### [add_touch_actions](https://github.com/appium/ruby_lib/blob/d2a48f235b29f5150524d2894b38df79d9cc4f52/lib/appium_lib/common/device.rb#L12)
|
860
900
|
|
861
901
|
> def add_touch_actions
|
862
902
|
|
@@ -864,7 +904,7 @@ __Parameters:__
|
|
864
904
|
|
865
905
|
--
|
866
906
|
|
867
|
-
##### [ignore](https://github.com/appium/ruby_lib/blob/
|
907
|
+
##### [ignore](https://github.com/appium/ruby_lib/blob/d2a48f235b29f5150524d2894b38df79d9cc4f52/lib/appium_lib/common/helper.rb#L16)
|
868
908
|
|
869
909
|
> def ignore
|
870
910
|
|
@@ -872,7 +912,7 @@ Return yield and ignore any exceptions.
|
|
872
912
|
|
873
913
|
--
|
874
914
|
|
875
|
-
##### [back](https://github.com/appium/ruby_lib/blob/
|
915
|
+
##### [back](https://github.com/appium/ruby_lib/blob/d2a48f235b29f5150524d2894b38df79d9cc4f52/lib/appium_lib/common/helper.rb#L23)
|
876
916
|
|
877
917
|
> def back
|
878
918
|
|
@@ -884,7 +924,7 @@ __Returns:__
|
|
884
924
|
|
885
925
|
--
|
886
926
|
|
887
|
-
##### [session_id](https://github.com/appium/ruby_lib/blob/
|
927
|
+
##### [session_id](https://github.com/appium/ruby_lib/blob/d2a48f235b29f5150524d2894b38df79d9cc4f52/lib/appium_lib/common/helper.rb#L34)
|
888
928
|
|
889
929
|
> def session_id
|
890
930
|
|
@@ -896,7 +936,7 @@ __Returns:__
|
|
896
936
|
|
897
937
|
--
|
898
938
|
|
899
|
-
##### [xpath](https://github.com/appium/ruby_lib/blob/
|
939
|
+
##### [xpath](https://github.com/appium/ruby_lib/blob/d2a48f235b29f5150524d2894b38df79d9cc4f52/lib/appium_lib/common/helper.rb#L42)
|
900
940
|
|
901
941
|
> def xpath(xpath_str)
|
902
942
|
|
@@ -912,7 +952,7 @@ __Returns:__
|
|
912
952
|
|
913
953
|
--
|
914
954
|
|
915
|
-
##### [xpaths](https://github.com/appium/ruby_lib/blob/
|
955
|
+
##### [xpaths](https://github.com/appium/ruby_lib/blob/d2a48f235b29f5150524d2894b38df79d9cc4f52/lib/appium_lib/common/helper.rb#L50)
|
916
956
|
|
917
957
|
> def xpaths(xpath_str)
|
918
958
|
|
@@ -928,7 +968,7 @@ __Returns:__
|
|
928
968
|
|
929
969
|
--
|
930
970
|
|
931
|
-
##### [result](https://github.com/appium/ruby_lib/blob/
|
971
|
+
##### [result](https://github.com/appium/ruby_lib/blob/d2a48f235b29f5150524d2894b38df79d9cc4f52/lib/appium_lib/common/helper.rb#L60)
|
932
972
|
|
933
973
|
> def result
|
934
974
|
|
@@ -936,7 +976,7 @@ Returns the value of attribute result
|
|
936
976
|
|
937
977
|
--
|
938
978
|
|
939
|
-
##### [initialize](https://github.com/appium/ruby_lib/blob/
|
979
|
+
##### [initialize](https://github.com/appium/ruby_lib/blob/d2a48f235b29f5150524d2894b38df79d9cc4f52/lib/appium_lib/common/helper.rb#L62)
|
940
980
|
|
941
981
|
> def initialize
|
942
982
|
|
@@ -948,7 +988,7 @@ __Returns:__
|
|
948
988
|
|
949
989
|
--
|
950
990
|
|
951
|
-
##### [reset](https://github.com/appium/ruby_lib/blob/
|
991
|
+
##### [reset](https://github.com/appium/ruby_lib/blob/d2a48f235b29f5150524d2894b38df79d9cc4f52/lib/appium_lib/common/helper.rb#L66)
|
952
992
|
|
953
993
|
> def reset
|
954
994
|
|
@@ -956,7 +996,7 @@ __Returns:__
|
|
956
996
|
|
957
997
|
--
|
958
998
|
|
959
|
-
##### [start_element](https://github.com/appium/ruby_lib/blob/
|
999
|
+
##### [start_element](https://github.com/appium/ruby_lib/blob/d2a48f235b29f5150524d2894b38df79d9cc4f52/lib/appium_lib/common/helper.rb#L71)
|
960
1000
|
|
961
1001
|
> def start_element(name, attrs = [], driver = $driver)
|
962
1002
|
|
@@ -964,7 +1004,7 @@ http://nokogiri.org/Nokogiri/XML/SAX/Document.html
|
|
964
1004
|
|
965
1005
|
--
|
966
1006
|
|
967
|
-
##### [formatted_result](https://github.com/appium/ruby_lib/blob/
|
1007
|
+
##### [formatted_result](https://github.com/appium/ruby_lib/blob/d2a48f235b29f5150524d2894b38df79d9cc4f52/lib/appium_lib/common/helper.rb#L77)
|
968
1008
|
|
969
1009
|
> def formatted_result
|
970
1010
|
|
@@ -972,7 +1012,7 @@ http://nokogiri.org/Nokogiri/XML/SAX/Document.html
|
|
972
1012
|
|
973
1013
|
--
|
974
1014
|
|
975
|
-
##### [get_page_class](https://github.com/appium/ruby_lib/blob/
|
1015
|
+
##### [get_page_class](https://github.com/appium/ruby_lib/blob/d2a48f235b29f5150524d2894b38df79d9cc4f52/lib/appium_lib/common/helper.rb#L96)
|
976
1016
|
|
977
1017
|
> def get_page_class
|
978
1018
|
|
@@ -984,7 +1024,7 @@ __Returns:__
|
|
984
1024
|
|
985
1025
|
--
|
986
1026
|
|
987
|
-
##### [page_class](https://github.com/appium/ruby_lib/blob/
|
1027
|
+
##### [page_class](https://github.com/appium/ruby_lib/blob/d2a48f235b29f5150524d2894b38df79d9cc4f52/lib/appium_lib/common/helper.rb#L121)
|
988
1028
|
|
989
1029
|
> def page_class
|
990
1030
|
|
@@ -997,7 +1037,7 @@ __Returns:__
|
|
997
1037
|
|
998
1038
|
--
|
999
1039
|
|
1000
|
-
##### [source](https://github.com/appium/ruby_lib/blob/
|
1040
|
+
##### [source](https://github.com/appium/ruby_lib/blob/d2a48f235b29f5150524d2894b38df79d9cc4f52/lib/appium_lib/common/helper.rb#L128)
|
1001
1041
|
|
1002
1042
|
> def source
|
1003
1043
|
|
@@ -1009,7 +1049,7 @@ __Returns:__
|
|
1009
1049
|
|
1010
1050
|
--
|
1011
1051
|
|
1012
|
-
##### [get_source](https://github.com/appium/ruby_lib/blob/
|
1052
|
+
##### [get_source](https://github.com/appium/ruby_lib/blob/d2a48f235b29f5150524d2894b38df79d9cc4f52/lib/appium_lib/common/helper.rb#L135)
|
1013
1053
|
|
1014
1054
|
> def get_source
|
1015
1055
|
|
@@ -1022,7 +1062,7 @@ __Returns:__
|
|
1022
1062
|
|
1023
1063
|
--
|
1024
1064
|
|
1025
|
-
##### [px_to_window_rel](https://github.com/appium/ruby_lib/blob/
|
1065
|
+
##### [px_to_window_rel](https://github.com/appium/ruby_lib/blob/d2a48f235b29f5150524d2894b38df79d9cc4f52/lib/appium_lib/common/helper.rb#L145)
|
1026
1066
|
|
1027
1067
|
> def px_to_window_rel(opts = {}, driver = $driver)
|
1028
1068
|
|
@@ -1030,7 +1070,7 @@ Converts pixel values to window relative values
|
|
1030
1070
|
|
1031
1071
|
--
|
1032
1072
|
|
1033
|
-
##### [xml_keys](https://github.com/appium/ruby_lib/blob/
|
1073
|
+
##### [xml_keys](https://github.com/appium/ruby_lib/blob/d2a48f235b29f5150524d2894b38df79d9cc4f52/lib/appium_lib/common/helper.rb#L164)
|
1034
1074
|
|
1035
1075
|
> def xml_keys(target)
|
1036
1076
|
|
@@ -1046,7 +1086,7 @@ __Returns:__
|
|
1046
1086
|
|
1047
1087
|
--
|
1048
1088
|
|
1049
|
-
##### [xml_values](https://github.com/appium/ruby_lib/blob/
|
1089
|
+
##### [xml_values](https://github.com/appium/ruby_lib/blob/d2a48f235b29f5150524d2894b38df79d9cc4f52/lib/appium_lib/common/helper.rb#L172)
|
1050
1090
|
|
1051
1091
|
> def xml_values(target)
|
1052
1092
|
|
@@ -1062,7 +1102,7 @@ __Returns:__
|
|
1062
1102
|
|
1063
1103
|
--
|
1064
1104
|
|
1065
|
-
##### [resolve_id](https://github.com/appium/ruby_lib/blob/
|
1105
|
+
##### [resolve_id](https://github.com/appium/ruby_lib/blob/d2a48f235b29f5150524d2894b38df79d9cc4f52/lib/appium_lib/common/helper.rb#L180)
|
1066
1106
|
|
1067
1107
|
> def resolve_id(id)
|
1068
1108
|
|
@@ -1078,7 +1118,7 @@ __Returns:__
|
|
1078
1118
|
|
1079
1119
|
--
|
1080
1120
|
|
1081
|
-
##### [filter](https://github.com/appium/ruby_lib/blob/
|
1121
|
+
##### [filter](https://github.com/appium/ruby_lib/blob/d2a48f235b29f5150524d2894b38df79d9cc4f52/lib/appium_lib/common/helper.rb#L187)
|
1082
1122
|
|
1083
1123
|
> def filter
|
1084
1124
|
|
@@ -1086,7 +1126,7 @@ Returns the value of attribute filter
|
|
1086
1126
|
|
1087
1127
|
--
|
1088
1128
|
|
1089
|
-
##### [filter=](https://github.com/appium/ruby_lib/blob/
|
1129
|
+
##### [filter=](https://github.com/appium/ruby_lib/blob/d2a48f235b29f5150524d2894b38df79d9cc4f52/lib/appium_lib/common/helper.rb#L190)
|
1090
1130
|
|
1091
1131
|
> def filter=(value)
|
1092
1132
|
|
@@ -1094,7 +1134,7 @@ convert to string to support symbols
|
|
1094
1134
|
|
1095
1135
|
--
|
1096
1136
|
|
1097
|
-
##### [initialize](https://github.com/appium/ruby_lib/blob/
|
1137
|
+
##### [initialize](https://github.com/appium/ruby_lib/blob/d2a48f235b29f5150524d2894b38df79d9cc4f52/lib/appium_lib/common/helper.rb#L196)
|
1098
1138
|
|
1099
1139
|
> def initialize
|
1100
1140
|
|
@@ -1106,7 +1146,7 @@ __Returns:__
|
|
1106
1146
|
|
1107
1147
|
--
|
1108
1148
|
|
1109
|
-
##### [reset](https://github.com/appium/ruby_lib/blob/
|
1149
|
+
##### [reset](https://github.com/appium/ruby_lib/blob/d2a48f235b29f5150524d2894b38df79d9cc4f52/lib/appium_lib/common/helper.rb#L201)
|
1110
1150
|
|
1111
1151
|
> def reset
|
1112
1152
|
|
@@ -1114,7 +1154,7 @@ __Returns:__
|
|
1114
1154
|
|
1115
1155
|
--
|
1116
1156
|
|
1117
|
-
##### [result](https://github.com/appium/ruby_lib/blob/
|
1157
|
+
##### [result](https://github.com/appium/ruby_lib/blob/d2a48f235b29f5150524d2894b38df79d9cc4f52/lib/appium_lib/common/helper.rb#L207)
|
1118
1158
|
|
1119
1159
|
> def result
|
1120
1160
|
|
@@ -1122,7 +1162,7 @@ __Returns:__
|
|
1122
1162
|
|
1123
1163
|
--
|
1124
1164
|
|
1125
|
-
##### [start_element](https://github.com/appium/ruby_lib/blob/
|
1165
|
+
##### [start_element](https://github.com/appium/ruby_lib/blob/d2a48f235b29f5150524d2894b38df79d9cc4f52/lib/appium_lib/common/helper.rb#L223)
|
1126
1166
|
|
1127
1167
|
> def start_element(name, attrs = [])
|
1128
1168
|
|
@@ -1130,7 +1170,7 @@ __Returns:__
|
|
1130
1170
|
|
1131
1171
|
--
|
1132
1172
|
|
1133
|
-
##### [end_element](https://github.com/appium/ruby_lib/blob/
|
1173
|
+
##### [end_element](https://github.com/appium/ruby_lib/blob/d2a48f235b29f5150524d2894b38df79d9cc4f52/lib/appium_lib/common/helper.rb#L232)
|
1134
1174
|
|
1135
1175
|
> def end_element(name)
|
1136
1176
|
|
@@ -1138,7 +1178,7 @@ __Returns:__
|
|
1138
1178
|
|
1139
1179
|
--
|
1140
1180
|
|
1141
|
-
##### [characters](https://github.com/appium/ruby_lib/blob/
|
1181
|
+
##### [characters](https://github.com/appium/ruby_lib/blob/d2a48f235b29f5150524d2894b38df79d9cc4f52/lib/appium_lib/common/helper.rb#L238)
|
1142
1182
|
|
1143
1183
|
> def characters(chars)
|
1144
1184
|
|
@@ -1146,7 +1186,7 @@ __Returns:__
|
|
1146
1186
|
|
1147
1187
|
--
|
1148
1188
|
|
1149
|
-
##### [DEFAULT_HEADERS](https://github.com/appium/ruby_lib/blob/
|
1189
|
+
##### [DEFAULT_HEADERS](https://github.com/appium/ruby_lib/blob/d2a48f235b29f5150524d2894b38df79d9cc4f52/lib/appium_lib/common/http_client.rb#L8)
|
1150
1190
|
|
1151
1191
|
> DEFAULT_HEADERS = { 'Accept' => CONTENT_TYPE, 'User-Agent' => "appium/ruby_lib/#{::Appium::VERSION}" }.freeze
|
1152
1192
|
|
@@ -1154,7 +1194,7 @@ Default HTTP client inherit Appium::Core::Base::Http::Default, but has different
|
|
1154
1194
|
|
1155
1195
|
--
|
1156
1196
|
|
1157
|
-
##### [pinch](https://github.com/appium/ruby_lib/blob/
|
1197
|
+
##### [pinch](https://github.com/appium/ruby_lib/blob/d2a48f235b29f5150524d2894b38df79d9cc4f52/lib/appium_lib/common/multi_touch.rb#L51)
|
1158
1198
|
|
1159
1199
|
> def pinch(percentage = 25, auto_perform = true, driver = $driver)
|
1160
1200
|
|
@@ -1174,7 +1214,7 @@ __Parameters:__
|
|
1174
1214
|
|
1175
1215
|
--
|
1176
1216
|
|
1177
|
-
##### [zoom](https://github.com/appium/ruby_lib/blob/
|
1217
|
+
##### [zoom](https://github.com/appium/ruby_lib/blob/d2a48f235b29f5150524d2894b38df79d9cc4f52/lib/appium_lib/common/multi_touch.rb#L95)
|
1178
1218
|
|
1179
1219
|
> def zoom(percentage = 200, auto_perform = true, driver = $driver)
|
1180
1220
|
|
@@ -1194,7 +1234,7 @@ __Parameters:__
|
|
1194
1234
|
|
1195
1235
|
--
|
1196
1236
|
|
1197
|
-
##### [initialize](https://github.com/appium/ruby_lib/blob/
|
1237
|
+
##### [initialize](https://github.com/appium/ruby_lib/blob/d2a48f235b29f5150524d2894b38df79d9cc4f52/lib/appium_lib/common/multi_touch.rb#L216)
|
1198
1238
|
|
1199
1239
|
> def initialize(driver = $driver)
|
1200
1240
|
|
@@ -1206,7 +1246,7 @@ __Returns:__
|
|
1206
1246
|
|
1207
1247
|
--
|
1208
1248
|
|
1209
|
-
##### [COMPLEX_ACTIONS](https://github.com/appium/ruby_lib/blob/
|
1249
|
+
##### [COMPLEX_ACTIONS](https://github.com/appium/ruby_lib/blob/d2a48f235b29f5150524d2894b38df79d9cc4f52/lib/appium_lib/common/touch_actions.rb#L33)
|
1210
1250
|
|
1211
1251
|
> COMPLEX_ACTIONS = ::Appium::Core::TouchAction::COMPLEX_ACTIONS
|
1212
1252
|
|
@@ -1214,7 +1254,7 @@ __Returns:__
|
|
1214
1254
|
|
1215
1255
|
--
|
1216
1256
|
|
1217
|
-
##### [initialize](https://github.com/appium/ruby_lib/blob/
|
1257
|
+
##### [initialize](https://github.com/appium/ruby_lib/blob/d2a48f235b29f5150524d2894b38df79d9cc4f52/lib/appium_lib/common/touch_actions.rb#L47)
|
1218
1258
|
|
1219
1259
|
> def initialize(driver = $driver)
|
1220
1260
|
|
@@ -1226,7 +1266,7 @@ __Returns:__
|
|
1226
1266
|
|
1227
1267
|
--
|
1228
1268
|
|
1229
|
-
##### [swipe](https://github.com/appium/ruby_lib/blob/
|
1269
|
+
##### [swipe](https://github.com/appium/ruby_lib/blob/d2a48f235b29f5150524d2894b38df79d9cc4f52/lib/appium_lib/common/touch_actions.rb#L51)
|
1230
1270
|
|
1231
1271
|
> def swipe(opts, ele = nil)
|
1232
1272
|
|
@@ -1234,7 +1274,7 @@ __Returns:__
|
|
1234
1274
|
|
1235
1275
|
--
|
1236
1276
|
|
1237
|
-
##### [for](https://github.com/appium/ruby_lib/blob/
|
1277
|
+
##### [for](https://github.com/appium/ruby_lib/blob/d2a48f235b29f5150524d2894b38df79d9cc4f52/lib/appium_lib/android/android.rb#L19) android
|
1238
1278
|
|
1239
1279
|
> def self.for(target)
|
1240
1280
|
|
@@ -1242,7 +1282,7 @@ __Returns:__
|
|
1242
1282
|
|
1243
1283
|
--
|
1244
1284
|
|
1245
|
-
##### [TextView](https://github.com/appium/ruby_lib/blob/
|
1285
|
+
##### [TextView](https://github.com/appium/ruby_lib/blob/d2a48f235b29f5150524d2894b38df79d9cc4f52/lib/appium_lib/android/element/text.rb#L4) android
|
1246
1286
|
|
1247
1287
|
> TextView = 'android.widget.TextView'.freeze
|
1248
1288
|
|
@@ -1250,7 +1290,7 @@ __Returns:__
|
|
1250
1290
|
|
1251
1291
|
--
|
1252
1292
|
|
1253
|
-
##### [text](https://github.com/appium/ruby_lib/blob/
|
1293
|
+
##### [text](https://github.com/appium/ruby_lib/blob/d2a48f235b29f5150524d2894b38df79d9cc4f52/lib/appium_lib/android/element/text.rb#L10) android
|
1254
1294
|
|
1255
1295
|
> def text(value)
|
1256
1296
|
|
@@ -1267,7 +1307,7 @@ __Returns:__
|
|
1267
1307
|
|
1268
1308
|
--
|
1269
1309
|
|
1270
|
-
##### [texts](https://github.com/appium/ruby_lib/blob/
|
1310
|
+
##### [texts](https://github.com/appium/ruby_lib/blob/d2a48f235b29f5150524d2894b38df79d9cc4f52/lib/appium_lib/android/element/text.rb#L19) android
|
1271
1311
|
|
1272
1312
|
> def texts(value = false)
|
1273
1313
|
|
@@ -1284,7 +1324,7 @@ __Returns:__
|
|
1284
1324
|
|
1285
1325
|
--
|
1286
1326
|
|
1287
|
-
##### [first_text](https://github.com/appium/ruby_lib/blob/
|
1327
|
+
##### [first_text](https://github.com/appium/ruby_lib/blob/d2a48f235b29f5150524d2894b38df79d9cc4f52/lib/appium_lib/android/element/text.rb#L26) android
|
1288
1328
|
|
1289
1329
|
> def first_text
|
1290
1330
|
|
@@ -1296,7 +1336,7 @@ __Returns:__
|
|
1296
1336
|
|
1297
1337
|
--
|
1298
1338
|
|
1299
|
-
##### [last_text](https://github.com/appium/ruby_lib/blob/
|
1339
|
+
##### [last_text](https://github.com/appium/ruby_lib/blob/d2a48f235b29f5150524d2894b38df79d9cc4f52/lib/appium_lib/android/element/text.rb#L32) android
|
1300
1340
|
|
1301
1341
|
> def last_text
|
1302
1342
|
|
@@ -1308,7 +1348,7 @@ __Returns:__
|
|
1308
1348
|
|
1309
1349
|
--
|
1310
1350
|
|
1311
|
-
##### [text_exact](https://github.com/appium/ruby_lib/blob/
|
1351
|
+
##### [text_exact](https://github.com/appium/ruby_lib/blob/d2a48f235b29f5150524d2894b38df79d9cc4f52/lib/appium_lib/android/element/text.rb#L39) android
|
1312
1352
|
|
1313
1353
|
> def text_exact(value)
|
1314
1354
|
|
@@ -1324,7 +1364,7 @@ __Returns:__
|
|
1324
1364
|
|
1325
1365
|
--
|
1326
1366
|
|
1327
|
-
##### [texts_exact](https://github.com/appium/ruby_lib/blob/
|
1367
|
+
##### [texts_exact](https://github.com/appium/ruby_lib/blob/d2a48f235b29f5150524d2894b38df79d9cc4f52/lib/appium_lib/android/element/text.rb#L46) android
|
1328
1368
|
|
1329
1369
|
> def texts_exact(value)
|
1330
1370
|
|
@@ -1340,7 +1380,7 @@ __Returns:__
|
|
1340
1380
|
|
1341
1381
|
--
|
1342
1382
|
|
1343
|
-
##### [result](https://github.com/appium/ruby_lib/blob/
|
1383
|
+
##### [result](https://github.com/appium/ruby_lib/blob/d2a48f235b29f5150524d2894b38df79d9cc4f52/lib/appium_lib/android/common/helper.rb#L6) android
|
1344
1384
|
|
1345
1385
|
> def result
|
1346
1386
|
|
@@ -1348,7 +1388,7 @@ Returns the value of attribute result
|
|
1348
1388
|
|
1349
1389
|
--
|
1350
1390
|
|
1351
|
-
##### [keys](https://github.com/appium/ruby_lib/blob/
|
1391
|
+
##### [keys](https://github.com/appium/ruby_lib/blob/d2a48f235b29f5150524d2894b38df79d9cc4f52/lib/appium_lib/android/common/helper.rb#L6) android
|
1352
1392
|
|
1353
1393
|
> def keys
|
1354
1394
|
|
@@ -1356,7 +1396,7 @@ Returns the value of attribute keys
|
|
1356
1396
|
|
1357
1397
|
--
|
1358
1398
|
|
1359
|
-
##### [filter](https://github.com/appium/ruby_lib/blob/
|
1399
|
+
##### [filter](https://github.com/appium/ruby_lib/blob/d2a48f235b29f5150524d2894b38df79d9cc4f52/lib/appium_lib/android/common/helper.rb#L6) android
|
1360
1400
|
|
1361
1401
|
> def filter
|
1362
1402
|
|
@@ -1364,7 +1404,7 @@ Returns the value of attribute filter
|
|
1364
1404
|
|
1365
1405
|
--
|
1366
1406
|
|
1367
|
-
##### [filter=](https://github.com/appium/ruby_lib/blob/
|
1407
|
+
##### [filter=](https://github.com/appium/ruby_lib/blob/d2a48f235b29f5150524d2894b38df79d9cc4f52/lib/appium_lib/android/common/helper.rb#L9) android
|
1368
1408
|
|
1369
1409
|
> def filter=(value)
|
1370
1410
|
|
@@ -1372,7 +1412,7 @@ convert to string to support symbols
|
|
1372
1412
|
|
1373
1413
|
--
|
1374
1414
|
|
1375
|
-
##### [initialize](https://github.com/appium/ruby_lib/blob/
|
1415
|
+
##### [initialize](https://github.com/appium/ruby_lib/blob/d2a48f235b29f5150524d2894b38df79d9cc4f52/lib/appium_lib/android/common/helper.rb#L15) android
|
1376
1416
|
|
1377
1417
|
> def initialize
|
1378
1418
|
|
@@ -1384,7 +1424,7 @@ __Returns:__
|
|
1384
1424
|
|
1385
1425
|
--
|
1386
1426
|
|
1387
|
-
##### [reset](https://github.com/appium/ruby_lib/blob/
|
1427
|
+
##### [reset](https://github.com/appium/ruby_lib/blob/d2a48f235b29f5150524d2894b38df79d9cc4f52/lib/appium_lib/android/common/helper.rb#L20) android
|
1388
1428
|
|
1389
1429
|
> def reset
|
1390
1430
|
|
@@ -1392,7 +1432,7 @@ __Returns:__
|
|
1392
1432
|
|
1393
1433
|
--
|
1394
1434
|
|
1395
|
-
##### [start_element](https://github.com/appium/ruby_lib/blob/
|
1435
|
+
##### [start_element](https://github.com/appium/ruby_lib/blob/d2a48f235b29f5150524d2894b38df79d9cc4f52/lib/appium_lib/android/common/helper.rb#L26) android
|
1396
1436
|
|
1397
1437
|
> def start_element(name, attrs = [], driver = $driver)
|
1398
1438
|
|
@@ -1400,7 +1440,7 @@ http://nokogiri.org/Nokogiri/XML/SAX/Document.html
|
|
1400
1440
|
|
1401
1441
|
--
|
1402
1442
|
|
1403
|
-
##### [get_android_inspect](https://github.com/appium/ruby_lib/blob/
|
1443
|
+
##### [get_android_inspect](https://github.com/appium/ruby_lib/blob/d2a48f235b29f5150524d2894b38df79d9cc4f52/lib/appium_lib/android/common/helper.rb#L80) android
|
1404
1444
|
|
1405
1445
|
> def get_android_inspect(class_name = false)
|
1406
1446
|
|
@@ -1419,7 +1459,7 @@ __Returns:__
|
|
1419
1459
|
|
1420
1460
|
--
|
1421
1461
|
|
1422
|
-
##### [page](https://github.com/appium/ruby_lib/blob/
|
1462
|
+
##### [page](https://github.com/appium/ruby_lib/blob/d2a48f235b29f5150524d2894b38df79d9cc4f52/lib/appium_lib/android/common/helper.rb#L106) android
|
1423
1463
|
|
1424
1464
|
> def page(opts = {})
|
1425
1465
|
|
@@ -1438,7 +1478,7 @@ __Returns:__
|
|
1438
1478
|
|
1439
1479
|
--
|
1440
1480
|
|
1441
|
-
##### [id](https://github.com/appium/ruby_lib/blob/
|
1481
|
+
##### [id](https://github.com/appium/ruby_lib/blob/d2a48f235b29f5150524d2894b38df79d9cc4f52/lib/appium_lib/android/common/helper.rb#L115) android
|
1442
1482
|
|
1443
1483
|
> def id(id)
|
1444
1484
|
|
@@ -1454,7 +1494,7 @@ __Returns:__
|
|
1454
1494
|
|
1455
1495
|
--
|
1456
1496
|
|
1457
|
-
##### [ids](https://github.com/appium/ruby_lib/blob/
|
1497
|
+
##### [ids](https://github.com/appium/ruby_lib/blob/d2a48f235b29f5150524d2894b38df79d9cc4f52/lib/appium_lib/android/common/helper.rb#L123) android
|
1458
1498
|
|
1459
1499
|
> def ids(id)
|
1460
1500
|
|
@@ -1470,7 +1510,7 @@ __Returns:__
|
|
1470
1510
|
|
1471
1511
|
--
|
1472
1512
|
|
1473
|
-
##### [ele_index](https://github.com/appium/ruby_lib/blob/
|
1513
|
+
##### [ele_index](https://github.com/appium/ruby_lib/blob/d2a48f235b29f5150524d2894b38df79d9cc4f52/lib/appium_lib/android/common/helper.rb#L132) android
|
1474
1514
|
|
1475
1515
|
> def ele_index(class_name, index)
|
1476
1516
|
|
@@ -1488,7 +1528,7 @@ __Returns:__
|
|
1488
1528
|
|
1489
1529
|
--
|
1490
1530
|
|
1491
|
-
##### [first_ele](https://github.com/appium/ruby_lib/blob/
|
1531
|
+
##### [first_ele](https://github.com/appium/ruby_lib/blob/d2a48f235b29f5150524d2894b38df79d9cc4f52/lib/appium_lib/android/common/helper.rb#L150) android
|
1492
1532
|
|
1493
1533
|
> def first_ele(class_name)
|
1494
1534
|
|
@@ -1504,7 +1544,7 @@ __Returns:__
|
|
1504
1544
|
|
1505
1545
|
--
|
1506
1546
|
|
1507
|
-
##### [last_ele](https://github.com/appium/ruby_lib/blob/
|
1547
|
+
##### [last_ele](https://github.com/appium/ruby_lib/blob/d2a48f235b29f5150524d2894b38df79d9cc4f52/lib/appium_lib/android/common/helper.rb#L157) android
|
1508
1548
|
|
1509
1549
|
> def last_ele(class_name)
|
1510
1550
|
|
@@ -1520,7 +1560,7 @@ __Returns:__
|
|
1520
1560
|
|
1521
1561
|
--
|
1522
1562
|
|
1523
|
-
##### [tag](https://github.com/appium/ruby_lib/blob/
|
1563
|
+
##### [tag](https://github.com/appium/ruby_lib/blob/d2a48f235b29f5150524d2894b38df79d9cc4f52/lib/appium_lib/android/common/helper.rb#L165) android
|
1524
1564
|
|
1525
1565
|
> def tag(class_name)
|
1526
1566
|
|
@@ -1536,7 +1576,7 @@ __Returns:__
|
|
1536
1576
|
|
1537
1577
|
--
|
1538
1578
|
|
1539
|
-
##### [tags](https://github.com/appium/ruby_lib/blob/
|
1579
|
+
##### [tags](https://github.com/appium/ruby_lib/blob/d2a48f235b29f5150524d2894b38df79d9cc4f52/lib/appium_lib/android/common/helper.rb#L173) android
|
1540
1580
|
|
1541
1581
|
> def tags(class_name)
|
1542
1582
|
|
@@ -1552,7 +1592,7 @@ __Returns:__
|
|
1552
1592
|
|
1553
1593
|
--
|
1554
1594
|
|
1555
|
-
##### [string_visible_contains_xpath](https://github.com/appium/ruby_lib/blob/
|
1595
|
+
##### [string_visible_contains_xpath](https://github.com/appium/ruby_lib/blob/d2a48f235b29f5150524d2894b38df79d9cc4f52/lib/appium_lib/android/common/helper.rb#L216) android
|
1556
1596
|
|
1557
1597
|
> def string_visible_contains_xpath(class_name, value)
|
1558
1598
|
|
@@ -1573,7 +1613,7 @@ __Returns:__
|
|
1573
1613
|
|
1574
1614
|
--
|
1575
1615
|
|
1576
|
-
##### [string_visible_contains](https://github.com/appium/ruby_lib/blob/
|
1616
|
+
##### [string_visible_contains](https://github.com/appium/ruby_lib/blob/d2a48f235b29f5150524d2894b38df79d9cc4f52/lib/appium_lib/android/common/helper.rb#L236) android
|
1577
1617
|
|
1578
1618
|
> def string_visible_contains(class_name, value)
|
1579
1619
|
|
@@ -1594,7 +1634,7 @@ __Returns:__
|
|
1594
1634
|
|
1595
1635
|
--
|
1596
1636
|
|
1597
|
-
##### [complex_find_contains](https://github.com/appium/ruby_lib/blob/
|
1637
|
+
##### [complex_find_contains](https://github.com/appium/ruby_lib/blob/d2a48f235b29f5150524d2894b38df79d9cc4f52/lib/appium_lib/android/common/helper.rb#L254) android
|
1598
1638
|
|
1599
1639
|
> def complex_find_contains(class_name, value)
|
1600
1640
|
|
@@ -1612,7 +1652,7 @@ __Returns:__
|
|
1612
1652
|
|
1613
1653
|
--
|
1614
1654
|
|
1615
|
-
##### [complex_finds_contains](https://github.com/appium/ruby_lib/blob/
|
1655
|
+
##### [complex_finds_contains](https://github.com/appium/ruby_lib/blob/d2a48f235b29f5150524d2894b38df79d9cc4f52/lib/appium_lib/android/common/helper.rb#L262) android
|
1616
1656
|
|
1617
1657
|
> def complex_finds_contains(class_name, value)
|
1618
1658
|
|
@@ -1630,7 +1670,7 @@ __Returns:__
|
|
1630
1670
|
|
1631
1671
|
--
|
1632
1672
|
|
1633
|
-
##### [complex_find_exact](https://github.com/appium/ruby_lib/blob/
|
1673
|
+
##### [complex_find_exact](https://github.com/appium/ruby_lib/blob/d2a48f235b29f5150524d2894b38df79d9cc4f52/lib/appium_lib/android/common/helper.rb#L306) android
|
1634
1674
|
|
1635
1675
|
> def complex_find_exact(class_name, value)
|
1636
1676
|
|
@@ -1648,7 +1688,7 @@ __Returns:__
|
|
1648
1688
|
|
1649
1689
|
--
|
1650
1690
|
|
1651
|
-
##### [complex_finds_exact](https://github.com/appium/ruby_lib/blob/
|
1691
|
+
##### [complex_finds_exact](https://github.com/appium/ruby_lib/blob/d2a48f235b29f5150524d2894b38df79d9cc4f52/lib/appium_lib/android/common/helper.rb#L314) android
|
1652
1692
|
|
1653
1693
|
> def complex_finds_exact(class_name, value)
|
1654
1694
|
|
@@ -1666,7 +1706,7 @@ __Returns:__
|
|
1666
1706
|
|
1667
1707
|
--
|
1668
1708
|
|
1669
|
-
##### [alert_click](https://github.com/appium/ruby_lib/blob/
|
1709
|
+
##### [alert_click](https://github.com/appium/ruby_lib/blob/d2a48f235b29f5150524d2894b38df79d9cc4f52/lib/appium_lib/android/element/alert.rb#L6) android
|
1670
1710
|
|
1671
1711
|
> def alert_click(value)
|
1672
1712
|
|
@@ -1682,7 +1722,7 @@ __Returns:__
|
|
1682
1722
|
|
1683
1723
|
--
|
1684
1724
|
|
1685
|
-
##### [alert_accept](https://github.com/appium/ruby_lib/blob/
|
1725
|
+
##### [alert_accept](https://github.com/appium/ruby_lib/blob/d2a48f235b29f5150524d2894b38df79d9cc4f52/lib/appium_lib/android/element/alert.rb#L13) android
|
1686
1726
|
|
1687
1727
|
> def alert_accept
|
1688
1728
|
|
@@ -1695,7 +1735,7 @@ __Returns:__
|
|
1695
1735
|
|
1696
1736
|
--
|
1697
1737
|
|
1698
|
-
##### [alert_accept_text](https://github.com/appium/ruby_lib/blob/
|
1738
|
+
##### [alert_accept_text](https://github.com/appium/ruby_lib/blob/d2a48f235b29f5150524d2894b38df79d9cc4f52/lib/appium_lib/android/element/alert.rb#L20) android
|
1699
1739
|
|
1700
1740
|
> def alert_accept_text
|
1701
1741
|
|
@@ -1708,7 +1748,7 @@ __Returns:__
|
|
1708
1748
|
|
1709
1749
|
--
|
1710
1750
|
|
1711
|
-
##### [alert_dismiss](https://github.com/appium/ruby_lib/blob/
|
1751
|
+
##### [alert_dismiss](https://github.com/appium/ruby_lib/blob/d2a48f235b29f5150524d2894b38df79d9cc4f52/lib/appium_lib/android/element/alert.rb#L27) android
|
1712
1752
|
|
1713
1753
|
> def alert_dismiss
|
1714
1754
|
|
@@ -1721,7 +1761,7 @@ __Returns:__
|
|
1721
1761
|
|
1722
1762
|
--
|
1723
1763
|
|
1724
|
-
##### [alert_dismiss_text](https://github.com/appium/ruby_lib/blob/
|
1764
|
+
##### [alert_dismiss_text](https://github.com/appium/ruby_lib/blob/d2a48f235b29f5150524d2894b38df79d9cc4f52/lib/appium_lib/android/element/alert.rb#L34) android
|
1725
1765
|
|
1726
1766
|
> def alert_dismiss_text
|
1727
1767
|
|
@@ -1734,7 +1774,7 @@ __Returns:__
|
|
1734
1774
|
|
1735
1775
|
--
|
1736
1776
|
|
1737
|
-
##### [Button](https://github.com/appium/ruby_lib/blob/
|
1777
|
+
##### [Button](https://github.com/appium/ruby_lib/blob/d2a48f235b29f5150524d2894b38df79d9cc4f52/lib/appium_lib/android/element/button.rb#L3) android
|
1738
1778
|
|
1739
1779
|
> Button = 'android.widget.Button'.freeze
|
1740
1780
|
|
@@ -1742,7 +1782,7 @@ __Returns:__
|
|
1742
1782
|
|
1743
1783
|
--
|
1744
1784
|
|
1745
|
-
##### [ImageButton](https://github.com/appium/ruby_lib/blob/
|
1785
|
+
##### [ImageButton](https://github.com/appium/ruby_lib/blob/d2a48f235b29f5150524d2894b38df79d9cc4f52/lib/appium_lib/android/element/button.rb#L4) android
|
1746
1786
|
|
1747
1787
|
> ImageButton = 'android.widget.ImageButton'.freeze
|
1748
1788
|
|
@@ -1750,7 +1790,7 @@ __Returns:__
|
|
1750
1790
|
|
1751
1791
|
--
|
1752
1792
|
|
1753
|
-
##### [button](https://github.com/appium/ruby_lib/blob/
|
1793
|
+
##### [button](https://github.com/appium/ruby_lib/blob/d2a48f235b29f5150524d2894b38df79d9cc4f52/lib/appium_lib/android/element/button.rb#L10) android
|
1754
1794
|
|
1755
1795
|
> def button(value)
|
1756
1796
|
|
@@ -1767,7 +1807,7 @@ __Returns:__
|
|
1767
1807
|
|
1768
1808
|
--
|
1769
1809
|
|
1770
|
-
##### [buttons](https://github.com/appium/ruby_lib/blob/
|
1810
|
+
##### [buttons](https://github.com/appium/ruby_lib/blob/d2a48f235b29f5150524d2894b38df79d9cc4f52/lib/appium_lib/android/element/button.rb#L27) android
|
1771
1811
|
|
1772
1812
|
> def buttons(value = false)
|
1773
1813
|
|
@@ -1784,7 +1824,7 @@ __Returns:__
|
|
1784
1824
|
|
1785
1825
|
--
|
1786
1826
|
|
1787
|
-
##### [first_button](https://github.com/appium/ruby_lib/blob/
|
1827
|
+
##### [first_button](https://github.com/appium/ruby_lib/blob/d2a48f235b29f5150524d2894b38df79d9cc4f52/lib/appium_lib/android/element/button.rb#L34) android
|
1788
1828
|
|
1789
1829
|
> def first_button
|
1790
1830
|
|
@@ -1796,7 +1836,7 @@ __Returns:__
|
|
1796
1836
|
|
1797
1837
|
--
|
1798
1838
|
|
1799
|
-
##### [last_button](https://github.com/appium/ruby_lib/blob/
|
1839
|
+
##### [last_button](https://github.com/appium/ruby_lib/blob/d2a48f235b29f5150524d2894b38df79d9cc4f52/lib/appium_lib/android/element/button.rb#L40) android
|
1800
1840
|
|
1801
1841
|
> def last_button
|
1802
1842
|
|
@@ -1808,7 +1848,7 @@ __Returns:__
|
|
1808
1848
|
|
1809
1849
|
--
|
1810
1850
|
|
1811
|
-
##### [button_exact](https://github.com/appium/ruby_lib/blob/
|
1851
|
+
##### [button_exact](https://github.com/appium/ruby_lib/blob/d2a48f235b29f5150524d2894b38df79d9cc4f52/lib/appium_lib/android/element/button.rb#L56) android
|
1812
1852
|
|
1813
1853
|
> def button_exact(value)
|
1814
1854
|
|
@@ -1824,7 +1864,7 @@ __Returns:__
|
|
1824
1864
|
|
1825
1865
|
--
|
1826
1866
|
|
1827
|
-
##### [buttons_exact](https://github.com/appium/ruby_lib/blob/
|
1867
|
+
##### [buttons_exact](https://github.com/appium/ruby_lib/blob/d2a48f235b29f5150524d2894b38df79d9cc4f52/lib/appium_lib/android/element/button.rb#L63) android
|
1828
1868
|
|
1829
1869
|
> def buttons_exact(value)
|
1830
1870
|
|
@@ -1840,7 +1880,7 @@ __Returns:__
|
|
1840
1880
|
|
1841
1881
|
--
|
1842
1882
|
|
1843
|
-
##### [find](https://github.com/appium/ruby_lib/blob/
|
1883
|
+
##### [find](https://github.com/appium/ruby_lib/blob/d2a48f235b29f5150524d2894b38df79d9cc4f52/lib/appium_lib/android/element/generic.rb#L6) android
|
1844
1884
|
|
1845
1885
|
> def find(value)
|
1846
1886
|
|
@@ -1856,7 +1896,7 @@ __Returns:__
|
|
1856
1896
|
|
1857
1897
|
--
|
1858
1898
|
|
1859
|
-
##### [finds](https://github.com/appium/ruby_lib/blob/
|
1899
|
+
##### [finds](https://github.com/appium/ruby_lib/blob/d2a48f235b29f5150524d2894b38df79d9cc4f52/lib/appium_lib/android/element/generic.rb#L13) android
|
1860
1900
|
|
1861
1901
|
> def finds(value)
|
1862
1902
|
|
@@ -1872,7 +1912,7 @@ __Returns:__
|
|
1872
1912
|
|
1873
1913
|
--
|
1874
1914
|
|
1875
|
-
##### [find_exact](https://github.com/appium/ruby_lib/blob/
|
1915
|
+
##### [find_exact](https://github.com/appium/ruby_lib/blob/d2a48f235b29f5150524d2894b38df79d9cc4f52/lib/appium_lib/android/element/generic.rb#L20) android
|
1876
1916
|
|
1877
1917
|
> def find_exact(value)
|
1878
1918
|
|
@@ -1888,7 +1928,7 @@ __Returns:__
|
|
1888
1928
|
|
1889
1929
|
--
|
1890
1930
|
|
1891
|
-
##### [finds_exact](https://github.com/appium/ruby_lib/blob/
|
1931
|
+
##### [finds_exact](https://github.com/appium/ruby_lib/blob/d2a48f235b29f5150524d2894b38df79d9cc4f52/lib/appium_lib/android/element/generic.rb#L27) android
|
1892
1932
|
|
1893
1933
|
> def finds_exact(value)
|
1894
1934
|
|
@@ -1904,7 +1944,7 @@ __Returns:__
|
|
1904
1944
|
|
1905
1945
|
--
|
1906
1946
|
|
1907
|
-
##### [scroll_to](https://github.com/appium/ruby_lib/blob/
|
1947
|
+
##### [scroll_to](https://github.com/appium/ruby_lib/blob/d2a48f235b29f5150524d2894b38df79d9cc4f52/lib/appium_lib/android/element/generic.rb#L40) android
|
1908
1948
|
|
1909
1949
|
> def scroll_to(text, scrollable_index = 0)
|
1910
1950
|
|
@@ -1922,7 +1962,7 @@ __Returns:__
|
|
1922
1962
|
|
1923
1963
|
--
|
1924
1964
|
|
1925
|
-
##### [scroll_to_exact](https://github.com/appium/ruby_lib/blob/
|
1965
|
+
##### [scroll_to_exact](https://github.com/appium/ruby_lib/blob/d2a48f235b29f5150524d2894b38df79d9cc4f52/lib/appium_lib/android/element/generic.rb#L58) android
|
1926
1966
|
|
1927
1967
|
> def scroll_to_exact(text, scrollable_index = 0)
|
1928
1968
|
|
@@ -1940,7 +1980,7 @@ __Returns:__
|
|
1940
1980
|
|
1941
1981
|
--
|
1942
1982
|
|
1943
|
-
##### [for](https://github.com/appium/ruby_lib/blob/
|
1983
|
+
##### [for](https://github.com/appium/ruby_lib/blob/d2a48f235b29f5150524d2894b38df79d9cc4f52/lib/appium_lib/android/espresso/bridge.rb#L7) android
|
1944
1984
|
|
1945
1985
|
> def self.for(target)
|
1946
1986
|
|
@@ -1948,7 +1988,7 @@ __Returns:__
|
|
1948
1988
|
|
1949
1989
|
--
|
1950
1990
|
|
1951
|
-
##### [EditText](https://github.com/appium/ruby_lib/blob/
|
1991
|
+
##### [EditText](https://github.com/appium/ruby_lib/blob/d2a48f235b29f5150524d2894b38df79d9cc4f52/lib/appium_lib/android/element/textfield.rb#L3) android
|
1952
1992
|
|
1953
1993
|
> EditText = 'android.widget.EditText'.freeze
|
1954
1994
|
|
@@ -1956,7 +1996,7 @@ __Returns:__
|
|
1956
1996
|
|
1957
1997
|
--
|
1958
1998
|
|
1959
|
-
##### [textfield](https://github.com/appium/ruby_lib/blob/
|
1999
|
+
##### [textfield](https://github.com/appium/ruby_lib/blob/d2a48f235b29f5150524d2894b38df79d9cc4f52/lib/appium_lib/android/element/textfield.rb#L9) android
|
1960
2000
|
|
1961
2001
|
> def textfield(value)
|
1962
2002
|
|
@@ -1973,7 +2013,7 @@ __Returns:__
|
|
1973
2013
|
|
1974
2014
|
--
|
1975
2015
|
|
1976
|
-
##### [textfields](https://github.com/appium/ruby_lib/blob/
|
2016
|
+
##### [textfields](https://github.com/appium/ruby_lib/blob/d2a48f235b29f5150524d2894b38df79d9cc4f52/lib/appium_lib/android/element/textfield.rb#L18) android
|
1977
2017
|
|
1978
2018
|
> def textfields(value = false)
|
1979
2019
|
|
@@ -1990,7 +2030,7 @@ __Returns:__
|
|
1990
2030
|
|
1991
2031
|
--
|
1992
2032
|
|
1993
|
-
##### [first_textfield](https://github.com/appium/ruby_lib/blob/
|
2033
|
+
##### [first_textfield](https://github.com/appium/ruby_lib/blob/d2a48f235b29f5150524d2894b38df79d9cc4f52/lib/appium_lib/android/element/textfield.rb#L25) android
|
1994
2034
|
|
1995
2035
|
> def first_textfield
|
1996
2036
|
|
@@ -2002,7 +2042,7 @@ __Returns:__
|
|
2002
2042
|
|
2003
2043
|
--
|
2004
2044
|
|
2005
|
-
##### [last_textfield](https://github.com/appium/ruby_lib/blob/
|
2045
|
+
##### [last_textfield](https://github.com/appium/ruby_lib/blob/d2a48f235b29f5150524d2894b38df79d9cc4f52/lib/appium_lib/android/element/textfield.rb#L31) android
|
2006
2046
|
|
2007
2047
|
> def last_textfield
|
2008
2048
|
|
@@ -2014,7 +2054,7 @@ __Returns:__
|
|
2014
2054
|
|
2015
2055
|
--
|
2016
2056
|
|
2017
|
-
##### [textfield_exact](https://github.com/appium/ruby_lib/blob/
|
2057
|
+
##### [textfield_exact](https://github.com/appium/ruby_lib/blob/d2a48f235b29f5150524d2894b38df79d9cc4f52/lib/appium_lib/android/element/textfield.rb#L38) android
|
2018
2058
|
|
2019
2059
|
> def textfield_exact(value)
|
2020
2060
|
|
@@ -2030,7 +2070,7 @@ __Returns:__
|
|
2030
2070
|
|
2031
2071
|
--
|
2032
2072
|
|
2033
|
-
##### [textfields_exact](https://github.com/appium/ruby_lib/blob/
|
2073
|
+
##### [textfields_exact](https://github.com/appium/ruby_lib/blob/d2a48f235b29f5150524d2894b38df79d9cc4f52/lib/appium_lib/android/element/textfield.rb#L45) android
|
2034
2074
|
|
2035
2075
|
> def textfields_exact(value)
|
2036
2076
|
|
@@ -2046,7 +2086,7 @@ __Returns:__
|
|
2046
2086
|
|
2047
2087
|
--
|
2048
2088
|
|
2049
|
-
##### [for](https://github.com/appium/ruby_lib/blob/
|
2089
|
+
##### [for](https://github.com/appium/ruby_lib/blob/d2a48f235b29f5150524d2894b38df79d9cc4f52/lib/appium_lib/android/uiautomator2/bridge.rb#L7) android
|
2050
2090
|
|
2051
2091
|
> def self.for(target)
|
2052
2092
|
|
@@ -2054,7 +2094,7 @@ __Returns:__
|
|
2054
2094
|
|
2055
2095
|
--
|
2056
2096
|
|
2057
|
-
##### [string_visible_contains](https://github.com/appium/ruby_lib/blob/
|
2097
|
+
##### [string_visible_contains](https://github.com/appium/ruby_lib/blob/d2a48f235b29f5150524d2894b38df79d9cc4f52/lib/appium_lib/android/uiautomator2/helper.rb#L13) android
|
2058
2098
|
|
2059
2099
|
> def string_visible_contains(class_name, value)
|
2060
2100
|
|
@@ -2075,7 +2115,7 @@ __Returns:__
|
|
2075
2115
|
|
2076
2116
|
--
|
2077
2117
|
|
2078
|
-
##### [complex_find_contains](https://github.com/appium/ruby_lib/blob/
|
2118
|
+
##### [complex_find_contains](https://github.com/appium/ruby_lib/blob/d2a48f235b29f5150524d2894b38df79d9cc4f52/lib/appium_lib/android/uiautomator2/helper.rb#L31) android
|
2079
2119
|
|
2080
2120
|
> def complex_find_contains(class_name, value)
|
2081
2121
|
|
@@ -2093,7 +2133,7 @@ __Returns:__
|
|
2093
2133
|
|
2094
2134
|
--
|
2095
2135
|
|
2096
|
-
##### [complex_finds_contains](https://github.com/appium/ruby_lib/blob/
|
2136
|
+
##### [complex_finds_contains](https://github.com/appium/ruby_lib/blob/d2a48f235b29f5150524d2894b38df79d9cc4f52/lib/appium_lib/android/uiautomator2/helper.rb#L41) android
|
2097
2137
|
|
2098
2138
|
> def complex_finds_contains(class_name, value)
|
2099
2139
|
|
@@ -2111,7 +2151,7 @@ __Returns:__
|
|
2111
2151
|
|
2112
2152
|
--
|
2113
2153
|
|
2114
|
-
##### [complex_find_exact](https://github.com/appium/ruby_lib/blob/
|
2154
|
+
##### [complex_find_exact](https://github.com/appium/ruby_lib/blob/d2a48f235b29f5150524d2894b38df79d9cc4f52/lib/appium_lib/android/uiautomator2/helper.rb#L69) android
|
2115
2155
|
|
2116
2156
|
> def complex_find_exact(class_name, value)
|
2117
2157
|
|
@@ -2129,7 +2169,7 @@ __Returns:__
|
|
2129
2169
|
|
2130
2170
|
--
|
2131
2171
|
|
2132
|
-
##### [complex_finds_exact](https://github.com/appium/ruby_lib/blob/
|
2172
|
+
##### [complex_finds_exact](https://github.com/appium/ruby_lib/blob/d2a48f235b29f5150524d2894b38df79d9cc4f52/lib/appium_lib/android/uiautomator2/helper.rb#L79) android
|
2133
2173
|
|
2134
2174
|
> def complex_finds_exact(class_name, value)
|
2135
2175
|
|
@@ -2147,7 +2187,22 @@ __Returns:__
|
|
2147
2187
|
|
2148
2188
|
--
|
2149
2189
|
|
2150
|
-
##### [
|
2190
|
+
##### [shell](https://github.com/appium/ruby_lib/blob/d2a48f235b29f5150524d2894b38df79d9cc4f52/lib/appium_lib/android/common/command/command.rb#L14) android
|
2191
|
+
|
2192
|
+
> def shell(command, arguments)
|
2193
|
+
|
2194
|
+
Conduct an adb shell script on Appium server.
|
2195
|
+
Require `--relaxed-security` arguments when run Appium server as server side arguments.
|
2196
|
+
|
2197
|
+
__Parameters:__
|
2198
|
+
|
2199
|
+
[String] command - Command for "adb shell"
|
2200
|
+
|
2201
|
+
[Array] arguments - Arguments for the adb command
|
2202
|
+
|
2203
|
+
--
|
2204
|
+
|
2205
|
+
##### [button](https://github.com/appium/ruby_lib/blob/d2a48f235b29f5150524d2894b38df79d9cc4f52/lib/appium_lib/android/uiautomator2/element/button.rb#L9) android
|
2151
2206
|
|
2152
2207
|
> def button(value)
|
2153
2208
|
|
@@ -2164,7 +2219,7 @@ __Returns:__
|
|
2164
2219
|
|
2165
2220
|
--
|
2166
2221
|
|
2167
|
-
##### [buttons](https://github.com/appium/ruby_lib/blob/
|
2222
|
+
##### [buttons](https://github.com/appium/ruby_lib/blob/d2a48f235b29f5150524d2894b38df79d9cc4f52/lib/appium_lib/android/uiautomator2/element/button.rb#L29) android
|
2168
2223
|
|
2169
2224
|
> def buttons(value = false)
|
2170
2225
|
|
@@ -2181,7 +2236,7 @@ __Returns:__
|
|
2181
2236
|
|
2182
2237
|
--
|
2183
2238
|
|
2184
|
-
##### [first_button](https://github.com/appium/ruby_lib/blob/
|
2239
|
+
##### [first_button](https://github.com/appium/ruby_lib/blob/d2a48f235b29f5150524d2894b38df79d9cc4f52/lib/appium_lib/android/uiautomator2/element/button.rb#L36) android
|
2185
2240
|
|
2186
2241
|
> def first_button
|
2187
2242
|
|
@@ -2193,7 +2248,7 @@ __Returns:__
|
|
2193
2248
|
|
2194
2249
|
--
|
2195
2250
|
|
2196
|
-
##### [last_button](https://github.com/appium/ruby_lib/blob/
|
2251
|
+
##### [last_button](https://github.com/appium/ruby_lib/blob/d2a48f235b29f5150524d2894b38df79d9cc4f52/lib/appium_lib/android/uiautomator2/element/button.rb#L43) android
|
2197
2252
|
|
2198
2253
|
> def last_button
|
2199
2254
|
|
@@ -2205,7 +2260,7 @@ __Returns:__
|
|
2205
2260
|
|
2206
2261
|
--
|
2207
2262
|
|
2208
|
-
##### [button_exact](https://github.com/appium/ruby_lib/blob/
|
2263
|
+
##### [button_exact](https://github.com/appium/ruby_lib/blob/d2a48f235b29f5150524d2894b38df79d9cc4f52/lib/appium_lib/android/uiautomator2/element/button.rb#L60) android
|
2209
2264
|
|
2210
2265
|
> def button_exact(value)
|
2211
2266
|
|
@@ -2221,7 +2276,7 @@ __Returns:__
|
|
2221
2276
|
|
2222
2277
|
--
|
2223
2278
|
|
2224
|
-
##### [buttons_exact](https://github.com/appium/ruby_lib/blob/
|
2279
|
+
##### [buttons_exact](https://github.com/appium/ruby_lib/blob/d2a48f235b29f5150524d2894b38df79d9cc4f52/lib/appium_lib/android/uiautomator2/element/button.rb#L68) android
|
2225
2280
|
|
2226
2281
|
> def buttons_exact(value)
|
2227
2282
|
|