appium_lib 9.17.0 → 9.18.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.rubocop.yml +2 -0
- data/.travis.yml +5 -5
- data/CHANGELOG.md +10 -0
- data/appium_lib.gemspec +2 -2
- data/docs/android_docs.md +447 -191
- data/docs/ios_docs.md +263 -251
- data/lib/appium_lib/android/element/button.rb +1 -3
- data/lib/appium_lib/android/espresso.rb +3 -1
- data/lib/appium_lib/android/espresso/bridge.rb +2 -0
- data/lib/appium_lib/android/espresso/element.rb +11 -0
- data/lib/appium_lib/android/espresso/element/button.rb +124 -0
- data/lib/appium_lib/android/espresso/element/generic.rb +61 -0
- data/lib/appium_lib/android/espresso/helper.rb +39 -0
- data/lib/appium_lib/driver.rb +23 -3
- data/lib/appium_lib/version.rb +2 -2
- data/release_notes.md +7 -0
- metadata +10 -6
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 2ba5ada93eef4eaf51bdc5c61f8552a087faaa20
|
4
|
+
data.tar.gz: 9fa894107759947ccec17b79c63f8d09cc3c7ed1
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 0752af5cfda0719fcca54605c4ba6450b179823924d6639dda3f58ffca79eb5643e0e23e932f5f7245029b7a30c41f9df1593454f5472c5a5a43529fb6e7ec82
|
7
|
+
data.tar.gz: d7e8bfa9156e162a5ae030de36b90b3fafec818dd008a53bb223724d9dc2a604ac6b2c15bc18926342d32a7fee0e2ef3c979c48636792dd425dc8d90255011b8
|
data/.rubocop.yml
CHANGED
data/.travis.yml
CHANGED
@@ -2,13 +2,13 @@ sudo: false
|
|
2
2
|
cache: bundler
|
3
3
|
language: ruby
|
4
4
|
rvm:
|
5
|
-
- 2.2
|
6
|
-
- 2.3
|
7
|
-
- 2.4
|
8
|
-
- 2.5
|
5
|
+
- 2.2
|
6
|
+
- 2.3
|
7
|
+
- 2.4
|
8
|
+
- 2.5
|
9
|
+
- 2.6
|
9
10
|
|
10
11
|
before_install:
|
11
|
-
- gem update --system
|
12
12
|
- gem update bundler
|
13
13
|
install:
|
14
14
|
- bundle install --retry=3
|
data/CHANGELOG.md
CHANGED
@@ -10,6 +10,16 @@ Release tags are https://github.com/appium/ruby_lib/releases .
|
|
10
10
|
|
11
11
|
### 3. Deprecations
|
12
12
|
|
13
|
+
## v9.18.0
|
14
|
+
### 1. Enhancements
|
15
|
+
- Enhance Espresso automation name adaptation
|
16
|
+
- Call `xpath` locator strategy instead of `uiautomator` locator strategy in various wrapper methods like `text/s`, `button/s`, etc
|
17
|
+
- [#884](https://github.com/appium/ruby_lib/pull/844/)
|
18
|
+
|
19
|
+
### 2. Bug fixes
|
20
|
+
|
21
|
+
### 3. Deprecations
|
22
|
+
|
13
23
|
## v9.17.0
|
14
24
|
### 1. Enhancements
|
15
25
|
- Add `action` wrapping _ruby_lib_core_ for [W3C actions](https://github.com/appium/ruby_lib_core/blob/master/lib/appium_lib_core/common/base/bridge/w3c.rb#L39)
|
data/appium_lib.gemspec
CHANGED
@@ -14,7 +14,7 @@ Gem::Specification.new do |s|
|
|
14
14
|
s.homepage = 'https://github.com/appium/ruby_lib' # published as appium_lib
|
15
15
|
s.require_paths = ['lib']
|
16
16
|
|
17
|
-
s.add_runtime_dependency 'appium_lib_core', '~> 2.
|
17
|
+
s.add_runtime_dependency 'appium_lib_core', '~> 2.3'
|
18
18
|
s.add_runtime_dependency 'nokogiri', '~> 1.8', '>= 1.8.1'
|
19
19
|
s.add_runtime_dependency 'tomlrb', '~> 1.1'
|
20
20
|
|
@@ -24,7 +24,7 @@ Gem::Specification.new do |s|
|
|
24
24
|
s.add_development_dependency 'posix-spawn', '~> 0.3'
|
25
25
|
s.add_development_dependency 'pry'
|
26
26
|
s.add_development_dependency 'rake', '~> 12.0'
|
27
|
-
s.add_development_dependency 'rubocop', '~> 0.
|
27
|
+
s.add_development_dependency 'rubocop', '~> 0.61.0'
|
28
28
|
s.add_development_dependency 'spec', '~> 5.3', '>= 5.3.4'
|
29
29
|
s.add_development_dependency 'yard', '~> 0.9.11'
|
30
30
|
|
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/32f327239055362ef630979d5975d0fac64d94c6/lib/appium_lib/appium.rb#L46) common
|
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/32f327239055362ef630979d5975d0fac64d94c6/lib/appium_lib/appium.rb#L82) common
|
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/32f327239055362ef630979d5975d0fac64d94c6/lib/appium_lib/appium.rb#L87) common
|
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/32f327239055362ef630979d5975d0fac64d94c6/lib/appium_lib/appium.rb#L129) common
|
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/32f327239055362ef630979d5975d0fac64d94c6/lib/appium_lib/appium.rb#L185) common
|
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/32f327239055362ef630979d5975d0fac64d94c6/lib/appium_lib/driver.rb#L35) common
|
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/32f327239055362ef630979d5975d0fac64d94c6/lib/appium_lib/driver.rb#L35) common
|
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/32f327239055362ef630979d5975d0fac64d94c6/lib/appium_lib/driver.rb#L38) common
|
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/32f327239055362ef630979d5975d0fac64d94c6/lib/appium_lib/driver.rb#L41) common
|
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/32f327239055362ef630979d5975d0fac64d94c6/lib/appium_lib/driver.rb#L44) common
|
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/32f327239055362ef630979d5975d0fac64d94c6/lib/appium_lib/driver.rb#L47) common
|
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/32f327239055362ef630979d5975d0fac64d94c6/lib/appium_lib/driver.rb#L51) common
|
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/32f327239055362ef630979d5975d0fac64d94c6/lib/appium_lib/driver.rb#L52) common
|
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/32f327239055362ef630979d5975d0fac64d94c6/lib/appium_lib/driver.rb#L53) common
|
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/32f327239055362ef630979d5975d0fac64d94c6/lib/appium_lib/driver.rb#L54) common
|
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/32f327239055362ef630979d5975d0fac64d94c6/lib/appium_lib/driver.rb#L55) common
|
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/32f327239055362ef630979d5975d0fac64d94c6/lib/appium_lib/driver.rb#L56) common
|
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/32f327239055362ef630979d5975d0fac64d94c6/lib/appium_lib/driver.rb#L57) common
|
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/32f327239055362ef630979d5975d0fac64d94c6/lib/appium_lib/driver.rb#L58) common
|
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/32f327239055362ef630979d5975d0fac64d94c6/lib/appium_lib/driver.rb#L59) common
|
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/32f327239055362ef630979d5975d0fac64d94c6/lib/appium_lib/driver.rb#L60) common
|
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/32f327239055362ef630979d5975d0fac64d94c6/lib/appium_lib/driver.rb#L61) common
|
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/32f327239055362ef630979d5975d0fac64d94c6/lib/appium_lib/driver.rb#L62) common
|
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/32f327239055362ef630979d5975d0fac64d94c6/lib/appium_lib/driver.rb#L65) common
|
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/32f327239055362ef630979d5975d0fac64d94c6/lib/appium_lib/driver.rb#L67) common
|
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/32f327239055362ef630979d5975d0fac64d94c6/lib/appium_lib/driver.rb#L70) common
|
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/32f327239055362ef630979d5975d0fac64d94c6/lib/appium_lib/driver.rb#L72) common
|
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/32f327239055362ef630979d5975d0fac64d94c6/lib/appium_lib/driver.rb#L140) common
|
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/32f327239055362ef630979d5975d0fac64d94c6/lib/appium_lib/driver.rb#L259) common
|
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/32f327239055362ef630979d5975d0fac64d94c6/lib/appium_lib/driver.rb#L281) common
|
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/32f327239055362ef630979d5975d0fac64d94c6/lib/appium_lib/driver.rb#L285) common
|
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/32f327239055362ef630979d5975d0fac64d94c6/lib/appium_lib/driver.rb#L289) common
|
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/32f327239055362ef630979d5975d0fac64d94c6/lib/appium_lib/driver.rb#L295) common
|
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/32f327239055362ef630979d5975d0fac64d94c6/lib/appium_lib/driver.rb#L301) common
|
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/32f327239055362ef630979d5975d0fac64d94c6/lib/appium_lib/driver.rb#L307) common
|
391
391
|
|
392
392
|
> def automation_name_is_xcuitest?
|
393
393
|
|
@@ -399,7 +399,7 @@ __Returns:__
|
|
399
399
|
|
400
400
|
--
|
401
401
|
|
402
|
-
##### [dialect](https://github.com/appium/ruby_lib/blob/
|
402
|
+
##### [dialect](https://github.com/appium/ruby_lib/blob/32f327239055362ef630979d5975d0fac64d94c6/lib/appium_lib/driver.rb#L327) common
|
403
403
|
|
404
404
|
> def dialect
|
405
405
|
|
@@ -421,9 +421,9 @@ __Returns:__
|
|
421
421
|
|
422
422
|
--
|
423
423
|
|
424
|
-
##### [action](https://github.com/appium/ruby_lib/blob/
|
424
|
+
##### [action](https://github.com/appium/ruby_lib/blob/32f327239055362ef630979d5975d0fac64d94c6/lib/appium_lib/driver.rb#L342) common
|
425
425
|
|
426
|
-
> def action
|
426
|
+
> def action
|
427
427
|
|
428
428
|
An entry point to chain W3C actions. Returns `TouchAction.new` if it works as MJSONWP instead of W3C action.
|
429
429
|
Read https://www.rubydoc.info/github/appium/ruby_lib_core/Appium/Core/Base/Bridge/W3C#action-instance_method
|
@@ -438,7 +438,7 @@ __Returns:__
|
|
438
438
|
|
439
439
|
--
|
440
440
|
|
441
|
-
##### [appium_server_version](https://github.com/appium/ruby_lib/blob/
|
441
|
+
##### [appium_server_version](https://github.com/appium/ruby_lib/blob/32f327239055362ef630979d5975d0fac64d94c6/lib/appium_lib/driver.rb#L362) common
|
442
442
|
|
443
443
|
> def appium_server_version
|
444
444
|
|
@@ -450,7 +450,7 @@ __Returns:__
|
|
450
450
|
|
451
451
|
--
|
452
452
|
|
453
|
-
##### [remote_status](https://github.com/appium/ruby_lib/blob/
|
453
|
+
##### [remote_status](https://github.com/appium/ruby_lib/blob/32f327239055362ef630979d5975d0fac64d94c6/lib/appium_lib/driver.rb#L370) common
|
454
454
|
|
455
455
|
> def appium_server_version
|
456
456
|
|
@@ -462,7 +462,7 @@ __Returns:__
|
|
462
462
|
|
463
463
|
--
|
464
464
|
|
465
|
-
##### [platform_version](https://github.com/appium/ruby_lib/blob/
|
465
|
+
##### [platform_version](https://github.com/appium/ruby_lib/blob/32f327239055362ef630979d5975d0fac64d94c6/lib/appium_lib/driver.rb#L374) common
|
466
466
|
|
467
467
|
> def platform_version
|
468
468
|
|
@@ -474,7 +474,7 @@ __Returns:__
|
|
474
474
|
|
475
475
|
--
|
476
476
|
|
477
|
-
##### [appium_client_version](https://github.com/appium/ruby_lib/blob/
|
477
|
+
##### [appium_client_version](https://github.com/appium/ruby_lib/blob/32f327239055362ef630979d5975d0fac64d94c6/lib/appium_lib/driver.rb#L387) common
|
478
478
|
|
479
479
|
> def appium_client_version
|
480
480
|
|
@@ -486,7 +486,7 @@ __Returns:__
|
|
486
486
|
|
487
487
|
--
|
488
488
|
|
489
|
-
##### [absolute_app_path](https://github.com/appium/ruby_lib/blob/
|
489
|
+
##### [absolute_app_path](https://github.com/appium/ruby_lib/blob/32f327239055362ef630979d5975d0fac64d94c6/lib/appium_lib/driver.rb#L399) common
|
490
490
|
|
491
491
|
> def self.absolute_app_path(opts)
|
492
492
|
|
@@ -503,7 +503,7 @@ __Returns:__
|
|
503
503
|
|
504
504
|
--
|
505
505
|
|
506
|
-
##### [server_url](https://github.com/appium/ruby_lib/blob/
|
506
|
+
##### [server_url](https://github.com/appium/ruby_lib/blob/32f327239055362ef630979d5975d0fac64d94c6/lib/appium_lib/driver.rb#L422) common
|
507
507
|
|
508
508
|
> def server_url
|
509
509
|
|
@@ -515,7 +515,7 @@ __Returns:__
|
|
515
515
|
|
516
516
|
--
|
517
517
|
|
518
|
-
##### [restart](https://github.com/appium/ruby_lib/blob/
|
518
|
+
##### [restart](https://github.com/appium/ruby_lib/blob/32f327239055362ef630979d5975d0fac64d94c6/lib/appium_lib/driver.rb#L431) common
|
519
519
|
|
520
520
|
> def restart
|
521
521
|
|
@@ -527,7 +527,7 @@ __Returns:__
|
|
527
527
|
|
528
528
|
--
|
529
529
|
|
530
|
-
##### [screenshot](https://github.com/appium/ruby_lib/blob/
|
530
|
+
##### [screenshot](https://github.com/appium/ruby_lib/blob/32f327239055362ef630979d5975d0fac64d94c6/lib/appium_lib/driver.rb#L444) common
|
531
531
|
|
532
532
|
> def screenshot(png_save_path)
|
533
533
|
|
@@ -543,7 +543,7 @@ __Returns:__
|
|
543
543
|
|
544
544
|
--
|
545
545
|
|
546
|
-
##### [element_screenshot](https://github.com/appium/ruby_lib/blob/
|
546
|
+
##### [element_screenshot](https://github.com/appium/ruby_lib/blob/32f327239055362ef630979d5975d0fac64d94c6/lib/appium_lib/driver.rb#L458) common
|
547
547
|
|
548
548
|
> def element_screenshot(element, png_save_path)
|
549
549
|
|
@@ -561,7 +561,7 @@ __Returns:__
|
|
561
561
|
|
562
562
|
--
|
563
563
|
|
564
|
-
##### [driver_quit](https://github.com/appium/ruby_lib/blob/
|
564
|
+
##### [driver_quit](https://github.com/appium/ruby_lib/blob/32f327239055362ef630979d5975d0fac64d94c6/lib/appium_lib/driver.rb#L465) common
|
565
565
|
|
566
566
|
> def driver_quit
|
567
567
|
|
@@ -573,7 +573,7 @@ __Returns:__
|
|
573
573
|
|
574
574
|
--
|
575
575
|
|
576
|
-
##### [quit_driver](https://github.com/appium/ruby_lib/blob/
|
576
|
+
##### [quit_driver](https://github.com/appium/ruby_lib/blob/32f327239055362ef630979d5975d0fac64d94c6/lib/appium_lib/driver.rb#L468) common
|
577
577
|
|
578
578
|
> def driver_quit
|
579
579
|
|
@@ -585,7 +585,7 @@ __Returns:__
|
|
585
585
|
|
586
586
|
--
|
587
587
|
|
588
|
-
##### [window_size](https://github.com/appium/ruby_lib/blob/
|
588
|
+
##### [window_size](https://github.com/appium/ruby_lib/blob/32f327239055362ef630979d5975d0fac64d94c6/lib/appium_lib/driver.rb#L479) common
|
589
589
|
|
590
590
|
> def window_size
|
591
591
|
|
@@ -597,7 +597,19 @@ __Returns:__
|
|
597
597
|
|
598
598
|
--
|
599
599
|
|
600
|
-
##### [
|
600
|
+
##### [window_rect](https://github.com/appium/ruby_lib/blob/32f327239055362ef630979d5975d0fac64d94c6/lib/appium_lib/driver.rb#L494) common
|
601
|
+
|
602
|
+
> def window_rect
|
603
|
+
|
604
|
+
Get the device window's rect.
|
605
|
+
|
606
|
+
__Returns:__
|
607
|
+
|
608
|
+
[Selenium::WebDriver::Rectangle]
|
609
|
+
|
610
|
+
--
|
611
|
+
|
612
|
+
##### [start_driver](https://github.com/appium/ruby_lib/blob/32f327239055362ef630979d5975d0fac64d94c6/lib/appium_lib/driver.rb#L527) common
|
601
613
|
|
602
614
|
> def start_driver(http_client_ops =
|
603
615
|
|
@@ -617,7 +629,7 @@ __Returns:__
|
|
617
629
|
|
618
630
|
--
|
619
631
|
|
620
|
-
##### [set_implicit_wait](https://github.com/appium/ruby_lib/blob/
|
632
|
+
##### [set_implicit_wait](https://github.com/appium/ruby_lib/blob/32f327239055362ef630979d5975d0fac64d94c6/lib/appium_lib/driver.rb#L548) common
|
621
633
|
|
622
634
|
> def set_implicit_wait(wait)
|
623
635
|
|
@@ -625,7 +637,7 @@ To ignore error for Espresso Driver
|
|
625
637
|
|
626
638
|
--
|
627
639
|
|
628
|
-
##### [no_wait](https://github.com/appium/ruby_lib/blob/
|
640
|
+
##### [no_wait](https://github.com/appium/ruby_lib/blob/32f327239055362ef630979d5975d0fac64d94c6/lib/appium_lib/driver.rb#L559) common
|
629
641
|
|
630
642
|
> def no_wait
|
631
643
|
|
@@ -633,7 +645,7 @@ Set implicit wait to zero.
|
|
633
645
|
|
634
646
|
--
|
635
647
|
|
636
|
-
##### [set_wait](https://github.com/appium/ruby_lib/blob/
|
648
|
+
##### [set_wait](https://github.com/appium/ruby_lib/blob/32f327239055362ef630979d5975d0fac64d94c6/lib/appium_lib/driver.rb#L573) common
|
637
649
|
|
638
650
|
> def set_wait(timeout = nil)
|
639
651
|
|
@@ -649,7 +661,7 @@ __Returns:__
|
|
649
661
|
|
650
662
|
--
|
651
663
|
|
652
|
-
##### [exists](https://github.com/appium/ruby_lib/blob/
|
664
|
+
##### [exists](https://github.com/appium/ruby_lib/blob/32f327239055362ef630979d5975d0fac64d94c6/lib/appium_lib/driver.rb#L590) common
|
653
665
|
|
654
666
|
> def exists(pre_check = 0, post_check = @core.default_wait)
|
655
667
|
|
@@ -673,7 +685,7 @@ __Returns:__
|
|
673
685
|
|
674
686
|
--
|
675
687
|
|
676
|
-
##### [execute_script](https://github.com/appium/ruby_lib/blob/
|
688
|
+
##### [execute_script](https://github.com/appium/ruby_lib/blob/32f327239055362ef630979d5975d0fac64d94c6/lib/appium_lib/driver.rb#L614) common
|
677
689
|
|
678
690
|
> def execute_script(script, *args)
|
679
691
|
|
@@ -691,7 +703,7 @@ __Returns:__
|
|
691
703
|
|
692
704
|
--
|
693
705
|
|
694
|
-
##### [execute_async_script](https://github.com/appium/ruby_lib/blob/
|
706
|
+
##### [execute_async_script](https://github.com/appium/ruby_lib/blob/32f327239055362ef630979d5975d0fac64d94c6/lib/appium_lib/driver.rb#L622) common
|
695
707
|
|
696
708
|
> def execute_async_script(script, *args)
|
697
709
|
|
@@ -701,7 +713,7 @@ Get the window handles of open browser windows
|
|
701
713
|
|
702
714
|
--
|
703
715
|
|
704
|
-
##### [window_handles](https://github.com/appium/ruby_lib/blob/
|
716
|
+
##### [window_handles](https://github.com/appium/ruby_lib/blob/32f327239055362ef630979d5975d0fac64d94c6/lib/appium_lib/driver.rb#L626) common
|
705
717
|
|
706
718
|
> def window_handles
|
707
719
|
|
@@ -709,7 +721,7 @@ Get the window handles of open browser windows
|
|
709
721
|
|
710
722
|
--
|
711
723
|
|
712
|
-
##### [window_handle](https://github.com/appium/ruby_lib/blob/
|
724
|
+
##### [window_handle](https://github.com/appium/ruby_lib/blob/32f327239055362ef630979d5975d0fac64d94c6/lib/appium_lib/driver.rb#L631) common
|
713
725
|
|
714
726
|
> def window_handle
|
715
727
|
|
@@ -717,7 +729,7 @@ Get the current window handle
|
|
717
729
|
|
718
730
|
--
|
719
731
|
|
720
|
-
##### [navigate](https://github.com/appium/ruby_lib/blob/
|
732
|
+
##### [navigate](https://github.com/appium/ruby_lib/blob/32f327239055362ef630979d5975d0fac64d94c6/lib/appium_lib/driver.rb#L635) common
|
721
733
|
|
722
734
|
> def navigate
|
723
735
|
|
@@ -725,7 +737,7 @@ Get the current window handle
|
|
725
737
|
|
726
738
|
--
|
727
739
|
|
728
|
-
##### [manage](https://github.com/appium/ruby_lib/blob/
|
740
|
+
##### [manage](https://github.com/appium/ruby_lib/blob/32f327239055362ef630979d5975d0fac64d94c6/lib/appium_lib/driver.rb#L639) common
|
729
741
|
|
730
742
|
> def manage
|
731
743
|
|
@@ -733,7 +745,7 @@ Get the current window handle
|
|
733
745
|
|
734
746
|
--
|
735
747
|
|
736
|
-
##### [get](https://github.com/appium/ruby_lib/blob/
|
748
|
+
##### [get](https://github.com/appium/ruby_lib/blob/32f327239055362ef630979d5975d0fac64d94c6/lib/appium_lib/driver.rb#L643) common
|
737
749
|
|
738
750
|
> def get(url)
|
739
751
|
|
@@ -741,7 +753,7 @@ Get the current window handle
|
|
741
753
|
|
742
754
|
--
|
743
755
|
|
744
|
-
##### [current_url](https://github.com/appium/ruby_lib/blob/
|
756
|
+
##### [current_url](https://github.com/appium/ruby_lib/blob/32f327239055362ef630979d5975d0fac64d94c6/lib/appium_lib/driver.rb#L647) common
|
745
757
|
|
746
758
|
> def current_url
|
747
759
|
|
@@ -749,7 +761,7 @@ Get the current window handle
|
|
749
761
|
|
750
762
|
--
|
751
763
|
|
752
|
-
##### [title](https://github.com/appium/ruby_lib/blob/
|
764
|
+
##### [title](https://github.com/appium/ruby_lib/blob/32f327239055362ef630979d5975d0fac64d94c6/lib/appium_lib/driver.rb#L651) common
|
753
765
|
|
754
766
|
> def title
|
755
767
|
|
@@ -757,7 +769,7 @@ Get the current window handle
|
|
757
769
|
|
758
770
|
--
|
759
771
|
|
760
|
-
##### [switch_to](https://github.com/appium/ruby_lib/blob/
|
772
|
+
##### [switch_to](https://github.com/appium/ruby_lib/blob/32f327239055362ef630979d5975d0fac64d94c6/lib/appium_lib/driver.rb#L657) common
|
761
773
|
|
762
774
|
> def switch_to
|
763
775
|
|
@@ -769,7 +781,7 @@ __Returns:__
|
|
769
781
|
|
770
782
|
--
|
771
783
|
|
772
|
-
##### [find_elements](https://github.com/appium/ruby_lib/blob/
|
784
|
+
##### [find_elements](https://github.com/appium/ruby_lib/blob/32f327239055362ef630979d5975d0fac64d94c6/lib/appium_lib/driver.rb#L684) common
|
773
785
|
|
774
786
|
> def find_elements(*args)
|
775
787
|
|
@@ -789,7 +801,7 @@ __Returns:__
|
|
789
801
|
|
790
802
|
--
|
791
803
|
|
792
|
-
##### [find_element](https://github.com/appium/ruby_lib/blob/
|
804
|
+
##### [find_element](https://github.com/appium/ruby_lib/blob/32f327239055362ef630979d5975d0fac64d94c6/lib/appium_lib/driver.rb#L700) common
|
793
805
|
|
794
806
|
> def find_element(*args)
|
795
807
|
|
@@ -807,7 +819,7 @@ __Returns:__
|
|
807
819
|
|
808
820
|
--
|
809
821
|
|
810
|
-
##### [DEFAULT_MATCH_THRESHOLD](https://github.com/appium/ruby_lib/blob/
|
822
|
+
##### [DEFAULT_MATCH_THRESHOLD](https://github.com/appium/ruby_lib/blob/32f327239055362ef630979d5975d0fac64d94c6/lib/appium_lib/driver.rb#L718) common
|
811
823
|
|
812
824
|
> DEFAULT_MATCH_THRESHOLD = 0.5
|
813
825
|
|
@@ -828,7 +840,7 @@ __Returns:__
|
|
828
840
|
|
829
841
|
--
|
830
842
|
|
831
|
-
##### [find_element_by_image](https://github.com/appium/ruby_lib/blob/
|
843
|
+
##### [find_element_by_image](https://github.com/appium/ruby_lib/blob/32f327239055362ef630979d5975d0fac64d94c6/lib/appium_lib/driver.rb#L719) common
|
832
844
|
|
833
845
|
> def find_element_by_image(png_img_path, match_threshold: DEFAULT_MATCH_THRESHOLD, visualize: false)
|
834
846
|
|
@@ -836,7 +848,7 @@ __Returns:__
|
|
836
848
|
|
837
849
|
--
|
838
850
|
|
839
|
-
##### [find_elements_by_image](https://github.com/appium/ruby_lib/blob/
|
851
|
+
##### [find_elements_by_image](https://github.com/appium/ruby_lib/blob/32f327239055362ef630979d5975d0fac64d94c6/lib/appium_lib/driver.rb#L737) common
|
840
852
|
|
841
853
|
> def find_elements_by_image(png_img_paths, match_threshold: DEFAULT_MATCH_THRESHOLD, visualize: false)
|
842
854
|
|
@@ -857,7 +869,7 @@ __Returns:__
|
|
857
869
|
|
858
870
|
--
|
859
871
|
|
860
|
-
##### [set_location](https://github.com/appium/ruby_lib/blob/
|
872
|
+
##### [set_location](https://github.com/appium/ruby_lib/blob/32f327239055362ef630979d5975d0fac64d94c6/lib/appium_lib/driver.rb#L750) common
|
861
873
|
|
862
874
|
> def set_location(opts = {})
|
863
875
|
|
@@ -873,7 +885,7 @@ __Returns:__
|
|
873
885
|
|
874
886
|
--
|
875
887
|
|
876
|
-
##### [x](https://github.com/appium/ruby_lib/blob/
|
888
|
+
##### [x](https://github.com/appium/ruby_lib/blob/32f327239055362ef630979d5975d0fac64d94c6/lib/appium_lib/driver.rb#L760) common
|
877
889
|
|
878
890
|
> def x
|
879
891
|
|
@@ -886,7 +898,7 @@ __Returns:__
|
|
886
898
|
|
887
899
|
--
|
888
900
|
|
889
|
-
##### [username](https://github.com/appium/ruby_lib/blob/
|
901
|
+
##### [username](https://github.com/appium/ruby_lib/blob/32f327239055362ef630979d5975d0fac64d94c6/lib/appium_lib/sauce_labs.rb#L4) common
|
890
902
|
|
891
903
|
> def username
|
892
904
|
|
@@ -894,7 +906,7 @@ Username for use on Sauce Labs. Set `false` to disable Sauce, even when SAUCE_US
|
|
894
906
|
|
895
907
|
--
|
896
908
|
|
897
|
-
##### [access_key](https://github.com/appium/ruby_lib/blob/
|
909
|
+
##### [access_key](https://github.com/appium/ruby_lib/blob/32f327239055362ef630979d5975d0fac64d94c6/lib/appium_lib/sauce_labs.rb#L6) common
|
898
910
|
|
899
911
|
> def access_key
|
900
912
|
|
@@ -902,7 +914,7 @@ Access Key for use on Sauce Labs. Set `false` to disable Sauce, even when SAUCE_
|
|
902
914
|
|
903
915
|
--
|
904
916
|
|
905
|
-
##### [endpoint](https://github.com/appium/ruby_lib/blob/
|
917
|
+
##### [endpoint](https://github.com/appium/ruby_lib/blob/32f327239055362ef630979d5975d0fac64d94c6/lib/appium_lib/sauce_labs.rb#L8) common
|
906
918
|
|
907
919
|
> def endpoint
|
908
920
|
|
@@ -910,7 +922,7 @@ Override the Sauce Appium endpoint to allow e.g. TestObject tests. Default is 'o
|
|
910
922
|
|
911
923
|
--
|
912
924
|
|
913
|
-
##### [initialize](https://github.com/appium/ruby_lib/blob/
|
925
|
+
##### [initialize](https://github.com/appium/ruby_lib/blob/32f327239055362ef630979d5975d0fac64d94c6/lib/appium_lib/sauce_labs.rb#L33) common
|
914
926
|
|
915
927
|
> def initialize(appium_lib_opts)
|
916
928
|
|
@@ -926,7 +938,7 @@ __Returns:__
|
|
926
938
|
|
927
939
|
--
|
928
940
|
|
929
|
-
##### [sauce_server_url?](https://github.com/appium/ruby_lib/blob/
|
941
|
+
##### [sauce_server_url?](https://github.com/appium/ruby_lib/blob/32f327239055362ef630979d5975d0fac64d94c6/lib/appium_lib/sauce_labs.rb#L53) common
|
930
942
|
|
931
943
|
> def sauce_server_url?
|
932
944
|
|
@@ -938,7 +950,7 @@ __Returns:__
|
|
938
950
|
|
939
951
|
--
|
940
952
|
|
941
|
-
##### [server_url](https://github.com/appium/ruby_lib/blob/
|
953
|
+
##### [server_url](https://github.com/appium/ruby_lib/blob/32f327239055362ef630979d5975d0fac64d94c6/lib/appium_lib/sauce_labs.rb#L66) common
|
942
954
|
|
943
955
|
> def server_url
|
944
956
|
|
@@ -950,7 +962,7 @@ __Returns:__
|
|
950
962
|
|
951
963
|
--
|
952
964
|
|
953
|
-
##### [get_log](https://github.com/appium/ruby_lib/blob/
|
965
|
+
##### [get_log](https://github.com/appium/ruby_lib/blob/32f327239055362ef630979d5975d0fac64d94c6/lib/appium_lib/common/log.rb#L11) common
|
954
966
|
|
955
967
|
> def get_log(type)
|
956
968
|
|
@@ -966,7 +978,7 @@ __Returns:__
|
|
966
978
|
|
967
979
|
--
|
968
980
|
|
969
|
-
##### [get_available_log_types](https://github.com/appium/ruby_lib/blob/
|
981
|
+
##### [get_available_log_types](https://github.com/appium/ruby_lib/blob/32f327239055362ef630979d5975d0fac64d94c6/lib/appium_lib/common/log.rb#L23) common
|
970
982
|
|
971
983
|
> def get_available_log_types
|
972
984
|
|
@@ -978,7 +990,7 @@ __Returns:__
|
|
978
990
|
|
979
991
|
--
|
980
992
|
|
981
|
-
##### [wait_true](https://github.com/appium/ruby_lib/blob/
|
993
|
+
##### [wait_true](https://github.com/appium/ruby_lib/blob/32f327239055362ef630979d5975d0fac64d94c6/lib/appium_lib/common/wait.rb#L30) common
|
982
994
|
|
983
995
|
> def wait_true(opts = {})
|
984
996
|
|
@@ -998,7 +1010,7 @@ __Parameters:__
|
|
998
1010
|
|
999
1011
|
--
|
1000
1012
|
|
1001
|
-
##### [wait](https://github.com/appium/ruby_lib/blob/
|
1013
|
+
##### [wait](https://github.com/appium/ruby_lib/blob/32f327239055362ef630979d5975d0fac64d94c6/lib/appium_lib/common/wait.rb#L59) common
|
1002
1014
|
|
1003
1015
|
> def wait(opts = {})
|
1004
1016
|
|
@@ -1016,7 +1028,7 @@ __Parameters:__
|
|
1016
1028
|
|
1017
1029
|
--
|
1018
1030
|
|
1019
|
-
##### [add_touch_actions](https://github.com/appium/ruby_lib/blob/
|
1031
|
+
##### [add_touch_actions](https://github.com/appium/ruby_lib/blob/32f327239055362ef630979d5975d0fac64d94c6/lib/appium_lib/common/device.rb#L12) common
|
1020
1032
|
|
1021
1033
|
> def add_touch_actions
|
1022
1034
|
|
@@ -1024,7 +1036,7 @@ __Parameters:__
|
|
1024
1036
|
|
1025
1037
|
--
|
1026
1038
|
|
1027
|
-
##### [delegate_from_appium_driver](https://github.com/appium/ruby_lib/blob/
|
1039
|
+
##### [delegate_from_appium_driver](https://github.com/appium/ruby_lib/blob/32f327239055362ef630979d5975d0fac64d94c6/lib/appium_lib/common/device.rb#L24) common
|
1028
1040
|
|
1029
1041
|
> def delegate_from_appium_driver(method, delegation_target)
|
1030
1042
|
|
@@ -1032,7 +1044,7 @@ __Parameters:__
|
|
1032
1044
|
|
1033
1045
|
--
|
1034
1046
|
|
1035
|
-
##### [ignore](https://github.com/appium/ruby_lib/blob/
|
1047
|
+
##### [ignore](https://github.com/appium/ruby_lib/blob/32f327239055362ef630979d5975d0fac64d94c6/lib/appium_lib/common/helper.rb#L16) common
|
1036
1048
|
|
1037
1049
|
> def ignore
|
1038
1050
|
|
@@ -1040,7 +1052,7 @@ Return yield and ignore any exceptions.
|
|
1040
1052
|
|
1041
1053
|
--
|
1042
1054
|
|
1043
|
-
##### [back](https://github.com/appium/ruby_lib/blob/
|
1055
|
+
##### [back](https://github.com/appium/ruby_lib/blob/32f327239055362ef630979d5975d0fac64d94c6/lib/appium_lib/common/helper.rb#L23) common
|
1044
1056
|
|
1045
1057
|
> def back
|
1046
1058
|
|
@@ -1052,7 +1064,7 @@ __Returns:__
|
|
1052
1064
|
|
1053
1065
|
--
|
1054
1066
|
|
1055
|
-
##### [session_id](https://github.com/appium/ruby_lib/blob/
|
1067
|
+
##### [session_id](https://github.com/appium/ruby_lib/blob/32f327239055362ef630979d5975d0fac64d94c6/lib/appium_lib/common/helper.rb#L34) common
|
1056
1068
|
|
1057
1069
|
> def session_id
|
1058
1070
|
|
@@ -1064,7 +1076,7 @@ __Returns:__
|
|
1064
1076
|
|
1065
1077
|
--
|
1066
1078
|
|
1067
|
-
##### [xpath](https://github.com/appium/ruby_lib/blob/
|
1079
|
+
##### [xpath](https://github.com/appium/ruby_lib/blob/32f327239055362ef630979d5975d0fac64d94c6/lib/appium_lib/common/helper.rb#L42) common
|
1068
1080
|
|
1069
1081
|
> def xpath(xpath_str)
|
1070
1082
|
|
@@ -1080,7 +1092,7 @@ __Returns:__
|
|
1080
1092
|
|
1081
1093
|
--
|
1082
1094
|
|
1083
|
-
##### [xpaths](https://github.com/appium/ruby_lib/blob/
|
1095
|
+
##### [xpaths](https://github.com/appium/ruby_lib/blob/32f327239055362ef630979d5975d0fac64d94c6/lib/appium_lib/common/helper.rb#L50) common
|
1084
1096
|
|
1085
1097
|
> def xpaths(xpath_str)
|
1086
1098
|
|
@@ -1096,7 +1108,7 @@ __Returns:__
|
|
1096
1108
|
|
1097
1109
|
--
|
1098
1110
|
|
1099
|
-
##### [result](https://github.com/appium/ruby_lib/blob/
|
1111
|
+
##### [result](https://github.com/appium/ruby_lib/blob/32f327239055362ef630979d5975d0fac64d94c6/lib/appium_lib/common/helper.rb#L60) common
|
1100
1112
|
|
1101
1113
|
> def result
|
1102
1114
|
|
@@ -1104,7 +1116,7 @@ Returns the value of attribute result
|
|
1104
1116
|
|
1105
1117
|
--
|
1106
1118
|
|
1107
|
-
##### [initialize](https://github.com/appium/ruby_lib/blob/
|
1119
|
+
##### [initialize](https://github.com/appium/ruby_lib/blob/32f327239055362ef630979d5975d0fac64d94c6/lib/appium_lib/common/helper.rb#L62) common
|
1108
1120
|
|
1109
1121
|
> def initialize(platform)
|
1110
1122
|
|
@@ -1116,7 +1128,7 @@ __Returns:__
|
|
1116
1128
|
|
1117
1129
|
--
|
1118
1130
|
|
1119
|
-
##### [reset](https://github.com/appium/ruby_lib/blob/
|
1131
|
+
##### [reset](https://github.com/appium/ruby_lib/blob/32f327239055362ef630979d5975d0fac64d94c6/lib/appium_lib/common/helper.rb#L67) common
|
1120
1132
|
|
1121
1133
|
> def reset
|
1122
1134
|
|
@@ -1124,7 +1136,7 @@ __Returns:__
|
|
1124
1136
|
|
1125
1137
|
--
|
1126
1138
|
|
1127
|
-
##### [start_element](https://github.com/appium/ruby_lib/blob/
|
1139
|
+
##### [start_element](https://github.com/appium/ruby_lib/blob/32f327239055362ef630979d5975d0fac64d94c6/lib/appium_lib/common/helper.rb#L72) common
|
1128
1140
|
|
1129
1141
|
> def start_element(name, attrs = [])
|
1130
1142
|
|
@@ -1132,7 +1144,7 @@ http://nokogiri.org/Nokogiri/XML/SAX/Document.html
|
|
1132
1144
|
|
1133
1145
|
--
|
1134
1146
|
|
1135
|
-
##### [formatted_result](https://github.com/appium/ruby_lib/blob/
|
1147
|
+
##### [formatted_result](https://github.com/appium/ruby_lib/blob/32f327239055362ef630979d5975d0fac64d94c6/lib/appium_lib/common/helper.rb#L83) common
|
1136
1148
|
|
1137
1149
|
> def formatted_result
|
1138
1150
|
|
@@ -1140,7 +1152,7 @@ http://nokogiri.org/Nokogiri/XML/SAX/Document.html
|
|
1140
1152
|
|
1141
1153
|
--
|
1142
1154
|
|
1143
|
-
##### [get_page_class](https://github.com/appium/ruby_lib/blob/
|
1155
|
+
##### [get_page_class](https://github.com/appium/ruby_lib/blob/32f327239055362ef630979d5975d0fac64d94c6/lib/appium_lib/common/helper.rb#L101) common
|
1144
1156
|
|
1145
1157
|
> def get_page_class
|
1146
1158
|
|
@@ -1152,7 +1164,7 @@ __Returns:__
|
|
1152
1164
|
|
1153
1165
|
--
|
1154
1166
|
|
1155
|
-
##### [page_class](https://github.com/appium/ruby_lib/blob/
|
1167
|
+
##### [page_class](https://github.com/appium/ruby_lib/blob/32f327239055362ef630979d5975d0fac64d94c6/lib/appium_lib/common/helper.rb#L126) common
|
1156
1168
|
|
1157
1169
|
> def page_class
|
1158
1170
|
|
@@ -1165,7 +1177,7 @@ __Returns:__
|
|
1165
1177
|
|
1166
1178
|
--
|
1167
1179
|
|
1168
|
-
##### [source](https://github.com/appium/ruby_lib/blob/
|
1180
|
+
##### [source](https://github.com/appium/ruby_lib/blob/32f327239055362ef630979d5975d0fac64d94c6/lib/appium_lib/common/helper.rb#L133) common
|
1169
1181
|
|
1170
1182
|
> def source
|
1171
1183
|
|
@@ -1177,7 +1189,7 @@ __Returns:__
|
|
1177
1189
|
|
1178
1190
|
--
|
1179
1191
|
|
1180
|
-
##### [get_source](https://github.com/appium/ruby_lib/blob/
|
1192
|
+
##### [get_source](https://github.com/appium/ruby_lib/blob/32f327239055362ef630979d5975d0fac64d94c6/lib/appium_lib/common/helper.rb#L140) common
|
1181
1193
|
|
1182
1194
|
> def get_source
|
1183
1195
|
|
@@ -1190,7 +1202,7 @@ __Returns:__
|
|
1190
1202
|
|
1191
1203
|
--
|
1192
1204
|
|
1193
|
-
##### [px_to_window_rel](https://github.com/appium/ruby_lib/blob/
|
1205
|
+
##### [px_to_window_rel](https://github.com/appium/ruby_lib/blob/32f327239055362ef630979d5975d0fac64d94c6/lib/appium_lib/common/helper.rb#L150) common
|
1194
1206
|
|
1195
1207
|
> def px_to_window_rel(opts = {}, driver = $driver)
|
1196
1208
|
|
@@ -1198,7 +1210,7 @@ Converts pixel values to window relative values
|
|
1198
1210
|
|
1199
1211
|
--
|
1200
1212
|
|
1201
|
-
##### [xml_keys](https://github.com/appium/ruby_lib/blob/
|
1213
|
+
##### [xml_keys](https://github.com/appium/ruby_lib/blob/32f327239055362ef630979d5975d0fac64d94c6/lib/appium_lib/common/helper.rb#L169) common
|
1202
1214
|
|
1203
1215
|
> def xml_keys(target)
|
1204
1216
|
|
@@ -1214,7 +1226,7 @@ __Returns:__
|
|
1214
1226
|
|
1215
1227
|
--
|
1216
1228
|
|
1217
|
-
##### [xml_values](https://github.com/appium/ruby_lib/blob/
|
1229
|
+
##### [xml_values](https://github.com/appium/ruby_lib/blob/32f327239055362ef630979d5975d0fac64d94c6/lib/appium_lib/common/helper.rb#L177) common
|
1218
1230
|
|
1219
1231
|
> def xml_values(target)
|
1220
1232
|
|
@@ -1230,7 +1242,7 @@ __Returns:__
|
|
1230
1242
|
|
1231
1243
|
--
|
1232
1244
|
|
1233
|
-
##### [resolve_id](https://github.com/appium/ruby_lib/blob/
|
1245
|
+
##### [resolve_id](https://github.com/appium/ruby_lib/blob/32f327239055362ef630979d5975d0fac64d94c6/lib/appium_lib/common/helper.rb#L185) common
|
1234
1246
|
|
1235
1247
|
> def resolve_id(id)
|
1236
1248
|
|
@@ -1246,7 +1258,7 @@ __Returns:__
|
|
1246
1258
|
|
1247
1259
|
--
|
1248
1260
|
|
1249
|
-
##### [filter](https://github.com/appium/ruby_lib/blob/
|
1261
|
+
##### [filter](https://github.com/appium/ruby_lib/blob/32f327239055362ef630979d5975d0fac64d94c6/lib/appium_lib/common/helper.rb#L192) common
|
1250
1262
|
|
1251
1263
|
> def filter
|
1252
1264
|
|
@@ -1254,7 +1266,7 @@ Returns the value of attribute filter
|
|
1254
1266
|
|
1255
1267
|
--
|
1256
1268
|
|
1257
|
-
##### [filter=](https://github.com/appium/ruby_lib/blob/
|
1269
|
+
##### [filter=](https://github.com/appium/ruby_lib/blob/32f327239055362ef630979d5975d0fac64d94c6/lib/appium_lib/common/helper.rb#L195) common
|
1258
1270
|
|
1259
1271
|
> def filter=(value)
|
1260
1272
|
|
@@ -1262,7 +1274,7 @@ convert to string to support symbols
|
|
1262
1274
|
|
1263
1275
|
--
|
1264
1276
|
|
1265
|
-
##### [initialize](https://github.com/appium/ruby_lib/blob/
|
1277
|
+
##### [initialize](https://github.com/appium/ruby_lib/blob/32f327239055362ef630979d5975d0fac64d94c6/lib/appium_lib/common/helper.rb#L202) common
|
1266
1278
|
|
1267
1279
|
> def initialize
|
1268
1280
|
|
@@ -1274,7 +1286,7 @@ __Returns:__
|
|
1274
1286
|
|
1275
1287
|
--
|
1276
1288
|
|
1277
|
-
##### [reset](https://github.com/appium/ruby_lib/blob/
|
1289
|
+
##### [reset](https://github.com/appium/ruby_lib/blob/32f327239055362ef630979d5975d0fac64d94c6/lib/appium_lib/common/helper.rb#L207) common
|
1278
1290
|
|
1279
1291
|
> def reset
|
1280
1292
|
|
@@ -1282,7 +1294,7 @@ __Returns:__
|
|
1282
1294
|
|
1283
1295
|
--
|
1284
1296
|
|
1285
|
-
##### [result](https://github.com/appium/ruby_lib/blob/
|
1297
|
+
##### [result](https://github.com/appium/ruby_lib/blob/32f327239055362ef630979d5975d0fac64d94c6/lib/appium_lib/common/helper.rb#L213) common
|
1286
1298
|
|
1287
1299
|
> def result
|
1288
1300
|
|
@@ -1290,7 +1302,7 @@ __Returns:__
|
|
1290
1302
|
|
1291
1303
|
--
|
1292
1304
|
|
1293
|
-
##### [start_element](https://github.com/appium/ruby_lib/blob/
|
1305
|
+
##### [start_element](https://github.com/appium/ruby_lib/blob/32f327239055362ef630979d5975d0fac64d94c6/lib/appium_lib/common/helper.rb#L226) common
|
1294
1306
|
|
1295
1307
|
> def start_element(name, attrs = [])
|
1296
1308
|
|
@@ -1298,7 +1310,7 @@ __Returns:__
|
|
1298
1310
|
|
1299
1311
|
--
|
1300
1312
|
|
1301
|
-
##### [end_element](https://github.com/appium/ruby_lib/blob/
|
1313
|
+
##### [end_element](https://github.com/appium/ruby_lib/blob/32f327239055362ef630979d5975d0fac64d94c6/lib/appium_lib/common/helper.rb#L236) common
|
1302
1314
|
|
1303
1315
|
> def end_element(name)
|
1304
1316
|
|
@@ -1306,7 +1318,7 @@ __Returns:__
|
|
1306
1318
|
|
1307
1319
|
--
|
1308
1320
|
|
1309
|
-
##### [characters](https://github.com/appium/ruby_lib/blob/
|
1321
|
+
##### [characters](https://github.com/appium/ruby_lib/blob/32f327239055362ef630979d5975d0fac64d94c6/lib/appium_lib/common/helper.rb#L243) common
|
1310
1322
|
|
1311
1323
|
> def characters(chars)
|
1312
1324
|
|
@@ -1314,7 +1326,7 @@ __Returns:__
|
|
1314
1326
|
|
1315
1327
|
--
|
1316
1328
|
|
1317
|
-
##### [DEFAULT_HEADERS](https://github.com/appium/ruby_lib/blob/
|
1329
|
+
##### [DEFAULT_HEADERS](https://github.com/appium/ruby_lib/blob/32f327239055362ef630979d5975d0fac64d94c6/lib/appium_lib/common/http_client.rb#L8) common
|
1318
1330
|
|
1319
1331
|
> DEFAULT_HEADERS = { 'Accept' => CONTENT_TYPE, 'User-Agent' => "appium/ruby_lib/#{::Appium::VERSION}" }.freeze
|
1320
1332
|
|
@@ -1322,7 +1334,7 @@ Default HTTP client inherit Appium::Core::Base::Http::Default, but has different
|
|
1322
1334
|
|
1323
1335
|
--
|
1324
1336
|
|
1325
|
-
##### [pinch](https://github.com/appium/ruby_lib/blob/
|
1337
|
+
##### [pinch](https://github.com/appium/ruby_lib/blob/32f327239055362ef630979d5975d0fac64d94c6/lib/appium_lib/common/multi_touch.rb#L51) common
|
1326
1338
|
|
1327
1339
|
> def pinch(percentage = 25, auto_perform = true, driver = $driver)
|
1328
1340
|
|
@@ -1342,7 +1354,7 @@ __Parameters:__
|
|
1342
1354
|
|
1343
1355
|
--
|
1344
1356
|
|
1345
|
-
##### [zoom](https://github.com/appium/ruby_lib/blob/
|
1357
|
+
##### [zoom](https://github.com/appium/ruby_lib/blob/32f327239055362ef630979d5975d0fac64d94c6/lib/appium_lib/common/multi_touch.rb#L94) common
|
1346
1358
|
|
1347
1359
|
> def zoom(percentage = 200, auto_perform = true, driver = $driver)
|
1348
1360
|
|
@@ -1362,7 +1374,7 @@ __Parameters:__
|
|
1362
1374
|
|
1363
1375
|
--
|
1364
1376
|
|
1365
|
-
##### [initialize](https://github.com/appium/ruby_lib/blob/
|
1377
|
+
##### [initialize](https://github.com/appium/ruby_lib/blob/32f327239055362ef630979d5975d0fac64d94c6/lib/appium_lib/common/multi_touch.rb#L180) common
|
1366
1378
|
|
1367
1379
|
> def initialize(driver = $driver)
|
1368
1380
|
|
@@ -1374,7 +1386,7 @@ __Returns:__
|
|
1374
1386
|
|
1375
1387
|
--
|
1376
1388
|
|
1377
|
-
##### [COMPLEX_ACTIONS](https://github.com/appium/ruby_lib/blob/
|
1389
|
+
##### [COMPLEX_ACTIONS](https://github.com/appium/ruby_lib/blob/32f327239055362ef630979d5975d0fac64d94c6/lib/appium_lib/common/touch_actions.rb#L33) common
|
1378
1390
|
|
1379
1391
|
> COMPLEX_ACTIONS = ::Appium::Core::TouchAction::COMPLEX_ACTIONS
|
1380
1392
|
|
@@ -1382,7 +1394,7 @@ __Returns:__
|
|
1382
1394
|
|
1383
1395
|
--
|
1384
1396
|
|
1385
|
-
##### [initialize](https://github.com/appium/ruby_lib/blob/
|
1397
|
+
##### [initialize](https://github.com/appium/ruby_lib/blob/32f327239055362ef630979d5975d0fac64d94c6/lib/appium_lib/common/touch_actions.rb#L48) common
|
1386
1398
|
|
1387
1399
|
> def initialize(driver = $driver)
|
1388
1400
|
|
@@ -1394,7 +1406,7 @@ __Returns:__
|
|
1394
1406
|
|
1395
1407
|
--
|
1396
1408
|
|
1397
|
-
##### [swipe](https://github.com/appium/ruby_lib/blob/
|
1409
|
+
##### [swipe](https://github.com/appium/ruby_lib/blob/32f327239055362ef630979d5975d0fac64d94c6/lib/appium_lib/common/touch_actions.rb#L52) common
|
1398
1410
|
|
1399
1411
|
> def swipe(opts)
|
1400
1412
|
|
@@ -1402,7 +1414,7 @@ __Returns:__
|
|
1402
1414
|
|
1403
1415
|
--
|
1404
1416
|
|
1405
|
-
##### [initialize](https://github.com/appium/ruby_lib/blob/
|
1417
|
+
##### [initialize](https://github.com/appium/ruby_lib/blob/32f327239055362ef630979d5975d0fac64d94c6/lib/appium_lib/common/command/ws_logcat.rb#L5) common
|
1406
1418
|
|
1407
1419
|
> def initialize(url:, output_file: 'logcat.log')
|
1408
1420
|
|
@@ -1414,7 +1426,7 @@ __Returns:__
|
|
1414
1426
|
|
1415
1427
|
--
|
1416
1428
|
|
1417
|
-
##### [handle_message_data](https://github.com/appium/ruby_lib/blob/
|
1429
|
+
##### [handle_message_data](https://github.com/appium/ruby_lib/blob/32f327239055362ef630979d5975d0fac64d94c6/lib/appium_lib/common/command/ws_logcat.rb#L10) common
|
1418
1430
|
|
1419
1431
|
> def handle_message_data(data)
|
1420
1432
|
|
@@ -1422,7 +1434,7 @@ __Returns:__
|
|
1422
1434
|
|
1423
1435
|
--
|
1424
1436
|
|
1425
|
-
##### [for](https://github.com/appium/ruby_lib/blob/
|
1437
|
+
##### [for](https://github.com/appium/ruby_lib/blob/32f327239055362ef630979d5975d0fac64d94c6/lib/appium_lib/android/android.rb#L19) android
|
1426
1438
|
|
1427
1439
|
> def self.for(target)
|
1428
1440
|
|
@@ -1430,7 +1442,7 @@ __Returns:__
|
|
1430
1442
|
|
1431
1443
|
--
|
1432
1444
|
|
1433
|
-
##### [TextView](https://github.com/appium/ruby_lib/blob/
|
1445
|
+
##### [TextView](https://github.com/appium/ruby_lib/blob/32f327239055362ef630979d5975d0fac64d94c6/lib/appium_lib/android/element/text.rb#L4) android
|
1434
1446
|
|
1435
1447
|
> TextView = 'android.widget.TextView'.freeze
|
1436
1448
|
|
@@ -1438,7 +1450,7 @@ __Returns:__
|
|
1438
1450
|
|
1439
1451
|
--
|
1440
1452
|
|
1441
|
-
##### [text](https://github.com/appium/ruby_lib/blob/
|
1453
|
+
##### [text](https://github.com/appium/ruby_lib/blob/32f327239055362ef630979d5975d0fac64d94c6/lib/appium_lib/android/element/text.rb#L10) android
|
1442
1454
|
|
1443
1455
|
> def text(value)
|
1444
1456
|
|
@@ -1455,7 +1467,7 @@ __Returns:__
|
|
1455
1467
|
|
1456
1468
|
--
|
1457
1469
|
|
1458
|
-
##### [texts](https://github.com/appium/ruby_lib/blob/
|
1470
|
+
##### [texts](https://github.com/appium/ruby_lib/blob/32f327239055362ef630979d5975d0fac64d94c6/lib/appium_lib/android/element/text.rb#L20) android
|
1459
1471
|
|
1460
1472
|
> def texts(value = false)
|
1461
1473
|
|
@@ -1472,7 +1484,7 @@ __Returns:__
|
|
1472
1484
|
|
1473
1485
|
--
|
1474
1486
|
|
1475
|
-
##### [first_text](https://github.com/appium/ruby_lib/blob/
|
1487
|
+
##### [first_text](https://github.com/appium/ruby_lib/blob/32f327239055362ef630979d5975d0fac64d94c6/lib/appium_lib/android/element/text.rb#L28) android
|
1476
1488
|
|
1477
1489
|
> def first_text
|
1478
1490
|
|
@@ -1484,7 +1496,7 @@ __Returns:__
|
|
1484
1496
|
|
1485
1497
|
--
|
1486
1498
|
|
1487
|
-
##### [last_text](https://github.com/appium/ruby_lib/blob/
|
1499
|
+
##### [last_text](https://github.com/appium/ruby_lib/blob/32f327239055362ef630979d5975d0fac64d94c6/lib/appium_lib/android/element/text.rb#L34) android
|
1488
1500
|
|
1489
1501
|
> def last_text
|
1490
1502
|
|
@@ -1496,7 +1508,7 @@ __Returns:__
|
|
1496
1508
|
|
1497
1509
|
--
|
1498
1510
|
|
1499
|
-
##### [text_exact](https://github.com/appium/ruby_lib/blob/
|
1511
|
+
##### [text_exact](https://github.com/appium/ruby_lib/blob/32f327239055362ef630979d5975d0fac64d94c6/lib/appium_lib/android/element/text.rb#L41) android
|
1500
1512
|
|
1501
1513
|
> def text_exact(value)
|
1502
1514
|
|
@@ -1512,7 +1524,7 @@ __Returns:__
|
|
1512
1524
|
|
1513
1525
|
--
|
1514
1526
|
|
1515
|
-
##### [texts_exact](https://github.com/appium/ruby_lib/blob/
|
1527
|
+
##### [texts_exact](https://github.com/appium/ruby_lib/blob/32f327239055362ef630979d5975d0fac64d94c6/lib/appium_lib/android/element/text.rb#L48) android
|
1516
1528
|
|
1517
1529
|
> def texts_exact(value)
|
1518
1530
|
|
@@ -1528,7 +1540,7 @@ __Returns:__
|
|
1528
1540
|
|
1529
1541
|
--
|
1530
1542
|
|
1531
|
-
##### [result](https://github.com/appium/ruby_lib/blob/
|
1543
|
+
##### [result](https://github.com/appium/ruby_lib/blob/32f327239055362ef630979d5975d0fac64d94c6/lib/appium_lib/android/common/helper.rb#L6) android
|
1532
1544
|
|
1533
1545
|
> def result
|
1534
1546
|
|
@@ -1536,7 +1548,7 @@ Returns the value of attribute result
|
|
1536
1548
|
|
1537
1549
|
--
|
1538
1550
|
|
1539
|
-
##### [keys](https://github.com/appium/ruby_lib/blob/
|
1551
|
+
##### [keys](https://github.com/appium/ruby_lib/blob/32f327239055362ef630979d5975d0fac64d94c6/lib/appium_lib/android/common/helper.rb#L6) android
|
1540
1552
|
|
1541
1553
|
> def keys
|
1542
1554
|
|
@@ -1544,7 +1556,7 @@ Returns the value of attribute keys
|
|
1544
1556
|
|
1545
1557
|
--
|
1546
1558
|
|
1547
|
-
##### [filter](https://github.com/appium/ruby_lib/blob/
|
1559
|
+
##### [filter](https://github.com/appium/ruby_lib/blob/32f327239055362ef630979d5975d0fac64d94c6/lib/appium_lib/android/common/helper.rb#L6) android
|
1548
1560
|
|
1549
1561
|
> def filter
|
1550
1562
|
|
@@ -1552,7 +1564,7 @@ Returns the value of attribute filter
|
|
1552
1564
|
|
1553
1565
|
--
|
1554
1566
|
|
1555
|
-
##### [filter=](https://github.com/appium/ruby_lib/blob/
|
1567
|
+
##### [filter=](https://github.com/appium/ruby_lib/blob/32f327239055362ef630979d5975d0fac64d94c6/lib/appium_lib/android/common/helper.rb#L9) android
|
1556
1568
|
|
1557
1569
|
> def filter=(value)
|
1558
1570
|
|
@@ -1560,7 +1572,7 @@ convert to string to support symbols
|
|
1560
1572
|
|
1561
1573
|
--
|
1562
1574
|
|
1563
|
-
##### [initialize](https://github.com/appium/ruby_lib/blob/
|
1575
|
+
##### [initialize](https://github.com/appium/ruby_lib/blob/32f327239055362ef630979d5975d0fac64d94c6/lib/appium_lib/android/common/helper.rb#L16) android
|
1564
1576
|
|
1565
1577
|
> def initialize
|
1566
1578
|
|
@@ -1572,7 +1584,7 @@ __Returns:__
|
|
1572
1584
|
|
1573
1585
|
--
|
1574
1586
|
|
1575
|
-
##### [reset](https://github.com/appium/ruby_lib/blob/
|
1587
|
+
##### [reset](https://github.com/appium/ruby_lib/blob/32f327239055362ef630979d5975d0fac64d94c6/lib/appium_lib/android/common/helper.rb#L21) android
|
1576
1588
|
|
1577
1589
|
> def reset
|
1578
1590
|
|
@@ -1580,7 +1592,7 @@ __Returns:__
|
|
1580
1592
|
|
1581
1593
|
--
|
1582
1594
|
|
1583
|
-
##### [start_element](https://github.com/appium/ruby_lib/blob/
|
1595
|
+
##### [start_element](https://github.com/appium/ruby_lib/blob/32f327239055362ef630979d5975d0fac64d94c6/lib/appium_lib/android/common/helper.rb#L27) android
|
1584
1596
|
|
1585
1597
|
> def start_element(name, attrs = [], driver = $driver)
|
1586
1598
|
|
@@ -1588,7 +1600,7 @@ http://nokogiri.org/Nokogiri/XML/SAX/Document.html
|
|
1588
1600
|
|
1589
1601
|
--
|
1590
1602
|
|
1591
|
-
##### [get_android_inspect](https://github.com/appium/ruby_lib/blob/
|
1603
|
+
##### [get_android_inspect](https://github.com/appium/ruby_lib/blob/32f327239055362ef630979d5975d0fac64d94c6/lib/appium_lib/android/common/helper.rb#L81) android
|
1592
1604
|
|
1593
1605
|
> def get_android_inspect(class_name = false)
|
1594
1606
|
|
@@ -1607,7 +1619,7 @@ __Returns:__
|
|
1607
1619
|
|
1608
1620
|
--
|
1609
1621
|
|
1610
|
-
##### [page](https://github.com/appium/ruby_lib/blob/
|
1622
|
+
##### [page](https://github.com/appium/ruby_lib/blob/32f327239055362ef630979d5975d0fac64d94c6/lib/appium_lib/android/common/helper.rb#L107) android
|
1611
1623
|
|
1612
1624
|
> def page(opts = {})
|
1613
1625
|
|
@@ -1626,7 +1638,7 @@ __Returns:__
|
|
1626
1638
|
|
1627
1639
|
--
|
1628
1640
|
|
1629
|
-
##### [id](https://github.com/appium/ruby_lib/blob/
|
1641
|
+
##### [id](https://github.com/appium/ruby_lib/blob/32f327239055362ef630979d5975d0fac64d94c6/lib/appium_lib/android/common/helper.rb#L116) android
|
1630
1642
|
|
1631
1643
|
> def id(id)
|
1632
1644
|
|
@@ -1642,7 +1654,7 @@ __Returns:__
|
|
1642
1654
|
|
1643
1655
|
--
|
1644
1656
|
|
1645
|
-
##### [ids](https://github.com/appium/ruby_lib/blob/
|
1657
|
+
##### [ids](https://github.com/appium/ruby_lib/blob/32f327239055362ef630979d5975d0fac64d94c6/lib/appium_lib/android/common/helper.rb#L124) android
|
1646
1658
|
|
1647
1659
|
> def ids(id)
|
1648
1660
|
|
@@ -1658,7 +1670,7 @@ __Returns:__
|
|
1658
1670
|
|
1659
1671
|
--
|
1660
1672
|
|
1661
|
-
##### [ele_index](https://github.com/appium/ruby_lib/blob/
|
1673
|
+
##### [ele_index](https://github.com/appium/ruby_lib/blob/32f327239055362ef630979d5975d0fac64d94c6/lib/appium_lib/android/common/helper.rb#L133) android
|
1662
1674
|
|
1663
1675
|
> def ele_index(class_name, index)
|
1664
1676
|
|
@@ -1676,7 +1688,7 @@ __Returns:__
|
|
1676
1688
|
|
1677
1689
|
--
|
1678
1690
|
|
1679
|
-
##### [first_ele](https://github.com/appium/ruby_lib/blob/
|
1691
|
+
##### [first_ele](https://github.com/appium/ruby_lib/blob/32f327239055362ef630979d5975d0fac64d94c6/lib/appium_lib/android/common/helper.rb#L152) android
|
1680
1692
|
|
1681
1693
|
> def first_ele(class_name)
|
1682
1694
|
|
@@ -1692,7 +1704,7 @@ __Returns:__
|
|
1692
1704
|
|
1693
1705
|
--
|
1694
1706
|
|
1695
|
-
##### [last_ele](https://github.com/appium/ruby_lib/blob/
|
1707
|
+
##### [last_ele](https://github.com/appium/ruby_lib/blob/32f327239055362ef630979d5975d0fac64d94c6/lib/appium_lib/android/common/helper.rb#L159) android
|
1696
1708
|
|
1697
1709
|
> def last_ele(class_name)
|
1698
1710
|
|
@@ -1708,7 +1720,7 @@ __Returns:__
|
|
1708
1720
|
|
1709
1721
|
--
|
1710
1722
|
|
1711
|
-
##### [tag](https://github.com/appium/ruby_lib/blob/
|
1723
|
+
##### [tag](https://github.com/appium/ruby_lib/blob/32f327239055362ef630979d5975d0fac64d94c6/lib/appium_lib/android/common/helper.rb#L167) android
|
1712
1724
|
|
1713
1725
|
> def tag(class_name)
|
1714
1726
|
|
@@ -1724,7 +1736,7 @@ __Returns:__
|
|
1724
1736
|
|
1725
1737
|
--
|
1726
1738
|
|
1727
|
-
##### [tags](https://github.com/appium/ruby_lib/blob/
|
1739
|
+
##### [tags](https://github.com/appium/ruby_lib/blob/32f327239055362ef630979d5975d0fac64d94c6/lib/appium_lib/android/common/helper.rb#L175) android
|
1728
1740
|
|
1729
1741
|
> def tags(class_name)
|
1730
1742
|
|
@@ -1740,7 +1752,7 @@ __Returns:__
|
|
1740
1752
|
|
1741
1753
|
--
|
1742
1754
|
|
1743
|
-
##### [string_visible_contains_xpath](https://github.com/appium/ruby_lib/blob/
|
1755
|
+
##### [string_visible_contains_xpath](https://github.com/appium/ruby_lib/blob/32f327239055362ef630979d5975d0fac64d94c6/lib/appium_lib/android/common/helper.rb#L218) android
|
1744
1756
|
|
1745
1757
|
> def string_visible_contains_xpath(class_name, value)
|
1746
1758
|
|
@@ -1761,7 +1773,7 @@ __Returns:__
|
|
1761
1773
|
|
1762
1774
|
--
|
1763
1775
|
|
1764
|
-
##### [string_visible_contains](https://github.com/appium/ruby_lib/blob/
|
1776
|
+
##### [string_visible_contains](https://github.com/appium/ruby_lib/blob/32f327239055362ef630979d5975d0fac64d94c6/lib/appium_lib/android/common/helper.rb#L238) android
|
1765
1777
|
|
1766
1778
|
> def string_visible_contains(class_name, value)
|
1767
1779
|
|
@@ -1782,7 +1794,7 @@ __Returns:__
|
|
1782
1794
|
|
1783
1795
|
--
|
1784
1796
|
|
1785
|
-
##### [complex_find_contains](https://github.com/appium/ruby_lib/blob/
|
1797
|
+
##### [complex_find_contains](https://github.com/appium/ruby_lib/blob/32f327239055362ef630979d5975d0fac64d94c6/lib/appium_lib/android/common/helper.rb#L256) android
|
1786
1798
|
|
1787
1799
|
> def complex_find_contains(class_name, value)
|
1788
1800
|
|
@@ -1800,7 +1812,7 @@ __Returns:__
|
|
1800
1812
|
|
1801
1813
|
--
|
1802
1814
|
|
1803
|
-
##### [complex_finds_contains](https://github.com/appium/ruby_lib/blob/
|
1815
|
+
##### [complex_finds_contains](https://github.com/appium/ruby_lib/blob/32f327239055362ef630979d5975d0fac64d94c6/lib/appium_lib/android/common/helper.rb#L264) android
|
1804
1816
|
|
1805
1817
|
> def complex_finds_contains(class_name, value)
|
1806
1818
|
|
@@ -1818,7 +1830,7 @@ __Returns:__
|
|
1818
1830
|
|
1819
1831
|
--
|
1820
1832
|
|
1821
|
-
##### [complex_find_exact](https://github.com/appium/ruby_lib/blob/
|
1833
|
+
##### [complex_find_exact](https://github.com/appium/ruby_lib/blob/32f327239055362ef630979d5975d0fac64d94c6/lib/appium_lib/android/common/helper.rb#L306) android
|
1822
1834
|
|
1823
1835
|
> def complex_find_exact(class_name, value)
|
1824
1836
|
|
@@ -1836,7 +1848,7 @@ __Returns:__
|
|
1836
1848
|
|
1837
1849
|
--
|
1838
1850
|
|
1839
|
-
##### [complex_finds_exact](https://github.com/appium/ruby_lib/blob/
|
1851
|
+
##### [complex_finds_exact](https://github.com/appium/ruby_lib/blob/32f327239055362ef630979d5975d0fac64d94c6/lib/appium_lib/android/common/helper.rb#L314) android
|
1840
1852
|
|
1841
1853
|
> def complex_finds_exact(class_name, value)
|
1842
1854
|
|
@@ -1854,7 +1866,7 @@ __Returns:__
|
|
1854
1866
|
|
1855
1867
|
--
|
1856
1868
|
|
1857
|
-
##### [alert_click](https://github.com/appium/ruby_lib/blob/
|
1869
|
+
##### [alert_click](https://github.com/appium/ruby_lib/blob/32f327239055362ef630979d5975d0fac64d94c6/lib/appium_lib/android/element/alert.rb#L6) android
|
1858
1870
|
|
1859
1871
|
> def alert_click(value)
|
1860
1872
|
|
@@ -1870,7 +1882,7 @@ __Returns:__
|
|
1870
1882
|
|
1871
1883
|
--
|
1872
1884
|
|
1873
|
-
##### [alert_accept](https://github.com/appium/ruby_lib/blob/
|
1885
|
+
##### [alert_accept](https://github.com/appium/ruby_lib/blob/32f327239055362ef630979d5975d0fac64d94c6/lib/appium_lib/android/element/alert.rb#L13) android
|
1874
1886
|
|
1875
1887
|
> def alert_accept
|
1876
1888
|
|
@@ -1883,7 +1895,7 @@ __Returns:__
|
|
1883
1895
|
|
1884
1896
|
--
|
1885
1897
|
|
1886
|
-
##### [alert_accept_text](https://github.com/appium/ruby_lib/blob/
|
1898
|
+
##### [alert_accept_text](https://github.com/appium/ruby_lib/blob/32f327239055362ef630979d5975d0fac64d94c6/lib/appium_lib/android/element/alert.rb#L20) android
|
1887
1899
|
|
1888
1900
|
> def alert_accept_text
|
1889
1901
|
|
@@ -1896,7 +1908,7 @@ __Returns:__
|
|
1896
1908
|
|
1897
1909
|
--
|
1898
1910
|
|
1899
|
-
##### [alert_dismiss](https://github.com/appium/ruby_lib/blob/
|
1911
|
+
##### [alert_dismiss](https://github.com/appium/ruby_lib/blob/32f327239055362ef630979d5975d0fac64d94c6/lib/appium_lib/android/element/alert.rb#L27) android
|
1900
1912
|
|
1901
1913
|
> def alert_dismiss
|
1902
1914
|
|
@@ -1909,7 +1921,7 @@ __Returns:__
|
|
1909
1921
|
|
1910
1922
|
--
|
1911
1923
|
|
1912
|
-
##### [alert_dismiss_text](https://github.com/appium/ruby_lib/blob/
|
1924
|
+
##### [alert_dismiss_text](https://github.com/appium/ruby_lib/blob/32f327239055362ef630979d5975d0fac64d94c6/lib/appium_lib/android/element/alert.rb#L34) android
|
1913
1925
|
|
1914
1926
|
> def alert_dismiss_text
|
1915
1927
|
|
@@ -1922,7 +1934,7 @@ __Returns:__
|
|
1922
1934
|
|
1923
1935
|
--
|
1924
1936
|
|
1925
|
-
##### [Button](https://github.com/appium/ruby_lib/blob/
|
1937
|
+
##### [Button](https://github.com/appium/ruby_lib/blob/32f327239055362ef630979d5975d0fac64d94c6/lib/appium_lib/android/element/button.rb#L3) android
|
1926
1938
|
|
1927
1939
|
> Button = 'android.widget.Button'.freeze
|
1928
1940
|
|
@@ -1930,7 +1942,7 @@ __Returns:__
|
|
1930
1942
|
|
1931
1943
|
--
|
1932
1944
|
|
1933
|
-
##### [ImageButton](https://github.com/appium/ruby_lib/blob/
|
1945
|
+
##### [ImageButton](https://github.com/appium/ruby_lib/blob/32f327239055362ef630979d5975d0fac64d94c6/lib/appium_lib/android/element/button.rb#L4) android
|
1934
1946
|
|
1935
1947
|
> ImageButton = 'android.widget.ImageButton'.freeze
|
1936
1948
|
|
@@ -1938,7 +1950,7 @@ __Returns:__
|
|
1938
1950
|
|
1939
1951
|
--
|
1940
1952
|
|
1941
|
-
##### [button](https://github.com/appium/ruby_lib/blob/
|
1953
|
+
##### [button](https://github.com/appium/ruby_lib/blob/32f327239055362ef630979d5975d0fac64d94c6/lib/appium_lib/android/element/button.rb#L10) android
|
1942
1954
|
|
1943
1955
|
> def button(value)
|
1944
1956
|
|
@@ -1955,7 +1967,7 @@ __Returns:__
|
|
1955
1967
|
|
1956
1968
|
--
|
1957
1969
|
|
1958
|
-
##### [buttons](https://github.com/appium/ruby_lib/blob/
|
1970
|
+
##### [buttons](https://github.com/appium/ruby_lib/blob/32f327239055362ef630979d5975d0fac64d94c6/lib/appium_lib/android/element/button.rb#L28) android
|
1959
1971
|
|
1960
1972
|
> def buttons(value = false)
|
1961
1973
|
|
@@ -1972,7 +1984,7 @@ __Returns:__
|
|
1972
1984
|
|
1973
1985
|
--
|
1974
1986
|
|
1975
|
-
##### [first_button](https://github.com/appium/ruby_lib/blob/
|
1987
|
+
##### [first_button](https://github.com/appium/ruby_lib/blob/32f327239055362ef630979d5975d0fac64d94c6/lib/appium_lib/android/element/button.rb#L36) android
|
1976
1988
|
|
1977
1989
|
> def first_button
|
1978
1990
|
|
@@ -1984,7 +1996,7 @@ __Returns:__
|
|
1984
1996
|
|
1985
1997
|
--
|
1986
1998
|
|
1987
|
-
##### [last_button](https://github.com/appium/ruby_lib/blob/
|
1999
|
+
##### [last_button](https://github.com/appium/ruby_lib/blob/32f327239055362ef630979d5975d0fac64d94c6/lib/appium_lib/android/element/button.rb#L42) android
|
1988
2000
|
|
1989
2001
|
> def last_button
|
1990
2002
|
|
@@ -1996,7 +2008,7 @@ __Returns:__
|
|
1996
2008
|
|
1997
2009
|
--
|
1998
2010
|
|
1999
|
-
##### [button_exact](https://github.com/appium/ruby_lib/blob/
|
2011
|
+
##### [button_exact](https://github.com/appium/ruby_lib/blob/32f327239055362ef630979d5975d0fac64d94c6/lib/appium_lib/android/element/button.rb#L58) android
|
2000
2012
|
|
2001
2013
|
> def button_exact(value)
|
2002
2014
|
|
@@ -2012,7 +2024,7 @@ __Returns:__
|
|
2012
2024
|
|
2013
2025
|
--
|
2014
2026
|
|
2015
|
-
##### [buttons_exact](https://github.com/appium/ruby_lib/blob/
|
2027
|
+
##### [buttons_exact](https://github.com/appium/ruby_lib/blob/32f327239055362ef630979d5975d0fac64d94c6/lib/appium_lib/android/element/button.rb#L65) android
|
2016
2028
|
|
2017
2029
|
> def buttons_exact(value)
|
2018
2030
|
|
@@ -2028,7 +2040,31 @@ __Returns:__
|
|
2028
2040
|
|
2029
2041
|
--
|
2030
2042
|
|
2031
|
-
##### [
|
2043
|
+
##### [_button_visible_selectors](https://github.com/appium/ruby_lib/blob/32f327239055362ef630979d5975d0fac64d94c6/lib/appium_lib/android/element/button.rb#L78) android
|
2044
|
+
|
2045
|
+
> def _button_visible_selectors(opts = {})
|
2046
|
+
|
2047
|
+
|
2048
|
+
|
2049
|
+
--
|
2050
|
+
|
2051
|
+
##### [_button_exact_string](https://github.com/appium/ruby_lib/blob/32f327239055362ef630979d5975d0fac64d94c6/lib/appium_lib/android/element/button.rb#L91) android
|
2052
|
+
|
2053
|
+
> def _button_exact_string(value)
|
2054
|
+
|
2055
|
+
|
2056
|
+
|
2057
|
+
--
|
2058
|
+
|
2059
|
+
##### [_button_contains_string](https://github.com/appium/ruby_lib/blob/32f327239055362ef630979d5975d0fac64d94c6/lib/appium_lib/android/element/button.rb#L97) android
|
2060
|
+
|
2061
|
+
> def _button_contains_string(value)
|
2062
|
+
|
2063
|
+
|
2064
|
+
|
2065
|
+
--
|
2066
|
+
|
2067
|
+
##### [find](https://github.com/appium/ruby_lib/blob/32f327239055362ef630979d5975d0fac64d94c6/lib/appium_lib/android/element/generic.rb#L6) android
|
2032
2068
|
|
2033
2069
|
> def find(value)
|
2034
2070
|
|
@@ -2044,7 +2080,7 @@ __Returns:__
|
|
2044
2080
|
|
2045
2081
|
--
|
2046
2082
|
|
2047
|
-
##### [finds](https://github.com/appium/ruby_lib/blob/
|
2083
|
+
##### [finds](https://github.com/appium/ruby_lib/blob/32f327239055362ef630979d5975d0fac64d94c6/lib/appium_lib/android/element/generic.rb#L13) android
|
2048
2084
|
|
2049
2085
|
> def finds(value)
|
2050
2086
|
|
@@ -2060,7 +2096,7 @@ __Returns:__
|
|
2060
2096
|
|
2061
2097
|
--
|
2062
2098
|
|
2063
|
-
##### [find_exact](https://github.com/appium/ruby_lib/blob/
|
2099
|
+
##### [find_exact](https://github.com/appium/ruby_lib/blob/32f327239055362ef630979d5975d0fac64d94c6/lib/appium_lib/android/element/generic.rb#L20) android
|
2064
2100
|
|
2065
2101
|
> def find_exact(value)
|
2066
2102
|
|
@@ -2076,7 +2112,7 @@ __Returns:__
|
|
2076
2112
|
|
2077
2113
|
--
|
2078
2114
|
|
2079
|
-
##### [finds_exact](https://github.com/appium/ruby_lib/blob/
|
2115
|
+
##### [finds_exact](https://github.com/appium/ruby_lib/blob/32f327239055362ef630979d5975d0fac64d94c6/lib/appium_lib/android/element/generic.rb#L27) android
|
2080
2116
|
|
2081
2117
|
> def finds_exact(value)
|
2082
2118
|
|
@@ -2092,7 +2128,7 @@ __Returns:__
|
|
2092
2128
|
|
2093
2129
|
--
|
2094
2130
|
|
2095
|
-
##### [scroll_to](https://github.com/appium/ruby_lib/blob/
|
2131
|
+
##### [scroll_to](https://github.com/appium/ruby_lib/blob/32f327239055362ef630979d5975d0fac64d94c6/lib/appium_lib/android/element/generic.rb#L40) android
|
2096
2132
|
|
2097
2133
|
> def scroll_to(text, scrollable_index = 0)
|
2098
2134
|
|
@@ -2110,7 +2146,7 @@ __Returns:__
|
|
2110
2146
|
|
2111
2147
|
--
|
2112
2148
|
|
2113
|
-
##### [scroll_to_exact](https://github.com/appium/ruby_lib/blob/
|
2149
|
+
##### [scroll_to_exact](https://github.com/appium/ruby_lib/blob/32f327239055362ef630979d5975d0fac64d94c6/lib/appium_lib/android/element/generic.rb#L58) android
|
2114
2150
|
|
2115
2151
|
> def scroll_to_exact(text, scrollable_index = 0)
|
2116
2152
|
|
@@ -2128,7 +2164,7 @@ __Returns:__
|
|
2128
2164
|
|
2129
2165
|
--
|
2130
2166
|
|
2131
|
-
##### [for](https://github.com/appium/ruby_lib/blob/
|
2167
|
+
##### [for](https://github.com/appium/ruby_lib/blob/32f327239055362ef630979d5975d0fac64d94c6/lib/appium_lib/android/espresso/bridge.rb#L7) android
|
2132
2168
|
|
2133
2169
|
> def self.for(target)
|
2134
2170
|
|
@@ -2136,7 +2172,79 @@ __Returns:__
|
|
2136
2172
|
|
2137
2173
|
--
|
2138
2174
|
|
2139
|
-
##### [
|
2175
|
+
##### [complex_find_contains](https://github.com/appium/ruby_lib/blob/32f327239055362ef630979d5975d0fac64d94c6/lib/appium_lib/android/espresso/helper.rb#L9) android
|
2176
|
+
|
2177
|
+
> def complex_find_contains(class_name, value)
|
2178
|
+
|
2179
|
+
Find the first element that contains value
|
2180
|
+
|
2181
|
+
__Parameters:__
|
2182
|
+
|
2183
|
+
[String] class_name - the class name for the element
|
2184
|
+
|
2185
|
+
[String] value - the value to search for
|
2186
|
+
|
2187
|
+
__Returns:__
|
2188
|
+
|
2189
|
+
[Element]
|
2190
|
+
|
2191
|
+
--
|
2192
|
+
|
2193
|
+
##### [complex_finds_contains](https://github.com/appium/ruby_lib/blob/32f327239055362ef630979d5975d0fac64d94c6/lib/appium_lib/android/espresso/helper.rb#L17) android
|
2194
|
+
|
2195
|
+
> def complex_finds_contains(class_name, value)
|
2196
|
+
|
2197
|
+
Find all elements containing value
|
2198
|
+
|
2199
|
+
__Parameters:__
|
2200
|
+
|
2201
|
+
[String] class_name - the class name for the element
|
2202
|
+
|
2203
|
+
[String] value - the value to search for
|
2204
|
+
|
2205
|
+
__Returns:__
|
2206
|
+
|
2207
|
+
[Array<Element>]
|
2208
|
+
|
2209
|
+
--
|
2210
|
+
|
2211
|
+
##### [complex_find_exact](https://github.com/appium/ruby_lib/blob/32f327239055362ef630979d5975d0fac64d94c6/lib/appium_lib/android/espresso/helper.rb#L25) android
|
2212
|
+
|
2213
|
+
> def complex_find_exact(class_name, value)
|
2214
|
+
|
2215
|
+
Find the first element exactly matching value
|
2216
|
+
|
2217
|
+
__Parameters:__
|
2218
|
+
|
2219
|
+
[String] class_name - the class name for the element
|
2220
|
+
|
2221
|
+
[String] value - the value to search for
|
2222
|
+
|
2223
|
+
__Returns:__
|
2224
|
+
|
2225
|
+
[Element]
|
2226
|
+
|
2227
|
+
--
|
2228
|
+
|
2229
|
+
##### [complex_finds_exact](https://github.com/appium/ruby_lib/blob/32f327239055362ef630979d5975d0fac64d94c6/lib/appium_lib/android/espresso/helper.rb#L33) android
|
2230
|
+
|
2231
|
+
> def complex_finds_exact(class_name, value)
|
2232
|
+
|
2233
|
+
Find all elements exactly matching value
|
2234
|
+
|
2235
|
+
__Parameters:__
|
2236
|
+
|
2237
|
+
[String] class_name - the class name for the element
|
2238
|
+
|
2239
|
+
[String] value - the value to search for
|
2240
|
+
|
2241
|
+
__Returns:__
|
2242
|
+
|
2243
|
+
[Element]
|
2244
|
+
|
2245
|
+
--
|
2246
|
+
|
2247
|
+
##### [EditText](https://github.com/appium/ruby_lib/blob/32f327239055362ef630979d5975d0fac64d94c6/lib/appium_lib/android/element/textfield.rb#L3) android
|
2140
2248
|
|
2141
2249
|
> EditText = 'android.widget.EditText'.freeze
|
2142
2250
|
|
@@ -2144,7 +2252,7 @@ __Returns:__
|
|
2144
2252
|
|
2145
2253
|
--
|
2146
2254
|
|
2147
|
-
##### [textfield](https://github.com/appium/ruby_lib/blob/
|
2255
|
+
##### [textfield](https://github.com/appium/ruby_lib/blob/32f327239055362ef630979d5975d0fac64d94c6/lib/appium_lib/android/element/textfield.rb#L9) android
|
2148
2256
|
|
2149
2257
|
> def textfield(value)
|
2150
2258
|
|
@@ -2161,7 +2269,7 @@ __Returns:__
|
|
2161
2269
|
|
2162
2270
|
--
|
2163
2271
|
|
2164
|
-
##### [textfields](https://github.com/appium/ruby_lib/blob/
|
2272
|
+
##### [textfields](https://github.com/appium/ruby_lib/blob/32f327239055362ef630979d5975d0fac64d94c6/lib/appium_lib/android/element/textfield.rb#L19) android
|
2165
2273
|
|
2166
2274
|
> def textfields(value = false)
|
2167
2275
|
|
@@ -2178,7 +2286,7 @@ __Returns:__
|
|
2178
2286
|
|
2179
2287
|
--
|
2180
2288
|
|
2181
|
-
##### [first_textfield](https://github.com/appium/ruby_lib/blob/
|
2289
|
+
##### [first_textfield](https://github.com/appium/ruby_lib/blob/32f327239055362ef630979d5975d0fac64d94c6/lib/appium_lib/android/element/textfield.rb#L27) android
|
2182
2290
|
|
2183
2291
|
> def first_textfield
|
2184
2292
|
|
@@ -2190,7 +2298,7 @@ __Returns:__
|
|
2190
2298
|
|
2191
2299
|
--
|
2192
2300
|
|
2193
|
-
##### [last_textfield](https://github.com/appium/ruby_lib/blob/
|
2301
|
+
##### [last_textfield](https://github.com/appium/ruby_lib/blob/32f327239055362ef630979d5975d0fac64d94c6/lib/appium_lib/android/element/textfield.rb#L33) android
|
2194
2302
|
|
2195
2303
|
> def last_textfield
|
2196
2304
|
|
@@ -2202,7 +2310,7 @@ __Returns:__
|
|
2202
2310
|
|
2203
2311
|
--
|
2204
2312
|
|
2205
|
-
##### [textfield_exact](https://github.com/appium/ruby_lib/blob/
|
2313
|
+
##### [textfield_exact](https://github.com/appium/ruby_lib/blob/32f327239055362ef630979d5975d0fac64d94c6/lib/appium_lib/android/element/textfield.rb#L40) android
|
2206
2314
|
|
2207
2315
|
> def textfield_exact(value)
|
2208
2316
|
|
@@ -2218,7 +2326,7 @@ __Returns:__
|
|
2218
2326
|
|
2219
2327
|
--
|
2220
2328
|
|
2221
|
-
##### [textfields_exact](https://github.com/appium/ruby_lib/blob/
|
2329
|
+
##### [textfields_exact](https://github.com/appium/ruby_lib/blob/32f327239055362ef630979d5975d0fac64d94c6/lib/appium_lib/android/element/textfield.rb#L47) android
|
2222
2330
|
|
2223
2331
|
> def textfields_exact(value)
|
2224
2332
|
|
@@ -2234,7 +2342,7 @@ __Returns:__
|
|
2234
2342
|
|
2235
2343
|
--
|
2236
2344
|
|
2237
|
-
##### [for](https://github.com/appium/ruby_lib/blob/
|
2345
|
+
##### [for](https://github.com/appium/ruby_lib/blob/32f327239055362ef630979d5975d0fac64d94c6/lib/appium_lib/android/uiautomator2/bridge.rb#L7) android
|
2238
2346
|
|
2239
2347
|
> def self.for(target)
|
2240
2348
|
|
@@ -2242,7 +2350,7 @@ __Returns:__
|
|
2242
2350
|
|
2243
2351
|
--
|
2244
2352
|
|
2245
|
-
##### [string_visible_contains](https://github.com/appium/ruby_lib/blob/
|
2353
|
+
##### [string_visible_contains](https://github.com/appium/ruby_lib/blob/32f327239055362ef630979d5975d0fac64d94c6/lib/appium_lib/android/uiautomator2/helper.rb#L13) android
|
2246
2354
|
|
2247
2355
|
> def string_visible_contains(class_name, value)
|
2248
2356
|
|
@@ -2263,7 +2371,7 @@ __Returns:__
|
|
2263
2371
|
|
2264
2372
|
--
|
2265
2373
|
|
2266
|
-
##### [complex_find_contains](https://github.com/appium/ruby_lib/blob/
|
2374
|
+
##### [complex_find_contains](https://github.com/appium/ruby_lib/blob/32f327239055362ef630979d5975d0fac64d94c6/lib/appium_lib/android/uiautomator2/helper.rb#L31) android
|
2267
2375
|
|
2268
2376
|
> def complex_find_contains(class_name, value)
|
2269
2377
|
|
@@ -2281,7 +2389,7 @@ __Returns:__
|
|
2281
2389
|
|
2282
2390
|
--
|
2283
2391
|
|
2284
|
-
##### [complex_finds_contains](https://github.com/appium/ruby_lib/blob/
|
2392
|
+
##### [complex_finds_contains](https://github.com/appium/ruby_lib/blob/32f327239055362ef630979d5975d0fac64d94c6/lib/appium_lib/android/uiautomator2/helper.rb#L42) android
|
2285
2393
|
|
2286
2394
|
> def complex_finds_contains(class_name, value)
|
2287
2395
|
|
@@ -2299,7 +2407,7 @@ __Returns:__
|
|
2299
2407
|
|
2300
2408
|
--
|
2301
2409
|
|
2302
|
-
##### [complex_find_exact](https://github.com/appium/ruby_lib/blob/
|
2410
|
+
##### [complex_find_exact](https://github.com/appium/ruby_lib/blob/32f327239055362ef630979d5975d0fac64d94c6/lib/appium_lib/android/uiautomator2/helper.rb#L70) android
|
2303
2411
|
|
2304
2412
|
> def complex_find_exact(class_name, value)
|
2305
2413
|
|
@@ -2317,7 +2425,7 @@ __Returns:__
|
|
2317
2425
|
|
2318
2426
|
--
|
2319
2427
|
|
2320
|
-
##### [complex_finds_exact](https://github.com/appium/ruby_lib/blob/
|
2428
|
+
##### [complex_finds_exact](https://github.com/appium/ruby_lib/blob/32f327239055362ef630979d5975d0fac64d94c6/lib/appium_lib/android/uiautomator2/helper.rb#L81) android
|
2321
2429
|
|
2322
2430
|
> def complex_finds_exact(class_name, value)
|
2323
2431
|
|
@@ -2335,7 +2443,7 @@ __Returns:__
|
|
2335
2443
|
|
2336
2444
|
--
|
2337
2445
|
|
2338
|
-
##### [shell](https://github.com/appium/ruby_lib/blob/
|
2446
|
+
##### [shell](https://github.com/appium/ruby_lib/blob/32f327239055362ef630979d5975d0fac64d94c6/lib/appium_lib/android/common/command/command.rb#L14) android
|
2339
2447
|
|
2340
2448
|
> def shell(command, arguments)
|
2341
2449
|
|
@@ -2350,7 +2458,7 @@ __Parameters:__
|
|
2350
2458
|
|
2351
2459
|
--
|
2352
2460
|
|
2353
|
-
##### [start_logs_broadcast](https://github.com/appium/ruby_lib/blob/
|
2461
|
+
##### [start_logs_broadcast](https://github.com/appium/ruby_lib/blob/32f327239055362ef630979d5975d0fac64d94c6/lib/appium_lib/android/common/command/command.rb#L28) android
|
2354
2462
|
|
2355
2463
|
> def start_logs_broadcast(logcat_file = 'logcat.log')
|
2356
2464
|
|
@@ -2362,7 +2470,7 @@ __Parameters:__
|
|
2362
2470
|
|
2363
2471
|
--
|
2364
2472
|
|
2365
|
-
##### [stop_logs_broadcast](https://github.com/appium/ruby_lib/blob/
|
2473
|
+
##### [stop_logs_broadcast](https://github.com/appium/ruby_lib/blob/32f327239055362ef630979d5975d0fac64d94c6/lib/appium_lib/android/common/command/command.rb#L41) android
|
2366
2474
|
|
2367
2475
|
> def stop_logs_broadcast
|
2368
2476
|
|
@@ -2370,7 +2478,155 @@ Stop Android logcat broadcast websocket
|
|
2370
2478
|
|
2371
2479
|
--
|
2372
2480
|
|
2373
|
-
##### [button](https://github.com/appium/ruby_lib/blob/
|
2481
|
+
##### [button](https://github.com/appium/ruby_lib/blob/32f327239055362ef630979d5975d0fac64d94c6/lib/appium_lib/android/espresso/element/button.rb#L9) android
|
2482
|
+
|
2483
|
+
> def button(value)
|
2484
|
+
|
2485
|
+
Find the first button that contains value or by index.
|
2486
|
+
If int then the button at that index is returned.
|
2487
|
+
|
2488
|
+
__Parameters:__
|
2489
|
+
|
2490
|
+
[String, Integer] value - the value to exactly match.
|
2491
|
+
|
2492
|
+
__Returns:__
|
2493
|
+
|
2494
|
+
[Button]
|
2495
|
+
|
2496
|
+
--
|
2497
|
+
|
2498
|
+
##### [buttons](https://github.com/appium/ruby_lib/blob/32f327239055362ef630979d5975d0fac64d94c6/lib/appium_lib/android/espresso/element/button.rb#L32) android
|
2499
|
+
|
2500
|
+
> def buttons(value = false)
|
2501
|
+
|
2502
|
+
Find all buttons containing value.
|
2503
|
+
If value is omitted, all buttons are returned.
|
2504
|
+
|
2505
|
+
__Parameters:__
|
2506
|
+
|
2507
|
+
[String] value - the value to search for
|
2508
|
+
|
2509
|
+
__Returns:__
|
2510
|
+
|
2511
|
+
[Array<Button>]
|
2512
|
+
|
2513
|
+
--
|
2514
|
+
|
2515
|
+
##### [first_button](https://github.com/appium/ruby_lib/blob/32f327239055362ef630979d5975d0fac64d94c6/lib/appium_lib/android/espresso/element/button.rb#L42) android
|
2516
|
+
|
2517
|
+
> def first_button
|
2518
|
+
|
2519
|
+
Find the first button.
|
2520
|
+
|
2521
|
+
__Returns:__
|
2522
|
+
|
2523
|
+
[Button]
|
2524
|
+
|
2525
|
+
--
|
2526
|
+
|
2527
|
+
##### [last_button](https://github.com/appium/ruby_lib/blob/32f327239055362ef630979d5975d0fac64d94c6/lib/appium_lib/android/espresso/element/button.rb#L48) android
|
2528
|
+
|
2529
|
+
> def last_button
|
2530
|
+
|
2531
|
+
Find the last button.
|
2532
|
+
|
2533
|
+
__Returns:__
|
2534
|
+
|
2535
|
+
[Button]
|
2536
|
+
|
2537
|
+
--
|
2538
|
+
|
2539
|
+
##### [button_exact](https://github.com/appium/ruby_lib/blob/32f327239055362ef630979d5975d0fac64d94c6/lib/appium_lib/android/espresso/element/button.rb#L63) android
|
2540
|
+
|
2541
|
+
> def button_exact(value)
|
2542
|
+
|
2543
|
+
Find the first button that exactly matches value.
|
2544
|
+
|
2545
|
+
__Parameters:__
|
2546
|
+
|
2547
|
+
[String] value - the value to match exactly
|
2548
|
+
|
2549
|
+
__Returns:__
|
2550
|
+
|
2551
|
+
[Button]
|
2552
|
+
|
2553
|
+
--
|
2554
|
+
|
2555
|
+
##### [buttons_exact](https://github.com/appium/ruby_lib/blob/32f327239055362ef630979d5975d0fac64d94c6/lib/appium_lib/android/espresso/element/button.rb#L75) android
|
2556
|
+
|
2557
|
+
> def buttons_exact(value)
|
2558
|
+
|
2559
|
+
Find all buttons that exactly match value.
|
2560
|
+
|
2561
|
+
__Parameters:__
|
2562
|
+
|
2563
|
+
[String] value - the value to match exactly
|
2564
|
+
|
2565
|
+
__Returns:__
|
2566
|
+
|
2567
|
+
[Array<Button>]
|
2568
|
+
|
2569
|
+
--
|
2570
|
+
|
2571
|
+
##### [_button_visible_selectors_xpath](https://github.com/appium/ruby_lib/blob/32f327239055362ef630979d5975d0fac64d94c6/lib/appium_lib/android/espresso/element/button.rb#L90) android
|
2572
|
+
|
2573
|
+
> def _button_visible_selectors_xpath(opts = {})
|
2574
|
+
|
2575
|
+
|
2576
|
+
|
2577
|
+
--
|
2578
|
+
|
2579
|
+
##### [_button_exact_string_xpath](https://github.com/appium/ruby_lib/blob/32f327239055362ef630979d5975d0fac64d94c6/lib/appium_lib/android/espresso/element/button.rb#L111) android
|
2580
|
+
|
2581
|
+
> def _button_exact_string_xpath(class_name, value)
|
2582
|
+
|
2583
|
+
|
2584
|
+
|
2585
|
+
--
|
2586
|
+
|
2587
|
+
##### [_button_contains_string_xpath](https://github.com/appium/ruby_lib/blob/32f327239055362ef630979d5975d0fac64d94c6/lib/appium_lib/android/espresso/element/button.rb#L116) android
|
2588
|
+
|
2589
|
+
> def _button_contains_string_xpath(class_name, value)
|
2590
|
+
|
2591
|
+
|
2592
|
+
|
2593
|
+
--
|
2594
|
+
|
2595
|
+
##### [scroll_to](https://github.com/appium/ruby_lib/blob/32f327239055362ef630979d5975d0fac64d94c6/lib/appium_lib/android/espresso/element/generic.rb#L9) android
|
2596
|
+
|
2597
|
+
> def scroll_to(text)
|
2598
|
+
|
2599
|
+
Scroll to the first element containing target text or description.
|
2600
|
+
Scroll happens upto 30 times in centre of device width.
|
2601
|
+
|
2602
|
+
__Parameters:__
|
2603
|
+
|
2604
|
+
[String] text - the text or resourceId to search for in the text value and content description
|
2605
|
+
|
2606
|
+
__Returns:__
|
2607
|
+
|
2608
|
+
[Element] the element scrolled to
|
2609
|
+
|
2610
|
+
--
|
2611
|
+
|
2612
|
+
##### [scroll_to_exact](https://github.com/appium/ruby_lib/blob/32f327239055362ef630979d5975d0fac64d94c6/lib/appium_lib/android/espresso/element/generic.rb#L36) android
|
2613
|
+
|
2614
|
+
> def scroll_to_exact(text)
|
2615
|
+
|
2616
|
+
Scroll to the first element with the exact target text or description.
|
2617
|
+
Scroll happens upto 30 times in centre of device width.
|
2618
|
+
|
2619
|
+
__Parameters:__
|
2620
|
+
|
2621
|
+
[String] text - the text or resourceId to search for in the text value and content description
|
2622
|
+
|
2623
|
+
__Returns:__
|
2624
|
+
|
2625
|
+
[Element] the element scrolled to
|
2626
|
+
|
2627
|
+
--
|
2628
|
+
|
2629
|
+
##### [button](https://github.com/appium/ruby_lib/blob/32f327239055362ef630979d5975d0fac64d94c6/lib/appium_lib/android/uiautomator2/element/button.rb#L9) android
|
2374
2630
|
|
2375
2631
|
> def button(value)
|
2376
2632
|
|
@@ -2387,7 +2643,7 @@ __Returns:__
|
|
2387
2643
|
|
2388
2644
|
--
|
2389
2645
|
|
2390
|
-
##### [buttons](https://github.com/appium/ruby_lib/blob/
|
2646
|
+
##### [buttons](https://github.com/appium/ruby_lib/blob/32f327239055362ef630979d5975d0fac64d94c6/lib/appium_lib/android/uiautomator2/element/button.rb#L30) android
|
2391
2647
|
|
2392
2648
|
> def buttons(value = false)
|
2393
2649
|
|
@@ -2404,7 +2660,7 @@ __Returns:__
|
|
2404
2660
|
|
2405
2661
|
--
|
2406
2662
|
|
2407
|
-
##### [first_button](https://github.com/appium/ruby_lib/blob/
|
2663
|
+
##### [first_button](https://github.com/appium/ruby_lib/blob/32f327239055362ef630979d5975d0fac64d94c6/lib/appium_lib/android/uiautomator2/element/button.rb#L38) android
|
2408
2664
|
|
2409
2665
|
> def first_button
|
2410
2666
|
|
@@ -2416,7 +2672,7 @@ __Returns:__
|
|
2416
2672
|
|
2417
2673
|
--
|
2418
2674
|
|
2419
|
-
##### [last_button](https://github.com/appium/ruby_lib/blob/
|
2675
|
+
##### [last_button](https://github.com/appium/ruby_lib/blob/32f327239055362ef630979d5975d0fac64d94c6/lib/appium_lib/android/uiautomator2/element/button.rb#L45) android
|
2420
2676
|
|
2421
2677
|
> def last_button
|
2422
2678
|
|
@@ -2428,7 +2684,7 @@ __Returns:__
|
|
2428
2684
|
|
2429
2685
|
--
|
2430
2686
|
|
2431
|
-
##### [button_exact](https://github.com/appium/ruby_lib/blob/
|
2687
|
+
##### [button_exact](https://github.com/appium/ruby_lib/blob/32f327239055362ef630979d5975d0fac64d94c6/lib/appium_lib/android/uiautomator2/element/button.rb#L62) android
|
2432
2688
|
|
2433
2689
|
> def button_exact(value)
|
2434
2690
|
|
@@ -2444,7 +2700,7 @@ __Returns:__
|
|
2444
2700
|
|
2445
2701
|
--
|
2446
2702
|
|
2447
|
-
##### [buttons_exact](https://github.com/appium/ruby_lib/blob/
|
2703
|
+
##### [buttons_exact](https://github.com/appium/ruby_lib/blob/32f327239055362ef630979d5975d0fac64d94c6/lib/appium_lib/android/uiautomator2/element/button.rb#L70) android
|
2448
2704
|
|
2449
2705
|
> def buttons_exact(value)
|
2450
2706
|
|