appium_lib 9.3.0 → 9.3.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +11 -0
- data/android_tests/appium.txt +1 -0
- data/android_tests/lib/android/specs/common/command.rb +2 -0
- data/android_tests/lib/android/specs/common/device.rb +10 -1
- data/android_tests/lib/android/specs/driver.rb +46 -13
- data/appium_lib.gemspec +1 -0
- data/docs/android_docs.md +265 -226
- data/docs/docs.md +12 -19
- data/docs/ios_docs.md +279 -240
- data/ios_tests/appium.txt +1 -0
- data/ios_tests/lib/ios/specs/driver.rb +46 -8
- data/lib/appium_lib/common/command.rb +36 -34
- data/lib/appium_lib/common/version.rb +2 -2
- data/lib/appium_lib/device/device.rb +28 -0
- data/lib/appium_lib/driver.rb +9 -5
- data/readme.md +2 -0
- data/release_notes.md +12 -0
- metadata +17 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: f85a896f507d568f2abb59748097fba1a7f8e055
|
4
|
+
data.tar.gz: a60e80cc548e0362a276d85b164c5a76a716fad1
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: c21d008daf91f192c91b364bbe64f4a2ea48778f4a76d7736b5c4ad0c7e2e3f5b0466067e46993dd457608879bd2282ee0a72e3f01eb30c413d81aa5ce9f2ec6
|
7
|
+
data.tar.gz: 454d8b948c891132c873f2e2de2ad6f93e1992e492d42109510a333c1ebd5fc16129e44c0ec60a4d0269344e50b7bfb89e58f0afd2f08eb6fa0b0e385def71e8
|
data/CHANGELOG.md
CHANGED
@@ -3,6 +3,17 @@ Commit based release not is [release_notes.md](./release_notes.md)
|
|
3
3
|
|
4
4
|
Release tags are https://github.com/appium/ruby_lib/releases .
|
5
5
|
|
6
|
+
## v9.3.1
|
7
|
+
### 1. Enhancements
|
8
|
+
- Clarify disabling Sauce Labs. [#471](https://github.com/appium/ruby_lib/pull/471)
|
9
|
+
- add getting performance [#479](https://github.com/appium/ruby_lib/issues/479)
|
10
|
+
- **require appium-base-driver@2.1.7**
|
11
|
+
|
12
|
+
### 2. Bug fixes
|
13
|
+
- Fix missed var rename [#481](https://github.com/appium/ruby_lib/pull/481)
|
14
|
+
|
15
|
+
### 3. Deprecations
|
16
|
+
|
6
17
|
## v9.3.0
|
7
18
|
### 1. Enhancements
|
8
19
|
- wait / wait_true need global defaults [#250](https://github.com/appium/ruby_lib/issues/250)
|
data/android_tests/appium.txt
CHANGED
@@ -18,6 +18,8 @@ describe 'common/command.rb' do
|
|
18
18
|
Selenium::WebDriver::Remote::Bridge.method_defined?(:toggle_airplane_mode).must_equal true
|
19
19
|
Selenium::WebDriver::Remote::Bridge.method_defined?(:current_activity).must_equal true
|
20
20
|
Selenium::WebDriver::Remote::Bridge.method_defined?(:get_network_connection).must_equal true
|
21
|
+
Selenium::WebDriver::Remote::Bridge.method_defined?(:get_performance_data_types).must_equal true
|
22
|
+
Selenium::WebDriver::Remote::Bridge.method_defined?(:get_performance_data).must_equal true
|
21
23
|
end
|
22
24
|
|
23
25
|
t 'check all command with arg' do
|
@@ -11,6 +11,14 @@ describe 'common/device' do
|
|
11
11
|
# install ENV['APP_PATH']
|
12
12
|
end
|
13
13
|
|
14
|
+
t 'get_performance_data_types' do
|
15
|
+
expected = %w(cpuinfo batteryinfo networkinfo memoryinfo)
|
16
|
+
get_performance_data_types.must_equal expected
|
17
|
+
|
18
|
+
get_performance_data(package_name: 'io.appium.android.apis',
|
19
|
+
data_type: 'cpuinfo').must_equal [%w(user kernel), %w(0 0)]
|
20
|
+
end
|
21
|
+
|
14
22
|
t 'device_time' do
|
15
23
|
Date.parse(device_time)
|
16
24
|
end
|
@@ -21,7 +29,8 @@ describe 'common/device' do
|
|
21
29
|
|
22
30
|
t 'start_activity' do
|
23
31
|
wait { current_activity.must_equal '.ApiDemos' }
|
24
|
-
start_activity app_package: 'io.appium.android.apis',
|
32
|
+
start_activity app_package: 'io.appium.android.apis',
|
33
|
+
app_activity: '.accessibility.AccessibilityNodeProviderActivity'
|
25
34
|
wait { current_activity.include?('Node').must_equal true }
|
26
35
|
start_activity app_package: 'com.android.settings', app_activity: '.Settings',
|
27
36
|
app_wait_package: 'com.android.settings', app_wait_activity: '.Settings'
|
@@ -34,18 +34,36 @@ describe 'driver' do
|
|
34
34
|
apk_name.must_equal 'api.apk'
|
35
35
|
end
|
36
36
|
|
37
|
-
|
37
|
+
t 'verify Appium::Driver::Capabilities.init_caps_for_appium' do
|
38
|
+
expected_app = File.absolute_path('api.apk')
|
39
|
+
caps = ::Appium::Driver::Capabilities.init_caps_for_appium(platformName: 'Android',
|
40
|
+
app: expected_app,
|
41
|
+
appPackage: 'io.appium.android.apis',
|
42
|
+
appActivity: '.ApiDemos',
|
43
|
+
deviceName: 'Nexus 7',
|
44
|
+
some_capability: 'some_capability')
|
45
|
+
caps_with_json = JSON.parse(caps.to_json)
|
46
|
+
caps_with_json['platformName'].must_equal 'Android'
|
47
|
+
caps_with_json['app'].must_equal expected_app
|
48
|
+
caps_with_json['appPackage'].must_equal 'io.appium.android.apis'
|
49
|
+
caps_with_json['appActivity'].must_equal '.ApiDemos'
|
50
|
+
caps_with_json['deviceName'].must_equal 'Nexus 7'
|
51
|
+
caps_with_json['someCapability'].must_equal 'some_capability'
|
52
|
+
|
53
|
+
caps[:platformName].must_equal 'Android'
|
54
|
+
caps[:app].must_equal expected_app
|
55
|
+
caps[:appPackage].must_equal 'io.appium.android.apis'
|
56
|
+
caps[:appActivity].must_equal '.ApiDemos'
|
57
|
+
caps[:deviceName].must_equal 'Nexus 7'
|
58
|
+
caps[:some_capability].must_equal 'some_capability'
|
59
|
+
end
|
60
|
+
|
38
61
|
t 'verify all attributes' do
|
39
62
|
actual = driver_attributes
|
40
63
|
caps_app_for_teardown = actual[:caps][:app]
|
41
64
|
expected_app = File.absolute_path('api.apk')
|
42
|
-
|
43
|
-
|
44
|
-
appPackage: 'io.appium.android.apis',
|
45
|
-
appActivity: '.ApiDemos',
|
46
|
-
deviceName: 'Nexus 7')
|
47
|
-
expected = { caps: expected_caps,
|
48
|
-
automationName: nil,
|
65
|
+
|
66
|
+
expected = { automation_name: nil,
|
49
67
|
custom_url: false,
|
50
68
|
export_session: false,
|
51
69
|
default_wait: 1,
|
@@ -58,7 +76,26 @@ describe 'driver' do
|
|
58
76
|
wait_timeout: 30, # default
|
59
77
|
wait_interval: 0.5 } # default
|
60
78
|
|
61
|
-
|
79
|
+
# actual[:caps].to_json send to Appium server
|
80
|
+
caps_with_json = JSON.parse(actual[:caps].to_json)
|
81
|
+
caps_with_json['platformName'].must_equal 'android'
|
82
|
+
caps_with_json['app'].must_equal expected_app
|
83
|
+
caps_with_json['appPackage'].must_equal 'io.appium.android.apis'
|
84
|
+
caps_with_json['appActivity'].must_equal '.ApiDemos'
|
85
|
+
caps_with_json['deviceName'].must_equal 'Nexus 7'
|
86
|
+
caps_with_json['someCapability'].must_equal 'some_capability'
|
87
|
+
|
88
|
+
actual[:caps][:platformName].must_equal 'android'
|
89
|
+
actual[:caps][:app].must_equal expected_app
|
90
|
+
actual[:caps][:appPackage].must_equal 'io.appium.android.apis'
|
91
|
+
actual[:caps][:appActivity].must_equal '.ApiDemos'
|
92
|
+
actual[:caps][:deviceName].must_equal 'Nexus 7'
|
93
|
+
actual[:caps][:some_capability].must_equal 'some_capability'
|
94
|
+
|
95
|
+
dup_actual = actual.dup
|
96
|
+
dup_actual.delete(:caps)
|
97
|
+
|
98
|
+
if dup_actual != expected
|
62
99
|
diff = HashDiff.diff expected, actual
|
63
100
|
diff = "diff (expected, actual):\n#{diff}"
|
64
101
|
|
@@ -69,10 +106,6 @@ describe 'driver' do
|
|
69
106
|
message = "\n\nactual:\n\n: #{actual.ai}expected:\n\n#{expected.ai}\n\n#{diff}"
|
70
107
|
raise message
|
71
108
|
end
|
72
|
-
|
73
|
-
actual_selenium_caps = actual[:caps][:platformName]
|
74
|
-
actual_selenium_caps.must_equal 'Android'
|
75
|
-
actual[:caps][:app] = caps_app_for_teardown
|
76
109
|
end
|
77
110
|
|
78
111
|
t 'default timeout for http client' do
|
data/appium_lib.gemspec
CHANGED
@@ -29,6 +29,7 @@ Gem::Specification.new do |s|
|
|
29
29
|
|
30
30
|
s.add_development_dependency 'rubocop', '~> 0.46.0'
|
31
31
|
s.add_development_dependency 'rainbow', '>= 2.1.0', '< 2.2.0' # workaround for Gem::Ext::BuildError: ERROR: Failed to build gem native extension.
|
32
|
+
s.add_development_dependency 'pry'
|
32
33
|
|
33
34
|
s.files = `git ls-files`.split "\n"
|
34
35
|
end
|
data/docs/android_docs.md
CHANGED
@@ -1,8 +1,9 @@
|
|
1
|
-
##### [load_settings](https://github.com/appium/ruby_lib/blob/
|
1
|
+
##### [load_settings](https://github.com/appium/ruby_lib/blob/fa3b19c9921cbb84d9fd91a097b8c85d485b60f7/lib/appium_lib/driver.rb#L75)
|
2
2
|
|
3
3
|
> def self.load_settings(opts = {})
|
4
4
|
|
5
|
-
Load arbitrary text (toml format)
|
5
|
+
Load arbitrary text ([toml format](https://github.com/toml-lang/toml))
|
6
|
+
The toml is parsed by https://github.com/fbernier/tomlrb .
|
6
7
|
|
7
8
|
```
|
8
9
|
[caps]
|
@@ -26,11 +27,12 @@ __Returns:__
|
|
26
27
|
|
27
28
|
--
|
28
29
|
|
29
|
-
##### [load_appium_txt](https://github.com/appium/ruby_lib/blob/
|
30
|
+
##### [load_appium_txt](https://github.com/appium/ruby_lib/blob/fa3b19c9921cbb84d9fd91a097b8c85d485b60f7/lib/appium_lib/driver.rb#L111)
|
30
31
|
|
31
32
|
> def self.load_settings(opts = {})
|
32
33
|
|
33
|
-
Load arbitrary text (toml format)
|
34
|
+
Load arbitrary text ([toml format](https://github.com/toml-lang/toml))
|
35
|
+
The toml is parsed by https://github.com/fbernier/tomlrb .
|
34
36
|
|
35
37
|
```
|
36
38
|
[caps]
|
@@ -55,7 +57,7 @@ __Returns:__
|
|
55
57
|
|
56
58
|
--
|
57
59
|
|
58
|
-
##### [expand_required_files](https://github.com/appium/ruby_lib/blob/
|
60
|
+
##### [expand_required_files](https://github.com/appium/ruby_lib/blob/fa3b19c9921cbb84d9fd91a097b8c85d485b60f7/lib/appium_lib/driver.rb#L117)
|
59
61
|
|
60
62
|
> def self.expand_required_files(base_dir, file_paths)
|
61
63
|
|
@@ -73,7 +75,7 @@ __Returns:__
|
|
73
75
|
|
74
76
|
--
|
75
77
|
|
76
|
-
##### [symbolize_keys](https://github.com/appium/ruby_lib/blob/
|
78
|
+
##### [symbolize_keys](https://github.com/appium/ruby_lib/blob/fa3b19c9921cbb84d9fd91a097b8c85d485b60f7/lib/appium_lib/driver.rb#L149)
|
77
79
|
|
78
80
|
> def self.symbolize_keys(hash)
|
79
81
|
|
@@ -84,7 +86,7 @@ https://github.com/rails/docrails/blob/a3b1105ada3da64acfa3843b164b14b734456a50/
|
|
84
86
|
|
85
87
|
--
|
86
88
|
|
87
|
-
##### [promote_singleton_appium_methods](https://github.com/appium/ruby_lib/blob/
|
89
|
+
##### [promote_singleton_appium_methods](https://github.com/appium/ruby_lib/blob/fa3b19c9921cbb84d9fd91a097b8c85d485b60f7/lib/appium_lib/driver.rb#L170)
|
88
90
|
|
89
91
|
> def self.promote_singleton_appium_methods(modules)
|
90
92
|
|
@@ -102,7 +104,7 @@ otherwise, the array of modules will be used as the promotion target.
|
|
102
104
|
|
103
105
|
--
|
104
106
|
|
105
|
-
##### [promote_appium_methods](https://github.com/appium/ruby_lib/blob/
|
107
|
+
##### [promote_appium_methods](https://github.com/appium/ruby_lib/blob/fa3b19c9921cbb84d9fd91a097b8c85d485b60f7/lib/appium_lib/driver.rb#L223)
|
106
108
|
|
107
109
|
> def self.promote_appium_methods(class_array)
|
108
110
|
|
@@ -132,7 +134,7 @@ __Parameters:__
|
|
132
134
|
|
133
135
|
--
|
134
136
|
|
135
|
-
##### [init_caps_for_appium](https://github.com/appium/ruby_lib/blob/
|
137
|
+
##### [init_caps_for_appium](https://github.com/appium/ruby_lib/blob/fa3b19c9921cbb84d9fd91a097b8c85d485b60f7/lib/appium_lib/driver.rb#L258)
|
136
138
|
|
137
139
|
> def self.init_caps_for_appium(opts_caps = {})
|
138
140
|
|
@@ -140,9 +142,18 @@ except for browser_name, default capability is equal to ::Selenium::WebDriver::R
|
|
140
142
|
Because Selenium::WebDriver::Remote::Bridge uses Capabilities.firefox by default
|
141
143
|
https://github.com/SeleniumHQ/selenium/blob/selenium-3.0.1/rb/lib/selenium/webdriver/remote/bridge.rb#L67
|
142
144
|
|
145
|
+
__Parameters:__
|
146
|
+
|
147
|
+
[Hash] opts_caps - Capabilities for Appium server. All capability keys are converted to lowerCamelCase when
|
148
|
+
this client sends capabilities to Appium server as JSON format.
|
149
|
+
|
150
|
+
__Returns:__
|
151
|
+
|
152
|
+
[Selenium::WebDriver::Remote::Capabilities] Return instance of Selenium::WebDriver::Remote::Capabilities
|
153
|
+
|
143
154
|
--
|
144
155
|
|
145
|
-
##### [global_webdriver_http_sleep](https://github.com/appium/ruby_lib/blob/
|
156
|
+
##### [global_webdriver_http_sleep](https://github.com/appium/ruby_lib/blob/fa3b19c9921cbb84d9fd91a097b8c85d485b60f7/lib/appium_lib/driver.rb#L276)
|
146
157
|
|
147
158
|
> def global_webdriver_http_sleep
|
148
159
|
|
@@ -150,7 +161,7 @@ The amount to sleep in seconds before every webdriver http call.
|
|
150
161
|
|
151
162
|
--
|
152
163
|
|
153
|
-
##### [global_webdriver_http_sleep=](https://github.com/appium/ruby_lib/blob/
|
164
|
+
##### [global_webdriver_http_sleep=](https://github.com/appium/ruby_lib/blob/fa3b19c9921cbb84d9fd91a097b8c85d485b60f7/lib/appium_lib/driver.rb#L276)
|
154
165
|
|
155
166
|
> def global_webdriver_http_sleep=(value)
|
156
167
|
|
@@ -158,7 +169,7 @@ The amount to sleep in seconds before every webdriver http call.
|
|
158
169
|
|
159
170
|
--
|
160
171
|
|
161
|
-
##### [caps](https://github.com/appium/ruby_lib/blob/
|
172
|
+
##### [caps](https://github.com/appium/ruby_lib/blob/fa3b19c9921cbb84d9fd91a097b8c85d485b60f7/lib/appium_lib/driver.rb#L278)
|
162
173
|
|
163
174
|
> def caps
|
164
175
|
|
@@ -166,7 +177,7 @@ Selenium webdriver capabilities
|
|
166
177
|
|
167
178
|
--
|
168
179
|
|
169
|
-
##### [caps=](https://github.com/appium/ruby_lib/blob/
|
180
|
+
##### [caps=](https://github.com/appium/ruby_lib/blob/fa3b19c9921cbb84d9fd91a097b8c85d485b60f7/lib/appium_lib/driver.rb#L278)
|
170
181
|
|
171
182
|
> def caps=(value)
|
172
183
|
|
@@ -174,7 +185,7 @@ Selenium webdriver capabilities
|
|
174
185
|
|
175
186
|
--
|
176
187
|
|
177
|
-
##### [custom_url](https://github.com/appium/ruby_lib/blob/
|
188
|
+
##### [custom_url](https://github.com/appium/ruby_lib/blob/fa3b19c9921cbb84d9fd91a097b8c85d485b60f7/lib/appium_lib/driver.rb#L280)
|
178
189
|
|
179
190
|
> def custom_url
|
180
191
|
|
@@ -182,7 +193,7 @@ Custom URL for the selenium server
|
|
182
193
|
|
183
194
|
--
|
184
195
|
|
185
|
-
##### [custom_url=](https://github.com/appium/ruby_lib/blob/
|
196
|
+
##### [custom_url=](https://github.com/appium/ruby_lib/blob/fa3b19c9921cbb84d9fd91a097b8c85d485b60f7/lib/appium_lib/driver.rb#L280)
|
186
197
|
|
187
198
|
> def custom_url=(value)
|
188
199
|
|
@@ -190,7 +201,7 @@ Custom URL for the selenium server
|
|
190
201
|
|
191
202
|
--
|
192
203
|
|
193
|
-
##### [export_session](https://github.com/appium/ruby_lib/blob/
|
204
|
+
##### [export_session](https://github.com/appium/ruby_lib/blob/fa3b19c9921cbb84d9fd91a097b8c85d485b60f7/lib/appium_lib/driver.rb#L282)
|
194
205
|
|
195
206
|
> def export_session
|
196
207
|
|
@@ -198,7 +209,7 @@ Export session id to textfile in /tmp for 3rd party tools
|
|
198
209
|
|
199
210
|
--
|
200
211
|
|
201
|
-
##### [export_session=](https://github.com/appium/ruby_lib/blob/
|
212
|
+
##### [export_session=](https://github.com/appium/ruby_lib/blob/fa3b19c9921cbb84d9fd91a097b8c85d485b60f7/lib/appium_lib/driver.rb#L282)
|
202
213
|
|
203
214
|
> def export_session=(value)
|
204
215
|
|
@@ -206,7 +217,7 @@ Export session id to textfile in /tmp for 3rd party tools
|
|
206
217
|
|
207
218
|
--
|
208
219
|
|
209
|
-
##### [default_wait](https://github.com/appium/ruby_lib/blob/
|
220
|
+
##### [default_wait](https://github.com/appium/ruby_lib/blob/fa3b19c9921cbb84d9fd91a097b8c85d485b60f7/lib/appium_lib/driver.rb#L287)
|
210
221
|
|
211
222
|
> def default_wait
|
212
223
|
|
@@ -220,39 +231,39 @@ __Returns:__
|
|
220
231
|
|
221
232
|
--
|
222
233
|
|
223
|
-
##### [sauce_username](https://github.com/appium/ruby_lib/blob/
|
234
|
+
##### [sauce_username](https://github.com/appium/ruby_lib/blob/fa3b19c9921cbb84d9fd91a097b8c85d485b60f7/lib/appium_lib/driver.rb#L289)
|
224
235
|
|
225
236
|
> def sauce_username
|
226
237
|
|
227
|
-
Username for use on Sauce Labs
|
238
|
+
Username for use on Sauce Labs. Set `false` to disable Sauce, even when SAUCE_USERNAME is in ENV.
|
228
239
|
|
229
240
|
--
|
230
241
|
|
231
|
-
##### [sauce_username=](https://github.com/appium/ruby_lib/blob/
|
242
|
+
##### [sauce_username=](https://github.com/appium/ruby_lib/blob/fa3b19c9921cbb84d9fd91a097b8c85d485b60f7/lib/appium_lib/driver.rb#L289)
|
232
243
|
|
233
244
|
> def sauce_username=(value)
|
234
245
|
|
235
|
-
Username for use on Sauce Labs
|
246
|
+
Username for use on Sauce Labs. Set `false` to disable Sauce, even when SAUCE_USERNAME is in ENV.
|
236
247
|
|
237
248
|
--
|
238
249
|
|
239
|
-
##### [sauce_access_key](https://github.com/appium/ruby_lib/blob/
|
250
|
+
##### [sauce_access_key](https://github.com/appium/ruby_lib/blob/fa3b19c9921cbb84d9fd91a097b8c85d485b60f7/lib/appium_lib/driver.rb#L291)
|
240
251
|
|
241
252
|
> def sauce_access_key
|
242
253
|
|
243
|
-
Access Key for use on Sauce Labs
|
254
|
+
Access Key for use on Sauce Labs. Set `false` to disable Sauce, even when SAUCE_ACCESS_KEY is in ENV.
|
244
255
|
|
245
256
|
--
|
246
257
|
|
247
|
-
##### [sauce_access_key=](https://github.com/appium/ruby_lib/blob/
|
258
|
+
##### [sauce_access_key=](https://github.com/appium/ruby_lib/blob/fa3b19c9921cbb84d9fd91a097b8c85d485b60f7/lib/appium_lib/driver.rb#L291)
|
248
259
|
|
249
260
|
> def sauce_access_key=(value)
|
250
261
|
|
251
|
-
Access Key for use on Sauce Labs
|
262
|
+
Access Key for use on Sauce Labs. Set `false` to disable Sauce, even when SAUCE_ACCESS_KEY is in ENV.
|
252
263
|
|
253
264
|
--
|
254
265
|
|
255
|
-
##### [appium_port](https://github.com/appium/ruby_lib/blob/
|
266
|
+
##### [appium_port](https://github.com/appium/ruby_lib/blob/fa3b19c9921cbb84d9fd91a097b8c85d485b60f7/lib/appium_lib/driver.rb#L293)
|
256
267
|
|
257
268
|
> def appium_port
|
258
269
|
|
@@ -260,7 +271,7 @@ Appium's server port
|
|
260
271
|
|
261
272
|
--
|
262
273
|
|
263
|
-
##### [appium_port=](https://github.com/appium/ruby_lib/blob/
|
274
|
+
##### [appium_port=](https://github.com/appium/ruby_lib/blob/fa3b19c9921cbb84d9fd91a097b8c85d485b60f7/lib/appium_lib/driver.rb#L293)
|
264
275
|
|
265
276
|
> def appium_port=(value)
|
266
277
|
|
@@ -268,7 +279,7 @@ Appium's server port
|
|
268
279
|
|
269
280
|
--
|
270
281
|
|
271
|
-
##### [appium_device](https://github.com/appium/ruby_lib/blob/
|
282
|
+
##### [appium_device](https://github.com/appium/ruby_lib/blob/fa3b19c9921cbb84d9fd91a097b8c85d485b60f7/lib/appium_lib/driver.rb#L295)
|
272
283
|
|
273
284
|
> def appium_device
|
274
285
|
|
@@ -276,7 +287,7 @@ Device type to request from the appium server
|
|
276
287
|
|
277
288
|
--
|
278
289
|
|
279
|
-
##### [appium_device=](https://github.com/appium/ruby_lib/blob/
|
290
|
+
##### [appium_device=](https://github.com/appium/ruby_lib/blob/fa3b19c9921cbb84d9fd91a097b8c85d485b60f7/lib/appium_lib/driver.rb#L295)
|
280
291
|
|
281
292
|
> def appium_device=(value)
|
282
293
|
|
@@ -284,7 +295,7 @@ Device type to request from the appium server
|
|
284
295
|
|
285
296
|
--
|
286
297
|
|
287
|
-
##### [automation_name](https://github.com/appium/ruby_lib/blob/
|
298
|
+
##### [automation_name](https://github.com/appium/ruby_lib/blob/fa3b19c9921cbb84d9fd91a097b8c85d485b60f7/lib/appium_lib/driver.rb#L298)
|
288
299
|
|
289
300
|
> def automation_name
|
290
301
|
|
@@ -293,7 +304,7 @@ If automation_name is nil, it is not set both client side and server side.
|
|
293
304
|
|
294
305
|
--
|
295
306
|
|
296
|
-
##### [appium_server_version](https://github.com/appium/ruby_lib/blob/
|
307
|
+
##### [appium_server_version](https://github.com/appium/ruby_lib/blob/fa3b19c9921cbb84d9fd91a097b8c85d485b60f7/lib/appium_lib/driver.rb#L300)
|
297
308
|
|
298
309
|
> def appium_server_version
|
299
310
|
|
@@ -314,7 +325,7 @@ __Returns:__
|
|
314
325
|
|
315
326
|
--
|
316
327
|
|
317
|
-
##### [appium_debug](https://github.com/appium/ruby_lib/blob/
|
328
|
+
##### [appium_debug](https://github.com/appium/ruby_lib/blob/fa3b19c9921cbb84d9fd91a097b8c85d485b60f7/lib/appium_lib/driver.rb#L302)
|
318
329
|
|
319
330
|
> def appium_debug
|
320
331
|
|
@@ -322,7 +333,7 @@ Boolean debug mode for the Appium Ruby bindings
|
|
322
333
|
|
323
334
|
--
|
324
335
|
|
325
|
-
##### [appium_debug=](https://github.com/appium/ruby_lib/blob/
|
336
|
+
##### [appium_debug=](https://github.com/appium/ruby_lib/blob/fa3b19c9921cbb84d9fd91a097b8c85d485b60f7/lib/appium_lib/driver.rb#L302)
|
326
337
|
|
327
338
|
> def appium_debug=(value)
|
328
339
|
|
@@ -330,7 +341,7 @@ Boolean debug mode for the Appium Ruby bindings
|
|
330
341
|
|
331
342
|
--
|
332
343
|
|
333
|
-
##### [listener](https://github.com/appium/ruby_lib/blob/
|
344
|
+
##### [listener](https://github.com/appium/ruby_lib/blob/fa3b19c9921cbb84d9fd91a097b8c85d485b60f7/lib/appium_lib/driver.rb#L304)
|
334
345
|
|
335
346
|
> def listener
|
336
347
|
|
@@ -338,7 +349,7 @@ instance of AbstractEventListener for logging support
|
|
338
349
|
|
339
350
|
--
|
340
351
|
|
341
|
-
##### [listener=](https://github.com/appium/ruby_lib/blob/
|
352
|
+
##### [listener=](https://github.com/appium/ruby_lib/blob/fa3b19c9921cbb84d9fd91a097b8c85d485b60f7/lib/appium_lib/driver.rb#L304)
|
342
353
|
|
343
354
|
> def listener=(value)
|
344
355
|
|
@@ -346,7 +357,7 @@ instance of AbstractEventListener for logging support
|
|
346
357
|
|
347
358
|
--
|
348
359
|
|
349
|
-
##### [driver](https://github.com/appium/ruby_lib/blob/
|
360
|
+
##### [driver](https://github.com/appium/ruby_lib/blob/fa3b19c9921cbb84d9fd91a097b8c85d485b60f7/lib/appium_lib/driver.rb#L307)
|
350
361
|
|
351
362
|
> def driver
|
352
363
|
|
@@ -358,7 +369,7 @@ __Returns:__
|
|
358
369
|
|
359
370
|
--
|
360
371
|
|
361
|
-
##### [http_client](https://github.com/appium/ruby_lib/blob/
|
372
|
+
##### [http_client](https://github.com/appium/ruby_lib/blob/fa3b19c9921cbb84d9fd91a097b8c85d485b60f7/lib/appium_lib/driver.rb#L310)
|
362
373
|
|
363
374
|
> def http_client
|
364
375
|
|
@@ -370,7 +381,7 @@ __Returns:__
|
|
370
381
|
|
371
382
|
--
|
372
383
|
|
373
|
-
##### [appium_wait_timeout](https://github.com/appium/ruby_lib/blob/
|
384
|
+
##### [appium_wait_timeout](https://github.com/appium/ruby_lib/blob/fa3b19c9921cbb84d9fd91a097b8c85d485b60f7/lib/appium_lib/driver.rb#L315)
|
374
385
|
|
375
386
|
> def appium_wait_timeout
|
376
387
|
|
@@ -384,7 +395,7 @@ __Returns:__
|
|
384
395
|
|
385
396
|
--
|
386
397
|
|
387
|
-
##### [appium_wait_interval](https://github.com/appium/ruby_lib/blob/
|
398
|
+
##### [appium_wait_interval](https://github.com/appium/ruby_lib/blob/fa3b19c9921cbb84d9fd91a097b8c85d485b60f7/lib/appium_lib/driver.rb#L320)
|
388
399
|
|
389
400
|
> def appium_wait_interval
|
390
401
|
|
@@ -398,7 +409,7 @@ __Returns:__
|
|
398
409
|
|
399
410
|
--
|
400
411
|
|
401
|
-
##### [initialize](https://github.com/appium/ruby_lib/blob/
|
412
|
+
##### [initialize](https://github.com/appium/ruby_lib/blob/fa3b19c9921cbb84d9fd91a097b8c85d485b60f7/lib/appium_lib/driver.rb#L360)
|
402
413
|
|
403
414
|
> def initialize(opts = {})
|
404
415
|
|
@@ -414,7 +425,7 @@ __Returns:__
|
|
414
425
|
|
415
426
|
--
|
416
427
|
|
417
|
-
##### [driver_attributes](https://github.com/appium/ruby_lib/blob/
|
428
|
+
##### [driver_attributes](https://github.com/appium/ruby_lib/blob/fa3b19c9921cbb84d9fd91a097b8c85d485b60f7/lib/appium_lib/driver.rb#L435)
|
418
429
|
|
419
430
|
> def driver_attributes
|
420
431
|
|
@@ -422,7 +433,7 @@ Returns a hash of the driver attributes
|
|
422
433
|
|
423
434
|
--
|
424
435
|
|
425
|
-
##### [device_is_android?](https://github.com/appium/ruby_lib/blob/
|
436
|
+
##### [device_is_android?](https://github.com/appium/ruby_lib/blob/fa3b19c9921cbb84d9fd91a097b8c85d485b60f7/lib/appium_lib/driver.rb#L459)
|
426
437
|
|
427
438
|
> def device_is_android?
|
428
439
|
|
@@ -434,7 +445,7 @@ __Returns:__
|
|
434
445
|
|
435
446
|
--
|
436
447
|
|
437
|
-
##### [automation_name_is_xcuitest?](https://github.com/appium/ruby_lib/blob/
|
448
|
+
##### [automation_name_is_xcuitest?](https://github.com/appium/ruby_lib/blob/fa3b19c9921cbb84d9fd91a097b8c85d485b60f7/lib/appium_lib/driver.rb#L465)
|
438
449
|
|
439
450
|
> def automation_name_is_xcuitest?
|
440
451
|
|
@@ -446,7 +457,7 @@ __Returns:__
|
|
446
457
|
|
447
458
|
--
|
448
459
|
|
449
|
-
##### [check_server_version_xcuitest](https://github.com/appium/ruby_lib/blob/
|
460
|
+
##### [check_server_version_xcuitest](https://github.com/appium/ruby_lib/blob/fa3b19c9921cbb84d9fd91a097b8c85d485b60f7/lib/appium_lib/driver.rb#L472)
|
450
461
|
|
451
462
|
> def check_server_version_xcuitest
|
452
463
|
|
@@ -459,7 +470,7 @@ __Returns:__
|
|
459
470
|
|
460
471
|
--
|
461
472
|
|
462
|
-
##### [appium_client_version](https://github.com/appium/ruby_lib/blob/
|
473
|
+
##### [appium_client_version](https://github.com/appium/ruby_lib/blob/fa3b19c9921cbb84d9fd91a097b8c85d485b60f7/lib/appium_lib/driver.rb#L504)
|
463
474
|
|
464
475
|
> def appium_client_version
|
465
476
|
|
@@ -477,7 +488,7 @@ __Returns:__
|
|
477
488
|
|
478
489
|
--
|
479
490
|
|
480
|
-
##### [absolute_app_path](https://github.com/appium/ruby_lib/blob/
|
491
|
+
##### [absolute_app_path](https://github.com/appium/ruby_lib/blob/fa3b19c9921cbb84d9fd91a097b8c85d485b60f7/lib/appium_lib/driver.rb#L516)
|
481
492
|
|
482
493
|
> def self.absolute_app_path(opts)
|
483
494
|
|
@@ -494,7 +505,7 @@ __Returns:__
|
|
494
505
|
|
495
506
|
--
|
496
507
|
|
497
|
-
##### [server_url](https://github.com/appium/ruby_lib/blob/
|
508
|
+
##### [server_url](https://github.com/appium/ruby_lib/blob/fa3b19c9921cbb84d9fd91a097b8c85d485b60f7/lib/appium_lib/driver.rb#L549)
|
498
509
|
|
499
510
|
> def server_url
|
500
511
|
|
@@ -506,7 +517,7 @@ __Returns:__
|
|
506
517
|
|
507
518
|
--
|
508
519
|
|
509
|
-
##### [restart](https://github.com/appium/ruby_lib/blob/
|
520
|
+
##### [restart](https://github.com/appium/ruby_lib/blob/fa3b19c9921cbb84d9fd91a097b8c85d485b60f7/lib/appium_lib/driver.rb#L560)
|
510
521
|
|
511
522
|
> def restart
|
512
523
|
|
@@ -518,7 +529,7 @@ __Returns:__
|
|
518
529
|
|
519
530
|
--
|
520
531
|
|
521
|
-
##### [screenshot](https://github.com/appium/ruby_lib/blob/
|
532
|
+
##### [screenshot](https://github.com/appium/ruby_lib/blob/fa3b19c9921cbb84d9fd91a097b8c85d485b60f7/lib/appium_lib/driver.rb#L571)
|
522
533
|
|
523
534
|
> def screenshot(png_save_path)
|
524
535
|
|
@@ -536,7 +547,7 @@ __Returns:__
|
|
536
547
|
|
537
548
|
--
|
538
549
|
|
539
|
-
##### [driver_quit](https://github.com/appium/ruby_lib/blob/
|
550
|
+
##### [driver_quit](https://github.com/appium/ruby_lib/blob/fa3b19c9921cbb84d9fd91a097b8c85d485b60f7/lib/appium_lib/driver.rb#L578)
|
540
551
|
|
541
552
|
> def driver_quit
|
542
553
|
|
@@ -548,7 +559,7 @@ __Returns:__
|
|
548
559
|
|
549
560
|
--
|
550
561
|
|
551
|
-
##### [start_driver](https://github.com/appium/ruby_lib/blob/
|
562
|
+
##### [start_driver](https://github.com/appium/ruby_lib/blob/fa3b19c9921cbb84d9fd91a097b8c85d485b60f7/lib/appium_lib/driver.rb#L588)
|
552
563
|
|
553
564
|
> def start_driver
|
554
565
|
|
@@ -560,7 +571,7 @@ __Returns:__
|
|
560
571
|
|
561
572
|
--
|
562
573
|
|
563
|
-
##### [no_wait](https://github.com/appium/ruby_lib/blob/
|
574
|
+
##### [no_wait](https://github.com/appium/ruby_lib/blob/fa3b19c9921cbb84d9fd91a097b8c85d485b60f7/lib/appium_lib/driver.rb#L626)
|
564
575
|
|
565
576
|
> def no_wait
|
566
577
|
|
@@ -568,7 +579,7 @@ Set implicit wait to zero.
|
|
568
579
|
|
569
580
|
--
|
570
581
|
|
571
|
-
##### [set_wait](https://github.com/appium/ruby_lib/blob/
|
582
|
+
##### [set_wait](https://github.com/appium/ruby_lib/blob/fa3b19c9921cbb84d9fd91a097b8c85d485b60f7/lib/appium_lib/driver.rb#L640)
|
572
583
|
|
573
584
|
> def set_wait(timeout = nil)
|
574
585
|
|
@@ -590,7 +601,7 @@ __Returns:__
|
|
590
601
|
|
591
602
|
--
|
592
603
|
|
593
|
-
##### [exists](https://github.com/appium/ruby_lib/blob/
|
604
|
+
##### [exists](https://github.com/appium/ruby_lib/blob/fa3b19c9921cbb84d9fd91a097b8c85d485b60f7/lib/appium_lib/driver.rb#L657)
|
594
605
|
|
595
606
|
> def exists(pre_check = 0, post_check = @default_wait)
|
596
607
|
|
@@ -614,7 +625,7 @@ __Returns:__
|
|
614
625
|
|
615
626
|
--
|
616
627
|
|
617
|
-
##### [execute_script](https://github.com/appium/ruby_lib/blob/
|
628
|
+
##### [execute_script](https://github.com/appium/ruby_lib/blob/fa3b19c9921cbb84d9fd91a097b8c85d485b60f7/lib/appium_lib/driver.rb#L681)
|
618
629
|
|
619
630
|
> def execute_script(script, *args)
|
620
631
|
|
@@ -632,7 +643,7 @@ __Returns:__
|
|
632
643
|
|
633
644
|
--
|
634
645
|
|
635
|
-
##### [find_elements](https://github.com/appium/ruby_lib/blob/
|
646
|
+
##### [find_elements](https://github.com/appium/ruby_lib/blob/fa3b19c9921cbb84d9fd91a097b8c85d485b60f7/lib/appium_lib/driver.rb#L689)
|
636
647
|
|
637
648
|
> def find_elements(*args)
|
638
649
|
|
@@ -648,7 +659,7 @@ __Returns:__
|
|
648
659
|
|
649
660
|
--
|
650
661
|
|
651
|
-
##### [find_element](https://github.com/appium/ruby_lib/blob/
|
662
|
+
##### [find_element](https://github.com/appium/ruby_lib/blob/fa3b19c9921cbb84d9fd91a097b8c85d485b60f7/lib/appium_lib/driver.rb#L697)
|
652
663
|
|
653
664
|
> def find_element(*args)
|
654
665
|
|
@@ -664,7 +675,7 @@ __Returns:__
|
|
664
675
|
|
665
676
|
--
|
666
677
|
|
667
|
-
##### [set_location](https://github.com/appium/ruby_lib/blob/
|
678
|
+
##### [set_location](https://github.com/appium/ruby_lib/blob/fa3b19c9921cbb84d9fd91a097b8c85d485b60f7/lib/appium_lib/driver.rb#L710)
|
668
679
|
|
669
680
|
> def set_location(opts = {})
|
670
681
|
|
@@ -680,7 +691,7 @@ __Returns:__
|
|
680
691
|
|
681
692
|
--
|
682
693
|
|
683
|
-
##### [x](https://github.com/appium/ruby_lib/blob/
|
694
|
+
##### [x](https://github.com/appium/ruby_lib/blob/fa3b19c9921cbb84d9fd91a097b8c85d485b60f7/lib/appium_lib/driver.rb#L720)
|
684
695
|
|
685
696
|
> def x
|
686
697
|
|
@@ -693,7 +704,7 @@ __Returns:__
|
|
693
704
|
|
694
705
|
--
|
695
706
|
|
696
|
-
##### [set_automation_name_if_nil](https://github.com/appium/ruby_lib/blob/
|
707
|
+
##### [set_automation_name_if_nil](https://github.com/appium/ruby_lib/blob/fa3b19c9921cbb84d9fd91a097b8c85d485b60f7/lib/appium_lib/driver.rb#L729)
|
697
708
|
|
698
709
|
> def set_automation_name_if_nil
|
699
710
|
|
@@ -702,7 +713,7 @@ Since @automation_name is set only client side before start_driver is called.
|
|
702
713
|
|
703
714
|
--
|
704
715
|
|
705
|
-
##### [logger=](https://github.com/appium/ruby_lib/blob/
|
716
|
+
##### [logger=](https://github.com/appium/ruby_lib/blob/fa3b19c9921cbb84d9fd91a097b8c85d485b60f7/lib/appium_lib/logger.rb#L13)
|
706
717
|
|
707
718
|
> def logger=(value)
|
708
719
|
|
@@ -714,7 +725,7 @@ __Parameters:__
|
|
714
725
|
|
715
726
|
--
|
716
727
|
|
717
|
-
##### [logger](https://github.com/appium/ruby_lib/blob/
|
728
|
+
##### [logger](https://github.com/appium/ruby_lib/blob/fa3b19c9921cbb84d9fd91a097b8c85d485b60f7/lib/appium_lib/logger.rb#L17)
|
718
729
|
|
719
730
|
> def logger
|
720
731
|
|
@@ -722,7 +733,7 @@ __Parameters:__
|
|
722
733
|
|
723
734
|
--
|
724
735
|
|
725
|
-
##### [app_strings](https://github.com/appium/ruby_lib/blob/
|
736
|
+
##### [app_strings](https://github.com/appium/ruby_lib/blob/fa3b19c9921cbb84d9fd91a097b8c85d485b60f7/lib/appium_lib/device/device.rb#L7)
|
726
737
|
|
727
738
|
> def app_strings
|
728
739
|
|
@@ -733,7 +744,7 @@ app_strings #=> "TransitionsTitle"=>"Transitions", "WebTitle"=>"Web"
|
|
733
744
|
|
734
745
|
--
|
735
746
|
|
736
|
-
##### [background_app](https://github.com/appium/ruby_lib/blob/
|
747
|
+
##### [background_app](https://github.com/appium/ruby_lib/blob/fa3b19c9921cbb84d9fd91a097b8c85d485b60f7/lib/appium_lib/device/device.rb#L13)
|
737
748
|
|
738
749
|
> def background_app
|
739
750
|
|
@@ -742,7 +753,7 @@ This is a blocking application
|
|
742
753
|
|
743
754
|
--
|
744
755
|
|
745
|
-
##### [current_activity](https://github.com/appium/ruby_lib/blob/
|
756
|
+
##### [current_activity](https://github.com/appium/ruby_lib/blob/fa3b19c9921cbb84d9fd91a097b8c85d485b60f7/lib/appium_lib/device/device.rb#L18)
|
746
757
|
|
747
758
|
> def current_activity
|
748
759
|
|
@@ -750,7 +761,7 @@ This is a blocking application
|
|
750
761
|
|
751
762
|
--
|
752
763
|
|
753
|
-
##### [launch_app](https://github.com/appium/ruby_lib/blob/
|
764
|
+
##### [launch_app](https://github.com/appium/ruby_lib/blob/fa3b19c9921cbb84d9fd91a097b8c85d485b60f7/lib/appium_lib/device/device.rb#L20)
|
754
765
|
|
755
766
|
> def launch_app
|
756
767
|
|
@@ -758,7 +769,7 @@ Start the simulator and application configured with desired capabilities
|
|
758
769
|
|
759
770
|
--
|
760
771
|
|
761
|
-
##### [reset](https://github.com/appium/ruby_lib/blob/
|
772
|
+
##### [reset](https://github.com/appium/ruby_lib/blob/fa3b19c9921cbb84d9fd91a097b8c85d485b60f7/lib/appium_lib/device/device.rb#L23)
|
762
773
|
|
763
774
|
> def reset
|
764
775
|
|
@@ -766,7 +777,7 @@ Reset the device, relaunching the application.
|
|
766
777
|
|
767
778
|
--
|
768
779
|
|
769
|
-
##### [shake](https://github.com/appium/ruby_lib/blob/
|
780
|
+
##### [shake](https://github.com/appium/ruby_lib/blob/fa3b19c9921cbb84d9fd91a097b8c85d485b60f7/lib/appium_lib/device/device.rb#L26)
|
770
781
|
|
771
782
|
> def shake
|
772
783
|
|
@@ -774,7 +785,7 @@ Cause the device to shake
|
|
774
785
|
|
775
786
|
--
|
776
787
|
|
777
|
-
##### [toggle_flight_mode](https://github.com/appium/ruby_lib/blob/
|
788
|
+
##### [toggle_flight_mode](https://github.com/appium/ruby_lib/blob/fa3b19c9921cbb84d9fd91a097b8c85d485b60f7/lib/appium_lib/device/device.rb#L29)
|
778
789
|
|
779
790
|
> def toggle_flight_mode
|
780
791
|
|
@@ -782,7 +793,7 @@ Toggle flight mode on or off
|
|
782
793
|
|
783
794
|
--
|
784
795
|
|
785
|
-
##### [device_locked?](https://github.com/appium/ruby_lib/blob/
|
796
|
+
##### [device_locked?](https://github.com/appium/ruby_lib/blob/fa3b19c9921cbb84d9fd91a097b8c85d485b60f7/lib/appium_lib/device/device.rb#L32)
|
786
797
|
|
787
798
|
> def device_locked?
|
788
799
|
|
@@ -790,7 +801,7 @@ Toggle flight mode on or off
|
|
790
801
|
|
791
802
|
--
|
792
803
|
|
793
|
-
##### [hide_keyboard](https://github.com/appium/ruby_lib/blob/
|
804
|
+
##### [hide_keyboard](https://github.com/appium/ruby_lib/blob/fa3b19c9921cbb84d9fd91a097b8c85d485b60f7/lib/appium_lib/device/device.rb#L34)
|
794
805
|
|
795
806
|
> def hide_keyboard
|
796
807
|
|
@@ -803,7 +814,7 @@ Defaults to 'Done'.
|
|
803
814
|
|
804
815
|
--
|
805
816
|
|
806
|
-
##### [press_keycode](https://github.com/appium/ruby_lib/blob/
|
817
|
+
##### [press_keycode](https://github.com/appium/ruby_lib/blob/fa3b19c9921cbb84d9fd91a097b8c85d485b60f7/lib/appium_lib/device/device.rb#L43)
|
807
818
|
|
808
819
|
> def press_keycode
|
809
820
|
|
@@ -818,7 +829,7 @@ __Parameters:__
|
|
818
829
|
|
819
830
|
--
|
820
831
|
|
821
|
-
##### [long_press_keycode](https://github.com/appium/ruby_lib/blob/
|
832
|
+
##### [long_press_keycode](https://github.com/appium/ruby_lib/blob/fa3b19c9921cbb84d9fd91a097b8c85d485b60f7/lib/appium_lib/device/device.rb#L49)
|
822
833
|
|
823
834
|
> def long_press_keycode
|
824
835
|
|
@@ -833,7 +844,7 @@ __Parameters:__
|
|
833
844
|
|
834
845
|
--
|
835
846
|
|
836
|
-
##### [push_file](https://github.com/appium/ruby_lib/blob/
|
847
|
+
##### [push_file](https://github.com/appium/ruby_lib/blob/fa3b19c9921cbb84d9fd91a097b8c85d485b60f7/lib/appium_lib/device/device.rb#L55)
|
837
848
|
|
838
849
|
> def push_file
|
839
850
|
|
@@ -847,7 +858,7 @@ __Parameters:__
|
|
847
858
|
|
848
859
|
--
|
849
860
|
|
850
|
-
##### [pull_file](https://github.com/appium/ruby_lib/blob/
|
861
|
+
##### [pull_file](https://github.com/appium/ruby_lib/blob/fa3b19c9921cbb84d9fd91a097b8c85d485b60f7/lib/appium_lib/device/device.rb#L60)
|
851
862
|
|
852
863
|
> def pull_file
|
853
864
|
|
@@ -864,7 +875,7 @@ __Parameters:__
|
|
864
875
|
|
865
876
|
--
|
866
877
|
|
867
|
-
##### [pull_folder](https://github.com/appium/ruby_lib/blob/
|
878
|
+
##### [pull_folder](https://github.com/appium/ruby_lib/blob/fa3b19c9921cbb84d9fd91a097b8c85d485b60f7/lib/appium_lib/device/device.rb#L70)
|
868
879
|
|
869
880
|
> def pull_folder
|
870
881
|
|
@@ -879,7 +890,7 @@ __Parameters:__
|
|
879
890
|
|
880
891
|
--
|
881
892
|
|
882
|
-
##### [touch_id](https://github.com/appium/ruby_lib/blob/
|
893
|
+
##### [touch_id](https://github.com/appium/ruby_lib/blob/fa3b19c9921cbb84d9fd91a097b8c85d485b60f7/lib/appium_lib/device/device.rb#L78)
|
883
894
|
|
884
895
|
> def touch_id
|
885
896
|
|
@@ -896,7 +907,7 @@ Defaults to true.
|
|
896
907
|
|
897
908
|
--
|
898
909
|
|
899
|
-
##### [end_coverage](https://github.com/appium/ruby_lib/blob/
|
910
|
+
##### [end_coverage](https://github.com/appium/ruby_lib/blob/fa3b19c9921cbb84d9fd91a097b8c85d485b60f7/lib/appium_lib/device/device.rb#L87)
|
900
911
|
|
901
912
|
> def end_coverage
|
902
913
|
|
@@ -910,7 +921,7 @@ __Parameters:__
|
|
910
921
|
|
911
922
|
--
|
912
923
|
|
913
|
-
##### [get_settings](https://github.com/appium/ruby_lib/blob/
|
924
|
+
##### [get_settings](https://github.com/appium/ruby_lib/blob/fa3b19c9921cbb84d9fd91a097b8c85d485b60f7/lib/appium_lib/device/device.rb#L92)
|
914
925
|
|
915
926
|
> def get_settings
|
916
927
|
|
@@ -918,7 +929,7 @@ Get appium Settings for current test session
|
|
918
929
|
|
919
930
|
--
|
920
931
|
|
921
|
-
##### [update_settings](https://github.com/appium/ruby_lib/blob/
|
932
|
+
##### [update_settings](https://github.com/appium/ruby_lib/blob/fa3b19c9921cbb84d9fd91a097b8c85d485b60f7/lib/appium_lib/device/device.rb#L95)
|
922
933
|
|
923
934
|
> def update_settings
|
924
935
|
|
@@ -930,7 +941,7 @@ __Parameters:__
|
|
930
941
|
|
931
942
|
--
|
932
943
|
|
933
|
-
##### [start_activity](https://github.com/appium/ruby_lib/blob/
|
944
|
+
##### [start_activity](https://github.com/appium/ruby_lib/blob/fa3b19c9921cbb84d9fd91a097b8c85d485b60f7/lib/appium_lib/device/device.rb#L99)
|
934
945
|
|
935
946
|
> def start_activity
|
936
947
|
|
@@ -944,7 +955,7 @@ start_activity app_package: 'io.appium.android.apis',
|
|
944
955
|
|
945
956
|
--
|
946
957
|
|
947
|
-
##### [get_network_connection](https://github.com/appium/ruby_lib/blob/
|
958
|
+
##### [get_network_connection](https://github.com/appium/ruby_lib/blob/fa3b19c9921cbb84d9fd91a097b8c85d485b60f7/lib/appium_lib/device/device.rb#L113)
|
948
959
|
|
949
960
|
> def get_network_connection
|
950
961
|
|
@@ -953,7 +964,7 @@ See set_network_connection method for return value
|
|
953
964
|
|
954
965
|
--
|
955
966
|
|
956
|
-
##### [set_network_connection](https://github.com/appium/ruby_lib/blob/
|
967
|
+
##### [set_network_connection](https://github.com/appium/ruby_lib/blob/fa3b19c9921cbb84d9fd91a097b8c85d485b60f7/lib/appium_lib/device/device.rb#L117)
|
957
968
|
|
958
969
|
> def set_network_connection
|
959
970
|
|
@@ -972,7 +983,35 @@ __Parameters:__
|
|
972
983
|
|
973
984
|
--
|
974
985
|
|
975
|
-
##### [
|
986
|
+
##### [set_immediate_value](https://github.com/appium/ruby_lib/blob/fa3b19c9921cbb84d9fd91a097b8c85d485b60f7/lib/appium_lib/device/device.rb#L130)
|
987
|
+
|
988
|
+
> def set_immediate_value
|
989
|
+
|
990
|
+
Set the value to element directly
|
991
|
+
for iOS; setValue is called in XCUITest instead because XCUITest doesn't provide set value directly.
|
992
|
+
https://github.com/appium/appium-xcuitest-driver/blob/793cdc7d5e84bd553e375076e1c6dc7e242c9cde/lib/commands/element.js#L123
|
993
|
+
|
994
|
+
```ruby
|
995
|
+
set_immediate_value element, 'hello'
|
996
|
+
```
|
997
|
+
|
998
|
+
--
|
999
|
+
|
1000
|
+
##### [get_performance_data_types](https://github.com/appium/ruby_lib/blob/fa3b19c9921cbb84d9fd91a097b8c85d485b60f7/lib/appium_lib/device/device.rb#L139)
|
1001
|
+
|
1002
|
+
> def get_performance_data_types
|
1003
|
+
|
1004
|
+
Get the information type of the system state which is supported to read such as
|
1005
|
+
cpu, memory, network, battery via adb commands.
|
1006
|
+
https://github.com/appium/appium-base-driver/blob/be29aec2318316d12b5c3295e924a5ba8f09b0fb/lib/mjsonwp/routes.js#L300
|
1007
|
+
|
1008
|
+
```ruby
|
1009
|
+
get_performance_data_types #=> ["cpuinfo", "batteryinfo", "networkinfo", "memoryinfo"]
|
1010
|
+
```
|
1011
|
+
|
1012
|
+
--
|
1013
|
+
|
1014
|
+
##### [extend_search_contexts](https://github.com/appium/ruby_lib/blob/fa3b19c9921cbb84d9fd91a097b8c85d485b60f7/lib/appium_lib/device/device.rb#L388)
|
976
1015
|
|
977
1016
|
> def extend_search_contexts
|
978
1017
|
|
@@ -980,7 +1019,7 @@ __Parameters:__
|
|
980
1019
|
|
981
1020
|
--
|
982
1021
|
|
983
|
-
##### [find_element](https://github.com/appium/ruby_lib/blob/
|
1022
|
+
##### [find_element](https://github.com/appium/ruby_lib/blob/fa3b19c9921cbb84d9fd91a097b8c85d485b60f7/lib/appium_lib/device/device.rb#L388)
|
984
1023
|
|
985
1024
|
> def find_element
|
986
1025
|
|
@@ -988,7 +1027,7 @@ __Parameters:__
|
|
988
1027
|
|
989
1028
|
--
|
990
1029
|
|
991
|
-
##### [find_elements](https://github.com/appium/ruby_lib/blob/
|
1030
|
+
##### [find_elements](https://github.com/appium/ruby_lib/blob/fa3b19c9921cbb84d9fd91a097b8c85d485b60f7/lib/appium_lib/device/device.rb#L388)
|
992
1031
|
|
993
1032
|
> def find_elements
|
994
1033
|
|
@@ -1000,7 +1039,7 @@ find_element/s with their accessibility_id
|
|
1000
1039
|
|
1001
1040
|
--
|
1002
1041
|
|
1003
|
-
##### [add_touch_actions](https://github.com/appium/ruby_lib/blob/
|
1042
|
+
##### [add_touch_actions](https://github.com/appium/ruby_lib/blob/fa3b19c9921cbb84d9fd91a097b8c85d485b60f7/lib/appium_lib/device/device.rb#L419)
|
1004
1043
|
|
1005
1044
|
> def add_touch_actions
|
1006
1045
|
|
@@ -1008,7 +1047,7 @@ find_element/s with their accessibility_id
|
|
1008
1047
|
|
1009
1048
|
--
|
1010
1049
|
|
1011
|
-
##### [add_ime_actions](https://github.com/appium/ruby_lib/blob/
|
1050
|
+
##### [add_ime_actions](https://github.com/appium/ruby_lib/blob/fa3b19c9921cbb84d9fd91a097b8c85d485b60f7/lib/appium_lib/device/device.rb#L442)
|
1012
1051
|
|
1013
1052
|
> def add_ime_actions
|
1014
1053
|
|
@@ -1016,7 +1055,7 @@ find_element/s with their accessibility_id
|
|
1016
1055
|
|
1017
1056
|
--
|
1018
1057
|
|
1019
|
-
##### [set_context](https://github.com/appium/ruby_lib/blob/
|
1058
|
+
##### [set_context](https://github.com/appium/ruby_lib/blob/fa3b19c9921cbb84d9fd91a097b8c85d485b60f7/lib/appium_lib/device/device.rb#L517)
|
1020
1059
|
|
1021
1060
|
> def set_context
|
1022
1061
|
|
@@ -1031,7 +1070,7 @@ __Parameters:__
|
|
1031
1070
|
|
1032
1071
|
--
|
1033
1072
|
|
1034
|
-
##### [current_context](https://github.com/appium/ruby_lib/blob/
|
1073
|
+
##### [current_context](https://github.com/appium/ruby_lib/blob/fa3b19c9921cbb84d9fd91a097b8c85d485b60f7/lib/appium_lib/device/device.rb#L525)
|
1035
1074
|
|
1036
1075
|
> def current_context
|
1037
1076
|
|
@@ -1043,7 +1082,7 @@ __Returns:__
|
|
1043
1082
|
|
1044
1083
|
--
|
1045
1084
|
|
1046
|
-
##### [available_contexts](https://github.com/appium/ruby_lib/blob/
|
1085
|
+
##### [available_contexts](https://github.com/appium/ruby_lib/blob/fa3b19c9921cbb84d9fd91a097b8c85d485b60f7/lib/appium_lib/device/device.rb#L528)
|
1047
1086
|
|
1048
1087
|
> def available_contexts
|
1049
1088
|
|
@@ -1055,7 +1094,7 @@ __Returns:__
|
|
1055
1094
|
|
1056
1095
|
--
|
1057
1096
|
|
1058
|
-
##### [within_context](https://github.com/appium/ruby_lib/blob/
|
1097
|
+
##### [within_context](https://github.com/appium/ruby_lib/blob/fa3b19c9921cbb84d9fd91a097b8c85d485b60f7/lib/appium_lib/device/device.rb#L538)
|
1059
1098
|
|
1060
1099
|
> def within_context(context)
|
1061
1100
|
|
@@ -1071,7 +1110,7 @@ __Parameters:__
|
|
1071
1110
|
|
1072
1111
|
--
|
1073
1112
|
|
1074
|
-
##### [switch_to_default_context](https://github.com/appium/ruby_lib/blob/
|
1113
|
+
##### [switch_to_default_context](https://github.com/appium/ruby_lib/blob/fa3b19c9921cbb84d9fd91a097b8c85d485b60f7/lib/appium_lib/device/device.rb#L546)
|
1075
1114
|
|
1076
1115
|
> def switch_to_default_context
|
1077
1116
|
|
@@ -1079,7 +1118,7 @@ Change to the default context. This is equivalent to `set_context nil`.
|
|
1079
1118
|
|
1080
1119
|
--
|
1081
1120
|
|
1082
|
-
##### [pinch](https://github.com/appium/ruby_lib/blob/
|
1121
|
+
##### [pinch](https://github.com/appium/ruby_lib/blob/fa3b19c9921cbb84d9fd91a097b8c85d485b60f7/lib/appium_lib/device/multi_touch.rb#L28)
|
1083
1122
|
|
1084
1123
|
> def pinch(percentage = 25, auto_perform = true)
|
1085
1124
|
|
@@ -1098,7 +1137,7 @@ __Parameters:__
|
|
1098
1137
|
|
1099
1138
|
--
|
1100
1139
|
|
1101
|
-
##### [zoom](https://github.com/appium/ruby_lib/blob/
|
1140
|
+
##### [zoom](https://github.com/appium/ruby_lib/blob/fa3b19c9921cbb84d9fd91a097b8c85d485b60f7/lib/appium_lib/device/multi_touch.rb#L57)
|
1102
1141
|
|
1103
1142
|
> def zoom(percentage = 200, auto_perform = true)
|
1104
1143
|
|
@@ -1117,7 +1156,7 @@ __Parameters:__
|
|
1117
1156
|
|
1118
1157
|
--
|
1119
1158
|
|
1120
|
-
##### [pinch_for_xcuitest](https://github.com/appium/ruby_lib/blob/
|
1159
|
+
##### [pinch_for_xcuitest](https://github.com/appium/ruby_lib/blob/fa3b19c9921cbb84d9fd91a097b8c85d485b60f7/lib/appium_lib/device/multi_touch.rb#L79)
|
1121
1160
|
|
1122
1161
|
> def pinch_for_xcuitest(rate)
|
1123
1162
|
|
@@ -1125,7 +1164,7 @@ __Parameters:__
|
|
1125
1164
|
|
1126
1165
|
--
|
1127
1166
|
|
1128
|
-
##### [pinch_android](https://github.com/appium/ruby_lib/blob/
|
1167
|
+
##### [pinch_android](https://github.com/appium/ruby_lib/blob/fa3b19c9921cbb84d9fd91a097b8c85d485b60f7/lib/appium_lib/device/multi_touch.rb#L94)
|
1129
1168
|
|
1130
1169
|
> def pinch_android(rate)
|
1131
1170
|
|
@@ -1133,7 +1172,7 @@ __Parameters:__
|
|
1133
1172
|
|
1134
1173
|
--
|
1135
1174
|
|
1136
|
-
##### [pinch_ios](https://github.com/appium/ruby_lib/blob/
|
1175
|
+
##### [pinch_ios](https://github.com/appium/ruby_lib/blob/fa3b19c9921cbb84d9fd91a097b8c85d485b60f7/lib/appium_lib/device/multi_touch.rb#L108)
|
1137
1176
|
|
1138
1177
|
> def pinch_ios(rate)
|
1139
1178
|
|
@@ -1141,7 +1180,7 @@ __Parameters:__
|
|
1141
1180
|
|
1142
1181
|
--
|
1143
1182
|
|
1144
|
-
##### [zoom_for_xcuitest](https://github.com/appium/ruby_lib/blob/
|
1183
|
+
##### [zoom_for_xcuitest](https://github.com/appium/ruby_lib/blob/fa3b19c9921cbb84d9fd91a097b8c85d485b60f7/lib/appium_lib/device/multi_touch.rb#L122)
|
1145
1184
|
|
1146
1185
|
> def zoom_for_xcuitest(rate)
|
1147
1186
|
|
@@ -1149,7 +1188,7 @@ __Parameters:__
|
|
1149
1188
|
|
1150
1189
|
--
|
1151
1190
|
|
1152
|
-
##### [zoom_android](https://github.com/appium/ruby_lib/blob/
|
1191
|
+
##### [zoom_android](https://github.com/appium/ruby_lib/blob/fa3b19c9921cbb84d9fd91a097b8c85d485b60f7/lib/appium_lib/device/multi_touch.rb#L137)
|
1153
1192
|
|
1154
1193
|
> def zoom_android(rate)
|
1155
1194
|
|
@@ -1157,7 +1196,7 @@ __Parameters:__
|
|
1157
1196
|
|
1158
1197
|
--
|
1159
1198
|
|
1160
|
-
##### [zoom_ios](https://github.com/appium/ruby_lib/blob/
|
1199
|
+
##### [zoom_ios](https://github.com/appium/ruby_lib/blob/fa3b19c9921cbb84d9fd91a097b8c85d485b60f7/lib/appium_lib/device/multi_touch.rb#L151)
|
1161
1200
|
|
1162
1201
|
> def zoom_ios(rate)
|
1163
1202
|
|
@@ -1165,7 +1204,7 @@ __Parameters:__
|
|
1165
1204
|
|
1166
1205
|
--
|
1167
1206
|
|
1168
|
-
##### [initialize](https://github.com/appium/ruby_lib/blob/
|
1207
|
+
##### [initialize](https://github.com/appium/ruby_lib/blob/fa3b19c9921cbb84d9fd91a097b8c85d485b60f7/lib/appium_lib/device/multi_touch.rb#L167)
|
1169
1208
|
|
1170
1209
|
> def initialize
|
1171
1210
|
|
@@ -1177,7 +1216,7 @@ __Returns:__
|
|
1177
1216
|
|
1178
1217
|
--
|
1179
1218
|
|
1180
|
-
##### [add](https://github.com/appium/ruby_lib/blob/
|
1219
|
+
##### [add](https://github.com/appium/ruby_lib/blob/fa3b19c9921cbb84d9fd91a097b8c85d485b60f7/lib/appium_lib/device/multi_touch.rb#L173)
|
1181
1220
|
|
1182
1221
|
> def add(chain)
|
1183
1222
|
|
@@ -1189,7 +1228,7 @@ __Parameters:__
|
|
1189
1228
|
|
1190
1229
|
--
|
1191
1230
|
|
1192
|
-
##### [perform](https://github.com/appium/ruby_lib/blob/
|
1231
|
+
##### [perform](https://github.com/appium/ruby_lib/blob/fa3b19c9921cbb84d9fd91a097b8c85d485b60f7/lib/appium_lib/device/multi_touch.rb#L178)
|
1193
1232
|
|
1194
1233
|
> def perform
|
1195
1234
|
|
@@ -1197,7 +1236,7 @@ Ask Appium to perform the actions
|
|
1197
1236
|
|
1198
1237
|
--
|
1199
1238
|
|
1200
|
-
##### [ACTIONS](https://github.com/appium/ruby_lib/blob/
|
1239
|
+
##### [ACTIONS](https://github.com/appium/ruby_lib/blob/fa3b19c9921cbb84d9fd91a097b8c85d485b60f7/lib/appium_lib/device/touch_actions.rb#L11)
|
1201
1240
|
|
1202
1241
|
> ACTIONS = [:move_to, :long_press, :double_tap, :two_finger_tap, :press, :release, :tap, :wait, :perform].freeze
|
1203
1242
|
|
@@ -1205,7 +1244,7 @@ Ask Appium to perform the actions
|
|
1205
1244
|
|
1206
1245
|
--
|
1207
1246
|
|
1208
|
-
##### [COMPLEX_ACTIONS](https://github.com/appium/ruby_lib/blob/
|
1247
|
+
##### [COMPLEX_ACTIONS](https://github.com/appium/ruby_lib/blob/fa3b19c9921cbb84d9fd91a097b8c85d485b60f7/lib/appium_lib/device/touch_actions.rb#L12)
|
1209
1248
|
|
1210
1249
|
> COMPLEX_ACTIONS = [:swipe].freeze
|
1211
1250
|
|
@@ -1213,7 +1252,7 @@ Ask Appium to perform the actions
|
|
1213
1252
|
|
1214
1253
|
--
|
1215
1254
|
|
1216
|
-
##### [actions](https://github.com/appium/ruby_lib/blob/
|
1255
|
+
##### [actions](https://github.com/appium/ruby_lib/blob/fa3b19c9921cbb84d9fd91a097b8c85d485b60f7/lib/appium_lib/device/touch_actions.rb#L26)
|
1217
1256
|
|
1218
1257
|
> def actions
|
1219
1258
|
|
@@ -1221,7 +1260,7 @@ Returns the value of attribute actions
|
|
1221
1260
|
|
1222
1261
|
--
|
1223
1262
|
|
1224
|
-
##### [initialize](https://github.com/appium/ruby_lib/blob/
|
1263
|
+
##### [initialize](https://github.com/appium/ruby_lib/blob/fa3b19c9921cbb84d9fd91a097b8c85d485b60f7/lib/appium_lib/device/touch_actions.rb#L28)
|
1225
1264
|
|
1226
1265
|
> def initialize
|
1227
1266
|
|
@@ -1233,7 +1272,7 @@ __Returns:__
|
|
1233
1272
|
|
1234
1273
|
--
|
1235
1274
|
|
1236
|
-
##### [move_to](https://github.com/appium/ruby_lib/blob/
|
1275
|
+
##### [move_to](https://github.com/appium/ruby_lib/blob/fa3b19c9921cbb84d9fd91a097b8c85d485b60f7/lib/appium_lib/device/touch_actions.rb#L39)
|
1237
1276
|
|
1238
1277
|
> def move_to(opts)
|
1239
1278
|
|
@@ -1247,7 +1286,7 @@ __Parameters:__
|
|
1247
1286
|
|
1248
1287
|
--
|
1249
1288
|
|
1250
|
-
##### [long_press](https://github.com/appium/ruby_lib/blob/
|
1289
|
+
##### [long_press](https://github.com/appium/ruby_lib/blob/fa3b19c9921cbb84d9fd91a097b8c85d485b60f7/lib/appium_lib/device/touch_actions.rb#L53)
|
1251
1290
|
|
1252
1291
|
> def long_press(opts)
|
1253
1292
|
|
@@ -1268,7 +1307,7 @@ __Parameters:__
|
|
1268
1307
|
|
1269
1308
|
--
|
1270
1309
|
|
1271
|
-
##### [press](https://github.com/appium/ruby_lib/blob/
|
1310
|
+
##### [press](https://github.com/appium/ruby_lib/blob/fa3b19c9921cbb84d9fd91a097b8c85d485b60f7/lib/appium_lib/device/touch_actions.rb#L65)
|
1272
1311
|
|
1273
1312
|
> def press(opts)
|
1274
1313
|
|
@@ -1281,7 +1320,7 @@ __Parameters:__
|
|
1281
1320
|
|
1282
1321
|
--
|
1283
1322
|
|
1284
|
-
##### [release](https://github.com/appium/ruby_lib/blob/
|
1323
|
+
##### [release](https://github.com/appium/ruby_lib/blob/fa3b19c9921cbb84d9fd91a097b8c85d485b60f7/lib/appium_lib/device/touch_actions.rb#L76)
|
1285
1324
|
|
1286
1325
|
> def release(opts = nil)
|
1287
1326
|
|
@@ -1293,7 +1332,7 @@ __Parameters:__
|
|
1293
1332
|
|
1294
1333
|
--
|
1295
1334
|
|
1296
|
-
##### [tap](https://github.com/appium/ruby_lib/blob/
|
1335
|
+
##### [tap](https://github.com/appium/ruby_lib/blob/fa3b19c9921cbb84d9fd91a097b8c85d485b60f7/lib/appium_lib/device/touch_actions.rb#L88)
|
1297
1336
|
|
1298
1337
|
> def tap(opts)
|
1299
1338
|
|
@@ -1306,7 +1345,7 @@ __Parameters:__
|
|
1306
1345
|
|
1307
1346
|
--
|
1308
1347
|
|
1309
|
-
##### [double_tap](https://github.com/appium/ruby_lib/blob/
|
1348
|
+
##### [double_tap](https://github.com/appium/ruby_lib/blob/fa3b19c9921cbb84d9fd91a097b8c85d485b60f7/lib/appium_lib/device/touch_actions.rb#L101)
|
1310
1349
|
|
1311
1350
|
> def double_tap(opts)
|
1312
1351
|
|
@@ -1318,7 +1357,7 @@ __Parameters:__
|
|
1318
1357
|
|
1319
1358
|
--
|
1320
1359
|
|
1321
|
-
##### [two_finger_tap](https://github.com/appium/ruby_lib/blob/
|
1360
|
+
##### [two_finger_tap](https://github.com/appium/ruby_lib/blob/fa3b19c9921cbb84d9fd91a097b8c85d485b60f7/lib/appium_lib/device/touch_actions.rb#L112)
|
1322
1361
|
|
1323
1362
|
> def two_finger_tap(opts)
|
1324
1363
|
|
@@ -1330,7 +1369,7 @@ __Parameters:__
|
|
1330
1369
|
|
1331
1370
|
--
|
1332
1371
|
|
1333
|
-
##### [wait](https://github.com/appium/ruby_lib/blob/
|
1372
|
+
##### [wait](https://github.com/appium/ruby_lib/blob/fa3b19c9921cbb84d9fd91a097b8c85d485b60f7/lib/appium_lib/device/touch_actions.rb#L120)
|
1334
1373
|
|
1335
1374
|
> def wait(milliseconds)
|
1336
1375
|
|
@@ -1342,7 +1381,7 @@ __Parameters:__
|
|
1342
1381
|
|
1343
1382
|
--
|
1344
1383
|
|
1345
|
-
##### [swipe](https://github.com/appium/ruby_lib/blob/
|
1384
|
+
##### [swipe](https://github.com/appium/ruby_lib/blob/fa3b19c9921cbb84d9fd91a097b8c85d485b60f7/lib/appium_lib/device/touch_actions.rb#L143)
|
1346
1385
|
|
1347
1386
|
> def swipe(opts, ele = nil)
|
1348
1387
|
|
@@ -1363,7 +1402,7 @@ __Parameters:__
|
|
1363
1402
|
|
1364
1403
|
--
|
1365
1404
|
|
1366
|
-
##### [perform](https://github.com/appium/ruby_lib/blob/
|
1405
|
+
##### [perform](https://github.com/appium/ruby_lib/blob/fa3b19c9921cbb84d9fd91a097b8c85d485b60f7/lib/appium_lib/device/touch_actions.rb#L168)
|
1367
1406
|
|
1368
1407
|
> def perform
|
1369
1408
|
|
@@ -1371,7 +1410,7 @@ Ask the driver to perform all actions in this action chain.
|
|
1371
1410
|
|
1372
1411
|
--
|
1373
1412
|
|
1374
|
-
##### [cancel](https://github.com/appium/ruby_lib/blob/
|
1413
|
+
##### [cancel](https://github.com/appium/ruby_lib/blob/fa3b19c9921cbb84d9fd91a097b8c85d485b60f7/lib/appium_lib/device/touch_actions.rb#L174)
|
1375
1414
|
|
1376
1415
|
> def cancel
|
1377
1416
|
|
@@ -1379,7 +1418,7 @@ Does nothing, currently.
|
|
1379
1418
|
|
1380
1419
|
--
|
1381
1420
|
|
1382
|
-
##### [swipe_coordinates](https://github.com/appium/ruby_lib/blob/
|
1421
|
+
##### [swipe_coordinates](https://github.com/appium/ruby_lib/blob/fa3b19c9921cbb84d9fd91a097b8c85d485b60f7/lib/appium_lib/device/touch_actions.rb#L180)
|
1383
1422
|
|
1384
1423
|
> def swipe_coordinates(end_x: nil, end_y: nil, offset_x: nil, offset_y: nil)
|
1385
1424
|
|
@@ -1387,7 +1426,7 @@ Does nothing, currently.
|
|
1387
1426
|
|
1388
1427
|
--
|
1389
1428
|
|
1390
|
-
##### [chain_method](https://github.com/appium/ruby_lib/blob/
|
1429
|
+
##### [chain_method](https://github.com/appium/ruby_lib/blob/fa3b19c9921cbb84d9fd91a097b8c85d485b60f7/lib/appium_lib/device/touch_actions.rb#L198)
|
1391
1430
|
|
1392
1431
|
> def chain_method(method, args = nil)
|
1393
1432
|
|
@@ -1395,7 +1434,7 @@ Does nothing, currently.
|
|
1395
1434
|
|
1396
1435
|
--
|
1397
1436
|
|
1398
|
-
##### [args_with_ele_ref](https://github.com/appium/ruby_lib/blob/
|
1437
|
+
##### [args_with_ele_ref](https://github.com/appium/ruby_lib/blob/fa3b19c9921cbb84d9fd91a097b8c85d485b60f7/lib/appium_lib/device/touch_actions.rb#L204)
|
1399
1438
|
|
1400
1439
|
> def args_with_ele_ref(args)
|
1401
1440
|
|
@@ -1403,7 +1442,7 @@ Does nothing, currently.
|
|
1403
1442
|
|
1404
1443
|
--
|
1405
1444
|
|
1406
|
-
##### [_generic_wait](https://github.com/appium/ruby_lib/blob/
|
1445
|
+
##### [_generic_wait](https://github.com/appium/ruby_lib/blob/fa3b19c9921cbb84d9fd91a097b8c85d485b60f7/lib/appium_lib/common/wait.rb#L9)
|
1407
1446
|
|
1408
1447
|
> def _generic_wait(opts = {})
|
1409
1448
|
|
@@ -1412,7 +1451,7 @@ https://github.com/SeleniumHQ/selenium/blob/cf501dda3f0ed12233de51ce8170c0e8090f
|
|
1412
1451
|
|
1413
1452
|
--
|
1414
1453
|
|
1415
|
-
##### [_process_wait_opts](https://github.com/appium/ruby_lib/blob/
|
1454
|
+
##### [_process_wait_opts](https://github.com/appium/ruby_lib/blob/fa3b19c9921cbb84d9fd91a097b8c85d485b60f7/lib/appium_lib/common/wait.rb#L48)
|
1416
1455
|
|
1417
1456
|
> def _process_wait_opts(opts)
|
1418
1457
|
|
@@ -1420,7 +1459,7 @@ process opts before calling _generic_wait
|
|
1420
1459
|
|
1421
1460
|
--
|
1422
1461
|
|
1423
|
-
##### [wait_true](https://github.com/appium/ruby_lib/blob/
|
1462
|
+
##### [wait_true](https://github.com/appium/ruby_lib/blob/fa3b19c9921cbb84d9fd91a097b8c85d485b60f7/lib/appium_lib/common/wait.rb#L69)
|
1424
1463
|
|
1425
1464
|
> def wait_true(opts = {}, &block)
|
1426
1465
|
|
@@ -1440,7 +1479,7 @@ __Parameters:__
|
|
1440
1479
|
|
1441
1480
|
--
|
1442
1481
|
|
1443
|
-
##### [wait](https://github.com/appium/ruby_lib/blob/
|
1482
|
+
##### [wait](https://github.com/appium/ruby_lib/blob/fa3b19c9921cbb84d9fd91a097b8c85d485b60f7/lib/appium_lib/common/wait.rb#L87)
|
1444
1483
|
|
1445
1484
|
> def wait(opts = {}, &block)
|
1446
1485
|
|
@@ -1458,7 +1497,7 @@ __Parameters:__
|
|
1458
1497
|
|
1459
1498
|
--
|
1460
1499
|
|
1461
|
-
##### [ignore](https://github.com/appium/ruby_lib/blob/
|
1500
|
+
##### [ignore](https://github.com/appium/ruby_lib/blob/fa3b19c9921cbb84d9fd91a097b8c85d485b60f7/lib/appium_lib/common/helper.rb#L24)
|
1462
1501
|
|
1463
1502
|
> def ignore
|
1464
1503
|
|
@@ -1466,7 +1505,7 @@ Return yield and ignore any exceptions.
|
|
1466
1505
|
|
1467
1506
|
--
|
1468
1507
|
|
1469
|
-
##### [back](https://github.com/appium/ruby_lib/blob/
|
1508
|
+
##### [back](https://github.com/appium/ruby_lib/blob/fa3b19c9921cbb84d9fd91a097b8c85d485b60f7/lib/appium_lib/common/helper.rb#L31)
|
1470
1509
|
|
1471
1510
|
> def back
|
1472
1511
|
|
@@ -1478,7 +1517,7 @@ __Returns:__
|
|
1478
1517
|
|
1479
1518
|
--
|
1480
1519
|
|
1481
|
-
##### [session_id](https://github.com/appium/ruby_lib/blob/
|
1520
|
+
##### [session_id](https://github.com/appium/ruby_lib/blob/fa3b19c9921cbb84d9fd91a097b8c85d485b60f7/lib/appium_lib/common/helper.rb#L36)
|
1482
1521
|
|
1483
1522
|
> def session_id
|
1484
1523
|
|
@@ -1486,7 +1525,7 @@ For Sauce Labs reporting. Returns the current session id.
|
|
1486
1525
|
|
1487
1526
|
--
|
1488
1527
|
|
1489
|
-
##### [xpath](https://github.com/appium/ruby_lib/blob/
|
1528
|
+
##### [xpath](https://github.com/appium/ruby_lib/blob/fa3b19c9921cbb84d9fd91a097b8c85d485b60f7/lib/appium_lib/common/helper.rb#L44)
|
1490
1529
|
|
1491
1530
|
> def xpath(xpath_str)
|
1492
1531
|
|
@@ -1502,7 +1541,7 @@ __Returns:__
|
|
1502
1541
|
|
1503
1542
|
--
|
1504
1543
|
|
1505
|
-
##### [xpaths](https://github.com/appium/ruby_lib/blob/
|
1544
|
+
##### [xpaths](https://github.com/appium/ruby_lib/blob/fa3b19c9921cbb84d9fd91a097b8c85d485b60f7/lib/appium_lib/common/helper.rb#L52)
|
1506
1545
|
|
1507
1546
|
> def xpaths(xpath_str)
|
1508
1547
|
|
@@ -1518,7 +1557,7 @@ __Returns:__
|
|
1518
1557
|
|
1519
1558
|
--
|
1520
1559
|
|
1521
|
-
##### [_print_source](https://github.com/appium/ruby_lib/blob/
|
1560
|
+
##### [_print_source](https://github.com/appium/ruby_lib/blob/fa3b19c9921cbb84d9fd91a097b8c85d485b60f7/lib/appium_lib/common/helper.rb#L56)
|
1522
1561
|
|
1523
1562
|
> def _print_source(source)
|
1524
1563
|
|
@@ -1526,7 +1565,7 @@ __Returns:__
|
|
1526
1565
|
|
1527
1566
|
--
|
1528
1567
|
|
1529
|
-
##### [result](https://github.com/appium/ruby_lib/blob/
|
1568
|
+
##### [result](https://github.com/appium/ruby_lib/blob/fa3b19c9921cbb84d9fd91a097b8c85d485b60f7/lib/appium_lib/common/helper.rb#L69)
|
1530
1569
|
|
1531
1570
|
> def result
|
1532
1571
|
|
@@ -1534,7 +1573,7 @@ Returns the value of attribute result
|
|
1534
1573
|
|
1535
1574
|
--
|
1536
1575
|
|
1537
|
-
##### [initialize](https://github.com/appium/ruby_lib/blob/
|
1576
|
+
##### [initialize](https://github.com/appium/ruby_lib/blob/fa3b19c9921cbb84d9fd91a097b8c85d485b60f7/lib/appium_lib/common/helper.rb#L71)
|
1538
1577
|
|
1539
1578
|
> def initialize
|
1540
1579
|
|
@@ -1546,7 +1585,7 @@ __Returns:__
|
|
1546
1585
|
|
1547
1586
|
--
|
1548
1587
|
|
1549
|
-
##### [reset](https://github.com/appium/ruby_lib/blob/
|
1588
|
+
##### [reset](https://github.com/appium/ruby_lib/blob/fa3b19c9921cbb84d9fd91a097b8c85d485b60f7/lib/appium_lib/common/helper.rb#L75)
|
1550
1589
|
|
1551
1590
|
> def reset
|
1552
1591
|
|
@@ -1554,7 +1593,7 @@ __Returns:__
|
|
1554
1593
|
|
1555
1594
|
--
|
1556
1595
|
|
1557
|
-
##### [start_element](https://github.com/appium/ruby_lib/blob/
|
1596
|
+
##### [start_element](https://github.com/appium/ruby_lib/blob/fa3b19c9921cbb84d9fd91a097b8c85d485b60f7/lib/appium_lib/common/helper.rb#L80)
|
1558
1597
|
|
1559
1598
|
> def start_element(name, attrs = [])
|
1560
1599
|
|
@@ -1562,7 +1601,7 @@ http://nokogiri.org/Nokogiri/XML/SAX/Document.html
|
|
1562
1601
|
|
1563
1602
|
--
|
1564
1603
|
|
1565
|
-
##### [formatted_result](https://github.com/appium/ruby_lib/blob/
|
1604
|
+
##### [formatted_result](https://github.com/appium/ruby_lib/blob/fa3b19c9921cbb84d9fd91a097b8c85d485b60f7/lib/appium_lib/common/helper.rb#L86)
|
1566
1605
|
|
1567
1606
|
> def formatted_result
|
1568
1607
|
|
@@ -1570,7 +1609,7 @@ http://nokogiri.org/Nokogiri/XML/SAX/Document.html
|
|
1570
1609
|
|
1571
1610
|
--
|
1572
1611
|
|
1573
|
-
##### [get_page_class](https://github.com/appium/ruby_lib/blob/
|
1612
|
+
##### [get_page_class](https://github.com/appium/ruby_lib/blob/fa3b19c9921cbb84d9fd91a097b8c85d485b60f7/lib/appium_lib/common/helper.rb#L97)
|
1574
1613
|
|
1575
1614
|
> def get_page_class
|
1576
1615
|
|
@@ -1578,7 +1617,7 @@ Returns a string of class counts of visible elements.
|
|
1578
1617
|
|
1579
1618
|
--
|
1580
1619
|
|
1581
|
-
##### [page_class](https://github.com/appium/ruby_lib/blob/
|
1620
|
+
##### [page_class](https://github.com/appium/ruby_lib/blob/fa3b19c9921cbb84d9fd91a097b8c85d485b60f7/lib/appium_lib/common/helper.rb#L108)
|
1582
1621
|
|
1583
1622
|
> def page_class
|
1584
1623
|
|
@@ -1587,7 +1626,7 @@ Useful for appium_console.
|
|
1587
1626
|
|
1588
1627
|
--
|
1589
1628
|
|
1590
|
-
##### [px_to_window_rel](https://github.com/appium/ruby_lib/blob/
|
1629
|
+
##### [px_to_window_rel](https://github.com/appium/ruby_lib/blob/fa3b19c9921cbb84d9fd91a097b8c85d485b60f7/lib/appium_lib/common/helper.rb#L118)
|
1591
1630
|
|
1592
1631
|
> def px_to_window_rel(opts = {})
|
1593
1632
|
|
@@ -1599,7 +1638,7 @@ px_to_window_rel x: 50, y: 150
|
|
1599
1638
|
|
1600
1639
|
--
|
1601
1640
|
|
1602
|
-
##### [xml_keys](https://github.com/appium/ruby_lib/blob/
|
1641
|
+
##### [xml_keys](https://github.com/appium/ruby_lib/blob/fa3b19c9921cbb84d9fd91a097b8c85d485b60f7/lib/appium_lib/common/helper.rb#L137)
|
1603
1642
|
|
1604
1643
|
> def xml_keys(target)
|
1605
1644
|
|
@@ -1615,7 +1654,7 @@ __Returns:__
|
|
1615
1654
|
|
1616
1655
|
--
|
1617
1656
|
|
1618
|
-
##### [xml_values](https://github.com/appium/ruby_lib/blob/
|
1657
|
+
##### [xml_values](https://github.com/appium/ruby_lib/blob/fa3b19c9921cbb84d9fd91a097b8c85d485b60f7/lib/appium_lib/common/helper.rb#L145)
|
1619
1658
|
|
1620
1659
|
> def xml_values(target)
|
1621
1660
|
|
@@ -1631,7 +1670,7 @@ __Returns:__
|
|
1631
1670
|
|
1632
1671
|
--
|
1633
1672
|
|
1634
|
-
##### [resolve_id](https://github.com/appium/ruby_lib/blob/
|
1673
|
+
##### [resolve_id](https://github.com/appium/ruby_lib/blob/fa3b19c9921cbb84d9fd91a097b8c85d485b60f7/lib/appium_lib/common/helper.rb#L153)
|
1635
1674
|
|
1636
1675
|
> def resolve_id(id)
|
1637
1676
|
|
@@ -1647,7 +1686,7 @@ __Returns:__
|
|
1647
1686
|
|
1648
1687
|
--
|
1649
1688
|
|
1650
|
-
##### [filter](https://github.com/appium/ruby_lib/blob/
|
1689
|
+
##### [filter](https://github.com/appium/ruby_lib/blob/fa3b19c9921cbb84d9fd91a097b8c85d485b60f7/lib/appium_lib/common/helper.rb#L159)
|
1651
1690
|
|
1652
1691
|
> def filter
|
1653
1692
|
|
@@ -1655,7 +1694,7 @@ Returns the value of attribute filter
|
|
1655
1694
|
|
1656
1695
|
--
|
1657
1696
|
|
1658
|
-
##### [filter=](https://github.com/appium/ruby_lib/blob/
|
1697
|
+
##### [filter=](https://github.com/appium/ruby_lib/blob/fa3b19c9921cbb84d9fd91a097b8c85d485b60f7/lib/appium_lib/common/helper.rb#L162)
|
1659
1698
|
|
1660
1699
|
> def filter=(value)
|
1661
1700
|
|
@@ -1663,7 +1702,7 @@ convert to string to support symbols
|
|
1663
1702
|
|
1664
1703
|
--
|
1665
1704
|
|
1666
|
-
##### [initialize](https://github.com/appium/ruby_lib/blob/
|
1705
|
+
##### [initialize](https://github.com/appium/ruby_lib/blob/fa3b19c9921cbb84d9fd91a097b8c85d485b60f7/lib/appium_lib/common/helper.rb#L168)
|
1667
1706
|
|
1668
1707
|
> def initialize
|
1669
1708
|
|
@@ -1675,7 +1714,7 @@ __Returns:__
|
|
1675
1714
|
|
1676
1715
|
--
|
1677
1716
|
|
1678
|
-
##### [reset](https://github.com/appium/ruby_lib/blob/
|
1717
|
+
##### [reset](https://github.com/appium/ruby_lib/blob/fa3b19c9921cbb84d9fd91a097b8c85d485b60f7/lib/appium_lib/common/helper.rb#L173)
|
1679
1718
|
|
1680
1719
|
> def reset
|
1681
1720
|
|
@@ -1683,7 +1722,7 @@ __Returns:__
|
|
1683
1722
|
|
1684
1723
|
--
|
1685
1724
|
|
1686
|
-
##### [result](https://github.com/appium/ruby_lib/blob/
|
1725
|
+
##### [result](https://github.com/appium/ruby_lib/blob/fa3b19c9921cbb84d9fd91a097b8c85d485b60f7/lib/appium_lib/common/helper.rb#L179)
|
1687
1726
|
|
1688
1727
|
> def result
|
1689
1728
|
|
@@ -1691,7 +1730,7 @@ __Returns:__
|
|
1691
1730
|
|
1692
1731
|
--
|
1693
1732
|
|
1694
|
-
##### [start_element](https://github.com/appium/ruby_lib/blob/
|
1733
|
+
##### [start_element](https://github.com/appium/ruby_lib/blob/fa3b19c9921cbb84d9fd91a097b8c85d485b60f7/lib/appium_lib/common/helper.rb#L195)
|
1695
1734
|
|
1696
1735
|
> def start_element(name, attrs = [])
|
1697
1736
|
|
@@ -1699,7 +1738,7 @@ __Returns:__
|
|
1699
1738
|
|
1700
1739
|
--
|
1701
1740
|
|
1702
|
-
##### [end_element](https://github.com/appium/ruby_lib/blob/
|
1741
|
+
##### [end_element](https://github.com/appium/ruby_lib/blob/fa3b19c9921cbb84d9fd91a097b8c85d485b60f7/lib/appium_lib/common/helper.rb#L204)
|
1703
1742
|
|
1704
1743
|
> def end_element(name)
|
1705
1744
|
|
@@ -1707,7 +1746,7 @@ __Returns:__
|
|
1707
1746
|
|
1708
1747
|
--
|
1709
1748
|
|
1710
|
-
##### [characters](https://github.com/appium/ruby_lib/blob/
|
1749
|
+
##### [characters](https://github.com/appium/ruby_lib/blob/fa3b19c9921cbb84d9fd91a097b8c85d485b60f7/lib/appium_lib/common/helper.rb#L210)
|
1711
1750
|
|
1712
1751
|
> def characters(chars)
|
1713
1752
|
|
@@ -1715,7 +1754,7 @@ __Returns:__
|
|
1715
1754
|
|
1716
1755
|
--
|
1717
1756
|
|
1718
|
-
##### [_no_such_element](https://github.com/appium/ruby_lib/blob/
|
1757
|
+
##### [_no_such_element](https://github.com/appium/ruby_lib/blob/fa3b19c9921cbb84d9fd91a097b8c85d485b60f7/lib/appium_lib/common/helper.rb#L217)
|
1719
1758
|
|
1720
1759
|
> def _no_such_element
|
1721
1760
|
|
@@ -1723,7 +1762,7 @@ __Returns:__
|
|
1723
1762
|
|
1724
1763
|
--
|
1725
1764
|
|
1726
|
-
##### [COMMAND_NO_ARG](https://github.com/appium/ruby_lib/blob/
|
1765
|
+
##### [COMMAND_NO_ARG](https://github.com/appium/ruby_lib/blob/fa3b19c9921cbb84d9fd91a097b8c85d485b60f7/lib/appium_lib/common/command.rb#L4)
|
1727
1766
|
|
1728
1767
|
> COMMAND_NO_ARG = {
|
1729
1768
|
|
@@ -1731,7 +1770,7 @@ __Returns:__
|
|
1731
1770
|
|
1732
1771
|
--
|
1733
1772
|
|
1734
|
-
##### [COMMAND](https://github.com/appium/ruby_lib/blob/
|
1773
|
+
##### [COMMAND](https://github.com/appium/ruby_lib/blob/fa3b19c9921cbb84d9fd91a097b8c85d485b60f7/lib/appium_lib/common/command.rb#L24)
|
1735
1774
|
|
1736
1775
|
> COMMAND = {
|
1737
1776
|
|
@@ -1739,7 +1778,7 @@ __Returns:__
|
|
1739
1778
|
|
1740
1779
|
--
|
1741
1780
|
|
1742
|
-
##### [window_size](https://github.com/appium/ruby_lib/blob/
|
1781
|
+
##### [window_size](https://github.com/appium/ruby_lib/blob/fa3b19c9921cbb84d9fd91a097b8c85d485b60f7/lib/appium_lib/common/element/window.rb#L5)
|
1743
1782
|
|
1744
1783
|
> def window_size
|
1745
1784
|
|
@@ -1747,7 +1786,7 @@ Get the window's size
|
|
1747
1786
|
|
1748
1787
|
--
|
1749
1788
|
|
1750
|
-
##### [FINDERS](https://github.com/appium/ruby_lib/blob/
|
1789
|
+
##### [FINDERS](https://github.com/appium/ruby_lib/blob/fa3b19c9921cbb84d9fd91a097b8c85d485b60f7/lib/appium_lib/common/search_context.rb#L5)
|
1751
1790
|
|
1752
1791
|
> FINDERS = {
|
1753
1792
|
|
@@ -1755,7 +1794,7 @@ rubocop:disable Style/MutableConstant
|
|
1755
1794
|
|
1756
1795
|
--
|
1757
1796
|
|
1758
|
-
##### [result](https://github.com/appium/ruby_lib/blob/
|
1797
|
+
##### [result](https://github.com/appium/ruby_lib/blob/fa3b19c9921cbb84d9fd91a097b8c85d485b60f7/lib/appium_lib/android/helper.rb#L6) android
|
1759
1798
|
|
1760
1799
|
> def result
|
1761
1800
|
|
@@ -1763,7 +1802,7 @@ Returns the value of attribute result
|
|
1763
1802
|
|
1764
1803
|
--
|
1765
1804
|
|
1766
|
-
##### [keys](https://github.com/appium/ruby_lib/blob/
|
1805
|
+
##### [keys](https://github.com/appium/ruby_lib/blob/fa3b19c9921cbb84d9fd91a097b8c85d485b60f7/lib/appium_lib/android/helper.rb#L6) android
|
1767
1806
|
|
1768
1807
|
> def keys
|
1769
1808
|
|
@@ -1771,7 +1810,7 @@ Returns the value of attribute keys
|
|
1771
1810
|
|
1772
1811
|
--
|
1773
1812
|
|
1774
|
-
##### [instance](https://github.com/appium/ruby_lib/blob/
|
1813
|
+
##### [instance](https://github.com/appium/ruby_lib/blob/fa3b19c9921cbb84d9fd91a097b8c85d485b60f7/lib/appium_lib/android/helper.rb#L6) android
|
1775
1814
|
|
1776
1815
|
> def instance
|
1777
1816
|
|
@@ -1779,7 +1818,7 @@ Returns the value of attribute instance
|
|
1779
1818
|
|
1780
1819
|
--
|
1781
1820
|
|
1782
|
-
##### [filter](https://github.com/appium/ruby_lib/blob/
|
1821
|
+
##### [filter](https://github.com/appium/ruby_lib/blob/fa3b19c9921cbb84d9fd91a097b8c85d485b60f7/lib/appium_lib/android/helper.rb#L6) android
|
1783
1822
|
|
1784
1823
|
> def filter
|
1785
1824
|
|
@@ -1787,7 +1826,7 @@ Returns the value of attribute filter
|
|
1787
1826
|
|
1788
1827
|
--
|
1789
1828
|
|
1790
|
-
##### [filter=](https://github.com/appium/ruby_lib/blob/
|
1829
|
+
##### [filter=](https://github.com/appium/ruby_lib/blob/fa3b19c9921cbb84d9fd91a097b8c85d485b60f7/lib/appium_lib/android/helper.rb#L9) android
|
1791
1830
|
|
1792
1831
|
> def filter=(value)
|
1793
1832
|
|
@@ -1795,7 +1834,7 @@ convert to string to support symbols
|
|
1795
1834
|
|
1796
1835
|
--
|
1797
1836
|
|
1798
|
-
##### [initialize](https://github.com/appium/ruby_lib/blob/
|
1837
|
+
##### [initialize](https://github.com/appium/ruby_lib/blob/fa3b19c9921cbb84d9fd91a097b8c85d485b60f7/lib/appium_lib/android/helper.rb#L15) android
|
1799
1838
|
|
1800
1839
|
> def initialize
|
1801
1840
|
|
@@ -1807,7 +1846,7 @@ __Returns:__
|
|
1807
1846
|
|
1808
1847
|
--
|
1809
1848
|
|
1810
|
-
##### [reset](https://github.com/appium/ruby_lib/blob/
|
1849
|
+
##### [reset](https://github.com/appium/ruby_lib/blob/fa3b19c9921cbb84d9fd91a097b8c85d485b60f7/lib/appium_lib/android/helper.rb#L21) android
|
1811
1850
|
|
1812
1851
|
> def reset
|
1813
1852
|
|
@@ -1815,7 +1854,7 @@ __Returns:__
|
|
1815
1854
|
|
1816
1855
|
--
|
1817
1856
|
|
1818
|
-
##### [start_element](https://github.com/appium/ruby_lib/blob/
|
1857
|
+
##### [start_element](https://github.com/appium/ruby_lib/blob/fa3b19c9921cbb84d9fd91a097b8c85d485b60f7/lib/appium_lib/android/helper.rb#L28) android
|
1819
1858
|
|
1820
1859
|
> def start_element(name, attrs = [])
|
1821
1860
|
|
@@ -1823,7 +1862,7 @@ http://nokogiri.org/Nokogiri/XML/SAX/Document.html
|
|
1823
1862
|
|
1824
1863
|
--
|
1825
1864
|
|
1826
|
-
##### [_fix_android_native_source](https://github.com/appium/ruby_lib/blob/
|
1865
|
+
##### [_fix_android_native_source](https://github.com/appium/ruby_lib/blob/fa3b19c9921cbb84d9fd91a097b8c85d485b60f7/lib/appium_lib/android/helper.rb#L88) android
|
1827
1866
|
|
1828
1867
|
> def _fix_android_native_source(source)
|
1829
1868
|
|
@@ -1833,7 +1872,7 @@ https://code.google.com/p/android/issues/detail?id=74143
|
|
1833
1872
|
|
1834
1873
|
--
|
1835
1874
|
|
1836
|
-
##### [source](https://github.com/appium/ruby_lib/blob/
|
1875
|
+
##### [source](https://github.com/appium/ruby_lib/blob/fa3b19c9921cbb84d9fd91a097b8c85d485b60f7/lib/appium_lib/android/helper.rb#L116) android
|
1837
1876
|
|
1838
1877
|
> def source
|
1839
1878
|
|
@@ -1845,7 +1884,7 @@ __Returns:__
|
|
1845
1884
|
|
1846
1885
|
--
|
1847
1886
|
|
1848
|
-
##### [get_android_inspect](https://github.com/appium/ruby_lib/blob/
|
1887
|
+
##### [get_android_inspect](https://github.com/appium/ruby_lib/blob/fa3b19c9921cbb84d9fd91a097b8c85d485b60f7/lib/appium_lib/android/helper.rb#L126) android
|
1849
1888
|
|
1850
1889
|
> def get_android_inspect(class_name = false)
|
1851
1890
|
|
@@ -1864,7 +1903,7 @@ __Returns:__
|
|
1864
1903
|
|
1865
1904
|
--
|
1866
1905
|
|
1867
|
-
##### [page](https://github.com/appium/ruby_lib/blob/
|
1906
|
+
##### [page](https://github.com/appium/ruby_lib/blob/fa3b19c9921cbb84d9fd91a097b8c85d485b60f7/lib/appium_lib/android/helper.rb#L152) android
|
1868
1907
|
|
1869
1908
|
> def page(opts = {})
|
1870
1909
|
|
@@ -1883,7 +1922,7 @@ __Returns:__
|
|
1883
1922
|
|
1884
1923
|
--
|
1885
1924
|
|
1886
|
-
##### [current_app](https://github.com/appium/ruby_lib/blob/
|
1925
|
+
##### [current_app](https://github.com/appium/ruby_lib/blob/fa3b19c9921cbb84d9fd91a097b8c85d485b60f7/lib/appium_lib/android/helper.rb#L164) android
|
1887
1926
|
|
1888
1927
|
> def current_app
|
1889
1928
|
|
@@ -1893,7 +1932,7 @@ example line:
|
|
1893
1932
|
|
1894
1933
|
--
|
1895
1934
|
|
1896
|
-
##### [id](https://github.com/appium/ruby_lib/blob/
|
1935
|
+
##### [id](https://github.com/appium/ruby_lib/blob/fa3b19c9921cbb84d9fd91a097b8c85d485b60f7/lib/appium_lib/android/helper.rb#L188) android
|
1897
1936
|
|
1898
1937
|
> def id(id)
|
1899
1938
|
|
@@ -1909,7 +1948,7 @@ __Returns:__
|
|
1909
1948
|
|
1910
1949
|
--
|
1911
1950
|
|
1912
|
-
##### [ids](https://github.com/appium/ruby_lib/blob/
|
1951
|
+
##### [ids](https://github.com/appium/ruby_lib/blob/fa3b19c9921cbb84d9fd91a097b8c85d485b60f7/lib/appium_lib/android/helper.rb#L196) android
|
1913
1952
|
|
1914
1953
|
> def ids(id)
|
1915
1954
|
|
@@ -1925,7 +1964,7 @@ __Returns:__
|
|
1925
1964
|
|
1926
1965
|
--
|
1927
1966
|
|
1928
|
-
##### [ele_index](https://github.com/appium/ruby_lib/blob/
|
1967
|
+
##### [ele_index](https://github.com/appium/ruby_lib/blob/fa3b19c9921cbb84d9fd91a097b8c85d485b60f7/lib/appium_lib/android/helper.rb#L205) android
|
1929
1968
|
|
1930
1969
|
> def ele_index(class_name, index)
|
1931
1970
|
|
@@ -1943,7 +1982,7 @@ __Returns:__
|
|
1943
1982
|
|
1944
1983
|
--
|
1945
1984
|
|
1946
|
-
##### [first_ele](https://github.com/appium/ruby_lib/blob/
|
1985
|
+
##### [first_ele](https://github.com/appium/ruby_lib/blob/fa3b19c9921cbb84d9fd91a097b8c85d485b60f7/lib/appium_lib/android/helper.rb#L223) android
|
1947
1986
|
|
1948
1987
|
> def first_ele(class_name)
|
1949
1988
|
|
@@ -1959,7 +1998,7 @@ __Returns:__
|
|
1959
1998
|
|
1960
1999
|
--
|
1961
2000
|
|
1962
|
-
##### [last_ele](https://github.com/appium/ruby_lib/blob/
|
2001
|
+
##### [last_ele](https://github.com/appium/ruby_lib/blob/fa3b19c9921cbb84d9fd91a097b8c85d485b60f7/lib/appium_lib/android/helper.rb#L230) android
|
1963
2002
|
|
1964
2003
|
> def last_ele(class_name)
|
1965
2004
|
|
@@ -1975,7 +2014,7 @@ __Returns:__
|
|
1975
2014
|
|
1976
2015
|
--
|
1977
2016
|
|
1978
|
-
##### [tag](https://github.com/appium/ruby_lib/blob/
|
2017
|
+
##### [tag](https://github.com/appium/ruby_lib/blob/fa3b19c9921cbb84d9fd91a097b8c85d485b60f7/lib/appium_lib/android/helper.rb#L238) android
|
1979
2018
|
|
1980
2019
|
> def tag(class_name)
|
1981
2020
|
|
@@ -1991,7 +2030,7 @@ __Returns:__
|
|
1991
2030
|
|
1992
2031
|
--
|
1993
2032
|
|
1994
|
-
##### [tags](https://github.com/appium/ruby_lib/blob/
|
2033
|
+
##### [tags](https://github.com/appium/ruby_lib/blob/fa3b19c9921cbb84d9fd91a097b8c85d485b60f7/lib/appium_lib/android/helper.rb#L246) android
|
1995
2034
|
|
1996
2035
|
> def tags(class_name)
|
1997
2036
|
|
@@ -2007,7 +2046,7 @@ __Returns:__
|
|
2007
2046
|
|
2008
2047
|
--
|
2009
2048
|
|
2010
|
-
##### [string_visible_contains](https://github.com/appium/ruby_lib/blob/
|
2049
|
+
##### [string_visible_contains](https://github.com/appium/ruby_lib/blob/fa3b19c9921cbb84d9fd91a097b8c85d485b60f7/lib/appium_lib/android/helper.rb#L288) android
|
2011
2050
|
|
2012
2051
|
> def string_visible_contains(class_name, value)
|
2013
2052
|
|
@@ -2027,7 +2066,7 @@ __Returns:__
|
|
2027
2066
|
|
2028
2067
|
--
|
2029
2068
|
|
2030
|
-
##### [complex_find_contains](https://github.com/appium/ruby_lib/blob/
|
2069
|
+
##### [complex_find_contains](https://github.com/appium/ruby_lib/blob/fa3b19c9921cbb84d9fd91a097b8c85d485b60f7/lib/appium_lib/android/helper.rb#L308) android
|
2031
2070
|
|
2032
2071
|
> def complex_find_contains(element, value)
|
2033
2072
|
|
@@ -2045,7 +2084,7 @@ __Returns:__
|
|
2045
2084
|
|
2046
2085
|
--
|
2047
2086
|
|
2048
|
-
##### [complex_finds_contains](https://github.com/appium/ruby_lib/blob/
|
2087
|
+
##### [complex_finds_contains](https://github.com/appium/ruby_lib/blob/fa3b19c9921cbb84d9fd91a097b8c85d485b60f7/lib/appium_lib/android/helper.rb#L316) android
|
2049
2088
|
|
2050
2089
|
> def complex_finds_contains(element, value)
|
2051
2090
|
|
@@ -2063,7 +2102,7 @@ __Returns:__
|
|
2063
2102
|
|
2064
2103
|
--
|
2065
2104
|
|
2066
|
-
##### [complex_find_exact](https://github.com/appium/ruby_lib/blob/
|
2105
|
+
##### [complex_find_exact](https://github.com/appium/ruby_lib/blob/fa3b19c9921cbb84d9fd91a097b8c85d485b60f7/lib/appium_lib/android/helper.rb#L345) android
|
2067
2106
|
|
2068
2107
|
> def complex_find_exact(class_name, value)
|
2069
2108
|
|
@@ -2081,7 +2120,7 @@ __Returns:__
|
|
2081
2120
|
|
2082
2121
|
--
|
2083
2122
|
|
2084
|
-
##### [complex_finds_exact](https://github.com/appium/ruby_lib/blob/
|
2123
|
+
##### [complex_finds_exact](https://github.com/appium/ruby_lib/blob/fa3b19c9921cbb84d9fd91a097b8c85d485b60f7/lib/appium_lib/android/helper.rb#L353) android
|
2085
2124
|
|
2086
2125
|
> def complex_finds_exact(class_name, value)
|
2087
2126
|
|
@@ -2099,7 +2138,7 @@ __Returns:__
|
|
2099
2138
|
|
2100
2139
|
--
|
2101
2140
|
|
2102
|
-
##### [get_source](https://github.com/appium/ruby_lib/blob/
|
2141
|
+
##### [get_source](https://github.com/appium/ruby_lib/blob/fa3b19c9921cbb84d9fd91a097b8c85d485b60f7/lib/appium_lib/android/helper.rb#L361) android
|
2103
2142
|
|
2104
2143
|
> def get_source
|
2105
2144
|
|
@@ -2113,7 +2152,7 @@ __Returns:__
|
|
2113
2152
|
|
2114
2153
|
--
|
2115
2154
|
|
2116
|
-
##### [_nodeset_to_uiselector](https://github.com/appium/ruby_lib/blob/
|
2155
|
+
##### [_nodeset_to_uiselector](https://github.com/appium/ruby_lib/blob/fa3b19c9921cbb84d9fd91a097b8c85d485b60f7/lib/appium_lib/android/client_xpath.rb#L5) android
|
2117
2156
|
|
2118
2157
|
> def _nodeset_to_uiselector(opts = {})
|
2119
2158
|
|
@@ -2121,7 +2160,7 @@ __Returns:__
|
|
2121
2160
|
|
2122
2161
|
--
|
2123
2162
|
|
2124
|
-
##### [_client_xpath](https://github.com/appium/ruby_lib/blob/
|
2163
|
+
##### [_client_xpath](https://github.com/appium/ruby_lib/blob/fa3b19c9921cbb84d9fd91a097b8c85d485b60f7/lib/appium_lib/android/client_xpath.rb#L20) android
|
2125
2164
|
|
2126
2165
|
> def _client_xpath(opts = {})
|
2127
2166
|
|
@@ -2129,7 +2168,7 @@ __Returns:__
|
|
2129
2168
|
|
2130
2169
|
--
|
2131
2170
|
|
2132
|
-
##### [client_xpath](https://github.com/appium/ruby_lib/blob/
|
2171
|
+
##### [client_xpath](https://github.com/appium/ruby_lib/blob/fa3b19c9921cbb84d9fd91a097b8c85d485b60f7/lib/appium_lib/android/client_xpath.rb#L36) android
|
2133
2172
|
|
2134
2173
|
> def client_xpath(xpath)
|
2135
2174
|
|
@@ -2137,7 +2176,7 @@ __Returns:__
|
|
2137
2176
|
|
2138
2177
|
--
|
2139
2178
|
|
2140
|
-
##### [client_xpaths](https://github.com/appium/ruby_lib/blob/
|
2179
|
+
##### [client_xpaths](https://github.com/appium/ruby_lib/blob/fa3b19c9921cbb84d9fd91a097b8c85d485b60f7/lib/appium_lib/android/client_xpath.rb#L40) android
|
2141
2180
|
|
2142
2181
|
> def client_xpaths(xpath)
|
2143
2182
|
|
@@ -2145,7 +2184,7 @@ __Returns:__
|
|
2145
2184
|
|
2146
2185
|
--
|
2147
2186
|
|
2148
|
-
##### [TextView](https://github.com/appium/ruby_lib/blob/
|
2187
|
+
##### [TextView](https://github.com/appium/ruby_lib/blob/fa3b19c9921cbb84d9fd91a097b8c85d485b60f7/lib/appium_lib/android/element/text.rb#L4) android
|
2149
2188
|
|
2150
2189
|
> TextView = 'android.widget.TextView'.freeze
|
2151
2190
|
|
@@ -2153,7 +2192,7 @@ __Returns:__
|
|
2153
2192
|
|
2154
2193
|
--
|
2155
2194
|
|
2156
|
-
##### [text](https://github.com/appium/ruby_lib/blob/
|
2195
|
+
##### [text](https://github.com/appium/ruby_lib/blob/fa3b19c9921cbb84d9fd91a097b8c85d485b60f7/lib/appium_lib/android/element/text.rb#L10) android
|
2157
2196
|
|
2158
2197
|
> def text(value)
|
2159
2198
|
|
@@ -2170,7 +2209,7 @@ __Returns:__
|
|
2170
2209
|
|
2171
2210
|
--
|
2172
2211
|
|
2173
|
-
##### [texts](https://github.com/appium/ruby_lib/blob/
|
2212
|
+
##### [texts](https://github.com/appium/ruby_lib/blob/fa3b19c9921cbb84d9fd91a097b8c85d485b60f7/lib/appium_lib/android/element/text.rb#L19) android
|
2174
2213
|
|
2175
2214
|
> def texts(value = false)
|
2176
2215
|
|
@@ -2187,7 +2226,7 @@ __Returns:__
|
|
2187
2226
|
|
2188
2227
|
--
|
2189
2228
|
|
2190
|
-
##### [first_text](https://github.com/appium/ruby_lib/blob/
|
2229
|
+
##### [first_text](https://github.com/appium/ruby_lib/blob/fa3b19c9921cbb84d9fd91a097b8c85d485b60f7/lib/appium_lib/android/element/text.rb#L26) android
|
2191
2230
|
|
2192
2231
|
> def first_text
|
2193
2232
|
|
@@ -2199,7 +2238,7 @@ __Returns:__
|
|
2199
2238
|
|
2200
2239
|
--
|
2201
2240
|
|
2202
|
-
##### [last_text](https://github.com/appium/ruby_lib/blob/
|
2241
|
+
##### [last_text](https://github.com/appium/ruby_lib/blob/fa3b19c9921cbb84d9fd91a097b8c85d485b60f7/lib/appium_lib/android/element/text.rb#L32) android
|
2203
2242
|
|
2204
2243
|
> def last_text
|
2205
2244
|
|
@@ -2211,7 +2250,7 @@ __Returns:__
|
|
2211
2250
|
|
2212
2251
|
--
|
2213
2252
|
|
2214
|
-
##### [text_exact](https://github.com/appium/ruby_lib/blob/
|
2253
|
+
##### [text_exact](https://github.com/appium/ruby_lib/blob/fa3b19c9921cbb84d9fd91a097b8c85d485b60f7/lib/appium_lib/android/element/text.rb#L39) android
|
2215
2254
|
|
2216
2255
|
> def text_exact(value)
|
2217
2256
|
|
@@ -2227,7 +2266,7 @@ __Returns:__
|
|
2227
2266
|
|
2228
2267
|
--
|
2229
2268
|
|
2230
|
-
##### [texts_exact](https://github.com/appium/ruby_lib/blob/
|
2269
|
+
##### [texts_exact](https://github.com/appium/ruby_lib/blob/fa3b19c9921cbb84d9fd91a097b8c85d485b60f7/lib/appium_lib/android/element/text.rb#L46) android
|
2231
2270
|
|
2232
2271
|
> def texts_exact(value)
|
2233
2272
|
|
@@ -2243,7 +2282,7 @@ __Returns:__
|
|
2243
2282
|
|
2244
2283
|
--
|
2245
2284
|
|
2246
|
-
##### [alert_click](https://github.com/appium/ruby_lib/blob/
|
2285
|
+
##### [alert_click](https://github.com/appium/ruby_lib/blob/fa3b19c9921cbb84d9fd91a097b8c85d485b60f7/lib/appium_lib/android/element/alert.rb#L6) android
|
2247
2286
|
|
2248
2287
|
> def alert_click(value)
|
2249
2288
|
|
@@ -2259,7 +2298,7 @@ __Returns:__
|
|
2259
2298
|
|
2260
2299
|
--
|
2261
2300
|
|
2262
|
-
##### [alert_accept](https://github.com/appium/ruby_lib/blob/
|
2301
|
+
##### [alert_accept](https://github.com/appium/ruby_lib/blob/fa3b19c9921cbb84d9fd91a097b8c85d485b60f7/lib/appium_lib/android/element/alert.rb#L13) android
|
2263
2302
|
|
2264
2303
|
> def alert_accept
|
2265
2304
|
|
@@ -2272,7 +2311,7 @@ __Returns:__
|
|
2272
2311
|
|
2273
2312
|
--
|
2274
2313
|
|
2275
|
-
##### [alert_accept_text](https://github.com/appium/ruby_lib/blob/
|
2314
|
+
##### [alert_accept_text](https://github.com/appium/ruby_lib/blob/fa3b19c9921cbb84d9fd91a097b8c85d485b60f7/lib/appium_lib/android/element/alert.rb#L20) android
|
2276
2315
|
|
2277
2316
|
> def alert_accept_text
|
2278
2317
|
|
@@ -2285,7 +2324,7 @@ __Returns:__
|
|
2285
2324
|
|
2286
2325
|
--
|
2287
2326
|
|
2288
|
-
##### [alert_dismiss](https://github.com/appium/ruby_lib/blob/
|
2327
|
+
##### [alert_dismiss](https://github.com/appium/ruby_lib/blob/fa3b19c9921cbb84d9fd91a097b8c85d485b60f7/lib/appium_lib/android/element/alert.rb#L27) android
|
2289
2328
|
|
2290
2329
|
> def alert_dismiss
|
2291
2330
|
|
@@ -2298,7 +2337,7 @@ __Returns:__
|
|
2298
2337
|
|
2299
2338
|
--
|
2300
2339
|
|
2301
|
-
##### [alert_dismiss_text](https://github.com/appium/ruby_lib/blob/
|
2340
|
+
##### [alert_dismiss_text](https://github.com/appium/ruby_lib/blob/fa3b19c9921cbb84d9fd91a097b8c85d485b60f7/lib/appium_lib/android/element/alert.rb#L34) android
|
2302
2341
|
|
2303
2342
|
> def alert_dismiss_text
|
2304
2343
|
|
@@ -2311,7 +2350,7 @@ __Returns:__
|
|
2311
2350
|
|
2312
2351
|
--
|
2313
2352
|
|
2314
|
-
##### [Button](https://github.com/appium/ruby_lib/blob/
|
2353
|
+
##### [Button](https://github.com/appium/ruby_lib/blob/fa3b19c9921cbb84d9fd91a097b8c85d485b60f7/lib/appium_lib/android/element/button.rb#L4) android
|
2315
2354
|
|
2316
2355
|
> Button = 'android.widget.Button'.freeze
|
2317
2356
|
|
@@ -2319,7 +2358,7 @@ __Returns:__
|
|
2319
2358
|
|
2320
2359
|
--
|
2321
2360
|
|
2322
|
-
##### [ImageButton](https://github.com/appium/ruby_lib/blob/
|
2361
|
+
##### [ImageButton](https://github.com/appium/ruby_lib/blob/fa3b19c9921cbb84d9fd91a097b8c85d485b60f7/lib/appium_lib/android/element/button.rb#L5) android
|
2323
2362
|
|
2324
2363
|
> ImageButton = 'android.widget.ImageButton'.freeze
|
2325
2364
|
|
@@ -2327,7 +2366,7 @@ __Returns:__
|
|
2327
2366
|
|
2328
2367
|
--
|
2329
2368
|
|
2330
|
-
##### [button](https://github.com/appium/ruby_lib/blob/
|
2369
|
+
##### [button](https://github.com/appium/ruby_lib/blob/fa3b19c9921cbb84d9fd91a097b8c85d485b60f7/lib/appium_lib/android/element/button.rb#L43) android
|
2331
2370
|
|
2332
2371
|
> def button(value)
|
2333
2372
|
|
@@ -2344,7 +2383,7 @@ __Returns:__
|
|
2344
2383
|
|
2345
2384
|
--
|
2346
2385
|
|
2347
|
-
##### [buttons](https://github.com/appium/ruby_lib/blob/
|
2386
|
+
##### [buttons](https://github.com/appium/ruby_lib/blob/fa3b19c9921cbb84d9fd91a097b8c85d485b60f7/lib/appium_lib/android/element/button.rb#L60) android
|
2348
2387
|
|
2349
2388
|
> def buttons(value = false)
|
2350
2389
|
|
@@ -2361,7 +2400,7 @@ __Returns:__
|
|
2361
2400
|
|
2362
2401
|
--
|
2363
2402
|
|
2364
|
-
##### [first_button](https://github.com/appium/ruby_lib/blob/
|
2403
|
+
##### [first_button](https://github.com/appium/ruby_lib/blob/fa3b19c9921cbb84d9fd91a097b8c85d485b60f7/lib/appium_lib/android/element/button.rb#L67) android
|
2365
2404
|
|
2366
2405
|
> def first_button
|
2367
2406
|
|
@@ -2373,7 +2412,7 @@ __Returns:__
|
|
2373
2412
|
|
2374
2413
|
--
|
2375
2414
|
|
2376
|
-
##### [last_button](https://github.com/appium/ruby_lib/blob/
|
2415
|
+
##### [last_button](https://github.com/appium/ruby_lib/blob/fa3b19c9921cbb84d9fd91a097b8c85d485b60f7/lib/appium_lib/android/element/button.rb#L73) android
|
2377
2416
|
|
2378
2417
|
> def last_button
|
2379
2418
|
|
@@ -2385,7 +2424,7 @@ __Returns:__
|
|
2385
2424
|
|
2386
2425
|
--
|
2387
2426
|
|
2388
|
-
##### [button_exact](https://github.com/appium/ruby_lib/blob/
|
2427
|
+
##### [button_exact](https://github.com/appium/ruby_lib/blob/fa3b19c9921cbb84d9fd91a097b8c85d485b60f7/lib/appium_lib/android/element/button.rb#L89) android
|
2389
2428
|
|
2390
2429
|
> def button_exact(value)
|
2391
2430
|
|
@@ -2401,7 +2440,7 @@ __Returns:__
|
|
2401
2440
|
|
2402
2441
|
--
|
2403
2442
|
|
2404
|
-
##### [buttons_exact](https://github.com/appium/ruby_lib/blob/
|
2443
|
+
##### [buttons_exact](https://github.com/appium/ruby_lib/blob/fa3b19c9921cbb84d9fd91a097b8c85d485b60f7/lib/appium_lib/android/element/button.rb#L96) android
|
2405
2444
|
|
2406
2445
|
> def buttons_exact(value)
|
2407
2446
|
|
@@ -2417,7 +2456,7 @@ __Returns:__
|
|
2417
2456
|
|
2418
2457
|
--
|
2419
2458
|
|
2420
|
-
##### [uiautomator_find](https://github.com/appium/ruby_lib/blob/
|
2459
|
+
##### [uiautomator_find](https://github.com/appium/ruby_lib/blob/fa3b19c9921cbb84d9fd91a097b8c85d485b60f7/lib/appium_lib/android/mobile_methods.rb#L10) android
|
2421
2460
|
|
2422
2461
|
> def uiautomator_find
|
2423
2462
|
|
@@ -2429,7 +2468,7 @@ find_element/s can be used with a [UISelector](http://developer.android.com/tool
|
|
2429
2468
|
|
2430
2469
|
--
|
2431
2470
|
|
2432
|
-
##### [find](https://github.com/appium/ruby_lib/blob/
|
2471
|
+
##### [find](https://github.com/appium/ruby_lib/blob/fa3b19c9921cbb84d9fd91a097b8c85d485b60f7/lib/appium_lib/android/element/generic.rb#L6) android
|
2433
2472
|
|
2434
2473
|
> def find(value)
|
2435
2474
|
|
@@ -2445,7 +2484,7 @@ __Returns:__
|
|
2445
2484
|
|
2446
2485
|
--
|
2447
2486
|
|
2448
|
-
##### [finds](https://github.com/appium/ruby_lib/blob/
|
2487
|
+
##### [finds](https://github.com/appium/ruby_lib/blob/fa3b19c9921cbb84d9fd91a097b8c85d485b60f7/lib/appium_lib/android/element/generic.rb#L13) android
|
2449
2488
|
|
2450
2489
|
> def finds(value)
|
2451
2490
|
|
@@ -2461,7 +2500,7 @@ __Returns:__
|
|
2461
2500
|
|
2462
2501
|
--
|
2463
2502
|
|
2464
|
-
##### [find_exact](https://github.com/appium/ruby_lib/blob/
|
2503
|
+
##### [find_exact](https://github.com/appium/ruby_lib/blob/fa3b19c9921cbb84d9fd91a097b8c85d485b60f7/lib/appium_lib/android/element/generic.rb#L20) android
|
2465
2504
|
|
2466
2505
|
> def find_exact(value)
|
2467
2506
|
|
@@ -2477,7 +2516,7 @@ __Returns:__
|
|
2477
2516
|
|
2478
2517
|
--
|
2479
2518
|
|
2480
|
-
##### [finds_exact](https://github.com/appium/ruby_lib/blob/
|
2519
|
+
##### [finds_exact](https://github.com/appium/ruby_lib/blob/fa3b19c9921cbb84d9fd91a097b8c85d485b60f7/lib/appium_lib/android/element/generic.rb#L27) android
|
2481
2520
|
|
2482
2521
|
> def finds_exact(value)
|
2483
2522
|
|
@@ -2493,7 +2532,7 @@ __Returns:__
|
|
2493
2532
|
|
2494
2533
|
--
|
2495
2534
|
|
2496
|
-
##### [scroll_to](https://github.com/appium/ruby_lib/blob/
|
2535
|
+
##### [scroll_to](https://github.com/appium/ruby_lib/blob/fa3b19c9921cbb84d9fd91a097b8c85d485b60f7/lib/appium_lib/android/element/generic.rb#L39) android
|
2497
2536
|
|
2498
2537
|
> def scroll_to(text)
|
2499
2538
|
|
@@ -2509,7 +2548,7 @@ __Returns:__
|
|
2509
2548
|
|
2510
2549
|
--
|
2511
2550
|
|
2512
|
-
##### [scroll_to_exact](https://github.com/appium/ruby_lib/blob/
|
2551
|
+
##### [scroll_to_exact](https://github.com/appium/ruby_lib/blob/fa3b19c9921cbb84d9fd91a097b8c85d485b60f7/lib/appium_lib/android/element/generic.rb#L51) android
|
2513
2552
|
|
2514
2553
|
> def scroll_to_exact(text)
|
2515
2554
|
|
@@ -2525,7 +2564,7 @@ __Returns:__
|
|
2525
2564
|
|
2526
2565
|
--
|
2527
2566
|
|
2528
|
-
##### [EditText](https://github.com/appium/ruby_lib/blob/
|
2567
|
+
##### [EditText](https://github.com/appium/ruby_lib/blob/fa3b19c9921cbb84d9fd91a097b8c85d485b60f7/lib/appium_lib/android/element/textfield.rb#L3) android
|
2529
2568
|
|
2530
2569
|
> EditText = 'android.widget.EditText'.freeze
|
2531
2570
|
|
@@ -2533,7 +2572,7 @@ __Returns:__
|
|
2533
2572
|
|
2534
2573
|
--
|
2535
2574
|
|
2536
|
-
##### [textfield](https://github.com/appium/ruby_lib/blob/
|
2575
|
+
##### [textfield](https://github.com/appium/ruby_lib/blob/fa3b19c9921cbb84d9fd91a097b8c85d485b60f7/lib/appium_lib/android/element/textfield.rb#L9) android
|
2537
2576
|
|
2538
2577
|
> def textfield(value)
|
2539
2578
|
|
@@ -2550,7 +2589,7 @@ __Returns:__
|
|
2550
2589
|
|
2551
2590
|
--
|
2552
2591
|
|
2553
|
-
##### [textfields](https://github.com/appium/ruby_lib/blob/
|
2592
|
+
##### [textfields](https://github.com/appium/ruby_lib/blob/fa3b19c9921cbb84d9fd91a097b8c85d485b60f7/lib/appium_lib/android/element/textfield.rb#L18) android
|
2554
2593
|
|
2555
2594
|
> def textfields(value = false)
|
2556
2595
|
|
@@ -2567,7 +2606,7 @@ __Returns:__
|
|
2567
2606
|
|
2568
2607
|
--
|
2569
2608
|
|
2570
|
-
##### [first_textfield](https://github.com/appium/ruby_lib/blob/
|
2609
|
+
##### [first_textfield](https://github.com/appium/ruby_lib/blob/fa3b19c9921cbb84d9fd91a097b8c85d485b60f7/lib/appium_lib/android/element/textfield.rb#L25) android
|
2571
2610
|
|
2572
2611
|
> def first_textfield
|
2573
2612
|
|
@@ -2579,7 +2618,7 @@ __Returns:__
|
|
2579
2618
|
|
2580
2619
|
--
|
2581
2620
|
|
2582
|
-
##### [last_textfield](https://github.com/appium/ruby_lib/blob/
|
2621
|
+
##### [last_textfield](https://github.com/appium/ruby_lib/blob/fa3b19c9921cbb84d9fd91a097b8c85d485b60f7/lib/appium_lib/android/element/textfield.rb#L31) android
|
2583
2622
|
|
2584
2623
|
> def last_textfield
|
2585
2624
|
|
@@ -2591,7 +2630,7 @@ __Returns:__
|
|
2591
2630
|
|
2592
2631
|
--
|
2593
2632
|
|
2594
|
-
##### [textfield_exact](https://github.com/appium/ruby_lib/blob/
|
2633
|
+
##### [textfield_exact](https://github.com/appium/ruby_lib/blob/fa3b19c9921cbb84d9fd91a097b8c85d485b60f7/lib/appium_lib/android/element/textfield.rb#L38) android
|
2595
2634
|
|
2596
2635
|
> def textfield_exact(value)
|
2597
2636
|
|
@@ -2607,7 +2646,7 @@ __Returns:__
|
|
2607
2646
|
|
2608
2647
|
--
|
2609
2648
|
|
2610
|
-
##### [textfields_exact](https://github.com/appium/ruby_lib/blob/
|
2649
|
+
##### [textfields_exact](https://github.com/appium/ruby_lib/blob/fa3b19c9921cbb84d9fd91a097b8c85d485b60f7/lib/appium_lib/android/element/textfield.rb#L45) android
|
2611
2650
|
|
2612
2651
|
> def textfields_exact(value)
|
2613
2652
|
|
@@ -2623,7 +2662,7 @@ __Returns:__
|
|
2623
2662
|
|
2624
2663
|
--
|
2625
2664
|
|
2626
|
-
##### [value](https://github.com/appium/ruby_lib/blob/
|
2665
|
+
##### [value](https://github.com/appium/ruby_lib/blob/fa3b19c9921cbb84d9fd91a097b8c85d485b60f7/lib/appium_lib/common/patch.rb#L12)
|
2627
2666
|
|
2628
2667
|
> def value
|
2629
2668
|
|
@@ -2633,7 +2672,7 @@ Fixes NoMethodError: undefined method `value' for Selenium::WebDriver::Element
|
|
2633
2672
|
|
2634
2673
|
--
|
2635
2674
|
|
2636
|
-
##### [name](https://github.com/appium/ruby_lib/blob/
|
2675
|
+
##### [name](https://github.com/appium/ruby_lib/blob/fa3b19c9921cbb84d9fd91a097b8c85d485b60f7/lib/appium_lib/common/patch.rb#L19)
|
2637
2676
|
|
2638
2677
|
> def name
|
2639
2678
|
|
@@ -2643,7 +2682,7 @@ Fixes NoMethodError: undefined method `name' for Selenium::WebDriver::Element
|
|
2643
2682
|
|
2644
2683
|
--
|
2645
2684
|
|
2646
|
-
##### [location_rel](https://github.com/appium/ruby_lib/blob/
|
2685
|
+
##### [location_rel](https://github.com/appium/ruby_lib/blob/fa3b19c9921cbb84d9fd91a097b8c85d485b60f7/lib/appium_lib/common/patch.rb#L31)
|
2647
2686
|
|
2648
2687
|
> def location_rel
|
2649
2688
|
|
@@ -2661,7 +2700,7 @@ __Returns:__
|
|
2661
2700
|
|
2662
2701
|
--
|
2663
2702
|
|
2664
|
-
##### [DEFAULT_HEADERS](https://github.com/appium/ruby_lib/blob/
|
2703
|
+
##### [DEFAULT_HEADERS](https://github.com/appium/ruby_lib/blob/fa3b19c9921cbb84d9fd91a097b8c85d485b60f7/lib/appium_lib/common/patch.rb#L152)
|
2665
2704
|
|
2666
2705
|
> DEFAULT_HEADERS = { 'Accept' => CONTENT_TYPE, 'User-Agent' => "appium/ruby_lib/#{::Appium::VERSION}" }.freeze
|
2667
2706
|
|
@@ -2669,7 +2708,7 @@ __Returns:__
|
|
2669
2708
|
|
2670
2709
|
--
|
2671
2710
|
|
2672
|
-
##### [patch_remote_driver_commands](https://github.com/appium/ruby_lib/blob/
|
2711
|
+
##### [patch_remote_driver_commands](https://github.com/appium/ruby_lib/blob/fa3b19c9921cbb84d9fd91a097b8c85d485b60f7/lib/appium_lib/common/patch.rb#L155)
|
2673
2712
|
|
2674
2713
|
> def patch_remote_driver_commands
|
2675
2714
|
|