appium_lib 9.4.9 → 9.4.10
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.github/ISSUE_TEMPLATE.md +21 -0
- data/.gitignore +3 -1
- data/CHANGELOG.md +9 -0
- data/Rakefile +9 -1
- data/appium_lib.gemspec +1 -1
- data/contributing.md +14 -1
- data/docs/android_docs.md +256 -229
- data/docs/ios_docs.md +282 -255
- data/lib/appium_lib.rb +0 -1
- data/lib/appium_lib/android/helper.rb +1 -7
- data/lib/appium_lib/common/error.rb +3 -0
- data/lib/appium_lib/common/patch.rb +17 -7
- data/lib/appium_lib/common/version.rb +2 -2
- data/lib/appium_lib/driver.rb +77 -40
- data/lib/appium_lib/ios/mobile_methods.rb +20 -14
- data/lib/appium_lib/ios/xcuitest_gestures.rb +182 -180
- data/lib/appium_lib/logger.rb +6 -0
- data/release_notes.md +6 -0
- metadata +3 -3
- data/lib/appium_lib/rails/duplicable.rb +0 -118
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 7733a1062ba39abcb5a9a81a90b4e394b8da2c20
|
4
|
+
data.tar.gz: dc0aaca9008364b095924814610a5b4802fa8a0e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 1ba4e8f54781a4bc1e8290f1fbec69e3893093d2b99c1029b60b04b03c97d8b3a4848ca7289e180e437033a068b2f872f19880db280108567fb33068d2f01ade
|
7
|
+
data.tar.gz: 28d4375a0a06d316fa78931b74125b969eafd6ce3592c8faeb5dc149710d9f4da01fcadc50b572d3247d51f110380d3619b707610215cb31ae3dfac45a1d102c
|
@@ -0,0 +1,21 @@
|
|
1
|
+
## This is a
|
2
|
+
* [ ] Bug report
|
3
|
+
* [ ] Question
|
4
|
+
* [ ] Freature Request
|
5
|
+
|
6
|
+
## Summary
|
7
|
+
|
8
|
+
## Environment
|
9
|
+
* Appium version (or git revision):
|
10
|
+
* `ruby_lib` version:
|
11
|
+
* Mobile platform/version/device under test:
|
12
|
+
|
13
|
+
## Actual behaviour and steps to reproduce
|
14
|
+
|
15
|
+
## Expected behaviour
|
16
|
+
|
17
|
+
## Link to Appium/Ruby logs
|
18
|
+
|
19
|
+
Create a [GIST](https://gist.github.com) which is a paste of your _full_ Appium logs, and link them here.
|
20
|
+
|
21
|
+
## Any additional comments
|
data/.gitignore
CHANGED
data/CHANGELOG.md
CHANGED
@@ -3,6 +3,15 @@ Commit based release not is [release_notes.md](./release_notes.md)
|
|
3
3
|
|
4
4
|
Release tags are https://github.com/appium/ruby_lib/releases .
|
5
5
|
|
6
|
+
## v9.4.10
|
7
|
+
### 1. Enhancements
|
8
|
+
- some refactors
|
9
|
+
- add some documentations
|
10
|
+
|
11
|
+
### 2. Bug fixes
|
12
|
+
|
13
|
+
### 3. Deprecations
|
14
|
+
|
6
15
|
## v9.4.9
|
7
16
|
### 1. Enhancements
|
8
17
|
|
data/Rakefile
CHANGED
@@ -212,7 +212,7 @@ task :notes do
|
|
212
212
|
hex = line.match(/[a-zA-Z0-9]+/)[0]
|
213
213
|
# use first 7 chars to match GitHub
|
214
214
|
comment = line.gsub(hex, '').strip
|
215
|
-
next if comment
|
215
|
+
next if skip_release_note?(comment)
|
216
216
|
|
217
217
|
issue_num = comment.slice(/\(#[0-9]+\)/)
|
218
218
|
# If the issue_num is pull request, GitHub redirects to the pull request.
|
@@ -222,6 +222,7 @@ task :notes do
|
|
222
222
|
else
|
223
223
|
comment
|
224
224
|
end
|
225
|
+
|
225
226
|
new_data += "- [#{hex[0...7]}](https://github.com/appium/#{gh_name}/commit/#{hex}) #{comment_note}\n"
|
226
227
|
end
|
227
228
|
data = new_data + "\n"
|
@@ -233,6 +234,13 @@ task :notes do
|
|
233
234
|
File.open('release_notes.md', 'w') { |f| f.write notes.to_s.strip }
|
234
235
|
end
|
235
236
|
|
237
|
+
# Return true if the comment is equal to 'Update release notes'
|
238
|
+
# Return true if the comment starts with /^(docs|style|chore):/
|
239
|
+
def skip_release_note?(comment)
|
240
|
+
return true if comment == 'Update release notes'
|
241
|
+
comment =~ /^(docs|style|chore|test):/ ? true : false
|
242
|
+
end
|
243
|
+
|
236
244
|
# Used to purge byte order marks that mess up YARD
|
237
245
|
def remove_non_ascii
|
238
246
|
Dir.glob('./**/*.rb') do |path|
|
data/appium_lib.gemspec
CHANGED
@@ -31,5 +31,5 @@ Gem::Specification.new do |s|
|
|
31
31
|
s.add_development_dependency 'rainbow', '~> 2.1.0'
|
32
32
|
s.add_development_dependency 'pry'
|
33
33
|
|
34
|
-
s.files = `git ls-files`.split("\n").select { |v| !v.match /\A^(ios_tests|android_tests|grid)\/.+/ }
|
34
|
+
s.files = `git ls-files`.split("\n").select { |v| !v.match /\A^(ios_tests|android_tests|grid|test_apps)\/.+/ }
|
35
35
|
end
|
data/contributing.md
CHANGED
@@ -22,7 +22,20 @@ Android tests require running on physical hardware with Android 5.0 (API 21). Th
|
|
22
22
|
- `cd android_tests`
|
23
23
|
- `flake 3 android` - Run all the Android tests up to 3 times
|
24
24
|
|
25
|
-
|
25
|
+
## Commit Message Format
|
26
|
+
- `#{type}: some commit messages`
|
27
|
+
- `docs`, `style`, `test` and `chore` are ignored when generating release note with `rake release`.
|
28
|
+
|
29
|
+
### Type
|
30
|
+
- `feature`: A new feature
|
31
|
+
- `fix`: A bug fix
|
32
|
+
- `docs`: Documentation only changes
|
33
|
+
- `style`: Changes that do not affect the meaning of the code (white-space, formatting, missing semi-colons, etc)
|
34
|
+
- `refactor`: A code change that neither fixes a bug nor adds a feature
|
35
|
+
- `test`: Adding missing or correcting existing tests
|
36
|
+
- `chore`: Changes to the build process or auxiliary tools and libraries such as documentation generation
|
37
|
+
|
38
|
+
## Publishing
|
26
39
|
|
27
40
|
0. Ensure you have `~/.gem/credentials` If not run [the following command](http://guides.rubygems.org/make-your-own-gem/) (replace username with your rubygems user)
|
28
41
|
> $ curl -u username https://rubygems.org/api/v1/api_key.yaml >
|
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/bc50f6f1315fb3238d9e7614cf2545d06d979ae7/lib/appium_lib/driver.rb#L76)
|
2
2
|
|
3
3
|
> def self.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/bc50f6f1315fb3238d9e7614cf2545d06d979ae7/lib/appium_lib/driver.rb#L112)
|
31
31
|
|
32
32
|
> def self.load_settings(opts = {})
|
33
33
|
|
@@ -57,7 +57,7 @@ __Returns:__
|
|
57
57
|
|
58
58
|
--
|
59
59
|
|
60
|
-
##### [expand_required_files](https://github.com/appium/ruby_lib/blob/
|
60
|
+
##### [expand_required_files](https://github.com/appium/ruby_lib/blob/bc50f6f1315fb3238d9e7614cf2545d06d979ae7/lib/appium_lib/driver.rb#L118)
|
61
61
|
|
62
62
|
> def self.expand_required_files(base_dir, file_paths)
|
63
63
|
|
@@ -75,7 +75,7 @@ __Returns:__
|
|
75
75
|
|
76
76
|
--
|
77
77
|
|
78
|
-
##### [symbolize_keys](https://github.com/appium/ruby_lib/blob/
|
78
|
+
##### [symbolize_keys](https://github.com/appium/ruby_lib/blob/bc50f6f1315fb3238d9e7614cf2545d06d979ae7/lib/appium_lib/driver.rb#L150)
|
79
79
|
|
80
80
|
> def self.symbolize_keys(hash)
|
81
81
|
|
@@ -86,7 +86,7 @@ https://github.com/rails/docrails/blob/a3b1105ada3da64acfa3843b164b14b734456a50/
|
|
86
86
|
|
87
87
|
--
|
88
88
|
|
89
|
-
##### [promote_singleton_appium_methods](https://github.com/appium/ruby_lib/blob/
|
89
|
+
##### [promote_singleton_appium_methods](https://github.com/appium/ruby_lib/blob/bc50f6f1315fb3238d9e7614cf2545d06d979ae7/lib/appium_lib/driver.rb#L171)
|
90
90
|
|
91
91
|
> def self.promote_singleton_appium_methods(modules)
|
92
92
|
|
@@ -104,7 +104,7 @@ otherwise, the array of modules will be used as the promotion target.
|
|
104
104
|
|
105
105
|
--
|
106
106
|
|
107
|
-
##### [promote_appium_methods](https://github.com/appium/ruby_lib/blob/
|
107
|
+
##### [promote_appium_methods](https://github.com/appium/ruby_lib/blob/bc50f6f1315fb3238d9e7614cf2545d06d979ae7/lib/appium_lib/driver.rb#L224)
|
108
108
|
|
109
109
|
> def self.promote_appium_methods(class_array)
|
110
110
|
|
@@ -134,7 +134,19 @@ __Parameters:__
|
|
134
134
|
|
135
135
|
--
|
136
136
|
|
137
|
-
##### [
|
137
|
+
##### [selenium_webdriver_version_more?](https://github.com/appium/ruby_lib/blob/bc50f6f1315fb3238d9e7614cf2545d06d979ae7/lib/appium_lib/driver.rb#L251)
|
138
|
+
|
139
|
+
> def self.selenium_webdriver_version_more?(version)
|
140
|
+
|
141
|
+
|
142
|
+
|
143
|
+
__Returns:__
|
144
|
+
|
145
|
+
[Boolean]
|
146
|
+
|
147
|
+
--
|
148
|
+
|
149
|
+
##### [init_caps_for_appium](https://github.com/appium/ruby_lib/blob/bc50f6f1315fb3238d9e7614cf2545d06d979ae7/lib/appium_lib/driver.rb#L264)
|
138
150
|
|
139
151
|
> def self.init_caps_for_appium(opts_caps = {})
|
140
152
|
|
@@ -153,7 +165,7 @@ __Returns:__
|
|
153
165
|
|
154
166
|
--
|
155
167
|
|
156
|
-
##### [global_webdriver_http_sleep](https://github.com/appium/ruby_lib/blob/
|
168
|
+
##### [global_webdriver_http_sleep](https://github.com/appium/ruby_lib/blob/bc50f6f1315fb3238d9e7614cf2545d06d979ae7/lib/appium_lib/driver.rb#L282)
|
157
169
|
|
158
170
|
> def global_webdriver_http_sleep
|
159
171
|
|
@@ -161,7 +173,7 @@ The amount to sleep in seconds before every webdriver http call.
|
|
161
173
|
|
162
174
|
--
|
163
175
|
|
164
|
-
##### [global_webdriver_http_sleep=](https://github.com/appium/ruby_lib/blob/
|
176
|
+
##### [global_webdriver_http_sleep=](https://github.com/appium/ruby_lib/blob/bc50f6f1315fb3238d9e7614cf2545d06d979ae7/lib/appium_lib/driver.rb#L282)
|
165
177
|
|
166
178
|
> def global_webdriver_http_sleep=(value)
|
167
179
|
|
@@ -169,7 +181,7 @@ The amount to sleep in seconds before every webdriver http call.
|
|
169
181
|
|
170
182
|
--
|
171
183
|
|
172
|
-
##### [caps](https://github.com/appium/ruby_lib/blob/
|
184
|
+
##### [caps](https://github.com/appium/ruby_lib/blob/bc50f6f1315fb3238d9e7614cf2545d06d979ae7/lib/appium_lib/driver.rb#L284)
|
173
185
|
|
174
186
|
> def caps
|
175
187
|
|
@@ -177,7 +189,7 @@ Selenium webdriver capabilities
|
|
177
189
|
|
178
190
|
--
|
179
191
|
|
180
|
-
##### [custom_url](https://github.com/appium/ruby_lib/blob/
|
192
|
+
##### [custom_url](https://github.com/appium/ruby_lib/blob/bc50f6f1315fb3238d9e7614cf2545d06d979ae7/lib/appium_lib/driver.rb#L286)
|
181
193
|
|
182
194
|
> def custom_url
|
183
195
|
|
@@ -185,7 +197,7 @@ Custom URL for the selenium server
|
|
185
197
|
|
186
198
|
--
|
187
199
|
|
188
|
-
##### [export_session](https://github.com/appium/ruby_lib/blob/
|
200
|
+
##### [export_session](https://github.com/appium/ruby_lib/blob/bc50f6f1315fb3238d9e7614cf2545d06d979ae7/lib/appium_lib/driver.rb#L288)
|
189
201
|
|
190
202
|
> def export_session
|
191
203
|
|
@@ -193,7 +205,7 @@ Export session id to textfile in /tmp for 3rd party tools
|
|
193
205
|
|
194
206
|
--
|
195
207
|
|
196
|
-
##### [default_wait](https://github.com/appium/ruby_lib/blob/
|
208
|
+
##### [default_wait](https://github.com/appium/ruby_lib/blob/bc50f6f1315fb3238d9e7614cf2545d06d979ae7/lib/appium_lib/driver.rb#L293)
|
197
209
|
|
198
210
|
> def default_wait
|
199
211
|
|
@@ -207,7 +219,7 @@ __Returns:__
|
|
207
219
|
|
208
220
|
--
|
209
221
|
|
210
|
-
##### [sauce_username](https://github.com/appium/ruby_lib/blob/
|
222
|
+
##### [sauce_username](https://github.com/appium/ruby_lib/blob/bc50f6f1315fb3238d9e7614cf2545d06d979ae7/lib/appium_lib/driver.rb#L295)
|
211
223
|
|
212
224
|
> def sauce_username
|
213
225
|
|
@@ -215,7 +227,7 @@ Username for use on Sauce Labs. Set `false` to disable Sauce, even when SAUCE_US
|
|
215
227
|
|
216
228
|
--
|
217
229
|
|
218
|
-
##### [sauce_access_key](https://github.com/appium/ruby_lib/blob/
|
230
|
+
##### [sauce_access_key](https://github.com/appium/ruby_lib/blob/bc50f6f1315fb3238d9e7614cf2545d06d979ae7/lib/appium_lib/driver.rb#L297)
|
219
231
|
|
220
232
|
> def sauce_access_key
|
221
233
|
|
@@ -223,7 +235,7 @@ Access Key for use on Sauce Labs. Set `false` to disable Sauce, even when SAUCE_
|
|
223
235
|
|
224
236
|
--
|
225
237
|
|
226
|
-
##### [sauce_endpoint](https://github.com/appium/ruby_lib/blob/
|
238
|
+
##### [sauce_endpoint](https://github.com/appium/ruby_lib/blob/bc50f6f1315fb3238d9e7614cf2545d06d979ae7/lib/appium_lib/driver.rb#L299)
|
227
239
|
|
228
240
|
> def sauce_endpoint
|
229
241
|
|
@@ -231,7 +243,7 @@ Override the Sauce Appium endpoint to allow e.g. TestObject tests
|
|
231
243
|
|
232
244
|
--
|
233
245
|
|
234
|
-
##### [appium_port](https://github.com/appium/ruby_lib/blob/
|
246
|
+
##### [appium_port](https://github.com/appium/ruby_lib/blob/bc50f6f1315fb3238d9e7614cf2545d06d979ae7/lib/appium_lib/driver.rb#L301)
|
235
247
|
|
236
248
|
> def appium_port
|
237
249
|
|
@@ -239,7 +251,7 @@ Appium's server port
|
|
239
251
|
|
240
252
|
--
|
241
253
|
|
242
|
-
##### [appium_device](https://github.com/appium/ruby_lib/blob/
|
254
|
+
##### [appium_device](https://github.com/appium/ruby_lib/blob/bc50f6f1315fb3238d9e7614cf2545d06d979ae7/lib/appium_lib/driver.rb#L303)
|
243
255
|
|
244
256
|
> def appium_device
|
245
257
|
|
@@ -247,7 +259,7 @@ Device type to request from the appium server
|
|
247
259
|
|
248
260
|
--
|
249
261
|
|
250
|
-
##### [automation_name](https://github.com/appium/ruby_lib/blob/
|
262
|
+
##### [automation_name](https://github.com/appium/ruby_lib/blob/bc50f6f1315fb3238d9e7614cf2545d06d979ae7/lib/appium_lib/driver.rb#L306)
|
251
263
|
|
252
264
|
> def automation_name
|
253
265
|
|
@@ -256,7 +268,7 @@ If automation_name is nil, it is not set both client side and server side.
|
|
256
268
|
|
257
269
|
--
|
258
270
|
|
259
|
-
##### [appium_server_status](https://github.com/appium/ruby_lib/blob/
|
271
|
+
##### [appium_server_status](https://github.com/appium/ruby_lib/blob/bc50f6f1315fb3238d9e7614cf2545d06d979ae7/lib/appium_lib/driver.rb#L308)
|
260
272
|
|
261
273
|
> def appium_server_status
|
262
274
|
|
@@ -264,7 +276,7 @@ Appium's server version
|
|
264
276
|
|
265
277
|
--
|
266
278
|
|
267
|
-
##### [appium_debug](https://github.com/appium/ruby_lib/blob/
|
279
|
+
##### [appium_debug](https://github.com/appium/ruby_lib/blob/bc50f6f1315fb3238d9e7614cf2545d06d979ae7/lib/appium_lib/driver.rb#L310)
|
268
280
|
|
269
281
|
> def appium_debug
|
270
282
|
|
@@ -272,7 +284,7 @@ Boolean debug mode for the Appium Ruby bindings
|
|
272
284
|
|
273
285
|
--
|
274
286
|
|
275
|
-
##### [listener](https://github.com/appium/ruby_lib/blob/
|
287
|
+
##### [listener](https://github.com/appium/ruby_lib/blob/bc50f6f1315fb3238d9e7614cf2545d06d979ae7/lib/appium_lib/driver.rb#L312)
|
276
288
|
|
277
289
|
> def listener
|
278
290
|
|
@@ -280,7 +292,7 @@ instance of AbstractEventListener for logging support
|
|
280
292
|
|
281
293
|
--
|
282
294
|
|
283
|
-
##### [driver](https://github.com/appium/ruby_lib/blob/
|
295
|
+
##### [driver](https://github.com/appium/ruby_lib/blob/bc50f6f1315fb3238d9e7614cf2545d06d979ae7/lib/appium_lib/driver.rb#L315)
|
284
296
|
|
285
297
|
> def driver
|
286
298
|
|
@@ -292,7 +304,7 @@ __Returns:__
|
|
292
304
|
|
293
305
|
--
|
294
306
|
|
295
|
-
##### [http_client](https://github.com/appium/ruby_lib/blob/
|
307
|
+
##### [http_client](https://github.com/appium/ruby_lib/blob/bc50f6f1315fb3238d9e7614cf2545d06d979ae7/lib/appium_lib/driver.rb#L318)
|
296
308
|
|
297
309
|
> def http_client
|
298
310
|
|
@@ -304,7 +316,7 @@ __Returns:__
|
|
304
316
|
|
305
317
|
--
|
306
318
|
|
307
|
-
##### [appium_wait_timeout](https://github.com/appium/ruby_lib/blob/
|
319
|
+
##### [appium_wait_timeout](https://github.com/appium/ruby_lib/blob/bc50f6f1315fb3238d9e7614cf2545d06d979ae7/lib/appium_lib/driver.rb#L323)
|
308
320
|
|
309
321
|
> def appium_wait_timeout
|
310
322
|
|
@@ -318,7 +330,7 @@ __Returns:__
|
|
318
330
|
|
319
331
|
--
|
320
332
|
|
321
|
-
##### [appium_wait_interval](https://github.com/appium/ruby_lib/blob/
|
333
|
+
##### [appium_wait_interval](https://github.com/appium/ruby_lib/blob/bc50f6f1315fb3238d9e7614cf2545d06d979ae7/lib/appium_lib/driver.rb#L328)
|
322
334
|
|
323
335
|
> def appium_wait_interval
|
324
336
|
|
@@ -332,7 +344,7 @@ __Returns:__
|
|
332
344
|
|
333
345
|
--
|
334
346
|
|
335
|
-
##### [initialize](https://github.com/appium/ruby_lib/blob/
|
347
|
+
##### [initialize](https://github.com/appium/ruby_lib/blob/bc50f6f1315fb3238d9e7614cf2545d06d979ae7/lib/appium_lib/driver.rb#L368)
|
336
348
|
|
337
349
|
> def initialize(opts = {})
|
338
350
|
|
@@ -348,7 +360,15 @@ __Returns:__
|
|
348
360
|
|
349
361
|
--
|
350
362
|
|
351
|
-
##### [
|
363
|
+
##### [set_appium_lib_specific_values](https://github.com/appium/ruby_lib/blob/bc50f6f1315fb3238d9e7614cf2545d06d979ae7/lib/appium_lib/driver.rb#L434)
|
364
|
+
|
365
|
+
> def set_appium_lib_specific_values(appium_lib_opts)
|
366
|
+
|
367
|
+
|
368
|
+
|
369
|
+
--
|
370
|
+
|
371
|
+
##### [driver_attributes](https://github.com/appium/ruby_lib/blob/bc50f6f1315fb3238d9e7614cf2545d06d979ae7/lib/appium_lib/driver.rb#L460)
|
352
372
|
|
353
373
|
> def driver_attributes
|
354
374
|
|
@@ -356,7 +376,7 @@ Returns a hash of the driver attributes
|
|
356
376
|
|
357
377
|
--
|
358
378
|
|
359
|
-
##### [device_is_android?](https://github.com/appium/ruby_lib/blob/
|
379
|
+
##### [device_is_android?](https://github.com/appium/ruby_lib/blob/bc50f6f1315fb3238d9e7614cf2545d06d979ae7/lib/appium_lib/driver.rb#L479)
|
360
380
|
|
361
381
|
> def device_is_android?
|
362
382
|
|
@@ -368,7 +388,7 @@ __Returns:__
|
|
368
388
|
|
369
389
|
--
|
370
390
|
|
371
|
-
##### [automation_name_is_xcuitest?](https://github.com/appium/ruby_lib/blob/
|
391
|
+
##### [automation_name_is_xcuitest?](https://github.com/appium/ruby_lib/blob/bc50f6f1315fb3238d9e7614cf2545d06d979ae7/lib/appium_lib/driver.rb#L485)
|
372
392
|
|
373
393
|
> def automation_name_is_xcuitest?
|
374
394
|
|
@@ -380,7 +400,7 @@ __Returns:__
|
|
380
400
|
|
381
401
|
--
|
382
402
|
|
383
|
-
##### [automation_name_is_uiautomator2?](https://github.com/appium/ruby_lib/blob/
|
403
|
+
##### [automation_name_is_uiautomator2?](https://github.com/appium/ruby_lib/blob/bc50f6f1315fb3238d9e7614cf2545d06d979ae7/lib/appium_lib/driver.rb#L491)
|
384
404
|
|
385
405
|
> def automation_name_is_uiautomator2?
|
386
406
|
|
@@ -392,7 +412,7 @@ __Returns:__
|
|
392
412
|
|
393
413
|
--
|
394
414
|
|
395
|
-
##### [check_server_version_xcuitest](https://github.com/appium/ruby_lib/blob/
|
415
|
+
##### [check_server_version_xcuitest](https://github.com/appium/ruby_lib/blob/bc50f6f1315fb3238d9e7614cf2545d06d979ae7/lib/appium_lib/driver.rb#L498)
|
396
416
|
|
397
417
|
> def check_server_version_xcuitest
|
398
418
|
|
@@ -405,7 +425,7 @@ __Returns:__
|
|
405
425
|
|
406
426
|
--
|
407
427
|
|
408
|
-
##### [appium_server_version](https://github.com/appium/ruby_lib/blob/
|
428
|
+
##### [appium_server_version](https://github.com/appium/ruby_lib/blob/bc50f6f1315fb3238d9e7614cf2545d06d979ae7/lib/appium_lib/driver.rb#L525)
|
409
429
|
|
410
430
|
> def appium_server_version
|
411
431
|
|
@@ -432,7 +452,7 @@ __Returns:__
|
|
432
452
|
|
433
453
|
--
|
434
454
|
|
435
|
-
##### [appium_client_version](https://github.com/appium/ruby_lib/blob/
|
455
|
+
##### [appium_client_version](https://github.com/appium/ruby_lib/blob/bc50f6f1315fb3238d9e7614cf2545d06d979ae7/lib/appium_lib/driver.rb#L546)
|
436
456
|
|
437
457
|
> def appium_client_version
|
438
458
|
|
@@ -450,7 +470,7 @@ __Returns:__
|
|
450
470
|
|
451
471
|
--
|
452
472
|
|
453
|
-
##### [absolute_app_path](https://github.com/appium/ruby_lib/blob/
|
473
|
+
##### [absolute_app_path](https://github.com/appium/ruby_lib/blob/bc50f6f1315fb3238d9e7614cf2545d06d979ae7/lib/appium_lib/driver.rb#L558)
|
454
474
|
|
455
475
|
> def self.absolute_app_path(opts)
|
456
476
|
|
@@ -467,7 +487,7 @@ __Returns:__
|
|
467
487
|
|
468
488
|
--
|
469
489
|
|
470
|
-
##### [server_url](https://github.com/appium/ruby_lib/blob/
|
490
|
+
##### [server_url](https://github.com/appium/ruby_lib/blob/bc50f6f1315fb3238d9e7614cf2545d06d979ae7/lib/appium_lib/driver.rb#L591)
|
471
491
|
|
472
492
|
> def server_url
|
473
493
|
|
@@ -479,7 +499,7 @@ __Returns:__
|
|
479
499
|
|
480
500
|
--
|
481
501
|
|
482
|
-
##### [restart](https://github.com/appium/ruby_lib/blob/
|
502
|
+
##### [restart](https://github.com/appium/ruby_lib/blob/bc50f6f1315fb3238d9e7614cf2545d06d979ae7/lib/appium_lib/driver.rb#L602)
|
483
503
|
|
484
504
|
> def restart
|
485
505
|
|
@@ -491,7 +511,7 @@ __Returns:__
|
|
491
511
|
|
492
512
|
--
|
493
513
|
|
494
|
-
##### [screenshot](https://github.com/appium/ruby_lib/blob/
|
514
|
+
##### [screenshot](https://github.com/appium/ruby_lib/blob/bc50f6f1315fb3238d9e7614cf2545d06d979ae7/lib/appium_lib/driver.rb#L613)
|
495
515
|
|
496
516
|
> def screenshot(png_save_path)
|
497
517
|
|
@@ -509,7 +529,7 @@ __Returns:__
|
|
509
529
|
|
510
530
|
--
|
511
531
|
|
512
|
-
##### [driver_quit](https://github.com/appium/ruby_lib/blob/
|
532
|
+
##### [driver_quit](https://github.com/appium/ruby_lib/blob/bc50f6f1315fb3238d9e7614cf2545d06d979ae7/lib/appium_lib/driver.rb#L620)
|
513
533
|
|
514
534
|
> def driver_quit
|
515
535
|
|
@@ -521,11 +541,12 @@ __Returns:__
|
|
521
541
|
|
522
542
|
--
|
523
543
|
|
524
|
-
##### [start_driver](https://github.com/appium/ruby_lib/blob/
|
544
|
+
##### [start_driver](https://github.com/appium/ruby_lib/blob/bc50f6f1315fb3238d9e7614cf2545d06d979ae7/lib/appium_lib/driver.rb#L651)
|
525
545
|
|
526
|
-
> def start_driver
|
546
|
+
> def start_driver(http_client =
|
527
547
|
|
528
548
|
Creates a new global driver and quits the old one if it exists.
|
549
|
+
You can customise http_client as the following
|
529
550
|
|
530
551
|
__Returns:__
|
531
552
|
|
@@ -533,7 +554,7 @@ __Returns:__
|
|
533
554
|
|
534
555
|
--
|
535
556
|
|
536
|
-
##### [no_wait](https://github.com/appium/ruby_lib/blob/
|
557
|
+
##### [no_wait](https://github.com/appium/ruby_lib/blob/bc50f6f1315fb3238d9e7614cf2545d06d979ae7/lib/appium_lib/driver.rb#L685)
|
537
558
|
|
538
559
|
> def no_wait
|
539
560
|
|
@@ -541,7 +562,7 @@ Set implicit wait to zero.
|
|
541
562
|
|
542
563
|
--
|
543
564
|
|
544
|
-
##### [set_wait](https://github.com/appium/ruby_lib/blob/
|
565
|
+
##### [set_wait](https://github.com/appium/ruby_lib/blob/bc50f6f1315fb3238d9e7614cf2545d06d979ae7/lib/appium_lib/driver.rb#L699)
|
545
566
|
|
546
567
|
> def set_wait(timeout = nil)
|
547
568
|
|
@@ -563,7 +584,7 @@ __Returns:__
|
|
563
584
|
|
564
585
|
--
|
565
586
|
|
566
|
-
##### [exists](https://github.com/appium/ruby_lib/blob/
|
587
|
+
##### [exists](https://github.com/appium/ruby_lib/blob/bc50f6f1315fb3238d9e7614cf2545d06d979ae7/lib/appium_lib/driver.rb#L716)
|
567
588
|
|
568
589
|
> def exists(pre_check = 0, post_check = @default_wait)
|
569
590
|
|
@@ -587,7 +608,7 @@ __Returns:__
|
|
587
608
|
|
588
609
|
--
|
589
610
|
|
590
|
-
##### [execute_script](https://github.com/appium/ruby_lib/blob/
|
611
|
+
##### [execute_script](https://github.com/appium/ruby_lib/blob/bc50f6f1315fb3238d9e7614cf2545d06d979ae7/lib/appium_lib/driver.rb#L740)
|
591
612
|
|
592
613
|
> def execute_script(script, *args)
|
593
614
|
|
@@ -605,7 +626,7 @@ __Returns:__
|
|
605
626
|
|
606
627
|
--
|
607
628
|
|
608
|
-
##### [find_elements](https://github.com/appium/ruby_lib/blob/
|
629
|
+
##### [find_elements](https://github.com/appium/ruby_lib/blob/bc50f6f1315fb3238d9e7614cf2545d06d979ae7/lib/appium_lib/driver.rb#L762)
|
609
630
|
|
610
631
|
> def find_elements(*args)
|
611
632
|
|
@@ -631,7 +652,7 @@ __Returns:__
|
|
631
652
|
|
632
653
|
--
|
633
654
|
|
634
|
-
##### [find_element](https://github.com/appium/ruby_lib/blob/
|
655
|
+
##### [find_element](https://github.com/appium/ruby_lib/blob/bc50f6f1315fb3238d9e7614cf2545d06d979ae7/lib/appium_lib/driver.rb#L777)
|
635
656
|
|
636
657
|
> def find_element(*args)
|
637
658
|
|
@@ -652,7 +673,7 @@ __Returns:__
|
|
652
673
|
|
653
674
|
--
|
654
675
|
|
655
|
-
##### [set_location](https://github.com/appium/ruby_lib/blob/
|
676
|
+
##### [set_location](https://github.com/appium/ruby_lib/blob/bc50f6f1315fb3238d9e7614cf2545d06d979ae7/lib/appium_lib/driver.rb#L790)
|
656
677
|
|
657
678
|
> def set_location(opts = {})
|
658
679
|
|
@@ -668,7 +689,7 @@ __Returns:__
|
|
668
689
|
|
669
690
|
--
|
670
691
|
|
671
|
-
##### [x](https://github.com/appium/ruby_lib/blob/
|
692
|
+
##### [x](https://github.com/appium/ruby_lib/blob/bc50f6f1315fb3238d9e7614cf2545d06d979ae7/lib/appium_lib/driver.rb#L800)
|
672
693
|
|
673
694
|
> def x
|
674
695
|
|
@@ -681,7 +702,15 @@ __Returns:__
|
|
681
702
|
|
682
703
|
--
|
683
704
|
|
684
|
-
##### [
|
705
|
+
##### [write_session_id](https://github.com/appium/ruby_lib/blob/bc50f6f1315fb3238d9e7614cf2545d06d979ae7/lib/appium_lib/driver.rb#L807)
|
706
|
+
|
707
|
+
> def write_session_id(session_id)
|
708
|
+
|
709
|
+
|
710
|
+
|
711
|
+
--
|
712
|
+
|
713
|
+
##### [set_automation_name_if_nil](https://github.com/appium/ruby_lib/blob/bc50f6f1315fb3238d9e7614cf2545d06d979ae7/lib/appium_lib/driver.rb#L816)
|
685
714
|
|
686
715
|
> def set_automation_name_if_nil
|
687
716
|
|
@@ -690,7 +719,7 @@ Since @automation_name is set only client side before start_driver is called.
|
|
690
719
|
|
691
720
|
--
|
692
721
|
|
693
|
-
##### [logger=](https://github.com/appium/ruby_lib/blob/
|
722
|
+
##### [logger=](https://github.com/appium/ruby_lib/blob/bc50f6f1315fb3238d9e7614cf2545d06d979ae7/lib/appium_lib/logger.rb#L18)
|
694
723
|
|
695
724
|
> def logger=(value)
|
696
725
|
|
@@ -702,7 +731,7 @@ __Parameters:__
|
|
702
731
|
|
703
732
|
--
|
704
733
|
|
705
|
-
##### [logger](https://github.com/appium/ruby_lib/blob/
|
734
|
+
##### [logger](https://github.com/appium/ruby_lib/blob/bc50f6f1315fb3238d9e7614cf2545d06d979ae7/lib/appium_lib/logger.rb#L22)
|
706
735
|
|
707
736
|
> def logger
|
708
737
|
|
@@ -710,7 +739,7 @@ __Parameters:__
|
|
710
739
|
|
711
740
|
--
|
712
741
|
|
713
|
-
##### [app_strings](https://github.com/appium/ruby_lib/blob/
|
742
|
+
##### [app_strings](https://github.com/appium/ruby_lib/blob/bc50f6f1315fb3238d9e7614cf2545d06d979ae7/lib/appium_lib/device/device.rb#L7)
|
714
743
|
|
715
744
|
> def app_strings
|
716
745
|
|
@@ -721,7 +750,7 @@ app_strings #=> "TransitionsTitle"=>"Transitions", "WebTitle"=>"Web"
|
|
721
750
|
|
722
751
|
--
|
723
752
|
|
724
|
-
##### [background_app](https://github.com/appium/ruby_lib/blob/
|
753
|
+
##### [background_app](https://github.com/appium/ruby_lib/blob/bc50f6f1315fb3238d9e7614cf2545d06d979ae7/lib/appium_lib/device/device.rb#L13)
|
725
754
|
|
726
755
|
> def background_app
|
727
756
|
|
@@ -730,7 +759,7 @@ This is a blocking application
|
|
730
759
|
|
731
760
|
--
|
732
761
|
|
733
|
-
##### [current_activity](https://github.com/appium/ruby_lib/blob/
|
762
|
+
##### [current_activity](https://github.com/appium/ruby_lib/blob/bc50f6f1315fb3238d9e7614cf2545d06d979ae7/lib/appium_lib/device/device.rb#L24)
|
734
763
|
|
735
764
|
> def current_activity
|
736
765
|
|
@@ -745,7 +774,7 @@ __Returns:__
|
|
745
774
|
|
746
775
|
--
|
747
776
|
|
748
|
-
##### [current_package](https://github.com/appium/ruby_lib/blob/
|
777
|
+
##### [current_package](https://github.com/appium/ruby_lib/blob/bc50f6f1315fb3238d9e7614cf2545d06d979ae7/lib/appium_lib/device/device.rb#L32)
|
749
778
|
|
750
779
|
> def current_package
|
751
780
|
|
@@ -760,7 +789,7 @@ __Returns:__
|
|
760
789
|
|
761
790
|
--
|
762
791
|
|
763
|
-
##### [get_system_bars](https://github.com/appium/ruby_lib/blob/
|
792
|
+
##### [get_system_bars](https://github.com/appium/ruby_lib/blob/bc50f6f1315fb3238d9e7614cf2545d06d979ae7/lib/appium_lib/device/device.rb#L40)
|
764
793
|
|
765
794
|
> def get_system_bars
|
766
795
|
|
@@ -775,7 +804,7 @@ __Returns:__
|
|
775
804
|
|
776
805
|
--
|
777
806
|
|
778
|
-
##### [get_display_density](https://github.com/appium/ruby_lib/blob/
|
807
|
+
##### [get_display_density](https://github.com/appium/ruby_lib/blob/bc50f6f1315fb3238d9e7614cf2545d06d979ae7/lib/appium_lib/device/device.rb#L48)
|
779
808
|
|
780
809
|
> def get_display_density
|
781
810
|
|
@@ -790,7 +819,7 @@ __Returns:__
|
|
790
819
|
|
791
820
|
--
|
792
821
|
|
793
|
-
##### [is_keyboard_shown](https://github.com/appium/ruby_lib/blob/
|
822
|
+
##### [is_keyboard_shown](https://github.com/appium/ruby_lib/blob/bc50f6f1315fb3238d9e7614cf2545d06d979ae7/lib/appium_lib/device/device.rb#L56)
|
794
823
|
|
795
824
|
> def is_keyboard_shown
|
796
825
|
|
@@ -805,7 +834,7 @@ __Returns:__
|
|
805
834
|
|
806
835
|
--
|
807
836
|
|
808
|
-
##### [launch_app](https://github.com/appium/ruby_lib/blob/
|
837
|
+
##### [launch_app](https://github.com/appium/ruby_lib/blob/bc50f6f1315fb3238d9e7614cf2545d06d979ae7/lib/appium_lib/device/device.rb#L64)
|
809
838
|
|
810
839
|
> def launch_app
|
811
840
|
|
@@ -813,7 +842,7 @@ Start the simulator and application configured with desired capabilities
|
|
813
842
|
|
814
843
|
--
|
815
844
|
|
816
|
-
##### [reset](https://github.com/appium/ruby_lib/blob/
|
845
|
+
##### [reset](https://github.com/appium/ruby_lib/blob/bc50f6f1315fb3238d9e7614cf2545d06d979ae7/lib/appium_lib/device/device.rb#L67)
|
817
846
|
|
818
847
|
> def reset
|
819
848
|
|
@@ -821,7 +850,7 @@ Reset the device, relaunching the application.
|
|
821
850
|
|
822
851
|
--
|
823
852
|
|
824
|
-
##### [shake](https://github.com/appium/ruby_lib/blob/
|
853
|
+
##### [shake](https://github.com/appium/ruby_lib/blob/bc50f6f1315fb3238d9e7614cf2545d06d979ae7/lib/appium_lib/device/device.rb#L70)
|
825
854
|
|
826
855
|
> def shake
|
827
856
|
|
@@ -829,7 +858,7 @@ Cause the device to shake
|
|
829
858
|
|
830
859
|
--
|
831
860
|
|
832
|
-
##### [toggle_flight_mode](https://github.com/appium/ruby_lib/blob/
|
861
|
+
##### [toggle_flight_mode](https://github.com/appium/ruby_lib/blob/bc50f6f1315fb3238d9e7614cf2545d06d979ae7/lib/appium_lib/device/device.rb#L73)
|
833
862
|
|
834
863
|
> def toggle_flight_mode
|
835
864
|
|
@@ -837,7 +866,7 @@ Toggle flight mode on or off
|
|
837
866
|
|
838
867
|
--
|
839
868
|
|
840
|
-
##### [device_locked?](https://github.com/appium/ruby_lib/blob/
|
869
|
+
##### [device_locked?](https://github.com/appium/ruby_lib/blob/bc50f6f1315fb3238d9e7614cf2545d06d979ae7/lib/appium_lib/device/device.rb#L76)
|
841
870
|
|
842
871
|
> def device_locked?
|
843
872
|
|
@@ -845,7 +874,7 @@ Toggle flight mode on or off
|
|
845
874
|
|
846
875
|
--
|
847
876
|
|
848
|
-
##### [hide_keyboard](https://github.com/appium/ruby_lib/blob/
|
877
|
+
##### [hide_keyboard](https://github.com/appium/ruby_lib/blob/bc50f6f1315fb3238d9e7614cf2545d06d979ae7/lib/appium_lib/device/device.rb#L78)
|
849
878
|
|
850
879
|
> def hide_keyboard
|
851
880
|
|
@@ -862,7 +891,7 @@ Default for iOS is `:pressKey`. Default for Android is `:tapOutside`.
|
|
862
891
|
|
863
892
|
--
|
864
893
|
|
865
|
-
##### [press_keycode](https://github.com/appium/ruby_lib/blob/
|
894
|
+
##### [press_keycode](https://github.com/appium/ruby_lib/blob/bc50f6f1315fb3238d9e7614cf2545d06d979ae7/lib/appium_lib/device/device.rb#L91)
|
866
895
|
|
867
896
|
> def press_keycode
|
868
897
|
|
@@ -877,7 +906,7 @@ __Parameters:__
|
|
877
906
|
|
878
907
|
--
|
879
908
|
|
880
|
-
##### [long_press_keycode](https://github.com/appium/ruby_lib/blob/
|
909
|
+
##### [long_press_keycode](https://github.com/appium/ruby_lib/blob/bc50f6f1315fb3238d9e7614cf2545d06d979ae7/lib/appium_lib/device/device.rb#L97)
|
881
910
|
|
882
911
|
> def long_press_keycode
|
883
912
|
|
@@ -892,7 +921,7 @@ __Parameters:__
|
|
892
921
|
|
893
922
|
--
|
894
923
|
|
895
|
-
##### [push_file](https://github.com/appium/ruby_lib/blob/
|
924
|
+
##### [push_file](https://github.com/appium/ruby_lib/blob/bc50f6f1315fb3238d9e7614cf2545d06d979ae7/lib/appium_lib/device/device.rb#L103)
|
896
925
|
|
897
926
|
> def push_file
|
898
927
|
|
@@ -906,7 +935,7 @@ __Parameters:__
|
|
906
935
|
|
907
936
|
--
|
908
937
|
|
909
|
-
##### [pull_file](https://github.com/appium/ruby_lib/blob/
|
938
|
+
##### [pull_file](https://github.com/appium/ruby_lib/blob/bc50f6f1315fb3238d9e7614cf2545d06d979ae7/lib/appium_lib/device/device.rb#L108)
|
910
939
|
|
911
940
|
> def pull_file
|
912
941
|
|
@@ -923,7 +952,7 @@ __Parameters:__
|
|
923
952
|
|
924
953
|
--
|
925
954
|
|
926
|
-
##### [pull_folder](https://github.com/appium/ruby_lib/blob/
|
955
|
+
##### [pull_folder](https://github.com/appium/ruby_lib/blob/bc50f6f1315fb3238d9e7614cf2545d06d979ae7/lib/appium_lib/device/device.rb#L118)
|
927
956
|
|
928
957
|
> def pull_folder
|
929
958
|
|
@@ -938,7 +967,7 @@ __Parameters:__
|
|
938
967
|
|
939
968
|
--
|
940
969
|
|
941
|
-
##### [touch_id](https://github.com/appium/ruby_lib/blob/
|
970
|
+
##### [touch_id](https://github.com/appium/ruby_lib/blob/bc50f6f1315fb3238d9e7614cf2545d06d979ae7/lib/appium_lib/device/device.rb#L126)
|
942
971
|
|
943
972
|
> def touch_id
|
944
973
|
|
@@ -955,7 +984,7 @@ Defaults to true.
|
|
955
984
|
|
956
985
|
--
|
957
986
|
|
958
|
-
##### [toggle_touch_id_enrollment](https://github.com/appium/ruby_lib/blob/
|
987
|
+
##### [toggle_touch_id_enrollment](https://github.com/appium/ruby_lib/blob/bc50f6f1315fb3238d9e7614cf2545d06d979ae7/lib/appium_lib/device/device.rb#L135)
|
959
988
|
|
960
989
|
> def toggle_touch_id_enrollment
|
961
990
|
|
@@ -963,7 +992,7 @@ iOS Simulator only: Toggle touch id enrollment on an iOS Simulator.
|
|
963
992
|
|
964
993
|
--
|
965
994
|
|
966
|
-
##### [end_coverage](https://github.com/appium/ruby_lib/blob/
|
995
|
+
##### [end_coverage](https://github.com/appium/ruby_lib/blob/bc50f6f1315fb3238d9e7614cf2545d06d979ae7/lib/appium_lib/device/device.rb#L138)
|
967
996
|
|
968
997
|
> def end_coverage
|
969
998
|
|
@@ -977,7 +1006,7 @@ __Parameters:__
|
|
977
1006
|
|
978
1007
|
--
|
979
1008
|
|
980
|
-
##### [get_settings](https://github.com/appium/ruby_lib/blob/
|
1009
|
+
##### [get_settings](https://github.com/appium/ruby_lib/blob/bc50f6f1315fb3238d9e7614cf2545d06d979ae7/lib/appium_lib/device/device.rb#L143)
|
981
1010
|
|
982
1011
|
> def get_settings
|
983
1012
|
|
@@ -985,7 +1014,7 @@ Get appium Settings for current test session
|
|
985
1014
|
|
986
1015
|
--
|
987
1016
|
|
988
|
-
##### [update_settings](https://github.com/appium/ruby_lib/blob/
|
1017
|
+
##### [update_settings](https://github.com/appium/ruby_lib/blob/bc50f6f1315fb3238d9e7614cf2545d06d979ae7/lib/appium_lib/device/device.rb#L146)
|
989
1018
|
|
990
1019
|
> def update_settings
|
991
1020
|
|
@@ -997,7 +1026,7 @@ __Parameters:__
|
|
997
1026
|
|
998
1027
|
--
|
999
1028
|
|
1000
|
-
##### [start_activity](https://github.com/appium/ruby_lib/blob/
|
1029
|
+
##### [start_activity](https://github.com/appium/ruby_lib/blob/bc50f6f1315fb3238d9e7614cf2545d06d979ae7/lib/appium_lib/device/device.rb#L150)
|
1001
1030
|
|
1002
1031
|
> def start_activity
|
1003
1032
|
|
@@ -1011,7 +1040,7 @@ start_activity app_package: 'io.appium.android.apis',
|
|
1011
1040
|
|
1012
1041
|
--
|
1013
1042
|
|
1014
|
-
##### [get_network_connection](https://github.com/appium/ruby_lib/blob/
|
1043
|
+
##### [get_network_connection](https://github.com/appium/ruby_lib/blob/bc50f6f1315fb3238d9e7614cf2545d06d979ae7/lib/appium_lib/device/device.rb#L164)
|
1015
1044
|
|
1016
1045
|
> def get_network_connection
|
1017
1046
|
|
@@ -1020,7 +1049,7 @@ See set_network_connection method for return value
|
|
1020
1049
|
|
1021
1050
|
--
|
1022
1051
|
|
1023
|
-
##### [set_network_connection](https://github.com/appium/ruby_lib/blob/
|
1052
|
+
##### [set_network_connection](https://github.com/appium/ruby_lib/blob/bc50f6f1315fb3238d9e7614cf2545d06d979ae7/lib/appium_lib/device/device.rb#L168)
|
1024
1053
|
|
1025
1054
|
> def set_network_connection
|
1026
1055
|
|
@@ -1039,7 +1068,7 @@ __Parameters:__
|
|
1039
1068
|
|
1040
1069
|
--
|
1041
1070
|
|
1042
|
-
##### [set_immediate_value](https://github.com/appium/ruby_lib/blob/
|
1071
|
+
##### [set_immediate_value](https://github.com/appium/ruby_lib/blob/bc50f6f1315fb3238d9e7614cf2545d06d979ae7/lib/appium_lib/device/device.rb#L181)
|
1043
1072
|
|
1044
1073
|
> def set_immediate_value
|
1045
1074
|
|
@@ -1053,7 +1082,7 @@ set_immediate_value element, 'hello'
|
|
1053
1082
|
|
1054
1083
|
--
|
1055
1084
|
|
1056
|
-
##### [get_performance_data_types](https://github.com/appium/ruby_lib/blob/
|
1085
|
+
##### [get_performance_data_types](https://github.com/appium/ruby_lib/blob/bc50f6f1315fb3238d9e7614cf2545d06d979ae7/lib/appium_lib/device/device.rb#L190)
|
1057
1086
|
|
1058
1087
|
> def get_performance_data_types
|
1059
1088
|
|
@@ -1067,7 +1096,7 @@ get_performance_data_types #=> ["cpuinfo", "batteryinfo", "networkinfo", "memory
|
|
1067
1096
|
|
1068
1097
|
--
|
1069
1098
|
|
1070
|
-
##### [extend_search_contexts](https://github.com/appium/ruby_lib/blob/
|
1099
|
+
##### [extend_search_contexts](https://github.com/appium/ruby_lib/blob/bc50f6f1315fb3238d9e7614cf2545d06d979ae7/lib/appium_lib/device/device.rb#L453)
|
1071
1100
|
|
1072
1101
|
> def extend_search_contexts
|
1073
1102
|
|
@@ -1075,7 +1104,7 @@ get_performance_data_types #=> ["cpuinfo", "batteryinfo", "networkinfo", "memory
|
|
1075
1104
|
|
1076
1105
|
--
|
1077
1106
|
|
1078
|
-
##### [find_element_with_appium](https://github.com/appium/ruby_lib/blob/
|
1107
|
+
##### [find_element_with_appium](https://github.com/appium/ruby_lib/blob/bc50f6f1315fb3238d9e7614cf2545d06d979ae7/lib/appium_lib/device/device.rb#L453)
|
1079
1108
|
|
1080
1109
|
> def find_element_with_appium
|
1081
1110
|
|
@@ -1083,7 +1112,7 @@ get_performance_data_types #=> ["cpuinfo", "batteryinfo", "networkinfo", "memory
|
|
1083
1112
|
|
1084
1113
|
--
|
1085
1114
|
|
1086
|
-
##### [find_elements_with_appium](https://github.com/appium/ruby_lib/blob/
|
1115
|
+
##### [find_elements_with_appium](https://github.com/appium/ruby_lib/blob/bc50f6f1315fb3238d9e7614cf2545d06d979ae7/lib/appium_lib/device/device.rb#L453)
|
1087
1116
|
|
1088
1117
|
> def find_elements_with_appium
|
1089
1118
|
|
@@ -1095,7 +1124,7 @@ find_element/s_with_appium with their accessibility_id
|
|
1095
1124
|
|
1096
1125
|
--
|
1097
1126
|
|
1098
|
-
##### [add_touch_actions](https://github.com/appium/ruby_lib/blob/
|
1127
|
+
##### [add_touch_actions](https://github.com/appium/ruby_lib/blob/bc50f6f1315fb3238d9e7614cf2545d06d979ae7/lib/appium_lib/device/device.rb#L484)
|
1099
1128
|
|
1100
1129
|
> def add_touch_actions
|
1101
1130
|
|
@@ -1103,7 +1132,7 @@ find_element/s_with_appium with their accessibility_id
|
|
1103
1132
|
|
1104
1133
|
--
|
1105
1134
|
|
1106
|
-
##### [add_ime_actions](https://github.com/appium/ruby_lib/blob/
|
1135
|
+
##### [add_ime_actions](https://github.com/appium/ruby_lib/blob/bc50f6f1315fb3238d9e7614cf2545d06d979ae7/lib/appium_lib/device/device.rb#L507)
|
1107
1136
|
|
1108
1137
|
> def add_ime_actions
|
1109
1138
|
|
@@ -1111,7 +1140,7 @@ find_element/s_with_appium with their accessibility_id
|
|
1111
1140
|
|
1112
1141
|
--
|
1113
1142
|
|
1114
|
-
##### [set_context](https://github.com/appium/ruby_lib/blob/
|
1143
|
+
##### [set_context](https://github.com/appium/ruby_lib/blob/bc50f6f1315fb3238d9e7614cf2545d06d979ae7/lib/appium_lib/device/device.rb#L582)
|
1115
1144
|
|
1116
1145
|
> def set_context
|
1117
1146
|
|
@@ -1126,7 +1155,7 @@ __Parameters:__
|
|
1126
1155
|
|
1127
1156
|
--
|
1128
1157
|
|
1129
|
-
##### [current_context](https://github.com/appium/ruby_lib/blob/
|
1158
|
+
##### [current_context](https://github.com/appium/ruby_lib/blob/bc50f6f1315fb3238d9e7614cf2545d06d979ae7/lib/appium_lib/device/device.rb#L590)
|
1130
1159
|
|
1131
1160
|
> def current_context
|
1132
1161
|
|
@@ -1138,7 +1167,7 @@ __Returns:__
|
|
1138
1167
|
|
1139
1168
|
--
|
1140
1169
|
|
1141
|
-
##### [available_contexts](https://github.com/appium/ruby_lib/blob/
|
1170
|
+
##### [available_contexts](https://github.com/appium/ruby_lib/blob/bc50f6f1315fb3238d9e7614cf2545d06d979ae7/lib/appium_lib/device/device.rb#L593)
|
1142
1171
|
|
1143
1172
|
> def available_contexts
|
1144
1173
|
|
@@ -1150,7 +1179,7 @@ __Returns:__
|
|
1150
1179
|
|
1151
1180
|
--
|
1152
1181
|
|
1153
|
-
##### [within_context](https://github.com/appium/ruby_lib/blob/
|
1182
|
+
##### [within_context](https://github.com/appium/ruby_lib/blob/bc50f6f1315fb3238d9e7614cf2545d06d979ae7/lib/appium_lib/device/device.rb#L604)
|
1154
1183
|
|
1155
1184
|
> def within_context(context)
|
1156
1185
|
|
@@ -1167,7 +1196,7 @@ __Parameters:__
|
|
1167
1196
|
|
1168
1197
|
--
|
1169
1198
|
|
1170
|
-
##### [switch_to_default_context](https://github.com/appium/ruby_lib/blob/
|
1199
|
+
##### [switch_to_default_context](https://github.com/appium/ruby_lib/blob/bc50f6f1315fb3238d9e7614cf2545d06d979ae7/lib/appium_lib/device/device.rb#L617)
|
1171
1200
|
|
1172
1201
|
> def switch_to_default_context
|
1173
1202
|
|
@@ -1175,7 +1204,7 @@ Change to the default context. This is equivalent to `set_context nil`.
|
|
1175
1204
|
|
1176
1205
|
--
|
1177
1206
|
|
1178
|
-
##### [pinch](https://github.com/appium/ruby_lib/blob/
|
1207
|
+
##### [pinch](https://github.com/appium/ruby_lib/blob/bc50f6f1315fb3238d9e7614cf2545d06d979ae7/lib/appium_lib/device/multi_touch.rb#L28)
|
1179
1208
|
|
1180
1209
|
> def pinch(percentage = 25, auto_perform = true)
|
1181
1210
|
|
@@ -1194,7 +1223,7 @@ __Parameters:__
|
|
1194
1223
|
|
1195
1224
|
--
|
1196
1225
|
|
1197
|
-
##### [zoom](https://github.com/appium/ruby_lib/blob/
|
1226
|
+
##### [zoom](https://github.com/appium/ruby_lib/blob/bc50f6f1315fb3238d9e7614cf2545d06d979ae7/lib/appium_lib/device/multi_touch.rb#L57)
|
1198
1227
|
|
1199
1228
|
> def zoom(percentage = 200, auto_perform = true)
|
1200
1229
|
|
@@ -1213,7 +1242,7 @@ __Parameters:__
|
|
1213
1242
|
|
1214
1243
|
--
|
1215
1244
|
|
1216
|
-
##### [pinch_for_xcuitest](https://github.com/appium/ruby_lib/blob/
|
1245
|
+
##### [pinch_for_xcuitest](https://github.com/appium/ruby_lib/blob/bc50f6f1315fb3238d9e7614cf2545d06d979ae7/lib/appium_lib/device/multi_touch.rb#L79)
|
1217
1246
|
|
1218
1247
|
> def pinch_for_xcuitest(rate)
|
1219
1248
|
|
@@ -1221,7 +1250,7 @@ __Parameters:__
|
|
1221
1250
|
|
1222
1251
|
--
|
1223
1252
|
|
1224
|
-
##### [pinch_android](https://github.com/appium/ruby_lib/blob/
|
1253
|
+
##### [pinch_android](https://github.com/appium/ruby_lib/blob/bc50f6f1315fb3238d9e7614cf2545d06d979ae7/lib/appium_lib/device/multi_touch.rb#L94)
|
1225
1254
|
|
1226
1255
|
> def pinch_android(rate)
|
1227
1256
|
|
@@ -1229,7 +1258,7 @@ __Parameters:__
|
|
1229
1258
|
|
1230
1259
|
--
|
1231
1260
|
|
1232
|
-
##### [pinch_ios](https://github.com/appium/ruby_lib/blob/
|
1261
|
+
##### [pinch_ios](https://github.com/appium/ruby_lib/blob/bc50f6f1315fb3238d9e7614cf2545d06d979ae7/lib/appium_lib/device/multi_touch.rb#L108)
|
1233
1262
|
|
1234
1263
|
> def pinch_ios(rate)
|
1235
1264
|
|
@@ -1237,7 +1266,7 @@ __Parameters:__
|
|
1237
1266
|
|
1238
1267
|
--
|
1239
1268
|
|
1240
|
-
##### [zoom_for_xcuitest](https://github.com/appium/ruby_lib/blob/
|
1269
|
+
##### [zoom_for_xcuitest](https://github.com/appium/ruby_lib/blob/bc50f6f1315fb3238d9e7614cf2545d06d979ae7/lib/appium_lib/device/multi_touch.rb#L122)
|
1241
1270
|
|
1242
1271
|
> def zoom_for_xcuitest(rate)
|
1243
1272
|
|
@@ -1245,7 +1274,7 @@ __Parameters:__
|
|
1245
1274
|
|
1246
1275
|
--
|
1247
1276
|
|
1248
|
-
##### [zoom_android](https://github.com/appium/ruby_lib/blob/
|
1277
|
+
##### [zoom_android](https://github.com/appium/ruby_lib/blob/bc50f6f1315fb3238d9e7614cf2545d06d979ae7/lib/appium_lib/device/multi_touch.rb#L137)
|
1249
1278
|
|
1250
1279
|
> def zoom_android(rate)
|
1251
1280
|
|
@@ -1253,7 +1282,7 @@ __Parameters:__
|
|
1253
1282
|
|
1254
1283
|
--
|
1255
1284
|
|
1256
|
-
##### [zoom_ios](https://github.com/appium/ruby_lib/blob/
|
1285
|
+
##### [zoom_ios](https://github.com/appium/ruby_lib/blob/bc50f6f1315fb3238d9e7614cf2545d06d979ae7/lib/appium_lib/device/multi_touch.rb#L151)
|
1257
1286
|
|
1258
1287
|
> def zoom_ios(rate)
|
1259
1288
|
|
@@ -1261,7 +1290,7 @@ __Parameters:__
|
|
1261
1290
|
|
1262
1291
|
--
|
1263
1292
|
|
1264
|
-
##### [actions](https://github.com/appium/ruby_lib/blob/
|
1293
|
+
##### [actions](https://github.com/appium/ruby_lib/blob/bc50f6f1315fb3238d9e7614cf2545d06d979ae7/lib/appium_lib/device/multi_touch.rb#L166)
|
1265
1294
|
|
1266
1295
|
> def actions
|
1267
1296
|
|
@@ -1269,7 +1298,7 @@ self
|
|
1269
1298
|
|
1270
1299
|
--
|
1271
1300
|
|
1272
|
-
##### [initialize](https://github.com/appium/ruby_lib/blob/
|
1301
|
+
##### [initialize](https://github.com/appium/ruby_lib/blob/bc50f6f1315fb3238d9e7614cf2545d06d979ae7/lib/appium_lib/device/multi_touch.rb#L169)
|
1273
1302
|
|
1274
1303
|
> def initialize
|
1275
1304
|
|
@@ -1281,7 +1310,7 @@ __Returns:__
|
|
1281
1310
|
|
1282
1311
|
--
|
1283
1312
|
|
1284
|
-
##### [add](https://github.com/appium/ruby_lib/blob/
|
1313
|
+
##### [add](https://github.com/appium/ruby_lib/blob/bc50f6f1315fb3238d9e7614cf2545d06d979ae7/lib/appium_lib/device/multi_touch.rb#L175)
|
1285
1314
|
|
1286
1315
|
> def add(chain)
|
1287
1316
|
|
@@ -1293,7 +1322,7 @@ __Parameters:__
|
|
1293
1322
|
|
1294
1323
|
--
|
1295
1324
|
|
1296
|
-
##### [perform](https://github.com/appium/ruby_lib/blob/
|
1325
|
+
##### [perform](https://github.com/appium/ruby_lib/blob/bc50f6f1315fb3238d9e7614cf2545d06d979ae7/lib/appium_lib/device/multi_touch.rb#L180)
|
1297
1326
|
|
1298
1327
|
> def perform
|
1299
1328
|
|
@@ -1301,7 +1330,7 @@ Ask Appium to perform the actions
|
|
1301
1330
|
|
1302
1331
|
--
|
1303
1332
|
|
1304
|
-
##### [ACTIONS](https://github.com/appium/ruby_lib/blob/
|
1333
|
+
##### [ACTIONS](https://github.com/appium/ruby_lib/blob/bc50f6f1315fb3238d9e7614cf2545d06d979ae7/lib/appium_lib/device/touch_actions.rb#L22)
|
1305
1334
|
|
1306
1335
|
> ACTIONS = [:move_to, :long_press, :double_tap, :two_finger_tap, :press, :release, :tap, :wait, :perform].freeze
|
1307
1336
|
|
@@ -1309,7 +1338,7 @@ Ask Appium to perform the actions
|
|
1309
1338
|
|
1310
1339
|
--
|
1311
1340
|
|
1312
|
-
##### [COMPLEX_ACTIONS](https://github.com/appium/ruby_lib/blob/
|
1341
|
+
##### [COMPLEX_ACTIONS](https://github.com/appium/ruby_lib/blob/bc50f6f1315fb3238d9e7614cf2545d06d979ae7/lib/appium_lib/device/touch_actions.rb#L23)
|
1313
1342
|
|
1314
1343
|
> COMPLEX_ACTIONS = [:swipe].freeze
|
1315
1344
|
|
@@ -1317,7 +1346,7 @@ Ask Appium to perform the actions
|
|
1317
1346
|
|
1318
1347
|
--
|
1319
1348
|
|
1320
|
-
##### [actions](https://github.com/appium/ruby_lib/blob/
|
1349
|
+
##### [actions](https://github.com/appium/ruby_lib/blob/bc50f6f1315fb3238d9e7614cf2545d06d979ae7/lib/appium_lib/device/touch_actions.rb#L37)
|
1321
1350
|
|
1322
1351
|
> def actions
|
1323
1352
|
|
@@ -1325,7 +1354,7 @@ Returns the value of attribute actions
|
|
1325
1354
|
|
1326
1355
|
--
|
1327
1356
|
|
1328
|
-
##### [initialize](https://github.com/appium/ruby_lib/blob/
|
1357
|
+
##### [initialize](https://github.com/appium/ruby_lib/blob/bc50f6f1315fb3238d9e7614cf2545d06d979ae7/lib/appium_lib/device/touch_actions.rb#L39)
|
1329
1358
|
|
1330
1359
|
> def initialize
|
1331
1360
|
|
@@ -1337,7 +1366,7 @@ __Returns:__
|
|
1337
1366
|
|
1338
1367
|
--
|
1339
1368
|
|
1340
|
-
##### [move_to](https://github.com/appium/ruby_lib/blob/
|
1369
|
+
##### [move_to](https://github.com/appium/ruby_lib/blob/bc50f6f1315fb3238d9e7614cf2545d06d979ae7/lib/appium_lib/device/touch_actions.rb#L50)
|
1341
1370
|
|
1342
1371
|
> def move_to(opts)
|
1343
1372
|
|
@@ -1351,7 +1380,7 @@ __Parameters:__
|
|
1351
1380
|
|
1352
1381
|
--
|
1353
1382
|
|
1354
|
-
##### [long_press](https://github.com/appium/ruby_lib/blob/
|
1383
|
+
##### [long_press](https://github.com/appium/ruby_lib/blob/bc50f6f1315fb3238d9e7614cf2545d06d979ae7/lib/appium_lib/device/touch_actions.rb#L64)
|
1355
1384
|
|
1356
1385
|
> def long_press(opts)
|
1357
1386
|
|
@@ -1372,7 +1401,7 @@ __Parameters:__
|
|
1372
1401
|
|
1373
1402
|
--
|
1374
1403
|
|
1375
|
-
##### [press](https://github.com/appium/ruby_lib/blob/
|
1404
|
+
##### [press](https://github.com/appium/ruby_lib/blob/bc50f6f1315fb3238d9e7614cf2545d06d979ae7/lib/appium_lib/device/touch_actions.rb#L76)
|
1376
1405
|
|
1377
1406
|
> def press(opts)
|
1378
1407
|
|
@@ -1385,7 +1414,7 @@ __Parameters:__
|
|
1385
1414
|
|
1386
1415
|
--
|
1387
1416
|
|
1388
|
-
##### [release](https://github.com/appium/ruby_lib/blob/
|
1417
|
+
##### [release](https://github.com/appium/ruby_lib/blob/bc50f6f1315fb3238d9e7614cf2545d06d979ae7/lib/appium_lib/device/touch_actions.rb#L87)
|
1389
1418
|
|
1390
1419
|
> def release(opts = nil)
|
1391
1420
|
|
@@ -1397,7 +1426,7 @@ __Parameters:__
|
|
1397
1426
|
|
1398
1427
|
--
|
1399
1428
|
|
1400
|
-
##### [tap](https://github.com/appium/ruby_lib/blob/
|
1429
|
+
##### [tap](https://github.com/appium/ruby_lib/blob/bc50f6f1315fb3238d9e7614cf2545d06d979ae7/lib/appium_lib/device/touch_actions.rb#L99)
|
1401
1430
|
|
1402
1431
|
> def tap(opts)
|
1403
1432
|
|
@@ -1410,7 +1439,7 @@ __Parameters:__
|
|
1410
1439
|
|
1411
1440
|
--
|
1412
1441
|
|
1413
|
-
##### [double_tap](https://github.com/appium/ruby_lib/blob/
|
1442
|
+
##### [double_tap](https://github.com/appium/ruby_lib/blob/bc50f6f1315fb3238d9e7614cf2545d06d979ae7/lib/appium_lib/device/touch_actions.rb#L112)
|
1414
1443
|
|
1415
1444
|
> def double_tap(opts)
|
1416
1445
|
|
@@ -1422,7 +1451,7 @@ __Parameters:__
|
|
1422
1451
|
|
1423
1452
|
--
|
1424
1453
|
|
1425
|
-
##### [two_finger_tap](https://github.com/appium/ruby_lib/blob/
|
1454
|
+
##### [two_finger_tap](https://github.com/appium/ruby_lib/blob/bc50f6f1315fb3238d9e7614cf2545d06d979ae7/lib/appium_lib/device/touch_actions.rb#L123)
|
1426
1455
|
|
1427
1456
|
> def two_finger_tap(opts)
|
1428
1457
|
|
@@ -1434,7 +1463,7 @@ __Parameters:__
|
|
1434
1463
|
|
1435
1464
|
--
|
1436
1465
|
|
1437
|
-
##### [wait](https://github.com/appium/ruby_lib/blob/
|
1466
|
+
##### [wait](https://github.com/appium/ruby_lib/blob/bc50f6f1315fb3238d9e7614cf2545d06d979ae7/lib/appium_lib/device/touch_actions.rb#L131)
|
1438
1467
|
|
1439
1468
|
> def wait(milliseconds)
|
1440
1469
|
|
@@ -1446,7 +1475,7 @@ __Parameters:__
|
|
1446
1475
|
|
1447
1476
|
--
|
1448
1477
|
|
1449
|
-
##### [swipe](https://github.com/appium/ruby_lib/blob/
|
1478
|
+
##### [swipe](https://github.com/appium/ruby_lib/blob/bc50f6f1315fb3238d9e7614cf2545d06d979ae7/lib/appium_lib/device/touch_actions.rb#L154)
|
1450
1479
|
|
1451
1480
|
> def swipe(opts, ele = nil)
|
1452
1481
|
|
@@ -1467,7 +1496,7 @@ __Parameters:__
|
|
1467
1496
|
|
1468
1497
|
--
|
1469
1498
|
|
1470
|
-
##### [perform](https://github.com/appium/ruby_lib/blob/
|
1499
|
+
##### [perform](https://github.com/appium/ruby_lib/blob/bc50f6f1315fb3238d9e7614cf2545d06d979ae7/lib/appium_lib/device/touch_actions.rb#L179)
|
1471
1500
|
|
1472
1501
|
> def perform
|
1473
1502
|
|
@@ -1475,7 +1504,7 @@ Ask the driver to perform all actions in this action chain.
|
|
1475
1504
|
|
1476
1505
|
--
|
1477
1506
|
|
1478
|
-
##### [cancel](https://github.com/appium/ruby_lib/blob/
|
1507
|
+
##### [cancel](https://github.com/appium/ruby_lib/blob/bc50f6f1315fb3238d9e7614cf2545d06d979ae7/lib/appium_lib/device/touch_actions.rb#L186)
|
1479
1508
|
|
1480
1509
|
> def cancel
|
1481
1510
|
|
@@ -1483,7 +1512,7 @@ Does nothing, currently.
|
|
1483
1512
|
|
1484
1513
|
--
|
1485
1514
|
|
1486
|
-
##### [swipe_coordinates](https://github.com/appium/ruby_lib/blob/
|
1515
|
+
##### [swipe_coordinates](https://github.com/appium/ruby_lib/blob/bc50f6f1315fb3238d9e7614cf2545d06d979ae7/lib/appium_lib/device/touch_actions.rb#L192)
|
1487
1516
|
|
1488
1517
|
> def swipe_coordinates(end_x: nil, end_y: nil, offset_x: nil, offset_y: nil)
|
1489
1518
|
|
@@ -1491,7 +1520,7 @@ Does nothing, currently.
|
|
1491
1520
|
|
1492
1521
|
--
|
1493
1522
|
|
1494
|
-
##### [chain_method](https://github.com/appium/ruby_lib/blob/
|
1523
|
+
##### [chain_method](https://github.com/appium/ruby_lib/blob/bc50f6f1315fb3238d9e7614cf2545d06d979ae7/lib/appium_lib/device/touch_actions.rb#L210)
|
1495
1524
|
|
1496
1525
|
> def chain_method(method, args = nil)
|
1497
1526
|
|
@@ -1499,7 +1528,7 @@ Does nothing, currently.
|
|
1499
1528
|
|
1500
1529
|
--
|
1501
1530
|
|
1502
|
-
##### [args_with_ele_ref](https://github.com/appium/ruby_lib/blob/
|
1531
|
+
##### [args_with_ele_ref](https://github.com/appium/ruby_lib/blob/bc50f6f1315fb3238d9e7614cf2545d06d979ae7/lib/appium_lib/device/touch_actions.rb#L216)
|
1503
1532
|
|
1504
1533
|
> def args_with_ele_ref(args)
|
1505
1534
|
|
@@ -1507,7 +1536,7 @@ Does nothing, currently.
|
|
1507
1536
|
|
1508
1537
|
--
|
1509
1538
|
|
1510
|
-
##### [initialize](https://github.com/appium/ruby_lib/blob/
|
1539
|
+
##### [initialize](https://github.com/appium/ruby_lib/blob/bc50f6f1315fb3238d9e7614cf2545d06d979ae7/lib/appium_lib/common/wait.rb#L4)
|
1511
1540
|
|
1512
1541
|
> def initialize(opts = {})
|
1513
1542
|
|
@@ -1519,7 +1548,7 @@ __Returns:__
|
|
1519
1548
|
|
1520
1549
|
--
|
1521
1550
|
|
1522
|
-
##### [until](https://github.com/appium/ruby_lib/blob/
|
1551
|
+
##### [until](https://github.com/appium/ruby_lib/blob/bc50f6f1315fb3238d9e7614cf2545d06d979ae7/lib/appium_lib/common/wait.rb#L23)
|
1523
1552
|
|
1524
1553
|
> def until
|
1525
1554
|
|
@@ -1528,7 +1557,7 @@ https://github.com/SeleniumHQ/selenium/blob/cf501dda3f0ed12233de51ce8170c0e8090f
|
|
1528
1557
|
|
1529
1558
|
--
|
1530
1559
|
|
1531
|
-
##### [_process_wait_opts](https://github.com/appium/ruby_lib/blob/
|
1560
|
+
##### [_process_wait_opts](https://github.com/appium/ruby_lib/blob/bc50f6f1315fb3238d9e7614cf2545d06d979ae7/lib/appium_lib/common/wait.rb#L51)
|
1532
1561
|
|
1533
1562
|
> def _process_wait_opts(opts)
|
1534
1563
|
|
@@ -1536,7 +1565,7 @@ process opts before calling _generic_wait
|
|
1536
1565
|
|
1537
1566
|
--
|
1538
1567
|
|
1539
|
-
##### [wait_true](https://github.com/appium/ruby_lib/blob/
|
1568
|
+
##### [wait_true](https://github.com/appium/ruby_lib/blob/bc50f6f1315fb3238d9e7614cf2545d06d979ae7/lib/appium_lib/common/wait.rb#L72)
|
1540
1569
|
|
1541
1570
|
> def wait_true(opts = {})
|
1542
1571
|
|
@@ -1556,7 +1585,7 @@ __Parameters:__
|
|
1556
1585
|
|
1557
1586
|
--
|
1558
1587
|
|
1559
|
-
##### [wait](https://github.com/appium/ruby_lib/blob/
|
1588
|
+
##### [wait](https://github.com/appium/ruby_lib/blob/bc50f6f1315fb3238d9e7614cf2545d06d979ae7/lib/appium_lib/common/wait.rb#L95)
|
1560
1589
|
|
1561
1590
|
> def wait(opts = {})
|
1562
1591
|
|
@@ -1574,7 +1603,7 @@ __Parameters:__
|
|
1574
1603
|
|
1575
1604
|
--
|
1576
1605
|
|
1577
|
-
##### [ignore](https://github.com/appium/ruby_lib/blob/
|
1606
|
+
##### [ignore](https://github.com/appium/ruby_lib/blob/bc50f6f1315fb3238d9e7614cf2545d06d979ae7/lib/appium_lib/common/helper.rb#L24)
|
1578
1607
|
|
1579
1608
|
> def ignore
|
1580
1609
|
|
@@ -1582,7 +1611,7 @@ Return yield and ignore any exceptions.
|
|
1582
1611
|
|
1583
1612
|
--
|
1584
1613
|
|
1585
|
-
##### [back](https://github.com/appium/ruby_lib/blob/
|
1614
|
+
##### [back](https://github.com/appium/ruby_lib/blob/bc50f6f1315fb3238d9e7614cf2545d06d979ae7/lib/appium_lib/common/helper.rb#L31)
|
1586
1615
|
|
1587
1616
|
> def back
|
1588
1617
|
|
@@ -1594,7 +1623,7 @@ __Returns:__
|
|
1594
1623
|
|
1595
1624
|
--
|
1596
1625
|
|
1597
|
-
##### [session_id](https://github.com/appium/ruby_lib/blob/
|
1626
|
+
##### [session_id](https://github.com/appium/ruby_lib/blob/bc50f6f1315fb3238d9e7614cf2545d06d979ae7/lib/appium_lib/common/helper.rb#L36)
|
1598
1627
|
|
1599
1628
|
> def session_id
|
1600
1629
|
|
@@ -1602,7 +1631,7 @@ For Sauce Labs reporting. Returns the current session id.
|
|
1602
1631
|
|
1603
1632
|
--
|
1604
1633
|
|
1605
|
-
##### [xpath](https://github.com/appium/ruby_lib/blob/
|
1634
|
+
##### [xpath](https://github.com/appium/ruby_lib/blob/bc50f6f1315fb3238d9e7614cf2545d06d979ae7/lib/appium_lib/common/helper.rb#L44)
|
1606
1635
|
|
1607
1636
|
> def xpath(xpath_str)
|
1608
1637
|
|
@@ -1618,7 +1647,7 @@ __Returns:__
|
|
1618
1647
|
|
1619
1648
|
--
|
1620
1649
|
|
1621
|
-
##### [xpaths](https://github.com/appium/ruby_lib/blob/
|
1650
|
+
##### [xpaths](https://github.com/appium/ruby_lib/blob/bc50f6f1315fb3238d9e7614cf2545d06d979ae7/lib/appium_lib/common/helper.rb#L52)
|
1622
1651
|
|
1623
1652
|
> def xpaths(xpath_str)
|
1624
1653
|
|
@@ -1634,7 +1663,7 @@ __Returns:__
|
|
1634
1663
|
|
1635
1664
|
--
|
1636
1665
|
|
1637
|
-
##### [_print_source](https://github.com/appium/ruby_lib/blob/
|
1666
|
+
##### [_print_source](https://github.com/appium/ruby_lib/blob/bc50f6f1315fb3238d9e7614cf2545d06d979ae7/lib/appium_lib/common/helper.rb#L56)
|
1638
1667
|
|
1639
1668
|
> def _print_source(source)
|
1640
1669
|
|
@@ -1642,7 +1671,7 @@ __Returns:__
|
|
1642
1671
|
|
1643
1672
|
--
|
1644
1673
|
|
1645
|
-
##### [result](https://github.com/appium/ruby_lib/blob/
|
1674
|
+
##### [result](https://github.com/appium/ruby_lib/blob/bc50f6f1315fb3238d9e7614cf2545d06d979ae7/lib/appium_lib/common/helper.rb#L69)
|
1646
1675
|
|
1647
1676
|
> def result
|
1648
1677
|
|
@@ -1650,7 +1679,7 @@ Returns the value of attribute result
|
|
1650
1679
|
|
1651
1680
|
--
|
1652
1681
|
|
1653
|
-
##### [initialize](https://github.com/appium/ruby_lib/blob/
|
1682
|
+
##### [initialize](https://github.com/appium/ruby_lib/blob/bc50f6f1315fb3238d9e7614cf2545d06d979ae7/lib/appium_lib/common/helper.rb#L71)
|
1654
1683
|
|
1655
1684
|
> def initialize
|
1656
1685
|
|
@@ -1662,7 +1691,7 @@ __Returns:__
|
|
1662
1691
|
|
1663
1692
|
--
|
1664
1693
|
|
1665
|
-
##### [reset](https://github.com/appium/ruby_lib/blob/
|
1694
|
+
##### [reset](https://github.com/appium/ruby_lib/blob/bc50f6f1315fb3238d9e7614cf2545d06d979ae7/lib/appium_lib/common/helper.rb#L75)
|
1666
1695
|
|
1667
1696
|
> def reset
|
1668
1697
|
|
@@ -1670,7 +1699,7 @@ __Returns:__
|
|
1670
1699
|
|
1671
1700
|
--
|
1672
1701
|
|
1673
|
-
##### [start_element](https://github.com/appium/ruby_lib/blob/
|
1702
|
+
##### [start_element](https://github.com/appium/ruby_lib/blob/bc50f6f1315fb3238d9e7614cf2545d06d979ae7/lib/appium_lib/common/helper.rb#L80)
|
1674
1703
|
|
1675
1704
|
> def start_element(name, attrs = [])
|
1676
1705
|
|
@@ -1678,7 +1707,7 @@ http://nokogiri.org/Nokogiri/XML/SAX/Document.html
|
|
1678
1707
|
|
1679
1708
|
--
|
1680
1709
|
|
1681
|
-
##### [formatted_result](https://github.com/appium/ruby_lib/blob/
|
1710
|
+
##### [formatted_result](https://github.com/appium/ruby_lib/blob/bc50f6f1315fb3238d9e7614cf2545d06d979ae7/lib/appium_lib/common/helper.rb#L86)
|
1682
1711
|
|
1683
1712
|
> def formatted_result
|
1684
1713
|
|
@@ -1686,7 +1715,7 @@ http://nokogiri.org/Nokogiri/XML/SAX/Document.html
|
|
1686
1715
|
|
1687
1716
|
--
|
1688
1717
|
|
1689
|
-
##### [get_page_class](https://github.com/appium/ruby_lib/blob/
|
1718
|
+
##### [get_page_class](https://github.com/appium/ruby_lib/blob/bc50f6f1315fb3238d9e7614cf2545d06d979ae7/lib/appium_lib/common/helper.rb#L97)
|
1690
1719
|
|
1691
1720
|
> def get_page_class
|
1692
1721
|
|
@@ -1694,7 +1723,7 @@ Returns a string of class counts of visible elements.
|
|
1694
1723
|
|
1695
1724
|
--
|
1696
1725
|
|
1697
|
-
##### [page_class](https://github.com/appium/ruby_lib/blob/
|
1726
|
+
##### [page_class](https://github.com/appium/ruby_lib/blob/bc50f6f1315fb3238d9e7614cf2545d06d979ae7/lib/appium_lib/common/helper.rb#L108)
|
1698
1727
|
|
1699
1728
|
> def page_class
|
1700
1729
|
|
@@ -1703,7 +1732,7 @@ Useful for appium_console.
|
|
1703
1732
|
|
1704
1733
|
--
|
1705
1734
|
|
1706
|
-
##### [px_to_window_rel](https://github.com/appium/ruby_lib/blob/
|
1735
|
+
##### [px_to_window_rel](https://github.com/appium/ruby_lib/blob/bc50f6f1315fb3238d9e7614cf2545d06d979ae7/lib/appium_lib/common/helper.rb#L118)
|
1707
1736
|
|
1708
1737
|
> def px_to_window_rel(opts = {})
|
1709
1738
|
|
@@ -1715,7 +1744,7 @@ px_to_window_rel x: 50, y: 150
|
|
1715
1744
|
|
1716
1745
|
--
|
1717
1746
|
|
1718
|
-
##### [xml_keys](https://github.com/appium/ruby_lib/blob/
|
1747
|
+
##### [xml_keys](https://github.com/appium/ruby_lib/blob/bc50f6f1315fb3238d9e7614cf2545d06d979ae7/lib/appium_lib/common/helper.rb#L137)
|
1719
1748
|
|
1720
1749
|
> def xml_keys(target)
|
1721
1750
|
|
@@ -1731,7 +1760,7 @@ __Returns:__
|
|
1731
1760
|
|
1732
1761
|
--
|
1733
1762
|
|
1734
|
-
##### [xml_values](https://github.com/appium/ruby_lib/blob/
|
1763
|
+
##### [xml_values](https://github.com/appium/ruby_lib/blob/bc50f6f1315fb3238d9e7614cf2545d06d979ae7/lib/appium_lib/common/helper.rb#L145)
|
1735
1764
|
|
1736
1765
|
> def xml_values(target)
|
1737
1766
|
|
@@ -1747,7 +1776,7 @@ __Returns:__
|
|
1747
1776
|
|
1748
1777
|
--
|
1749
1778
|
|
1750
|
-
##### [resolve_id](https://github.com/appium/ruby_lib/blob/
|
1779
|
+
##### [resolve_id](https://github.com/appium/ruby_lib/blob/bc50f6f1315fb3238d9e7614cf2545d06d979ae7/lib/appium_lib/common/helper.rb#L153)
|
1751
1780
|
|
1752
1781
|
> def resolve_id(id)
|
1753
1782
|
|
@@ -1763,7 +1792,7 @@ __Returns:__
|
|
1763
1792
|
|
1764
1793
|
--
|
1765
1794
|
|
1766
|
-
##### [filter](https://github.com/appium/ruby_lib/blob/
|
1795
|
+
##### [filter](https://github.com/appium/ruby_lib/blob/bc50f6f1315fb3238d9e7614cf2545d06d979ae7/lib/appium_lib/common/helper.rb#L159)
|
1767
1796
|
|
1768
1797
|
> def filter
|
1769
1798
|
|
@@ -1771,7 +1800,7 @@ Returns the value of attribute filter
|
|
1771
1800
|
|
1772
1801
|
--
|
1773
1802
|
|
1774
|
-
##### [filter=](https://github.com/appium/ruby_lib/blob/
|
1803
|
+
##### [filter=](https://github.com/appium/ruby_lib/blob/bc50f6f1315fb3238d9e7614cf2545d06d979ae7/lib/appium_lib/common/helper.rb#L162)
|
1775
1804
|
|
1776
1805
|
> def filter=(value)
|
1777
1806
|
|
@@ -1779,7 +1808,7 @@ convert to string to support symbols
|
|
1779
1808
|
|
1780
1809
|
--
|
1781
1810
|
|
1782
|
-
##### [initialize](https://github.com/appium/ruby_lib/blob/
|
1811
|
+
##### [initialize](https://github.com/appium/ruby_lib/blob/bc50f6f1315fb3238d9e7614cf2545d06d979ae7/lib/appium_lib/common/helper.rb#L168)
|
1783
1812
|
|
1784
1813
|
> def initialize
|
1785
1814
|
|
@@ -1791,7 +1820,7 @@ __Returns:__
|
|
1791
1820
|
|
1792
1821
|
--
|
1793
1822
|
|
1794
|
-
##### [reset](https://github.com/appium/ruby_lib/blob/
|
1823
|
+
##### [reset](https://github.com/appium/ruby_lib/blob/bc50f6f1315fb3238d9e7614cf2545d06d979ae7/lib/appium_lib/common/helper.rb#L173)
|
1795
1824
|
|
1796
1825
|
> def reset
|
1797
1826
|
|
@@ -1799,7 +1828,7 @@ __Returns:__
|
|
1799
1828
|
|
1800
1829
|
--
|
1801
1830
|
|
1802
|
-
##### [result](https://github.com/appium/ruby_lib/blob/
|
1831
|
+
##### [result](https://github.com/appium/ruby_lib/blob/bc50f6f1315fb3238d9e7614cf2545d06d979ae7/lib/appium_lib/common/helper.rb#L179)
|
1803
1832
|
|
1804
1833
|
> def result
|
1805
1834
|
|
@@ -1807,7 +1836,7 @@ __Returns:__
|
|
1807
1836
|
|
1808
1837
|
--
|
1809
1838
|
|
1810
|
-
##### [start_element](https://github.com/appium/ruby_lib/blob/
|
1839
|
+
##### [start_element](https://github.com/appium/ruby_lib/blob/bc50f6f1315fb3238d9e7614cf2545d06d979ae7/lib/appium_lib/common/helper.rb#L195)
|
1811
1840
|
|
1812
1841
|
> def start_element(name, attrs = [])
|
1813
1842
|
|
@@ -1815,7 +1844,7 @@ __Returns:__
|
|
1815
1844
|
|
1816
1845
|
--
|
1817
1846
|
|
1818
|
-
##### [end_element](https://github.com/appium/ruby_lib/blob/
|
1847
|
+
##### [end_element](https://github.com/appium/ruby_lib/blob/bc50f6f1315fb3238d9e7614cf2545d06d979ae7/lib/appium_lib/common/helper.rb#L204)
|
1819
1848
|
|
1820
1849
|
> def end_element(name)
|
1821
1850
|
|
@@ -1823,7 +1852,7 @@ __Returns:__
|
|
1823
1852
|
|
1824
1853
|
--
|
1825
1854
|
|
1826
|
-
##### [characters](https://github.com/appium/ruby_lib/blob/
|
1855
|
+
##### [characters](https://github.com/appium/ruby_lib/blob/bc50f6f1315fb3238d9e7614cf2545d06d979ae7/lib/appium_lib/common/helper.rb#L210)
|
1827
1856
|
|
1828
1857
|
> def characters(chars)
|
1829
1858
|
|
@@ -1831,7 +1860,7 @@ __Returns:__
|
|
1831
1860
|
|
1832
1861
|
--
|
1833
1862
|
|
1834
|
-
##### [_no_such_element](https://github.com/appium/ruby_lib/blob/
|
1863
|
+
##### [_no_such_element](https://github.com/appium/ruby_lib/blob/bc50f6f1315fb3238d9e7614cf2545d06d979ae7/lib/appium_lib/common/helper.rb#L217)
|
1835
1864
|
|
1836
1865
|
> def _no_such_element
|
1837
1866
|
|
@@ -1839,7 +1868,7 @@ __Returns:__
|
|
1839
1868
|
|
1840
1869
|
--
|
1841
1870
|
|
1842
|
-
##### [COMMAND_NO_ARG](https://github.com/appium/ruby_lib/blob/
|
1871
|
+
##### [COMMAND_NO_ARG](https://github.com/appium/ruby_lib/blob/bc50f6f1315fb3238d9e7614cf2545d06d979ae7/lib/appium_lib/common/command.rb#L4)
|
1843
1872
|
|
1844
1873
|
> COMMAND_NO_ARG = {
|
1845
1874
|
|
@@ -1847,7 +1876,7 @@ __Returns:__
|
|
1847
1876
|
|
1848
1877
|
--
|
1849
1878
|
|
1850
|
-
##### [COMMAND](https://github.com/appium/ruby_lib/blob/
|
1879
|
+
##### [COMMAND](https://github.com/appium/ruby_lib/blob/bc50f6f1315fb3238d9e7614cf2545d06d979ae7/lib/appium_lib/common/command.rb#L28)
|
1851
1880
|
|
1852
1881
|
> COMMAND = {
|
1853
1882
|
|
@@ -1855,7 +1884,7 @@ __Returns:__
|
|
1855
1884
|
|
1856
1885
|
--
|
1857
1886
|
|
1858
|
-
##### [window_size](https://github.com/appium/ruby_lib/blob/
|
1887
|
+
##### [window_size](https://github.com/appium/ruby_lib/blob/bc50f6f1315fb3238d9e7614cf2545d06d979ae7/lib/appium_lib/common/element/window.rb#L5)
|
1859
1888
|
|
1860
1889
|
> def window_size
|
1861
1890
|
|
@@ -1863,7 +1892,7 @@ Get the window's size
|
|
1863
1892
|
|
1864
1893
|
--
|
1865
1894
|
|
1866
|
-
##### [FINDERS](https://github.com/appium/ruby_lib/blob/
|
1895
|
+
##### [FINDERS](https://github.com/appium/ruby_lib/blob/bc50f6f1315fb3238d9e7614cf2545d06d979ae7/lib/appium_lib/common/search_context.rb#L5)
|
1867
1896
|
|
1868
1897
|
> FINDERS = {
|
1869
1898
|
|
@@ -1871,7 +1900,7 @@ rubocop:disable Style/MutableConstant
|
|
1871
1900
|
|
1872
1901
|
--
|
1873
1902
|
|
1874
|
-
##### [result](https://github.com/appium/ruby_lib/blob/
|
1903
|
+
##### [result](https://github.com/appium/ruby_lib/blob/bc50f6f1315fb3238d9e7614cf2545d06d979ae7/lib/appium_lib/android/helper.rb#L6) android
|
1875
1904
|
|
1876
1905
|
> def result
|
1877
1906
|
|
@@ -1879,7 +1908,7 @@ Returns the value of attribute result
|
|
1879
1908
|
|
1880
1909
|
--
|
1881
1910
|
|
1882
|
-
##### [keys](https://github.com/appium/ruby_lib/blob/
|
1911
|
+
##### [keys](https://github.com/appium/ruby_lib/blob/bc50f6f1315fb3238d9e7614cf2545d06d979ae7/lib/appium_lib/android/helper.rb#L6) android
|
1883
1912
|
|
1884
1913
|
> def keys
|
1885
1914
|
|
@@ -1887,7 +1916,7 @@ Returns the value of attribute keys
|
|
1887
1916
|
|
1888
1917
|
--
|
1889
1918
|
|
1890
|
-
##### [filter](https://github.com/appium/ruby_lib/blob/
|
1919
|
+
##### [filter](https://github.com/appium/ruby_lib/blob/bc50f6f1315fb3238d9e7614cf2545d06d979ae7/lib/appium_lib/android/helper.rb#L6) android
|
1891
1920
|
|
1892
1921
|
> def filter
|
1893
1922
|
|
@@ -1895,7 +1924,7 @@ Returns the value of attribute filter
|
|
1895
1924
|
|
1896
1925
|
--
|
1897
1926
|
|
1898
|
-
##### [filter=](https://github.com/appium/ruby_lib/blob/
|
1927
|
+
##### [filter=](https://github.com/appium/ruby_lib/blob/bc50f6f1315fb3238d9e7614cf2545d06d979ae7/lib/appium_lib/android/helper.rb#L9) android
|
1899
1928
|
|
1900
1929
|
> def filter=(value)
|
1901
1930
|
|
@@ -1903,7 +1932,7 @@ convert to string to support symbols
|
|
1903
1932
|
|
1904
1933
|
--
|
1905
1934
|
|
1906
|
-
##### [initialize](https://github.com/appium/ruby_lib/blob/
|
1935
|
+
##### [initialize](https://github.com/appium/ruby_lib/blob/bc50f6f1315fb3238d9e7614cf2545d06d979ae7/lib/appium_lib/android/helper.rb#L15) android
|
1907
1936
|
|
1908
1937
|
> def initialize
|
1909
1938
|
|
@@ -1915,7 +1944,7 @@ __Returns:__
|
|
1915
1944
|
|
1916
1945
|
--
|
1917
1946
|
|
1918
|
-
##### [reset](https://github.com/appium/ruby_lib/blob/
|
1947
|
+
##### [reset](https://github.com/appium/ruby_lib/blob/bc50f6f1315fb3238d9e7614cf2545d06d979ae7/lib/appium_lib/android/helper.rb#L20) android
|
1919
1948
|
|
1920
1949
|
> def reset
|
1921
1950
|
|
@@ -1923,7 +1952,7 @@ __Returns:__
|
|
1923
1952
|
|
1924
1953
|
--
|
1925
1954
|
|
1926
|
-
##### [start_element](https://github.com/appium/ruby_lib/blob/
|
1955
|
+
##### [start_element](https://github.com/appium/ruby_lib/blob/bc50f6f1315fb3238d9e7614cf2545d06d979ae7/lib/appium_lib/android/helper.rb#L26) android
|
1927
1956
|
|
1928
1957
|
> def start_element(name, attrs = [])
|
1929
1958
|
|
@@ -1931,7 +1960,7 @@ http://nokogiri.org/Nokogiri/XML/SAX/Document.html
|
|
1931
1960
|
|
1932
1961
|
--
|
1933
1962
|
|
1934
|
-
##### [source](https://github.com/appium/ruby_lib/blob/
|
1963
|
+
##### [source](https://github.com/appium/ruby_lib/blob/bc50f6f1315fb3238d9e7614cf2545d06d979ae7/lib/appium_lib/android/helper.rb#L76) android
|
1935
1964
|
|
1936
1965
|
> def source
|
1937
1966
|
|
@@ -1943,7 +1972,7 @@ __Returns:__
|
|
1943
1972
|
|
1944
1973
|
--
|
1945
1974
|
|
1946
|
-
##### [get_android_inspect](https://github.com/appium/ruby_lib/blob/
|
1975
|
+
##### [get_android_inspect](https://github.com/appium/ruby_lib/blob/bc50f6f1315fb3238d9e7614cf2545d06d979ae7/lib/appium_lib/android/helper.rb#L86) android
|
1947
1976
|
|
1948
1977
|
> def get_android_inspect(class_name = false)
|
1949
1978
|
|
@@ -1962,7 +1991,7 @@ __Returns:__
|
|
1962
1991
|
|
1963
1992
|
--
|
1964
1993
|
|
1965
|
-
##### [page](https://github.com/appium/ruby_lib/blob/
|
1994
|
+
##### [page](https://github.com/appium/ruby_lib/blob/bc50f6f1315fb3238d9e7614cf2545d06d979ae7/lib/appium_lib/android/helper.rb#L112) android
|
1966
1995
|
|
1967
1996
|
> def page(opts = {})
|
1968
1997
|
|
@@ -1981,7 +2010,7 @@ __Returns:__
|
|
1981
2010
|
|
1982
2011
|
--
|
1983
2012
|
|
1984
|
-
##### [current_app](https://github.com/appium/ruby_lib/blob/
|
2013
|
+
##### [current_app](https://github.com/appium/ruby_lib/blob/bc50f6f1315fb3238d9e7614cf2545d06d979ae7/lib/appium_lib/android/helper.rb#L124) android
|
1985
2014
|
|
1986
2015
|
> def current_app
|
1987
2016
|
|
@@ -1991,7 +2020,7 @@ example line:
|
|
1991
2020
|
|
1992
2021
|
--
|
1993
2022
|
|
1994
|
-
##### [id](https://github.com/appium/ruby_lib/blob/
|
2023
|
+
##### [id](https://github.com/appium/ruby_lib/blob/bc50f6f1315fb3238d9e7614cf2545d06d979ae7/lib/appium_lib/android/helper.rb#L148) android
|
1995
2024
|
|
1996
2025
|
> def id(id)
|
1997
2026
|
|
@@ -2007,7 +2036,7 @@ __Returns:__
|
|
2007
2036
|
|
2008
2037
|
--
|
2009
2038
|
|
2010
|
-
##### [ids](https://github.com/appium/ruby_lib/blob/
|
2039
|
+
##### [ids](https://github.com/appium/ruby_lib/blob/bc50f6f1315fb3238d9e7614cf2545d06d979ae7/lib/appium_lib/android/helper.rb#L156) android
|
2011
2040
|
|
2012
2041
|
> def ids(id)
|
2013
2042
|
|
@@ -2023,7 +2052,7 @@ __Returns:__
|
|
2023
2052
|
|
2024
2053
|
--
|
2025
2054
|
|
2026
|
-
##### [ele_index](https://github.com/appium/ruby_lib/blob/
|
2055
|
+
##### [ele_index](https://github.com/appium/ruby_lib/blob/bc50f6f1315fb3238d9e7614cf2545d06d979ae7/lib/appium_lib/android/helper.rb#L165) android
|
2027
2056
|
|
2028
2057
|
> def ele_index(class_name, index)
|
2029
2058
|
|
@@ -2041,7 +2070,7 @@ __Returns:__
|
|
2041
2070
|
|
2042
2071
|
--
|
2043
2072
|
|
2044
|
-
##### [first_ele](https://github.com/appium/ruby_lib/blob/
|
2073
|
+
##### [first_ele](https://github.com/appium/ruby_lib/blob/bc50f6f1315fb3238d9e7614cf2545d06d979ae7/lib/appium_lib/android/helper.rb#L183) android
|
2045
2074
|
|
2046
2075
|
> def first_ele(class_name)
|
2047
2076
|
|
@@ -2057,7 +2086,7 @@ __Returns:__
|
|
2057
2086
|
|
2058
2087
|
--
|
2059
2088
|
|
2060
|
-
##### [last_ele](https://github.com/appium/ruby_lib/blob/
|
2089
|
+
##### [last_ele](https://github.com/appium/ruby_lib/blob/bc50f6f1315fb3238d9e7614cf2545d06d979ae7/lib/appium_lib/android/helper.rb#L190) android
|
2061
2090
|
|
2062
2091
|
> def last_ele(class_name)
|
2063
2092
|
|
@@ -2073,7 +2102,7 @@ __Returns:__
|
|
2073
2102
|
|
2074
2103
|
--
|
2075
2104
|
|
2076
|
-
##### [tag](https://github.com/appium/ruby_lib/blob/
|
2105
|
+
##### [tag](https://github.com/appium/ruby_lib/blob/bc50f6f1315fb3238d9e7614cf2545d06d979ae7/lib/appium_lib/android/helper.rb#L198) android
|
2077
2106
|
|
2078
2107
|
> def tag(class_name)
|
2079
2108
|
|
@@ -2089,7 +2118,7 @@ __Returns:__
|
|
2089
2118
|
|
2090
2119
|
--
|
2091
2120
|
|
2092
|
-
##### [tags](https://github.com/appium/ruby_lib/blob/
|
2121
|
+
##### [tags](https://github.com/appium/ruby_lib/blob/bc50f6f1315fb3238d9e7614cf2545d06d979ae7/lib/appium_lib/android/helper.rb#L206) android
|
2093
2122
|
|
2094
2123
|
> def tags(class_name)
|
2095
2124
|
|
@@ -2105,7 +2134,7 @@ __Returns:__
|
|
2105
2134
|
|
2106
2135
|
--
|
2107
2136
|
|
2108
|
-
##### [string_visible_contains_xpath](https://github.com/appium/ruby_lib/blob/
|
2137
|
+
##### [string_visible_contains_xpath](https://github.com/appium/ruby_lib/blob/bc50f6f1315fb3238d9e7614cf2545d06d979ae7/lib/appium_lib/android/helper.rb#L249) android
|
2109
2138
|
|
2110
2139
|
> def string_visible_contains_xpath(class_name, value)
|
2111
2140
|
|
@@ -2126,7 +2155,7 @@ __Returns:__
|
|
2126
2155
|
|
2127
2156
|
--
|
2128
2157
|
|
2129
|
-
##### [string_visible_contains](https://github.com/appium/ruby_lib/blob/
|
2158
|
+
##### [string_visible_contains](https://github.com/appium/ruby_lib/blob/bc50f6f1315fb3238d9e7614cf2545d06d979ae7/lib/appium_lib/android/helper.rb#L269) android
|
2130
2159
|
|
2131
2160
|
> def string_visible_contains(class_name, value)
|
2132
2161
|
|
@@ -2147,7 +2176,7 @@ __Returns:__
|
|
2147
2176
|
|
2148
2177
|
--
|
2149
2178
|
|
2150
|
-
##### [complex_find_contains](https://github.com/appium/ruby_lib/blob/
|
2179
|
+
##### [complex_find_contains](https://github.com/appium/ruby_lib/blob/bc50f6f1315fb3238d9e7614cf2545d06d979ae7/lib/appium_lib/android/helper.rb#L287) android
|
2151
2180
|
|
2152
2181
|
> def complex_find_contains(class_name, value)
|
2153
2182
|
|
@@ -2165,7 +2194,7 @@ __Returns:__
|
|
2165
2194
|
|
2166
2195
|
--
|
2167
2196
|
|
2168
|
-
##### [complex_finds_contains](https://github.com/appium/ruby_lib/blob/
|
2197
|
+
##### [complex_finds_contains](https://github.com/appium/ruby_lib/blob/bc50f6f1315fb3238d9e7614cf2545d06d979ae7/lib/appium_lib/android/helper.rb#L301) android
|
2169
2198
|
|
2170
2199
|
> def complex_finds_contains(class_name, value)
|
2171
2200
|
|
@@ -2183,7 +2212,7 @@ __Returns:__
|
|
2183
2212
|
|
2184
2213
|
--
|
2185
2214
|
|
2186
|
-
##### [complex_find_exact](https://github.com/appium/ruby_lib/blob/
|
2215
|
+
##### [complex_find_exact](https://github.com/appium/ruby_lib/blob/bc50f6f1315fb3238d9e7614cf2545d06d979ae7/lib/appium_lib/android/helper.rb#L345) android
|
2187
2216
|
|
2188
2217
|
> def complex_find_exact(class_name, value)
|
2189
2218
|
|
@@ -2201,7 +2230,7 @@ __Returns:__
|
|
2201
2230
|
|
2202
2231
|
--
|
2203
2232
|
|
2204
|
-
##### [complex_finds_exact](https://github.com/appium/ruby_lib/blob/
|
2233
|
+
##### [complex_finds_exact](https://github.com/appium/ruby_lib/blob/bc50f6f1315fb3238d9e7614cf2545d06d979ae7/lib/appium_lib/android/helper.rb#L359) android
|
2205
2234
|
|
2206
2235
|
> def complex_finds_exact(class_name, value)
|
2207
2236
|
|
@@ -2219,7 +2248,7 @@ __Returns:__
|
|
2219
2248
|
|
2220
2249
|
--
|
2221
2250
|
|
2222
|
-
##### [get_source](https://github.com/appium/ruby_lib/blob/
|
2251
|
+
##### [get_source](https://github.com/appium/ruby_lib/blob/bc50f6f1315fb3238d9e7614cf2545d06d979ae7/lib/appium_lib/android/helper.rb#L365) android
|
2223
2252
|
|
2224
2253
|
> def get_source
|
2225
2254
|
|
@@ -2231,7 +2260,7 @@ __Returns:__
|
|
2231
2260
|
|
2232
2261
|
--
|
2233
2262
|
|
2234
|
-
##### [_nodeset_to_uiselector](https://github.com/appium/ruby_lib/blob/
|
2263
|
+
##### [_nodeset_to_uiselector](https://github.com/appium/ruby_lib/blob/bc50f6f1315fb3238d9e7614cf2545d06d979ae7/lib/appium_lib/android/client_xpath.rb#L5) android
|
2235
2264
|
|
2236
2265
|
> def _nodeset_to_uiselector(opts = {})
|
2237
2266
|
|
@@ -2239,7 +2268,7 @@ __Returns:__
|
|
2239
2268
|
|
2240
2269
|
--
|
2241
2270
|
|
2242
|
-
##### [_client_xpath](https://github.com/appium/ruby_lib/blob/
|
2271
|
+
##### [_client_xpath](https://github.com/appium/ruby_lib/blob/bc50f6f1315fb3238d9e7614cf2545d06d979ae7/lib/appium_lib/android/client_xpath.rb#L20) android
|
2243
2272
|
|
2244
2273
|
> def _client_xpath(opts = {})
|
2245
2274
|
|
@@ -2247,7 +2276,7 @@ __Returns:__
|
|
2247
2276
|
|
2248
2277
|
--
|
2249
2278
|
|
2250
|
-
##### [client_xpath](https://github.com/appium/ruby_lib/blob/
|
2279
|
+
##### [client_xpath](https://github.com/appium/ruby_lib/blob/bc50f6f1315fb3238d9e7614cf2545d06d979ae7/lib/appium_lib/android/client_xpath.rb#L37) android
|
2251
2280
|
|
2252
2281
|
> def client_xpath(xpath)
|
2253
2282
|
|
@@ -2255,7 +2284,7 @@ __Returns:__
|
|
2255
2284
|
|
2256
2285
|
--
|
2257
2286
|
|
2258
|
-
##### [client_xpaths](https://github.com/appium/ruby_lib/blob/
|
2287
|
+
##### [client_xpaths](https://github.com/appium/ruby_lib/blob/bc50f6f1315fb3238d9e7614cf2545d06d979ae7/lib/appium_lib/android/client_xpath.rb#L43) android
|
2259
2288
|
|
2260
2289
|
> def client_xpaths(xpath)
|
2261
2290
|
|
@@ -2263,7 +2292,7 @@ __Returns:__
|
|
2263
2292
|
|
2264
2293
|
--
|
2265
2294
|
|
2266
|
-
##### [TextView](https://github.com/appium/ruby_lib/blob/
|
2295
|
+
##### [TextView](https://github.com/appium/ruby_lib/blob/bc50f6f1315fb3238d9e7614cf2545d06d979ae7/lib/appium_lib/android/element/text.rb#L4) android
|
2267
2296
|
|
2268
2297
|
> TextView = 'android.widget.TextView'.freeze
|
2269
2298
|
|
@@ -2271,7 +2300,7 @@ __Returns:__
|
|
2271
2300
|
|
2272
2301
|
--
|
2273
2302
|
|
2274
|
-
##### [text](https://github.com/appium/ruby_lib/blob/
|
2303
|
+
##### [text](https://github.com/appium/ruby_lib/blob/bc50f6f1315fb3238d9e7614cf2545d06d979ae7/lib/appium_lib/android/element/text.rb#L10) android
|
2275
2304
|
|
2276
2305
|
> def text(value)
|
2277
2306
|
|
@@ -2288,7 +2317,7 @@ __Returns:__
|
|
2288
2317
|
|
2289
2318
|
--
|
2290
2319
|
|
2291
|
-
##### [texts](https://github.com/appium/ruby_lib/blob/
|
2320
|
+
##### [texts](https://github.com/appium/ruby_lib/blob/bc50f6f1315fb3238d9e7614cf2545d06d979ae7/lib/appium_lib/android/element/text.rb#L19) android
|
2292
2321
|
|
2293
2322
|
> def texts(value = false)
|
2294
2323
|
|
@@ -2305,7 +2334,7 @@ __Returns:__
|
|
2305
2334
|
|
2306
2335
|
--
|
2307
2336
|
|
2308
|
-
##### [first_text](https://github.com/appium/ruby_lib/blob/
|
2337
|
+
##### [first_text](https://github.com/appium/ruby_lib/blob/bc50f6f1315fb3238d9e7614cf2545d06d979ae7/lib/appium_lib/android/element/text.rb#L26) android
|
2309
2338
|
|
2310
2339
|
> def first_text
|
2311
2340
|
|
@@ -2317,7 +2346,7 @@ __Returns:__
|
|
2317
2346
|
|
2318
2347
|
--
|
2319
2348
|
|
2320
|
-
##### [last_text](https://github.com/appium/ruby_lib/blob/
|
2349
|
+
##### [last_text](https://github.com/appium/ruby_lib/blob/bc50f6f1315fb3238d9e7614cf2545d06d979ae7/lib/appium_lib/android/element/text.rb#L32) android
|
2321
2350
|
|
2322
2351
|
> def last_text
|
2323
2352
|
|
@@ -2329,7 +2358,7 @@ __Returns:__
|
|
2329
2358
|
|
2330
2359
|
--
|
2331
2360
|
|
2332
|
-
##### [text_exact](https://github.com/appium/ruby_lib/blob/
|
2361
|
+
##### [text_exact](https://github.com/appium/ruby_lib/blob/bc50f6f1315fb3238d9e7614cf2545d06d979ae7/lib/appium_lib/android/element/text.rb#L39) android
|
2333
2362
|
|
2334
2363
|
> def text_exact(value)
|
2335
2364
|
|
@@ -2345,7 +2374,7 @@ __Returns:__
|
|
2345
2374
|
|
2346
2375
|
--
|
2347
2376
|
|
2348
|
-
##### [texts_exact](https://github.com/appium/ruby_lib/blob/
|
2377
|
+
##### [texts_exact](https://github.com/appium/ruby_lib/blob/bc50f6f1315fb3238d9e7614cf2545d06d979ae7/lib/appium_lib/android/element/text.rb#L46) android
|
2349
2378
|
|
2350
2379
|
> def texts_exact(value)
|
2351
2380
|
|
@@ -2361,7 +2390,7 @@ __Returns:__
|
|
2361
2390
|
|
2362
2391
|
--
|
2363
2392
|
|
2364
|
-
##### [alert_click](https://github.com/appium/ruby_lib/blob/
|
2393
|
+
##### [alert_click](https://github.com/appium/ruby_lib/blob/bc50f6f1315fb3238d9e7614cf2545d06d979ae7/lib/appium_lib/android/element/alert.rb#L6) android
|
2365
2394
|
|
2366
2395
|
> def alert_click(value)
|
2367
2396
|
|
@@ -2377,7 +2406,7 @@ __Returns:__
|
|
2377
2406
|
|
2378
2407
|
--
|
2379
2408
|
|
2380
|
-
##### [alert_accept](https://github.com/appium/ruby_lib/blob/
|
2409
|
+
##### [alert_accept](https://github.com/appium/ruby_lib/blob/bc50f6f1315fb3238d9e7614cf2545d06d979ae7/lib/appium_lib/android/element/alert.rb#L13) android
|
2381
2410
|
|
2382
2411
|
> def alert_accept
|
2383
2412
|
|
@@ -2390,7 +2419,7 @@ __Returns:__
|
|
2390
2419
|
|
2391
2420
|
--
|
2392
2421
|
|
2393
|
-
##### [alert_accept_text](https://github.com/appium/ruby_lib/blob/
|
2422
|
+
##### [alert_accept_text](https://github.com/appium/ruby_lib/blob/bc50f6f1315fb3238d9e7614cf2545d06d979ae7/lib/appium_lib/android/element/alert.rb#L20) android
|
2394
2423
|
|
2395
2424
|
> def alert_accept_text
|
2396
2425
|
|
@@ -2403,7 +2432,7 @@ __Returns:__
|
|
2403
2432
|
|
2404
2433
|
--
|
2405
2434
|
|
2406
|
-
##### [alert_dismiss](https://github.com/appium/ruby_lib/blob/
|
2435
|
+
##### [alert_dismiss](https://github.com/appium/ruby_lib/blob/bc50f6f1315fb3238d9e7614cf2545d06d979ae7/lib/appium_lib/android/element/alert.rb#L27) android
|
2407
2436
|
|
2408
2437
|
> def alert_dismiss
|
2409
2438
|
|
@@ -2416,7 +2445,7 @@ __Returns:__
|
|
2416
2445
|
|
2417
2446
|
--
|
2418
2447
|
|
2419
|
-
##### [alert_dismiss_text](https://github.com/appium/ruby_lib/blob/
|
2448
|
+
##### [alert_dismiss_text](https://github.com/appium/ruby_lib/blob/bc50f6f1315fb3238d9e7614cf2545d06d979ae7/lib/appium_lib/android/element/alert.rb#L34) android
|
2420
2449
|
|
2421
2450
|
> def alert_dismiss_text
|
2422
2451
|
|
@@ -2429,7 +2458,7 @@ __Returns:__
|
|
2429
2458
|
|
2430
2459
|
--
|
2431
2460
|
|
2432
|
-
##### [Button](https://github.com/appium/ruby_lib/blob/
|
2461
|
+
##### [Button](https://github.com/appium/ruby_lib/blob/bc50f6f1315fb3238d9e7614cf2545d06d979ae7/lib/appium_lib/android/element/button.rb#L4) android
|
2433
2462
|
|
2434
2463
|
> Button = 'android.widget.Button'.freeze
|
2435
2464
|
|
@@ -2437,7 +2466,7 @@ __Returns:__
|
|
2437
2466
|
|
2438
2467
|
--
|
2439
2468
|
|
2440
|
-
##### [ImageButton](https://github.com/appium/ruby_lib/blob/
|
2469
|
+
##### [ImageButton](https://github.com/appium/ruby_lib/blob/bc50f6f1315fb3238d9e7614cf2545d06d979ae7/lib/appium_lib/android/element/button.rb#L5) android
|
2441
2470
|
|
2442
2471
|
> ImageButton = 'android.widget.ImageButton'.freeze
|
2443
2472
|
|
@@ -2445,7 +2474,7 @@ __Returns:__
|
|
2445
2474
|
|
2446
2475
|
--
|
2447
2476
|
|
2448
|
-
##### [_button_visible_selectors](https://github.com/appium/ruby_lib/blob/
|
2477
|
+
##### [_button_visible_selectors](https://github.com/appium/ruby_lib/blob/bc50f6f1315fb3238d9e7614cf2545d06d979ae7/lib/appium_lib/android/element/button.rb#L9) android
|
2449
2478
|
|
2450
2479
|
> def _button_visible_selectors(opts = {})
|
2451
2480
|
|
@@ -2453,7 +2482,7 @@ __Returns:__
|
|
2453
2482
|
|
2454
2483
|
--
|
2455
2484
|
|
2456
|
-
##### [_button_exact_string](https://github.com/appium/ruby_lib/blob/
|
2485
|
+
##### [_button_exact_string](https://github.com/appium/ruby_lib/blob/bc50f6f1315fb3238d9e7614cf2545d06d979ae7/lib/appium_lib/android/element/button.rb#L22) android
|
2457
2486
|
|
2458
2487
|
> def _button_exact_string(value)
|
2459
2488
|
|
@@ -2461,7 +2490,7 @@ __Returns:__
|
|
2461
2490
|
|
2462
2491
|
--
|
2463
2492
|
|
2464
|
-
##### [_button_contains_string](https://github.com/appium/ruby_lib/blob/
|
2493
|
+
##### [_button_contains_string](https://github.com/appium/ruby_lib/blob/bc50f6f1315fb3238d9e7614cf2545d06d979ae7/lib/appium_lib/android/element/button.rb#L28) android
|
2465
2494
|
|
2466
2495
|
> def _button_contains_string(value)
|
2467
2496
|
|
@@ -2469,7 +2498,7 @@ __Returns:__
|
|
2469
2498
|
|
2470
2499
|
--
|
2471
2500
|
|
2472
|
-
##### [button](https://github.com/appium/ruby_lib/blob/
|
2501
|
+
##### [button](https://github.com/appium/ruby_lib/blob/bc50f6f1315fb3238d9e7614cf2545d06d979ae7/lib/appium_lib/android/element/button.rb#L40) android
|
2473
2502
|
|
2474
2503
|
> def button(value)
|
2475
2504
|
|
@@ -2486,7 +2515,7 @@ __Returns:__
|
|
2486
2515
|
|
2487
2516
|
--
|
2488
2517
|
|
2489
|
-
##### [buttons](https://github.com/appium/ruby_lib/blob/
|
2518
|
+
##### [buttons](https://github.com/appium/ruby_lib/blob/bc50f6f1315fb3238d9e7614cf2545d06d979ae7/lib/appium_lib/android/element/button.rb#L68) android
|
2490
2519
|
|
2491
2520
|
> def buttons(value = false)
|
2492
2521
|
|
@@ -2503,7 +2532,7 @@ __Returns:__
|
|
2503
2532
|
|
2504
2533
|
--
|
2505
2534
|
|
2506
|
-
##### [first_button](https://github.com/appium/ruby_lib/blob/
|
2535
|
+
##### [first_button](https://github.com/appium/ruby_lib/blob/bc50f6f1315fb3238d9e7614cf2545d06d979ae7/lib/appium_lib/android/element/button.rb#L75) android
|
2507
2536
|
|
2508
2537
|
> def first_button
|
2509
2538
|
|
@@ -2515,7 +2544,7 @@ __Returns:__
|
|
2515
2544
|
|
2516
2545
|
--
|
2517
2546
|
|
2518
|
-
##### [last_button](https://github.com/appium/ruby_lib/blob/
|
2547
|
+
##### [last_button](https://github.com/appium/ruby_lib/blob/bc50f6f1315fb3238d9e7614cf2545d06d979ae7/lib/appium_lib/android/element/button.rb#L86) android
|
2519
2548
|
|
2520
2549
|
> def last_button
|
2521
2550
|
|
@@ -2527,7 +2556,7 @@ __Returns:__
|
|
2527
2556
|
|
2528
2557
|
--
|
2529
2558
|
|
2530
|
-
##### [button_exact](https://github.com/appium/ruby_lib/blob/
|
2559
|
+
##### [button_exact](https://github.com/appium/ruby_lib/blob/bc50f6f1315fb3238d9e7614cf2545d06d979ae7/lib/appium_lib/android/element/button.rb#L109) android
|
2531
2560
|
|
2532
2561
|
> def button_exact(value)
|
2533
2562
|
|
@@ -2543,7 +2572,7 @@ __Returns:__
|
|
2543
2572
|
|
2544
2573
|
--
|
2545
2574
|
|
2546
|
-
##### [buttons_exact](https://github.com/appium/ruby_lib/blob/
|
2575
|
+
##### [buttons_exact](https://github.com/appium/ruby_lib/blob/bc50f6f1315fb3238d9e7614cf2545d06d979ae7/lib/appium_lib/android/element/button.rb#L121) android
|
2547
2576
|
|
2548
2577
|
> def buttons_exact(value)
|
2549
2578
|
|
@@ -2559,7 +2588,7 @@ __Returns:__
|
|
2559
2588
|
|
2560
2589
|
--
|
2561
2590
|
|
2562
|
-
##### [raise_no_such_element_if_empty](https://github.com/appium/ruby_lib/blob/
|
2591
|
+
##### [raise_no_such_element_if_empty](https://github.com/appium/ruby_lib/blob/bc50f6f1315fb3238d9e7614cf2545d06d979ae7/lib/appium_lib/android/element/button.rb#L127) android
|
2563
2592
|
|
2564
2593
|
> def raise_no_such_element_if_empty(elements)
|
2565
2594
|
|
@@ -2567,7 +2596,7 @@ __Returns:__
|
|
2567
2596
|
|
2568
2597
|
--
|
2569
2598
|
|
2570
|
-
##### [uiautomator_find](https://github.com/appium/ruby_lib/blob/
|
2599
|
+
##### [uiautomator_find](https://github.com/appium/ruby_lib/blob/bc50f6f1315fb3238d9e7614cf2545d06d979ae7/lib/appium_lib/android/mobile_methods.rb#L10) android
|
2571
2600
|
|
2572
2601
|
> def uiautomator_find
|
2573
2602
|
|
@@ -2579,7 +2608,7 @@ find_element/s can be used with a [UISelector](http://developer.android.com/tool
|
|
2579
2608
|
|
2580
2609
|
--
|
2581
2610
|
|
2582
|
-
##### [find](https://github.com/appium/ruby_lib/blob/
|
2611
|
+
##### [find](https://github.com/appium/ruby_lib/blob/bc50f6f1315fb3238d9e7614cf2545d06d979ae7/lib/appium_lib/android/element/generic.rb#L6) android
|
2583
2612
|
|
2584
2613
|
> def find(value)
|
2585
2614
|
|
@@ -2595,7 +2624,7 @@ __Returns:__
|
|
2595
2624
|
|
2596
2625
|
--
|
2597
2626
|
|
2598
|
-
##### [finds](https://github.com/appium/ruby_lib/blob/
|
2627
|
+
##### [finds](https://github.com/appium/ruby_lib/blob/bc50f6f1315fb3238d9e7614cf2545d06d979ae7/lib/appium_lib/android/element/generic.rb#L13) android
|
2599
2628
|
|
2600
2629
|
> def finds(value)
|
2601
2630
|
|
@@ -2611,7 +2640,7 @@ __Returns:__
|
|
2611
2640
|
|
2612
2641
|
--
|
2613
2642
|
|
2614
|
-
##### [find_exact](https://github.com/appium/ruby_lib/blob/
|
2643
|
+
##### [find_exact](https://github.com/appium/ruby_lib/blob/bc50f6f1315fb3238d9e7614cf2545d06d979ae7/lib/appium_lib/android/element/generic.rb#L20) android
|
2615
2644
|
|
2616
2645
|
> def find_exact(value)
|
2617
2646
|
|
@@ -2627,7 +2656,7 @@ __Returns:__
|
|
2627
2656
|
|
2628
2657
|
--
|
2629
2658
|
|
2630
|
-
##### [finds_exact](https://github.com/appium/ruby_lib/blob/
|
2659
|
+
##### [finds_exact](https://github.com/appium/ruby_lib/blob/bc50f6f1315fb3238d9e7614cf2545d06d979ae7/lib/appium_lib/android/element/generic.rb#L27) android
|
2631
2660
|
|
2632
2661
|
> def finds_exact(value)
|
2633
2662
|
|
@@ -2643,7 +2672,7 @@ __Returns:__
|
|
2643
2672
|
|
2644
2673
|
--
|
2645
2674
|
|
2646
|
-
##### [scroll_to](https://github.com/appium/ruby_lib/blob/
|
2675
|
+
##### [scroll_to](https://github.com/appium/ruby_lib/blob/bc50f6f1315fb3238d9e7614cf2545d06d979ae7/lib/appium_lib/android/element/generic.rb#L40) android
|
2647
2676
|
|
2648
2677
|
> def scroll_to(text, scrollable_index = 0)
|
2649
2678
|
|
@@ -2661,7 +2690,7 @@ __Returns:__
|
|
2661
2690
|
|
2662
2691
|
--
|
2663
2692
|
|
2664
|
-
##### [scroll_to_exact](https://github.com/appium/ruby_lib/blob/
|
2693
|
+
##### [scroll_to_exact](https://github.com/appium/ruby_lib/blob/bc50f6f1315fb3238d9e7614cf2545d06d979ae7/lib/appium_lib/android/element/generic.rb#L54) android
|
2665
2694
|
|
2666
2695
|
> def scroll_to_exact(text, scrollable_index = 0)
|
2667
2696
|
|
@@ -2679,7 +2708,7 @@ __Returns:__
|
|
2679
2708
|
|
2680
2709
|
--
|
2681
2710
|
|
2682
|
-
##### [EditText](https://github.com/appium/ruby_lib/blob/
|
2711
|
+
##### [EditText](https://github.com/appium/ruby_lib/blob/bc50f6f1315fb3238d9e7614cf2545d06d979ae7/lib/appium_lib/android/element/textfield.rb#L3) android
|
2683
2712
|
|
2684
2713
|
> EditText = 'android.widget.EditText'.freeze
|
2685
2714
|
|
@@ -2687,7 +2716,7 @@ __Returns:__
|
|
2687
2716
|
|
2688
2717
|
--
|
2689
2718
|
|
2690
|
-
##### [textfield](https://github.com/appium/ruby_lib/blob/
|
2719
|
+
##### [textfield](https://github.com/appium/ruby_lib/blob/bc50f6f1315fb3238d9e7614cf2545d06d979ae7/lib/appium_lib/android/element/textfield.rb#L9) android
|
2691
2720
|
|
2692
2721
|
> def textfield(value)
|
2693
2722
|
|
@@ -2704,7 +2733,7 @@ __Returns:__
|
|
2704
2733
|
|
2705
2734
|
--
|
2706
2735
|
|
2707
|
-
##### [textfields](https://github.com/appium/ruby_lib/blob/
|
2736
|
+
##### [textfields](https://github.com/appium/ruby_lib/blob/bc50f6f1315fb3238d9e7614cf2545d06d979ae7/lib/appium_lib/android/element/textfield.rb#L18) android
|
2708
2737
|
|
2709
2738
|
> def textfields(value = false)
|
2710
2739
|
|
@@ -2721,7 +2750,7 @@ __Returns:__
|
|
2721
2750
|
|
2722
2751
|
--
|
2723
2752
|
|
2724
|
-
##### [first_textfield](https://github.com/appium/ruby_lib/blob/
|
2753
|
+
##### [first_textfield](https://github.com/appium/ruby_lib/blob/bc50f6f1315fb3238d9e7614cf2545d06d979ae7/lib/appium_lib/android/element/textfield.rb#L25) android
|
2725
2754
|
|
2726
2755
|
> def first_textfield
|
2727
2756
|
|
@@ -2733,7 +2762,7 @@ __Returns:__
|
|
2733
2762
|
|
2734
2763
|
--
|
2735
2764
|
|
2736
|
-
##### [last_textfield](https://github.com/appium/ruby_lib/blob/
|
2765
|
+
##### [last_textfield](https://github.com/appium/ruby_lib/blob/bc50f6f1315fb3238d9e7614cf2545d06d979ae7/lib/appium_lib/android/element/textfield.rb#L31) android
|
2737
2766
|
|
2738
2767
|
> def last_textfield
|
2739
2768
|
|
@@ -2745,7 +2774,7 @@ __Returns:__
|
|
2745
2774
|
|
2746
2775
|
--
|
2747
2776
|
|
2748
|
-
##### [textfield_exact](https://github.com/appium/ruby_lib/blob/
|
2777
|
+
##### [textfield_exact](https://github.com/appium/ruby_lib/blob/bc50f6f1315fb3238d9e7614cf2545d06d979ae7/lib/appium_lib/android/element/textfield.rb#L38) android
|
2749
2778
|
|
2750
2779
|
> def textfield_exact(value)
|
2751
2780
|
|
@@ -2761,7 +2790,7 @@ __Returns:__
|
|
2761
2790
|
|
2762
2791
|
--
|
2763
2792
|
|
2764
|
-
##### [textfields_exact](https://github.com/appium/ruby_lib/blob/
|
2793
|
+
##### [textfields_exact](https://github.com/appium/ruby_lib/blob/bc50f6f1315fb3238d9e7614cf2545d06d979ae7/lib/appium_lib/android/element/textfield.rb#L45) android
|
2765
2794
|
|
2766
2795
|
> def textfields_exact(value)
|
2767
2796
|
|
@@ -2777,7 +2806,7 @@ __Returns:__
|
|
2777
2806
|
|
2778
2807
|
--
|
2779
2808
|
|
2780
|
-
##### [value](https://github.com/appium/ruby_lib/blob/
|
2809
|
+
##### [value](https://github.com/appium/ruby_lib/blob/bc50f6f1315fb3238d9e7614cf2545d06d979ae7/lib/appium_lib/common/patch.rb#L12)
|
2781
2810
|
|
2782
2811
|
> def value
|
2783
2812
|
|
@@ -2787,7 +2816,7 @@ Fixes NoMethodError: undefined method `value' for Selenium::WebDriver::Element
|
|
2787
2816
|
|
2788
2817
|
--
|
2789
2818
|
|
2790
|
-
##### [name](https://github.com/appium/ruby_lib/blob/
|
2819
|
+
##### [name](https://github.com/appium/ruby_lib/blob/bc50f6f1315fb3238d9e7614cf2545d06d979ae7/lib/appium_lib/common/patch.rb#L19)
|
2791
2820
|
|
2792
2821
|
> def name
|
2793
2822
|
|
@@ -2797,7 +2826,7 @@ Fixes NoMethodError: undefined method `name' for Selenium::WebDriver::Element
|
|
2797
2826
|
|
2798
2827
|
--
|
2799
2828
|
|
2800
|
-
##### [location_rel](https://github.com/appium/ruby_lib/blob/
|
2829
|
+
##### [location_rel](https://github.com/appium/ruby_lib/blob/bc50f6f1315fb3238d9e7614cf2545d06d979ae7/lib/appium_lib/common/patch.rb#L30)
|
2801
2830
|
|
2802
2831
|
> def location_rel
|
2803
2832
|
|
@@ -2807,15 +2836,13 @@ For use with mobile tap.
|
|
2807
2836
|
execute_script 'mobile: tap', :x => 0.0, :y => 0.98
|
2808
2837
|
```
|
2809
2838
|
|
2810
|
-
https://github.com/appium/appium/wiki/Automating-mobile-gestures
|
2811
|
-
|
2812
2839
|
__Returns:__
|
2813
2840
|
|
2814
2841
|
[OpenStruct] the relative x, y in a struct. ex: { x: 0.50, y: 0.20 }
|
2815
2842
|
|
2816
2843
|
--
|
2817
2844
|
|
2818
|
-
##### [DEFAULT_HEADERS](https://github.com/appium/ruby_lib/blob/
|
2845
|
+
##### [DEFAULT_HEADERS](https://github.com/appium/ruby_lib/blob/bc50f6f1315fb3238d9e7614cf2545d06d979ae7/lib/appium_lib/common/patch.rb#L162)
|
2819
2846
|
|
2820
2847
|
> DEFAULT_HEADERS = { 'Accept' => CONTENT_TYPE, 'User-Agent' => "appium/ruby_lib/#{::Appium::VERSION}" }.freeze
|
2821
2848
|
|
@@ -2823,7 +2850,7 @@ __Returns:__
|
|
2823
2850
|
|
2824
2851
|
--
|
2825
2852
|
|
2826
|
-
##### [patch_remote_driver_commands](https://github.com/appium/ruby_lib/blob/
|
2853
|
+
##### [patch_remote_driver_commands](https://github.com/appium/ruby_lib/blob/bc50f6f1315fb3238d9e7614cf2545d06d979ae7/lib/appium_lib/common/patch.rb#L165)
|
2827
2854
|
|
2828
2855
|
> def patch_remote_driver_commands
|
2829
2856
|
|