appium_lib 10.4.0 → 11.1.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.azure-pipelines.yml +18 -0
- data/.github/workflows/rubocop.yml +27 -0
- data/.rubocop.yml +20 -8
- data/CHANGELOG.md +42 -0
- data/appium_lib.gemspec +6 -6
- data/docs/android_docs.md +270 -307
- data/docs/ios_docs.md +307 -408
- data/lib/appium_lib/android/common/helper.rb +2 -2
- 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 +18 -7
- data/lib/appium_lib/common/helper.rb +7 -5
- data/lib/appium_lib/common/wait.rb +2 -2
- data/lib/appium_lib/driver.rb +51 -22
- data/lib/appium_lib/ios/common/helper.rb +4 -3
- data/lib/appium_lib/ios/xcuitest.rb +0 -1
- data/lib/appium_lib/ios/xcuitest/command/gestures.rb +5 -5
- data/lib/appium_lib/ios/xcuitest/command/multi_app_handler.rb +6 -12
- data/lib/appium_lib/ios/xcuitest/helper.rb +1 -1
- data/lib/appium_lib/version.rb +2 -2
- data/readme.md +1 -1
- data/release_notes.md +43 -0
- metadata +21 -20
- 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: bf4e0737c1db2eb4ee225da83aed0a5159deecfa9e319f2704e90c1a8efc11e7
|
4
|
+
data.tar.gz: dc9e6938d15d67515488da3e98f9a063e2ec34b559b1ab23f6725f2f6c6195c5
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 60c665646269f3587879fee101ff7de692ecea43810de9a565378b0035a85d4660830a4b86edffe9b0d284c57ae2ffeddbb15bc92759f28c9ac4624896f4e992
|
7
|
+
data.tar.gz: 0e4c6ab4138043c06b2d02f743f3d81a8d263844f620a3e85c22b3f2ed9a9cc48280b20cd58d061a6b040b6c2580c960d1bdce756b8223623bf4171ae703d208
|
@@ -0,0 +1,18 @@
|
|
1
|
+
# Ruby
|
2
|
+
# Package your Ruby project.
|
3
|
+
# Add steps that install rails, analyze code, save build artifacts, deploy, and more:
|
4
|
+
# https://docs.microsoft.com/azure/devops/pipelines/languages/ruby
|
5
|
+
|
6
|
+
trigger:
|
7
|
+
- main
|
8
|
+
|
9
|
+
pool:
|
10
|
+
vmImage: 'macOS-10.15'
|
11
|
+
|
12
|
+
steps:
|
13
|
+
- task: UseRubyVersion@0
|
14
|
+
inputs:
|
15
|
+
versionSpec: '>= 2.6'
|
16
|
+
|
17
|
+
- script: bundle install --retry=3 --jobs=4
|
18
|
+
displayName: 'bundle install'
|
@@ -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, 3.0]
|
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,17 +25,29 @@ 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
|
38
|
-
|
32
|
+
Naming/RescuedExceptionsVariableName:
|
33
|
+
Enabled: false
|
34
|
+
Layout/HeredocIndentation:
|
39
35
|
Enabled: false
|
40
36
|
Layout/RescueEnsureAlignment:
|
41
37
|
Enabled: false
|
38
|
+
Layout/HashAlignment:
|
39
|
+
Enabled: false
|
40
|
+
Style/ExplicitBlockArgument:
|
41
|
+
Enabled: false
|
42
|
+
Style/OptionalBooleanParameter:
|
43
|
+
Enabled: false
|
44
|
+
Naming/MethodParameterName:
|
45
|
+
Enabled: false
|
46
|
+
Style/KeywordParametersOrder:
|
47
|
+
Enabled: false
|
48
|
+
Style/AccessorGrouping:
|
49
|
+
Enabled: false
|
50
|
+
Style/StringConcatenation:
|
51
|
+
Enabled: false
|
52
|
+
Lint/NonDeterministicRequireOrder:
|
53
|
+
Enabled: false
|
data/CHANGELOG.md
CHANGED
@@ -4,9 +4,51 @@ 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
|
+
## 11.1.0 - 2020-12-29
|
13
|
+
|
14
|
+
Support Ruby 3
|
15
|
+
|
16
|
+
### 1. Enhancements
|
17
|
+
|
18
|
+
### 2. Bug fixes
|
19
|
+
|
20
|
+
### 3. Deprecations
|
21
|
+
- Rename `Appium::Ios::Xcuitest::Guesture#tap` to `Appium::Ios::Xcuitest::Guesture#one_finger_tap` to prevent conflicts with `tap` in Ruby
|
22
|
+
|
23
|
+
## 11.0.0 - 2020-12-19
|
24
|
+
|
25
|
+
Bump supported Ruby version to 2.4+
|
26
|
+
|
27
|
+
[related changes](https://github.com/appium/ruby_lib_core/blob/master/CHANGELOG.md#400---2020-12-19) in ruby_lib_core.
|
28
|
+
|
29
|
+
## 10.6.0
|
30
|
+
### 1. Enhancements
|
31
|
+
|
32
|
+
### 2. Bug fixes
|
33
|
+
|
34
|
+
### 3. Deprecations
|
35
|
+
- Remove auto `Pry.config.pager` off
|
36
|
+
- Please turn it off if you needed. https://github.com/pry/pry/wiki/Customization-and-configuration#Config_pager
|
37
|
+
|
38
|
+
## v10.5.0
|
39
|
+
### 1. Enhancements
|
40
|
+
- Added `driver.log_event` to post an event
|
41
|
+
- Added `driver.log_events` to get the events
|
42
|
+
|
43
|
+
### 2. Bug fixes
|
44
|
+
|
45
|
+
### 3. Deprecations
|
46
|
+
|
47
|
+
## v10.4.1
|
7
48
|
### 1. Enhancements
|
8
49
|
|
9
50
|
### 2. Bug fixes
|
51
|
+
- Fix iOS `page` in native context
|
10
52
|
|
11
53
|
### 3. Deprecations
|
12
54
|
|
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.1'
|
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
|
-
s.add_development_dependency 'fakefs', '~>
|
23
|
-
s.add_development_dependency 'hashdiff', '~> 0.
|
22
|
+
s.add_development_dependency 'fakefs', '~> 1.3.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', '
|
26
|
+
s.add_development_dependency 'rake', '~> 13.0'
|
27
|
+
s.add_development_dependency 'rubocop', '1.7.0'
|
28
28
|
s.add_development_dependency 'spec', '~> 5.3', '>= 5.3.4'
|
29
29
|
s.add_development_dependency 'yard', '~> 0.9.11'
|
30
30
|
|
data/docs/android_docs.md
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
##### [load_settings](https://github.com/appium/ruby_lib/blob/
|
1
|
+
##### [load_settings](https://github.com/appium/ruby_lib/blob/bc3da9bc1ee58d5e96811b72f3ed737ed0e9c401/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/bc3da9bc1ee58d5e96811b72f3ed737ed0e9c401/lib/appium_lib/appium.rb#L95) 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/bc3da9bc1ee58d5e96811b72f3ed737ed0e9c401/lib/appium_lib/appium.rb#L100) 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/bc3da9bc1ee58d5e96811b72f3ed737ed0e9c401/lib/appium_lib/appium.rb#L142) 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/bc3da9bc1ee58d5e96811b72f3ed737ed0e9c401/lib/appium_lib/appium.rb#L198) 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/bc3da9bc1ee58d5e96811b72f3ed737ed0e9c401/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/bc3da9bc1ee58d5e96811b72f3ed737ed0e9c401/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/bc3da9bc1ee58d5e96811b72f3ed737ed0e9c401/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/bc3da9bc1ee58d5e96811b72f3ed737ed0e9c401/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/bc3da9bc1ee58d5e96811b72f3ed737ed0e9c401/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/bc3da9bc1ee58d5e96811b72f3ed737ed0e9c401/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/bc3da9bc1ee58d5e96811b72f3ed737ed0e9c401/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/bc3da9bc1ee58d5e96811b72f3ed737ed0e9c401/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/bc3da9bc1ee58d5e96811b72f3ed737ed0e9c401/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/bc3da9bc1ee58d5e96811b72f3ed737ed0e9c401/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/bc3da9bc1ee58d5e96811b72f3ed737ed0e9c401/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/bc3da9bc1ee58d5e96811b72f3ed737ed0e9c401/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/bc3da9bc1ee58d5e96811b72f3ed737ed0e9c401/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/bc3da9bc1ee58d5e96811b72f3ed737ed0e9c401/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/bc3da9bc1ee58d5e96811b72f3ed737ed0e9c401/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/bc3da9bc1ee58d5e96811b72f3ed737ed0e9c401/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/bc3da9bc1ee58d5e96811b72f3ed737ed0e9c401/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/bc3da9bc1ee58d5e96811b72f3ed737ed0e9c401/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/bc3da9bc1ee58d5e96811b72f3ed737ed0e9c401/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/bc3da9bc1ee58d5e96811b72f3ed737ed0e9c401/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/bc3da9bc1ee58d5e96811b72f3ed737ed0e9c401/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/bc3da9bc1ee58d5e96811b72f3ed737ed0e9c401/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/bc3da9bc1ee58d5e96811b72f3ed737ed0e9c401/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/bc3da9bc1ee58d5e96811b72f3ed737ed0e9c401/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/bc3da9bc1ee58d5e96811b72f3ed737ed0e9c401/lib/appium_lib/driver.rb#L298) 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/bc3da9bc1ee58d5e96811b72f3ed737ed0e9c401/lib/appium_lib/driver.rb#L302) 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/bc3da9bc1ee58d5e96811b72f3ed737ed0e9c401/lib/appium_lib/driver.rb#L306) 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/bc3da9bc1ee58d5e96811b72f3ed737ed0e9c401/lib/appium_lib/driver.rb#L312) 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/bc3da9bc1ee58d5e96811b72f3ed737ed0e9c401/lib/appium_lib/driver.rb#L318) 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/bc3da9bc1ee58d5e96811b72f3ed737ed0e9c401/lib/appium_lib/driver.rb#L324) 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/bc3da9bc1ee58d5e96811b72f3ed737ed0e9c401/lib/appium_lib/driver.rb#L344) 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/bc3da9bc1ee58d5e96811b72f3ed737ed0e9c401/lib/appium_lib/driver.rb#L358) 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/bc3da9bc1ee58d5e96811b72f3ed737ed0e9c401/lib/appium_lib/driver.rb#L378) 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/bc3da9bc1ee58d5e96811b72f3ed737ed0e9c401/lib/appium_lib/driver.rb#L386) 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/bc3da9bc1ee58d5e96811b72f3ed737ed0e9c401/lib/appium_lib/driver.rb#L390) 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/bc3da9bc1ee58d5e96811b72f3ed737ed0e9c401/lib/appium_lib/driver.rb#L403) 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/bc3da9bc1ee58d5e96811b72f3ed737ed0e9c401/lib/appium_lib/driver.rb#L415) 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/bc3da9bc1ee58d5e96811b72f3ed737ed0e9c401/lib/appium_lib/driver.rb#L436) 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/bc3da9bc1ee58d5e96811b72f3ed737ed0e9c401/lib/appium_lib/driver.rb#L445) 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/bc3da9bc1ee58d5e96811b72f3ed737ed0e9c401/lib/appium_lib/driver.rb#L458) 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/bc3da9bc1ee58d5e96811b72f3ed737ed0e9c401/lib/appium_lib/driver.rb#L472) 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/bc3da9bc1ee58d5e96811b72f3ed737ed0e9c401/lib/appium_lib/driver.rb#L479) 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/bc3da9bc1ee58d5e96811b72f3ed737ed0e9c401/lib/appium_lib/driver.rb#L482) 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/bc3da9bc1ee58d5e96811b72f3ed737ed0e9c401/lib/appium_lib/driver.rb#L493) 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/bc3da9bc1ee58d5e96811b72f3ed737ed0e9c401/lib/appium_lib/driver.rb#L508) 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/bc3da9bc1ee58d5e96811b72f3ed737ed0e9c401/lib/appium_lib/driver.rb#L541) 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/bc3da9bc1ee58d5e96811b72f3ed737ed0e9c401/lib/appium_lib/driver.rb#L562) 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/bc3da9bc1ee58d5e96811b72f3ed737ed0e9c401/lib/appium_lib/driver.rb#L573) 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/bc3da9bc1ee58d5e96811b72f3ed737ed0e9c401/lib/appium_lib/driver.rb#L587) 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/bc3da9bc1ee58d5e96811b72f3ed737ed0e9c401/lib/appium_lib/driver.rb#L604) 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/bc3da9bc1ee58d5e96811b72f3ed737ed0e9c401/lib/appium_lib/driver.rb#L628) 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/bc3da9bc1ee58d5e96811b72f3ed737ed0e9c401/lib/appium_lib/driver.rb#L636) common
|
703
703
|
|
704
704
|
> def execute_async_script(script, *args)
|
705
705
|
|
@@ -709,7 +709,7 @@ Get the window handles of open browser windows
|
|
709
709
|
|
710
710
|
--
|
711
711
|
|
712
|
-
##### [execute_driver](https://github.com/appium/ruby_lib/blob/
|
712
|
+
##### [execute_driver](https://github.com/appium/ruby_lib/blob/bc3da9bc1ee58d5e96811b72f3ed737ed0e9c401/lib/appium_lib/driver.rb#L668) common
|
713
713
|
|
714
714
|
> def execute_driver(script: '', type: 'webdriverio', timeout_ms: nil)
|
715
715
|
|
@@ -735,7 +735,7 @@ Appium::Core::Base::Device::ExecuteDriver::Result.
|
|
735
735
|
|
736
736
|
--
|
737
737
|
|
738
|
-
##### [window_handles](https://github.com/appium/ruby_lib/blob/
|
738
|
+
##### [window_handles](https://github.com/appium/ruby_lib/blob/bc3da9bc1ee58d5e96811b72f3ed737ed0e9c401/lib/appium_lib/driver.rb#L672) common
|
739
739
|
|
740
740
|
> def window_handles
|
741
741
|
|
@@ -743,7 +743,7 @@ Appium::Core::Base::Device::ExecuteDriver::Result.
|
|
743
743
|
|
744
744
|
--
|
745
745
|
|
746
|
-
##### [window_handle](https://github.com/appium/ruby_lib/blob/
|
746
|
+
##### [window_handle](https://github.com/appium/ruby_lib/blob/bc3da9bc1ee58d5e96811b72f3ed737ed0e9c401/lib/appium_lib/driver.rb#L677) common
|
747
747
|
|
748
748
|
> def window_handle
|
749
749
|
|
@@ -751,7 +751,7 @@ Get the current window handle
|
|
751
751
|
|
752
752
|
--
|
753
753
|
|
754
|
-
##### [navigate](https://github.com/appium/ruby_lib/blob/
|
754
|
+
##### [navigate](https://github.com/appium/ruby_lib/blob/bc3da9bc1ee58d5e96811b72f3ed737ed0e9c401/lib/appium_lib/driver.rb#L681) common
|
755
755
|
|
756
756
|
> def navigate
|
757
757
|
|
@@ -759,7 +759,7 @@ Get the current window handle
|
|
759
759
|
|
760
760
|
--
|
761
761
|
|
762
|
-
##### [manage](https://github.com/appium/ruby_lib/blob/
|
762
|
+
##### [manage](https://github.com/appium/ruby_lib/blob/bc3da9bc1ee58d5e96811b72f3ed737ed0e9c401/lib/appium_lib/driver.rb#L685) common
|
763
763
|
|
764
764
|
> def manage
|
765
765
|
|
@@ -767,7 +767,7 @@ Get the current window handle
|
|
767
767
|
|
768
768
|
--
|
769
769
|
|
770
|
-
##### [get](https://github.com/appium/ruby_lib/blob/
|
770
|
+
##### [get](https://github.com/appium/ruby_lib/blob/bc3da9bc1ee58d5e96811b72f3ed737ed0e9c401/lib/appium_lib/driver.rb#L689) common
|
771
771
|
|
772
772
|
> def get(url)
|
773
773
|
|
@@ -775,7 +775,7 @@ Get the current window handle
|
|
775
775
|
|
776
776
|
--
|
777
777
|
|
778
|
-
##### [current_url](https://github.com/appium/ruby_lib/blob/
|
778
|
+
##### [current_url](https://github.com/appium/ruby_lib/blob/bc3da9bc1ee58d5e96811b72f3ed737ed0e9c401/lib/appium_lib/driver.rb#L693) common
|
779
779
|
|
780
780
|
> def current_url
|
781
781
|
|
@@ -783,7 +783,7 @@ Get the current window handle
|
|
783
783
|
|
784
784
|
--
|
785
785
|
|
786
|
-
##### [title](https://github.com/appium/ruby_lib/blob/
|
786
|
+
##### [title](https://github.com/appium/ruby_lib/blob/bc3da9bc1ee58d5e96811b72f3ed737ed0e9c401/lib/appium_lib/driver.rb#L697) common
|
787
787
|
|
788
788
|
> def title
|
789
789
|
|
@@ -791,7 +791,7 @@ Get the current window handle
|
|
791
791
|
|
792
792
|
--
|
793
793
|
|
794
|
-
##### [switch_to](https://github.com/appium/ruby_lib/blob/
|
794
|
+
##### [switch_to](https://github.com/appium/ruby_lib/blob/bc3da9bc1ee58d5e96811b72f3ed737ed0e9c401/lib/appium_lib/driver.rb#L703) common
|
795
795
|
|
796
796
|
> def switch_to
|
797
797
|
|
@@ -803,7 +803,7 @@ __Returns:__
|
|
803
803
|
|
804
804
|
--
|
805
805
|
|
806
|
-
##### [find_elements](https://github.com/appium/ruby_lib/blob/
|
806
|
+
##### [find_elements](https://github.com/appium/ruby_lib/blob/bc3da9bc1ee58d5e96811b72f3ed737ed0e9c401/lib/appium_lib/driver.rb#L730) common
|
807
807
|
|
808
808
|
> def find_elements(*args)
|
809
809
|
|
@@ -823,7 +823,7 @@ __Returns:__
|
|
823
823
|
|
824
824
|
--
|
825
825
|
|
826
|
-
##### [find_element](https://github.com/appium/ruby_lib/blob/
|
826
|
+
##### [find_element](https://github.com/appium/ruby_lib/blob/bc3da9bc1ee58d5e96811b72f3ed737ed0e9c401/lib/appium_lib/driver.rb#L746) common
|
827
827
|
|
828
828
|
> def find_element(*args)
|
829
829
|
|
@@ -841,7 +841,7 @@ __Returns:__
|
|
841
841
|
|
842
842
|
--
|
843
843
|
|
844
|
-
##### [find_element_by_image](https://github.com/appium/ruby_lib/blob/
|
844
|
+
##### [find_element_by_image](https://github.com/appium/ruby_lib/blob/bc3da9bc1ee58d5e96811b72f3ed737ed0e9c401/lib/appium_lib/driver.rb#L761) common
|
845
845
|
|
846
846
|
> def find_element_by_image(png_img_path)
|
847
847
|
|
@@ -857,7 +857,7 @@ __Returns:__
|
|
857
857
|
|
858
858
|
--
|
859
859
|
|
860
|
-
##### [find_elements_by_image](https://github.com/appium/ruby_lib/blob/
|
860
|
+
##### [find_elements_by_image](https://github.com/appium/ruby_lib/blob/bc3da9bc1ee58d5e96811b72f3ed737ed0e9c401/lib/appium_lib/driver.rb#L776) common
|
861
861
|
|
862
862
|
> def find_elements_by_image(png_img_paths)
|
863
863
|
|
@@ -873,7 +873,7 @@ __Returns:__
|
|
873
873
|
|
874
874
|
--
|
875
875
|
|
876
|
-
##### [set_location](https://github.com/appium/ruby_lib/blob/
|
876
|
+
##### [set_location](https://github.com/appium/ruby_lib/blob/bc3da9bc1ee58d5e96811b72f3ed737ed0e9c401/lib/appium_lib/driver.rb#L789) common
|
877
877
|
|
878
878
|
> def set_location(opts = {})
|
879
879
|
|
@@ -889,7 +889,50 @@ __Returns:__
|
|
889
889
|
|
890
890
|
--
|
891
891
|
|
892
|
-
##### [
|
892
|
+
##### [log_event](https://github.com/appium/ruby_lib/blob/bc3da9bc1ee58d5e96811b72f3ed737ed0e9c401/lib/appium_lib/driver.rb#L813) 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/bc3da9bc1ee58d5e96811b72f3ed737ed0e9c401/lib/appium_lib/driver.rb#L817) common
|
912
|
+
|
913
|
+
> def log_event=(log_event)
|
914
|
+
|
915
|
+
|
916
|
+
|
917
|
+
--
|
918
|
+
|
919
|
+
##### [log_events](https://github.com/appium/ruby_lib/blob/bc3da9bc1ee58d5e96811b72f3ed737ed0e9c401/lib/appium_lib/driver.rb#L834) 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/bc3da9bc1ee58d5e96811b72f3ed737ed0e9c401/lib/appium_lib/driver.rb#L841) common
|
893
936
|
|
894
937
|
> def x
|
895
938
|
|
@@ -902,7 +945,7 @@ __Returns:__
|
|
902
945
|
|
903
946
|
--
|
904
947
|
|
905
|
-
##### [username](https://github.com/appium/ruby_lib/blob/
|
948
|
+
##### [username](https://github.com/appium/ruby_lib/blob/bc3da9bc1ee58d5e96811b72f3ed737ed0e9c401/lib/appium_lib/sauce_labs.rb#L18) common
|
906
949
|
|
907
950
|
> def username
|
908
951
|
|
@@ -910,7 +953,7 @@ Username for use on Sauce Labs. Set `false` to disable Sauce, even when SAUCE_US
|
|
910
953
|
|
911
954
|
--
|
912
955
|
|
913
|
-
##### [access_key](https://github.com/appium/ruby_lib/blob/
|
956
|
+
##### [access_key](https://github.com/appium/ruby_lib/blob/bc3da9bc1ee58d5e96811b72f3ed737ed0e9c401/lib/appium_lib/sauce_labs.rb#L20) common
|
914
957
|
|
915
958
|
> def access_key
|
916
959
|
|
@@ -918,7 +961,7 @@ Access Key for use on Sauce Labs. Set `false` to disable Sauce, even when SAUCE_
|
|
918
961
|
|
919
962
|
--
|
920
963
|
|
921
|
-
##### [endpoint](https://github.com/appium/ruby_lib/blob/
|
964
|
+
##### [endpoint](https://github.com/appium/ruby_lib/blob/bc3da9bc1ee58d5e96811b72f3ed737ed0e9c401/lib/appium_lib/sauce_labs.rb#L22) common
|
922
965
|
|
923
966
|
> def endpoint
|
924
967
|
|
@@ -926,7 +969,7 @@ Override the Sauce Appium endpoint to allow e.g. TestObject tests. Default is 'o
|
|
926
969
|
|
927
970
|
--
|
928
971
|
|
929
|
-
##### [initialize](https://github.com/appium/ruby_lib/blob/
|
972
|
+
##### [initialize](https://github.com/appium/ruby_lib/blob/bc3da9bc1ee58d5e96811b72f3ed737ed0e9c401/lib/appium_lib/sauce_labs.rb#L47) common
|
930
973
|
|
931
974
|
> def initialize(appium_lib_opts)
|
932
975
|
|
@@ -942,7 +985,7 @@ __Returns:__
|
|
942
985
|
|
943
986
|
--
|
944
987
|
|
945
|
-
##### [sauce_server_url?](https://github.com/appium/ruby_lib/blob/
|
988
|
+
##### [sauce_server_url?](https://github.com/appium/ruby_lib/blob/bc3da9bc1ee58d5e96811b72f3ed737ed0e9c401/lib/appium_lib/sauce_labs.rb#L67) common
|
946
989
|
|
947
990
|
> def sauce_server_url?
|
948
991
|
|
@@ -954,7 +997,7 @@ __Returns:__
|
|
954
997
|
|
955
998
|
--
|
956
999
|
|
957
|
-
##### [server_url](https://github.com/appium/ruby_lib/blob/
|
1000
|
+
##### [server_url](https://github.com/appium/ruby_lib/blob/bc3da9bc1ee58d5e96811b72f3ed737ed0e9c401/lib/appium_lib/sauce_labs.rb#L80) common
|
958
1001
|
|
959
1002
|
> def server_url
|
960
1003
|
|
@@ -966,7 +1009,7 @@ __Returns:__
|
|
966
1009
|
|
967
1010
|
--
|
968
1011
|
|
969
|
-
##### [get_log](https://github.com/appium/ruby_lib/blob/
|
1012
|
+
##### [get_log](https://github.com/appium/ruby_lib/blob/bc3da9bc1ee58d5e96811b72f3ed737ed0e9c401/lib/appium_lib/common/log.rb#L25) common
|
970
1013
|
|
971
1014
|
> def get_log(type)
|
972
1015
|
|
@@ -982,7 +1025,7 @@ __Returns:__
|
|
982
1025
|
|
983
1026
|
--
|
984
1027
|
|
985
|
-
##### [get_available_log_types](https://github.com/appium/ruby_lib/blob/
|
1028
|
+
##### [get_available_log_types](https://github.com/appium/ruby_lib/blob/bc3da9bc1ee58d5e96811b72f3ed737ed0e9c401/lib/appium_lib/common/log.rb#L37) common
|
986
1029
|
|
987
1030
|
> def get_available_log_types
|
988
1031
|
|
@@ -994,7 +1037,7 @@ __Returns:__
|
|
994
1037
|
|
995
1038
|
--
|
996
1039
|
|
997
|
-
##### [wait_true](https://github.com/appium/ruby_lib/blob/
|
1040
|
+
##### [wait_true](https://github.com/appium/ruby_lib/blob/bc3da9bc1ee58d5e96811b72f3ed737ed0e9c401/lib/appium_lib/common/wait.rb#L44) common
|
998
1041
|
|
999
1042
|
> def wait_true(opts = {})
|
1000
1043
|
|
@@ -1014,7 +1057,7 @@ __Parameters:__
|
|
1014
1057
|
|
1015
1058
|
--
|
1016
1059
|
|
1017
|
-
##### [wait](https://github.com/appium/ruby_lib/blob/
|
1060
|
+
##### [wait](https://github.com/appium/ruby_lib/blob/bc3da9bc1ee58d5e96811b72f3ed737ed0e9c401/lib/appium_lib/common/wait.rb#L73) common
|
1018
1061
|
|
1019
1062
|
> def wait(opts = {})
|
1020
1063
|
|
@@ -1032,7 +1075,7 @@ __Parameters:__
|
|
1032
1075
|
|
1033
1076
|
--
|
1034
1077
|
|
1035
|
-
##### [add_touch_actions](https://github.com/appium/ruby_lib/blob/
|
1078
|
+
##### [add_touch_actions](https://github.com/appium/ruby_lib/blob/bc3da9bc1ee58d5e96811b72f3ed737ed0e9c401/lib/appium_lib/common/device.rb#L26) common
|
1036
1079
|
|
1037
1080
|
> def add_touch_actions
|
1038
1081
|
|
@@ -1040,7 +1083,7 @@ __Parameters:__
|
|
1040
1083
|
|
1041
1084
|
--
|
1042
1085
|
|
1043
|
-
##### [delegate_from_appium_driver](https://github.com/appium/ruby_lib/blob/
|
1086
|
+
##### [delegate_from_appium_driver](https://github.com/appium/ruby_lib/blob/bc3da9bc1ee58d5e96811b72f3ed737ed0e9c401/lib/appium_lib/common/device.rb#L38) common
|
1044
1087
|
|
1045
1088
|
> def delegate_from_appium_driver(method, delegation_target)
|
1046
1089
|
|
@@ -1048,7 +1091,7 @@ __Parameters:__
|
|
1048
1091
|
|
1049
1092
|
--
|
1050
1093
|
|
1051
|
-
##### [ignore](https://github.com/appium/ruby_lib/blob/
|
1094
|
+
##### [ignore](https://github.com/appium/ruby_lib/blob/bc3da9bc1ee58d5e96811b72f3ed737ed0e9c401/lib/appium_lib/common/helper.rb#L30) common
|
1052
1095
|
|
1053
1096
|
> def ignore
|
1054
1097
|
|
@@ -1056,7 +1099,7 @@ Return yield and ignore any exceptions.
|
|
1056
1099
|
|
1057
1100
|
--
|
1058
1101
|
|
1059
|
-
##### [back](https://github.com/appium/ruby_lib/blob/
|
1102
|
+
##### [back](https://github.com/appium/ruby_lib/blob/bc3da9bc1ee58d5e96811b72f3ed737ed0e9c401/lib/appium_lib/common/helper.rb#L38) common
|
1060
1103
|
|
1061
1104
|
> def back
|
1062
1105
|
|
@@ -1068,7 +1111,7 @@ __Returns:__
|
|
1068
1111
|
|
1069
1112
|
--
|
1070
1113
|
|
1071
|
-
##### [session_id](https://github.com/appium/ruby_lib/blob/
|
1114
|
+
##### [session_id](https://github.com/appium/ruby_lib/blob/bc3da9bc1ee58d5e96811b72f3ed737ed0e9c401/lib/appium_lib/common/helper.rb#L49) common
|
1072
1115
|
|
1073
1116
|
> def session_id
|
1074
1117
|
|
@@ -1080,7 +1123,7 @@ __Returns:__
|
|
1080
1123
|
|
1081
1124
|
--
|
1082
1125
|
|
1083
|
-
##### [xpath](https://github.com/appium/ruby_lib/blob/
|
1126
|
+
##### [xpath](https://github.com/appium/ruby_lib/blob/bc3da9bc1ee58d5e96811b72f3ed737ed0e9c401/lib/appium_lib/common/helper.rb#L57) common
|
1084
1127
|
|
1085
1128
|
> def xpath(xpath_str)
|
1086
1129
|
|
@@ -1096,7 +1139,7 @@ __Returns:__
|
|
1096
1139
|
|
1097
1140
|
--
|
1098
1141
|
|
1099
|
-
##### [xpaths](https://github.com/appium/ruby_lib/blob/
|
1142
|
+
##### [xpaths](https://github.com/appium/ruby_lib/blob/bc3da9bc1ee58d5e96811b72f3ed737ed0e9c401/lib/appium_lib/common/helper.rb#L65) common
|
1100
1143
|
|
1101
1144
|
> def xpaths(xpath_str)
|
1102
1145
|
|
@@ -1112,19 +1155,19 @@ __Returns:__
|
|
1112
1155
|
|
1113
1156
|
--
|
1114
1157
|
|
1115
|
-
##### [result](https://github.com/appium/ruby_lib/blob/
|
1158
|
+
##### [result](https://github.com/appium/ruby_lib/blob/bc3da9bc1ee58d5e96811b72f3ed737ed0e9c401/lib/appium_lib/common/helper.rb#L75) common
|
1116
1159
|
|
1117
1160
|
> def result
|
1118
1161
|
|
1119
|
-
Returns the value of attribute result
|
1162
|
+
Returns the value of attribute result.
|
1120
1163
|
|
1121
1164
|
--
|
1122
1165
|
|
1123
|
-
##### [initialize](https://github.com/appium/ruby_lib/blob/
|
1166
|
+
##### [initialize](https://github.com/appium/ruby_lib/blob/bc3da9bc1ee58d5e96811b72f3ed737ed0e9c401/lib/appium_lib/common/helper.rb#L77) common
|
1124
1167
|
|
1125
1168
|
> def initialize(platform)
|
1126
1169
|
|
1127
|
-
|
1170
|
+
rubocop:disable Lint/MissingSuper
|
1128
1171
|
|
1129
1172
|
__Returns:__
|
1130
1173
|
|
@@ -1132,7 +1175,7 @@ __Returns:__
|
|
1132
1175
|
|
1133
1176
|
--
|
1134
1177
|
|
1135
|
-
##### [reset](https://github.com/appium/ruby_lib/blob/
|
1178
|
+
##### [reset](https://github.com/appium/ruby_lib/blob/bc3da9bc1ee58d5e96811b72f3ed737ed0e9c401/lib/appium_lib/common/helper.rb#L82) common
|
1136
1179
|
|
1137
1180
|
> def reset
|
1138
1181
|
|
@@ -1140,7 +1183,7 @@ __Returns:__
|
|
1140
1183
|
|
1141
1184
|
--
|
1142
1185
|
|
1143
|
-
##### [start_element](https://github.com/appium/ruby_lib/blob/
|
1186
|
+
##### [start_element](https://github.com/appium/ruby_lib/blob/bc3da9bc1ee58d5e96811b72f3ed737ed0e9c401/lib/appium_lib/common/helper.rb#L87) common
|
1144
1187
|
|
1145
1188
|
> def start_element(name, attrs = [])
|
1146
1189
|
|
@@ -1148,7 +1191,7 @@ http://nokogiri.org/Nokogiri/XML/SAX/Document.html
|
|
1148
1191
|
|
1149
1192
|
--
|
1150
1193
|
|
1151
|
-
##### [formatted_result](https://github.com/appium/ruby_lib/blob/
|
1194
|
+
##### [formatted_result](https://github.com/appium/ruby_lib/blob/bc3da9bc1ee58d5e96811b72f3ed737ed0e9c401/lib/appium_lib/common/helper.rb#L98) common
|
1152
1195
|
|
1153
1196
|
> def formatted_result
|
1154
1197
|
|
@@ -1156,7 +1199,7 @@ http://nokogiri.org/Nokogiri/XML/SAX/Document.html
|
|
1156
1199
|
|
1157
1200
|
--
|
1158
1201
|
|
1159
|
-
##### [get_page_class](https://github.com/appium/ruby_lib/blob/
|
1202
|
+
##### [get_page_class](https://github.com/appium/ruby_lib/blob/bc3da9bc1ee58d5e96811b72f3ed737ed0e9c401/lib/appium_lib/common/helper.rb#L116) common
|
1160
1203
|
|
1161
1204
|
> def get_page_class
|
1162
1205
|
|
@@ -1168,7 +1211,7 @@ __Returns:__
|
|
1168
1211
|
|
1169
1212
|
--
|
1170
1213
|
|
1171
|
-
##### [page_class](https://github.com/appium/ruby_lib/blob/
|
1214
|
+
##### [page_class](https://github.com/appium/ruby_lib/blob/bc3da9bc1ee58d5e96811b72f3ed737ed0e9c401/lib/appium_lib/common/helper.rb#L141) common
|
1172
1215
|
|
1173
1216
|
> def page_class
|
1174
1217
|
|
@@ -1181,7 +1224,7 @@ __Returns:__
|
|
1181
1224
|
|
1182
1225
|
--
|
1183
1226
|
|
1184
|
-
##### [source](https://github.com/appium/ruby_lib/blob/
|
1227
|
+
##### [source](https://github.com/appium/ruby_lib/blob/bc3da9bc1ee58d5e96811b72f3ed737ed0e9c401/lib/appium_lib/common/helper.rb#L148) common
|
1185
1228
|
|
1186
1229
|
> def source
|
1187
1230
|
|
@@ -1193,7 +1236,7 @@ __Returns:__
|
|
1193
1236
|
|
1194
1237
|
--
|
1195
1238
|
|
1196
|
-
##### [get_source](https://github.com/appium/ruby_lib/blob/
|
1239
|
+
##### [get_source](https://github.com/appium/ruby_lib/blob/bc3da9bc1ee58d5e96811b72f3ed737ed0e9c401/lib/appium_lib/common/helper.rb#L155) common
|
1197
1240
|
|
1198
1241
|
> def get_source
|
1199
1242
|
|
@@ -1206,7 +1249,7 @@ __Returns:__
|
|
1206
1249
|
|
1207
1250
|
--
|
1208
1251
|
|
1209
|
-
##### [px_to_window_rel](https://github.com/appium/ruby_lib/blob/
|
1252
|
+
##### [px_to_window_rel](https://github.com/appium/ruby_lib/blob/bc3da9bc1ee58d5e96811b72f3ed737ed0e9c401/lib/appium_lib/common/helper.rb#L165) common
|
1210
1253
|
|
1211
1254
|
> def px_to_window_rel(opts = {}, driver = $driver)
|
1212
1255
|
|
@@ -1214,7 +1257,7 @@ Converts pixel values to window relative values
|
|
1214
1257
|
|
1215
1258
|
--
|
1216
1259
|
|
1217
|
-
##### [xml_keys](https://github.com/appium/ruby_lib/blob/
|
1260
|
+
##### [xml_keys](https://github.com/appium/ruby_lib/blob/bc3da9bc1ee58d5e96811b72f3ed737ed0e9c401/lib/appium_lib/common/helper.rb#L184) common
|
1218
1261
|
|
1219
1262
|
> def xml_keys(target)
|
1220
1263
|
|
@@ -1230,7 +1273,7 @@ __Returns:__
|
|
1230
1273
|
|
1231
1274
|
--
|
1232
1275
|
|
1233
|
-
##### [xml_values](https://github.com/appium/ruby_lib/blob/
|
1276
|
+
##### [xml_values](https://github.com/appium/ruby_lib/blob/bc3da9bc1ee58d5e96811b72f3ed737ed0e9c401/lib/appium_lib/common/helper.rb#L192) common
|
1234
1277
|
|
1235
1278
|
> def xml_values(target)
|
1236
1279
|
|
@@ -1246,7 +1289,7 @@ __Returns:__
|
|
1246
1289
|
|
1247
1290
|
--
|
1248
1291
|
|
1249
|
-
##### [resolve_id](https://github.com/appium/ruby_lib/blob/
|
1292
|
+
##### [resolve_id](https://github.com/appium/ruby_lib/blob/bc3da9bc1ee58d5e96811b72f3ed737ed0e9c401/lib/appium_lib/common/helper.rb#L200) common
|
1250
1293
|
|
1251
1294
|
> def resolve_id(id)
|
1252
1295
|
|
@@ -1262,15 +1305,15 @@ __Returns:__
|
|
1262
1305
|
|
1263
1306
|
--
|
1264
1307
|
|
1265
|
-
##### [filter](https://github.com/appium/ruby_lib/blob/
|
1308
|
+
##### [filter](https://github.com/appium/ruby_lib/blob/bc3da9bc1ee58d5e96811b72f3ed737ed0e9c401/lib/appium_lib/common/helper.rb#L207) common
|
1266
1309
|
|
1267
1310
|
> def filter
|
1268
1311
|
|
1269
|
-
Returns the value of attribute filter
|
1312
|
+
Returns the value of attribute filter.
|
1270
1313
|
|
1271
1314
|
--
|
1272
1315
|
|
1273
|
-
##### [filter=](https://github.com/appium/ruby_lib/blob/
|
1316
|
+
##### [filter=](https://github.com/appium/ruby_lib/blob/bc3da9bc1ee58d5e96811b72f3ed737ed0e9c401/lib/appium_lib/common/helper.rb#L210) common
|
1274
1317
|
|
1275
1318
|
> def filter=(value)
|
1276
1319
|
|
@@ -1278,11 +1321,11 @@ convert to string to support symbols
|
|
1278
1321
|
|
1279
1322
|
--
|
1280
1323
|
|
1281
|
-
##### [initialize](https://github.com/appium/ruby_lib/blob/
|
1324
|
+
##### [initialize](https://github.com/appium/ruby_lib/blob/bc3da9bc1ee58d5e96811b72f3ed737ed0e9c401/lib/appium_lib/common/helper.rb#L217) common
|
1282
1325
|
|
1283
1326
|
> def initialize
|
1284
1327
|
|
1285
|
-
|
1328
|
+
rubocop:disable Lint/MissingSuper
|
1286
1329
|
|
1287
1330
|
__Returns:__
|
1288
1331
|
|
@@ -1290,7 +1333,7 @@ __Returns:__
|
|
1290
1333
|
|
1291
1334
|
--
|
1292
1335
|
|
1293
|
-
##### [reset](https://github.com/appium/ruby_lib/blob/
|
1336
|
+
##### [reset](https://github.com/appium/ruby_lib/blob/bc3da9bc1ee58d5e96811b72f3ed737ed0e9c401/lib/appium_lib/common/helper.rb#L222) common
|
1294
1337
|
|
1295
1338
|
> def reset
|
1296
1339
|
|
@@ -1298,7 +1341,7 @@ __Returns:__
|
|
1298
1341
|
|
1299
1342
|
--
|
1300
1343
|
|
1301
|
-
##### [result](https://github.com/appium/ruby_lib/blob/
|
1344
|
+
##### [result](https://github.com/appium/ruby_lib/blob/bc3da9bc1ee58d5e96811b72f3ed737ed0e9c401/lib/appium_lib/common/helper.rb#L228) common
|
1302
1345
|
|
1303
1346
|
> def result
|
1304
1347
|
|
@@ -1306,7 +1349,7 @@ __Returns:__
|
|
1306
1349
|
|
1307
1350
|
--
|
1308
1351
|
|
1309
|
-
##### [start_element](https://github.com/appium/ruby_lib/blob/
|
1352
|
+
##### [start_element](https://github.com/appium/ruby_lib/blob/bc3da9bc1ee58d5e96811b72f3ed737ed0e9c401/lib/appium_lib/common/helper.rb#L242) common
|
1310
1353
|
|
1311
1354
|
> def start_element(name, attrs = [])
|
1312
1355
|
|
@@ -1314,7 +1357,7 @@ __Returns:__
|
|
1314
1357
|
|
1315
1358
|
--
|
1316
1359
|
|
1317
|
-
##### [end_element](https://github.com/appium/ruby_lib/blob/
|
1360
|
+
##### [end_element](https://github.com/appium/ruby_lib/blob/bc3da9bc1ee58d5e96811b72f3ed737ed0e9c401/lib/appium_lib/common/helper.rb#L252) common
|
1318
1361
|
|
1319
1362
|
> def end_element(name)
|
1320
1363
|
|
@@ -1322,7 +1365,7 @@ __Returns:__
|
|
1322
1365
|
|
1323
1366
|
--
|
1324
1367
|
|
1325
|
-
##### [characters](https://github.com/appium/ruby_lib/blob/
|
1368
|
+
##### [characters](https://github.com/appium/ruby_lib/blob/bc3da9bc1ee58d5e96811b72f3ed737ed0e9c401/lib/appium_lib/common/helper.rb#L259) common
|
1326
1369
|
|
1327
1370
|
> def characters(chars)
|
1328
1371
|
|
@@ -1330,15 +1373,7 @@ __Returns:__
|
|
1330
1373
|
|
1331
1374
|
--
|
1332
1375
|
|
1333
|
-
##### [
|
1334
|
-
|
1335
|
-
> DEFAULT_HEADERS = { 'Accept' => CONTENT_TYPE, 'User-Agent' => "appium/ruby_lib/#{::Appium::VERSION}" }.freeze
|
1336
|
-
|
1337
|
-
Default HTTP client inherit Appium::Core::Base::Http::Default, but has different DEFAULT_HEADERS
|
1338
|
-
|
1339
|
-
--
|
1340
|
-
|
1341
|
-
##### [pinch](https://github.com/appium/ruby_lib/blob/954a3a8d4d5cd56fa5a4e80d021805759dbf5e10/lib/appium_lib/common/multi_touch.rb#L65) common
|
1376
|
+
##### [pinch](https://github.com/appium/ruby_lib/blob/bc3da9bc1ee58d5e96811b72f3ed737ed0e9c401/lib/appium_lib/common/multi_touch.rb#L65) common
|
1342
1377
|
|
1343
1378
|
> def pinch(percentage = 25, auto_perform = true, driver = $driver)
|
1344
1379
|
|
@@ -1358,7 +1393,7 @@ __Parameters:__
|
|
1358
1393
|
|
1359
1394
|
--
|
1360
1395
|
|
1361
|
-
##### [zoom](https://github.com/appium/ruby_lib/blob/
|
1396
|
+
##### [zoom](https://github.com/appium/ruby_lib/blob/bc3da9bc1ee58d5e96811b72f3ed737ed0e9c401/lib/appium_lib/common/multi_touch.rb#L108) common
|
1362
1397
|
|
1363
1398
|
> def zoom(percentage = 200, auto_perform = true, driver = $driver)
|
1364
1399
|
|
@@ -1378,7 +1413,7 @@ __Parameters:__
|
|
1378
1413
|
|
1379
1414
|
--
|
1380
1415
|
|
1381
|
-
##### [initialize](https://github.com/appium/ruby_lib/blob/
|
1416
|
+
##### [initialize](https://github.com/appium/ruby_lib/blob/bc3da9bc1ee58d5e96811b72f3ed737ed0e9c401/lib/appium_lib/common/multi_touch.rb#L194) common
|
1382
1417
|
|
1383
1418
|
> def initialize(driver = $driver)
|
1384
1419
|
|
@@ -1390,15 +1425,7 @@ __Returns:__
|
|
1390
1425
|
|
1391
1426
|
--
|
1392
1427
|
|
1393
|
-
##### [
|
1394
|
-
|
1395
|
-
> COMPLEX_ACTIONS = ::Appium::Core::TouchAction::COMPLEX_ACTIONS
|
1396
|
-
|
1397
|
-
|
1398
|
-
|
1399
|
-
--
|
1400
|
-
|
1401
|
-
##### [initialize](https://github.com/appium/ruby_lib/blob/954a3a8d4d5cd56fa5a4e80d021805759dbf5e10/lib/appium_lib/common/touch_actions.rb#L62) common
|
1428
|
+
##### [initialize](https://github.com/appium/ruby_lib/blob/bc3da9bc1ee58d5e96811b72f3ed737ed0e9c401/lib/appium_lib/common/touch_actions.rb#L62) common
|
1402
1429
|
|
1403
1430
|
> def initialize(driver = $driver)
|
1404
1431
|
|
@@ -1410,7 +1437,7 @@ __Returns:__
|
|
1410
1437
|
|
1411
1438
|
--
|
1412
1439
|
|
1413
|
-
##### [swipe](https://github.com/appium/ruby_lib/blob/
|
1440
|
+
##### [swipe](https://github.com/appium/ruby_lib/blob/bc3da9bc1ee58d5e96811b72f3ed737ed0e9c401/lib/appium_lib/common/touch_actions.rb#L66) common
|
1414
1441
|
|
1415
1442
|
> def swipe(opts)
|
1416
1443
|
|
@@ -1418,7 +1445,7 @@ __Returns:__
|
|
1418
1445
|
|
1419
1446
|
--
|
1420
1447
|
|
1421
|
-
##### [initialize](https://github.com/appium/ruby_lib/blob/
|
1448
|
+
##### [initialize](https://github.com/appium/ruby_lib/blob/bc3da9bc1ee58d5e96811b72f3ed737ed0e9c401/lib/appium_lib/common/command/ws_logcat.rb#L19) common
|
1422
1449
|
|
1423
1450
|
> def initialize(url:, output_file: 'logcat.log')
|
1424
1451
|
|
@@ -1430,7 +1457,7 @@ __Returns:__
|
|
1430
1457
|
|
1431
1458
|
--
|
1432
1459
|
|
1433
|
-
##### [handle_message_data](https://github.com/appium/ruby_lib/blob/
|
1460
|
+
##### [handle_message_data](https://github.com/appium/ruby_lib/blob/bc3da9bc1ee58d5e96811b72f3ed737ed0e9c401/lib/appium_lib/common/command/ws_logcat.rb#L24) common
|
1434
1461
|
|
1435
1462
|
> def handle_message_data(data)
|
1436
1463
|
|
@@ -1438,31 +1465,15 @@ __Returns:__
|
|
1438
1465
|
|
1439
1466
|
--
|
1440
1467
|
|
1441
|
-
##### [for](https://github.com/appium/ruby_lib/blob/
|
1468
|
+
##### [for](https://github.com/appium/ruby_lib/blob/bc3da9bc1ee58d5e96811b72f3ed737ed0e9c401/lib/appium_lib/android/android.rb#L33) android
|
1442
1469
|
|
1443
|
-
> def
|
1470
|
+
> def for(target)
|
1444
1471
|
|
1445
1472
|
|
1446
1473
|
|
1447
1474
|
--
|
1448
1475
|
|
1449
|
-
##### [
|
1450
|
-
|
1451
|
-
> TEXT_VIEW = 'android.widget.TextView'
|
1452
|
-
|
1453
|
-
|
1454
|
-
|
1455
|
-
--
|
1456
|
-
|
1457
|
-
##### [TextView](https://github.com/appium/ruby_lib/blob/954a3a8d4d5cd56fa5a4e80d021805759dbf5e10/lib/appium_lib/android/element/text.rb#L19) android
|
1458
|
-
|
1459
|
-
> TextView = TEXT_VIEW
|
1460
|
-
|
1461
|
-
|
1462
|
-
|
1463
|
-
--
|
1464
|
-
|
1465
|
-
##### [text](https://github.com/appium/ruby_lib/blob/954a3a8d4d5cd56fa5a4e80d021805759dbf5e10/lib/appium_lib/android/element/text.rb#L25) android
|
1476
|
+
##### [text](https://github.com/appium/ruby_lib/blob/bc3da9bc1ee58d5e96811b72f3ed737ed0e9c401/lib/appium_lib/android/element/text.rb#L25) android
|
1466
1477
|
|
1467
1478
|
> def text(value)
|
1468
1479
|
|
@@ -1479,7 +1490,7 @@ __Returns:__
|
|
1479
1490
|
|
1480
1491
|
--
|
1481
1492
|
|
1482
|
-
##### [texts](https://github.com/appium/ruby_lib/blob/
|
1493
|
+
##### [texts](https://github.com/appium/ruby_lib/blob/bc3da9bc1ee58d5e96811b72f3ed737ed0e9c401/lib/appium_lib/android/element/text.rb#L35) android
|
1483
1494
|
|
1484
1495
|
> def texts(value = false)
|
1485
1496
|
|
@@ -1496,7 +1507,7 @@ __Returns:__
|
|
1496
1507
|
|
1497
1508
|
--
|
1498
1509
|
|
1499
|
-
##### [first_text](https://github.com/appium/ruby_lib/blob/
|
1510
|
+
##### [first_text](https://github.com/appium/ruby_lib/blob/bc3da9bc1ee58d5e96811b72f3ed737ed0e9c401/lib/appium_lib/android/element/text.rb#L43) android
|
1500
1511
|
|
1501
1512
|
> def first_text
|
1502
1513
|
|
@@ -1508,7 +1519,7 @@ __Returns:__
|
|
1508
1519
|
|
1509
1520
|
--
|
1510
1521
|
|
1511
|
-
##### [last_text](https://github.com/appium/ruby_lib/blob/
|
1522
|
+
##### [last_text](https://github.com/appium/ruby_lib/blob/bc3da9bc1ee58d5e96811b72f3ed737ed0e9c401/lib/appium_lib/android/element/text.rb#L49) android
|
1512
1523
|
|
1513
1524
|
> def last_text
|
1514
1525
|
|
@@ -1520,7 +1531,7 @@ __Returns:__
|
|
1520
1531
|
|
1521
1532
|
--
|
1522
1533
|
|
1523
|
-
##### [text_exact](https://github.com/appium/ruby_lib/blob/
|
1534
|
+
##### [text_exact](https://github.com/appium/ruby_lib/blob/bc3da9bc1ee58d5e96811b72f3ed737ed0e9c401/lib/appium_lib/android/element/text.rb#L56) android
|
1524
1535
|
|
1525
1536
|
> def text_exact(value)
|
1526
1537
|
|
@@ -1536,7 +1547,7 @@ __Returns:__
|
|
1536
1547
|
|
1537
1548
|
--
|
1538
1549
|
|
1539
|
-
##### [texts_exact](https://github.com/appium/ruby_lib/blob/
|
1550
|
+
##### [texts_exact](https://github.com/appium/ruby_lib/blob/bc3da9bc1ee58d5e96811b72f3ed737ed0e9c401/lib/appium_lib/android/element/text.rb#L63) android
|
1540
1551
|
|
1541
1552
|
> def texts_exact(value)
|
1542
1553
|
|
@@ -1552,31 +1563,31 @@ __Returns:__
|
|
1552
1563
|
|
1553
1564
|
--
|
1554
1565
|
|
1555
|
-
##### [result](https://github.com/appium/ruby_lib/blob/
|
1566
|
+
##### [result](https://github.com/appium/ruby_lib/blob/bc3da9bc1ee58d5e96811b72f3ed737ed0e9c401/lib/appium_lib/android/common/helper.rb#L20) android
|
1556
1567
|
|
1557
1568
|
> def result
|
1558
1569
|
|
1559
|
-
Returns the value of attribute result
|
1570
|
+
Returns the value of attribute result.
|
1560
1571
|
|
1561
1572
|
--
|
1562
1573
|
|
1563
|
-
##### [keys](https://github.com/appium/ruby_lib/blob/
|
1574
|
+
##### [keys](https://github.com/appium/ruby_lib/blob/bc3da9bc1ee58d5e96811b72f3ed737ed0e9c401/lib/appium_lib/android/common/helper.rb#L20) android
|
1564
1575
|
|
1565
1576
|
> def keys
|
1566
1577
|
|
1567
|
-
Returns the value of attribute keys
|
1578
|
+
Returns the value of attribute keys.
|
1568
1579
|
|
1569
1580
|
--
|
1570
1581
|
|
1571
|
-
##### [filter](https://github.com/appium/ruby_lib/blob/
|
1582
|
+
##### [filter](https://github.com/appium/ruby_lib/blob/bc3da9bc1ee58d5e96811b72f3ed737ed0e9c401/lib/appium_lib/android/common/helper.rb#L20) android
|
1572
1583
|
|
1573
1584
|
> def filter
|
1574
1585
|
|
1575
|
-
Returns the value of attribute filter
|
1586
|
+
Returns the value of attribute filter.
|
1576
1587
|
|
1577
1588
|
--
|
1578
1589
|
|
1579
|
-
##### [filter=](https://github.com/appium/ruby_lib/blob/
|
1590
|
+
##### [filter=](https://github.com/appium/ruby_lib/blob/bc3da9bc1ee58d5e96811b72f3ed737ed0e9c401/lib/appium_lib/android/common/helper.rb#L23) android
|
1580
1591
|
|
1581
1592
|
> def filter=(value)
|
1582
1593
|
|
@@ -1584,11 +1595,11 @@ convert to string to support symbols
|
|
1584
1595
|
|
1585
1596
|
--
|
1586
1597
|
|
1587
|
-
##### [initialize](https://github.com/appium/ruby_lib/blob/
|
1598
|
+
##### [initialize](https://github.com/appium/ruby_lib/blob/bc3da9bc1ee58d5e96811b72f3ed737ed0e9c401/lib/appium_lib/android/common/helper.rb#L30) android
|
1588
1599
|
|
1589
1600
|
> def initialize
|
1590
1601
|
|
1591
|
-
|
1602
|
+
rubocop:disable Lint/MissingSuper
|
1592
1603
|
|
1593
1604
|
__Returns:__
|
1594
1605
|
|
@@ -1596,7 +1607,7 @@ __Returns:__
|
|
1596
1607
|
|
1597
1608
|
--
|
1598
1609
|
|
1599
|
-
##### [reset](https://github.com/appium/ruby_lib/blob/
|
1610
|
+
##### [reset](https://github.com/appium/ruby_lib/blob/bc3da9bc1ee58d5e96811b72f3ed737ed0e9c401/lib/appium_lib/android/common/helper.rb#L35) android
|
1600
1611
|
|
1601
1612
|
> def reset
|
1602
1613
|
|
@@ -1604,7 +1615,7 @@ __Returns:__
|
|
1604
1615
|
|
1605
1616
|
--
|
1606
1617
|
|
1607
|
-
##### [start_element](https://github.com/appium/ruby_lib/blob/
|
1618
|
+
##### [start_element](https://github.com/appium/ruby_lib/blob/bc3da9bc1ee58d5e96811b72f3ed737ed0e9c401/lib/appium_lib/android/common/helper.rb#L41) android
|
1608
1619
|
|
1609
1620
|
> def start_element(name, attrs = [], driver = $driver)
|
1610
1621
|
|
@@ -1612,7 +1623,7 @@ http://nokogiri.org/Nokogiri/XML/SAX/Document.html
|
|
1612
1623
|
|
1613
1624
|
--
|
1614
1625
|
|
1615
|
-
##### [get_android_inspect](https://github.com/appium/ruby_lib/blob/
|
1626
|
+
##### [get_android_inspect](https://github.com/appium/ruby_lib/blob/bc3da9bc1ee58d5e96811b72f3ed737ed0e9c401/lib/appium_lib/android/common/helper.rb#L95) android
|
1616
1627
|
|
1617
1628
|
> def get_android_inspect(class_name = false)
|
1618
1629
|
|
@@ -1631,7 +1642,7 @@ __Returns:__
|
|
1631
1642
|
|
1632
1643
|
--
|
1633
1644
|
|
1634
|
-
##### [page](https://github.com/appium/ruby_lib/blob/
|
1645
|
+
##### [page](https://github.com/appium/ruby_lib/blob/bc3da9bc1ee58d5e96811b72f3ed737ed0e9c401/lib/appium_lib/android/common/helper.rb#L121) android
|
1635
1646
|
|
1636
1647
|
> def page(opts = {})
|
1637
1648
|
|
@@ -1650,7 +1661,7 @@ __Returns:__
|
|
1650
1661
|
|
1651
1662
|
--
|
1652
1663
|
|
1653
|
-
##### [id](https://github.com/appium/ruby_lib/blob/
|
1664
|
+
##### [id](https://github.com/appium/ruby_lib/blob/bc3da9bc1ee58d5e96811b72f3ed737ed0e9c401/lib/appium_lib/android/common/helper.rb#L130) android
|
1654
1665
|
|
1655
1666
|
> def id(id)
|
1656
1667
|
|
@@ -1666,7 +1677,7 @@ __Returns:__
|
|
1666
1677
|
|
1667
1678
|
--
|
1668
1679
|
|
1669
|
-
##### [ids](https://github.com/appium/ruby_lib/blob/
|
1680
|
+
##### [ids](https://github.com/appium/ruby_lib/blob/bc3da9bc1ee58d5e96811b72f3ed737ed0e9c401/lib/appium_lib/android/common/helper.rb#L138) android
|
1670
1681
|
|
1671
1682
|
> def ids(id)
|
1672
1683
|
|
@@ -1682,7 +1693,7 @@ __Returns:__
|
|
1682
1693
|
|
1683
1694
|
--
|
1684
1695
|
|
1685
|
-
##### [ele_index](https://github.com/appium/ruby_lib/blob/
|
1696
|
+
##### [ele_index](https://github.com/appium/ruby_lib/blob/bc3da9bc1ee58d5e96811b72f3ed737ed0e9c401/lib/appium_lib/android/common/helper.rb#L147) android
|
1686
1697
|
|
1687
1698
|
> def ele_index(class_name, index)
|
1688
1699
|
|
@@ -1700,7 +1711,7 @@ __Returns:__
|
|
1700
1711
|
|
1701
1712
|
--
|
1702
1713
|
|
1703
|
-
##### [first_ele](https://github.com/appium/ruby_lib/blob/
|
1714
|
+
##### [first_ele](https://github.com/appium/ruby_lib/blob/bc3da9bc1ee58d5e96811b72f3ed737ed0e9c401/lib/appium_lib/android/common/helper.rb#L166) android
|
1704
1715
|
|
1705
1716
|
> def first_ele(class_name)
|
1706
1717
|
|
@@ -1716,7 +1727,7 @@ __Returns:__
|
|
1716
1727
|
|
1717
1728
|
--
|
1718
1729
|
|
1719
|
-
##### [last_ele](https://github.com/appium/ruby_lib/blob/
|
1730
|
+
##### [last_ele](https://github.com/appium/ruby_lib/blob/bc3da9bc1ee58d5e96811b72f3ed737ed0e9c401/lib/appium_lib/android/common/helper.rb#L173) android
|
1720
1731
|
|
1721
1732
|
> def last_ele(class_name)
|
1722
1733
|
|
@@ -1732,7 +1743,7 @@ __Returns:__
|
|
1732
1743
|
|
1733
1744
|
--
|
1734
1745
|
|
1735
|
-
##### [tag](https://github.com/appium/ruby_lib/blob/
|
1746
|
+
##### [tag](https://github.com/appium/ruby_lib/blob/bc3da9bc1ee58d5e96811b72f3ed737ed0e9c401/lib/appium_lib/android/common/helper.rb#L181) android
|
1736
1747
|
|
1737
1748
|
> def tag(class_name)
|
1738
1749
|
|
@@ -1748,7 +1759,7 @@ __Returns:__
|
|
1748
1759
|
|
1749
1760
|
--
|
1750
1761
|
|
1751
|
-
##### [tags](https://github.com/appium/ruby_lib/blob/
|
1762
|
+
##### [tags](https://github.com/appium/ruby_lib/blob/bc3da9bc1ee58d5e96811b72f3ed737ed0e9c401/lib/appium_lib/android/common/helper.rb#L189) android
|
1752
1763
|
|
1753
1764
|
> def tags(class_name)
|
1754
1765
|
|
@@ -1764,7 +1775,7 @@ __Returns:__
|
|
1764
1775
|
|
1765
1776
|
--
|
1766
1777
|
|
1767
|
-
##### [string_visible_contains_xpath](https://github.com/appium/ruby_lib/blob/
|
1778
|
+
##### [string_visible_contains_xpath](https://github.com/appium/ruby_lib/blob/bc3da9bc1ee58d5e96811b72f3ed737ed0e9c401/lib/appium_lib/android/common/helper.rb#L232) android
|
1768
1779
|
|
1769
1780
|
> def string_visible_contains_xpath(class_name, value)
|
1770
1781
|
|
@@ -1785,7 +1796,7 @@ __Returns:__
|
|
1785
1796
|
|
1786
1797
|
--
|
1787
1798
|
|
1788
|
-
##### [string_visible_contains](https://github.com/appium/ruby_lib/blob/
|
1799
|
+
##### [string_visible_contains](https://github.com/appium/ruby_lib/blob/bc3da9bc1ee58d5e96811b72f3ed737ed0e9c401/lib/appium_lib/android/common/helper.rb#L252) android
|
1789
1800
|
|
1790
1801
|
> def string_visible_contains(class_name, value)
|
1791
1802
|
|
@@ -1806,7 +1817,7 @@ __Returns:__
|
|
1806
1817
|
|
1807
1818
|
--
|
1808
1819
|
|
1809
|
-
##### [complex_find_contains](https://github.com/appium/ruby_lib/blob/
|
1820
|
+
##### [complex_find_contains](https://github.com/appium/ruby_lib/blob/bc3da9bc1ee58d5e96811b72f3ed737ed0e9c401/lib/appium_lib/android/common/helper.rb#L270) android
|
1810
1821
|
|
1811
1822
|
> def complex_find_contains(class_name, value)
|
1812
1823
|
|
@@ -1824,7 +1835,7 @@ __Returns:__
|
|
1824
1835
|
|
1825
1836
|
--
|
1826
1837
|
|
1827
|
-
##### [complex_finds_contains](https://github.com/appium/ruby_lib/blob/
|
1838
|
+
##### [complex_finds_contains](https://github.com/appium/ruby_lib/blob/bc3da9bc1ee58d5e96811b72f3ed737ed0e9c401/lib/appium_lib/android/common/helper.rb#L278) android
|
1828
1839
|
|
1829
1840
|
> def complex_finds_contains(class_name, value)
|
1830
1841
|
|
@@ -1842,7 +1853,7 @@ __Returns:__
|
|
1842
1853
|
|
1843
1854
|
--
|
1844
1855
|
|
1845
|
-
##### [complex_find_exact](https://github.com/appium/ruby_lib/blob/
|
1856
|
+
##### [complex_find_exact](https://github.com/appium/ruby_lib/blob/bc3da9bc1ee58d5e96811b72f3ed737ed0e9c401/lib/appium_lib/android/common/helper.rb#L320) android
|
1846
1857
|
|
1847
1858
|
> def complex_find_exact(class_name, value)
|
1848
1859
|
|
@@ -1860,7 +1871,7 @@ __Returns:__
|
|
1860
1871
|
|
1861
1872
|
--
|
1862
1873
|
|
1863
|
-
##### [complex_finds_exact](https://github.com/appium/ruby_lib/blob/
|
1874
|
+
##### [complex_finds_exact](https://github.com/appium/ruby_lib/blob/bc3da9bc1ee58d5e96811b72f3ed737ed0e9c401/lib/appium_lib/android/common/helper.rb#L328) android
|
1864
1875
|
|
1865
1876
|
> def complex_finds_exact(class_name, value)
|
1866
1877
|
|
@@ -1878,7 +1889,7 @@ __Returns:__
|
|
1878
1889
|
|
1879
1890
|
--
|
1880
1891
|
|
1881
|
-
##### [alert_click](https://github.com/appium/ruby_lib/blob/
|
1892
|
+
##### [alert_click](https://github.com/appium/ruby_lib/blob/bc3da9bc1ee58d5e96811b72f3ed737ed0e9c401/lib/appium_lib/android/element/alert.rb#L20) android
|
1882
1893
|
|
1883
1894
|
> def alert_click(value)
|
1884
1895
|
|
@@ -1894,7 +1905,7 @@ __Returns:__
|
|
1894
1905
|
|
1895
1906
|
--
|
1896
1907
|
|
1897
|
-
##### [alert_accept](https://github.com/appium/ruby_lib/blob/
|
1908
|
+
##### [alert_accept](https://github.com/appium/ruby_lib/blob/bc3da9bc1ee58d5e96811b72f3ed737ed0e9c401/lib/appium_lib/android/element/alert.rb#L27) android
|
1898
1909
|
|
1899
1910
|
> def alert_accept
|
1900
1911
|
|
@@ -1907,7 +1918,7 @@ __Returns:__
|
|
1907
1918
|
|
1908
1919
|
--
|
1909
1920
|
|
1910
|
-
##### [alert_accept_text](https://github.com/appium/ruby_lib/blob/
|
1921
|
+
##### [alert_accept_text](https://github.com/appium/ruby_lib/blob/bc3da9bc1ee58d5e96811b72f3ed737ed0e9c401/lib/appium_lib/android/element/alert.rb#L34) android
|
1911
1922
|
|
1912
1923
|
> def alert_accept_text
|
1913
1924
|
|
@@ -1920,7 +1931,7 @@ __Returns:__
|
|
1920
1931
|
|
1921
1932
|
--
|
1922
1933
|
|
1923
|
-
##### [alert_dismiss](https://github.com/appium/ruby_lib/blob/
|
1934
|
+
##### [alert_dismiss](https://github.com/appium/ruby_lib/blob/bc3da9bc1ee58d5e96811b72f3ed737ed0e9c401/lib/appium_lib/android/element/alert.rb#L41) android
|
1924
1935
|
|
1925
1936
|
> def alert_dismiss
|
1926
1937
|
|
@@ -1933,7 +1944,7 @@ __Returns:__
|
|
1933
1944
|
|
1934
1945
|
--
|
1935
1946
|
|
1936
|
-
##### [alert_dismiss_text](https://github.com/appium/ruby_lib/blob/
|
1947
|
+
##### [alert_dismiss_text](https://github.com/appium/ruby_lib/blob/bc3da9bc1ee58d5e96811b72f3ed737ed0e9c401/lib/appium_lib/android/element/alert.rb#L48) android
|
1937
1948
|
|
1938
1949
|
> def alert_dismiss_text
|
1939
1950
|
|
@@ -1946,39 +1957,7 @@ __Returns:__
|
|
1946
1957
|
|
1947
1958
|
--
|
1948
1959
|
|
1949
|
-
##### [
|
1950
|
-
|
1951
|
-
> BUTTON = 'android.widget.Button'
|
1952
|
-
|
1953
|
-
|
1954
|
-
|
1955
|
-
--
|
1956
|
-
|
1957
|
-
##### [Button](https://github.com/appium/ruby_lib/blob/954a3a8d4d5cd56fa5a4e80d021805759dbf5e10/lib/appium_lib/android/element/button.rb#L18) android
|
1958
|
-
|
1959
|
-
> Button = BUTTON # backward compatibility
|
1960
|
-
|
1961
|
-
backward compatibility
|
1962
|
-
|
1963
|
-
--
|
1964
|
-
|
1965
|
-
##### [IMAGE_BUTTON](https://github.com/appium/ruby_lib/blob/954a3a8d4d5cd56fa5a4e80d021805759dbf5e10/lib/appium_lib/android/element/button.rb#L20) android
|
1966
|
-
|
1967
|
-
> IMAGE_BUTTON = 'android.widget.ImageButton'
|
1968
|
-
|
1969
|
-
|
1970
|
-
|
1971
|
-
--
|
1972
|
-
|
1973
|
-
##### [ImageButton](https://github.com/appium/ruby_lib/blob/954a3a8d4d5cd56fa5a4e80d021805759dbf5e10/lib/appium_lib/android/element/button.rb#L21) android
|
1974
|
-
|
1975
|
-
> ImageButton = IMAGE_BUTTON # backward compatibility
|
1976
|
-
|
1977
|
-
backward compatibility
|
1978
|
-
|
1979
|
-
--
|
1980
|
-
|
1981
|
-
##### [button](https://github.com/appium/ruby_lib/blob/954a3a8d4d5cd56fa5a4e80d021805759dbf5e10/lib/appium_lib/android/element/button.rb#L27) android
|
1960
|
+
##### [button](https://github.com/appium/ruby_lib/blob/bc3da9bc1ee58d5e96811b72f3ed737ed0e9c401/lib/appium_lib/android/element/button.rb#L27) android
|
1982
1961
|
|
1983
1962
|
> def button(value)
|
1984
1963
|
|
@@ -1995,7 +1974,7 @@ __Returns:__
|
|
1995
1974
|
|
1996
1975
|
--
|
1997
1976
|
|
1998
|
-
##### [buttons](https://github.com/appium/ruby_lib/blob/
|
1977
|
+
##### [buttons](https://github.com/appium/ruby_lib/blob/bc3da9bc1ee58d5e96811b72f3ed737ed0e9c401/lib/appium_lib/android/element/button.rb#L45) android
|
1999
1978
|
|
2000
1979
|
> def buttons(value = false)
|
2001
1980
|
|
@@ -2012,7 +1991,7 @@ __Returns:__
|
|
2012
1991
|
|
2013
1992
|
--
|
2014
1993
|
|
2015
|
-
##### [first_button](https://github.com/appium/ruby_lib/blob/
|
1994
|
+
##### [first_button](https://github.com/appium/ruby_lib/blob/bc3da9bc1ee58d5e96811b72f3ed737ed0e9c401/lib/appium_lib/android/element/button.rb#L53) android
|
2016
1995
|
|
2017
1996
|
> def first_button
|
2018
1997
|
|
@@ -2024,7 +2003,7 @@ __Returns:__
|
|
2024
2003
|
|
2025
2004
|
--
|
2026
2005
|
|
2027
|
-
##### [last_button](https://github.com/appium/ruby_lib/blob/
|
2006
|
+
##### [last_button](https://github.com/appium/ruby_lib/blob/bc3da9bc1ee58d5e96811b72f3ed737ed0e9c401/lib/appium_lib/android/element/button.rb#L59) android
|
2028
2007
|
|
2029
2008
|
> def last_button
|
2030
2009
|
|
@@ -2036,7 +2015,7 @@ __Returns:__
|
|
2036
2015
|
|
2037
2016
|
--
|
2038
2017
|
|
2039
|
-
##### [button_exact](https://github.com/appium/ruby_lib/blob/
|
2018
|
+
##### [button_exact](https://github.com/appium/ruby_lib/blob/bc3da9bc1ee58d5e96811b72f3ed737ed0e9c401/lib/appium_lib/android/element/button.rb#L75) android
|
2040
2019
|
|
2041
2020
|
> def button_exact(value)
|
2042
2021
|
|
@@ -2052,7 +2031,7 @@ __Returns:__
|
|
2052
2031
|
|
2053
2032
|
--
|
2054
2033
|
|
2055
|
-
##### [buttons_exact](https://github.com/appium/ruby_lib/blob/
|
2034
|
+
##### [buttons_exact](https://github.com/appium/ruby_lib/blob/bc3da9bc1ee58d5e96811b72f3ed737ed0e9c401/lib/appium_lib/android/element/button.rb#L82) android
|
2056
2035
|
|
2057
2036
|
> def buttons_exact(value)
|
2058
2037
|
|
@@ -2068,7 +2047,7 @@ __Returns:__
|
|
2068
2047
|
|
2069
2048
|
--
|
2070
2049
|
|
2071
|
-
##### [_button_visible_selectors](https://github.com/appium/ruby_lib/blob/
|
2050
|
+
##### [_button_visible_selectors](https://github.com/appium/ruby_lib/blob/bc3da9bc1ee58d5e96811b72f3ed737ed0e9c401/lib/appium_lib/android/element/button.rb#L95) android
|
2072
2051
|
|
2073
2052
|
> def _button_visible_selectors(opts = {})
|
2074
2053
|
|
@@ -2076,7 +2055,7 @@ __Returns:__
|
|
2076
2055
|
|
2077
2056
|
--
|
2078
2057
|
|
2079
|
-
##### [_button_exact_string](https://github.com/appium/ruby_lib/blob/
|
2058
|
+
##### [_button_exact_string](https://github.com/appium/ruby_lib/blob/bc3da9bc1ee58d5e96811b72f3ed737ed0e9c401/lib/appium_lib/android/element/button.rb#L108) android
|
2080
2059
|
|
2081
2060
|
> def _button_exact_string(value)
|
2082
2061
|
|
@@ -2084,7 +2063,7 @@ __Returns:__
|
|
2084
2063
|
|
2085
2064
|
--
|
2086
2065
|
|
2087
|
-
##### [_button_contains_string](https://github.com/appium/ruby_lib/blob/
|
2066
|
+
##### [_button_contains_string](https://github.com/appium/ruby_lib/blob/bc3da9bc1ee58d5e96811b72f3ed737ed0e9c401/lib/appium_lib/android/element/button.rb#L114) android
|
2088
2067
|
|
2089
2068
|
> def _button_contains_string(value)
|
2090
2069
|
|
@@ -2092,7 +2071,7 @@ __Returns:__
|
|
2092
2071
|
|
2093
2072
|
--
|
2094
2073
|
|
2095
|
-
##### [find](https://github.com/appium/ruby_lib/blob/
|
2074
|
+
##### [find](https://github.com/appium/ruby_lib/blob/bc3da9bc1ee58d5e96811b72f3ed737ed0e9c401/lib/appium_lib/android/element/generic.rb#L20) android
|
2096
2075
|
|
2097
2076
|
> def find(value)
|
2098
2077
|
|
@@ -2108,7 +2087,7 @@ __Returns:__
|
|
2108
2087
|
|
2109
2088
|
--
|
2110
2089
|
|
2111
|
-
##### [finds](https://github.com/appium/ruby_lib/blob/
|
2090
|
+
##### [finds](https://github.com/appium/ruby_lib/blob/bc3da9bc1ee58d5e96811b72f3ed737ed0e9c401/lib/appium_lib/android/element/generic.rb#L27) android
|
2112
2091
|
|
2113
2092
|
> def finds(value)
|
2114
2093
|
|
@@ -2124,7 +2103,7 @@ __Returns:__
|
|
2124
2103
|
|
2125
2104
|
--
|
2126
2105
|
|
2127
|
-
##### [find_exact](https://github.com/appium/ruby_lib/blob/
|
2106
|
+
##### [find_exact](https://github.com/appium/ruby_lib/blob/bc3da9bc1ee58d5e96811b72f3ed737ed0e9c401/lib/appium_lib/android/element/generic.rb#L34) android
|
2128
2107
|
|
2129
2108
|
> def find_exact(value)
|
2130
2109
|
|
@@ -2140,7 +2119,7 @@ __Returns:__
|
|
2140
2119
|
|
2141
2120
|
--
|
2142
2121
|
|
2143
|
-
##### [finds_exact](https://github.com/appium/ruby_lib/blob/
|
2122
|
+
##### [finds_exact](https://github.com/appium/ruby_lib/blob/bc3da9bc1ee58d5e96811b72f3ed737ed0e9c401/lib/appium_lib/android/element/generic.rb#L41) android
|
2144
2123
|
|
2145
2124
|
> def finds_exact(value)
|
2146
2125
|
|
@@ -2156,7 +2135,7 @@ __Returns:__
|
|
2156
2135
|
|
2157
2136
|
--
|
2158
2137
|
|
2159
|
-
##### [scroll_to](https://github.com/appium/ruby_lib/blob/
|
2138
|
+
##### [scroll_to](https://github.com/appium/ruby_lib/blob/bc3da9bc1ee58d5e96811b72f3ed737ed0e9c401/lib/appium_lib/android/element/generic.rb#L54) android
|
2160
2139
|
|
2161
2140
|
> def scroll_to(text, scrollable_index = 0)
|
2162
2141
|
|
@@ -2174,7 +2153,7 @@ __Returns:__
|
|
2174
2153
|
|
2175
2154
|
--
|
2176
2155
|
|
2177
|
-
##### [scroll_to_exact](https://github.com/appium/ruby_lib/blob/
|
2156
|
+
##### [scroll_to_exact](https://github.com/appium/ruby_lib/blob/bc3da9bc1ee58d5e96811b72f3ed737ed0e9c401/lib/appium_lib/android/element/generic.rb#L72) android
|
2178
2157
|
|
2179
2158
|
> def scroll_to_exact(text, scrollable_index = 0)
|
2180
2159
|
|
@@ -2192,15 +2171,15 @@ __Returns:__
|
|
2192
2171
|
|
2193
2172
|
--
|
2194
2173
|
|
2195
|
-
##### [for](https://github.com/appium/ruby_lib/blob/
|
2174
|
+
##### [for](https://github.com/appium/ruby_lib/blob/bc3da9bc1ee58d5e96811b72f3ed737ed0e9c401/lib/appium_lib/android/espresso/bridge.rb#L21) android
|
2196
2175
|
|
2197
|
-
> def
|
2176
|
+
> def for(target)
|
2198
2177
|
|
2199
2178
|
|
2200
2179
|
|
2201
2180
|
--
|
2202
2181
|
|
2203
|
-
##### [complex_find_contains](https://github.com/appium/ruby_lib/blob/
|
2182
|
+
##### [complex_find_contains](https://github.com/appium/ruby_lib/blob/bc3da9bc1ee58d5e96811b72f3ed737ed0e9c401/lib/appium_lib/android/espresso/helper.rb#L23) android
|
2204
2183
|
|
2205
2184
|
> def complex_find_contains(class_name, value)
|
2206
2185
|
|
@@ -2218,7 +2197,7 @@ __Returns:__
|
|
2218
2197
|
|
2219
2198
|
--
|
2220
2199
|
|
2221
|
-
##### [complex_finds_contains](https://github.com/appium/ruby_lib/blob/
|
2200
|
+
##### [complex_finds_contains](https://github.com/appium/ruby_lib/blob/bc3da9bc1ee58d5e96811b72f3ed737ed0e9c401/lib/appium_lib/android/espresso/helper.rb#L31) android
|
2222
2201
|
|
2223
2202
|
> def complex_finds_contains(class_name, value)
|
2224
2203
|
|
@@ -2236,7 +2215,7 @@ __Returns:__
|
|
2236
2215
|
|
2237
2216
|
--
|
2238
2217
|
|
2239
|
-
##### [complex_find_exact](https://github.com/appium/ruby_lib/blob/
|
2218
|
+
##### [complex_find_exact](https://github.com/appium/ruby_lib/blob/bc3da9bc1ee58d5e96811b72f3ed737ed0e9c401/lib/appium_lib/android/espresso/helper.rb#L39) android
|
2240
2219
|
|
2241
2220
|
> def complex_find_exact(class_name, value)
|
2242
2221
|
|
@@ -2254,7 +2233,7 @@ __Returns:__
|
|
2254
2233
|
|
2255
2234
|
--
|
2256
2235
|
|
2257
|
-
##### [complex_finds_exact](https://github.com/appium/ruby_lib/blob/
|
2236
|
+
##### [complex_finds_exact](https://github.com/appium/ruby_lib/blob/bc3da9bc1ee58d5e96811b72f3ed737ed0e9c401/lib/appium_lib/android/espresso/helper.rb#L47) android
|
2258
2237
|
|
2259
2238
|
> def complex_finds_exact(class_name, value)
|
2260
2239
|
|
@@ -2272,23 +2251,7 @@ __Returns:__
|
|
2272
2251
|
|
2273
2252
|
--
|
2274
2253
|
|
2275
|
-
##### [
|
2276
|
-
|
2277
|
-
> EDIT_TEXT = 'android.widget.EditText'
|
2278
|
-
|
2279
|
-
|
2280
|
-
|
2281
|
-
--
|
2282
|
-
|
2283
|
-
##### [EditText](https://github.com/appium/ruby_lib/blob/954a3a8d4d5cd56fa5a4e80d021805759dbf5e10/lib/appium_lib/android/element/textfield.rb#L18) android
|
2284
|
-
|
2285
|
-
> EditText = EDIT_TEXT
|
2286
|
-
|
2287
|
-
|
2288
|
-
|
2289
|
-
--
|
2290
|
-
|
2291
|
-
##### [textfield](https://github.com/appium/ruby_lib/blob/954a3a8d4d5cd56fa5a4e80d021805759dbf5e10/lib/appium_lib/android/element/textfield.rb#L24) android
|
2254
|
+
##### [textfield](https://github.com/appium/ruby_lib/blob/bc3da9bc1ee58d5e96811b72f3ed737ed0e9c401/lib/appium_lib/android/element/textfield.rb#L24) android
|
2292
2255
|
|
2293
2256
|
> def textfield(value)
|
2294
2257
|
|
@@ -2305,7 +2268,7 @@ __Returns:__
|
|
2305
2268
|
|
2306
2269
|
--
|
2307
2270
|
|
2308
|
-
##### [textfields](https://github.com/appium/ruby_lib/blob/
|
2271
|
+
##### [textfields](https://github.com/appium/ruby_lib/blob/bc3da9bc1ee58d5e96811b72f3ed737ed0e9c401/lib/appium_lib/android/element/textfield.rb#L34) android
|
2309
2272
|
|
2310
2273
|
> def textfields(value = false)
|
2311
2274
|
|
@@ -2322,7 +2285,7 @@ __Returns:__
|
|
2322
2285
|
|
2323
2286
|
--
|
2324
2287
|
|
2325
|
-
##### [first_textfield](https://github.com/appium/ruby_lib/blob/
|
2288
|
+
##### [first_textfield](https://github.com/appium/ruby_lib/blob/bc3da9bc1ee58d5e96811b72f3ed737ed0e9c401/lib/appium_lib/android/element/textfield.rb#L42) android
|
2326
2289
|
|
2327
2290
|
> def first_textfield
|
2328
2291
|
|
@@ -2334,7 +2297,7 @@ __Returns:__
|
|
2334
2297
|
|
2335
2298
|
--
|
2336
2299
|
|
2337
|
-
##### [last_textfield](https://github.com/appium/ruby_lib/blob/
|
2300
|
+
##### [last_textfield](https://github.com/appium/ruby_lib/blob/bc3da9bc1ee58d5e96811b72f3ed737ed0e9c401/lib/appium_lib/android/element/textfield.rb#L48) android
|
2338
2301
|
|
2339
2302
|
> def last_textfield
|
2340
2303
|
|
@@ -2346,7 +2309,7 @@ __Returns:__
|
|
2346
2309
|
|
2347
2310
|
--
|
2348
2311
|
|
2349
|
-
##### [textfield_exact](https://github.com/appium/ruby_lib/blob/
|
2312
|
+
##### [textfield_exact](https://github.com/appium/ruby_lib/blob/bc3da9bc1ee58d5e96811b72f3ed737ed0e9c401/lib/appium_lib/android/element/textfield.rb#L55) android
|
2350
2313
|
|
2351
2314
|
> def textfield_exact(value)
|
2352
2315
|
|
@@ -2362,7 +2325,7 @@ __Returns:__
|
|
2362
2325
|
|
2363
2326
|
--
|
2364
2327
|
|
2365
|
-
##### [textfields_exact](https://github.com/appium/ruby_lib/blob/
|
2328
|
+
##### [textfields_exact](https://github.com/appium/ruby_lib/blob/bc3da9bc1ee58d5e96811b72f3ed737ed0e9c401/lib/appium_lib/android/element/textfield.rb#L62) android
|
2366
2329
|
|
2367
2330
|
> def textfields_exact(value)
|
2368
2331
|
|
@@ -2378,15 +2341,15 @@ __Returns:__
|
|
2378
2341
|
|
2379
2342
|
--
|
2380
2343
|
|
2381
|
-
##### [for](https://github.com/appium/ruby_lib/blob/
|
2344
|
+
##### [for](https://github.com/appium/ruby_lib/blob/bc3da9bc1ee58d5e96811b72f3ed737ed0e9c401/lib/appium_lib/android/uiautomator2/bridge.rb#L21) android
|
2382
2345
|
|
2383
|
-
> def
|
2346
|
+
> def for(target)
|
2384
2347
|
|
2385
2348
|
|
2386
2349
|
|
2387
2350
|
--
|
2388
2351
|
|
2389
|
-
##### [string_visible_contains](https://github.com/appium/ruby_lib/blob/
|
2352
|
+
##### [string_visible_contains](https://github.com/appium/ruby_lib/blob/bc3da9bc1ee58d5e96811b72f3ed737ed0e9c401/lib/appium_lib/android/uiautomator2/helper.rb#L27) android
|
2390
2353
|
|
2391
2354
|
> def string_visible_contains(class_name, value)
|
2392
2355
|
|
@@ -2407,7 +2370,7 @@ __Returns:__
|
|
2407
2370
|
|
2408
2371
|
--
|
2409
2372
|
|
2410
|
-
##### [complex_find_contains](https://github.com/appium/ruby_lib/blob/
|
2373
|
+
##### [complex_find_contains](https://github.com/appium/ruby_lib/blob/bc3da9bc1ee58d5e96811b72f3ed737ed0e9c401/lib/appium_lib/android/uiautomator2/helper.rb#L45) android
|
2411
2374
|
|
2412
2375
|
> def complex_find_contains(class_name, value)
|
2413
2376
|
|
@@ -2425,7 +2388,7 @@ __Returns:__
|
|
2425
2388
|
|
2426
2389
|
--
|
2427
2390
|
|
2428
|
-
##### [complex_finds_contains](https://github.com/appium/ruby_lib/blob/
|
2391
|
+
##### [complex_finds_contains](https://github.com/appium/ruby_lib/blob/bc3da9bc1ee58d5e96811b72f3ed737ed0e9c401/lib/appium_lib/android/uiautomator2/helper.rb#L56) android
|
2429
2392
|
|
2430
2393
|
> def complex_finds_contains(class_name, value)
|
2431
2394
|
|
@@ -2443,7 +2406,7 @@ __Returns:__
|
|
2443
2406
|
|
2444
2407
|
--
|
2445
2408
|
|
2446
|
-
##### [complex_find_exact](https://github.com/appium/ruby_lib/blob/
|
2409
|
+
##### [complex_find_exact](https://github.com/appium/ruby_lib/blob/bc3da9bc1ee58d5e96811b72f3ed737ed0e9c401/lib/appium_lib/android/uiautomator2/helper.rb#L84) android
|
2447
2410
|
|
2448
2411
|
> def complex_find_exact(class_name, value)
|
2449
2412
|
|
@@ -2461,7 +2424,7 @@ __Returns:__
|
|
2461
2424
|
|
2462
2425
|
--
|
2463
2426
|
|
2464
|
-
##### [complex_finds_exact](https://github.com/appium/ruby_lib/blob/
|
2427
|
+
##### [complex_finds_exact](https://github.com/appium/ruby_lib/blob/bc3da9bc1ee58d5e96811b72f3ed737ed0e9c401/lib/appium_lib/android/uiautomator2/helper.rb#L95) android
|
2465
2428
|
|
2466
2429
|
> def complex_finds_exact(class_name, value)
|
2467
2430
|
|
@@ -2479,7 +2442,7 @@ __Returns:__
|
|
2479
2442
|
|
2480
2443
|
--
|
2481
2444
|
|
2482
|
-
##### [shell](https://github.com/appium/ruby_lib/blob/
|
2445
|
+
##### [shell](https://github.com/appium/ruby_lib/blob/bc3da9bc1ee58d5e96811b72f3ed737ed0e9c401/lib/appium_lib/android/common/command/command.rb#L28) android
|
2483
2446
|
|
2484
2447
|
> def shell(command, arguments)
|
2485
2448
|
|
@@ -2494,7 +2457,7 @@ __Parameters:__
|
|
2494
2457
|
|
2495
2458
|
--
|
2496
2459
|
|
2497
|
-
##### [start_logs_broadcast](https://github.com/appium/ruby_lib/blob/
|
2460
|
+
##### [start_logs_broadcast](https://github.com/appium/ruby_lib/blob/bc3da9bc1ee58d5e96811b72f3ed737ed0e9c401/lib/appium_lib/android/common/command/command.rb#L42) android
|
2498
2461
|
|
2499
2462
|
> def start_logs_broadcast(logcat_file = 'logcat.log')
|
2500
2463
|
|
@@ -2506,7 +2469,7 @@ __Parameters:__
|
|
2506
2469
|
|
2507
2470
|
--
|
2508
2471
|
|
2509
|
-
##### [stop_logs_broadcast](https://github.com/appium/ruby_lib/blob/
|
2472
|
+
##### [stop_logs_broadcast](https://github.com/appium/ruby_lib/blob/bc3da9bc1ee58d5e96811b72f3ed737ed0e9c401/lib/appium_lib/android/common/command/command.rb#L55) android
|
2510
2473
|
|
2511
2474
|
> def stop_logs_broadcast
|
2512
2475
|
|
@@ -2514,7 +2477,7 @@ Stop Android logcat broadcast websocket
|
|
2514
2477
|
|
2515
2478
|
--
|
2516
2479
|
|
2517
|
-
##### [button](https://github.com/appium/ruby_lib/blob/
|
2480
|
+
##### [button](https://github.com/appium/ruby_lib/blob/bc3da9bc1ee58d5e96811b72f3ed737ed0e9c401/lib/appium_lib/android/espresso/element/button.rb#L23) android
|
2518
2481
|
|
2519
2482
|
> def button(value)
|
2520
2483
|
|
@@ -2531,7 +2494,7 @@ __Returns:__
|
|
2531
2494
|
|
2532
2495
|
--
|
2533
2496
|
|
2534
|
-
##### [buttons](https://github.com/appium/ruby_lib/blob/
|
2497
|
+
##### [buttons](https://github.com/appium/ruby_lib/blob/bc3da9bc1ee58d5e96811b72f3ed737ed0e9c401/lib/appium_lib/android/espresso/element/button.rb#L46) android
|
2535
2498
|
|
2536
2499
|
> def buttons(value = false)
|
2537
2500
|
|
@@ -2548,7 +2511,7 @@ __Returns:__
|
|
2548
2511
|
|
2549
2512
|
--
|
2550
2513
|
|
2551
|
-
##### [first_button](https://github.com/appium/ruby_lib/blob/
|
2514
|
+
##### [first_button](https://github.com/appium/ruby_lib/blob/bc3da9bc1ee58d5e96811b72f3ed737ed0e9c401/lib/appium_lib/android/espresso/element/button.rb#L56) android
|
2552
2515
|
|
2553
2516
|
> def first_button
|
2554
2517
|
|
@@ -2560,7 +2523,7 @@ __Returns:__
|
|
2560
2523
|
|
2561
2524
|
--
|
2562
2525
|
|
2563
|
-
##### [last_button](https://github.com/appium/ruby_lib/blob/
|
2526
|
+
##### [last_button](https://github.com/appium/ruby_lib/blob/bc3da9bc1ee58d5e96811b72f3ed737ed0e9c401/lib/appium_lib/android/espresso/element/button.rb#L62) android
|
2564
2527
|
|
2565
2528
|
> def last_button
|
2566
2529
|
|
@@ -2572,7 +2535,7 @@ __Returns:__
|
|
2572
2535
|
|
2573
2536
|
--
|
2574
2537
|
|
2575
|
-
##### [button_exact](https://github.com/appium/ruby_lib/blob/
|
2538
|
+
##### [button_exact](https://github.com/appium/ruby_lib/blob/bc3da9bc1ee58d5e96811b72f3ed737ed0e9c401/lib/appium_lib/android/espresso/element/button.rb#L77) android
|
2576
2539
|
|
2577
2540
|
> def button_exact(value)
|
2578
2541
|
|
@@ -2588,7 +2551,7 @@ __Returns:__
|
|
2588
2551
|
|
2589
2552
|
--
|
2590
2553
|
|
2591
|
-
##### [buttons_exact](https://github.com/appium/ruby_lib/blob/
|
2554
|
+
##### [buttons_exact](https://github.com/appium/ruby_lib/blob/bc3da9bc1ee58d5e96811b72f3ed737ed0e9c401/lib/appium_lib/android/espresso/element/button.rb#L89) android
|
2592
2555
|
|
2593
2556
|
> def buttons_exact(value)
|
2594
2557
|
|
@@ -2604,7 +2567,7 @@ __Returns:__
|
|
2604
2567
|
|
2605
2568
|
--
|
2606
2569
|
|
2607
|
-
##### [_button_visible_selectors_xpath](https://github.com/appium/ruby_lib/blob/
|
2570
|
+
##### [_button_visible_selectors_xpath](https://github.com/appium/ruby_lib/blob/bc3da9bc1ee58d5e96811b72f3ed737ed0e9c401/lib/appium_lib/android/espresso/element/button.rb#L104) android
|
2608
2571
|
|
2609
2572
|
> def _button_visible_selectors_xpath(opts = {})
|
2610
2573
|
|
@@ -2612,7 +2575,7 @@ __Returns:__
|
|
2612
2575
|
|
2613
2576
|
--
|
2614
2577
|
|
2615
|
-
##### [_button_exact_string_xpath](https://github.com/appium/ruby_lib/blob/
|
2578
|
+
##### [_button_exact_string_xpath](https://github.com/appium/ruby_lib/blob/bc3da9bc1ee58d5e96811b72f3ed737ed0e9c401/lib/appium_lib/android/espresso/element/button.rb#L125) android
|
2616
2579
|
|
2617
2580
|
> def _button_exact_string_xpath(class_name, value)
|
2618
2581
|
|
@@ -2620,7 +2583,7 @@ __Returns:__
|
|
2620
2583
|
|
2621
2584
|
--
|
2622
2585
|
|
2623
|
-
##### [_button_contains_string_xpath](https://github.com/appium/ruby_lib/blob/
|
2586
|
+
##### [_button_contains_string_xpath](https://github.com/appium/ruby_lib/blob/bc3da9bc1ee58d5e96811b72f3ed737ed0e9c401/lib/appium_lib/android/espresso/element/button.rb#L130) android
|
2624
2587
|
|
2625
2588
|
> def _button_contains_string_xpath(class_name, value)
|
2626
2589
|
|
@@ -2628,7 +2591,7 @@ __Returns:__
|
|
2628
2591
|
|
2629
2592
|
--
|
2630
2593
|
|
2631
|
-
##### [scroll_to](https://github.com/appium/ruby_lib/blob/
|
2594
|
+
##### [scroll_to](https://github.com/appium/ruby_lib/blob/bc3da9bc1ee58d5e96811b72f3ed737ed0e9c401/lib/appium_lib/android/espresso/element/generic.rb#L23) android
|
2632
2595
|
|
2633
2596
|
> def scroll_to(text)
|
2634
2597
|
|
@@ -2645,7 +2608,7 @@ __Returns:__
|
|
2645
2608
|
|
2646
2609
|
--
|
2647
2610
|
|
2648
|
-
##### [scroll_to_exact](https://github.com/appium/ruby_lib/blob/
|
2611
|
+
##### [scroll_to_exact](https://github.com/appium/ruby_lib/blob/bc3da9bc1ee58d5e96811b72f3ed737ed0e9c401/lib/appium_lib/android/espresso/element/generic.rb#L50) android
|
2649
2612
|
|
2650
2613
|
> def scroll_to_exact(text)
|
2651
2614
|
|
@@ -2662,7 +2625,7 @@ __Returns:__
|
|
2662
2625
|
|
2663
2626
|
--
|
2664
2627
|
|
2665
|
-
##### [button](https://github.com/appium/ruby_lib/blob/
|
2628
|
+
##### [button](https://github.com/appium/ruby_lib/blob/bc3da9bc1ee58d5e96811b72f3ed737ed0e9c401/lib/appium_lib/android/uiautomator2/element/button.rb#L23) android
|
2666
2629
|
|
2667
2630
|
> def button(value)
|
2668
2631
|
|
@@ -2679,7 +2642,7 @@ __Returns:__
|
|
2679
2642
|
|
2680
2643
|
--
|
2681
2644
|
|
2682
|
-
##### [buttons](https://github.com/appium/ruby_lib/blob/
|
2645
|
+
##### [buttons](https://github.com/appium/ruby_lib/blob/bc3da9bc1ee58d5e96811b72f3ed737ed0e9c401/lib/appium_lib/android/uiautomator2/element/button.rb#L44) android
|
2683
2646
|
|
2684
2647
|
> def buttons(value = false)
|
2685
2648
|
|
@@ -2696,7 +2659,7 @@ __Returns:__
|
|
2696
2659
|
|
2697
2660
|
--
|
2698
2661
|
|
2699
|
-
##### [first_button](https://github.com/appium/ruby_lib/blob/
|
2662
|
+
##### [first_button](https://github.com/appium/ruby_lib/blob/bc3da9bc1ee58d5e96811b72f3ed737ed0e9c401/lib/appium_lib/android/uiautomator2/element/button.rb#L52) android
|
2700
2663
|
|
2701
2664
|
> def first_button
|
2702
2665
|
|
@@ -2708,7 +2671,7 @@ __Returns:__
|
|
2708
2671
|
|
2709
2672
|
--
|
2710
2673
|
|
2711
|
-
##### [last_button](https://github.com/appium/ruby_lib/blob/
|
2674
|
+
##### [last_button](https://github.com/appium/ruby_lib/blob/bc3da9bc1ee58d5e96811b72f3ed737ed0e9c401/lib/appium_lib/android/uiautomator2/element/button.rb#L59) android
|
2712
2675
|
|
2713
2676
|
> def last_button
|
2714
2677
|
|
@@ -2720,7 +2683,7 @@ __Returns:__
|
|
2720
2683
|
|
2721
2684
|
--
|
2722
2685
|
|
2723
|
-
##### [button_exact](https://github.com/appium/ruby_lib/blob/
|
2686
|
+
##### [button_exact](https://github.com/appium/ruby_lib/blob/bc3da9bc1ee58d5e96811b72f3ed737ed0e9c401/lib/appium_lib/android/uiautomator2/element/button.rb#L76) android
|
2724
2687
|
|
2725
2688
|
> def button_exact(value)
|
2726
2689
|
|
@@ -2736,7 +2699,7 @@ __Returns:__
|
|
2736
2699
|
|
2737
2700
|
--
|
2738
2701
|
|
2739
|
-
##### [buttons_exact](https://github.com/appium/ruby_lib/blob/
|
2702
|
+
##### [buttons_exact](https://github.com/appium/ruby_lib/blob/bc3da9bc1ee58d5e96811b72f3ed737ed0e9c401/lib/appium_lib/android/uiautomator2/element/button.rb#L84) android
|
2740
2703
|
|
2741
2704
|
> def buttons_exact(value)
|
2742
2705
|
|