appium_lib 10.3.1 → 11.0.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.github/workflows/rubocop.yml +27 -0
- data/.rubocop.yml +3 -7
- data/CHANGELOG.md +48 -0
- data/appium_lib.gemspec +5 -5
- data/docs/android_docs.md +292 -303
- data/docs/ios_docs.md +330 -405
- data/lib/appium_lib/android/element/button.rb +2 -2
- data/lib/appium_lib/android/espresso/element/button.rb +2 -2
- data/lib/appium_lib/android/uiautomator2/element/button.rb +2 -2
- data/lib/appium_lib/appium.rb +8 -1
- data/lib/appium_lib/common/wait.rb +1 -1
- data/lib/appium_lib/driver.rb +83 -12
- data/lib/appium_lib/ios/common/helper.rb +2 -2
- data/lib/appium_lib/version.rb +2 -2
- data/readme.md +1 -3
- data/release_notes.md +40 -0
- metadata +13 -13
- data/.travis.yml +0 -18
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 86642e929b104b2c8a37f72c314f8602d46c6d50968150d6c1de79f07eff1809
|
4
|
+
data.tar.gz: ff94ab1f9e8670ebed5e5c62a17c603cbc9de4d0ec5059cfd6b0defb8802a1dc
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a890f9ce5fa1ef9e46d31c133b129280bdf8ba9500854d5d45e6d02f68838002f1daa1498e570cc2f438fb33c69db641a5c11378a55c47d3fd953fae9e2b204d
|
7
|
+
data.tar.gz: cf5baaf622ff493532aa486c0ef5d2e8313b76536124d12c3f52cd0467f2faeca9f9f8fc58d5d8f3defe69810d4a9b03061aa3ad31a70271240cc78ba94b9bf4
|
@@ -0,0 +1,27 @@
|
|
1
|
+
name: rubocop
|
2
|
+
|
3
|
+
on:
|
4
|
+
push:
|
5
|
+
branches: [ master ]
|
6
|
+
pull_request:
|
7
|
+
branches: [ master ]
|
8
|
+
|
9
|
+
jobs:
|
10
|
+
test:
|
11
|
+
strategy:
|
12
|
+
fail-fast: false
|
13
|
+
matrix:
|
14
|
+
ruby: [2.4, 2.5, 2.6, 2.7]
|
15
|
+
|
16
|
+
runs-on: ubuntu-latest
|
17
|
+
|
18
|
+
steps:
|
19
|
+
- uses: actions/checkout@v2
|
20
|
+
- name: Set up Ruby
|
21
|
+
uses: ruby/setup-ruby@v1
|
22
|
+
with:
|
23
|
+
ruby-version: ${{ matrix.ruby }}
|
24
|
+
- name: Install dependencies
|
25
|
+
run: bundle install
|
26
|
+
- name: Run tests
|
27
|
+
run: bundle exec rake rubocop
|
data/.rubocop.yml
CHANGED
@@ -1,5 +1,5 @@
|
|
1
1
|
AllCops:
|
2
|
-
TargetRubyVersion: 2.
|
2
|
+
TargetRubyVersion: 2.4
|
3
3
|
Metrics/LineLength:
|
4
4
|
Max: 128
|
5
5
|
Metrics/MethodLength:
|
@@ -25,16 +25,12 @@ Style/GlobalVars:
|
|
25
25
|
Enabled: false
|
26
26
|
Style/PercentLiteralDelimiters:
|
27
27
|
Enabled: false
|
28
|
-
# Can use over Ruby2.3
|
29
|
-
Style/SafeNavigation:
|
30
|
-
Enabled: false
|
31
|
-
# Can use over Ruby2.3
|
32
|
-
Style/NumericPredicate:
|
33
|
-
Enabled: false
|
34
28
|
Style/CommentedKeyword:
|
35
29
|
Enabled: false
|
36
30
|
Naming/AccessorMethodName:
|
37
31
|
Enabled: false
|
32
|
+
Naming/RescuedExceptionsVariableName:
|
33
|
+
Enabled: false
|
38
34
|
Layout/IndentHeredoc:
|
39
35
|
Enabled: false
|
40
36
|
Layout/RescueEnsureAlignment:
|
data/CHANGELOG.md
CHANGED
@@ -4,9 +4,57 @@ Commit based release not is [release_notes.md](./release_notes.md)
|
|
4
4
|
Release tags are https://github.com/appium/ruby_lib/releases .
|
5
5
|
|
6
6
|
## Unreleased
|
7
|
+
|
8
|
+
### 1. Enhancements
|
9
|
+
|
10
|
+
### 2. Bug fixes
|
11
|
+
|
12
|
+
### 3. Deprecations
|
13
|
+
|
14
|
+
## 11.0.0 - 2020-12-19
|
15
|
+
|
16
|
+
Bump supported Ruby version to 2.4+
|
17
|
+
|
18
|
+
[related changes](https://github.com/appium/ruby_lib_core/blob/master/CHANGELOG.md#400---2020-12-19) in ruby_lib_core.
|
19
|
+
|
20
|
+
### 1. Enhancements
|
21
|
+
|
22
|
+
### 2. Bug fixes
|
23
|
+
|
24
|
+
### 3. Deprecations
|
25
|
+
|
26
|
+
## 10.6.0
|
27
|
+
### 1. Enhancements
|
28
|
+
|
29
|
+
### 2. Bug fixes
|
30
|
+
|
31
|
+
### 3. Deprecations
|
32
|
+
- Remove auto `Pry.config.pager` off
|
33
|
+
- Please turn it off if you needed. https://github.com/pry/pry/wiki/Customization-and-configuration#Config_pager
|
34
|
+
|
35
|
+
## v10.5.0
|
36
|
+
### 1. Enhancements
|
37
|
+
- Added `driver.log_event` to post an event
|
38
|
+
- Added `driver.log_events` to get the events
|
39
|
+
|
40
|
+
### 2. Bug fixes
|
41
|
+
|
42
|
+
### 3. Deprecations
|
43
|
+
|
44
|
+
## v10.4.1
|
45
|
+
### 1. Enhancements
|
46
|
+
|
47
|
+
### 2. Bug fixes
|
48
|
+
- Fix iOS `page` in native context
|
49
|
+
|
50
|
+
### 3. Deprecations
|
51
|
+
|
52
|
+
## v10.4.0
|
7
53
|
### 1. Enhancements
|
54
|
+
- Add `execute_driver` support
|
8
55
|
|
9
56
|
### 2. Bug fixes
|
57
|
+
- Fix wrong warning message in create session
|
10
58
|
|
11
59
|
### 3. Deprecations
|
12
60
|
|
data/appium_lib.gemspec
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
require_relative 'lib/appium_lib/version'
|
2
2
|
|
3
3
|
Gem::Specification.new do |s|
|
4
|
-
s.required_ruby_version = '>= 2.
|
4
|
+
s.required_ruby_version = '>= 2.4'
|
5
5
|
|
6
6
|
s.name = 'appium_lib'
|
7
7
|
s.version = Appium::VERSION
|
@@ -14,17 +14,17 @@ Gem::Specification.new do |s|
|
|
14
14
|
s.homepage = 'https://github.com/appium/ruby_lib' # published as appium_lib
|
15
15
|
s.require_paths = ['lib']
|
16
16
|
|
17
|
-
s.add_runtime_dependency 'appium_lib_core', '~>
|
17
|
+
s.add_runtime_dependency 'appium_lib_core', '~> 4.0'
|
18
18
|
s.add_runtime_dependency 'nokogiri', '~> 1.8', '>= 1.8.1'
|
19
19
|
s.add_runtime_dependency 'tomlrb', '~> 1.1'
|
20
20
|
|
21
21
|
s.add_development_dependency 'appium_thor', '~> 1.1', '>= 1.1.4'
|
22
22
|
s.add_development_dependency 'fakefs', '~> 0.13.0'
|
23
|
-
s.add_development_dependency 'hashdiff', '~> 0.
|
23
|
+
s.add_development_dependency 'hashdiff', '~> 1.0.0'
|
24
24
|
s.add_development_dependency 'posix-spawn', '~> 0.3'
|
25
25
|
s.add_development_dependency 'pry'
|
26
|
-
s.add_development_dependency 'rake', '~>
|
27
|
-
s.add_development_dependency 'rubocop', '~> 0.
|
26
|
+
s.add_development_dependency 'rake', '~> 13.0'
|
27
|
+
s.add_development_dependency 'rubocop', '~> 0.68.1'
|
28
28
|
s.add_development_dependency 'spec', '~> 5.3', '>= 5.3.4'
|
29
29
|
s.add_development_dependency 'yard', '~> 0.9.11'
|
30
30
|
|
data/docs/android_docs.md
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
##### [load_settings](https://github.com/appium/ruby_lib/blob/
|
1
|
+
##### [load_settings](https://github.com/appium/ruby_lib/blob/b4313b09e62dd22bb95c2e0bc6edd296c7ece7b4/lib/appium_lib/appium.rb#L60) common
|
2
2
|
|
3
3
|
> def load_settings(opts = {})
|
4
4
|
|
@@ -27,7 +27,7 @@ __Returns:__
|
|
27
27
|
|
28
28
|
--
|
29
29
|
|
30
|
-
##### [load_appium_txt](https://github.com/appium/ruby_lib/blob/
|
30
|
+
##### [load_appium_txt](https://github.com/appium/ruby_lib/blob/b4313b09e62dd22bb95c2e0bc6edd296c7ece7b4/lib/appium_lib/appium.rb#L96) common
|
31
31
|
|
32
32
|
> def load_settings(opts = {})
|
33
33
|
|
@@ -56,7 +56,7 @@ __Returns:__
|
|
56
56
|
|
57
57
|
--
|
58
58
|
|
59
|
-
##### [expand_required_files](https://github.com/appium/ruby_lib/blob/
|
59
|
+
##### [expand_required_files](https://github.com/appium/ruby_lib/blob/b4313b09e62dd22bb95c2e0bc6edd296c7ece7b4/lib/appium_lib/appium.rb#L101) common
|
60
60
|
|
61
61
|
> def expand_required_files(base_dir, file_paths)
|
62
62
|
|
@@ -74,7 +74,7 @@ __Returns:__
|
|
74
74
|
|
75
75
|
--
|
76
76
|
|
77
|
-
##### [promote_singleton_appium_methods](https://github.com/appium/ruby_lib/blob/
|
77
|
+
##### [promote_singleton_appium_methods](https://github.com/appium/ruby_lib/blob/b4313b09e62dd22bb95c2e0bc6edd296c7ece7b4/lib/appium_lib/appium.rb#L143) common
|
78
78
|
|
79
79
|
> def promote_singleton_appium_methods(modules, driver = $driver)
|
80
80
|
|
@@ -98,7 +98,7 @@ __Parameters:__
|
|
98
98
|
|
99
99
|
--
|
100
100
|
|
101
|
-
##### [promote_appium_methods](https://github.com/appium/ruby_lib/blob/
|
101
|
+
##### [promote_appium_methods](https://github.com/appium/ruby_lib/blob/b4313b09e62dd22bb95c2e0bc6edd296c7ece7b4/lib/appium_lib/appium.rb#L199) common
|
102
102
|
|
103
103
|
> def promote_appium_methods(class_array, driver = $driver)
|
104
104
|
|
@@ -116,7 +116,7 @@ __Parameters:__
|
|
116
116
|
|
117
117
|
--
|
118
118
|
|
119
|
-
##### [global_webdriver_http_sleep](https://github.com/appium/ruby_lib/blob/
|
119
|
+
##### [global_webdriver_http_sleep](https://github.com/appium/ruby_lib/blob/b4313b09e62dd22bb95c2e0bc6edd296c7ece7b4/lib/appium_lib/driver.rb#L49) common
|
120
120
|
|
121
121
|
> def global_webdriver_http_sleep
|
122
122
|
|
@@ -124,7 +124,7 @@ The amount to sleep in seconds before every webdriver http call.
|
|
124
124
|
|
125
125
|
--
|
126
126
|
|
127
|
-
##### [global_webdriver_http_sleep=](https://github.com/appium/ruby_lib/blob/
|
127
|
+
##### [global_webdriver_http_sleep=](https://github.com/appium/ruby_lib/blob/b4313b09e62dd22bb95c2e0bc6edd296c7ece7b4/lib/appium_lib/driver.rb#L49) common
|
128
128
|
|
129
129
|
> def global_webdriver_http_sleep=(value)
|
130
130
|
|
@@ -132,7 +132,7 @@ The amount to sleep in seconds before every webdriver http call.
|
|
132
132
|
|
133
133
|
--
|
134
134
|
|
135
|
-
##### [sauce](https://github.com/appium/ruby_lib/blob/
|
135
|
+
##### [sauce](https://github.com/appium/ruby_lib/blob/b4313b09e62dd22bb95c2e0bc6edd296c7ece7b4/lib/appium_lib/driver.rb#L52) common
|
136
136
|
|
137
137
|
> def sauce
|
138
138
|
|
@@ -140,7 +140,7 @@ SauceLab's settings
|
|
140
140
|
|
141
141
|
--
|
142
142
|
|
143
|
-
##### [sauce_username](https://github.com/appium/ruby_lib/blob/
|
143
|
+
##### [sauce_username](https://github.com/appium/ruby_lib/blob/b4313b09e62dd22bb95c2e0bc6edd296c7ece7b4/lib/appium_lib/driver.rb#L55) common
|
144
144
|
|
145
145
|
> def sauce_username
|
146
146
|
|
@@ -149,7 +149,7 @@ same as @sauce.username
|
|
149
149
|
|
150
150
|
--
|
151
151
|
|
152
|
-
##### [sauce_access_key](https://github.com/appium/ruby_lib/blob/
|
152
|
+
##### [sauce_access_key](https://github.com/appium/ruby_lib/blob/b4313b09e62dd22bb95c2e0bc6edd296c7ece7b4/lib/appium_lib/driver.rb#L58) common
|
153
153
|
|
154
154
|
> def sauce_access_key
|
155
155
|
|
@@ -158,7 +158,7 @@ same as @sauce.access_key
|
|
158
158
|
|
159
159
|
--
|
160
160
|
|
161
|
-
##### [sauce_endpoint](https://github.com/appium/ruby_lib/blob/
|
161
|
+
##### [sauce_endpoint](https://github.com/appium/ruby_lib/blob/b4313b09e62dd22bb95c2e0bc6edd296c7ece7b4/lib/appium_lib/driver.rb#L61) common
|
162
162
|
|
163
163
|
> def sauce_endpoint
|
164
164
|
|
@@ -167,7 +167,7 @@ same as @sauce.endpoint
|
|
167
167
|
|
168
168
|
--
|
169
169
|
|
170
|
-
##### [caps](https://github.com/appium/ruby_lib/blob/
|
170
|
+
##### [caps](https://github.com/appium/ruby_lib/blob/b4313b09e62dd22bb95c2e0bc6edd296c7ece7b4/lib/appium_lib/driver.rb#L65) common
|
171
171
|
|
172
172
|
> def caps
|
173
173
|
|
@@ -176,95 +176,95 @@ read http://www.rubydoc.info/github/appium/ruby_lib_core/Appium/Core/Driver
|
|
176
176
|
|
177
177
|
--
|
178
178
|
|
179
|
-
##### [custom_url](https://github.com/appium/ruby_lib/blob/
|
179
|
+
##### [custom_url](https://github.com/appium/ruby_lib/blob/b4313b09e62dd22bb95c2e0bc6edd296c7ece7b4/lib/appium_lib/driver.rb#L66) common
|
180
180
|
|
181
181
|
> def custom_url
|
182
182
|
|
183
|
-
Returns the value of attribute custom_url
|
183
|
+
Returns the value of attribute custom_url.
|
184
184
|
|
185
185
|
--
|
186
186
|
|
187
|
-
##### [export_session](https://github.com/appium/ruby_lib/blob/
|
187
|
+
##### [export_session](https://github.com/appium/ruby_lib/blob/b4313b09e62dd22bb95c2e0bc6edd296c7ece7b4/lib/appium_lib/driver.rb#L67) common
|
188
188
|
|
189
189
|
> def export_session
|
190
190
|
|
191
|
-
Returns the value of attribute export_session
|
191
|
+
Returns the value of attribute export_session.
|
192
192
|
|
193
193
|
--
|
194
194
|
|
195
|
-
##### [export_session_path](https://github.com/appium/ruby_lib/blob/
|
195
|
+
##### [export_session_path](https://github.com/appium/ruby_lib/blob/b4313b09e62dd22bb95c2e0bc6edd296c7ece7b4/lib/appium_lib/driver.rb#L68) common
|
196
196
|
|
197
197
|
> def export_session_path
|
198
198
|
|
199
|
-
Returns the value of attribute export_session_path
|
199
|
+
Returns the value of attribute export_session_path.
|
200
200
|
|
201
201
|
--
|
202
202
|
|
203
|
-
##### [default_wait](https://github.com/appium/ruby_lib/blob/
|
203
|
+
##### [default_wait](https://github.com/appium/ruby_lib/blob/b4313b09e62dd22bb95c2e0bc6edd296c7ece7b4/lib/appium_lib/driver.rb#L69) common
|
204
204
|
|
205
205
|
> def default_wait
|
206
206
|
|
207
|
-
Returns the value of attribute default_wait
|
207
|
+
Returns the value of attribute default_wait.
|
208
208
|
|
209
209
|
--
|
210
210
|
|
211
|
-
##### [appium_port](https://github.com/appium/ruby_lib/blob/
|
211
|
+
##### [appium_port](https://github.com/appium/ruby_lib/blob/b4313b09e62dd22bb95c2e0bc6edd296c7ece7b4/lib/appium_lib/driver.rb#L70) common
|
212
212
|
|
213
213
|
> def appium_port
|
214
214
|
|
215
|
-
Returns the value of attribute appium_port
|
215
|
+
Returns the value of attribute appium_port.
|
216
216
|
|
217
217
|
--
|
218
218
|
|
219
|
-
##### [appium_device](https://github.com/appium/ruby_lib/blob/
|
219
|
+
##### [appium_device](https://github.com/appium/ruby_lib/blob/b4313b09e62dd22bb95c2e0bc6edd296c7ece7b4/lib/appium_lib/driver.rb#L71) common
|
220
220
|
|
221
221
|
> def appium_device
|
222
222
|
|
223
|
-
Returns the value of attribute appium_device
|
223
|
+
Returns the value of attribute appium_device.
|
224
224
|
|
225
225
|
--
|
226
226
|
|
227
|
-
##### [automation_name](https://github.com/appium/ruby_lib/blob/
|
227
|
+
##### [automation_name](https://github.com/appium/ruby_lib/blob/b4313b09e62dd22bb95c2e0bc6edd296c7ece7b4/lib/appium_lib/driver.rb#L72) common
|
228
228
|
|
229
229
|
> def automation_name
|
230
230
|
|
231
|
-
Returns the value of attribute automation_name
|
231
|
+
Returns the value of attribute automation_name.
|
232
232
|
|
233
233
|
--
|
234
234
|
|
235
|
-
##### [listener](https://github.com/appium/ruby_lib/blob/
|
235
|
+
##### [listener](https://github.com/appium/ruby_lib/blob/b4313b09e62dd22bb95c2e0bc6edd296c7ece7b4/lib/appium_lib/driver.rb#L73) common
|
236
236
|
|
237
237
|
> def listener
|
238
238
|
|
239
|
-
Returns the value of attribute listener
|
239
|
+
Returns the value of attribute listener.
|
240
240
|
|
241
241
|
--
|
242
242
|
|
243
|
-
##### [http_client](https://github.com/appium/ruby_lib/blob/
|
243
|
+
##### [http_client](https://github.com/appium/ruby_lib/blob/b4313b09e62dd22bb95c2e0bc6edd296c7ece7b4/lib/appium_lib/driver.rb#L74) common
|
244
244
|
|
245
245
|
> def http_client
|
246
246
|
|
247
|
-
Returns the value of attribute http_client
|
247
|
+
Returns the value of attribute http_client.
|
248
248
|
|
249
249
|
--
|
250
250
|
|
251
|
-
##### [appium_wait_timeout](https://github.com/appium/ruby_lib/blob/
|
251
|
+
##### [appium_wait_timeout](https://github.com/appium/ruby_lib/blob/b4313b09e62dd22bb95c2e0bc6edd296c7ece7b4/lib/appium_lib/driver.rb#L75) common
|
252
252
|
|
253
253
|
> def appium_wait_timeout
|
254
254
|
|
255
|
-
Returns the value of attribute appium_wait_timeout
|
255
|
+
Returns the value of attribute appium_wait_timeout.
|
256
256
|
|
257
257
|
--
|
258
258
|
|
259
|
-
##### [appium_wait_interval](https://github.com/appium/ruby_lib/blob/
|
259
|
+
##### [appium_wait_interval](https://github.com/appium/ruby_lib/blob/b4313b09e62dd22bb95c2e0bc6edd296c7ece7b4/lib/appium_lib/driver.rb#L76) common
|
260
260
|
|
261
261
|
> def appium_wait_interval
|
262
262
|
|
263
|
-
Returns the value of attribute appium_wait_interval
|
263
|
+
Returns the value of attribute appium_wait_interval.
|
264
264
|
|
265
265
|
--
|
266
266
|
|
267
|
-
##### [appium_server_status](https://github.com/appium/ruby_lib/blob/
|
267
|
+
##### [appium_server_status](https://github.com/appium/ruby_lib/blob/b4313b09e62dd22bb95c2e0bc6edd296c7ece7b4/lib/appium_lib/driver.rb#L79) common
|
268
268
|
|
269
269
|
> def appium_server_status
|
270
270
|
|
@@ -272,7 +272,7 @@ Appium's server version
|
|
272
272
|
|
273
273
|
--
|
274
274
|
|
275
|
-
##### [appium_debug](https://github.com/appium/ruby_lib/blob/
|
275
|
+
##### [appium_debug](https://github.com/appium/ruby_lib/blob/b4313b09e62dd22bb95c2e0bc6edd296c7ece7b4/lib/appium_lib/driver.rb#L81) common
|
276
276
|
|
277
277
|
> def appium_debug
|
278
278
|
|
@@ -280,7 +280,7 @@ Boolean debug mode for the Appium Ruby bindings
|
|
280
280
|
|
281
281
|
--
|
282
282
|
|
283
|
-
##### [driver](https://github.com/appium/ruby_lib/blob/
|
283
|
+
##### [driver](https://github.com/appium/ruby_lib/blob/b4313b09e62dd22bb95c2e0bc6edd296c7ece7b4/lib/appium_lib/driver.rb#L84) common
|
284
284
|
|
285
285
|
> def driver
|
286
286
|
|
@@ -292,7 +292,7 @@ __Returns:__
|
|
292
292
|
|
293
293
|
--
|
294
294
|
|
295
|
-
##### [core](https://github.com/appium/ruby_lib/blob/
|
295
|
+
##### [core](https://github.com/appium/ruby_lib/blob/b4313b09e62dd22bb95c2e0bc6edd296c7ece7b4/lib/appium_lib/driver.rb#L86) common
|
296
296
|
|
297
297
|
> def core
|
298
298
|
|
@@ -300,7 +300,7 @@ Instance of Appium::Core::Driver
|
|
300
300
|
|
301
301
|
--
|
302
302
|
|
303
|
-
##### [initialize](https://github.com/appium/ruby_lib/blob/
|
303
|
+
##### [initialize](https://github.com/appium/ruby_lib/blob/b4313b09e62dd22bb95c2e0bc6edd296c7ece7b4/lib/appium_lib/driver.rb#L154) common
|
304
304
|
|
305
305
|
> def initialize(opts = {}, global_driver = nil)
|
306
306
|
|
@@ -319,7 +319,7 @@ __Returns:__
|
|
319
319
|
|
320
320
|
--
|
321
321
|
|
322
|
-
##### [driver_attributes](https://github.com/appium/ruby_lib/blob/
|
322
|
+
##### [driver_attributes](https://github.com/appium/ruby_lib/blob/b4313b09e62dd22bb95c2e0bc6edd296c7ece7b4/lib/appium_lib/driver.rb#L278) common
|
323
323
|
|
324
324
|
> def driver_attributes
|
325
325
|
|
@@ -327,7 +327,7 @@ Returns a hash of the driver attributes
|
|
327
327
|
|
328
328
|
--
|
329
329
|
|
330
|
-
##### [device_is_android?](https://github.com/appium/ruby_lib/blob/
|
330
|
+
##### [device_is_android?](https://github.com/appium/ruby_lib/blob/b4313b09e62dd22bb95c2e0bc6edd296c7ece7b4/lib/appium_lib/driver.rb#L300) common
|
331
331
|
|
332
332
|
> def device_is_android?
|
333
333
|
|
@@ -339,7 +339,7 @@ __Returns:__
|
|
339
339
|
|
340
340
|
--
|
341
341
|
|
342
|
-
##### [device_is_ios?](https://github.com/appium/ruby_lib/blob/
|
342
|
+
##### [device_is_ios?](https://github.com/appium/ruby_lib/blob/b4313b09e62dd22bb95c2e0bc6edd296c7ece7b4/lib/appium_lib/driver.rb#L304) common
|
343
343
|
|
344
344
|
> def device_is_ios?
|
345
345
|
|
@@ -351,7 +351,7 @@ __Returns:__
|
|
351
351
|
|
352
352
|
--
|
353
353
|
|
354
|
-
##### [device_is_windows?](https://github.com/appium/ruby_lib/blob/
|
354
|
+
##### [device_is_windows?](https://github.com/appium/ruby_lib/blob/b4313b09e62dd22bb95c2e0bc6edd296c7ece7b4/lib/appium_lib/driver.rb#L308) common
|
355
355
|
|
356
356
|
> def device_is_windows?
|
357
357
|
|
@@ -363,7 +363,7 @@ __Returns:__
|
|
363
363
|
|
364
364
|
--
|
365
365
|
|
366
|
-
##### [automation_name_is_uiautomator2?](https://github.com/appium/ruby_lib/blob/
|
366
|
+
##### [automation_name_is_uiautomator2?](https://github.com/appium/ruby_lib/blob/b4313b09e62dd22bb95c2e0bc6edd296c7ece7b4/lib/appium_lib/driver.rb#L314) common
|
367
367
|
|
368
368
|
> def automation_name_is_uiautomator2?
|
369
369
|
|
@@ -375,7 +375,7 @@ __Returns:__
|
|
375
375
|
|
376
376
|
--
|
377
377
|
|
378
|
-
##### [automation_name_is_espresso?](https://github.com/appium/ruby_lib/blob/
|
378
|
+
##### [automation_name_is_espresso?](https://github.com/appium/ruby_lib/blob/b4313b09e62dd22bb95c2e0bc6edd296c7ece7b4/lib/appium_lib/driver.rb#L320) common
|
379
379
|
|
380
380
|
> def automation_name_is_espresso?
|
381
381
|
|
@@ -387,7 +387,7 @@ __Returns:__
|
|
387
387
|
|
388
388
|
--
|
389
389
|
|
390
|
-
##### [automation_name_is_xcuitest?](https://github.com/appium/ruby_lib/blob/
|
390
|
+
##### [automation_name_is_xcuitest?](https://github.com/appium/ruby_lib/blob/b4313b09e62dd22bb95c2e0bc6edd296c7ece7b4/lib/appium_lib/driver.rb#L326) common
|
391
391
|
|
392
392
|
> def automation_name_is_xcuitest?
|
393
393
|
|
@@ -399,7 +399,7 @@ __Returns:__
|
|
399
399
|
|
400
400
|
--
|
401
401
|
|
402
|
-
##### [dialect](https://github.com/appium/ruby_lib/blob/
|
402
|
+
##### [dialect](https://github.com/appium/ruby_lib/blob/b4313b09e62dd22bb95c2e0bc6edd296c7ece7b4/lib/appium_lib/driver.rb#L346) common
|
403
403
|
|
404
404
|
> def dialect
|
405
405
|
|
@@ -421,7 +421,7 @@ __Returns:__
|
|
421
421
|
|
422
422
|
--
|
423
423
|
|
424
|
-
##### [action](https://github.com/appium/ruby_lib/blob/
|
424
|
+
##### [action](https://github.com/appium/ruby_lib/blob/b4313b09e62dd22bb95c2e0bc6edd296c7ece7b4/lib/appium_lib/driver.rb#L360) common
|
425
425
|
|
426
426
|
> def action
|
427
427
|
|
@@ -434,7 +434,7 @@ __Returns:__
|
|
434
434
|
|
435
435
|
--
|
436
436
|
|
437
|
-
##### [appium_server_version](https://github.com/appium/ruby_lib/blob/
|
437
|
+
##### [appium_server_version](https://github.com/appium/ruby_lib/blob/b4313b09e62dd22bb95c2e0bc6edd296c7ece7b4/lib/appium_lib/driver.rb#L380) common
|
438
438
|
|
439
439
|
> def appium_server_version
|
440
440
|
|
@@ -446,7 +446,7 @@ __Returns:__
|
|
446
446
|
|
447
447
|
--
|
448
448
|
|
449
|
-
##### [remote_status](https://github.com/appium/ruby_lib/blob/
|
449
|
+
##### [remote_status](https://github.com/appium/ruby_lib/blob/b4313b09e62dd22bb95c2e0bc6edd296c7ece7b4/lib/appium_lib/driver.rb#L388) common
|
450
450
|
|
451
451
|
> def appium_server_version
|
452
452
|
|
@@ -458,7 +458,7 @@ __Returns:__
|
|
458
458
|
|
459
459
|
--
|
460
460
|
|
461
|
-
##### [platform_version](https://github.com/appium/ruby_lib/blob/
|
461
|
+
##### [platform_version](https://github.com/appium/ruby_lib/blob/b4313b09e62dd22bb95c2e0bc6edd296c7ece7b4/lib/appium_lib/driver.rb#L392) common
|
462
462
|
|
463
463
|
> def platform_version
|
464
464
|
|
@@ -470,7 +470,7 @@ __Returns:__
|
|
470
470
|
|
471
471
|
--
|
472
472
|
|
473
|
-
##### [appium_client_version](https://github.com/appium/ruby_lib/blob/
|
473
|
+
##### [appium_client_version](https://github.com/appium/ruby_lib/blob/b4313b09e62dd22bb95c2e0bc6edd296c7ece7b4/lib/appium_lib/driver.rb#L405) common
|
474
474
|
|
475
475
|
> def appium_client_version
|
476
476
|
|
@@ -482,9 +482,9 @@ __Returns:__
|
|
482
482
|
|
483
483
|
--
|
484
484
|
|
485
|
-
##### [absolute_app_path](https://github.com/appium/ruby_lib/blob/
|
485
|
+
##### [absolute_app_path](https://github.com/appium/ruby_lib/blob/b4313b09e62dd22bb95c2e0bc6edd296c7ece7b4/lib/appium_lib/driver.rb#L417) common
|
486
486
|
|
487
|
-
> def
|
487
|
+
> def absolute_app_path(opts)
|
488
488
|
|
489
489
|
Converts app_path to an absolute path.
|
490
490
|
|
@@ -499,7 +499,7 @@ __Returns:__
|
|
499
499
|
|
500
500
|
--
|
501
501
|
|
502
|
-
##### [server_url](https://github.com/appium/ruby_lib/blob/
|
502
|
+
##### [server_url](https://github.com/appium/ruby_lib/blob/b4313b09e62dd22bb95c2e0bc6edd296c7ece7b4/lib/appium_lib/driver.rb#L440) common
|
503
503
|
|
504
504
|
> def server_url
|
505
505
|
|
@@ -511,7 +511,7 @@ __Returns:__
|
|
511
511
|
|
512
512
|
--
|
513
513
|
|
514
|
-
##### [restart](https://github.com/appium/ruby_lib/blob/
|
514
|
+
##### [restart](https://github.com/appium/ruby_lib/blob/b4313b09e62dd22bb95c2e0bc6edd296c7ece7b4/lib/appium_lib/driver.rb#L449) common
|
515
515
|
|
516
516
|
> def restart
|
517
517
|
|
@@ -523,7 +523,7 @@ __Returns:__
|
|
523
523
|
|
524
524
|
--
|
525
525
|
|
526
|
-
##### [screenshot](https://github.com/appium/ruby_lib/blob/
|
526
|
+
##### [screenshot](https://github.com/appium/ruby_lib/blob/b4313b09e62dd22bb95c2e0bc6edd296c7ece7b4/lib/appium_lib/driver.rb#L462) common
|
527
527
|
|
528
528
|
> def screenshot(png_save_path)
|
529
529
|
|
@@ -539,7 +539,7 @@ __Returns:__
|
|
539
539
|
|
540
540
|
--
|
541
541
|
|
542
|
-
##### [element_screenshot](https://github.com/appium/ruby_lib/blob/
|
542
|
+
##### [element_screenshot](https://github.com/appium/ruby_lib/blob/b4313b09e62dd22bb95c2e0bc6edd296c7ece7b4/lib/appium_lib/driver.rb#L476) common
|
543
543
|
|
544
544
|
> def element_screenshot(element, png_save_path)
|
545
545
|
|
@@ -557,7 +557,7 @@ __Returns:__
|
|
557
557
|
|
558
558
|
--
|
559
559
|
|
560
|
-
##### [driver_quit](https://github.com/appium/ruby_lib/blob/
|
560
|
+
##### [driver_quit](https://github.com/appium/ruby_lib/blob/b4313b09e62dd22bb95c2e0bc6edd296c7ece7b4/lib/appium_lib/driver.rb#L483) common
|
561
561
|
|
562
562
|
> def driver_quit
|
563
563
|
|
@@ -569,7 +569,7 @@ __Returns:__
|
|
569
569
|
|
570
570
|
--
|
571
571
|
|
572
|
-
##### [quit_driver](https://github.com/appium/ruby_lib/blob/
|
572
|
+
##### [quit_driver](https://github.com/appium/ruby_lib/blob/b4313b09e62dd22bb95c2e0bc6edd296c7ece7b4/lib/appium_lib/driver.rb#L486) common
|
573
573
|
|
574
574
|
> def driver_quit
|
575
575
|
|
@@ -581,7 +581,7 @@ __Returns:__
|
|
581
581
|
|
582
582
|
--
|
583
583
|
|
584
|
-
##### [window_size](https://github.com/appium/ruby_lib/blob/
|
584
|
+
##### [window_size](https://github.com/appium/ruby_lib/blob/b4313b09e62dd22bb95c2e0bc6edd296c7ece7b4/lib/appium_lib/driver.rb#L497) common
|
585
585
|
|
586
586
|
> def window_size
|
587
587
|
|
@@ -593,7 +593,7 @@ __Returns:__
|
|
593
593
|
|
594
594
|
--
|
595
595
|
|
596
|
-
##### [window_rect](https://github.com/appium/ruby_lib/blob/
|
596
|
+
##### [window_rect](https://github.com/appium/ruby_lib/blob/b4313b09e62dd22bb95c2e0bc6edd296c7ece7b4/lib/appium_lib/driver.rb#L512) common
|
597
597
|
|
598
598
|
> def window_rect
|
599
599
|
|
@@ -605,9 +605,9 @@ __Returns:__
|
|
605
605
|
|
606
606
|
--
|
607
607
|
|
608
|
-
##### [start_driver](https://github.com/appium/ruby_lib/blob/
|
608
|
+
##### [start_driver](https://github.com/appium/ruby_lib/blob/b4313b09e62dd22bb95c2e0bc6edd296c7ece7b4/lib/appium_lib/driver.rb#L545) common
|
609
609
|
|
610
|
-
> def start_driver(http_client_ops =
|
610
|
+
> def start_driver(http_client_ops = { http_client: ::Appium::Http::Default.new, open_timeout: 999_999, read_timeout: 999_999 })
|
611
611
|
|
612
612
|
Creates a new global driver and quits the old one if it exists.
|
613
613
|
You can customise http_client as the following
|
@@ -625,7 +625,7 @@ __Returns:__
|
|
625
625
|
|
626
626
|
--
|
627
627
|
|
628
|
-
##### [set_implicit_wait](https://github.com/appium/ruby_lib/blob/
|
628
|
+
##### [set_implicit_wait](https://github.com/appium/ruby_lib/blob/b4313b09e62dd22bb95c2e0bc6edd296c7ece7b4/lib/appium_lib/driver.rb#L566) common
|
629
629
|
|
630
630
|
> def set_implicit_wait(wait)
|
631
631
|
|
@@ -633,7 +633,7 @@ To ignore error for Espresso Driver
|
|
633
633
|
|
634
634
|
--
|
635
635
|
|
636
|
-
##### [no_wait](https://github.com/appium/ruby_lib/blob/
|
636
|
+
##### [no_wait](https://github.com/appium/ruby_lib/blob/b4313b09e62dd22bb95c2e0bc6edd296c7ece7b4/lib/appium_lib/driver.rb#L577) common
|
637
637
|
|
638
638
|
> def no_wait
|
639
639
|
|
@@ -641,7 +641,7 @@ Set implicit wait to zero.
|
|
641
641
|
|
642
642
|
--
|
643
643
|
|
644
|
-
##### [set_wait](https://github.com/appium/ruby_lib/blob/
|
644
|
+
##### [set_wait](https://github.com/appium/ruby_lib/blob/b4313b09e62dd22bb95c2e0bc6edd296c7ece7b4/lib/appium_lib/driver.rb#L591) common
|
645
645
|
|
646
646
|
> def set_wait(timeout = nil)
|
647
647
|
|
@@ -657,7 +657,7 @@ __Returns:__
|
|
657
657
|
|
658
658
|
--
|
659
659
|
|
660
|
-
##### [exists](https://github.com/appium/ruby_lib/blob/
|
660
|
+
##### [exists](https://github.com/appium/ruby_lib/blob/b4313b09e62dd22bb95c2e0bc6edd296c7ece7b4/lib/appium_lib/driver.rb#L608) common
|
661
661
|
|
662
662
|
> def exists(pre_check = 0, post_check = @core.default_wait)
|
663
663
|
|
@@ -681,7 +681,7 @@ __Returns:__
|
|
681
681
|
|
682
682
|
--
|
683
683
|
|
684
|
-
##### [execute_script](https://github.com/appium/ruby_lib/blob/
|
684
|
+
##### [execute_script](https://github.com/appium/ruby_lib/blob/b4313b09e62dd22bb95c2e0bc6edd296c7ece7b4/lib/appium_lib/driver.rb#L632) common
|
685
685
|
|
686
686
|
> def execute_script(script, *args)
|
687
687
|
|
@@ -699,7 +699,7 @@ __Returns:__
|
|
699
699
|
|
700
700
|
--
|
701
701
|
|
702
|
-
##### [execute_async_script](https://github.com/appium/ruby_lib/blob/
|
702
|
+
##### [execute_async_script](https://github.com/appium/ruby_lib/blob/b4313b09e62dd22bb95c2e0bc6edd296c7ece7b4/lib/appium_lib/driver.rb#L640) common
|
703
703
|
|
704
704
|
> def execute_async_script(script, *args)
|
705
705
|
|
@@ -709,7 +709,33 @@ Get the window handles of open browser windows
|
|
709
709
|
|
710
710
|
--
|
711
711
|
|
712
|
-
##### [
|
712
|
+
##### [execute_driver](https://github.com/appium/ruby_lib/blob/b4313b09e62dd22bb95c2e0bc6edd296c7ece7b4/lib/appium_lib/driver.rb#L672) common
|
713
|
+
|
714
|
+
> def execute_driver(script: '', type: 'webdriverio', timeout_ms: nil)
|
715
|
+
|
716
|
+
Run a set of script against the current session, allowing execution of many commands in one Appium request.
|
717
|
+
Supports {https://webdriver.io/docs/api.html WebdriverIO} API so far.
|
718
|
+
Please read {http://appium.io/docs/en/commands/session/execute-driver command API} for more details
|
719
|
+
about acceptable scripts and the output.
|
720
|
+
|
721
|
+
__Parameters:__
|
722
|
+
|
723
|
+
[String] script - The string consisting of the script itself
|
724
|
+
|
725
|
+
[String] type - The name of the script type.
|
726
|
+
Defaults to 'webdriverio'. Depends on server implementation which type is supported.
|
727
|
+
|
728
|
+
[Integer] timeout_ms - The number of `ms` Appium should wait for the script to finish
|
729
|
+
before killing it due to timeout.
|
730
|
+
|
731
|
+
__Returns:__
|
732
|
+
|
733
|
+
[Appium::Core::Base::Device::ExecuteDriver::Result] The script result parsed by
|
734
|
+
Appium::Core::Base::Device::ExecuteDriver::Result.
|
735
|
+
|
736
|
+
--
|
737
|
+
|
738
|
+
##### [window_handles](https://github.com/appium/ruby_lib/blob/b4313b09e62dd22bb95c2e0bc6edd296c7ece7b4/lib/appium_lib/driver.rb#L676) common
|
713
739
|
|
714
740
|
> def window_handles
|
715
741
|
|
@@ -717,7 +743,7 @@ Get the window handles of open browser windows
|
|
717
743
|
|
718
744
|
--
|
719
745
|
|
720
|
-
##### [window_handle](https://github.com/appium/ruby_lib/blob/
|
746
|
+
##### [window_handle](https://github.com/appium/ruby_lib/blob/b4313b09e62dd22bb95c2e0bc6edd296c7ece7b4/lib/appium_lib/driver.rb#L681) common
|
721
747
|
|
722
748
|
> def window_handle
|
723
749
|
|
@@ -725,7 +751,7 @@ Get the current window handle
|
|
725
751
|
|
726
752
|
--
|
727
753
|
|
728
|
-
##### [navigate](https://github.com/appium/ruby_lib/blob/
|
754
|
+
##### [navigate](https://github.com/appium/ruby_lib/blob/b4313b09e62dd22bb95c2e0bc6edd296c7ece7b4/lib/appium_lib/driver.rb#L685) common
|
729
755
|
|
730
756
|
> def navigate
|
731
757
|
|
@@ -733,7 +759,7 @@ Get the current window handle
|
|
733
759
|
|
734
760
|
--
|
735
761
|
|
736
|
-
##### [manage](https://github.com/appium/ruby_lib/blob/
|
762
|
+
##### [manage](https://github.com/appium/ruby_lib/blob/b4313b09e62dd22bb95c2e0bc6edd296c7ece7b4/lib/appium_lib/driver.rb#L689) common
|
737
763
|
|
738
764
|
> def manage
|
739
765
|
|
@@ -741,7 +767,7 @@ Get the current window handle
|
|
741
767
|
|
742
768
|
--
|
743
769
|
|
744
|
-
##### [get](https://github.com/appium/ruby_lib/blob/
|
770
|
+
##### [get](https://github.com/appium/ruby_lib/blob/b4313b09e62dd22bb95c2e0bc6edd296c7ece7b4/lib/appium_lib/driver.rb#L693) common
|
745
771
|
|
746
772
|
> def get(url)
|
747
773
|
|
@@ -749,7 +775,7 @@ Get the current window handle
|
|
749
775
|
|
750
776
|
--
|
751
777
|
|
752
|
-
##### [current_url](https://github.com/appium/ruby_lib/blob/
|
778
|
+
##### [current_url](https://github.com/appium/ruby_lib/blob/b4313b09e62dd22bb95c2e0bc6edd296c7ece7b4/lib/appium_lib/driver.rb#L697) common
|
753
779
|
|
754
780
|
> def current_url
|
755
781
|
|
@@ -757,7 +783,7 @@ Get the current window handle
|
|
757
783
|
|
758
784
|
--
|
759
785
|
|
760
|
-
##### [title](https://github.com/appium/ruby_lib/blob/
|
786
|
+
##### [title](https://github.com/appium/ruby_lib/blob/b4313b09e62dd22bb95c2e0bc6edd296c7ece7b4/lib/appium_lib/driver.rb#L701) common
|
761
787
|
|
762
788
|
> def title
|
763
789
|
|
@@ -765,7 +791,7 @@ Get the current window handle
|
|
765
791
|
|
766
792
|
--
|
767
793
|
|
768
|
-
##### [switch_to](https://github.com/appium/ruby_lib/blob/
|
794
|
+
##### [switch_to](https://github.com/appium/ruby_lib/blob/b4313b09e62dd22bb95c2e0bc6edd296c7ece7b4/lib/appium_lib/driver.rb#L707) common
|
769
795
|
|
770
796
|
> def switch_to
|
771
797
|
|
@@ -777,7 +803,7 @@ __Returns:__
|
|
777
803
|
|
778
804
|
--
|
779
805
|
|
780
|
-
##### [find_elements](https://github.com/appium/ruby_lib/blob/
|
806
|
+
##### [find_elements](https://github.com/appium/ruby_lib/blob/b4313b09e62dd22bb95c2e0bc6edd296c7ece7b4/lib/appium_lib/driver.rb#L734) common
|
781
807
|
|
782
808
|
> def find_elements(*args)
|
783
809
|
|
@@ -797,7 +823,7 @@ __Returns:__
|
|
797
823
|
|
798
824
|
--
|
799
825
|
|
800
|
-
##### [find_element](https://github.com/appium/ruby_lib/blob/
|
826
|
+
##### [find_element](https://github.com/appium/ruby_lib/blob/b4313b09e62dd22bb95c2e0bc6edd296c7ece7b4/lib/appium_lib/driver.rb#L750) common
|
801
827
|
|
802
828
|
> def find_element(*args)
|
803
829
|
|
@@ -815,7 +841,7 @@ __Returns:__
|
|
815
841
|
|
816
842
|
--
|
817
843
|
|
818
|
-
##### [find_element_by_image](https://github.com/appium/ruby_lib/blob/
|
844
|
+
##### [find_element_by_image](https://github.com/appium/ruby_lib/blob/b4313b09e62dd22bb95c2e0bc6edd296c7ece7b4/lib/appium_lib/driver.rb#L765) common
|
819
845
|
|
820
846
|
> def find_element_by_image(png_img_path)
|
821
847
|
|
@@ -831,7 +857,7 @@ __Returns:__
|
|
831
857
|
|
832
858
|
--
|
833
859
|
|
834
|
-
##### [find_elements_by_image](https://github.com/appium/ruby_lib/blob/
|
860
|
+
##### [find_elements_by_image](https://github.com/appium/ruby_lib/blob/b4313b09e62dd22bb95c2e0bc6edd296c7ece7b4/lib/appium_lib/driver.rb#L780) common
|
835
861
|
|
836
862
|
> def find_elements_by_image(png_img_paths)
|
837
863
|
|
@@ -847,7 +873,7 @@ __Returns:__
|
|
847
873
|
|
848
874
|
--
|
849
875
|
|
850
|
-
##### [set_location](https://github.com/appium/ruby_lib/blob/
|
876
|
+
##### [set_location](https://github.com/appium/ruby_lib/blob/b4313b09e62dd22bb95c2e0bc6edd296c7ece7b4/lib/appium_lib/driver.rb#L793) common
|
851
877
|
|
852
878
|
> def set_location(opts = {})
|
853
879
|
|
@@ -863,7 +889,50 @@ __Returns:__
|
|
863
889
|
|
864
890
|
--
|
865
891
|
|
866
|
-
##### [
|
892
|
+
##### [log_event](https://github.com/appium/ruby_lib/blob/b4313b09e62dd22bb95c2e0bc6edd296c7ece7b4/lib/appium_lib/driver.rb#L817) common
|
893
|
+
|
894
|
+
> def log_event(vendor:, event:)
|
895
|
+
|
896
|
+
Logs a custom event. The event is available via {::Appium::Core::Events#get} or
|
897
|
+
<code>driver.session_capabilities['events']</code> with <code>eventTimings</code> capabilities.
|
898
|
+
|
899
|
+
__Parameters:__
|
900
|
+
|
901
|
+
[String] vendor - The vendor prefix for the event
|
902
|
+
|
903
|
+
[String] event - The name of event
|
904
|
+
|
905
|
+
__Returns:__
|
906
|
+
|
907
|
+
[nil]
|
908
|
+
|
909
|
+
--
|
910
|
+
|
911
|
+
##### [log_event=](https://github.com/appium/ruby_lib/blob/b4313b09e62dd22bb95c2e0bc6edd296c7ece7b4/lib/appium_lib/driver.rb#L821) common
|
912
|
+
|
913
|
+
> def log_event=(log_event)
|
914
|
+
|
915
|
+
|
916
|
+
|
917
|
+
--
|
918
|
+
|
919
|
+
##### [log_events](https://github.com/appium/ruby_lib/blob/b4313b09e62dd22bb95c2e0bc6edd296c7ece7b4/lib/appium_lib/driver.rb#L838) common
|
920
|
+
|
921
|
+
> def log_events(type = nil)
|
922
|
+
|
923
|
+
Returns events with filtering with 'type'. Defaults to all available events.
|
924
|
+
|
925
|
+
__Parameters:__
|
926
|
+
|
927
|
+
[String] type - The type of events to get
|
928
|
+
|
929
|
+
__Returns:__
|
930
|
+
|
931
|
+
[Hash]
|
932
|
+
|
933
|
+
--
|
934
|
+
|
935
|
+
##### [x](https://github.com/appium/ruby_lib/blob/b4313b09e62dd22bb95c2e0bc6edd296c7ece7b4/lib/appium_lib/driver.rb#L845) common
|
867
936
|
|
868
937
|
> def x
|
869
938
|
|
@@ -876,7 +945,7 @@ __Returns:__
|
|
876
945
|
|
877
946
|
--
|
878
947
|
|
879
|
-
##### [username](https://github.com/appium/ruby_lib/blob/
|
948
|
+
##### [username](https://github.com/appium/ruby_lib/blob/b4313b09e62dd22bb95c2e0bc6edd296c7ece7b4/lib/appium_lib/sauce_labs.rb#L18) common
|
880
949
|
|
881
950
|
> def username
|
882
951
|
|
@@ -884,7 +953,7 @@ Username for use on Sauce Labs. Set `false` to disable Sauce, even when SAUCE_US
|
|
884
953
|
|
885
954
|
--
|
886
955
|
|
887
|
-
##### [access_key](https://github.com/appium/ruby_lib/blob/
|
956
|
+
##### [access_key](https://github.com/appium/ruby_lib/blob/b4313b09e62dd22bb95c2e0bc6edd296c7ece7b4/lib/appium_lib/sauce_labs.rb#L20) common
|
888
957
|
|
889
958
|
> def access_key
|
890
959
|
|
@@ -892,7 +961,7 @@ Access Key for use on Sauce Labs. Set `false` to disable Sauce, even when SAUCE_
|
|
892
961
|
|
893
962
|
--
|
894
963
|
|
895
|
-
##### [endpoint](https://github.com/appium/ruby_lib/blob/
|
964
|
+
##### [endpoint](https://github.com/appium/ruby_lib/blob/b4313b09e62dd22bb95c2e0bc6edd296c7ece7b4/lib/appium_lib/sauce_labs.rb#L22) common
|
896
965
|
|
897
966
|
> def endpoint
|
898
967
|
|
@@ -900,7 +969,7 @@ Override the Sauce Appium endpoint to allow e.g. TestObject tests. Default is 'o
|
|
900
969
|
|
901
970
|
--
|
902
971
|
|
903
|
-
##### [initialize](https://github.com/appium/ruby_lib/blob/
|
972
|
+
##### [initialize](https://github.com/appium/ruby_lib/blob/b4313b09e62dd22bb95c2e0bc6edd296c7ece7b4/lib/appium_lib/sauce_labs.rb#L47) common
|
904
973
|
|
905
974
|
> def initialize(appium_lib_opts)
|
906
975
|
|
@@ -916,7 +985,7 @@ __Returns:__
|
|
916
985
|
|
917
986
|
--
|
918
987
|
|
919
|
-
##### [sauce_server_url?](https://github.com/appium/ruby_lib/blob/
|
988
|
+
##### [sauce_server_url?](https://github.com/appium/ruby_lib/blob/b4313b09e62dd22bb95c2e0bc6edd296c7ece7b4/lib/appium_lib/sauce_labs.rb#L67) common
|
920
989
|
|
921
990
|
> def sauce_server_url?
|
922
991
|
|
@@ -928,7 +997,7 @@ __Returns:__
|
|
928
997
|
|
929
998
|
--
|
930
999
|
|
931
|
-
##### [server_url](https://github.com/appium/ruby_lib/blob/
|
1000
|
+
##### [server_url](https://github.com/appium/ruby_lib/blob/b4313b09e62dd22bb95c2e0bc6edd296c7ece7b4/lib/appium_lib/sauce_labs.rb#L80) common
|
932
1001
|
|
933
1002
|
> def server_url
|
934
1003
|
|
@@ -940,7 +1009,7 @@ __Returns:__
|
|
940
1009
|
|
941
1010
|
--
|
942
1011
|
|
943
|
-
##### [get_log](https://github.com/appium/ruby_lib/blob/
|
1012
|
+
##### [get_log](https://github.com/appium/ruby_lib/blob/b4313b09e62dd22bb95c2e0bc6edd296c7ece7b4/lib/appium_lib/common/log.rb#L25) common
|
944
1013
|
|
945
1014
|
> def get_log(type)
|
946
1015
|
|
@@ -956,7 +1025,7 @@ __Returns:__
|
|
956
1025
|
|
957
1026
|
--
|
958
1027
|
|
959
|
-
##### [get_available_log_types](https://github.com/appium/ruby_lib/blob/
|
1028
|
+
##### [get_available_log_types](https://github.com/appium/ruby_lib/blob/b4313b09e62dd22bb95c2e0bc6edd296c7ece7b4/lib/appium_lib/common/log.rb#L37) common
|
960
1029
|
|
961
1030
|
> def get_available_log_types
|
962
1031
|
|
@@ -968,7 +1037,7 @@ __Returns:__
|
|
968
1037
|
|
969
1038
|
--
|
970
1039
|
|
971
|
-
##### [wait_true](https://github.com/appium/ruby_lib/blob/
|
1040
|
+
##### [wait_true](https://github.com/appium/ruby_lib/blob/b4313b09e62dd22bb95c2e0bc6edd296c7ece7b4/lib/appium_lib/common/wait.rb#L44) common
|
972
1041
|
|
973
1042
|
> def wait_true(opts = {})
|
974
1043
|
|
@@ -988,7 +1057,7 @@ __Parameters:__
|
|
988
1057
|
|
989
1058
|
--
|
990
1059
|
|
991
|
-
##### [wait](https://github.com/appium/ruby_lib/blob/
|
1060
|
+
##### [wait](https://github.com/appium/ruby_lib/blob/b4313b09e62dd22bb95c2e0bc6edd296c7ece7b4/lib/appium_lib/common/wait.rb#L73) common
|
992
1061
|
|
993
1062
|
> def wait(opts = {})
|
994
1063
|
|
@@ -1006,7 +1075,7 @@ __Parameters:__
|
|
1006
1075
|
|
1007
1076
|
--
|
1008
1077
|
|
1009
|
-
##### [add_touch_actions](https://github.com/appium/ruby_lib/blob/
|
1078
|
+
##### [add_touch_actions](https://github.com/appium/ruby_lib/blob/b4313b09e62dd22bb95c2e0bc6edd296c7ece7b4/lib/appium_lib/common/device.rb#L26) common
|
1010
1079
|
|
1011
1080
|
> def add_touch_actions
|
1012
1081
|
|
@@ -1014,7 +1083,7 @@ __Parameters:__
|
|
1014
1083
|
|
1015
1084
|
--
|
1016
1085
|
|
1017
|
-
##### [delegate_from_appium_driver](https://github.com/appium/ruby_lib/blob/
|
1086
|
+
##### [delegate_from_appium_driver](https://github.com/appium/ruby_lib/blob/b4313b09e62dd22bb95c2e0bc6edd296c7ece7b4/lib/appium_lib/common/device.rb#L38) common
|
1018
1087
|
|
1019
1088
|
> def delegate_from_appium_driver(method, delegation_target)
|
1020
1089
|
|
@@ -1022,7 +1091,7 @@ __Parameters:__
|
|
1022
1091
|
|
1023
1092
|
--
|
1024
1093
|
|
1025
|
-
##### [ignore](https://github.com/appium/ruby_lib/blob/
|
1094
|
+
##### [ignore](https://github.com/appium/ruby_lib/blob/b4313b09e62dd22bb95c2e0bc6edd296c7ece7b4/lib/appium_lib/common/helper.rb#L30) common
|
1026
1095
|
|
1027
1096
|
> def ignore
|
1028
1097
|
|
@@ -1030,7 +1099,7 @@ Return yield and ignore any exceptions.
|
|
1030
1099
|
|
1031
1100
|
--
|
1032
1101
|
|
1033
|
-
##### [back](https://github.com/appium/ruby_lib/blob/
|
1102
|
+
##### [back](https://github.com/appium/ruby_lib/blob/b4313b09e62dd22bb95c2e0bc6edd296c7ece7b4/lib/appium_lib/common/helper.rb#L37) common
|
1034
1103
|
|
1035
1104
|
> def back
|
1036
1105
|
|
@@ -1042,7 +1111,7 @@ __Returns:__
|
|
1042
1111
|
|
1043
1112
|
--
|
1044
1113
|
|
1045
|
-
##### [session_id](https://github.com/appium/ruby_lib/blob/
|
1114
|
+
##### [session_id](https://github.com/appium/ruby_lib/blob/b4313b09e62dd22bb95c2e0bc6edd296c7ece7b4/lib/appium_lib/common/helper.rb#L48) common
|
1046
1115
|
|
1047
1116
|
> def session_id
|
1048
1117
|
|
@@ -1054,7 +1123,7 @@ __Returns:__
|
|
1054
1123
|
|
1055
1124
|
--
|
1056
1125
|
|
1057
|
-
##### [xpath](https://github.com/appium/ruby_lib/blob/
|
1126
|
+
##### [xpath](https://github.com/appium/ruby_lib/blob/b4313b09e62dd22bb95c2e0bc6edd296c7ece7b4/lib/appium_lib/common/helper.rb#L56) common
|
1058
1127
|
|
1059
1128
|
> def xpath(xpath_str)
|
1060
1129
|
|
@@ -1070,7 +1139,7 @@ __Returns:__
|
|
1070
1139
|
|
1071
1140
|
--
|
1072
1141
|
|
1073
|
-
##### [xpaths](https://github.com/appium/ruby_lib/blob/
|
1142
|
+
##### [xpaths](https://github.com/appium/ruby_lib/blob/b4313b09e62dd22bb95c2e0bc6edd296c7ece7b4/lib/appium_lib/common/helper.rb#L64) common
|
1074
1143
|
|
1075
1144
|
> def xpaths(xpath_str)
|
1076
1145
|
|
@@ -1086,15 +1155,15 @@ __Returns:__
|
|
1086
1155
|
|
1087
1156
|
--
|
1088
1157
|
|
1089
|
-
##### [result](https://github.com/appium/ruby_lib/blob/
|
1158
|
+
##### [result](https://github.com/appium/ruby_lib/blob/b4313b09e62dd22bb95c2e0bc6edd296c7ece7b4/lib/appium_lib/common/helper.rb#L74) common
|
1090
1159
|
|
1091
1160
|
> def result
|
1092
1161
|
|
1093
|
-
Returns the value of attribute result
|
1162
|
+
Returns the value of attribute result.
|
1094
1163
|
|
1095
1164
|
--
|
1096
1165
|
|
1097
|
-
##### [initialize](https://github.com/appium/ruby_lib/blob/
|
1166
|
+
##### [initialize](https://github.com/appium/ruby_lib/blob/b4313b09e62dd22bb95c2e0bc6edd296c7ece7b4/lib/appium_lib/common/helper.rb#L76) common
|
1098
1167
|
|
1099
1168
|
> def initialize(platform)
|
1100
1169
|
|
@@ -1106,7 +1175,7 @@ __Returns:__
|
|
1106
1175
|
|
1107
1176
|
--
|
1108
1177
|
|
1109
|
-
##### [reset](https://github.com/appium/ruby_lib/blob/
|
1178
|
+
##### [reset](https://github.com/appium/ruby_lib/blob/b4313b09e62dd22bb95c2e0bc6edd296c7ece7b4/lib/appium_lib/common/helper.rb#L81) common
|
1110
1179
|
|
1111
1180
|
> def reset
|
1112
1181
|
|
@@ -1114,7 +1183,7 @@ __Returns:__
|
|
1114
1183
|
|
1115
1184
|
--
|
1116
1185
|
|
1117
|
-
##### [start_element](https://github.com/appium/ruby_lib/blob/
|
1186
|
+
##### [start_element](https://github.com/appium/ruby_lib/blob/b4313b09e62dd22bb95c2e0bc6edd296c7ece7b4/lib/appium_lib/common/helper.rb#L86) common
|
1118
1187
|
|
1119
1188
|
> def start_element(name, attrs = [])
|
1120
1189
|
|
@@ -1122,7 +1191,7 @@ http://nokogiri.org/Nokogiri/XML/SAX/Document.html
|
|
1122
1191
|
|
1123
1192
|
--
|
1124
1193
|
|
1125
|
-
##### [formatted_result](https://github.com/appium/ruby_lib/blob/
|
1194
|
+
##### [formatted_result](https://github.com/appium/ruby_lib/blob/b4313b09e62dd22bb95c2e0bc6edd296c7ece7b4/lib/appium_lib/common/helper.rb#L97) common
|
1126
1195
|
|
1127
1196
|
> def formatted_result
|
1128
1197
|
|
@@ -1130,7 +1199,7 @@ http://nokogiri.org/Nokogiri/XML/SAX/Document.html
|
|
1130
1199
|
|
1131
1200
|
--
|
1132
1201
|
|
1133
|
-
##### [get_page_class](https://github.com/appium/ruby_lib/blob/
|
1202
|
+
##### [get_page_class](https://github.com/appium/ruby_lib/blob/b4313b09e62dd22bb95c2e0bc6edd296c7ece7b4/lib/appium_lib/common/helper.rb#L115) common
|
1134
1203
|
|
1135
1204
|
> def get_page_class
|
1136
1205
|
|
@@ -1142,7 +1211,7 @@ __Returns:__
|
|
1142
1211
|
|
1143
1212
|
--
|
1144
1213
|
|
1145
|
-
##### [page_class](https://github.com/appium/ruby_lib/blob/
|
1214
|
+
##### [page_class](https://github.com/appium/ruby_lib/blob/b4313b09e62dd22bb95c2e0bc6edd296c7ece7b4/lib/appium_lib/common/helper.rb#L140) common
|
1146
1215
|
|
1147
1216
|
> def page_class
|
1148
1217
|
|
@@ -1155,7 +1224,7 @@ __Returns:__
|
|
1155
1224
|
|
1156
1225
|
--
|
1157
1226
|
|
1158
|
-
##### [source](https://github.com/appium/ruby_lib/blob/
|
1227
|
+
##### [source](https://github.com/appium/ruby_lib/blob/b4313b09e62dd22bb95c2e0bc6edd296c7ece7b4/lib/appium_lib/common/helper.rb#L147) common
|
1159
1228
|
|
1160
1229
|
> def source
|
1161
1230
|
|
@@ -1167,7 +1236,7 @@ __Returns:__
|
|
1167
1236
|
|
1168
1237
|
--
|
1169
1238
|
|
1170
|
-
##### [get_source](https://github.com/appium/ruby_lib/blob/
|
1239
|
+
##### [get_source](https://github.com/appium/ruby_lib/blob/b4313b09e62dd22bb95c2e0bc6edd296c7ece7b4/lib/appium_lib/common/helper.rb#L154) common
|
1171
1240
|
|
1172
1241
|
> def get_source
|
1173
1242
|
|
@@ -1180,7 +1249,7 @@ __Returns:__
|
|
1180
1249
|
|
1181
1250
|
--
|
1182
1251
|
|
1183
|
-
##### [px_to_window_rel](https://github.com/appium/ruby_lib/blob/
|
1252
|
+
##### [px_to_window_rel](https://github.com/appium/ruby_lib/blob/b4313b09e62dd22bb95c2e0bc6edd296c7ece7b4/lib/appium_lib/common/helper.rb#L164) common
|
1184
1253
|
|
1185
1254
|
> def px_to_window_rel(opts = {}, driver = $driver)
|
1186
1255
|
|
@@ -1188,7 +1257,7 @@ Converts pixel values to window relative values
|
|
1188
1257
|
|
1189
1258
|
--
|
1190
1259
|
|
1191
|
-
##### [xml_keys](https://github.com/appium/ruby_lib/blob/
|
1260
|
+
##### [xml_keys](https://github.com/appium/ruby_lib/blob/b4313b09e62dd22bb95c2e0bc6edd296c7ece7b4/lib/appium_lib/common/helper.rb#L183) common
|
1192
1261
|
|
1193
1262
|
> def xml_keys(target)
|
1194
1263
|
|
@@ -1204,7 +1273,7 @@ __Returns:__
|
|
1204
1273
|
|
1205
1274
|
--
|
1206
1275
|
|
1207
|
-
##### [xml_values](https://github.com/appium/ruby_lib/blob/
|
1276
|
+
##### [xml_values](https://github.com/appium/ruby_lib/blob/b4313b09e62dd22bb95c2e0bc6edd296c7ece7b4/lib/appium_lib/common/helper.rb#L191) common
|
1208
1277
|
|
1209
1278
|
> def xml_values(target)
|
1210
1279
|
|
@@ -1220,7 +1289,7 @@ __Returns:__
|
|
1220
1289
|
|
1221
1290
|
--
|
1222
1291
|
|
1223
|
-
##### [resolve_id](https://github.com/appium/ruby_lib/blob/
|
1292
|
+
##### [resolve_id](https://github.com/appium/ruby_lib/blob/b4313b09e62dd22bb95c2e0bc6edd296c7ece7b4/lib/appium_lib/common/helper.rb#L199) common
|
1224
1293
|
|
1225
1294
|
> def resolve_id(id)
|
1226
1295
|
|
@@ -1236,15 +1305,15 @@ __Returns:__
|
|
1236
1305
|
|
1237
1306
|
--
|
1238
1307
|
|
1239
|
-
##### [filter](https://github.com/appium/ruby_lib/blob/
|
1308
|
+
##### [filter](https://github.com/appium/ruby_lib/blob/b4313b09e62dd22bb95c2e0bc6edd296c7ece7b4/lib/appium_lib/common/helper.rb#L206) common
|
1240
1309
|
|
1241
1310
|
> def filter
|
1242
1311
|
|
1243
|
-
Returns the value of attribute filter
|
1312
|
+
Returns the value of attribute filter.
|
1244
1313
|
|
1245
1314
|
--
|
1246
1315
|
|
1247
|
-
##### [filter=](https://github.com/appium/ruby_lib/blob/
|
1316
|
+
##### [filter=](https://github.com/appium/ruby_lib/blob/b4313b09e62dd22bb95c2e0bc6edd296c7ece7b4/lib/appium_lib/common/helper.rb#L209) common
|
1248
1317
|
|
1249
1318
|
> def filter=(value)
|
1250
1319
|
|
@@ -1252,7 +1321,7 @@ convert to string to support symbols
|
|
1252
1321
|
|
1253
1322
|
--
|
1254
1323
|
|
1255
|
-
##### [initialize](https://github.com/appium/ruby_lib/blob/
|
1324
|
+
##### [initialize](https://github.com/appium/ruby_lib/blob/b4313b09e62dd22bb95c2e0bc6edd296c7ece7b4/lib/appium_lib/common/helper.rb#L216) common
|
1256
1325
|
|
1257
1326
|
> def initialize
|
1258
1327
|
|
@@ -1264,7 +1333,7 @@ __Returns:__
|
|
1264
1333
|
|
1265
1334
|
--
|
1266
1335
|
|
1267
|
-
##### [reset](https://github.com/appium/ruby_lib/blob/
|
1336
|
+
##### [reset](https://github.com/appium/ruby_lib/blob/b4313b09e62dd22bb95c2e0bc6edd296c7ece7b4/lib/appium_lib/common/helper.rb#L221) common
|
1268
1337
|
|
1269
1338
|
> def reset
|
1270
1339
|
|
@@ -1272,7 +1341,7 @@ __Returns:__
|
|
1272
1341
|
|
1273
1342
|
--
|
1274
1343
|
|
1275
|
-
##### [result](https://github.com/appium/ruby_lib/blob/
|
1344
|
+
##### [result](https://github.com/appium/ruby_lib/blob/b4313b09e62dd22bb95c2e0bc6edd296c7ece7b4/lib/appium_lib/common/helper.rb#L227) common
|
1276
1345
|
|
1277
1346
|
> def result
|
1278
1347
|
|
@@ -1280,7 +1349,7 @@ __Returns:__
|
|
1280
1349
|
|
1281
1350
|
--
|
1282
1351
|
|
1283
|
-
##### [start_element](https://github.com/appium/ruby_lib/blob/
|
1352
|
+
##### [start_element](https://github.com/appium/ruby_lib/blob/b4313b09e62dd22bb95c2e0bc6edd296c7ece7b4/lib/appium_lib/common/helper.rb#L240) common
|
1284
1353
|
|
1285
1354
|
> def start_element(name, attrs = [])
|
1286
1355
|
|
@@ -1288,7 +1357,7 @@ __Returns:__
|
|
1288
1357
|
|
1289
1358
|
--
|
1290
1359
|
|
1291
|
-
##### [end_element](https://github.com/appium/ruby_lib/blob/
|
1360
|
+
##### [end_element](https://github.com/appium/ruby_lib/blob/b4313b09e62dd22bb95c2e0bc6edd296c7ece7b4/lib/appium_lib/common/helper.rb#L250) common
|
1292
1361
|
|
1293
1362
|
> def end_element(name)
|
1294
1363
|
|
@@ -1296,7 +1365,7 @@ __Returns:__
|
|
1296
1365
|
|
1297
1366
|
--
|
1298
1367
|
|
1299
|
-
##### [characters](https://github.com/appium/ruby_lib/blob/
|
1368
|
+
##### [characters](https://github.com/appium/ruby_lib/blob/b4313b09e62dd22bb95c2e0bc6edd296c7ece7b4/lib/appium_lib/common/helper.rb#L257) common
|
1300
1369
|
|
1301
1370
|
> def characters(chars)
|
1302
1371
|
|
@@ -1304,15 +1373,7 @@ __Returns:__
|
|
1304
1373
|
|
1305
1374
|
--
|
1306
1375
|
|
1307
|
-
##### [
|
1308
|
-
|
1309
|
-
> DEFAULT_HEADERS = { 'Accept' => CONTENT_TYPE, 'User-Agent' => "appium/ruby_lib/#{::Appium::VERSION}" }.freeze
|
1310
|
-
|
1311
|
-
Default HTTP client inherit Appium::Core::Base::Http::Default, but has different DEFAULT_HEADERS
|
1312
|
-
|
1313
|
-
--
|
1314
|
-
|
1315
|
-
##### [pinch](https://github.com/appium/ruby_lib/blob/ef89749d25c7044fe27fa4b7c1adfd011b60bba1/lib/appium_lib/common/multi_touch.rb#L65) common
|
1376
|
+
##### [pinch](https://github.com/appium/ruby_lib/blob/b4313b09e62dd22bb95c2e0bc6edd296c7ece7b4/lib/appium_lib/common/multi_touch.rb#L65) common
|
1316
1377
|
|
1317
1378
|
> def pinch(percentage = 25, auto_perform = true, driver = $driver)
|
1318
1379
|
|
@@ -1332,7 +1393,7 @@ __Parameters:__
|
|
1332
1393
|
|
1333
1394
|
--
|
1334
1395
|
|
1335
|
-
##### [zoom](https://github.com/appium/ruby_lib/blob/
|
1396
|
+
##### [zoom](https://github.com/appium/ruby_lib/blob/b4313b09e62dd22bb95c2e0bc6edd296c7ece7b4/lib/appium_lib/common/multi_touch.rb#L108) common
|
1336
1397
|
|
1337
1398
|
> def zoom(percentage = 200, auto_perform = true, driver = $driver)
|
1338
1399
|
|
@@ -1352,7 +1413,7 @@ __Parameters:__
|
|
1352
1413
|
|
1353
1414
|
--
|
1354
1415
|
|
1355
|
-
##### [initialize](https://github.com/appium/ruby_lib/blob/
|
1416
|
+
##### [initialize](https://github.com/appium/ruby_lib/blob/b4313b09e62dd22bb95c2e0bc6edd296c7ece7b4/lib/appium_lib/common/multi_touch.rb#L194) common
|
1356
1417
|
|
1357
1418
|
> def initialize(driver = $driver)
|
1358
1419
|
|
@@ -1364,15 +1425,7 @@ __Returns:__
|
|
1364
1425
|
|
1365
1426
|
--
|
1366
1427
|
|
1367
|
-
##### [
|
1368
|
-
|
1369
|
-
> COMPLEX_ACTIONS = ::Appium::Core::TouchAction::COMPLEX_ACTIONS
|
1370
|
-
|
1371
|
-
|
1372
|
-
|
1373
|
-
--
|
1374
|
-
|
1375
|
-
##### [initialize](https://github.com/appium/ruby_lib/blob/ef89749d25c7044fe27fa4b7c1adfd011b60bba1/lib/appium_lib/common/touch_actions.rb#L62) common
|
1428
|
+
##### [initialize](https://github.com/appium/ruby_lib/blob/b4313b09e62dd22bb95c2e0bc6edd296c7ece7b4/lib/appium_lib/common/touch_actions.rb#L62) common
|
1376
1429
|
|
1377
1430
|
> def initialize(driver = $driver)
|
1378
1431
|
|
@@ -1384,7 +1437,7 @@ __Returns:__
|
|
1384
1437
|
|
1385
1438
|
--
|
1386
1439
|
|
1387
|
-
##### [swipe](https://github.com/appium/ruby_lib/blob/
|
1440
|
+
##### [swipe](https://github.com/appium/ruby_lib/blob/b4313b09e62dd22bb95c2e0bc6edd296c7ece7b4/lib/appium_lib/common/touch_actions.rb#L66) common
|
1388
1441
|
|
1389
1442
|
> def swipe(opts)
|
1390
1443
|
|
@@ -1392,7 +1445,7 @@ __Returns:__
|
|
1392
1445
|
|
1393
1446
|
--
|
1394
1447
|
|
1395
|
-
##### [initialize](https://github.com/appium/ruby_lib/blob/
|
1448
|
+
##### [initialize](https://github.com/appium/ruby_lib/blob/b4313b09e62dd22bb95c2e0bc6edd296c7ece7b4/lib/appium_lib/common/command/ws_logcat.rb#L19) common
|
1396
1449
|
|
1397
1450
|
> def initialize(url:, output_file: 'logcat.log')
|
1398
1451
|
|
@@ -1404,7 +1457,7 @@ __Returns:__
|
|
1404
1457
|
|
1405
1458
|
--
|
1406
1459
|
|
1407
|
-
##### [handle_message_data](https://github.com/appium/ruby_lib/blob/
|
1460
|
+
##### [handle_message_data](https://github.com/appium/ruby_lib/blob/b4313b09e62dd22bb95c2e0bc6edd296c7ece7b4/lib/appium_lib/common/command/ws_logcat.rb#L24) common
|
1408
1461
|
|
1409
1462
|
> def handle_message_data(data)
|
1410
1463
|
|
@@ -1412,31 +1465,15 @@ __Returns:__
|
|
1412
1465
|
|
1413
1466
|
--
|
1414
1467
|
|
1415
|
-
##### [for](https://github.com/appium/ruby_lib/blob/
|
1468
|
+
##### [for](https://github.com/appium/ruby_lib/blob/b4313b09e62dd22bb95c2e0bc6edd296c7ece7b4/lib/appium_lib/android/android.rb#L33) android
|
1416
1469
|
|
1417
|
-
> def
|
1470
|
+
> def for(target)
|
1418
1471
|
|
1419
1472
|
|
1420
1473
|
|
1421
1474
|
--
|
1422
1475
|
|
1423
|
-
##### [
|
1424
|
-
|
1425
|
-
> TEXT_VIEW = 'android.widget.TextView'
|
1426
|
-
|
1427
|
-
|
1428
|
-
|
1429
|
-
--
|
1430
|
-
|
1431
|
-
##### [TextView](https://github.com/appium/ruby_lib/blob/ef89749d25c7044fe27fa4b7c1adfd011b60bba1/lib/appium_lib/android/element/text.rb#L19) android
|
1432
|
-
|
1433
|
-
> TextView = TEXT_VIEW
|
1434
|
-
|
1435
|
-
|
1436
|
-
|
1437
|
-
--
|
1438
|
-
|
1439
|
-
##### [text](https://github.com/appium/ruby_lib/blob/ef89749d25c7044fe27fa4b7c1adfd011b60bba1/lib/appium_lib/android/element/text.rb#L25) android
|
1476
|
+
##### [text](https://github.com/appium/ruby_lib/blob/b4313b09e62dd22bb95c2e0bc6edd296c7ece7b4/lib/appium_lib/android/element/text.rb#L25) android
|
1440
1477
|
|
1441
1478
|
> def text(value)
|
1442
1479
|
|
@@ -1453,7 +1490,7 @@ __Returns:__
|
|
1453
1490
|
|
1454
1491
|
--
|
1455
1492
|
|
1456
|
-
##### [texts](https://github.com/appium/ruby_lib/blob/
|
1493
|
+
##### [texts](https://github.com/appium/ruby_lib/blob/b4313b09e62dd22bb95c2e0bc6edd296c7ece7b4/lib/appium_lib/android/element/text.rb#L35) android
|
1457
1494
|
|
1458
1495
|
> def texts(value = false)
|
1459
1496
|
|
@@ -1470,7 +1507,7 @@ __Returns:__
|
|
1470
1507
|
|
1471
1508
|
--
|
1472
1509
|
|
1473
|
-
##### [first_text](https://github.com/appium/ruby_lib/blob/
|
1510
|
+
##### [first_text](https://github.com/appium/ruby_lib/blob/b4313b09e62dd22bb95c2e0bc6edd296c7ece7b4/lib/appium_lib/android/element/text.rb#L43) android
|
1474
1511
|
|
1475
1512
|
> def first_text
|
1476
1513
|
|
@@ -1482,7 +1519,7 @@ __Returns:__
|
|
1482
1519
|
|
1483
1520
|
--
|
1484
1521
|
|
1485
|
-
##### [last_text](https://github.com/appium/ruby_lib/blob/
|
1522
|
+
##### [last_text](https://github.com/appium/ruby_lib/blob/b4313b09e62dd22bb95c2e0bc6edd296c7ece7b4/lib/appium_lib/android/element/text.rb#L49) android
|
1486
1523
|
|
1487
1524
|
> def last_text
|
1488
1525
|
|
@@ -1494,7 +1531,7 @@ __Returns:__
|
|
1494
1531
|
|
1495
1532
|
--
|
1496
1533
|
|
1497
|
-
##### [text_exact](https://github.com/appium/ruby_lib/blob/
|
1534
|
+
##### [text_exact](https://github.com/appium/ruby_lib/blob/b4313b09e62dd22bb95c2e0bc6edd296c7ece7b4/lib/appium_lib/android/element/text.rb#L56) android
|
1498
1535
|
|
1499
1536
|
> def text_exact(value)
|
1500
1537
|
|
@@ -1510,7 +1547,7 @@ __Returns:__
|
|
1510
1547
|
|
1511
1548
|
--
|
1512
1549
|
|
1513
|
-
##### [texts_exact](https://github.com/appium/ruby_lib/blob/
|
1550
|
+
##### [texts_exact](https://github.com/appium/ruby_lib/blob/b4313b09e62dd22bb95c2e0bc6edd296c7ece7b4/lib/appium_lib/android/element/text.rb#L63) android
|
1514
1551
|
|
1515
1552
|
> def texts_exact(value)
|
1516
1553
|
|
@@ -1526,31 +1563,31 @@ __Returns:__
|
|
1526
1563
|
|
1527
1564
|
--
|
1528
1565
|
|
1529
|
-
##### [result](https://github.com/appium/ruby_lib/blob/
|
1566
|
+
##### [result](https://github.com/appium/ruby_lib/blob/b4313b09e62dd22bb95c2e0bc6edd296c7ece7b4/lib/appium_lib/android/common/helper.rb#L20) android
|
1530
1567
|
|
1531
1568
|
> def result
|
1532
1569
|
|
1533
|
-
Returns the value of attribute result
|
1570
|
+
Returns the value of attribute result.
|
1534
1571
|
|
1535
1572
|
--
|
1536
1573
|
|
1537
|
-
##### [keys](https://github.com/appium/ruby_lib/blob/
|
1574
|
+
##### [keys](https://github.com/appium/ruby_lib/blob/b4313b09e62dd22bb95c2e0bc6edd296c7ece7b4/lib/appium_lib/android/common/helper.rb#L20) android
|
1538
1575
|
|
1539
1576
|
> def keys
|
1540
1577
|
|
1541
|
-
Returns the value of attribute keys
|
1578
|
+
Returns the value of attribute keys.
|
1542
1579
|
|
1543
1580
|
--
|
1544
1581
|
|
1545
|
-
##### [filter](https://github.com/appium/ruby_lib/blob/
|
1582
|
+
##### [filter](https://github.com/appium/ruby_lib/blob/b4313b09e62dd22bb95c2e0bc6edd296c7ece7b4/lib/appium_lib/android/common/helper.rb#L20) android
|
1546
1583
|
|
1547
1584
|
> def filter
|
1548
1585
|
|
1549
|
-
Returns the value of attribute filter
|
1586
|
+
Returns the value of attribute filter.
|
1550
1587
|
|
1551
1588
|
--
|
1552
1589
|
|
1553
|
-
##### [filter=](https://github.com/appium/ruby_lib/blob/
|
1590
|
+
##### [filter=](https://github.com/appium/ruby_lib/blob/b4313b09e62dd22bb95c2e0bc6edd296c7ece7b4/lib/appium_lib/android/common/helper.rb#L23) android
|
1554
1591
|
|
1555
1592
|
> def filter=(value)
|
1556
1593
|
|
@@ -1558,7 +1595,7 @@ convert to string to support symbols
|
|
1558
1595
|
|
1559
1596
|
--
|
1560
1597
|
|
1561
|
-
##### [initialize](https://github.com/appium/ruby_lib/blob/
|
1598
|
+
##### [initialize](https://github.com/appium/ruby_lib/blob/b4313b09e62dd22bb95c2e0bc6edd296c7ece7b4/lib/appium_lib/android/common/helper.rb#L30) android
|
1562
1599
|
|
1563
1600
|
> def initialize
|
1564
1601
|
|
@@ -1570,7 +1607,7 @@ __Returns:__
|
|
1570
1607
|
|
1571
1608
|
--
|
1572
1609
|
|
1573
|
-
##### [reset](https://github.com/appium/ruby_lib/blob/
|
1610
|
+
##### [reset](https://github.com/appium/ruby_lib/blob/b4313b09e62dd22bb95c2e0bc6edd296c7ece7b4/lib/appium_lib/android/common/helper.rb#L35) android
|
1574
1611
|
|
1575
1612
|
> def reset
|
1576
1613
|
|
@@ -1578,7 +1615,7 @@ __Returns:__
|
|
1578
1615
|
|
1579
1616
|
--
|
1580
1617
|
|
1581
|
-
##### [start_element](https://github.com/appium/ruby_lib/blob/
|
1618
|
+
##### [start_element](https://github.com/appium/ruby_lib/blob/b4313b09e62dd22bb95c2e0bc6edd296c7ece7b4/lib/appium_lib/android/common/helper.rb#L41) android
|
1582
1619
|
|
1583
1620
|
> def start_element(name, attrs = [], driver = $driver)
|
1584
1621
|
|
@@ -1586,7 +1623,7 @@ http://nokogiri.org/Nokogiri/XML/SAX/Document.html
|
|
1586
1623
|
|
1587
1624
|
--
|
1588
1625
|
|
1589
|
-
##### [get_android_inspect](https://github.com/appium/ruby_lib/blob/
|
1626
|
+
##### [get_android_inspect](https://github.com/appium/ruby_lib/blob/b4313b09e62dd22bb95c2e0bc6edd296c7ece7b4/lib/appium_lib/android/common/helper.rb#L95) android
|
1590
1627
|
|
1591
1628
|
> def get_android_inspect(class_name = false)
|
1592
1629
|
|
@@ -1605,7 +1642,7 @@ __Returns:__
|
|
1605
1642
|
|
1606
1643
|
--
|
1607
1644
|
|
1608
|
-
##### [page](https://github.com/appium/ruby_lib/blob/
|
1645
|
+
##### [page](https://github.com/appium/ruby_lib/blob/b4313b09e62dd22bb95c2e0bc6edd296c7ece7b4/lib/appium_lib/android/common/helper.rb#L121) android
|
1609
1646
|
|
1610
1647
|
> def page(opts = {})
|
1611
1648
|
|
@@ -1624,7 +1661,7 @@ __Returns:__
|
|
1624
1661
|
|
1625
1662
|
--
|
1626
1663
|
|
1627
|
-
##### [id](https://github.com/appium/ruby_lib/blob/
|
1664
|
+
##### [id](https://github.com/appium/ruby_lib/blob/b4313b09e62dd22bb95c2e0bc6edd296c7ece7b4/lib/appium_lib/android/common/helper.rb#L130) android
|
1628
1665
|
|
1629
1666
|
> def id(id)
|
1630
1667
|
|
@@ -1640,7 +1677,7 @@ __Returns:__
|
|
1640
1677
|
|
1641
1678
|
--
|
1642
1679
|
|
1643
|
-
##### [ids](https://github.com/appium/ruby_lib/blob/
|
1680
|
+
##### [ids](https://github.com/appium/ruby_lib/blob/b4313b09e62dd22bb95c2e0bc6edd296c7ece7b4/lib/appium_lib/android/common/helper.rb#L138) android
|
1644
1681
|
|
1645
1682
|
> def ids(id)
|
1646
1683
|
|
@@ -1656,7 +1693,7 @@ __Returns:__
|
|
1656
1693
|
|
1657
1694
|
--
|
1658
1695
|
|
1659
|
-
##### [ele_index](https://github.com/appium/ruby_lib/blob/
|
1696
|
+
##### [ele_index](https://github.com/appium/ruby_lib/blob/b4313b09e62dd22bb95c2e0bc6edd296c7ece7b4/lib/appium_lib/android/common/helper.rb#L147) android
|
1660
1697
|
|
1661
1698
|
> def ele_index(class_name, index)
|
1662
1699
|
|
@@ -1674,7 +1711,7 @@ __Returns:__
|
|
1674
1711
|
|
1675
1712
|
--
|
1676
1713
|
|
1677
|
-
##### [first_ele](https://github.com/appium/ruby_lib/blob/
|
1714
|
+
##### [first_ele](https://github.com/appium/ruby_lib/blob/b4313b09e62dd22bb95c2e0bc6edd296c7ece7b4/lib/appium_lib/android/common/helper.rb#L166) android
|
1678
1715
|
|
1679
1716
|
> def first_ele(class_name)
|
1680
1717
|
|
@@ -1690,7 +1727,7 @@ __Returns:__
|
|
1690
1727
|
|
1691
1728
|
--
|
1692
1729
|
|
1693
|
-
##### [last_ele](https://github.com/appium/ruby_lib/blob/
|
1730
|
+
##### [last_ele](https://github.com/appium/ruby_lib/blob/b4313b09e62dd22bb95c2e0bc6edd296c7ece7b4/lib/appium_lib/android/common/helper.rb#L173) android
|
1694
1731
|
|
1695
1732
|
> def last_ele(class_name)
|
1696
1733
|
|
@@ -1706,7 +1743,7 @@ __Returns:__
|
|
1706
1743
|
|
1707
1744
|
--
|
1708
1745
|
|
1709
|
-
##### [tag](https://github.com/appium/ruby_lib/blob/
|
1746
|
+
##### [tag](https://github.com/appium/ruby_lib/blob/b4313b09e62dd22bb95c2e0bc6edd296c7ece7b4/lib/appium_lib/android/common/helper.rb#L181) android
|
1710
1747
|
|
1711
1748
|
> def tag(class_name)
|
1712
1749
|
|
@@ -1722,7 +1759,7 @@ __Returns:__
|
|
1722
1759
|
|
1723
1760
|
--
|
1724
1761
|
|
1725
|
-
##### [tags](https://github.com/appium/ruby_lib/blob/
|
1762
|
+
##### [tags](https://github.com/appium/ruby_lib/blob/b4313b09e62dd22bb95c2e0bc6edd296c7ece7b4/lib/appium_lib/android/common/helper.rb#L189) android
|
1726
1763
|
|
1727
1764
|
> def tags(class_name)
|
1728
1765
|
|
@@ -1738,7 +1775,7 @@ __Returns:__
|
|
1738
1775
|
|
1739
1776
|
--
|
1740
1777
|
|
1741
|
-
##### [string_visible_contains_xpath](https://github.com/appium/ruby_lib/blob/
|
1778
|
+
##### [string_visible_contains_xpath](https://github.com/appium/ruby_lib/blob/b4313b09e62dd22bb95c2e0bc6edd296c7ece7b4/lib/appium_lib/android/common/helper.rb#L232) android
|
1742
1779
|
|
1743
1780
|
> def string_visible_contains_xpath(class_name, value)
|
1744
1781
|
|
@@ -1759,7 +1796,7 @@ __Returns:__
|
|
1759
1796
|
|
1760
1797
|
--
|
1761
1798
|
|
1762
|
-
##### [string_visible_contains](https://github.com/appium/ruby_lib/blob/
|
1799
|
+
##### [string_visible_contains](https://github.com/appium/ruby_lib/blob/b4313b09e62dd22bb95c2e0bc6edd296c7ece7b4/lib/appium_lib/android/common/helper.rb#L252) android
|
1763
1800
|
|
1764
1801
|
> def string_visible_contains(class_name, value)
|
1765
1802
|
|
@@ -1780,7 +1817,7 @@ __Returns:__
|
|
1780
1817
|
|
1781
1818
|
--
|
1782
1819
|
|
1783
|
-
##### [complex_find_contains](https://github.com/appium/ruby_lib/blob/
|
1820
|
+
##### [complex_find_contains](https://github.com/appium/ruby_lib/blob/b4313b09e62dd22bb95c2e0bc6edd296c7ece7b4/lib/appium_lib/android/common/helper.rb#L270) android
|
1784
1821
|
|
1785
1822
|
> def complex_find_contains(class_name, value)
|
1786
1823
|
|
@@ -1798,7 +1835,7 @@ __Returns:__
|
|
1798
1835
|
|
1799
1836
|
--
|
1800
1837
|
|
1801
|
-
##### [complex_finds_contains](https://github.com/appium/ruby_lib/blob/
|
1838
|
+
##### [complex_finds_contains](https://github.com/appium/ruby_lib/blob/b4313b09e62dd22bb95c2e0bc6edd296c7ece7b4/lib/appium_lib/android/common/helper.rb#L278) android
|
1802
1839
|
|
1803
1840
|
> def complex_finds_contains(class_name, value)
|
1804
1841
|
|
@@ -1816,7 +1853,7 @@ __Returns:__
|
|
1816
1853
|
|
1817
1854
|
--
|
1818
1855
|
|
1819
|
-
##### [complex_find_exact](https://github.com/appium/ruby_lib/blob/
|
1856
|
+
##### [complex_find_exact](https://github.com/appium/ruby_lib/blob/b4313b09e62dd22bb95c2e0bc6edd296c7ece7b4/lib/appium_lib/android/common/helper.rb#L320) android
|
1820
1857
|
|
1821
1858
|
> def complex_find_exact(class_name, value)
|
1822
1859
|
|
@@ -1834,7 +1871,7 @@ __Returns:__
|
|
1834
1871
|
|
1835
1872
|
--
|
1836
1873
|
|
1837
|
-
##### [complex_finds_exact](https://github.com/appium/ruby_lib/blob/
|
1874
|
+
##### [complex_finds_exact](https://github.com/appium/ruby_lib/blob/b4313b09e62dd22bb95c2e0bc6edd296c7ece7b4/lib/appium_lib/android/common/helper.rb#L328) android
|
1838
1875
|
|
1839
1876
|
> def complex_finds_exact(class_name, value)
|
1840
1877
|
|
@@ -1852,7 +1889,7 @@ __Returns:__
|
|
1852
1889
|
|
1853
1890
|
--
|
1854
1891
|
|
1855
|
-
##### [alert_click](https://github.com/appium/ruby_lib/blob/
|
1892
|
+
##### [alert_click](https://github.com/appium/ruby_lib/blob/b4313b09e62dd22bb95c2e0bc6edd296c7ece7b4/lib/appium_lib/android/element/alert.rb#L20) android
|
1856
1893
|
|
1857
1894
|
> def alert_click(value)
|
1858
1895
|
|
@@ -1868,7 +1905,7 @@ __Returns:__
|
|
1868
1905
|
|
1869
1906
|
--
|
1870
1907
|
|
1871
|
-
##### [alert_accept](https://github.com/appium/ruby_lib/blob/
|
1908
|
+
##### [alert_accept](https://github.com/appium/ruby_lib/blob/b4313b09e62dd22bb95c2e0bc6edd296c7ece7b4/lib/appium_lib/android/element/alert.rb#L27) android
|
1872
1909
|
|
1873
1910
|
> def alert_accept
|
1874
1911
|
|
@@ -1881,7 +1918,7 @@ __Returns:__
|
|
1881
1918
|
|
1882
1919
|
--
|
1883
1920
|
|
1884
|
-
##### [alert_accept_text](https://github.com/appium/ruby_lib/blob/
|
1921
|
+
##### [alert_accept_text](https://github.com/appium/ruby_lib/blob/b4313b09e62dd22bb95c2e0bc6edd296c7ece7b4/lib/appium_lib/android/element/alert.rb#L34) android
|
1885
1922
|
|
1886
1923
|
> def alert_accept_text
|
1887
1924
|
|
@@ -1894,7 +1931,7 @@ __Returns:__
|
|
1894
1931
|
|
1895
1932
|
--
|
1896
1933
|
|
1897
|
-
##### [alert_dismiss](https://github.com/appium/ruby_lib/blob/
|
1934
|
+
##### [alert_dismiss](https://github.com/appium/ruby_lib/blob/b4313b09e62dd22bb95c2e0bc6edd296c7ece7b4/lib/appium_lib/android/element/alert.rb#L41) android
|
1898
1935
|
|
1899
1936
|
> def alert_dismiss
|
1900
1937
|
|
@@ -1907,7 +1944,7 @@ __Returns:__
|
|
1907
1944
|
|
1908
1945
|
--
|
1909
1946
|
|
1910
|
-
##### [alert_dismiss_text](https://github.com/appium/ruby_lib/blob/
|
1947
|
+
##### [alert_dismiss_text](https://github.com/appium/ruby_lib/blob/b4313b09e62dd22bb95c2e0bc6edd296c7ece7b4/lib/appium_lib/android/element/alert.rb#L48) android
|
1911
1948
|
|
1912
1949
|
> def alert_dismiss_text
|
1913
1950
|
|
@@ -1920,39 +1957,7 @@ __Returns:__
|
|
1920
1957
|
|
1921
1958
|
--
|
1922
1959
|
|
1923
|
-
##### [
|
1924
|
-
|
1925
|
-
> BUTTON = 'android.widget.Button'
|
1926
|
-
|
1927
|
-
|
1928
|
-
|
1929
|
-
--
|
1930
|
-
|
1931
|
-
##### [Button](https://github.com/appium/ruby_lib/blob/ef89749d25c7044fe27fa4b7c1adfd011b60bba1/lib/appium_lib/android/element/button.rb#L18) android
|
1932
|
-
|
1933
|
-
> Button = BUTTON # backward compatibility
|
1934
|
-
|
1935
|
-
backward compatibility
|
1936
|
-
|
1937
|
-
--
|
1938
|
-
|
1939
|
-
##### [IMAGE_BUTTON](https://github.com/appium/ruby_lib/blob/ef89749d25c7044fe27fa4b7c1adfd011b60bba1/lib/appium_lib/android/element/button.rb#L20) android
|
1940
|
-
|
1941
|
-
> IMAGE_BUTTON = 'android.widget.ImageButton'
|
1942
|
-
|
1943
|
-
|
1944
|
-
|
1945
|
-
--
|
1946
|
-
|
1947
|
-
##### [ImageButton](https://github.com/appium/ruby_lib/blob/ef89749d25c7044fe27fa4b7c1adfd011b60bba1/lib/appium_lib/android/element/button.rb#L21) android
|
1948
|
-
|
1949
|
-
> ImageButton = IMAGE_BUTTON # backward compatibility
|
1950
|
-
|
1951
|
-
backward compatibility
|
1952
|
-
|
1953
|
-
--
|
1954
|
-
|
1955
|
-
##### [button](https://github.com/appium/ruby_lib/blob/ef89749d25c7044fe27fa4b7c1adfd011b60bba1/lib/appium_lib/android/element/button.rb#L27) android
|
1960
|
+
##### [button](https://github.com/appium/ruby_lib/blob/b4313b09e62dd22bb95c2e0bc6edd296c7ece7b4/lib/appium_lib/android/element/button.rb#L27) android
|
1956
1961
|
|
1957
1962
|
> def button(value)
|
1958
1963
|
|
@@ -1969,7 +1974,7 @@ __Returns:__
|
|
1969
1974
|
|
1970
1975
|
--
|
1971
1976
|
|
1972
|
-
##### [buttons](https://github.com/appium/ruby_lib/blob/
|
1977
|
+
##### [buttons](https://github.com/appium/ruby_lib/blob/b4313b09e62dd22bb95c2e0bc6edd296c7ece7b4/lib/appium_lib/android/element/button.rb#L45) android
|
1973
1978
|
|
1974
1979
|
> def buttons(value = false)
|
1975
1980
|
|
@@ -1986,7 +1991,7 @@ __Returns:__
|
|
1986
1991
|
|
1987
1992
|
--
|
1988
1993
|
|
1989
|
-
##### [first_button](https://github.com/appium/ruby_lib/blob/
|
1994
|
+
##### [first_button](https://github.com/appium/ruby_lib/blob/b4313b09e62dd22bb95c2e0bc6edd296c7ece7b4/lib/appium_lib/android/element/button.rb#L53) android
|
1990
1995
|
|
1991
1996
|
> def first_button
|
1992
1997
|
|
@@ -1998,7 +2003,7 @@ __Returns:__
|
|
1998
2003
|
|
1999
2004
|
--
|
2000
2005
|
|
2001
|
-
##### [last_button](https://github.com/appium/ruby_lib/blob/
|
2006
|
+
##### [last_button](https://github.com/appium/ruby_lib/blob/b4313b09e62dd22bb95c2e0bc6edd296c7ece7b4/lib/appium_lib/android/element/button.rb#L59) android
|
2002
2007
|
|
2003
2008
|
> def last_button
|
2004
2009
|
|
@@ -2010,7 +2015,7 @@ __Returns:__
|
|
2010
2015
|
|
2011
2016
|
--
|
2012
2017
|
|
2013
|
-
##### [button_exact](https://github.com/appium/ruby_lib/blob/
|
2018
|
+
##### [button_exact](https://github.com/appium/ruby_lib/blob/b4313b09e62dd22bb95c2e0bc6edd296c7ece7b4/lib/appium_lib/android/element/button.rb#L75) android
|
2014
2019
|
|
2015
2020
|
> def button_exact(value)
|
2016
2021
|
|
@@ -2026,7 +2031,7 @@ __Returns:__
|
|
2026
2031
|
|
2027
2032
|
--
|
2028
2033
|
|
2029
|
-
##### [buttons_exact](https://github.com/appium/ruby_lib/blob/
|
2034
|
+
##### [buttons_exact](https://github.com/appium/ruby_lib/blob/b4313b09e62dd22bb95c2e0bc6edd296c7ece7b4/lib/appium_lib/android/element/button.rb#L82) android
|
2030
2035
|
|
2031
2036
|
> def buttons_exact(value)
|
2032
2037
|
|
@@ -2042,7 +2047,7 @@ __Returns:__
|
|
2042
2047
|
|
2043
2048
|
--
|
2044
2049
|
|
2045
|
-
##### [_button_visible_selectors](https://github.com/appium/ruby_lib/blob/
|
2050
|
+
##### [_button_visible_selectors](https://github.com/appium/ruby_lib/blob/b4313b09e62dd22bb95c2e0bc6edd296c7ece7b4/lib/appium_lib/android/element/button.rb#L95) android
|
2046
2051
|
|
2047
2052
|
> def _button_visible_selectors(opts = {})
|
2048
2053
|
|
@@ -2050,7 +2055,7 @@ __Returns:__
|
|
2050
2055
|
|
2051
2056
|
--
|
2052
2057
|
|
2053
|
-
##### [_button_exact_string](https://github.com/appium/ruby_lib/blob/
|
2058
|
+
##### [_button_exact_string](https://github.com/appium/ruby_lib/blob/b4313b09e62dd22bb95c2e0bc6edd296c7ece7b4/lib/appium_lib/android/element/button.rb#L108) android
|
2054
2059
|
|
2055
2060
|
> def _button_exact_string(value)
|
2056
2061
|
|
@@ -2058,7 +2063,7 @@ __Returns:__
|
|
2058
2063
|
|
2059
2064
|
--
|
2060
2065
|
|
2061
|
-
##### [_button_contains_string](https://github.com/appium/ruby_lib/blob/
|
2066
|
+
##### [_button_contains_string](https://github.com/appium/ruby_lib/blob/b4313b09e62dd22bb95c2e0bc6edd296c7ece7b4/lib/appium_lib/android/element/button.rb#L114) android
|
2062
2067
|
|
2063
2068
|
> def _button_contains_string(value)
|
2064
2069
|
|
@@ -2066,7 +2071,7 @@ __Returns:__
|
|
2066
2071
|
|
2067
2072
|
--
|
2068
2073
|
|
2069
|
-
##### [find](https://github.com/appium/ruby_lib/blob/
|
2074
|
+
##### [find](https://github.com/appium/ruby_lib/blob/b4313b09e62dd22bb95c2e0bc6edd296c7ece7b4/lib/appium_lib/android/element/generic.rb#L20) android
|
2070
2075
|
|
2071
2076
|
> def find(value)
|
2072
2077
|
|
@@ -2082,7 +2087,7 @@ __Returns:__
|
|
2082
2087
|
|
2083
2088
|
--
|
2084
2089
|
|
2085
|
-
##### [finds](https://github.com/appium/ruby_lib/blob/
|
2090
|
+
##### [finds](https://github.com/appium/ruby_lib/blob/b4313b09e62dd22bb95c2e0bc6edd296c7ece7b4/lib/appium_lib/android/element/generic.rb#L27) android
|
2086
2091
|
|
2087
2092
|
> def finds(value)
|
2088
2093
|
|
@@ -2098,7 +2103,7 @@ __Returns:__
|
|
2098
2103
|
|
2099
2104
|
--
|
2100
2105
|
|
2101
|
-
##### [find_exact](https://github.com/appium/ruby_lib/blob/
|
2106
|
+
##### [find_exact](https://github.com/appium/ruby_lib/blob/b4313b09e62dd22bb95c2e0bc6edd296c7ece7b4/lib/appium_lib/android/element/generic.rb#L34) android
|
2102
2107
|
|
2103
2108
|
> def find_exact(value)
|
2104
2109
|
|
@@ -2114,7 +2119,7 @@ __Returns:__
|
|
2114
2119
|
|
2115
2120
|
--
|
2116
2121
|
|
2117
|
-
##### [finds_exact](https://github.com/appium/ruby_lib/blob/
|
2122
|
+
##### [finds_exact](https://github.com/appium/ruby_lib/blob/b4313b09e62dd22bb95c2e0bc6edd296c7ece7b4/lib/appium_lib/android/element/generic.rb#L41) android
|
2118
2123
|
|
2119
2124
|
> def finds_exact(value)
|
2120
2125
|
|
@@ -2130,7 +2135,7 @@ __Returns:__
|
|
2130
2135
|
|
2131
2136
|
--
|
2132
2137
|
|
2133
|
-
##### [scroll_to](https://github.com/appium/ruby_lib/blob/
|
2138
|
+
##### [scroll_to](https://github.com/appium/ruby_lib/blob/b4313b09e62dd22bb95c2e0bc6edd296c7ece7b4/lib/appium_lib/android/element/generic.rb#L54) android
|
2134
2139
|
|
2135
2140
|
> def scroll_to(text, scrollable_index = 0)
|
2136
2141
|
|
@@ -2148,7 +2153,7 @@ __Returns:__
|
|
2148
2153
|
|
2149
2154
|
--
|
2150
2155
|
|
2151
|
-
##### [scroll_to_exact](https://github.com/appium/ruby_lib/blob/
|
2156
|
+
##### [scroll_to_exact](https://github.com/appium/ruby_lib/blob/b4313b09e62dd22bb95c2e0bc6edd296c7ece7b4/lib/appium_lib/android/element/generic.rb#L72) android
|
2152
2157
|
|
2153
2158
|
> def scroll_to_exact(text, scrollable_index = 0)
|
2154
2159
|
|
@@ -2166,15 +2171,15 @@ __Returns:__
|
|
2166
2171
|
|
2167
2172
|
--
|
2168
2173
|
|
2169
|
-
##### [for](https://github.com/appium/ruby_lib/blob/
|
2174
|
+
##### [for](https://github.com/appium/ruby_lib/blob/b4313b09e62dd22bb95c2e0bc6edd296c7ece7b4/lib/appium_lib/android/espresso/bridge.rb#L21) android
|
2170
2175
|
|
2171
|
-
> def
|
2176
|
+
> def for(target)
|
2172
2177
|
|
2173
2178
|
|
2174
2179
|
|
2175
2180
|
--
|
2176
2181
|
|
2177
|
-
##### [complex_find_contains](https://github.com/appium/ruby_lib/blob/
|
2182
|
+
##### [complex_find_contains](https://github.com/appium/ruby_lib/blob/b4313b09e62dd22bb95c2e0bc6edd296c7ece7b4/lib/appium_lib/android/espresso/helper.rb#L23) android
|
2178
2183
|
|
2179
2184
|
> def complex_find_contains(class_name, value)
|
2180
2185
|
|
@@ -2192,7 +2197,7 @@ __Returns:__
|
|
2192
2197
|
|
2193
2198
|
--
|
2194
2199
|
|
2195
|
-
##### [complex_finds_contains](https://github.com/appium/ruby_lib/blob/
|
2200
|
+
##### [complex_finds_contains](https://github.com/appium/ruby_lib/blob/b4313b09e62dd22bb95c2e0bc6edd296c7ece7b4/lib/appium_lib/android/espresso/helper.rb#L31) android
|
2196
2201
|
|
2197
2202
|
> def complex_finds_contains(class_name, value)
|
2198
2203
|
|
@@ -2210,7 +2215,7 @@ __Returns:__
|
|
2210
2215
|
|
2211
2216
|
--
|
2212
2217
|
|
2213
|
-
##### [complex_find_exact](https://github.com/appium/ruby_lib/blob/
|
2218
|
+
##### [complex_find_exact](https://github.com/appium/ruby_lib/blob/b4313b09e62dd22bb95c2e0bc6edd296c7ece7b4/lib/appium_lib/android/espresso/helper.rb#L39) android
|
2214
2219
|
|
2215
2220
|
> def complex_find_exact(class_name, value)
|
2216
2221
|
|
@@ -2228,7 +2233,7 @@ __Returns:__
|
|
2228
2233
|
|
2229
2234
|
--
|
2230
2235
|
|
2231
|
-
##### [complex_finds_exact](https://github.com/appium/ruby_lib/blob/
|
2236
|
+
##### [complex_finds_exact](https://github.com/appium/ruby_lib/blob/b4313b09e62dd22bb95c2e0bc6edd296c7ece7b4/lib/appium_lib/android/espresso/helper.rb#L47) android
|
2232
2237
|
|
2233
2238
|
> def complex_finds_exact(class_name, value)
|
2234
2239
|
|
@@ -2246,23 +2251,7 @@ __Returns:__
|
|
2246
2251
|
|
2247
2252
|
--
|
2248
2253
|
|
2249
|
-
##### [
|
2250
|
-
|
2251
|
-
> EDIT_TEXT = 'android.widget.EditText'
|
2252
|
-
|
2253
|
-
|
2254
|
-
|
2255
|
-
--
|
2256
|
-
|
2257
|
-
##### [EditText](https://github.com/appium/ruby_lib/blob/ef89749d25c7044fe27fa4b7c1adfd011b60bba1/lib/appium_lib/android/element/textfield.rb#L18) android
|
2258
|
-
|
2259
|
-
> EditText = EDIT_TEXT
|
2260
|
-
|
2261
|
-
|
2262
|
-
|
2263
|
-
--
|
2264
|
-
|
2265
|
-
##### [textfield](https://github.com/appium/ruby_lib/blob/ef89749d25c7044fe27fa4b7c1adfd011b60bba1/lib/appium_lib/android/element/textfield.rb#L24) android
|
2254
|
+
##### [textfield](https://github.com/appium/ruby_lib/blob/b4313b09e62dd22bb95c2e0bc6edd296c7ece7b4/lib/appium_lib/android/element/textfield.rb#L24) android
|
2266
2255
|
|
2267
2256
|
> def textfield(value)
|
2268
2257
|
|
@@ -2279,7 +2268,7 @@ __Returns:__
|
|
2279
2268
|
|
2280
2269
|
--
|
2281
2270
|
|
2282
|
-
##### [textfields](https://github.com/appium/ruby_lib/blob/
|
2271
|
+
##### [textfields](https://github.com/appium/ruby_lib/blob/b4313b09e62dd22bb95c2e0bc6edd296c7ece7b4/lib/appium_lib/android/element/textfield.rb#L34) android
|
2283
2272
|
|
2284
2273
|
> def textfields(value = false)
|
2285
2274
|
|
@@ -2296,7 +2285,7 @@ __Returns:__
|
|
2296
2285
|
|
2297
2286
|
--
|
2298
2287
|
|
2299
|
-
##### [first_textfield](https://github.com/appium/ruby_lib/blob/
|
2288
|
+
##### [first_textfield](https://github.com/appium/ruby_lib/blob/b4313b09e62dd22bb95c2e0bc6edd296c7ece7b4/lib/appium_lib/android/element/textfield.rb#L42) android
|
2300
2289
|
|
2301
2290
|
> def first_textfield
|
2302
2291
|
|
@@ -2308,7 +2297,7 @@ __Returns:__
|
|
2308
2297
|
|
2309
2298
|
--
|
2310
2299
|
|
2311
|
-
##### [last_textfield](https://github.com/appium/ruby_lib/blob/
|
2300
|
+
##### [last_textfield](https://github.com/appium/ruby_lib/blob/b4313b09e62dd22bb95c2e0bc6edd296c7ece7b4/lib/appium_lib/android/element/textfield.rb#L48) android
|
2312
2301
|
|
2313
2302
|
> def last_textfield
|
2314
2303
|
|
@@ -2320,7 +2309,7 @@ __Returns:__
|
|
2320
2309
|
|
2321
2310
|
--
|
2322
2311
|
|
2323
|
-
##### [textfield_exact](https://github.com/appium/ruby_lib/blob/
|
2312
|
+
##### [textfield_exact](https://github.com/appium/ruby_lib/blob/b4313b09e62dd22bb95c2e0bc6edd296c7ece7b4/lib/appium_lib/android/element/textfield.rb#L55) android
|
2324
2313
|
|
2325
2314
|
> def textfield_exact(value)
|
2326
2315
|
|
@@ -2336,7 +2325,7 @@ __Returns:__
|
|
2336
2325
|
|
2337
2326
|
--
|
2338
2327
|
|
2339
|
-
##### [textfields_exact](https://github.com/appium/ruby_lib/blob/
|
2328
|
+
##### [textfields_exact](https://github.com/appium/ruby_lib/blob/b4313b09e62dd22bb95c2e0bc6edd296c7ece7b4/lib/appium_lib/android/element/textfield.rb#L62) android
|
2340
2329
|
|
2341
2330
|
> def textfields_exact(value)
|
2342
2331
|
|
@@ -2352,15 +2341,15 @@ __Returns:__
|
|
2352
2341
|
|
2353
2342
|
--
|
2354
2343
|
|
2355
|
-
##### [for](https://github.com/appium/ruby_lib/blob/
|
2344
|
+
##### [for](https://github.com/appium/ruby_lib/blob/b4313b09e62dd22bb95c2e0bc6edd296c7ece7b4/lib/appium_lib/android/uiautomator2/bridge.rb#L21) android
|
2356
2345
|
|
2357
|
-
> def
|
2346
|
+
> def for(target)
|
2358
2347
|
|
2359
2348
|
|
2360
2349
|
|
2361
2350
|
--
|
2362
2351
|
|
2363
|
-
##### [string_visible_contains](https://github.com/appium/ruby_lib/blob/
|
2352
|
+
##### [string_visible_contains](https://github.com/appium/ruby_lib/blob/b4313b09e62dd22bb95c2e0bc6edd296c7ece7b4/lib/appium_lib/android/uiautomator2/helper.rb#L27) android
|
2364
2353
|
|
2365
2354
|
> def string_visible_contains(class_name, value)
|
2366
2355
|
|
@@ -2381,7 +2370,7 @@ __Returns:__
|
|
2381
2370
|
|
2382
2371
|
--
|
2383
2372
|
|
2384
|
-
##### [complex_find_contains](https://github.com/appium/ruby_lib/blob/
|
2373
|
+
##### [complex_find_contains](https://github.com/appium/ruby_lib/blob/b4313b09e62dd22bb95c2e0bc6edd296c7ece7b4/lib/appium_lib/android/uiautomator2/helper.rb#L45) android
|
2385
2374
|
|
2386
2375
|
> def complex_find_contains(class_name, value)
|
2387
2376
|
|
@@ -2399,7 +2388,7 @@ __Returns:__
|
|
2399
2388
|
|
2400
2389
|
--
|
2401
2390
|
|
2402
|
-
##### [complex_finds_contains](https://github.com/appium/ruby_lib/blob/
|
2391
|
+
##### [complex_finds_contains](https://github.com/appium/ruby_lib/blob/b4313b09e62dd22bb95c2e0bc6edd296c7ece7b4/lib/appium_lib/android/uiautomator2/helper.rb#L56) android
|
2403
2392
|
|
2404
2393
|
> def complex_finds_contains(class_name, value)
|
2405
2394
|
|
@@ -2417,7 +2406,7 @@ __Returns:__
|
|
2417
2406
|
|
2418
2407
|
--
|
2419
2408
|
|
2420
|
-
##### [complex_find_exact](https://github.com/appium/ruby_lib/blob/
|
2409
|
+
##### [complex_find_exact](https://github.com/appium/ruby_lib/blob/b4313b09e62dd22bb95c2e0bc6edd296c7ece7b4/lib/appium_lib/android/uiautomator2/helper.rb#L84) android
|
2421
2410
|
|
2422
2411
|
> def complex_find_exact(class_name, value)
|
2423
2412
|
|
@@ -2435,7 +2424,7 @@ __Returns:__
|
|
2435
2424
|
|
2436
2425
|
--
|
2437
2426
|
|
2438
|
-
##### [complex_finds_exact](https://github.com/appium/ruby_lib/blob/
|
2427
|
+
##### [complex_finds_exact](https://github.com/appium/ruby_lib/blob/b4313b09e62dd22bb95c2e0bc6edd296c7ece7b4/lib/appium_lib/android/uiautomator2/helper.rb#L95) android
|
2439
2428
|
|
2440
2429
|
> def complex_finds_exact(class_name, value)
|
2441
2430
|
|
@@ -2453,7 +2442,7 @@ __Returns:__
|
|
2453
2442
|
|
2454
2443
|
--
|
2455
2444
|
|
2456
|
-
##### [shell](https://github.com/appium/ruby_lib/blob/
|
2445
|
+
##### [shell](https://github.com/appium/ruby_lib/blob/b4313b09e62dd22bb95c2e0bc6edd296c7ece7b4/lib/appium_lib/android/common/command/command.rb#L28) android
|
2457
2446
|
|
2458
2447
|
> def shell(command, arguments)
|
2459
2448
|
|
@@ -2468,7 +2457,7 @@ __Parameters:__
|
|
2468
2457
|
|
2469
2458
|
--
|
2470
2459
|
|
2471
|
-
##### [start_logs_broadcast](https://github.com/appium/ruby_lib/blob/
|
2460
|
+
##### [start_logs_broadcast](https://github.com/appium/ruby_lib/blob/b4313b09e62dd22bb95c2e0bc6edd296c7ece7b4/lib/appium_lib/android/common/command/command.rb#L42) android
|
2472
2461
|
|
2473
2462
|
> def start_logs_broadcast(logcat_file = 'logcat.log')
|
2474
2463
|
|
@@ -2480,7 +2469,7 @@ __Parameters:__
|
|
2480
2469
|
|
2481
2470
|
--
|
2482
2471
|
|
2483
|
-
##### [stop_logs_broadcast](https://github.com/appium/ruby_lib/blob/
|
2472
|
+
##### [stop_logs_broadcast](https://github.com/appium/ruby_lib/blob/b4313b09e62dd22bb95c2e0bc6edd296c7ece7b4/lib/appium_lib/android/common/command/command.rb#L55) android
|
2484
2473
|
|
2485
2474
|
> def stop_logs_broadcast
|
2486
2475
|
|
@@ -2488,7 +2477,7 @@ Stop Android logcat broadcast websocket
|
|
2488
2477
|
|
2489
2478
|
--
|
2490
2479
|
|
2491
|
-
##### [button](https://github.com/appium/ruby_lib/blob/
|
2480
|
+
##### [button](https://github.com/appium/ruby_lib/blob/b4313b09e62dd22bb95c2e0bc6edd296c7ece7b4/lib/appium_lib/android/espresso/element/button.rb#L23) android
|
2492
2481
|
|
2493
2482
|
> def button(value)
|
2494
2483
|
|
@@ -2505,7 +2494,7 @@ __Returns:__
|
|
2505
2494
|
|
2506
2495
|
--
|
2507
2496
|
|
2508
|
-
##### [buttons](https://github.com/appium/ruby_lib/blob/
|
2497
|
+
##### [buttons](https://github.com/appium/ruby_lib/blob/b4313b09e62dd22bb95c2e0bc6edd296c7ece7b4/lib/appium_lib/android/espresso/element/button.rb#L46) android
|
2509
2498
|
|
2510
2499
|
> def buttons(value = false)
|
2511
2500
|
|
@@ -2522,7 +2511,7 @@ __Returns:__
|
|
2522
2511
|
|
2523
2512
|
--
|
2524
2513
|
|
2525
|
-
##### [first_button](https://github.com/appium/ruby_lib/blob/
|
2514
|
+
##### [first_button](https://github.com/appium/ruby_lib/blob/b4313b09e62dd22bb95c2e0bc6edd296c7ece7b4/lib/appium_lib/android/espresso/element/button.rb#L56) android
|
2526
2515
|
|
2527
2516
|
> def first_button
|
2528
2517
|
|
@@ -2534,7 +2523,7 @@ __Returns:__
|
|
2534
2523
|
|
2535
2524
|
--
|
2536
2525
|
|
2537
|
-
##### [last_button](https://github.com/appium/ruby_lib/blob/
|
2526
|
+
##### [last_button](https://github.com/appium/ruby_lib/blob/b4313b09e62dd22bb95c2e0bc6edd296c7ece7b4/lib/appium_lib/android/espresso/element/button.rb#L62) android
|
2538
2527
|
|
2539
2528
|
> def last_button
|
2540
2529
|
|
@@ -2546,7 +2535,7 @@ __Returns:__
|
|
2546
2535
|
|
2547
2536
|
--
|
2548
2537
|
|
2549
|
-
##### [button_exact](https://github.com/appium/ruby_lib/blob/
|
2538
|
+
##### [button_exact](https://github.com/appium/ruby_lib/blob/b4313b09e62dd22bb95c2e0bc6edd296c7ece7b4/lib/appium_lib/android/espresso/element/button.rb#L77) android
|
2550
2539
|
|
2551
2540
|
> def button_exact(value)
|
2552
2541
|
|
@@ -2562,7 +2551,7 @@ __Returns:__
|
|
2562
2551
|
|
2563
2552
|
--
|
2564
2553
|
|
2565
|
-
##### [buttons_exact](https://github.com/appium/ruby_lib/blob/
|
2554
|
+
##### [buttons_exact](https://github.com/appium/ruby_lib/blob/b4313b09e62dd22bb95c2e0bc6edd296c7ece7b4/lib/appium_lib/android/espresso/element/button.rb#L89) android
|
2566
2555
|
|
2567
2556
|
> def buttons_exact(value)
|
2568
2557
|
|
@@ -2578,7 +2567,7 @@ __Returns:__
|
|
2578
2567
|
|
2579
2568
|
--
|
2580
2569
|
|
2581
|
-
##### [_button_visible_selectors_xpath](https://github.com/appium/ruby_lib/blob/
|
2570
|
+
##### [_button_visible_selectors_xpath](https://github.com/appium/ruby_lib/blob/b4313b09e62dd22bb95c2e0bc6edd296c7ece7b4/lib/appium_lib/android/espresso/element/button.rb#L104) android
|
2582
2571
|
|
2583
2572
|
> def _button_visible_selectors_xpath(opts = {})
|
2584
2573
|
|
@@ -2586,7 +2575,7 @@ __Returns:__
|
|
2586
2575
|
|
2587
2576
|
--
|
2588
2577
|
|
2589
|
-
##### [_button_exact_string_xpath](https://github.com/appium/ruby_lib/blob/
|
2578
|
+
##### [_button_exact_string_xpath](https://github.com/appium/ruby_lib/blob/b4313b09e62dd22bb95c2e0bc6edd296c7ece7b4/lib/appium_lib/android/espresso/element/button.rb#L125) android
|
2590
2579
|
|
2591
2580
|
> def _button_exact_string_xpath(class_name, value)
|
2592
2581
|
|
@@ -2594,7 +2583,7 @@ __Returns:__
|
|
2594
2583
|
|
2595
2584
|
--
|
2596
2585
|
|
2597
|
-
##### [_button_contains_string_xpath](https://github.com/appium/ruby_lib/blob/
|
2586
|
+
##### [_button_contains_string_xpath](https://github.com/appium/ruby_lib/blob/b4313b09e62dd22bb95c2e0bc6edd296c7ece7b4/lib/appium_lib/android/espresso/element/button.rb#L130) android
|
2598
2587
|
|
2599
2588
|
> def _button_contains_string_xpath(class_name, value)
|
2600
2589
|
|
@@ -2602,7 +2591,7 @@ __Returns:__
|
|
2602
2591
|
|
2603
2592
|
--
|
2604
2593
|
|
2605
|
-
##### [scroll_to](https://github.com/appium/ruby_lib/blob/
|
2594
|
+
##### [scroll_to](https://github.com/appium/ruby_lib/blob/b4313b09e62dd22bb95c2e0bc6edd296c7ece7b4/lib/appium_lib/android/espresso/element/generic.rb#L23) android
|
2606
2595
|
|
2607
2596
|
> def scroll_to(text)
|
2608
2597
|
|
@@ -2619,7 +2608,7 @@ __Returns:__
|
|
2619
2608
|
|
2620
2609
|
--
|
2621
2610
|
|
2622
|
-
##### [scroll_to_exact](https://github.com/appium/ruby_lib/blob/
|
2611
|
+
##### [scroll_to_exact](https://github.com/appium/ruby_lib/blob/b4313b09e62dd22bb95c2e0bc6edd296c7ece7b4/lib/appium_lib/android/espresso/element/generic.rb#L50) android
|
2623
2612
|
|
2624
2613
|
> def scroll_to_exact(text)
|
2625
2614
|
|
@@ -2636,7 +2625,7 @@ __Returns:__
|
|
2636
2625
|
|
2637
2626
|
--
|
2638
2627
|
|
2639
|
-
##### [button](https://github.com/appium/ruby_lib/blob/
|
2628
|
+
##### [button](https://github.com/appium/ruby_lib/blob/b4313b09e62dd22bb95c2e0bc6edd296c7ece7b4/lib/appium_lib/android/uiautomator2/element/button.rb#L23) android
|
2640
2629
|
|
2641
2630
|
> def button(value)
|
2642
2631
|
|
@@ -2653,7 +2642,7 @@ __Returns:__
|
|
2653
2642
|
|
2654
2643
|
--
|
2655
2644
|
|
2656
|
-
##### [buttons](https://github.com/appium/ruby_lib/blob/
|
2645
|
+
##### [buttons](https://github.com/appium/ruby_lib/blob/b4313b09e62dd22bb95c2e0bc6edd296c7ece7b4/lib/appium_lib/android/uiautomator2/element/button.rb#L44) android
|
2657
2646
|
|
2658
2647
|
> def buttons(value = false)
|
2659
2648
|
|
@@ -2670,7 +2659,7 @@ __Returns:__
|
|
2670
2659
|
|
2671
2660
|
--
|
2672
2661
|
|
2673
|
-
##### [first_button](https://github.com/appium/ruby_lib/blob/
|
2662
|
+
##### [first_button](https://github.com/appium/ruby_lib/blob/b4313b09e62dd22bb95c2e0bc6edd296c7ece7b4/lib/appium_lib/android/uiautomator2/element/button.rb#L52) android
|
2674
2663
|
|
2675
2664
|
> def first_button
|
2676
2665
|
|
@@ -2682,7 +2671,7 @@ __Returns:__
|
|
2682
2671
|
|
2683
2672
|
--
|
2684
2673
|
|
2685
|
-
##### [last_button](https://github.com/appium/ruby_lib/blob/
|
2674
|
+
##### [last_button](https://github.com/appium/ruby_lib/blob/b4313b09e62dd22bb95c2e0bc6edd296c7ece7b4/lib/appium_lib/android/uiautomator2/element/button.rb#L59) android
|
2686
2675
|
|
2687
2676
|
> def last_button
|
2688
2677
|
|
@@ -2694,7 +2683,7 @@ __Returns:__
|
|
2694
2683
|
|
2695
2684
|
--
|
2696
2685
|
|
2697
|
-
##### [button_exact](https://github.com/appium/ruby_lib/blob/
|
2686
|
+
##### [button_exact](https://github.com/appium/ruby_lib/blob/b4313b09e62dd22bb95c2e0bc6edd296c7ece7b4/lib/appium_lib/android/uiautomator2/element/button.rb#L76) android
|
2698
2687
|
|
2699
2688
|
> def button_exact(value)
|
2700
2689
|
|
@@ -2710,7 +2699,7 @@ __Returns:__
|
|
2710
2699
|
|
2711
2700
|
--
|
2712
2701
|
|
2713
|
-
##### [buttons_exact](https://github.com/appium/ruby_lib/blob/
|
2702
|
+
##### [buttons_exact](https://github.com/appium/ruby_lib/blob/b4313b09e62dd22bb95c2e0bc6edd296c7ece7b4/lib/appium_lib/android/uiautomator2/element/button.rb#L84) android
|
2714
2703
|
|
2715
2704
|
> def buttons_exact(value)
|
2716
2705
|
|