appium_lib 10.5.0 → 10.6.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/.rubocop.yml +2 -0
- data/.travis.yml +1 -0
- data/CHANGELOG.md +9 -0
- data/appium_lib.gemspec +3 -3
- data/docs/android_docs.md +231 -307
- data/docs/ios_docs.md +269 -409
- data/lib/appium_lib/appium.rb +8 -1
- data/lib/appium_lib/common/wait.rb +1 -1
- data/lib/appium_lib/driver.rb +1 -9
- data/lib/appium_lib/version.rb +2 -2
- data/release_notes.md +12 -0
- metadata +8 -8
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: cb1d870d7cf1e0ba4d384e6d2a735bea33ce0d9818e4220cfc884d3e90c5c09a
|
4
|
+
data.tar.gz: 3973f57b38bd766ef11ab4068c80746fb33db6ca7eafdaf603d4d3007221ec95
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: baaf9d04ea9f590df793a40f24845b62b0b8bf7f02d4c40df28ad03950601964181acf58f9c15251ab3f9966baacf41111c253f37306e780d2cbd12280a43dde
|
7
|
+
data.tar.gz: b20c5ef1136532820379f66e7bc350a37a9705b405745ce05c042ca2ae24b77584c3911e9e58cfcfb10a0432cd7223e3455d262ec3bf279a5c80601248ad50aa
|
data/.rubocop.yml
CHANGED
data/.travis.yml
CHANGED
data/CHANGELOG.md
CHANGED
@@ -10,6 +10,15 @@ Release tags are https://github.com/appium/ruby_lib/releases .
|
|
10
10
|
|
11
11
|
### 3. Deprecations
|
12
12
|
|
13
|
+
## 10.6.0
|
14
|
+
### 1. Enhancements
|
15
|
+
|
16
|
+
### 2. Bug fixes
|
17
|
+
|
18
|
+
### 3. Deprecations
|
19
|
+
- Remove auto `Pry.config.pager` off
|
20
|
+
- Please turn it off if you needed. https://github.com/pry/pry/wiki/Customization-and-configuration#Config_pager
|
21
|
+
|
13
22
|
## v10.5.0
|
14
23
|
### 1. Enhancements
|
15
24
|
- Added `driver.log_event` to post an event
|
data/appium_lib.gemspec
CHANGED
@@ -20,11 +20,11 @@ Gem::Specification.new do |s|
|
|
20
20
|
|
21
21
|
s.add_development_dependency 'appium_thor', '~> 1.1', '>= 1.1.4'
|
22
22
|
s.add_development_dependency 'fakefs', '~> 0.13.0'
|
23
|
-
s.add_development_dependency 'hashdiff', '~> 0.
|
23
|
+
s.add_development_dependency 'hashdiff', '~> 1.0.0'
|
24
24
|
s.add_development_dependency 'posix-spawn', '~> 0.3'
|
25
25
|
s.add_development_dependency 'pry'
|
26
|
-
s.add_development_dependency 'rake', '~>
|
27
|
-
s.add_development_dependency 'rubocop', '~> 0.
|
26
|
+
s.add_development_dependency 'rake', '~> 13.0'
|
27
|
+
s.add_development_dependency 'rubocop', '~> 0.68.1'
|
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/65f690f1fec62a5f8868270287b0099d8b22a2ac/lib/appium_lib/appium.rb#L60) 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/65f690f1fec62a5f8868270287b0099d8b22a2ac/lib/appium_lib/appium.rb#L96) 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/65f690f1fec62a5f8868270287b0099d8b22a2ac/lib/appium_lib/appium.rb#L101) 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/65f690f1fec62a5f8868270287b0099d8b22a2ac/lib/appium_lib/appium.rb#L143) 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/65f690f1fec62a5f8868270287b0099d8b22a2ac/lib/appium_lib/appium.rb#L199) 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/65f690f1fec62a5f8868270287b0099d8b22a2ac/lib/appium_lib/driver.rb#L49) 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/65f690f1fec62a5f8868270287b0099d8b22a2ac/lib/appium_lib/driver.rb#L49) 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/65f690f1fec62a5f8868270287b0099d8b22a2ac/lib/appium_lib/driver.rb#L52) 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/65f690f1fec62a5f8868270287b0099d8b22a2ac/lib/appium_lib/driver.rb#L55) 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/65f690f1fec62a5f8868270287b0099d8b22a2ac/lib/appium_lib/driver.rb#L58) 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/65f690f1fec62a5f8868270287b0099d8b22a2ac/lib/appium_lib/driver.rb#L61) 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/65f690f1fec62a5f8868270287b0099d8b22a2ac/lib/appium_lib/driver.rb#L65) common
|
171
171
|
|
172
172
|
> def caps
|
173
173
|
|
@@ -176,95 +176,95 @@ 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/65f690f1fec62a5f8868270287b0099d8b22a2ac/lib/appium_lib/driver.rb#L66) common
|
180
180
|
|
181
181
|
> def custom_url
|
182
182
|
|
183
|
-
Returns the value of attribute custom_url
|
183
|
+
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/65f690f1fec62a5f8868270287b0099d8b22a2ac/lib/appium_lib/driver.rb#L67) common
|
188
188
|
|
189
189
|
> def export_session
|
190
190
|
|
191
|
-
Returns the value of attribute export_session
|
191
|
+
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/65f690f1fec62a5f8868270287b0099d8b22a2ac/lib/appium_lib/driver.rb#L68) common
|
196
196
|
|
197
197
|
> def export_session_path
|
198
198
|
|
199
|
-
Returns the value of attribute export_session_path
|
199
|
+
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/65f690f1fec62a5f8868270287b0099d8b22a2ac/lib/appium_lib/driver.rb#L69) common
|
204
204
|
|
205
205
|
> def default_wait
|
206
206
|
|
207
|
-
Returns the value of attribute default_wait
|
207
|
+
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/65f690f1fec62a5f8868270287b0099d8b22a2ac/lib/appium_lib/driver.rb#L70) common
|
212
212
|
|
213
213
|
> def appium_port
|
214
214
|
|
215
|
-
Returns the value of attribute appium_port
|
215
|
+
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/65f690f1fec62a5f8868270287b0099d8b22a2ac/lib/appium_lib/driver.rb#L71) common
|
220
220
|
|
221
221
|
> def appium_device
|
222
222
|
|
223
|
-
Returns the value of attribute appium_device
|
223
|
+
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/65f690f1fec62a5f8868270287b0099d8b22a2ac/lib/appium_lib/driver.rb#L72) common
|
228
228
|
|
229
229
|
> def automation_name
|
230
230
|
|
231
|
-
Returns the value of attribute automation_name
|
231
|
+
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/65f690f1fec62a5f8868270287b0099d8b22a2ac/lib/appium_lib/driver.rb#L73) common
|
236
236
|
|
237
237
|
> def listener
|
238
238
|
|
239
|
-
Returns the value of attribute listener
|
239
|
+
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/65f690f1fec62a5f8868270287b0099d8b22a2ac/lib/appium_lib/driver.rb#L74) common
|
244
244
|
|
245
245
|
> def http_client
|
246
246
|
|
247
|
-
Returns the value of attribute http_client
|
247
|
+
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/65f690f1fec62a5f8868270287b0099d8b22a2ac/lib/appium_lib/driver.rb#L75) common
|
252
252
|
|
253
253
|
> def appium_wait_timeout
|
254
254
|
|
255
|
-
Returns the value of attribute appium_wait_timeout
|
255
|
+
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/65f690f1fec62a5f8868270287b0099d8b22a2ac/lib/appium_lib/driver.rb#L76) common
|
260
260
|
|
261
261
|
> def appium_wait_interval
|
262
262
|
|
263
|
-
Returns the value of attribute appium_wait_interval
|
263
|
+
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/65f690f1fec62a5f8868270287b0099d8b22a2ac/lib/appium_lib/driver.rb#L79) 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/65f690f1fec62a5f8868270287b0099d8b22a2ac/lib/appium_lib/driver.rb#L81) 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/65f690f1fec62a5f8868270287b0099d8b22a2ac/lib/appium_lib/driver.rb#L84) 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/65f690f1fec62a5f8868270287b0099d8b22a2ac/lib/appium_lib/driver.rb#L86) 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/65f690f1fec62a5f8868270287b0099d8b22a2ac/lib/appium_lib/driver.rb#L154) 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/65f690f1fec62a5f8868270287b0099d8b22a2ac/lib/appium_lib/driver.rb#L279) 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/65f690f1fec62a5f8868270287b0099d8b22a2ac/lib/appium_lib/driver.rb#L301) 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/65f690f1fec62a5f8868270287b0099d8b22a2ac/lib/appium_lib/driver.rb#L305) 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/65f690f1fec62a5f8868270287b0099d8b22a2ac/lib/appium_lib/driver.rb#L309) 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/65f690f1fec62a5f8868270287b0099d8b22a2ac/lib/appium_lib/driver.rb#L315) 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/65f690f1fec62a5f8868270287b0099d8b22a2ac/lib/appium_lib/driver.rb#L321) 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/65f690f1fec62a5f8868270287b0099d8b22a2ac/lib/appium_lib/driver.rb#L327) 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/65f690f1fec62a5f8868270287b0099d8b22a2ac/lib/appium_lib/driver.rb#L347) common
|
403
403
|
|
404
404
|
> def dialect
|
405
405
|
|
@@ -421,7 +421,7 @@ __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/65f690f1fec62a5f8868270287b0099d8b22a2ac/lib/appium_lib/driver.rb#L361) common
|
425
425
|
|
426
426
|
> def action
|
427
427
|
|
@@ -434,7 +434,7 @@ __Returns:__
|
|
434
434
|
|
435
435
|
--
|
436
436
|
|
437
|
-
##### [appium_server_version](https://github.com/appium/ruby_lib/blob/
|
437
|
+
##### [appium_server_version](https://github.com/appium/ruby_lib/blob/65f690f1fec62a5f8868270287b0099d8b22a2ac/lib/appium_lib/driver.rb#L381) common
|
438
438
|
|
439
439
|
> def appium_server_version
|
440
440
|
|
@@ -446,7 +446,7 @@ __Returns:__
|
|
446
446
|
|
447
447
|
--
|
448
448
|
|
449
|
-
##### [remote_status](https://github.com/appium/ruby_lib/blob/
|
449
|
+
##### [remote_status](https://github.com/appium/ruby_lib/blob/65f690f1fec62a5f8868270287b0099d8b22a2ac/lib/appium_lib/driver.rb#L389) common
|
450
450
|
|
451
451
|
> def appium_server_version
|
452
452
|
|
@@ -458,7 +458,7 @@ __Returns:__
|
|
458
458
|
|
459
459
|
--
|
460
460
|
|
461
|
-
##### [platform_version](https://github.com/appium/ruby_lib/blob/
|
461
|
+
##### [platform_version](https://github.com/appium/ruby_lib/blob/65f690f1fec62a5f8868270287b0099d8b22a2ac/lib/appium_lib/driver.rb#L393) common
|
462
462
|
|
463
463
|
> def platform_version
|
464
464
|
|
@@ -470,7 +470,7 @@ __Returns:__
|
|
470
470
|
|
471
471
|
--
|
472
472
|
|
473
|
-
##### [appium_client_version](https://github.com/appium/ruby_lib/blob/
|
473
|
+
##### [appium_client_version](https://github.com/appium/ruby_lib/blob/65f690f1fec62a5f8868270287b0099d8b22a2ac/lib/appium_lib/driver.rb#L406) common
|
474
474
|
|
475
475
|
> def appium_client_version
|
476
476
|
|
@@ -482,9 +482,9 @@ __Returns:__
|
|
482
482
|
|
483
483
|
--
|
484
484
|
|
485
|
-
##### [absolute_app_path](https://github.com/appium/ruby_lib/blob/
|
485
|
+
##### [absolute_app_path](https://github.com/appium/ruby_lib/blob/65f690f1fec62a5f8868270287b0099d8b22a2ac/lib/appium_lib/driver.rb#L418) common
|
486
486
|
|
487
|
-
> def
|
487
|
+
> def absolute_app_path(opts)
|
488
488
|
|
489
489
|
Converts app_path to an absolute path.
|
490
490
|
|
@@ -499,7 +499,7 @@ __Returns:__
|
|
499
499
|
|
500
500
|
--
|
501
501
|
|
502
|
-
##### [server_url](https://github.com/appium/ruby_lib/blob/
|
502
|
+
##### [server_url](https://github.com/appium/ruby_lib/blob/65f690f1fec62a5f8868270287b0099d8b22a2ac/lib/appium_lib/driver.rb#L441) common
|
503
503
|
|
504
504
|
> def server_url
|
505
505
|
|
@@ -511,7 +511,7 @@ __Returns:__
|
|
511
511
|
|
512
512
|
--
|
513
513
|
|
514
|
-
##### [restart](https://github.com/appium/ruby_lib/blob/
|
514
|
+
##### [restart](https://github.com/appium/ruby_lib/blob/65f690f1fec62a5f8868270287b0099d8b22a2ac/lib/appium_lib/driver.rb#L450) common
|
515
515
|
|
516
516
|
> def restart
|
517
517
|
|
@@ -523,7 +523,7 @@ __Returns:__
|
|
523
523
|
|
524
524
|
--
|
525
525
|
|
526
|
-
##### [screenshot](https://github.com/appium/ruby_lib/blob/
|
526
|
+
##### [screenshot](https://github.com/appium/ruby_lib/blob/65f690f1fec62a5f8868270287b0099d8b22a2ac/lib/appium_lib/driver.rb#L463) common
|
527
527
|
|
528
528
|
> def screenshot(png_save_path)
|
529
529
|
|
@@ -539,7 +539,7 @@ __Returns:__
|
|
539
539
|
|
540
540
|
--
|
541
541
|
|
542
|
-
##### [element_screenshot](https://github.com/appium/ruby_lib/blob/
|
542
|
+
##### [element_screenshot](https://github.com/appium/ruby_lib/blob/65f690f1fec62a5f8868270287b0099d8b22a2ac/lib/appium_lib/driver.rb#L477) common
|
543
543
|
|
544
544
|
> def element_screenshot(element, png_save_path)
|
545
545
|
|
@@ -557,7 +557,7 @@ __Returns:__
|
|
557
557
|
|
558
558
|
--
|
559
559
|
|
560
|
-
##### [driver_quit](https://github.com/appium/ruby_lib/blob/
|
560
|
+
##### [driver_quit](https://github.com/appium/ruby_lib/blob/65f690f1fec62a5f8868270287b0099d8b22a2ac/lib/appium_lib/driver.rb#L484) common
|
561
561
|
|
562
562
|
> def driver_quit
|
563
563
|
|
@@ -569,7 +569,7 @@ __Returns:__
|
|
569
569
|
|
570
570
|
--
|
571
571
|
|
572
|
-
##### [quit_driver](https://github.com/appium/ruby_lib/blob/
|
572
|
+
##### [quit_driver](https://github.com/appium/ruby_lib/blob/65f690f1fec62a5f8868270287b0099d8b22a2ac/lib/appium_lib/driver.rb#L487) common
|
573
573
|
|
574
574
|
> def driver_quit
|
575
575
|
|
@@ -581,7 +581,7 @@ __Returns:__
|
|
581
581
|
|
582
582
|
--
|
583
583
|
|
584
|
-
##### [window_size](https://github.com/appium/ruby_lib/blob/
|
584
|
+
##### [window_size](https://github.com/appium/ruby_lib/blob/65f690f1fec62a5f8868270287b0099d8b22a2ac/lib/appium_lib/driver.rb#L498) common
|
585
585
|
|
586
586
|
> def window_size
|
587
587
|
|
@@ -593,7 +593,7 @@ __Returns:__
|
|
593
593
|
|
594
594
|
--
|
595
595
|
|
596
|
-
##### [window_rect](https://github.com/appium/ruby_lib/blob/
|
596
|
+
##### [window_rect](https://github.com/appium/ruby_lib/blob/65f690f1fec62a5f8868270287b0099d8b22a2ac/lib/appium_lib/driver.rb#L513) common
|
597
597
|
|
598
598
|
> def window_rect
|
599
599
|
|
@@ -605,9 +605,9 @@ __Returns:__
|
|
605
605
|
|
606
606
|
--
|
607
607
|
|
608
|
-
##### [start_driver](https://github.com/appium/ruby_lib/blob/
|
608
|
+
##### [start_driver](https://github.com/appium/ruby_lib/blob/65f690f1fec62a5f8868270287b0099d8b22a2ac/lib/appium_lib/driver.rb#L546) common
|
609
609
|
|
610
|
-
> def start_driver(http_client_ops =
|
610
|
+
> def start_driver(http_client_ops = { http_client: ::Appium::Http::Default.new, open_timeout: 999_999, read_timeout: 999_999 })
|
611
611
|
|
612
612
|
Creates a new global driver and quits the old one if it exists.
|
613
613
|
You can customise http_client as the following
|
@@ -625,7 +625,7 @@ __Returns:__
|
|
625
625
|
|
626
626
|
--
|
627
627
|
|
628
|
-
##### [set_implicit_wait](https://github.com/appium/ruby_lib/blob/
|
628
|
+
##### [set_implicit_wait](https://github.com/appium/ruby_lib/blob/65f690f1fec62a5f8868270287b0099d8b22a2ac/lib/appium_lib/driver.rb#L567) common
|
629
629
|
|
630
630
|
> def set_implicit_wait(wait)
|
631
631
|
|
@@ -633,7 +633,7 @@ To ignore error for Espresso Driver
|
|
633
633
|
|
634
634
|
--
|
635
635
|
|
636
|
-
##### [no_wait](https://github.com/appium/ruby_lib/blob/
|
636
|
+
##### [no_wait](https://github.com/appium/ruby_lib/blob/65f690f1fec62a5f8868270287b0099d8b22a2ac/lib/appium_lib/driver.rb#L578) common
|
637
637
|
|
638
638
|
> def no_wait
|
639
639
|
|
@@ -641,7 +641,7 @@ Set implicit wait to zero.
|
|
641
641
|
|
642
642
|
--
|
643
643
|
|
644
|
-
##### [set_wait](https://github.com/appium/ruby_lib/blob/
|
644
|
+
##### [set_wait](https://github.com/appium/ruby_lib/blob/65f690f1fec62a5f8868270287b0099d8b22a2ac/lib/appium_lib/driver.rb#L592) common
|
645
645
|
|
646
646
|
> def set_wait(timeout = nil)
|
647
647
|
|
@@ -657,7 +657,7 @@ __Returns:__
|
|
657
657
|
|
658
658
|
--
|
659
659
|
|
660
|
-
##### [exists](https://github.com/appium/ruby_lib/blob/
|
660
|
+
##### [exists](https://github.com/appium/ruby_lib/blob/65f690f1fec62a5f8868270287b0099d8b22a2ac/lib/appium_lib/driver.rb#L609) common
|
661
661
|
|
662
662
|
> def exists(pre_check = 0, post_check = @core.default_wait)
|
663
663
|
|
@@ -681,7 +681,7 @@ __Returns:__
|
|
681
681
|
|
682
682
|
--
|
683
683
|
|
684
|
-
##### [execute_script](https://github.com/appium/ruby_lib/blob/
|
684
|
+
##### [execute_script](https://github.com/appium/ruby_lib/blob/65f690f1fec62a5f8868270287b0099d8b22a2ac/lib/appium_lib/driver.rb#L633) common
|
685
685
|
|
686
686
|
> def execute_script(script, *args)
|
687
687
|
|
@@ -699,7 +699,7 @@ __Returns:__
|
|
699
699
|
|
700
700
|
--
|
701
701
|
|
702
|
-
##### [execute_async_script](https://github.com/appium/ruby_lib/blob/
|
702
|
+
##### [execute_async_script](https://github.com/appium/ruby_lib/blob/65f690f1fec62a5f8868270287b0099d8b22a2ac/lib/appium_lib/driver.rb#L641) common
|
703
703
|
|
704
704
|
> def execute_async_script(script, *args)
|
705
705
|
|
@@ -709,7 +709,7 @@ Get the window handles of open browser windows
|
|
709
709
|
|
710
710
|
--
|
711
711
|
|
712
|
-
##### [execute_driver](https://github.com/appium/ruby_lib/blob/
|
712
|
+
##### [execute_driver](https://github.com/appium/ruby_lib/blob/65f690f1fec62a5f8868270287b0099d8b22a2ac/lib/appium_lib/driver.rb#L673) common
|
713
713
|
|
714
714
|
> def execute_driver(script: '', type: 'webdriverio', timeout_ms: nil)
|
715
715
|
|
@@ -735,7 +735,7 @@ Appium::Core::Base::Device::ExecuteDriver::Result.
|
|
735
735
|
|
736
736
|
--
|
737
737
|
|
738
|
-
##### [window_handles](https://github.com/appium/ruby_lib/blob/
|
738
|
+
##### [window_handles](https://github.com/appium/ruby_lib/blob/65f690f1fec62a5f8868270287b0099d8b22a2ac/lib/appium_lib/driver.rb#L677) common
|
739
739
|
|
740
740
|
> def window_handles
|
741
741
|
|
@@ -743,7 +743,7 @@ Appium::Core::Base::Device::ExecuteDriver::Result.
|
|
743
743
|
|
744
744
|
--
|
745
745
|
|
746
|
-
##### [window_handle](https://github.com/appium/ruby_lib/blob/
|
746
|
+
##### [window_handle](https://github.com/appium/ruby_lib/blob/65f690f1fec62a5f8868270287b0099d8b22a2ac/lib/appium_lib/driver.rb#L682) common
|
747
747
|
|
748
748
|
> def window_handle
|
749
749
|
|
@@ -751,7 +751,7 @@ Get the current window handle
|
|
751
751
|
|
752
752
|
--
|
753
753
|
|
754
|
-
##### [navigate](https://github.com/appium/ruby_lib/blob/
|
754
|
+
##### [navigate](https://github.com/appium/ruby_lib/blob/65f690f1fec62a5f8868270287b0099d8b22a2ac/lib/appium_lib/driver.rb#L686) common
|
755
755
|
|
756
756
|
> def navigate
|
757
757
|
|
@@ -759,7 +759,7 @@ Get the current window handle
|
|
759
759
|
|
760
760
|
--
|
761
761
|
|
762
|
-
##### [manage](https://github.com/appium/ruby_lib/blob/
|
762
|
+
##### [manage](https://github.com/appium/ruby_lib/blob/65f690f1fec62a5f8868270287b0099d8b22a2ac/lib/appium_lib/driver.rb#L690) common
|
763
763
|
|
764
764
|
> def manage
|
765
765
|
|
@@ -767,7 +767,7 @@ Get the current window handle
|
|
767
767
|
|
768
768
|
--
|
769
769
|
|
770
|
-
##### [get](https://github.com/appium/ruby_lib/blob/
|
770
|
+
##### [get](https://github.com/appium/ruby_lib/blob/65f690f1fec62a5f8868270287b0099d8b22a2ac/lib/appium_lib/driver.rb#L694) common
|
771
771
|
|
772
772
|
> def get(url)
|
773
773
|
|
@@ -775,7 +775,7 @@ Get the current window handle
|
|
775
775
|
|
776
776
|
--
|
777
777
|
|
778
|
-
##### [current_url](https://github.com/appium/ruby_lib/blob/
|
778
|
+
##### [current_url](https://github.com/appium/ruby_lib/blob/65f690f1fec62a5f8868270287b0099d8b22a2ac/lib/appium_lib/driver.rb#L698) common
|
779
779
|
|
780
780
|
> def current_url
|
781
781
|
|
@@ -783,7 +783,7 @@ Get the current window handle
|
|
783
783
|
|
784
784
|
--
|
785
785
|
|
786
|
-
##### [title](https://github.com/appium/ruby_lib/blob/
|
786
|
+
##### [title](https://github.com/appium/ruby_lib/blob/65f690f1fec62a5f8868270287b0099d8b22a2ac/lib/appium_lib/driver.rb#L702) common
|
787
787
|
|
788
788
|
> def title
|
789
789
|
|
@@ -791,7 +791,7 @@ Get the current window handle
|
|
791
791
|
|
792
792
|
--
|
793
793
|
|
794
|
-
##### [switch_to](https://github.com/appium/ruby_lib/blob/
|
794
|
+
##### [switch_to](https://github.com/appium/ruby_lib/blob/65f690f1fec62a5f8868270287b0099d8b22a2ac/lib/appium_lib/driver.rb#L708) common
|
795
795
|
|
796
796
|
> def switch_to
|
797
797
|
|
@@ -803,7 +803,7 @@ __Returns:__
|
|
803
803
|
|
804
804
|
--
|
805
805
|
|
806
|
-
##### [find_elements](https://github.com/appium/ruby_lib/blob/
|
806
|
+
##### [find_elements](https://github.com/appium/ruby_lib/blob/65f690f1fec62a5f8868270287b0099d8b22a2ac/lib/appium_lib/driver.rb#L735) common
|
807
807
|
|
808
808
|
> def find_elements(*args)
|
809
809
|
|
@@ -823,7 +823,7 @@ __Returns:__
|
|
823
823
|
|
824
824
|
--
|
825
825
|
|
826
|
-
##### [find_element](https://github.com/appium/ruby_lib/blob/
|
826
|
+
##### [find_element](https://github.com/appium/ruby_lib/blob/65f690f1fec62a5f8868270287b0099d8b22a2ac/lib/appium_lib/driver.rb#L751) common
|
827
827
|
|
828
828
|
> def find_element(*args)
|
829
829
|
|
@@ -841,7 +841,7 @@ __Returns:__
|
|
841
841
|
|
842
842
|
--
|
843
843
|
|
844
|
-
##### [find_element_by_image](https://github.com/appium/ruby_lib/blob/
|
844
|
+
##### [find_element_by_image](https://github.com/appium/ruby_lib/blob/65f690f1fec62a5f8868270287b0099d8b22a2ac/lib/appium_lib/driver.rb#L766) common
|
845
845
|
|
846
846
|
> def find_element_by_image(png_img_path)
|
847
847
|
|
@@ -857,7 +857,7 @@ __Returns:__
|
|
857
857
|
|
858
858
|
--
|
859
859
|
|
860
|
-
##### [find_elements_by_image](https://github.com/appium/ruby_lib/blob/
|
860
|
+
##### [find_elements_by_image](https://github.com/appium/ruby_lib/blob/65f690f1fec62a5f8868270287b0099d8b22a2ac/lib/appium_lib/driver.rb#L781) common
|
861
861
|
|
862
862
|
> def find_elements_by_image(png_img_paths)
|
863
863
|
|
@@ -873,7 +873,7 @@ __Returns:__
|
|
873
873
|
|
874
874
|
--
|
875
875
|
|
876
|
-
##### [set_location](https://github.com/appium/ruby_lib/blob/
|
876
|
+
##### [set_location](https://github.com/appium/ruby_lib/blob/65f690f1fec62a5f8868270287b0099d8b22a2ac/lib/appium_lib/driver.rb#L794) common
|
877
877
|
|
878
878
|
> def set_location(opts = {})
|
879
879
|
|
@@ -889,7 +889,7 @@ __Returns:__
|
|
889
889
|
|
890
890
|
--
|
891
891
|
|
892
|
-
##### [log_event](https://github.com/appium/ruby_lib/blob/
|
892
|
+
##### [log_event](https://github.com/appium/ruby_lib/blob/65f690f1fec62a5f8868270287b0099d8b22a2ac/lib/appium_lib/driver.rb#L818) common
|
893
893
|
|
894
894
|
> def log_event(vendor:, event:)
|
895
895
|
|
@@ -902,9 +902,13 @@ __Parameters:__
|
|
902
902
|
|
903
903
|
[String] event - The name of event
|
904
904
|
|
905
|
+
__Returns:__
|
906
|
+
|
907
|
+
[nil]
|
908
|
+
|
905
909
|
--
|
906
910
|
|
907
|
-
##### [log_event=](https://github.com/appium/ruby_lib/blob/
|
911
|
+
##### [log_event=](https://github.com/appium/ruby_lib/blob/65f690f1fec62a5f8868270287b0099d8b22a2ac/lib/appium_lib/driver.rb#L822) common
|
908
912
|
|
909
913
|
> def log_event=(log_event)
|
910
914
|
|
@@ -912,7 +916,7 @@ __Parameters:__
|
|
912
916
|
|
913
917
|
--
|
914
918
|
|
915
|
-
##### [log_events](https://github.com/appium/ruby_lib/blob/
|
919
|
+
##### [log_events](https://github.com/appium/ruby_lib/blob/65f690f1fec62a5f8868270287b0099d8b22a2ac/lib/appium_lib/driver.rb#L839) common
|
916
920
|
|
917
921
|
> def log_events(type = nil)
|
918
922
|
|
@@ -928,7 +932,7 @@ __Returns:__
|
|
928
932
|
|
929
933
|
--
|
930
934
|
|
931
|
-
##### [x](https://github.com/appium/ruby_lib/blob/
|
935
|
+
##### [x](https://github.com/appium/ruby_lib/blob/65f690f1fec62a5f8868270287b0099d8b22a2ac/lib/appium_lib/driver.rb#L846) common
|
932
936
|
|
933
937
|
> def x
|
934
938
|
|
@@ -941,7 +945,7 @@ __Returns:__
|
|
941
945
|
|
942
946
|
--
|
943
947
|
|
944
|
-
##### [username](https://github.com/appium/ruby_lib/blob/
|
948
|
+
##### [username](https://github.com/appium/ruby_lib/blob/65f690f1fec62a5f8868270287b0099d8b22a2ac/lib/appium_lib/sauce_labs.rb#L18) common
|
945
949
|
|
946
950
|
> def username
|
947
951
|
|
@@ -949,7 +953,7 @@ Username for use on Sauce Labs. Set `false` to disable Sauce, even when SAUCE_US
|
|
949
953
|
|
950
954
|
--
|
951
955
|
|
952
|
-
##### [access_key](https://github.com/appium/ruby_lib/blob/
|
956
|
+
##### [access_key](https://github.com/appium/ruby_lib/blob/65f690f1fec62a5f8868270287b0099d8b22a2ac/lib/appium_lib/sauce_labs.rb#L20) common
|
953
957
|
|
954
958
|
> def access_key
|
955
959
|
|
@@ -957,7 +961,7 @@ Access Key for use on Sauce Labs. Set `false` to disable Sauce, even when SAUCE_
|
|
957
961
|
|
958
962
|
--
|
959
963
|
|
960
|
-
##### [endpoint](https://github.com/appium/ruby_lib/blob/
|
964
|
+
##### [endpoint](https://github.com/appium/ruby_lib/blob/65f690f1fec62a5f8868270287b0099d8b22a2ac/lib/appium_lib/sauce_labs.rb#L22) common
|
961
965
|
|
962
966
|
> def endpoint
|
963
967
|
|
@@ -965,7 +969,7 @@ Override the Sauce Appium endpoint to allow e.g. TestObject tests. Default is 'o
|
|
965
969
|
|
966
970
|
--
|
967
971
|
|
968
|
-
##### [initialize](https://github.com/appium/ruby_lib/blob/
|
972
|
+
##### [initialize](https://github.com/appium/ruby_lib/blob/65f690f1fec62a5f8868270287b0099d8b22a2ac/lib/appium_lib/sauce_labs.rb#L47) common
|
969
973
|
|
970
974
|
> def initialize(appium_lib_opts)
|
971
975
|
|
@@ -981,7 +985,7 @@ __Returns:__
|
|
981
985
|
|
982
986
|
--
|
983
987
|
|
984
|
-
##### [sauce_server_url?](https://github.com/appium/ruby_lib/blob/
|
988
|
+
##### [sauce_server_url?](https://github.com/appium/ruby_lib/blob/65f690f1fec62a5f8868270287b0099d8b22a2ac/lib/appium_lib/sauce_labs.rb#L67) common
|
985
989
|
|
986
990
|
> def sauce_server_url?
|
987
991
|
|
@@ -993,7 +997,7 @@ __Returns:__
|
|
993
997
|
|
994
998
|
--
|
995
999
|
|
996
|
-
##### [server_url](https://github.com/appium/ruby_lib/blob/
|
1000
|
+
##### [server_url](https://github.com/appium/ruby_lib/blob/65f690f1fec62a5f8868270287b0099d8b22a2ac/lib/appium_lib/sauce_labs.rb#L80) common
|
997
1001
|
|
998
1002
|
> def server_url
|
999
1003
|
|
@@ -1005,7 +1009,7 @@ __Returns:__
|
|
1005
1009
|
|
1006
1010
|
--
|
1007
1011
|
|
1008
|
-
##### [get_log](https://github.com/appium/ruby_lib/blob/
|
1012
|
+
##### [get_log](https://github.com/appium/ruby_lib/blob/65f690f1fec62a5f8868270287b0099d8b22a2ac/lib/appium_lib/common/log.rb#L25) common
|
1009
1013
|
|
1010
1014
|
> def get_log(type)
|
1011
1015
|
|
@@ -1021,7 +1025,7 @@ __Returns:__
|
|
1021
1025
|
|
1022
1026
|
--
|
1023
1027
|
|
1024
|
-
##### [get_available_log_types](https://github.com/appium/ruby_lib/blob/
|
1028
|
+
##### [get_available_log_types](https://github.com/appium/ruby_lib/blob/65f690f1fec62a5f8868270287b0099d8b22a2ac/lib/appium_lib/common/log.rb#L37) common
|
1025
1029
|
|
1026
1030
|
> def get_available_log_types
|
1027
1031
|
|
@@ -1033,7 +1037,7 @@ __Returns:__
|
|
1033
1037
|
|
1034
1038
|
--
|
1035
1039
|
|
1036
|
-
##### [wait_true](https://github.com/appium/ruby_lib/blob/
|
1040
|
+
##### [wait_true](https://github.com/appium/ruby_lib/blob/65f690f1fec62a5f8868270287b0099d8b22a2ac/lib/appium_lib/common/wait.rb#L44) common
|
1037
1041
|
|
1038
1042
|
> def wait_true(opts = {})
|
1039
1043
|
|
@@ -1053,7 +1057,7 @@ __Parameters:__
|
|
1053
1057
|
|
1054
1058
|
--
|
1055
1059
|
|
1056
|
-
##### [wait](https://github.com/appium/ruby_lib/blob/
|
1060
|
+
##### [wait](https://github.com/appium/ruby_lib/blob/65f690f1fec62a5f8868270287b0099d8b22a2ac/lib/appium_lib/common/wait.rb#L73) common
|
1057
1061
|
|
1058
1062
|
> def wait(opts = {})
|
1059
1063
|
|
@@ -1071,7 +1075,7 @@ __Parameters:__
|
|
1071
1075
|
|
1072
1076
|
--
|
1073
1077
|
|
1074
|
-
##### [add_touch_actions](https://github.com/appium/ruby_lib/blob/
|
1078
|
+
##### [add_touch_actions](https://github.com/appium/ruby_lib/blob/65f690f1fec62a5f8868270287b0099d8b22a2ac/lib/appium_lib/common/device.rb#L26) common
|
1075
1079
|
|
1076
1080
|
> def add_touch_actions
|
1077
1081
|
|
@@ -1079,7 +1083,7 @@ __Parameters:__
|
|
1079
1083
|
|
1080
1084
|
--
|
1081
1085
|
|
1082
|
-
##### [delegate_from_appium_driver](https://github.com/appium/ruby_lib/blob/
|
1086
|
+
##### [delegate_from_appium_driver](https://github.com/appium/ruby_lib/blob/65f690f1fec62a5f8868270287b0099d8b22a2ac/lib/appium_lib/common/device.rb#L38) common
|
1083
1087
|
|
1084
1088
|
> def delegate_from_appium_driver(method, delegation_target)
|
1085
1089
|
|
@@ -1087,7 +1091,7 @@ __Parameters:__
|
|
1087
1091
|
|
1088
1092
|
--
|
1089
1093
|
|
1090
|
-
##### [ignore](https://github.com/appium/ruby_lib/blob/
|
1094
|
+
##### [ignore](https://github.com/appium/ruby_lib/blob/65f690f1fec62a5f8868270287b0099d8b22a2ac/lib/appium_lib/common/helper.rb#L30) common
|
1091
1095
|
|
1092
1096
|
> def ignore
|
1093
1097
|
|
@@ -1095,7 +1099,7 @@ Return yield and ignore any exceptions.
|
|
1095
1099
|
|
1096
1100
|
--
|
1097
1101
|
|
1098
|
-
##### [back](https://github.com/appium/ruby_lib/blob/
|
1102
|
+
##### [back](https://github.com/appium/ruby_lib/blob/65f690f1fec62a5f8868270287b0099d8b22a2ac/lib/appium_lib/common/helper.rb#L37) common
|
1099
1103
|
|
1100
1104
|
> def back
|
1101
1105
|
|
@@ -1107,7 +1111,7 @@ __Returns:__
|
|
1107
1111
|
|
1108
1112
|
--
|
1109
1113
|
|
1110
|
-
##### [session_id](https://github.com/appium/ruby_lib/blob/
|
1114
|
+
##### [session_id](https://github.com/appium/ruby_lib/blob/65f690f1fec62a5f8868270287b0099d8b22a2ac/lib/appium_lib/common/helper.rb#L48) common
|
1111
1115
|
|
1112
1116
|
> def session_id
|
1113
1117
|
|
@@ -1119,7 +1123,7 @@ __Returns:__
|
|
1119
1123
|
|
1120
1124
|
--
|
1121
1125
|
|
1122
|
-
##### [xpath](https://github.com/appium/ruby_lib/blob/
|
1126
|
+
##### [xpath](https://github.com/appium/ruby_lib/blob/65f690f1fec62a5f8868270287b0099d8b22a2ac/lib/appium_lib/common/helper.rb#L56) common
|
1123
1127
|
|
1124
1128
|
> def xpath(xpath_str)
|
1125
1129
|
|
@@ -1135,7 +1139,7 @@ __Returns:__
|
|
1135
1139
|
|
1136
1140
|
--
|
1137
1141
|
|
1138
|
-
##### [xpaths](https://github.com/appium/ruby_lib/blob/
|
1142
|
+
##### [xpaths](https://github.com/appium/ruby_lib/blob/65f690f1fec62a5f8868270287b0099d8b22a2ac/lib/appium_lib/common/helper.rb#L64) common
|
1139
1143
|
|
1140
1144
|
> def xpaths(xpath_str)
|
1141
1145
|
|
@@ -1151,15 +1155,15 @@ __Returns:__
|
|
1151
1155
|
|
1152
1156
|
--
|
1153
1157
|
|
1154
|
-
##### [result](https://github.com/appium/ruby_lib/blob/
|
1158
|
+
##### [result](https://github.com/appium/ruby_lib/blob/65f690f1fec62a5f8868270287b0099d8b22a2ac/lib/appium_lib/common/helper.rb#L74) common
|
1155
1159
|
|
1156
1160
|
> def result
|
1157
1161
|
|
1158
|
-
Returns the value of attribute result
|
1162
|
+
Returns the value of attribute result.
|
1159
1163
|
|
1160
1164
|
--
|
1161
1165
|
|
1162
|
-
##### [initialize](https://github.com/appium/ruby_lib/blob/
|
1166
|
+
##### [initialize](https://github.com/appium/ruby_lib/blob/65f690f1fec62a5f8868270287b0099d8b22a2ac/lib/appium_lib/common/helper.rb#L76) common
|
1163
1167
|
|
1164
1168
|
> def initialize(platform)
|
1165
1169
|
|
@@ -1171,7 +1175,7 @@ __Returns:__
|
|
1171
1175
|
|
1172
1176
|
--
|
1173
1177
|
|
1174
|
-
##### [reset](https://github.com/appium/ruby_lib/blob/
|
1178
|
+
##### [reset](https://github.com/appium/ruby_lib/blob/65f690f1fec62a5f8868270287b0099d8b22a2ac/lib/appium_lib/common/helper.rb#L81) common
|
1175
1179
|
|
1176
1180
|
> def reset
|
1177
1181
|
|
@@ -1179,7 +1183,7 @@ __Returns:__
|
|
1179
1183
|
|
1180
1184
|
--
|
1181
1185
|
|
1182
|
-
##### [start_element](https://github.com/appium/ruby_lib/blob/
|
1186
|
+
##### [start_element](https://github.com/appium/ruby_lib/blob/65f690f1fec62a5f8868270287b0099d8b22a2ac/lib/appium_lib/common/helper.rb#L86) common
|
1183
1187
|
|
1184
1188
|
> def start_element(name, attrs = [])
|
1185
1189
|
|
@@ -1187,7 +1191,7 @@ http://nokogiri.org/Nokogiri/XML/SAX/Document.html
|
|
1187
1191
|
|
1188
1192
|
--
|
1189
1193
|
|
1190
|
-
##### [formatted_result](https://github.com/appium/ruby_lib/blob/
|
1194
|
+
##### [formatted_result](https://github.com/appium/ruby_lib/blob/65f690f1fec62a5f8868270287b0099d8b22a2ac/lib/appium_lib/common/helper.rb#L97) common
|
1191
1195
|
|
1192
1196
|
> def formatted_result
|
1193
1197
|
|
@@ -1195,7 +1199,7 @@ http://nokogiri.org/Nokogiri/XML/SAX/Document.html
|
|
1195
1199
|
|
1196
1200
|
--
|
1197
1201
|
|
1198
|
-
##### [get_page_class](https://github.com/appium/ruby_lib/blob/
|
1202
|
+
##### [get_page_class](https://github.com/appium/ruby_lib/blob/65f690f1fec62a5f8868270287b0099d8b22a2ac/lib/appium_lib/common/helper.rb#L115) common
|
1199
1203
|
|
1200
1204
|
> def get_page_class
|
1201
1205
|
|
@@ -1207,7 +1211,7 @@ __Returns:__
|
|
1207
1211
|
|
1208
1212
|
--
|
1209
1213
|
|
1210
|
-
##### [page_class](https://github.com/appium/ruby_lib/blob/
|
1214
|
+
##### [page_class](https://github.com/appium/ruby_lib/blob/65f690f1fec62a5f8868270287b0099d8b22a2ac/lib/appium_lib/common/helper.rb#L140) common
|
1211
1215
|
|
1212
1216
|
> def page_class
|
1213
1217
|
|
@@ -1220,7 +1224,7 @@ __Returns:__
|
|
1220
1224
|
|
1221
1225
|
--
|
1222
1226
|
|
1223
|
-
##### [source](https://github.com/appium/ruby_lib/blob/
|
1227
|
+
##### [source](https://github.com/appium/ruby_lib/blob/65f690f1fec62a5f8868270287b0099d8b22a2ac/lib/appium_lib/common/helper.rb#L147) common
|
1224
1228
|
|
1225
1229
|
> def source
|
1226
1230
|
|
@@ -1232,7 +1236,7 @@ __Returns:__
|
|
1232
1236
|
|
1233
1237
|
--
|
1234
1238
|
|
1235
|
-
##### [get_source](https://github.com/appium/ruby_lib/blob/
|
1239
|
+
##### [get_source](https://github.com/appium/ruby_lib/blob/65f690f1fec62a5f8868270287b0099d8b22a2ac/lib/appium_lib/common/helper.rb#L154) common
|
1236
1240
|
|
1237
1241
|
> def get_source
|
1238
1242
|
|
@@ -1245,7 +1249,7 @@ __Returns:__
|
|
1245
1249
|
|
1246
1250
|
--
|
1247
1251
|
|
1248
|
-
##### [px_to_window_rel](https://github.com/appium/ruby_lib/blob/
|
1252
|
+
##### [px_to_window_rel](https://github.com/appium/ruby_lib/blob/65f690f1fec62a5f8868270287b0099d8b22a2ac/lib/appium_lib/common/helper.rb#L164) common
|
1249
1253
|
|
1250
1254
|
> def px_to_window_rel(opts = {}, driver = $driver)
|
1251
1255
|
|
@@ -1253,7 +1257,7 @@ Converts pixel values to window relative values
|
|
1253
1257
|
|
1254
1258
|
--
|
1255
1259
|
|
1256
|
-
##### [xml_keys](https://github.com/appium/ruby_lib/blob/
|
1260
|
+
##### [xml_keys](https://github.com/appium/ruby_lib/blob/65f690f1fec62a5f8868270287b0099d8b22a2ac/lib/appium_lib/common/helper.rb#L183) common
|
1257
1261
|
|
1258
1262
|
> def xml_keys(target)
|
1259
1263
|
|
@@ -1269,7 +1273,7 @@ __Returns:__
|
|
1269
1273
|
|
1270
1274
|
--
|
1271
1275
|
|
1272
|
-
##### [xml_values](https://github.com/appium/ruby_lib/blob/
|
1276
|
+
##### [xml_values](https://github.com/appium/ruby_lib/blob/65f690f1fec62a5f8868270287b0099d8b22a2ac/lib/appium_lib/common/helper.rb#L191) common
|
1273
1277
|
|
1274
1278
|
> def xml_values(target)
|
1275
1279
|
|
@@ -1285,7 +1289,7 @@ __Returns:__
|
|
1285
1289
|
|
1286
1290
|
--
|
1287
1291
|
|
1288
|
-
##### [resolve_id](https://github.com/appium/ruby_lib/blob/
|
1292
|
+
##### [resolve_id](https://github.com/appium/ruby_lib/blob/65f690f1fec62a5f8868270287b0099d8b22a2ac/lib/appium_lib/common/helper.rb#L199) common
|
1289
1293
|
|
1290
1294
|
> def resolve_id(id)
|
1291
1295
|
|
@@ -1301,15 +1305,15 @@ __Returns:__
|
|
1301
1305
|
|
1302
1306
|
--
|
1303
1307
|
|
1304
|
-
##### [filter](https://github.com/appium/ruby_lib/blob/
|
1308
|
+
##### [filter](https://github.com/appium/ruby_lib/blob/65f690f1fec62a5f8868270287b0099d8b22a2ac/lib/appium_lib/common/helper.rb#L206) common
|
1305
1309
|
|
1306
1310
|
> def filter
|
1307
1311
|
|
1308
|
-
Returns the value of attribute filter
|
1312
|
+
Returns the value of attribute filter.
|
1309
1313
|
|
1310
1314
|
--
|
1311
1315
|
|
1312
|
-
##### [filter=](https://github.com/appium/ruby_lib/blob/
|
1316
|
+
##### [filter=](https://github.com/appium/ruby_lib/blob/65f690f1fec62a5f8868270287b0099d8b22a2ac/lib/appium_lib/common/helper.rb#L209) common
|
1313
1317
|
|
1314
1318
|
> def filter=(value)
|
1315
1319
|
|
@@ -1317,7 +1321,7 @@ convert to string to support symbols
|
|
1317
1321
|
|
1318
1322
|
--
|
1319
1323
|
|
1320
|
-
##### [initialize](https://github.com/appium/ruby_lib/blob/
|
1324
|
+
##### [initialize](https://github.com/appium/ruby_lib/blob/65f690f1fec62a5f8868270287b0099d8b22a2ac/lib/appium_lib/common/helper.rb#L216) common
|
1321
1325
|
|
1322
1326
|
> def initialize
|
1323
1327
|
|
@@ -1329,7 +1333,7 @@ __Returns:__
|
|
1329
1333
|
|
1330
1334
|
--
|
1331
1335
|
|
1332
|
-
##### [reset](https://github.com/appium/ruby_lib/blob/
|
1336
|
+
##### [reset](https://github.com/appium/ruby_lib/blob/65f690f1fec62a5f8868270287b0099d8b22a2ac/lib/appium_lib/common/helper.rb#L221) common
|
1333
1337
|
|
1334
1338
|
> def reset
|
1335
1339
|
|
@@ -1337,7 +1341,7 @@ __Returns:__
|
|
1337
1341
|
|
1338
1342
|
--
|
1339
1343
|
|
1340
|
-
##### [result](https://github.com/appium/ruby_lib/blob/
|
1344
|
+
##### [result](https://github.com/appium/ruby_lib/blob/65f690f1fec62a5f8868270287b0099d8b22a2ac/lib/appium_lib/common/helper.rb#L227) common
|
1341
1345
|
|
1342
1346
|
> def result
|
1343
1347
|
|
@@ -1345,7 +1349,7 @@ __Returns:__
|
|
1345
1349
|
|
1346
1350
|
--
|
1347
1351
|
|
1348
|
-
##### [start_element](https://github.com/appium/ruby_lib/blob/
|
1352
|
+
##### [start_element](https://github.com/appium/ruby_lib/blob/65f690f1fec62a5f8868270287b0099d8b22a2ac/lib/appium_lib/common/helper.rb#L240) common
|
1349
1353
|
|
1350
1354
|
> def start_element(name, attrs = [])
|
1351
1355
|
|
@@ -1353,7 +1357,7 @@ __Returns:__
|
|
1353
1357
|
|
1354
1358
|
--
|
1355
1359
|
|
1356
|
-
##### [end_element](https://github.com/appium/ruby_lib/blob/
|
1360
|
+
##### [end_element](https://github.com/appium/ruby_lib/blob/65f690f1fec62a5f8868270287b0099d8b22a2ac/lib/appium_lib/common/helper.rb#L250) common
|
1357
1361
|
|
1358
1362
|
> def end_element(name)
|
1359
1363
|
|
@@ -1361,7 +1365,7 @@ __Returns:__
|
|
1361
1365
|
|
1362
1366
|
--
|
1363
1367
|
|
1364
|
-
##### [characters](https://github.com/appium/ruby_lib/blob/
|
1368
|
+
##### [characters](https://github.com/appium/ruby_lib/blob/65f690f1fec62a5f8868270287b0099d8b22a2ac/lib/appium_lib/common/helper.rb#L257) common
|
1365
1369
|
|
1366
1370
|
> def characters(chars)
|
1367
1371
|
|
@@ -1369,15 +1373,7 @@ __Returns:__
|
|
1369
1373
|
|
1370
1374
|
--
|
1371
1375
|
|
1372
|
-
##### [
|
1373
|
-
|
1374
|
-
> DEFAULT_HEADERS = { 'Accept' => CONTENT_TYPE, 'User-Agent' => "appium/ruby_lib/#{::Appium::VERSION}" }.freeze
|
1375
|
-
|
1376
|
-
Default HTTP client inherit Appium::Core::Base::Http::Default, but has different DEFAULT_HEADERS
|
1377
|
-
|
1378
|
-
--
|
1379
|
-
|
1380
|
-
##### [pinch](https://github.com/appium/ruby_lib/blob/722c3a9aa387d3537b648a50dc24070e62fcc57a/lib/appium_lib/common/multi_touch.rb#L65) common
|
1376
|
+
##### [pinch](https://github.com/appium/ruby_lib/blob/65f690f1fec62a5f8868270287b0099d8b22a2ac/lib/appium_lib/common/multi_touch.rb#L65) common
|
1381
1377
|
|
1382
1378
|
> def pinch(percentage = 25, auto_perform = true, driver = $driver)
|
1383
1379
|
|
@@ -1397,7 +1393,7 @@ __Parameters:__
|
|
1397
1393
|
|
1398
1394
|
--
|
1399
1395
|
|
1400
|
-
##### [zoom](https://github.com/appium/ruby_lib/blob/
|
1396
|
+
##### [zoom](https://github.com/appium/ruby_lib/blob/65f690f1fec62a5f8868270287b0099d8b22a2ac/lib/appium_lib/common/multi_touch.rb#L108) common
|
1401
1397
|
|
1402
1398
|
> def zoom(percentage = 200, auto_perform = true, driver = $driver)
|
1403
1399
|
|
@@ -1417,7 +1413,7 @@ __Parameters:__
|
|
1417
1413
|
|
1418
1414
|
--
|
1419
1415
|
|
1420
|
-
##### [initialize](https://github.com/appium/ruby_lib/blob/
|
1416
|
+
##### [initialize](https://github.com/appium/ruby_lib/blob/65f690f1fec62a5f8868270287b0099d8b22a2ac/lib/appium_lib/common/multi_touch.rb#L194) common
|
1421
1417
|
|
1422
1418
|
> def initialize(driver = $driver)
|
1423
1419
|
|
@@ -1429,15 +1425,7 @@ __Returns:__
|
|
1429
1425
|
|
1430
1426
|
--
|
1431
1427
|
|
1432
|
-
##### [
|
1433
|
-
|
1434
|
-
> COMPLEX_ACTIONS = ::Appium::Core::TouchAction::COMPLEX_ACTIONS
|
1435
|
-
|
1436
|
-
|
1437
|
-
|
1438
|
-
--
|
1439
|
-
|
1440
|
-
##### [initialize](https://github.com/appium/ruby_lib/blob/722c3a9aa387d3537b648a50dc24070e62fcc57a/lib/appium_lib/common/touch_actions.rb#L62) common
|
1428
|
+
##### [initialize](https://github.com/appium/ruby_lib/blob/65f690f1fec62a5f8868270287b0099d8b22a2ac/lib/appium_lib/common/touch_actions.rb#L62) common
|
1441
1429
|
|
1442
1430
|
> def initialize(driver = $driver)
|
1443
1431
|
|
@@ -1449,7 +1437,7 @@ __Returns:__
|
|
1449
1437
|
|
1450
1438
|
--
|
1451
1439
|
|
1452
|
-
##### [swipe](https://github.com/appium/ruby_lib/blob/
|
1440
|
+
##### [swipe](https://github.com/appium/ruby_lib/blob/65f690f1fec62a5f8868270287b0099d8b22a2ac/lib/appium_lib/common/touch_actions.rb#L66) common
|
1453
1441
|
|
1454
1442
|
> def swipe(opts)
|
1455
1443
|
|
@@ -1457,7 +1445,7 @@ __Returns:__
|
|
1457
1445
|
|
1458
1446
|
--
|
1459
1447
|
|
1460
|
-
##### [initialize](https://github.com/appium/ruby_lib/blob/
|
1448
|
+
##### [initialize](https://github.com/appium/ruby_lib/blob/65f690f1fec62a5f8868270287b0099d8b22a2ac/lib/appium_lib/common/command/ws_logcat.rb#L19) common
|
1461
1449
|
|
1462
1450
|
> def initialize(url:, output_file: 'logcat.log')
|
1463
1451
|
|
@@ -1469,7 +1457,7 @@ __Returns:__
|
|
1469
1457
|
|
1470
1458
|
--
|
1471
1459
|
|
1472
|
-
##### [handle_message_data](https://github.com/appium/ruby_lib/blob/
|
1460
|
+
##### [handle_message_data](https://github.com/appium/ruby_lib/blob/65f690f1fec62a5f8868270287b0099d8b22a2ac/lib/appium_lib/common/command/ws_logcat.rb#L24) common
|
1473
1461
|
|
1474
1462
|
> def handle_message_data(data)
|
1475
1463
|
|
@@ -1477,31 +1465,15 @@ __Returns:__
|
|
1477
1465
|
|
1478
1466
|
--
|
1479
1467
|
|
1480
|
-
##### [for](https://github.com/appium/ruby_lib/blob/
|
1468
|
+
##### [for](https://github.com/appium/ruby_lib/blob/65f690f1fec62a5f8868270287b0099d8b22a2ac/lib/appium_lib/android/android.rb#L33) android
|
1481
1469
|
|
1482
|
-
> def
|
1470
|
+
> def for(target)
|
1483
1471
|
|
1484
1472
|
|
1485
1473
|
|
1486
1474
|
--
|
1487
1475
|
|
1488
|
-
##### [
|
1489
|
-
|
1490
|
-
> TEXT_VIEW = 'android.widget.TextView'
|
1491
|
-
|
1492
|
-
|
1493
|
-
|
1494
|
-
--
|
1495
|
-
|
1496
|
-
##### [TextView](https://github.com/appium/ruby_lib/blob/722c3a9aa387d3537b648a50dc24070e62fcc57a/lib/appium_lib/android/element/text.rb#L19) android
|
1497
|
-
|
1498
|
-
> TextView = TEXT_VIEW
|
1499
|
-
|
1500
|
-
|
1501
|
-
|
1502
|
-
--
|
1503
|
-
|
1504
|
-
##### [text](https://github.com/appium/ruby_lib/blob/722c3a9aa387d3537b648a50dc24070e62fcc57a/lib/appium_lib/android/element/text.rb#L25) android
|
1476
|
+
##### [text](https://github.com/appium/ruby_lib/blob/65f690f1fec62a5f8868270287b0099d8b22a2ac/lib/appium_lib/android/element/text.rb#L25) android
|
1505
1477
|
|
1506
1478
|
> def text(value)
|
1507
1479
|
|
@@ -1518,7 +1490,7 @@ __Returns:__
|
|
1518
1490
|
|
1519
1491
|
--
|
1520
1492
|
|
1521
|
-
##### [texts](https://github.com/appium/ruby_lib/blob/
|
1493
|
+
##### [texts](https://github.com/appium/ruby_lib/blob/65f690f1fec62a5f8868270287b0099d8b22a2ac/lib/appium_lib/android/element/text.rb#L35) android
|
1522
1494
|
|
1523
1495
|
> def texts(value = false)
|
1524
1496
|
|
@@ -1535,7 +1507,7 @@ __Returns:__
|
|
1535
1507
|
|
1536
1508
|
--
|
1537
1509
|
|
1538
|
-
##### [first_text](https://github.com/appium/ruby_lib/blob/
|
1510
|
+
##### [first_text](https://github.com/appium/ruby_lib/blob/65f690f1fec62a5f8868270287b0099d8b22a2ac/lib/appium_lib/android/element/text.rb#L43) android
|
1539
1511
|
|
1540
1512
|
> def first_text
|
1541
1513
|
|
@@ -1547,7 +1519,7 @@ __Returns:__
|
|
1547
1519
|
|
1548
1520
|
--
|
1549
1521
|
|
1550
|
-
##### [last_text](https://github.com/appium/ruby_lib/blob/
|
1522
|
+
##### [last_text](https://github.com/appium/ruby_lib/blob/65f690f1fec62a5f8868270287b0099d8b22a2ac/lib/appium_lib/android/element/text.rb#L49) android
|
1551
1523
|
|
1552
1524
|
> def last_text
|
1553
1525
|
|
@@ -1559,7 +1531,7 @@ __Returns:__
|
|
1559
1531
|
|
1560
1532
|
--
|
1561
1533
|
|
1562
|
-
##### [text_exact](https://github.com/appium/ruby_lib/blob/
|
1534
|
+
##### [text_exact](https://github.com/appium/ruby_lib/blob/65f690f1fec62a5f8868270287b0099d8b22a2ac/lib/appium_lib/android/element/text.rb#L56) android
|
1563
1535
|
|
1564
1536
|
> def text_exact(value)
|
1565
1537
|
|
@@ -1575,7 +1547,7 @@ __Returns:__
|
|
1575
1547
|
|
1576
1548
|
--
|
1577
1549
|
|
1578
|
-
##### [texts_exact](https://github.com/appium/ruby_lib/blob/
|
1550
|
+
##### [texts_exact](https://github.com/appium/ruby_lib/blob/65f690f1fec62a5f8868270287b0099d8b22a2ac/lib/appium_lib/android/element/text.rb#L63) android
|
1579
1551
|
|
1580
1552
|
> def texts_exact(value)
|
1581
1553
|
|
@@ -1591,31 +1563,31 @@ __Returns:__
|
|
1591
1563
|
|
1592
1564
|
--
|
1593
1565
|
|
1594
|
-
##### [result](https://github.com/appium/ruby_lib/blob/
|
1566
|
+
##### [result](https://github.com/appium/ruby_lib/blob/65f690f1fec62a5f8868270287b0099d8b22a2ac/lib/appium_lib/android/common/helper.rb#L20) android
|
1595
1567
|
|
1596
1568
|
> def result
|
1597
1569
|
|
1598
|
-
Returns the value of attribute result
|
1570
|
+
Returns the value of attribute result.
|
1599
1571
|
|
1600
1572
|
--
|
1601
1573
|
|
1602
|
-
##### [keys](https://github.com/appium/ruby_lib/blob/
|
1574
|
+
##### [keys](https://github.com/appium/ruby_lib/blob/65f690f1fec62a5f8868270287b0099d8b22a2ac/lib/appium_lib/android/common/helper.rb#L20) android
|
1603
1575
|
|
1604
1576
|
> def keys
|
1605
1577
|
|
1606
|
-
Returns the value of attribute keys
|
1578
|
+
Returns the value of attribute keys.
|
1607
1579
|
|
1608
1580
|
--
|
1609
1581
|
|
1610
|
-
##### [filter](https://github.com/appium/ruby_lib/blob/
|
1582
|
+
##### [filter](https://github.com/appium/ruby_lib/blob/65f690f1fec62a5f8868270287b0099d8b22a2ac/lib/appium_lib/android/common/helper.rb#L20) android
|
1611
1583
|
|
1612
1584
|
> def filter
|
1613
1585
|
|
1614
|
-
Returns the value of attribute filter
|
1586
|
+
Returns the value of attribute filter.
|
1615
1587
|
|
1616
1588
|
--
|
1617
1589
|
|
1618
|
-
##### [filter=](https://github.com/appium/ruby_lib/blob/
|
1590
|
+
##### [filter=](https://github.com/appium/ruby_lib/blob/65f690f1fec62a5f8868270287b0099d8b22a2ac/lib/appium_lib/android/common/helper.rb#L23) android
|
1619
1591
|
|
1620
1592
|
> def filter=(value)
|
1621
1593
|
|
@@ -1623,7 +1595,7 @@ convert to string to support symbols
|
|
1623
1595
|
|
1624
1596
|
--
|
1625
1597
|
|
1626
|
-
##### [initialize](https://github.com/appium/ruby_lib/blob/
|
1598
|
+
##### [initialize](https://github.com/appium/ruby_lib/blob/65f690f1fec62a5f8868270287b0099d8b22a2ac/lib/appium_lib/android/common/helper.rb#L30) android
|
1627
1599
|
|
1628
1600
|
> def initialize
|
1629
1601
|
|
@@ -1635,7 +1607,7 @@ __Returns:__
|
|
1635
1607
|
|
1636
1608
|
--
|
1637
1609
|
|
1638
|
-
##### [reset](https://github.com/appium/ruby_lib/blob/
|
1610
|
+
##### [reset](https://github.com/appium/ruby_lib/blob/65f690f1fec62a5f8868270287b0099d8b22a2ac/lib/appium_lib/android/common/helper.rb#L35) android
|
1639
1611
|
|
1640
1612
|
> def reset
|
1641
1613
|
|
@@ -1643,7 +1615,7 @@ __Returns:__
|
|
1643
1615
|
|
1644
1616
|
--
|
1645
1617
|
|
1646
|
-
##### [start_element](https://github.com/appium/ruby_lib/blob/
|
1618
|
+
##### [start_element](https://github.com/appium/ruby_lib/blob/65f690f1fec62a5f8868270287b0099d8b22a2ac/lib/appium_lib/android/common/helper.rb#L41) android
|
1647
1619
|
|
1648
1620
|
> def start_element(name, attrs = [], driver = $driver)
|
1649
1621
|
|
@@ -1651,7 +1623,7 @@ http://nokogiri.org/Nokogiri/XML/SAX/Document.html
|
|
1651
1623
|
|
1652
1624
|
--
|
1653
1625
|
|
1654
|
-
##### [get_android_inspect](https://github.com/appium/ruby_lib/blob/
|
1626
|
+
##### [get_android_inspect](https://github.com/appium/ruby_lib/blob/65f690f1fec62a5f8868270287b0099d8b22a2ac/lib/appium_lib/android/common/helper.rb#L95) android
|
1655
1627
|
|
1656
1628
|
> def get_android_inspect(class_name = false)
|
1657
1629
|
|
@@ -1670,7 +1642,7 @@ __Returns:__
|
|
1670
1642
|
|
1671
1643
|
--
|
1672
1644
|
|
1673
|
-
##### [page](https://github.com/appium/ruby_lib/blob/
|
1645
|
+
##### [page](https://github.com/appium/ruby_lib/blob/65f690f1fec62a5f8868270287b0099d8b22a2ac/lib/appium_lib/android/common/helper.rb#L121) android
|
1674
1646
|
|
1675
1647
|
> def page(opts = {})
|
1676
1648
|
|
@@ -1689,7 +1661,7 @@ __Returns:__
|
|
1689
1661
|
|
1690
1662
|
--
|
1691
1663
|
|
1692
|
-
##### [id](https://github.com/appium/ruby_lib/blob/
|
1664
|
+
##### [id](https://github.com/appium/ruby_lib/blob/65f690f1fec62a5f8868270287b0099d8b22a2ac/lib/appium_lib/android/common/helper.rb#L130) android
|
1693
1665
|
|
1694
1666
|
> def id(id)
|
1695
1667
|
|
@@ -1705,7 +1677,7 @@ __Returns:__
|
|
1705
1677
|
|
1706
1678
|
--
|
1707
1679
|
|
1708
|
-
##### [ids](https://github.com/appium/ruby_lib/blob/
|
1680
|
+
##### [ids](https://github.com/appium/ruby_lib/blob/65f690f1fec62a5f8868270287b0099d8b22a2ac/lib/appium_lib/android/common/helper.rb#L138) android
|
1709
1681
|
|
1710
1682
|
> def ids(id)
|
1711
1683
|
|
@@ -1721,7 +1693,7 @@ __Returns:__
|
|
1721
1693
|
|
1722
1694
|
--
|
1723
1695
|
|
1724
|
-
##### [ele_index](https://github.com/appium/ruby_lib/blob/
|
1696
|
+
##### [ele_index](https://github.com/appium/ruby_lib/blob/65f690f1fec62a5f8868270287b0099d8b22a2ac/lib/appium_lib/android/common/helper.rb#L147) android
|
1725
1697
|
|
1726
1698
|
> def ele_index(class_name, index)
|
1727
1699
|
|
@@ -1739,7 +1711,7 @@ __Returns:__
|
|
1739
1711
|
|
1740
1712
|
--
|
1741
1713
|
|
1742
|
-
##### [first_ele](https://github.com/appium/ruby_lib/blob/
|
1714
|
+
##### [first_ele](https://github.com/appium/ruby_lib/blob/65f690f1fec62a5f8868270287b0099d8b22a2ac/lib/appium_lib/android/common/helper.rb#L166) android
|
1743
1715
|
|
1744
1716
|
> def first_ele(class_name)
|
1745
1717
|
|
@@ -1755,7 +1727,7 @@ __Returns:__
|
|
1755
1727
|
|
1756
1728
|
--
|
1757
1729
|
|
1758
|
-
##### [last_ele](https://github.com/appium/ruby_lib/blob/
|
1730
|
+
##### [last_ele](https://github.com/appium/ruby_lib/blob/65f690f1fec62a5f8868270287b0099d8b22a2ac/lib/appium_lib/android/common/helper.rb#L173) android
|
1759
1731
|
|
1760
1732
|
> def last_ele(class_name)
|
1761
1733
|
|
@@ -1771,7 +1743,7 @@ __Returns:__
|
|
1771
1743
|
|
1772
1744
|
--
|
1773
1745
|
|
1774
|
-
##### [tag](https://github.com/appium/ruby_lib/blob/
|
1746
|
+
##### [tag](https://github.com/appium/ruby_lib/blob/65f690f1fec62a5f8868270287b0099d8b22a2ac/lib/appium_lib/android/common/helper.rb#L181) android
|
1775
1747
|
|
1776
1748
|
> def tag(class_name)
|
1777
1749
|
|
@@ -1787,7 +1759,7 @@ __Returns:__
|
|
1787
1759
|
|
1788
1760
|
--
|
1789
1761
|
|
1790
|
-
##### [tags](https://github.com/appium/ruby_lib/blob/
|
1762
|
+
##### [tags](https://github.com/appium/ruby_lib/blob/65f690f1fec62a5f8868270287b0099d8b22a2ac/lib/appium_lib/android/common/helper.rb#L189) android
|
1791
1763
|
|
1792
1764
|
> def tags(class_name)
|
1793
1765
|
|
@@ -1803,7 +1775,7 @@ __Returns:__
|
|
1803
1775
|
|
1804
1776
|
--
|
1805
1777
|
|
1806
|
-
##### [string_visible_contains_xpath](https://github.com/appium/ruby_lib/blob/
|
1778
|
+
##### [string_visible_contains_xpath](https://github.com/appium/ruby_lib/blob/65f690f1fec62a5f8868270287b0099d8b22a2ac/lib/appium_lib/android/common/helper.rb#L232) android
|
1807
1779
|
|
1808
1780
|
> def string_visible_contains_xpath(class_name, value)
|
1809
1781
|
|
@@ -1824,7 +1796,7 @@ __Returns:__
|
|
1824
1796
|
|
1825
1797
|
--
|
1826
1798
|
|
1827
|
-
##### [string_visible_contains](https://github.com/appium/ruby_lib/blob/
|
1799
|
+
##### [string_visible_contains](https://github.com/appium/ruby_lib/blob/65f690f1fec62a5f8868270287b0099d8b22a2ac/lib/appium_lib/android/common/helper.rb#L252) android
|
1828
1800
|
|
1829
1801
|
> def string_visible_contains(class_name, value)
|
1830
1802
|
|
@@ -1845,7 +1817,7 @@ __Returns:__
|
|
1845
1817
|
|
1846
1818
|
--
|
1847
1819
|
|
1848
|
-
##### [complex_find_contains](https://github.com/appium/ruby_lib/blob/
|
1820
|
+
##### [complex_find_contains](https://github.com/appium/ruby_lib/blob/65f690f1fec62a5f8868270287b0099d8b22a2ac/lib/appium_lib/android/common/helper.rb#L270) android
|
1849
1821
|
|
1850
1822
|
> def complex_find_contains(class_name, value)
|
1851
1823
|
|
@@ -1863,7 +1835,7 @@ __Returns:__
|
|
1863
1835
|
|
1864
1836
|
--
|
1865
1837
|
|
1866
|
-
##### [complex_finds_contains](https://github.com/appium/ruby_lib/blob/
|
1838
|
+
##### [complex_finds_contains](https://github.com/appium/ruby_lib/blob/65f690f1fec62a5f8868270287b0099d8b22a2ac/lib/appium_lib/android/common/helper.rb#L278) android
|
1867
1839
|
|
1868
1840
|
> def complex_finds_contains(class_name, value)
|
1869
1841
|
|
@@ -1881,7 +1853,7 @@ __Returns:__
|
|
1881
1853
|
|
1882
1854
|
--
|
1883
1855
|
|
1884
|
-
##### [complex_find_exact](https://github.com/appium/ruby_lib/blob/
|
1856
|
+
##### [complex_find_exact](https://github.com/appium/ruby_lib/blob/65f690f1fec62a5f8868270287b0099d8b22a2ac/lib/appium_lib/android/common/helper.rb#L320) android
|
1885
1857
|
|
1886
1858
|
> def complex_find_exact(class_name, value)
|
1887
1859
|
|
@@ -1899,7 +1871,7 @@ __Returns:__
|
|
1899
1871
|
|
1900
1872
|
--
|
1901
1873
|
|
1902
|
-
##### [complex_finds_exact](https://github.com/appium/ruby_lib/blob/
|
1874
|
+
##### [complex_finds_exact](https://github.com/appium/ruby_lib/blob/65f690f1fec62a5f8868270287b0099d8b22a2ac/lib/appium_lib/android/common/helper.rb#L328) android
|
1903
1875
|
|
1904
1876
|
> def complex_finds_exact(class_name, value)
|
1905
1877
|
|
@@ -1917,7 +1889,7 @@ __Returns:__
|
|
1917
1889
|
|
1918
1890
|
--
|
1919
1891
|
|
1920
|
-
##### [alert_click](https://github.com/appium/ruby_lib/blob/
|
1892
|
+
##### [alert_click](https://github.com/appium/ruby_lib/blob/65f690f1fec62a5f8868270287b0099d8b22a2ac/lib/appium_lib/android/element/alert.rb#L20) android
|
1921
1893
|
|
1922
1894
|
> def alert_click(value)
|
1923
1895
|
|
@@ -1933,7 +1905,7 @@ __Returns:__
|
|
1933
1905
|
|
1934
1906
|
--
|
1935
1907
|
|
1936
|
-
##### [alert_accept](https://github.com/appium/ruby_lib/blob/
|
1908
|
+
##### [alert_accept](https://github.com/appium/ruby_lib/blob/65f690f1fec62a5f8868270287b0099d8b22a2ac/lib/appium_lib/android/element/alert.rb#L27) android
|
1937
1909
|
|
1938
1910
|
> def alert_accept
|
1939
1911
|
|
@@ -1946,7 +1918,7 @@ __Returns:__
|
|
1946
1918
|
|
1947
1919
|
--
|
1948
1920
|
|
1949
|
-
##### [alert_accept_text](https://github.com/appium/ruby_lib/blob/
|
1921
|
+
##### [alert_accept_text](https://github.com/appium/ruby_lib/blob/65f690f1fec62a5f8868270287b0099d8b22a2ac/lib/appium_lib/android/element/alert.rb#L34) android
|
1950
1922
|
|
1951
1923
|
> def alert_accept_text
|
1952
1924
|
|
@@ -1959,7 +1931,7 @@ __Returns:__
|
|
1959
1931
|
|
1960
1932
|
--
|
1961
1933
|
|
1962
|
-
##### [alert_dismiss](https://github.com/appium/ruby_lib/blob/
|
1934
|
+
##### [alert_dismiss](https://github.com/appium/ruby_lib/blob/65f690f1fec62a5f8868270287b0099d8b22a2ac/lib/appium_lib/android/element/alert.rb#L41) android
|
1963
1935
|
|
1964
1936
|
> def alert_dismiss
|
1965
1937
|
|
@@ -1972,7 +1944,7 @@ __Returns:__
|
|
1972
1944
|
|
1973
1945
|
--
|
1974
1946
|
|
1975
|
-
##### [alert_dismiss_text](https://github.com/appium/ruby_lib/blob/
|
1947
|
+
##### [alert_dismiss_text](https://github.com/appium/ruby_lib/blob/65f690f1fec62a5f8868270287b0099d8b22a2ac/lib/appium_lib/android/element/alert.rb#L48) android
|
1976
1948
|
|
1977
1949
|
> def alert_dismiss_text
|
1978
1950
|
|
@@ -1985,39 +1957,7 @@ __Returns:__
|
|
1985
1957
|
|
1986
1958
|
--
|
1987
1959
|
|
1988
|
-
##### [
|
1989
|
-
|
1990
|
-
> BUTTON = 'android.widget.Button'
|
1991
|
-
|
1992
|
-
|
1993
|
-
|
1994
|
-
--
|
1995
|
-
|
1996
|
-
##### [Button](https://github.com/appium/ruby_lib/blob/722c3a9aa387d3537b648a50dc24070e62fcc57a/lib/appium_lib/android/element/button.rb#L18) android
|
1997
|
-
|
1998
|
-
> Button = BUTTON # backward compatibility
|
1999
|
-
|
2000
|
-
backward compatibility
|
2001
|
-
|
2002
|
-
--
|
2003
|
-
|
2004
|
-
##### [IMAGE_BUTTON](https://github.com/appium/ruby_lib/blob/722c3a9aa387d3537b648a50dc24070e62fcc57a/lib/appium_lib/android/element/button.rb#L20) android
|
2005
|
-
|
2006
|
-
> IMAGE_BUTTON = 'android.widget.ImageButton'
|
2007
|
-
|
2008
|
-
|
2009
|
-
|
2010
|
-
--
|
2011
|
-
|
2012
|
-
##### [ImageButton](https://github.com/appium/ruby_lib/blob/722c3a9aa387d3537b648a50dc24070e62fcc57a/lib/appium_lib/android/element/button.rb#L21) android
|
2013
|
-
|
2014
|
-
> ImageButton = IMAGE_BUTTON # backward compatibility
|
2015
|
-
|
2016
|
-
backward compatibility
|
2017
|
-
|
2018
|
-
--
|
2019
|
-
|
2020
|
-
##### [button](https://github.com/appium/ruby_lib/blob/722c3a9aa387d3537b648a50dc24070e62fcc57a/lib/appium_lib/android/element/button.rb#L27) android
|
1960
|
+
##### [button](https://github.com/appium/ruby_lib/blob/65f690f1fec62a5f8868270287b0099d8b22a2ac/lib/appium_lib/android/element/button.rb#L27) android
|
2021
1961
|
|
2022
1962
|
> def button(value)
|
2023
1963
|
|
@@ -2034,7 +1974,7 @@ __Returns:__
|
|
2034
1974
|
|
2035
1975
|
--
|
2036
1976
|
|
2037
|
-
##### [buttons](https://github.com/appium/ruby_lib/blob/
|
1977
|
+
##### [buttons](https://github.com/appium/ruby_lib/blob/65f690f1fec62a5f8868270287b0099d8b22a2ac/lib/appium_lib/android/element/button.rb#L45) android
|
2038
1978
|
|
2039
1979
|
> def buttons(value = false)
|
2040
1980
|
|
@@ -2051,7 +1991,7 @@ __Returns:__
|
|
2051
1991
|
|
2052
1992
|
--
|
2053
1993
|
|
2054
|
-
##### [first_button](https://github.com/appium/ruby_lib/blob/
|
1994
|
+
##### [first_button](https://github.com/appium/ruby_lib/blob/65f690f1fec62a5f8868270287b0099d8b22a2ac/lib/appium_lib/android/element/button.rb#L53) android
|
2055
1995
|
|
2056
1996
|
> def first_button
|
2057
1997
|
|
@@ -2063,7 +2003,7 @@ __Returns:__
|
|
2063
2003
|
|
2064
2004
|
--
|
2065
2005
|
|
2066
|
-
##### [last_button](https://github.com/appium/ruby_lib/blob/
|
2006
|
+
##### [last_button](https://github.com/appium/ruby_lib/blob/65f690f1fec62a5f8868270287b0099d8b22a2ac/lib/appium_lib/android/element/button.rb#L59) android
|
2067
2007
|
|
2068
2008
|
> def last_button
|
2069
2009
|
|
@@ -2075,7 +2015,7 @@ __Returns:__
|
|
2075
2015
|
|
2076
2016
|
--
|
2077
2017
|
|
2078
|
-
##### [button_exact](https://github.com/appium/ruby_lib/blob/
|
2018
|
+
##### [button_exact](https://github.com/appium/ruby_lib/blob/65f690f1fec62a5f8868270287b0099d8b22a2ac/lib/appium_lib/android/element/button.rb#L75) android
|
2079
2019
|
|
2080
2020
|
> def button_exact(value)
|
2081
2021
|
|
@@ -2091,7 +2031,7 @@ __Returns:__
|
|
2091
2031
|
|
2092
2032
|
--
|
2093
2033
|
|
2094
|
-
##### [buttons_exact](https://github.com/appium/ruby_lib/blob/
|
2034
|
+
##### [buttons_exact](https://github.com/appium/ruby_lib/blob/65f690f1fec62a5f8868270287b0099d8b22a2ac/lib/appium_lib/android/element/button.rb#L82) android
|
2095
2035
|
|
2096
2036
|
> def buttons_exact(value)
|
2097
2037
|
|
@@ -2107,7 +2047,7 @@ __Returns:__
|
|
2107
2047
|
|
2108
2048
|
--
|
2109
2049
|
|
2110
|
-
##### [_button_visible_selectors](https://github.com/appium/ruby_lib/blob/
|
2050
|
+
##### [_button_visible_selectors](https://github.com/appium/ruby_lib/blob/65f690f1fec62a5f8868270287b0099d8b22a2ac/lib/appium_lib/android/element/button.rb#L95) android
|
2111
2051
|
|
2112
2052
|
> def _button_visible_selectors(opts = {})
|
2113
2053
|
|
@@ -2115,7 +2055,7 @@ __Returns:__
|
|
2115
2055
|
|
2116
2056
|
--
|
2117
2057
|
|
2118
|
-
##### [_button_exact_string](https://github.com/appium/ruby_lib/blob/
|
2058
|
+
##### [_button_exact_string](https://github.com/appium/ruby_lib/blob/65f690f1fec62a5f8868270287b0099d8b22a2ac/lib/appium_lib/android/element/button.rb#L108) android
|
2119
2059
|
|
2120
2060
|
> def _button_exact_string(value)
|
2121
2061
|
|
@@ -2123,7 +2063,7 @@ __Returns:__
|
|
2123
2063
|
|
2124
2064
|
--
|
2125
2065
|
|
2126
|
-
##### [_button_contains_string](https://github.com/appium/ruby_lib/blob/
|
2066
|
+
##### [_button_contains_string](https://github.com/appium/ruby_lib/blob/65f690f1fec62a5f8868270287b0099d8b22a2ac/lib/appium_lib/android/element/button.rb#L114) android
|
2127
2067
|
|
2128
2068
|
> def _button_contains_string(value)
|
2129
2069
|
|
@@ -2131,7 +2071,7 @@ __Returns:__
|
|
2131
2071
|
|
2132
2072
|
--
|
2133
2073
|
|
2134
|
-
##### [find](https://github.com/appium/ruby_lib/blob/
|
2074
|
+
##### [find](https://github.com/appium/ruby_lib/blob/65f690f1fec62a5f8868270287b0099d8b22a2ac/lib/appium_lib/android/element/generic.rb#L20) android
|
2135
2075
|
|
2136
2076
|
> def find(value)
|
2137
2077
|
|
@@ -2147,7 +2087,7 @@ __Returns:__
|
|
2147
2087
|
|
2148
2088
|
--
|
2149
2089
|
|
2150
|
-
##### [finds](https://github.com/appium/ruby_lib/blob/
|
2090
|
+
##### [finds](https://github.com/appium/ruby_lib/blob/65f690f1fec62a5f8868270287b0099d8b22a2ac/lib/appium_lib/android/element/generic.rb#L27) android
|
2151
2091
|
|
2152
2092
|
> def finds(value)
|
2153
2093
|
|
@@ -2163,7 +2103,7 @@ __Returns:__
|
|
2163
2103
|
|
2164
2104
|
--
|
2165
2105
|
|
2166
|
-
##### [find_exact](https://github.com/appium/ruby_lib/blob/
|
2106
|
+
##### [find_exact](https://github.com/appium/ruby_lib/blob/65f690f1fec62a5f8868270287b0099d8b22a2ac/lib/appium_lib/android/element/generic.rb#L34) android
|
2167
2107
|
|
2168
2108
|
> def find_exact(value)
|
2169
2109
|
|
@@ -2179,7 +2119,7 @@ __Returns:__
|
|
2179
2119
|
|
2180
2120
|
--
|
2181
2121
|
|
2182
|
-
##### [finds_exact](https://github.com/appium/ruby_lib/blob/
|
2122
|
+
##### [finds_exact](https://github.com/appium/ruby_lib/blob/65f690f1fec62a5f8868270287b0099d8b22a2ac/lib/appium_lib/android/element/generic.rb#L41) android
|
2183
2123
|
|
2184
2124
|
> def finds_exact(value)
|
2185
2125
|
|
@@ -2195,7 +2135,7 @@ __Returns:__
|
|
2195
2135
|
|
2196
2136
|
--
|
2197
2137
|
|
2198
|
-
##### [scroll_to](https://github.com/appium/ruby_lib/blob/
|
2138
|
+
##### [scroll_to](https://github.com/appium/ruby_lib/blob/65f690f1fec62a5f8868270287b0099d8b22a2ac/lib/appium_lib/android/element/generic.rb#L54) android
|
2199
2139
|
|
2200
2140
|
> def scroll_to(text, scrollable_index = 0)
|
2201
2141
|
|
@@ -2213,7 +2153,7 @@ __Returns:__
|
|
2213
2153
|
|
2214
2154
|
--
|
2215
2155
|
|
2216
|
-
##### [scroll_to_exact](https://github.com/appium/ruby_lib/blob/
|
2156
|
+
##### [scroll_to_exact](https://github.com/appium/ruby_lib/blob/65f690f1fec62a5f8868270287b0099d8b22a2ac/lib/appium_lib/android/element/generic.rb#L72) android
|
2217
2157
|
|
2218
2158
|
> def scroll_to_exact(text, scrollable_index = 0)
|
2219
2159
|
|
@@ -2231,15 +2171,15 @@ __Returns:__
|
|
2231
2171
|
|
2232
2172
|
--
|
2233
2173
|
|
2234
|
-
##### [for](https://github.com/appium/ruby_lib/blob/
|
2174
|
+
##### [for](https://github.com/appium/ruby_lib/blob/65f690f1fec62a5f8868270287b0099d8b22a2ac/lib/appium_lib/android/espresso/bridge.rb#L21) android
|
2235
2175
|
|
2236
|
-
> def
|
2176
|
+
> def for(target)
|
2237
2177
|
|
2238
2178
|
|
2239
2179
|
|
2240
2180
|
--
|
2241
2181
|
|
2242
|
-
##### [complex_find_contains](https://github.com/appium/ruby_lib/blob/
|
2182
|
+
##### [complex_find_contains](https://github.com/appium/ruby_lib/blob/65f690f1fec62a5f8868270287b0099d8b22a2ac/lib/appium_lib/android/espresso/helper.rb#L23) android
|
2243
2183
|
|
2244
2184
|
> def complex_find_contains(class_name, value)
|
2245
2185
|
|
@@ -2257,7 +2197,7 @@ __Returns:__
|
|
2257
2197
|
|
2258
2198
|
--
|
2259
2199
|
|
2260
|
-
##### [complex_finds_contains](https://github.com/appium/ruby_lib/blob/
|
2200
|
+
##### [complex_finds_contains](https://github.com/appium/ruby_lib/blob/65f690f1fec62a5f8868270287b0099d8b22a2ac/lib/appium_lib/android/espresso/helper.rb#L31) android
|
2261
2201
|
|
2262
2202
|
> def complex_finds_contains(class_name, value)
|
2263
2203
|
|
@@ -2275,7 +2215,7 @@ __Returns:__
|
|
2275
2215
|
|
2276
2216
|
--
|
2277
2217
|
|
2278
|
-
##### [complex_find_exact](https://github.com/appium/ruby_lib/blob/
|
2218
|
+
##### [complex_find_exact](https://github.com/appium/ruby_lib/blob/65f690f1fec62a5f8868270287b0099d8b22a2ac/lib/appium_lib/android/espresso/helper.rb#L39) android
|
2279
2219
|
|
2280
2220
|
> def complex_find_exact(class_name, value)
|
2281
2221
|
|
@@ -2293,7 +2233,7 @@ __Returns:__
|
|
2293
2233
|
|
2294
2234
|
--
|
2295
2235
|
|
2296
|
-
##### [complex_finds_exact](https://github.com/appium/ruby_lib/blob/
|
2236
|
+
##### [complex_finds_exact](https://github.com/appium/ruby_lib/blob/65f690f1fec62a5f8868270287b0099d8b22a2ac/lib/appium_lib/android/espresso/helper.rb#L47) android
|
2297
2237
|
|
2298
2238
|
> def complex_finds_exact(class_name, value)
|
2299
2239
|
|
@@ -2311,23 +2251,7 @@ __Returns:__
|
|
2311
2251
|
|
2312
2252
|
--
|
2313
2253
|
|
2314
|
-
##### [
|
2315
|
-
|
2316
|
-
> EDIT_TEXT = 'android.widget.EditText'
|
2317
|
-
|
2318
|
-
|
2319
|
-
|
2320
|
-
--
|
2321
|
-
|
2322
|
-
##### [EditText](https://github.com/appium/ruby_lib/blob/722c3a9aa387d3537b648a50dc24070e62fcc57a/lib/appium_lib/android/element/textfield.rb#L18) android
|
2323
|
-
|
2324
|
-
> EditText = EDIT_TEXT
|
2325
|
-
|
2326
|
-
|
2327
|
-
|
2328
|
-
--
|
2329
|
-
|
2330
|
-
##### [textfield](https://github.com/appium/ruby_lib/blob/722c3a9aa387d3537b648a50dc24070e62fcc57a/lib/appium_lib/android/element/textfield.rb#L24) android
|
2254
|
+
##### [textfield](https://github.com/appium/ruby_lib/blob/65f690f1fec62a5f8868270287b0099d8b22a2ac/lib/appium_lib/android/element/textfield.rb#L24) android
|
2331
2255
|
|
2332
2256
|
> def textfield(value)
|
2333
2257
|
|
@@ -2344,7 +2268,7 @@ __Returns:__
|
|
2344
2268
|
|
2345
2269
|
--
|
2346
2270
|
|
2347
|
-
##### [textfields](https://github.com/appium/ruby_lib/blob/
|
2271
|
+
##### [textfields](https://github.com/appium/ruby_lib/blob/65f690f1fec62a5f8868270287b0099d8b22a2ac/lib/appium_lib/android/element/textfield.rb#L34) android
|
2348
2272
|
|
2349
2273
|
> def textfields(value = false)
|
2350
2274
|
|
@@ -2361,7 +2285,7 @@ __Returns:__
|
|
2361
2285
|
|
2362
2286
|
--
|
2363
2287
|
|
2364
|
-
##### [first_textfield](https://github.com/appium/ruby_lib/blob/
|
2288
|
+
##### [first_textfield](https://github.com/appium/ruby_lib/blob/65f690f1fec62a5f8868270287b0099d8b22a2ac/lib/appium_lib/android/element/textfield.rb#L42) android
|
2365
2289
|
|
2366
2290
|
> def first_textfield
|
2367
2291
|
|
@@ -2373,7 +2297,7 @@ __Returns:__
|
|
2373
2297
|
|
2374
2298
|
--
|
2375
2299
|
|
2376
|
-
##### [last_textfield](https://github.com/appium/ruby_lib/blob/
|
2300
|
+
##### [last_textfield](https://github.com/appium/ruby_lib/blob/65f690f1fec62a5f8868270287b0099d8b22a2ac/lib/appium_lib/android/element/textfield.rb#L48) android
|
2377
2301
|
|
2378
2302
|
> def last_textfield
|
2379
2303
|
|
@@ -2385,7 +2309,7 @@ __Returns:__
|
|
2385
2309
|
|
2386
2310
|
--
|
2387
2311
|
|
2388
|
-
##### [textfield_exact](https://github.com/appium/ruby_lib/blob/
|
2312
|
+
##### [textfield_exact](https://github.com/appium/ruby_lib/blob/65f690f1fec62a5f8868270287b0099d8b22a2ac/lib/appium_lib/android/element/textfield.rb#L55) android
|
2389
2313
|
|
2390
2314
|
> def textfield_exact(value)
|
2391
2315
|
|
@@ -2401,7 +2325,7 @@ __Returns:__
|
|
2401
2325
|
|
2402
2326
|
--
|
2403
2327
|
|
2404
|
-
##### [textfields_exact](https://github.com/appium/ruby_lib/blob/
|
2328
|
+
##### [textfields_exact](https://github.com/appium/ruby_lib/blob/65f690f1fec62a5f8868270287b0099d8b22a2ac/lib/appium_lib/android/element/textfield.rb#L62) android
|
2405
2329
|
|
2406
2330
|
> def textfields_exact(value)
|
2407
2331
|
|
@@ -2417,15 +2341,15 @@ __Returns:__
|
|
2417
2341
|
|
2418
2342
|
--
|
2419
2343
|
|
2420
|
-
##### [for](https://github.com/appium/ruby_lib/blob/
|
2344
|
+
##### [for](https://github.com/appium/ruby_lib/blob/65f690f1fec62a5f8868270287b0099d8b22a2ac/lib/appium_lib/android/uiautomator2/bridge.rb#L21) android
|
2421
2345
|
|
2422
|
-
> def
|
2346
|
+
> def for(target)
|
2423
2347
|
|
2424
2348
|
|
2425
2349
|
|
2426
2350
|
--
|
2427
2351
|
|
2428
|
-
##### [string_visible_contains](https://github.com/appium/ruby_lib/blob/
|
2352
|
+
##### [string_visible_contains](https://github.com/appium/ruby_lib/blob/65f690f1fec62a5f8868270287b0099d8b22a2ac/lib/appium_lib/android/uiautomator2/helper.rb#L27) android
|
2429
2353
|
|
2430
2354
|
> def string_visible_contains(class_name, value)
|
2431
2355
|
|
@@ -2446,7 +2370,7 @@ __Returns:__
|
|
2446
2370
|
|
2447
2371
|
--
|
2448
2372
|
|
2449
|
-
##### [complex_find_contains](https://github.com/appium/ruby_lib/blob/
|
2373
|
+
##### [complex_find_contains](https://github.com/appium/ruby_lib/blob/65f690f1fec62a5f8868270287b0099d8b22a2ac/lib/appium_lib/android/uiautomator2/helper.rb#L45) android
|
2450
2374
|
|
2451
2375
|
> def complex_find_contains(class_name, value)
|
2452
2376
|
|
@@ -2464,7 +2388,7 @@ __Returns:__
|
|
2464
2388
|
|
2465
2389
|
--
|
2466
2390
|
|
2467
|
-
##### [complex_finds_contains](https://github.com/appium/ruby_lib/blob/
|
2391
|
+
##### [complex_finds_contains](https://github.com/appium/ruby_lib/blob/65f690f1fec62a5f8868270287b0099d8b22a2ac/lib/appium_lib/android/uiautomator2/helper.rb#L56) android
|
2468
2392
|
|
2469
2393
|
> def complex_finds_contains(class_name, value)
|
2470
2394
|
|
@@ -2482,7 +2406,7 @@ __Returns:__
|
|
2482
2406
|
|
2483
2407
|
--
|
2484
2408
|
|
2485
|
-
##### [complex_find_exact](https://github.com/appium/ruby_lib/blob/
|
2409
|
+
##### [complex_find_exact](https://github.com/appium/ruby_lib/blob/65f690f1fec62a5f8868270287b0099d8b22a2ac/lib/appium_lib/android/uiautomator2/helper.rb#L84) android
|
2486
2410
|
|
2487
2411
|
> def complex_find_exact(class_name, value)
|
2488
2412
|
|
@@ -2500,7 +2424,7 @@ __Returns:__
|
|
2500
2424
|
|
2501
2425
|
--
|
2502
2426
|
|
2503
|
-
##### [complex_finds_exact](https://github.com/appium/ruby_lib/blob/
|
2427
|
+
##### [complex_finds_exact](https://github.com/appium/ruby_lib/blob/65f690f1fec62a5f8868270287b0099d8b22a2ac/lib/appium_lib/android/uiautomator2/helper.rb#L95) android
|
2504
2428
|
|
2505
2429
|
> def complex_finds_exact(class_name, value)
|
2506
2430
|
|
@@ -2518,7 +2442,7 @@ __Returns:__
|
|
2518
2442
|
|
2519
2443
|
--
|
2520
2444
|
|
2521
|
-
##### [shell](https://github.com/appium/ruby_lib/blob/
|
2445
|
+
##### [shell](https://github.com/appium/ruby_lib/blob/65f690f1fec62a5f8868270287b0099d8b22a2ac/lib/appium_lib/android/common/command/command.rb#L28) android
|
2522
2446
|
|
2523
2447
|
> def shell(command, arguments)
|
2524
2448
|
|
@@ -2533,7 +2457,7 @@ __Parameters:__
|
|
2533
2457
|
|
2534
2458
|
--
|
2535
2459
|
|
2536
|
-
##### [start_logs_broadcast](https://github.com/appium/ruby_lib/blob/
|
2460
|
+
##### [start_logs_broadcast](https://github.com/appium/ruby_lib/blob/65f690f1fec62a5f8868270287b0099d8b22a2ac/lib/appium_lib/android/common/command/command.rb#L42) android
|
2537
2461
|
|
2538
2462
|
> def start_logs_broadcast(logcat_file = 'logcat.log')
|
2539
2463
|
|
@@ -2545,7 +2469,7 @@ __Parameters:__
|
|
2545
2469
|
|
2546
2470
|
--
|
2547
2471
|
|
2548
|
-
##### [stop_logs_broadcast](https://github.com/appium/ruby_lib/blob/
|
2472
|
+
##### [stop_logs_broadcast](https://github.com/appium/ruby_lib/blob/65f690f1fec62a5f8868270287b0099d8b22a2ac/lib/appium_lib/android/common/command/command.rb#L55) android
|
2549
2473
|
|
2550
2474
|
> def stop_logs_broadcast
|
2551
2475
|
|
@@ -2553,7 +2477,7 @@ Stop Android logcat broadcast websocket
|
|
2553
2477
|
|
2554
2478
|
--
|
2555
2479
|
|
2556
|
-
##### [button](https://github.com/appium/ruby_lib/blob/
|
2480
|
+
##### [button](https://github.com/appium/ruby_lib/blob/65f690f1fec62a5f8868270287b0099d8b22a2ac/lib/appium_lib/android/espresso/element/button.rb#L23) android
|
2557
2481
|
|
2558
2482
|
> def button(value)
|
2559
2483
|
|
@@ -2570,7 +2494,7 @@ __Returns:__
|
|
2570
2494
|
|
2571
2495
|
--
|
2572
2496
|
|
2573
|
-
##### [buttons](https://github.com/appium/ruby_lib/blob/
|
2497
|
+
##### [buttons](https://github.com/appium/ruby_lib/blob/65f690f1fec62a5f8868270287b0099d8b22a2ac/lib/appium_lib/android/espresso/element/button.rb#L46) android
|
2574
2498
|
|
2575
2499
|
> def buttons(value = false)
|
2576
2500
|
|
@@ -2587,7 +2511,7 @@ __Returns:__
|
|
2587
2511
|
|
2588
2512
|
--
|
2589
2513
|
|
2590
|
-
##### [first_button](https://github.com/appium/ruby_lib/blob/
|
2514
|
+
##### [first_button](https://github.com/appium/ruby_lib/blob/65f690f1fec62a5f8868270287b0099d8b22a2ac/lib/appium_lib/android/espresso/element/button.rb#L56) android
|
2591
2515
|
|
2592
2516
|
> def first_button
|
2593
2517
|
|
@@ -2599,7 +2523,7 @@ __Returns:__
|
|
2599
2523
|
|
2600
2524
|
--
|
2601
2525
|
|
2602
|
-
##### [last_button](https://github.com/appium/ruby_lib/blob/
|
2526
|
+
##### [last_button](https://github.com/appium/ruby_lib/blob/65f690f1fec62a5f8868270287b0099d8b22a2ac/lib/appium_lib/android/espresso/element/button.rb#L62) android
|
2603
2527
|
|
2604
2528
|
> def last_button
|
2605
2529
|
|
@@ -2611,7 +2535,7 @@ __Returns:__
|
|
2611
2535
|
|
2612
2536
|
--
|
2613
2537
|
|
2614
|
-
##### [button_exact](https://github.com/appium/ruby_lib/blob/
|
2538
|
+
##### [button_exact](https://github.com/appium/ruby_lib/blob/65f690f1fec62a5f8868270287b0099d8b22a2ac/lib/appium_lib/android/espresso/element/button.rb#L77) android
|
2615
2539
|
|
2616
2540
|
> def button_exact(value)
|
2617
2541
|
|
@@ -2627,7 +2551,7 @@ __Returns:__
|
|
2627
2551
|
|
2628
2552
|
--
|
2629
2553
|
|
2630
|
-
##### [buttons_exact](https://github.com/appium/ruby_lib/blob/
|
2554
|
+
##### [buttons_exact](https://github.com/appium/ruby_lib/blob/65f690f1fec62a5f8868270287b0099d8b22a2ac/lib/appium_lib/android/espresso/element/button.rb#L89) android
|
2631
2555
|
|
2632
2556
|
> def buttons_exact(value)
|
2633
2557
|
|
@@ -2643,7 +2567,7 @@ __Returns:__
|
|
2643
2567
|
|
2644
2568
|
--
|
2645
2569
|
|
2646
|
-
##### [_button_visible_selectors_xpath](https://github.com/appium/ruby_lib/blob/
|
2570
|
+
##### [_button_visible_selectors_xpath](https://github.com/appium/ruby_lib/blob/65f690f1fec62a5f8868270287b0099d8b22a2ac/lib/appium_lib/android/espresso/element/button.rb#L104) android
|
2647
2571
|
|
2648
2572
|
> def _button_visible_selectors_xpath(opts = {})
|
2649
2573
|
|
@@ -2651,7 +2575,7 @@ __Returns:__
|
|
2651
2575
|
|
2652
2576
|
--
|
2653
2577
|
|
2654
|
-
##### [_button_exact_string_xpath](https://github.com/appium/ruby_lib/blob/
|
2578
|
+
##### [_button_exact_string_xpath](https://github.com/appium/ruby_lib/blob/65f690f1fec62a5f8868270287b0099d8b22a2ac/lib/appium_lib/android/espresso/element/button.rb#L125) android
|
2655
2579
|
|
2656
2580
|
> def _button_exact_string_xpath(class_name, value)
|
2657
2581
|
|
@@ -2659,7 +2583,7 @@ __Returns:__
|
|
2659
2583
|
|
2660
2584
|
--
|
2661
2585
|
|
2662
|
-
##### [_button_contains_string_xpath](https://github.com/appium/ruby_lib/blob/
|
2586
|
+
##### [_button_contains_string_xpath](https://github.com/appium/ruby_lib/blob/65f690f1fec62a5f8868270287b0099d8b22a2ac/lib/appium_lib/android/espresso/element/button.rb#L130) android
|
2663
2587
|
|
2664
2588
|
> def _button_contains_string_xpath(class_name, value)
|
2665
2589
|
|
@@ -2667,7 +2591,7 @@ __Returns:__
|
|
2667
2591
|
|
2668
2592
|
--
|
2669
2593
|
|
2670
|
-
##### [scroll_to](https://github.com/appium/ruby_lib/blob/
|
2594
|
+
##### [scroll_to](https://github.com/appium/ruby_lib/blob/65f690f1fec62a5f8868270287b0099d8b22a2ac/lib/appium_lib/android/espresso/element/generic.rb#L23) android
|
2671
2595
|
|
2672
2596
|
> def scroll_to(text)
|
2673
2597
|
|
@@ -2684,7 +2608,7 @@ __Returns:__
|
|
2684
2608
|
|
2685
2609
|
--
|
2686
2610
|
|
2687
|
-
##### [scroll_to_exact](https://github.com/appium/ruby_lib/blob/
|
2611
|
+
##### [scroll_to_exact](https://github.com/appium/ruby_lib/blob/65f690f1fec62a5f8868270287b0099d8b22a2ac/lib/appium_lib/android/espresso/element/generic.rb#L50) android
|
2688
2612
|
|
2689
2613
|
> def scroll_to_exact(text)
|
2690
2614
|
|
@@ -2701,7 +2625,7 @@ __Returns:__
|
|
2701
2625
|
|
2702
2626
|
--
|
2703
2627
|
|
2704
|
-
##### [button](https://github.com/appium/ruby_lib/blob/
|
2628
|
+
##### [button](https://github.com/appium/ruby_lib/blob/65f690f1fec62a5f8868270287b0099d8b22a2ac/lib/appium_lib/android/uiautomator2/element/button.rb#L23) android
|
2705
2629
|
|
2706
2630
|
> def button(value)
|
2707
2631
|
|
@@ -2718,7 +2642,7 @@ __Returns:__
|
|
2718
2642
|
|
2719
2643
|
--
|
2720
2644
|
|
2721
|
-
##### [buttons](https://github.com/appium/ruby_lib/blob/
|
2645
|
+
##### [buttons](https://github.com/appium/ruby_lib/blob/65f690f1fec62a5f8868270287b0099d8b22a2ac/lib/appium_lib/android/uiautomator2/element/button.rb#L44) android
|
2722
2646
|
|
2723
2647
|
> def buttons(value = false)
|
2724
2648
|
|
@@ -2735,7 +2659,7 @@ __Returns:__
|
|
2735
2659
|
|
2736
2660
|
--
|
2737
2661
|
|
2738
|
-
##### [first_button](https://github.com/appium/ruby_lib/blob/
|
2662
|
+
##### [first_button](https://github.com/appium/ruby_lib/blob/65f690f1fec62a5f8868270287b0099d8b22a2ac/lib/appium_lib/android/uiautomator2/element/button.rb#L52) android
|
2739
2663
|
|
2740
2664
|
> def first_button
|
2741
2665
|
|
@@ -2747,7 +2671,7 @@ __Returns:__
|
|
2747
2671
|
|
2748
2672
|
--
|
2749
2673
|
|
2750
|
-
##### [last_button](https://github.com/appium/ruby_lib/blob/
|
2674
|
+
##### [last_button](https://github.com/appium/ruby_lib/blob/65f690f1fec62a5f8868270287b0099d8b22a2ac/lib/appium_lib/android/uiautomator2/element/button.rb#L59) android
|
2751
2675
|
|
2752
2676
|
> def last_button
|
2753
2677
|
|
@@ -2759,7 +2683,7 @@ __Returns:__
|
|
2759
2683
|
|
2760
2684
|
--
|
2761
2685
|
|
2762
|
-
##### [button_exact](https://github.com/appium/ruby_lib/blob/
|
2686
|
+
##### [button_exact](https://github.com/appium/ruby_lib/blob/65f690f1fec62a5f8868270287b0099d8b22a2ac/lib/appium_lib/android/uiautomator2/element/button.rb#L76) android
|
2763
2687
|
|
2764
2688
|
> def button_exact(value)
|
2765
2689
|
|
@@ -2775,7 +2699,7 @@ __Returns:__
|
|
2775
2699
|
|
2776
2700
|
--
|
2777
2701
|
|
2778
|
-
##### [buttons_exact](https://github.com/appium/ruby_lib/blob/
|
2702
|
+
##### [buttons_exact](https://github.com/appium/ruby_lib/blob/65f690f1fec62a5f8868270287b0099d8b22a2ac/lib/appium_lib/android/uiautomator2/element/button.rb#L84) android
|
2779
2703
|
|
2780
2704
|
> def buttons_exact(value)
|
2781
2705
|
|