appium_lib 9.1.3 → 9.2.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +81 -0
- data/Rakefile +12 -5
- data/android_tests/lib/android/specs/driver.rb +10 -5
- data/android_tests/lib/run.rb +8 -1
- data/docs/android_docs.md +254 -276
- data/docs/ios_docs.md +263 -271
- data/docs/ios_xcuitest.md +1 -0
- data/ios_tests/appium.txt +1 -0
- data/ios_tests/lib/ios/specs/driver.rb +8 -12
- data/lib/appium_lib/common/version.rb +2 -2
- data/lib/appium_lib/device/multi_touch.rb +1 -1
- data/lib/appium_lib/device/touch_actions.rb +2 -1
- data/lib/appium_lib/driver.rb +19 -25
- data/lib/appium_lib/ios/mobile_methods.rb +9 -0
- metadata +3 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 8061a73f0f34313a700a4b29da4e2297d89c4181
|
4
|
+
data.tar.gz: 92333252eca3ad591c71b2f03c006b9499a193db
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 15702afd436ac73597e99b12d4d5f1c982c53819b2f15bc96d8860527e12879e66210cbc2993783ec4c1bfc12f78cd11594734b4991c687e6d293d2dfafda856
|
7
|
+
data.tar.gz: 1884f613427e5925d48cf8c0ef5e29fbb5cc743e47e0cc7afe14790582f8dbce2c3262a2ea1a9d9550957a2a0c83100b319461599779f82273bcfb7b23983035
|
data/CHANGELOG.md
ADDED
@@ -0,0 +1,81 @@
|
|
1
|
+
# Changelogs
|
2
|
+
Commit based release not is [release_notes.md](./release_notes.md)
|
3
|
+
|
4
|
+
Release tags are https://github.com/appium/ruby_lib/releases .
|
5
|
+
|
6
|
+
## v9.2.0
|
7
|
+
### 1. Enhancements
|
8
|
+
- update set_wait / no_wait logic #249
|
9
|
+
- `no_wait` just set `implicit_wait = 0`
|
10
|
+
- `set_wait` just set `@default_wait` or arbitrary time as `implicit_wait`
|
11
|
+
- remove `last_waits` attribute
|
12
|
+
|
13
|
+
### 2. Bug fixes
|
14
|
+
- automationName always nil if set automationName in server side #450
|
15
|
+
|
16
|
+
### 3. Deprecations
|
17
|
+
|
18
|
+
## v9.1.3
|
19
|
+
|
20
|
+
Support selenium-webdriver 3.0.4+
|
21
|
+
|
22
|
+
### 1. Enhancements
|
23
|
+
- Improve performance for button/s and text/s #442
|
24
|
+
- Should use `open_timeout` or `read_timeout` instead of `timeout` #436
|
25
|
+
- add documentation for alternative long_press method #440
|
26
|
+
|
27
|
+
### 2. Bug fixes
|
28
|
+
|
29
|
+
### 3. Deprecations
|
30
|
+
|
31
|
+
## v9.1.2
|
32
|
+
### 1. Enhancements
|
33
|
+
- add `appium_client_version`: https://github.com/appium/ruby_lib/issues/260
|
34
|
+
- add some tests and fix some rubocop syntax errors
|
35
|
+
|
36
|
+
### 2. Bug fixes
|
37
|
+
- fix `set_immediate_value`: https://github.com/appium/ruby_lib/issues/263
|
38
|
+
|
39
|
+
### 3. Deprecations
|
40
|
+
|
41
|
+
## v9.1.1
|
42
|
+
### 1. Enhancements
|
43
|
+
|
44
|
+
### 2. Bug fixes
|
45
|
+
- fix Finds exact in ios does not return an array #423
|
46
|
+
|
47
|
+
### 3. Deprecations
|
48
|
+
|
49
|
+
Thanks @slipy12
|
50
|
+
|
51
|
+
## v9.1.0
|
52
|
+
### 1. Enhancements
|
53
|
+
- update dependencies
|
54
|
+
- Support selenium-webdriver 3.0.2+
|
55
|
+
- If you'd like to use `selenium-webdriver2.x`, please use `appium_lib9.0.0`
|
56
|
+
|
57
|
+
### 2. Bug fixes
|
58
|
+
|
59
|
+
### 3. Deprecations
|
60
|
+
- Drop Ruby 1.9.3, 2.0, 2.1 support
|
61
|
+
- Because these ruby versions have already stop updating.
|
62
|
+
|
63
|
+
## v9.0.0
|
64
|
+
### 1. Enhancements
|
65
|
+
- Support `XCUITest` strategy for iOS
|
66
|
+
- Basically, `XCUITest` strategy is compatible with `Appium` strategy in this library.
|
67
|
+
- But users who use XPath should be check [this document](https://github.com/appium/ruby_lib/blob/master/docs/ios_xcuitest.md) since XPath has performance issue
|
68
|
+
- Users who use `find_element/s` should work fine.
|
69
|
+
- tests for elements are [here](https://github.com/appium/ruby_lib/tree/master/ios_tests/lib/ios/specs/ios/element)
|
70
|
+
|
71
|
+
Special thanks to @montdidier
|
72
|
+
|
73
|
+
### 2. Bug fixes
|
74
|
+
|
75
|
+
### 3. Deprecations
|
76
|
+
|
77
|
+
|
78
|
+
## v8.2.1
|
79
|
+
- fix arguments for `move_to` in `swipe` method.
|
80
|
+
- https://github.com/appium/ruby_lib/pull/405
|
81
|
+
- Please set `:delta_x` and `:delta_y` as the distance from start to move.
|
data/Rakefile
CHANGED
@@ -108,13 +108,11 @@ task :release => :gem do
|
|
108
108
|
tag_name = "v#{version}"
|
109
109
|
raise 'Tag already exists!' if tag_exists tag_name
|
110
110
|
|
111
|
-
sh "git commit --allow-empty -am 'Release #{version}'"
|
112
|
-
sh 'git pull'
|
113
|
-
sh "git tag #{tag_name}"
|
114
|
-
|
115
111
|
branch_name = "release_#{version.gsub('.', '_')}"
|
116
112
|
sh "git checkout -b #{branch_name}"
|
117
113
|
|
114
|
+
sh "git commit --allow-empty -am 'Release #{version}'"
|
115
|
+
|
118
116
|
# update notes now that there's a new tag
|
119
117
|
Rake::Task['notes'].execute
|
120
118
|
Rake::Task['docs'].execute
|
@@ -125,7 +123,15 @@ end
|
|
125
123
|
|
126
124
|
desc 'Build and release a new gem to rubygems.org'
|
127
125
|
task :publish do
|
126
|
+
unless `git branch`.include? '* master'
|
127
|
+
puts 'Master branch required to release.'
|
128
|
+
exit!
|
129
|
+
end
|
130
|
+
|
131
|
+
sh 'git pull'
|
132
|
+
|
128
133
|
tag_name = "v#{version}"
|
134
|
+
sh "git tag #{tag_name}"
|
129
135
|
sh "git push origin #{tag_name}"
|
130
136
|
|
131
137
|
gem_build
|
@@ -153,6 +159,7 @@ task :uninstall do
|
|
153
159
|
begin
|
154
160
|
sh "#{cmd}"
|
155
161
|
rescue
|
162
|
+
# ignored
|
156
163
|
end
|
157
164
|
end
|
158
165
|
|
@@ -163,7 +170,7 @@ end
|
|
163
170
|
|
164
171
|
desc 'Update android and iOS docs'
|
165
172
|
task :docs do
|
166
|
-
sh
|
173
|
+
sh 'ruby docs_gen/make_docs.rb'
|
167
174
|
end
|
168
175
|
|
169
176
|
desc 'Update release notes'
|
@@ -14,6 +14,12 @@ describe 'driver' do
|
|
14
14
|
end
|
15
15
|
|
16
16
|
describe 'Appium::Driver attributes' do
|
17
|
+
t 'no_wait' do
|
18
|
+
no_wait
|
19
|
+
proc { button('zz') }.must_raise Selenium::WebDriver::Error::NoSuchElementError
|
20
|
+
set_wait
|
21
|
+
end
|
22
|
+
|
17
23
|
# attr_reader :default_wait, :app_path, :app_name, :selendroid,
|
18
24
|
# :app_package, :app_activity, :app_wait_activity,
|
19
25
|
# :sauce_username, :sauce_access_key, :port, :os, :debug
|
@@ -30,20 +36,19 @@ describe 'driver' do
|
|
30
36
|
|
31
37
|
# Only used for Sauce Labs
|
32
38
|
t 'verify all attributes' do
|
33
|
-
2.times { set_wait 1 } # must set twice to validate last_waits
|
34
39
|
actual = driver_attributes
|
35
40
|
caps_app_for_teardown = actual[:caps][:app]
|
36
|
-
|
41
|
+
expected_app = File.absolute_path('api.apk')
|
37
42
|
expected_caps = ::Appium::Driver::Capabilities.init_caps_for_appium(platformName: 'Android',
|
38
|
-
app:
|
43
|
+
app: expected_app,
|
39
44
|
appPackage: 'io.appium.android.apis',
|
40
45
|
appActivity: '.ApiDemos',
|
41
46
|
deviceName: 'Nexus 7')
|
42
47
|
expected = { caps: expected_caps,
|
48
|
+
automationName: nil,
|
43
49
|
custom_url: false,
|
44
50
|
export_session: false,
|
45
51
|
default_wait: 1,
|
46
|
-
last_waits: [1, 1],
|
47
52
|
sauce_username: nil,
|
48
53
|
sauce_access_key: nil,
|
49
54
|
port: 4723,
|
@@ -174,7 +179,7 @@ describe 'driver' do
|
|
174
179
|
end
|
175
180
|
|
176
181
|
t 'driver' do
|
177
|
-
driver.browser.
|
182
|
+
driver.browser.must_be_empty
|
178
183
|
end
|
179
184
|
|
180
185
|
# Skip:
|
data/android_tests/lib/run.rb
CHANGED
@@ -31,7 +31,14 @@ one_test = ARGV[1]
|
|
31
31
|
test_dir = "/#{device}/"
|
32
32
|
|
33
33
|
caps = Appium.load_settings file: appium_txt, verbose: true
|
34
|
-
caps
|
34
|
+
caps = if caps[:appium_lib]
|
35
|
+
appium_lib = caps[:appium_lib]
|
36
|
+
appium_lib = appium_lib.merge(debug: true) unless appium_lib[:debug]
|
37
|
+
appium_lib = appium_lib.merge(wait: 1) unless appium_lib[:wait]
|
38
|
+
caps.merge(appium_lib: appium_lib)
|
39
|
+
else
|
40
|
+
caps.merge(appium_lib: { debug: true, wait: 1 })
|
41
|
+
end
|
35
42
|
caps[:app] = ENV['SAUCE_PATH'] if ENV['SAUCE_USERNAME'] && ENV['SAUCE_ACCESS_KEY']
|
36
43
|
|
37
44
|
trace_files = []
|
data/docs/android_docs.md
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
##### [load_settings](https://github.com/appium/ruby_lib/blob/
|
1
|
+
##### [load_settings](https://github.com/appium/ruby_lib/blob/ecf1a5a1e323aeb1efdaebbfe1ae566bfcae1978/lib/appium_lib/driver.rb#L74)
|
2
2
|
|
3
3
|
> def self.load_settings(opts = {})
|
4
4
|
|
@@ -26,7 +26,7 @@ __Returns:__
|
|
26
26
|
|
27
27
|
--
|
28
28
|
|
29
|
-
##### [load_appium_txt](https://github.com/appium/ruby_lib/blob/
|
29
|
+
##### [load_appium_txt](https://github.com/appium/ruby_lib/blob/ecf1a5a1e323aeb1efdaebbfe1ae566bfcae1978/lib/appium_lib/driver.rb#L110)
|
30
30
|
|
31
31
|
> def self.load_settings(opts = {})
|
32
32
|
|
@@ -55,7 +55,7 @@ __Returns:__
|
|
55
55
|
|
56
56
|
--
|
57
57
|
|
58
|
-
##### [expand_required_files](https://github.com/appium/ruby_lib/blob/
|
58
|
+
##### [expand_required_files](https://github.com/appium/ruby_lib/blob/ecf1a5a1e323aeb1efdaebbfe1ae566bfcae1978/lib/appium_lib/driver.rb#L116)
|
59
59
|
|
60
60
|
> def self.expand_required_files(base_dir, file_paths)
|
61
61
|
|
@@ -73,7 +73,7 @@ __Returns:__
|
|
73
73
|
|
74
74
|
--
|
75
75
|
|
76
|
-
##### [symbolize_keys](https://github.com/appium/ruby_lib/blob/
|
76
|
+
##### [symbolize_keys](https://github.com/appium/ruby_lib/blob/ecf1a5a1e323aeb1efdaebbfe1ae566bfcae1978/lib/appium_lib/driver.rb#L148)
|
77
77
|
|
78
78
|
> def self.symbolize_keys(hash)
|
79
79
|
|
@@ -84,7 +84,7 @@ https://github.com/rails/docrails/blob/a3b1105ada3da64acfa3843b164b14b734456a50/
|
|
84
84
|
|
85
85
|
--
|
86
86
|
|
87
|
-
##### [promote_singleton_appium_methods](https://github.com/appium/ruby_lib/blob/
|
87
|
+
##### [promote_singleton_appium_methods](https://github.com/appium/ruby_lib/blob/ecf1a5a1e323aeb1efdaebbfe1ae566bfcae1978/lib/appium_lib/driver.rb#L169)
|
88
88
|
|
89
89
|
> def self.promote_singleton_appium_methods(modules)
|
90
90
|
|
@@ -102,7 +102,7 @@ otherwise, the array of modules will be used as the promotion target.
|
|
102
102
|
|
103
103
|
--
|
104
104
|
|
105
|
-
##### [promote_appium_methods](https://github.com/appium/ruby_lib/blob/
|
105
|
+
##### [promote_appium_methods](https://github.com/appium/ruby_lib/blob/ecf1a5a1e323aeb1efdaebbfe1ae566bfcae1978/lib/appium_lib/driver.rb#L222)
|
106
106
|
|
107
107
|
> def self.promote_appium_methods(class_array)
|
108
108
|
|
@@ -132,7 +132,7 @@ __Parameters:__
|
|
132
132
|
|
133
133
|
--
|
134
134
|
|
135
|
-
##### [init_caps_for_appium](https://github.com/appium/ruby_lib/blob/
|
135
|
+
##### [init_caps_for_appium](https://github.com/appium/ruby_lib/blob/ecf1a5a1e323aeb1efdaebbfe1ae566bfcae1978/lib/appium_lib/driver.rb#L254)
|
136
136
|
|
137
137
|
> def self.init_caps_for_appium(opts_caps = {})
|
138
138
|
|
@@ -142,7 +142,7 @@ https://github.com/SeleniumHQ/selenium/blob/selenium-3.0.1/rb/lib/selenium/webdr
|
|
142
142
|
|
143
143
|
--
|
144
144
|
|
145
|
-
##### [global_webdriver_http_sleep](https://github.com/appium/ruby_lib/blob/
|
145
|
+
##### [global_webdriver_http_sleep](https://github.com/appium/ruby_lib/blob/ecf1a5a1e323aeb1efdaebbfe1ae566bfcae1978/lib/appium_lib/driver.rb#L272)
|
146
146
|
|
147
147
|
> def global_webdriver_http_sleep
|
148
148
|
|
@@ -150,7 +150,7 @@ The amount to sleep in seconds before every webdriver http call.
|
|
150
150
|
|
151
151
|
--
|
152
152
|
|
153
|
-
##### [global_webdriver_http_sleep=](https://github.com/appium/ruby_lib/blob/
|
153
|
+
##### [global_webdriver_http_sleep=](https://github.com/appium/ruby_lib/blob/ecf1a5a1e323aeb1efdaebbfe1ae566bfcae1978/lib/appium_lib/driver.rb#L272)
|
154
154
|
|
155
155
|
> def global_webdriver_http_sleep=(value)
|
156
156
|
|
@@ -158,7 +158,7 @@ The amount to sleep in seconds before every webdriver http call.
|
|
158
158
|
|
159
159
|
--
|
160
160
|
|
161
|
-
##### [caps](https://github.com/appium/ruby_lib/blob/
|
161
|
+
##### [caps](https://github.com/appium/ruby_lib/blob/ecf1a5a1e323aeb1efdaebbfe1ae566bfcae1978/lib/appium_lib/driver.rb#L274)
|
162
162
|
|
163
163
|
> def caps
|
164
164
|
|
@@ -166,7 +166,7 @@ Selenium webdriver capabilities
|
|
166
166
|
|
167
167
|
--
|
168
168
|
|
169
|
-
##### [caps=](https://github.com/appium/ruby_lib/blob/
|
169
|
+
##### [caps=](https://github.com/appium/ruby_lib/blob/ecf1a5a1e323aeb1efdaebbfe1ae566bfcae1978/lib/appium_lib/driver.rb#L274)
|
170
170
|
|
171
171
|
> def caps=(value)
|
172
172
|
|
@@ -174,7 +174,7 @@ Selenium webdriver capabilities
|
|
174
174
|
|
175
175
|
--
|
176
176
|
|
177
|
-
##### [custom_url](https://github.com/appium/ruby_lib/blob/
|
177
|
+
##### [custom_url](https://github.com/appium/ruby_lib/blob/ecf1a5a1e323aeb1efdaebbfe1ae566bfcae1978/lib/appium_lib/driver.rb#L276)
|
178
178
|
|
179
179
|
> def custom_url
|
180
180
|
|
@@ -182,7 +182,7 @@ Custom URL for the selenium server
|
|
182
182
|
|
183
183
|
--
|
184
184
|
|
185
|
-
##### [custom_url=](https://github.com/appium/ruby_lib/blob/
|
185
|
+
##### [custom_url=](https://github.com/appium/ruby_lib/blob/ecf1a5a1e323aeb1efdaebbfe1ae566bfcae1978/lib/appium_lib/driver.rb#L276)
|
186
186
|
|
187
187
|
> def custom_url=(value)
|
188
188
|
|
@@ -190,7 +190,7 @@ Custom URL for the selenium server
|
|
190
190
|
|
191
191
|
--
|
192
192
|
|
193
|
-
##### [export_session](https://github.com/appium/ruby_lib/blob/
|
193
|
+
##### [export_session](https://github.com/appium/ruby_lib/blob/ecf1a5a1e323aeb1efdaebbfe1ae566bfcae1978/lib/appium_lib/driver.rb#L278)
|
194
194
|
|
195
195
|
> def export_session
|
196
196
|
|
@@ -198,7 +198,7 @@ Export session id to textfile in /tmp for 3rd party tools
|
|
198
198
|
|
199
199
|
--
|
200
200
|
|
201
|
-
##### [export_session=](https://github.com/appium/ruby_lib/blob/
|
201
|
+
##### [export_session=](https://github.com/appium/ruby_lib/blob/ecf1a5a1e323aeb1efdaebbfe1ae566bfcae1978/lib/appium_lib/driver.rb#L278)
|
202
202
|
|
203
203
|
> def export_session=(value)
|
204
204
|
|
@@ -206,7 +206,7 @@ Export session id to textfile in /tmp for 3rd party tools
|
|
206
206
|
|
207
207
|
--
|
208
208
|
|
209
|
-
##### [default_wait](https://github.com/appium/ruby_lib/blob/
|
209
|
+
##### [default_wait](https://github.com/appium/ruby_lib/blob/ecf1a5a1e323aeb1efdaebbfe1ae566bfcae1978/lib/appium_lib/driver.rb#L283)
|
210
210
|
|
211
211
|
> def default_wait
|
212
212
|
|
@@ -220,37 +220,7 @@ __Returns:__
|
|
220
220
|
|
221
221
|
--
|
222
222
|
|
223
|
-
##### [
|
224
|
-
|
225
|
-
> def default_wait=(value)
|
226
|
-
|
227
|
-
Default wait time for elements to appear
|
228
|
-
Returns the default client side wait.
|
229
|
-
This value is independent of what the server is using
|
230
|
-
|
231
|
-
__Returns:__
|
232
|
-
|
233
|
-
[Integer]
|
234
|
-
|
235
|
-
--
|
236
|
-
|
237
|
-
##### [last_waits](https://github.com/appium/ruby_lib/blob/ba2fbdcb206609259134fc09eac7940c21cc2c13/lib/appium_lib/driver.rb#L285)
|
238
|
-
|
239
|
-
> def last_waits
|
240
|
-
|
241
|
-
Array of previous wait time values
|
242
|
-
|
243
|
-
--
|
244
|
-
|
245
|
-
##### [last_waits=](https://github.com/appium/ruby_lib/blob/ba2fbdcb206609259134fc09eac7940c21cc2c13/lib/appium_lib/driver.rb#L285)
|
246
|
-
|
247
|
-
> def last_waits=(value)
|
248
|
-
|
249
|
-
Array of previous wait time values
|
250
|
-
|
251
|
-
--
|
252
|
-
|
253
|
-
##### [sauce_username](https://github.com/appium/ruby_lib/blob/ba2fbdcb206609259134fc09eac7940c21cc2c13/lib/appium_lib/driver.rb#L287)
|
223
|
+
##### [sauce_username](https://github.com/appium/ruby_lib/blob/ecf1a5a1e323aeb1efdaebbfe1ae566bfcae1978/lib/appium_lib/driver.rb#L285)
|
254
224
|
|
255
225
|
> def sauce_username
|
256
226
|
|
@@ -258,7 +228,7 @@ Username for use on Sauce Labs
|
|
258
228
|
|
259
229
|
--
|
260
230
|
|
261
|
-
##### [sauce_username=](https://github.com/appium/ruby_lib/blob/
|
231
|
+
##### [sauce_username=](https://github.com/appium/ruby_lib/blob/ecf1a5a1e323aeb1efdaebbfe1ae566bfcae1978/lib/appium_lib/driver.rb#L285)
|
262
232
|
|
263
233
|
> def sauce_username=(value)
|
264
234
|
|
@@ -266,7 +236,7 @@ Username for use on Sauce Labs
|
|
266
236
|
|
267
237
|
--
|
268
238
|
|
269
|
-
##### [sauce_access_key](https://github.com/appium/ruby_lib/blob/
|
239
|
+
##### [sauce_access_key](https://github.com/appium/ruby_lib/blob/ecf1a5a1e323aeb1efdaebbfe1ae566bfcae1978/lib/appium_lib/driver.rb#L287)
|
270
240
|
|
271
241
|
> def sauce_access_key
|
272
242
|
|
@@ -274,7 +244,7 @@ Access Key for use on Sauce Labs
|
|
274
244
|
|
275
245
|
--
|
276
246
|
|
277
|
-
##### [sauce_access_key=](https://github.com/appium/ruby_lib/blob/
|
247
|
+
##### [sauce_access_key=](https://github.com/appium/ruby_lib/blob/ecf1a5a1e323aeb1efdaebbfe1ae566bfcae1978/lib/appium_lib/driver.rb#L287)
|
278
248
|
|
279
249
|
> def sauce_access_key=(value)
|
280
250
|
|
@@ -282,7 +252,7 @@ Access Key for use on Sauce Labs
|
|
282
252
|
|
283
253
|
--
|
284
254
|
|
285
|
-
##### [appium_port](https://github.com/appium/ruby_lib/blob/
|
255
|
+
##### [appium_port](https://github.com/appium/ruby_lib/blob/ecf1a5a1e323aeb1efdaebbfe1ae566bfcae1978/lib/appium_lib/driver.rb#L289)
|
286
256
|
|
287
257
|
> def appium_port
|
288
258
|
|
@@ -290,7 +260,7 @@ Appium's server port
|
|
290
260
|
|
291
261
|
--
|
292
262
|
|
293
|
-
##### [appium_port=](https://github.com/appium/ruby_lib/blob/
|
263
|
+
##### [appium_port=](https://github.com/appium/ruby_lib/blob/ecf1a5a1e323aeb1efdaebbfe1ae566bfcae1978/lib/appium_lib/driver.rb#L289)
|
294
264
|
|
295
265
|
> def appium_port=(value)
|
296
266
|
|
@@ -298,7 +268,7 @@ Appium's server port
|
|
298
268
|
|
299
269
|
--
|
300
270
|
|
301
|
-
##### [appium_device](https://github.com/appium/ruby_lib/blob/
|
271
|
+
##### [appium_device](https://github.com/appium/ruby_lib/blob/ecf1a5a1e323aeb1efdaebbfe1ae566bfcae1978/lib/appium_lib/driver.rb#L291)
|
302
272
|
|
303
273
|
> def appium_device
|
304
274
|
|
@@ -306,7 +276,7 @@ Device type to request from the appium server
|
|
306
276
|
|
307
277
|
--
|
308
278
|
|
309
|
-
##### [appium_device=](https://github.com/appium/ruby_lib/blob/
|
279
|
+
##### [appium_device=](https://github.com/appium/ruby_lib/blob/ecf1a5a1e323aeb1efdaebbfe1ae566bfcae1978/lib/appium_lib/driver.rb#L291)
|
310
280
|
|
311
281
|
> def appium_device=(value)
|
312
282
|
|
@@ -314,15 +284,16 @@ Device type to request from the appium server
|
|
314
284
|
|
315
285
|
--
|
316
286
|
|
317
|
-
##### [automation_name](https://github.com/appium/ruby_lib/blob/
|
287
|
+
##### [automation_name](https://github.com/appium/ruby_lib/blob/ecf1a5a1e323aeb1efdaebbfe1ae566bfcae1978/lib/appium_lib/driver.rb#L294)
|
318
288
|
|
319
289
|
> def automation_name
|
320
290
|
|
321
|
-
Automation name sent to appium server
|
291
|
+
Automation name sent to appium server or received from server
|
292
|
+
If automation_name is nil, it is not set both client side and server side.
|
322
293
|
|
323
294
|
--
|
324
295
|
|
325
|
-
##### [appium_server_version](https://github.com/appium/ruby_lib/blob/
|
296
|
+
##### [appium_server_version](https://github.com/appium/ruby_lib/blob/ecf1a5a1e323aeb1efdaebbfe1ae566bfcae1978/lib/appium_lib/driver.rb#L296)
|
326
297
|
|
327
298
|
> def appium_server_version
|
328
299
|
|
@@ -343,7 +314,7 @@ __Returns:__
|
|
343
314
|
|
344
315
|
--
|
345
316
|
|
346
|
-
##### [appium_debug](https://github.com/appium/ruby_lib/blob/
|
317
|
+
##### [appium_debug](https://github.com/appium/ruby_lib/blob/ecf1a5a1e323aeb1efdaebbfe1ae566bfcae1978/lib/appium_lib/driver.rb#L298)
|
347
318
|
|
348
319
|
> def appium_debug
|
349
320
|
|
@@ -351,7 +322,7 @@ Boolean debug mode for the Appium Ruby bindings
|
|
351
322
|
|
352
323
|
--
|
353
324
|
|
354
|
-
##### [appium_debug=](https://github.com/appium/ruby_lib/blob/
|
325
|
+
##### [appium_debug=](https://github.com/appium/ruby_lib/blob/ecf1a5a1e323aeb1efdaebbfe1ae566bfcae1978/lib/appium_lib/driver.rb#L298)
|
355
326
|
|
356
327
|
> def appium_debug=(value)
|
357
328
|
|
@@ -359,7 +330,7 @@ Boolean debug mode for the Appium Ruby bindings
|
|
359
330
|
|
360
331
|
--
|
361
332
|
|
362
|
-
##### [listener](https://github.com/appium/ruby_lib/blob/
|
333
|
+
##### [listener](https://github.com/appium/ruby_lib/blob/ecf1a5a1e323aeb1efdaebbfe1ae566bfcae1978/lib/appium_lib/driver.rb#L300)
|
363
334
|
|
364
335
|
> def listener
|
365
336
|
|
@@ -367,7 +338,7 @@ instance of AbstractEventListener for logging support
|
|
367
338
|
|
368
339
|
--
|
369
340
|
|
370
|
-
##### [listener=](https://github.com/appium/ruby_lib/blob/
|
341
|
+
##### [listener=](https://github.com/appium/ruby_lib/blob/ecf1a5a1e323aeb1efdaebbfe1ae566bfcae1978/lib/appium_lib/driver.rb#L300)
|
371
342
|
|
372
343
|
> def listener=(value)
|
373
344
|
|
@@ -375,7 +346,7 @@ instance of AbstractEventListener for logging support
|
|
375
346
|
|
376
347
|
--
|
377
348
|
|
378
|
-
##### [driver](https://github.com/appium/ruby_lib/blob/
|
349
|
+
##### [driver](https://github.com/appium/ruby_lib/blob/ecf1a5a1e323aeb1efdaebbfe1ae566bfcae1978/lib/appium_lib/driver.rb#L303)
|
379
350
|
|
380
351
|
> def driver
|
381
352
|
|
@@ -387,7 +358,7 @@ __Returns:__
|
|
387
358
|
|
388
359
|
--
|
389
360
|
|
390
|
-
##### [http_client](https://github.com/appium/ruby_lib/blob/
|
361
|
+
##### [http_client](https://github.com/appium/ruby_lib/blob/ecf1a5a1e323aeb1efdaebbfe1ae566bfcae1978/lib/appium_lib/driver.rb#L306)
|
391
362
|
|
392
363
|
> def http_client
|
393
364
|
|
@@ -399,7 +370,7 @@ __Returns:__
|
|
399
370
|
|
400
371
|
--
|
401
372
|
|
402
|
-
##### [initialize](https://github.com/appium/ruby_lib/blob/
|
373
|
+
##### [initialize](https://github.com/appium/ruby_lib/blob/ecf1a5a1e323aeb1efdaebbfe1ae566bfcae1978/lib/appium_lib/driver.rb#L327)
|
403
374
|
|
404
375
|
> def initialize(opts = {})
|
405
376
|
|
@@ -430,7 +401,7 @@ __Returns:__
|
|
430
401
|
|
431
402
|
--
|
432
403
|
|
433
|
-
##### [driver_attributes](https://github.com/appium/ruby_lib/blob/
|
404
|
+
##### [driver_attributes](https://github.com/appium/ruby_lib/blob/ecf1a5a1e323aeb1efdaebbfe1ae566bfcae1978/lib/appium_lib/driver.rb#L399)
|
434
405
|
|
435
406
|
> def driver_attributes
|
436
407
|
|
@@ -438,7 +409,7 @@ Returns a hash of the driver attributes
|
|
438
409
|
|
439
410
|
--
|
440
411
|
|
441
|
-
##### [device_is_android?](https://github.com/appium/ruby_lib/blob/
|
412
|
+
##### [device_is_android?](https://github.com/appium/ruby_lib/blob/ecf1a5a1e323aeb1efdaebbfe1ae566bfcae1978/lib/appium_lib/driver.rb#L421)
|
442
413
|
|
443
414
|
> def device_is_android?
|
444
415
|
|
@@ -450,7 +421,7 @@ __Returns:__
|
|
450
421
|
|
451
422
|
--
|
452
423
|
|
453
|
-
##### [automation_name_is_xcuitest?](https://github.com/appium/ruby_lib/blob/
|
424
|
+
##### [automation_name_is_xcuitest?](https://github.com/appium/ruby_lib/blob/ecf1a5a1e323aeb1efdaebbfe1ae566bfcae1978/lib/appium_lib/driver.rb#L427)
|
454
425
|
|
455
426
|
> def automation_name_is_xcuitest?
|
456
427
|
|
@@ -462,7 +433,7 @@ __Returns:__
|
|
462
433
|
|
463
434
|
--
|
464
435
|
|
465
|
-
##### [check_server_version_xcuitest](https://github.com/appium/ruby_lib/blob/
|
436
|
+
##### [check_server_version_xcuitest](https://github.com/appium/ruby_lib/blob/ecf1a5a1e323aeb1efdaebbfe1ae566bfcae1978/lib/appium_lib/driver.rb#L434)
|
466
437
|
|
467
438
|
> def check_server_version_xcuitest
|
468
439
|
|
@@ -475,7 +446,7 @@ __Returns:__
|
|
475
446
|
|
476
447
|
--
|
477
448
|
|
478
|
-
##### [appium_client_version](https://github.com/appium/ruby_lib/blob/
|
449
|
+
##### [appium_client_version](https://github.com/appium/ruby_lib/blob/ecf1a5a1e323aeb1efdaebbfe1ae566bfcae1978/lib/appium_lib/driver.rb#L466)
|
479
450
|
|
480
451
|
> def appium_client_version
|
481
452
|
|
@@ -493,7 +464,7 @@ __Returns:__
|
|
493
464
|
|
494
465
|
--
|
495
466
|
|
496
|
-
##### [absolute_app_path](https://github.com/appium/ruby_lib/blob/
|
467
|
+
##### [absolute_app_path](https://github.com/appium/ruby_lib/blob/ecf1a5a1e323aeb1efdaebbfe1ae566bfcae1978/lib/appium_lib/driver.rb#L478)
|
497
468
|
|
498
469
|
> def self.absolute_app_path(opts)
|
499
470
|
|
@@ -510,7 +481,7 @@ __Returns:__
|
|
510
481
|
|
511
482
|
--
|
512
483
|
|
513
|
-
##### [server_url](https://github.com/appium/ruby_lib/blob/
|
484
|
+
##### [server_url](https://github.com/appium/ruby_lib/blob/ecf1a5a1e323aeb1efdaebbfe1ae566bfcae1978/lib/appium_lib/driver.rb#L511)
|
514
485
|
|
515
486
|
> def server_url
|
516
487
|
|
@@ -522,7 +493,7 @@ __Returns:__
|
|
522
493
|
|
523
494
|
--
|
524
495
|
|
525
|
-
##### [restart](https://github.com/appium/ruby_lib/blob/
|
496
|
+
##### [restart](https://github.com/appium/ruby_lib/blob/ecf1a5a1e323aeb1efdaebbfe1ae566bfcae1978/lib/appium_lib/driver.rb#L522)
|
526
497
|
|
527
498
|
> def restart
|
528
499
|
|
@@ -534,7 +505,7 @@ __Returns:__
|
|
534
505
|
|
535
506
|
--
|
536
507
|
|
537
|
-
##### [screenshot](https://github.com/appium/ruby_lib/blob/
|
508
|
+
##### [screenshot](https://github.com/appium/ruby_lib/blob/ecf1a5a1e323aeb1efdaebbfe1ae566bfcae1978/lib/appium_lib/driver.rb#L533)
|
538
509
|
|
539
510
|
> def screenshot(png_save_path)
|
540
511
|
|
@@ -552,7 +523,7 @@ __Returns:__
|
|
552
523
|
|
553
524
|
--
|
554
525
|
|
555
|
-
##### [driver_quit](https://github.com/appium/ruby_lib/blob/
|
526
|
+
##### [driver_quit](https://github.com/appium/ruby_lib/blob/ecf1a5a1e323aeb1efdaebbfe1ae566bfcae1978/lib/appium_lib/driver.rb#L540)
|
556
527
|
|
557
528
|
> def driver_quit
|
558
529
|
|
@@ -564,7 +535,7 @@ __Returns:__
|
|
564
535
|
|
565
536
|
--
|
566
537
|
|
567
|
-
##### [start_driver](https://github.com/appium/ruby_lib/blob/
|
538
|
+
##### [start_driver](https://github.com/appium/ruby_lib/blob/ecf1a5a1e323aeb1efdaebbfe1ae566bfcae1978/lib/appium_lib/driver.rb#L550)
|
568
539
|
|
569
540
|
> def start_driver
|
570
541
|
|
@@ -576,26 +547,23 @@ __Returns:__
|
|
576
547
|
|
577
548
|
--
|
578
549
|
|
579
|
-
##### [no_wait](https://github.com/appium/ruby_lib/blob/
|
550
|
+
##### [no_wait](https://github.com/appium/ruby_lib/blob/ecf1a5a1e323aeb1efdaebbfe1ae566bfcae1978/lib/appium_lib/driver.rb#L588)
|
580
551
|
|
581
552
|
> def no_wait
|
582
553
|
|
583
|
-
Set implicit wait
|
554
|
+
Set implicit wait to zero.
|
584
555
|
|
585
556
|
--
|
586
557
|
|
587
|
-
##### [set_wait](https://github.com/appium/ruby_lib/blob/
|
558
|
+
##### [set_wait](https://github.com/appium/ruby_lib/blob/ecf1a5a1e323aeb1efdaebbfe1ae566bfcae1978/lib/appium_lib/driver.rb#L602)
|
588
559
|
|
589
560
|
> def set_wait(timeout = nil)
|
590
561
|
|
591
|
-
Set implicit wait
|
592
|
-
if set_wait is called without a param then the second to last
|
593
|
-
wait will be used.
|
562
|
+
Set implicit wait. Default to @default_wait.
|
594
563
|
|
595
564
|
```ruby`
|
596
565
|
set_wait 2
|
597
|
-
set_wait
|
598
|
-
set_wait # 2
|
566
|
+
set_wait # @default_wait
|
599
567
|
|
600
568
|
````
|
601
569
|
|
@@ -609,7 +577,7 @@ __Returns:__
|
|
609
577
|
|
610
578
|
--
|
611
579
|
|
612
|
-
##### [exists](https://github.com/appium/ruby_lib/blob/
|
580
|
+
##### [exists](https://github.com/appium/ruby_lib/blob/ecf1a5a1e323aeb1efdaebbfe1ae566bfcae1978/lib/appium_lib/driver.rb#L619)
|
613
581
|
|
614
582
|
> def exists(pre_check = 0, post_check = @default_wait)
|
615
583
|
|
@@ -635,7 +603,7 @@ __Returns:__
|
|
635
603
|
|
636
604
|
--
|
637
605
|
|
638
|
-
##### [execute_script](https://github.com/appium/ruby_lib/blob/
|
606
|
+
##### [execute_script](https://github.com/appium/ruby_lib/blob/ecf1a5a1e323aeb1efdaebbfe1ae566bfcae1978/lib/appium_lib/driver.rb#L643)
|
639
607
|
|
640
608
|
> def execute_script(script, *args)
|
641
609
|
|
@@ -653,7 +621,7 @@ __Returns:__
|
|
653
621
|
|
654
622
|
--
|
655
623
|
|
656
|
-
##### [find_elements](https://github.com/appium/ruby_lib/blob/
|
624
|
+
##### [find_elements](https://github.com/appium/ruby_lib/blob/ecf1a5a1e323aeb1efdaebbfe1ae566bfcae1978/lib/appium_lib/driver.rb#L651)
|
657
625
|
|
658
626
|
> def find_elements(*args)
|
659
627
|
|
@@ -669,7 +637,7 @@ __Returns:__
|
|
669
637
|
|
670
638
|
--
|
671
639
|
|
672
|
-
##### [find_element](https://github.com/appium/ruby_lib/blob/
|
640
|
+
##### [find_element](https://github.com/appium/ruby_lib/blob/ecf1a5a1e323aeb1efdaebbfe1ae566bfcae1978/lib/appium_lib/driver.rb#L659)
|
673
641
|
|
674
642
|
> def find_element(*args)
|
675
643
|
|
@@ -685,7 +653,7 @@ __Returns:__
|
|
685
653
|
|
686
654
|
--
|
687
655
|
|
688
|
-
##### [set_location](https://github.com/appium/ruby_lib/blob/
|
656
|
+
##### [set_location](https://github.com/appium/ruby_lib/blob/ecf1a5a1e323aeb1efdaebbfe1ae566bfcae1978/lib/appium_lib/driver.rb#L672)
|
689
657
|
|
690
658
|
> def set_location(opts = {})
|
691
659
|
|
@@ -701,7 +669,7 @@ __Returns:__
|
|
701
669
|
|
702
670
|
--
|
703
671
|
|
704
|
-
##### [x](https://github.com/appium/ruby_lib/blob/
|
672
|
+
##### [x](https://github.com/appium/ruby_lib/blob/ecf1a5a1e323aeb1efdaebbfe1ae566bfcae1978/lib/appium_lib/driver.rb#L682)
|
705
673
|
|
706
674
|
> def x
|
707
675
|
|
@@ -714,7 +682,16 @@ __Returns:__
|
|
714
682
|
|
715
683
|
--
|
716
684
|
|
717
|
-
##### [
|
685
|
+
##### [set_automation_name_if_nil](https://github.com/appium/ruby_lib/blob/ecf1a5a1e323aeb1efdaebbfe1ae566bfcae1978/lib/appium_lib/driver.rb#L691)
|
686
|
+
|
687
|
+
> def set_automation_name_if_nil
|
688
|
+
|
689
|
+
If "automationName" is set only server side, this method set "automationName" attribute into @automation_name.
|
690
|
+
Since @automation_name is set only client side before start_driver is called.
|
691
|
+
|
692
|
+
--
|
693
|
+
|
694
|
+
##### [logger=](https://github.com/appium/ruby_lib/blob/ecf1a5a1e323aeb1efdaebbfe1ae566bfcae1978/lib/appium_lib/logger.rb#L13)
|
718
695
|
|
719
696
|
> def logger=(value)
|
720
697
|
|
@@ -726,7 +703,7 @@ __Parameters:__
|
|
726
703
|
|
727
704
|
--
|
728
705
|
|
729
|
-
##### [logger](https://github.com/appium/ruby_lib/blob/
|
706
|
+
##### [logger](https://github.com/appium/ruby_lib/blob/ecf1a5a1e323aeb1efdaebbfe1ae566bfcae1978/lib/appium_lib/logger.rb#L17)
|
730
707
|
|
731
708
|
> def logger
|
732
709
|
|
@@ -734,7 +711,7 @@ __Parameters:__
|
|
734
711
|
|
735
712
|
--
|
736
713
|
|
737
|
-
##### [app_strings](https://github.com/appium/ruby_lib/blob/
|
714
|
+
##### [app_strings](https://github.com/appium/ruby_lib/blob/ecf1a5a1e323aeb1efdaebbfe1ae566bfcae1978/lib/appium_lib/device/device.rb#L7)
|
738
715
|
|
739
716
|
> def app_strings
|
740
717
|
|
@@ -745,7 +722,7 @@ app_strings #=> "TransitionsTitle"=>"Transitions", "WebTitle"=>"Web"
|
|
745
722
|
|
746
723
|
--
|
747
724
|
|
748
|
-
##### [background_app](https://github.com/appium/ruby_lib/blob/
|
725
|
+
##### [background_app](https://github.com/appium/ruby_lib/blob/ecf1a5a1e323aeb1efdaebbfe1ae566bfcae1978/lib/appium_lib/device/device.rb#L13)
|
749
726
|
|
750
727
|
> def background_app
|
751
728
|
|
@@ -754,7 +731,7 @@ This is a blocking application
|
|
754
731
|
|
755
732
|
--
|
756
733
|
|
757
|
-
##### [current_activity](https://github.com/appium/ruby_lib/blob/
|
734
|
+
##### [current_activity](https://github.com/appium/ruby_lib/blob/ecf1a5a1e323aeb1efdaebbfe1ae566bfcae1978/lib/appium_lib/device/device.rb#L18)
|
758
735
|
|
759
736
|
> def current_activity
|
760
737
|
|
@@ -762,7 +739,7 @@ This is a blocking application
|
|
762
739
|
|
763
740
|
--
|
764
741
|
|
765
|
-
##### [launch_app](https://github.com/appium/ruby_lib/blob/
|
742
|
+
##### [launch_app](https://github.com/appium/ruby_lib/blob/ecf1a5a1e323aeb1efdaebbfe1ae566bfcae1978/lib/appium_lib/device/device.rb#L20)
|
766
743
|
|
767
744
|
> def launch_app
|
768
745
|
|
@@ -770,7 +747,7 @@ Start the simulator and application configured with desired capabilities
|
|
770
747
|
|
771
748
|
--
|
772
749
|
|
773
|
-
##### [reset](https://github.com/appium/ruby_lib/blob/
|
750
|
+
##### [reset](https://github.com/appium/ruby_lib/blob/ecf1a5a1e323aeb1efdaebbfe1ae566bfcae1978/lib/appium_lib/device/device.rb#L23)
|
774
751
|
|
775
752
|
> def reset
|
776
753
|
|
@@ -778,7 +755,7 @@ Reset the device, relaunching the application.
|
|
778
755
|
|
779
756
|
--
|
780
757
|
|
781
|
-
##### [shake](https://github.com/appium/ruby_lib/blob/
|
758
|
+
##### [shake](https://github.com/appium/ruby_lib/blob/ecf1a5a1e323aeb1efdaebbfe1ae566bfcae1978/lib/appium_lib/device/device.rb#L26)
|
782
759
|
|
783
760
|
> def shake
|
784
761
|
|
@@ -786,7 +763,7 @@ Cause the device to shake
|
|
786
763
|
|
787
764
|
--
|
788
765
|
|
789
|
-
##### [toggle_flight_mode](https://github.com/appium/ruby_lib/blob/
|
766
|
+
##### [toggle_flight_mode](https://github.com/appium/ruby_lib/blob/ecf1a5a1e323aeb1efdaebbfe1ae566bfcae1978/lib/appium_lib/device/device.rb#L29)
|
790
767
|
|
791
768
|
> def toggle_flight_mode
|
792
769
|
|
@@ -794,7 +771,7 @@ Toggle flight mode on or off
|
|
794
771
|
|
795
772
|
--
|
796
773
|
|
797
|
-
##### [device_locked?](https://github.com/appium/ruby_lib/blob/
|
774
|
+
##### [device_locked?](https://github.com/appium/ruby_lib/blob/ecf1a5a1e323aeb1efdaebbfe1ae566bfcae1978/lib/appium_lib/device/device.rb#L32)
|
798
775
|
|
799
776
|
> def device_locked?
|
800
777
|
|
@@ -802,7 +779,7 @@ Toggle flight mode on or off
|
|
802
779
|
|
803
780
|
--
|
804
781
|
|
805
|
-
##### [hide_keyboard](https://github.com/appium/ruby_lib/blob/
|
782
|
+
##### [hide_keyboard](https://github.com/appium/ruby_lib/blob/ecf1a5a1e323aeb1efdaebbfe1ae566bfcae1978/lib/appium_lib/device/device.rb#L34)
|
806
783
|
|
807
784
|
> def hide_keyboard
|
808
785
|
|
@@ -815,7 +792,7 @@ Defaults to 'Done'.
|
|
815
792
|
|
816
793
|
--
|
817
794
|
|
818
|
-
##### [press_keycode](https://github.com/appium/ruby_lib/blob/
|
795
|
+
##### [press_keycode](https://github.com/appium/ruby_lib/blob/ecf1a5a1e323aeb1efdaebbfe1ae566bfcae1978/lib/appium_lib/device/device.rb#L43)
|
819
796
|
|
820
797
|
> def press_keycode
|
821
798
|
|
@@ -830,7 +807,7 @@ __Parameters:__
|
|
830
807
|
|
831
808
|
--
|
832
809
|
|
833
|
-
##### [long_press_keycode](https://github.com/appium/ruby_lib/blob/
|
810
|
+
##### [long_press_keycode](https://github.com/appium/ruby_lib/blob/ecf1a5a1e323aeb1efdaebbfe1ae566bfcae1978/lib/appium_lib/device/device.rb#L49)
|
834
811
|
|
835
812
|
> def long_press_keycode
|
836
813
|
|
@@ -845,7 +822,7 @@ __Parameters:__
|
|
845
822
|
|
846
823
|
--
|
847
824
|
|
848
|
-
##### [push_file](https://github.com/appium/ruby_lib/blob/
|
825
|
+
##### [push_file](https://github.com/appium/ruby_lib/blob/ecf1a5a1e323aeb1efdaebbfe1ae566bfcae1978/lib/appium_lib/device/device.rb#L55)
|
849
826
|
|
850
827
|
> def push_file
|
851
828
|
|
@@ -859,7 +836,7 @@ __Parameters:__
|
|
859
836
|
|
860
837
|
--
|
861
838
|
|
862
|
-
##### [pull_file](https://github.com/appium/ruby_lib/blob/
|
839
|
+
##### [pull_file](https://github.com/appium/ruby_lib/blob/ecf1a5a1e323aeb1efdaebbfe1ae566bfcae1978/lib/appium_lib/device/device.rb#L60)
|
863
840
|
|
864
841
|
> def pull_file
|
865
842
|
|
@@ -876,7 +853,7 @@ __Parameters:__
|
|
876
853
|
|
877
854
|
--
|
878
855
|
|
879
|
-
##### [pull_folder](https://github.com/appium/ruby_lib/blob/
|
856
|
+
##### [pull_folder](https://github.com/appium/ruby_lib/blob/ecf1a5a1e323aeb1efdaebbfe1ae566bfcae1978/lib/appium_lib/device/device.rb#L70)
|
880
857
|
|
881
858
|
> def pull_folder
|
882
859
|
|
@@ -891,7 +868,7 @@ __Parameters:__
|
|
891
868
|
|
892
869
|
--
|
893
870
|
|
894
|
-
##### [touch_id](https://github.com/appium/ruby_lib/blob/
|
871
|
+
##### [touch_id](https://github.com/appium/ruby_lib/blob/ecf1a5a1e323aeb1efdaebbfe1ae566bfcae1978/lib/appium_lib/device/device.rb#L78)
|
895
872
|
|
896
873
|
> def touch_id
|
897
874
|
|
@@ -908,7 +885,7 @@ Defaults to true.
|
|
908
885
|
|
909
886
|
--
|
910
887
|
|
911
|
-
##### [end_coverage](https://github.com/appium/ruby_lib/blob/
|
888
|
+
##### [end_coverage](https://github.com/appium/ruby_lib/blob/ecf1a5a1e323aeb1efdaebbfe1ae566bfcae1978/lib/appium_lib/device/device.rb#L87)
|
912
889
|
|
913
890
|
> def end_coverage
|
914
891
|
|
@@ -922,7 +899,7 @@ __Parameters:__
|
|
922
899
|
|
923
900
|
--
|
924
901
|
|
925
|
-
##### [get_settings](https://github.com/appium/ruby_lib/blob/
|
902
|
+
##### [get_settings](https://github.com/appium/ruby_lib/blob/ecf1a5a1e323aeb1efdaebbfe1ae566bfcae1978/lib/appium_lib/device/device.rb#L92)
|
926
903
|
|
927
904
|
> def get_settings
|
928
905
|
|
@@ -930,7 +907,7 @@ Get appium Settings for current test session
|
|
930
907
|
|
931
908
|
--
|
932
909
|
|
933
|
-
##### [extend_search_contexts](https://github.com/appium/ruby_lib/blob/
|
910
|
+
##### [extend_search_contexts](https://github.com/appium/ruby_lib/blob/ecf1a5a1e323aeb1efdaebbfe1ae566bfcae1978/lib/appium_lib/device/device.rb#L356)
|
934
911
|
|
935
912
|
> def extend_search_contexts
|
936
913
|
|
@@ -938,7 +915,7 @@ Get appium Settings for current test session
|
|
938
915
|
|
939
916
|
--
|
940
917
|
|
941
|
-
##### [find_element](https://github.com/appium/ruby_lib/blob/
|
918
|
+
##### [find_element](https://github.com/appium/ruby_lib/blob/ecf1a5a1e323aeb1efdaebbfe1ae566bfcae1978/lib/appium_lib/device/device.rb#L356)
|
942
919
|
|
943
920
|
> def find_element
|
944
921
|
|
@@ -946,7 +923,7 @@ Get appium Settings for current test session
|
|
946
923
|
|
947
924
|
--
|
948
925
|
|
949
|
-
##### [find_elements](https://github.com/appium/ruby_lib/blob/
|
926
|
+
##### [find_elements](https://github.com/appium/ruby_lib/blob/ecf1a5a1e323aeb1efdaebbfe1ae566bfcae1978/lib/appium_lib/device/device.rb#L356)
|
950
927
|
|
951
928
|
> def find_elements
|
952
929
|
|
@@ -958,7 +935,7 @@ find_element/s with their accessibility_id
|
|
958
935
|
|
959
936
|
--
|
960
937
|
|
961
|
-
##### [add_touch_actions](https://github.com/appium/ruby_lib/blob/
|
938
|
+
##### [add_touch_actions](https://github.com/appium/ruby_lib/blob/ecf1a5a1e323aeb1efdaebbfe1ae566bfcae1978/lib/appium_lib/device/device.rb#L387)
|
962
939
|
|
963
940
|
> def add_touch_actions
|
964
941
|
|
@@ -966,7 +943,7 @@ find_element/s with their accessibility_id
|
|
966
943
|
|
967
944
|
--
|
968
945
|
|
969
|
-
##### [add_ime_actions](https://github.com/appium/ruby_lib/blob/
|
946
|
+
##### [add_ime_actions](https://github.com/appium/ruby_lib/blob/ecf1a5a1e323aeb1efdaebbfe1ae566bfcae1978/lib/appium_lib/device/device.rb#L410)
|
970
947
|
|
971
948
|
> def add_ime_actions
|
972
949
|
|
@@ -974,7 +951,7 @@ find_element/s with their accessibility_id
|
|
974
951
|
|
975
952
|
--
|
976
953
|
|
977
|
-
##### [set_context](https://github.com/appium/ruby_lib/blob/
|
954
|
+
##### [set_context](https://github.com/appium/ruby_lib/blob/ecf1a5a1e323aeb1efdaebbfe1ae566bfcae1978/lib/appium_lib/device/device.rb#L485)
|
978
955
|
|
979
956
|
> def set_context
|
980
957
|
|
@@ -989,7 +966,7 @@ __Parameters:__
|
|
989
966
|
|
990
967
|
--
|
991
968
|
|
992
|
-
##### [current_context](https://github.com/appium/ruby_lib/blob/
|
969
|
+
##### [current_context](https://github.com/appium/ruby_lib/blob/ecf1a5a1e323aeb1efdaebbfe1ae566bfcae1978/lib/appium_lib/device/device.rb#L493)
|
993
970
|
|
994
971
|
> def current_context
|
995
972
|
|
@@ -1001,7 +978,7 @@ __Returns:__
|
|
1001
978
|
|
1002
979
|
--
|
1003
980
|
|
1004
|
-
##### [available_contexts](https://github.com/appium/ruby_lib/blob/
|
981
|
+
##### [available_contexts](https://github.com/appium/ruby_lib/blob/ecf1a5a1e323aeb1efdaebbfe1ae566bfcae1978/lib/appium_lib/device/device.rb#L496)
|
1005
982
|
|
1006
983
|
> def available_contexts
|
1007
984
|
|
@@ -1013,7 +990,7 @@ __Returns:__
|
|
1013
990
|
|
1014
991
|
--
|
1015
992
|
|
1016
|
-
##### [within_context](https://github.com/appium/ruby_lib/blob/
|
993
|
+
##### [within_context](https://github.com/appium/ruby_lib/blob/ecf1a5a1e323aeb1efdaebbfe1ae566bfcae1978/lib/appium_lib/device/device.rb#L506)
|
1017
994
|
|
1018
995
|
> def within_context(context)
|
1019
996
|
|
@@ -1029,7 +1006,7 @@ __Parameters:__
|
|
1029
1006
|
|
1030
1007
|
--
|
1031
1008
|
|
1032
|
-
##### [switch_to_default_context](https://github.com/appium/ruby_lib/blob/
|
1009
|
+
##### [switch_to_default_context](https://github.com/appium/ruby_lib/blob/ecf1a5a1e323aeb1efdaebbfe1ae566bfcae1978/lib/appium_lib/device/device.rb#L514)
|
1033
1010
|
|
1034
1011
|
> def switch_to_default_context
|
1035
1012
|
|
@@ -1037,7 +1014,7 @@ Change to the default context. This is equivalent to `set_context nil`.
|
|
1037
1014
|
|
1038
1015
|
--
|
1039
1016
|
|
1040
|
-
##### [pinch](https://github.com/appium/ruby_lib/blob/
|
1017
|
+
##### [pinch](https://github.com/appium/ruby_lib/blob/ecf1a5a1e323aeb1efdaebbfe1ae566bfcae1978/lib/appium_lib/device/multi_touch.rb#L28)
|
1041
1018
|
|
1042
1019
|
> def pinch(percentage = 25, auto_perform = true)
|
1043
1020
|
|
@@ -1056,7 +1033,7 @@ __Parameters:__
|
|
1056
1033
|
|
1057
1034
|
--
|
1058
1035
|
|
1059
|
-
##### [zoom](https://github.com/appium/ruby_lib/blob/
|
1036
|
+
##### [zoom](https://github.com/appium/ruby_lib/blob/ecf1a5a1e323aeb1efdaebbfe1ae566bfcae1978/lib/appium_lib/device/multi_touch.rb#L64)
|
1060
1037
|
|
1061
1038
|
> def zoom(percentage = 200, auto_perform = true)
|
1062
1039
|
|
@@ -1075,7 +1052,7 @@ __Parameters:__
|
|
1075
1052
|
|
1076
1053
|
--
|
1077
1054
|
|
1078
|
-
##### [initialize](https://github.com/appium/ruby_lib/blob/
|
1055
|
+
##### [initialize](https://github.com/appium/ruby_lib/blob/ecf1a5a1e323aeb1efdaebbfe1ae566bfcae1978/lib/appium_lib/device/multi_touch.rb#L95)
|
1079
1056
|
|
1080
1057
|
> def initialize
|
1081
1058
|
|
@@ -1087,7 +1064,7 @@ __Returns:__
|
|
1087
1064
|
|
1088
1065
|
--
|
1089
1066
|
|
1090
|
-
##### [add](https://github.com/appium/ruby_lib/blob/
|
1067
|
+
##### [add](https://github.com/appium/ruby_lib/blob/ecf1a5a1e323aeb1efdaebbfe1ae566bfcae1978/lib/appium_lib/device/multi_touch.rb#L101)
|
1091
1068
|
|
1092
1069
|
> def add(chain)
|
1093
1070
|
|
@@ -1099,7 +1076,7 @@ __Parameters:__
|
|
1099
1076
|
|
1100
1077
|
--
|
1101
1078
|
|
1102
|
-
##### [perform](https://github.com/appium/ruby_lib/blob/
|
1079
|
+
##### [perform](https://github.com/appium/ruby_lib/blob/ecf1a5a1e323aeb1efdaebbfe1ae566bfcae1978/lib/appium_lib/device/multi_touch.rb#L106)
|
1103
1080
|
|
1104
1081
|
> def perform
|
1105
1082
|
|
@@ -1107,7 +1084,7 @@ Ask Appium to perform the actions
|
|
1107
1084
|
|
1108
1085
|
--
|
1109
1086
|
|
1110
|
-
##### [ACTIONS](https://github.com/appium/ruby_lib/blob/
|
1087
|
+
##### [ACTIONS](https://github.com/appium/ruby_lib/blob/ecf1a5a1e323aeb1efdaebbfe1ae566bfcae1978/lib/appium_lib/device/touch_actions.rb#L11)
|
1111
1088
|
|
1112
1089
|
> ACTIONS = [:move_to, :long_press, :double_tap, :two_finger_tap, :press, :release, :tap, :wait, :perform].freeze
|
1113
1090
|
|
@@ -1115,7 +1092,7 @@ Ask Appium to perform the actions
|
|
1115
1092
|
|
1116
1093
|
--
|
1117
1094
|
|
1118
|
-
##### [COMPLEX_ACTIONS](https://github.com/appium/ruby_lib/blob/
|
1095
|
+
##### [COMPLEX_ACTIONS](https://github.com/appium/ruby_lib/blob/ecf1a5a1e323aeb1efdaebbfe1ae566bfcae1978/lib/appium_lib/device/touch_actions.rb#L12)
|
1119
1096
|
|
1120
1097
|
> COMPLEX_ACTIONS = [:swipe].freeze
|
1121
1098
|
|
@@ -1123,7 +1100,7 @@ Ask Appium to perform the actions
|
|
1123
1100
|
|
1124
1101
|
--
|
1125
1102
|
|
1126
|
-
##### [actions](https://github.com/appium/ruby_lib/blob/
|
1103
|
+
##### [actions](https://github.com/appium/ruby_lib/blob/ecf1a5a1e323aeb1efdaebbfe1ae566bfcae1978/lib/appium_lib/device/touch_actions.rb#L26)
|
1127
1104
|
|
1128
1105
|
> def actions
|
1129
1106
|
|
@@ -1131,7 +1108,7 @@ Returns the value of attribute actions
|
|
1131
1108
|
|
1132
1109
|
--
|
1133
1110
|
|
1134
|
-
##### [initialize](https://github.com/appium/ruby_lib/blob/
|
1111
|
+
##### [initialize](https://github.com/appium/ruby_lib/blob/ecf1a5a1e323aeb1efdaebbfe1ae566bfcae1978/lib/appium_lib/device/touch_actions.rb#L28)
|
1135
1112
|
|
1136
1113
|
> def initialize
|
1137
1114
|
|
@@ -1143,7 +1120,7 @@ __Returns:__
|
|
1143
1120
|
|
1144
1121
|
--
|
1145
1122
|
|
1146
|
-
##### [move_to](https://github.com/appium/ruby_lib/blob/
|
1123
|
+
##### [move_to](https://github.com/appium/ruby_lib/blob/ecf1a5a1e323aeb1efdaebbfe1ae566bfcae1978/lib/appium_lib/device/touch_actions.rb#L36)
|
1147
1124
|
|
1148
1125
|
> def move_to(opts)
|
1149
1126
|
|
@@ -1155,7 +1132,7 @@ __Parameters:__
|
|
1155
1132
|
|
1156
1133
|
--
|
1157
1134
|
|
1158
|
-
##### [long_press](https://github.com/appium/ruby_lib/blob/
|
1135
|
+
##### [long_press](https://github.com/appium/ruby_lib/blob/ecf1a5a1e323aeb1efdaebbfe1ae566bfcae1978/lib/appium_lib/device/touch_actions.rb#L50)
|
1159
1136
|
|
1160
1137
|
> def long_press(opts)
|
1161
1138
|
|
@@ -1176,7 +1153,7 @@ __Parameters:__
|
|
1176
1153
|
|
1177
1154
|
--
|
1178
1155
|
|
1179
|
-
##### [press](https://github.com/appium/ruby_lib/blob/
|
1156
|
+
##### [press](https://github.com/appium/ruby_lib/blob/ecf1a5a1e323aeb1efdaebbfe1ae566bfcae1978/lib/appium_lib/device/touch_actions.rb#L62)
|
1180
1157
|
|
1181
1158
|
> def press(opts)
|
1182
1159
|
|
@@ -1189,7 +1166,7 @@ __Parameters:__
|
|
1189
1166
|
|
1190
1167
|
--
|
1191
1168
|
|
1192
|
-
##### [release](https://github.com/appium/ruby_lib/blob/
|
1169
|
+
##### [release](https://github.com/appium/ruby_lib/blob/ecf1a5a1e323aeb1efdaebbfe1ae566bfcae1978/lib/appium_lib/device/touch_actions.rb#L73)
|
1193
1170
|
|
1194
1171
|
> def release(opts = nil)
|
1195
1172
|
|
@@ -1201,11 +1178,12 @@ __Parameters:__
|
|
1201
1178
|
|
1202
1179
|
--
|
1203
1180
|
|
1204
|
-
##### [tap](https://github.com/appium/ruby_lib/blob/
|
1181
|
+
##### [tap](https://github.com/appium/ruby_lib/blob/ecf1a5a1e323aeb1efdaebbfe1ae566bfcae1978/lib/appium_lib/device/touch_actions.rb#L85)
|
1205
1182
|
|
1206
1183
|
> def tap(opts)
|
1207
1184
|
|
1208
|
-
Touch a point on the screen
|
1185
|
+
Touch a point on the screen.
|
1186
|
+
Alternatively, you can use `press(...).release.perform` instead of `tap(...).perform`.
|
1209
1187
|
|
1210
1188
|
__Parameters:__
|
1211
1189
|
|
@@ -1213,7 +1191,7 @@ __Parameters:__
|
|
1213
1191
|
|
1214
1192
|
--
|
1215
1193
|
|
1216
|
-
##### [double_tap](https://github.com/appium/ruby_lib/blob/
|
1194
|
+
##### [double_tap](https://github.com/appium/ruby_lib/blob/ecf1a5a1e323aeb1efdaebbfe1ae566bfcae1978/lib/appium_lib/device/touch_actions.rb#L98)
|
1217
1195
|
|
1218
1196
|
> def double_tap(opts)
|
1219
1197
|
|
@@ -1225,7 +1203,7 @@ __Parameters:__
|
|
1225
1203
|
|
1226
1204
|
--
|
1227
1205
|
|
1228
|
-
##### [two_finger_tap](https://github.com/appium/ruby_lib/blob/
|
1206
|
+
##### [two_finger_tap](https://github.com/appium/ruby_lib/blob/ecf1a5a1e323aeb1efdaebbfe1ae566bfcae1978/lib/appium_lib/device/touch_actions.rb#L109)
|
1229
1207
|
|
1230
1208
|
> def two_finger_tap(opts)
|
1231
1209
|
|
@@ -1237,7 +1215,7 @@ __Parameters:__
|
|
1237
1215
|
|
1238
1216
|
--
|
1239
1217
|
|
1240
|
-
##### [wait](https://github.com/appium/ruby_lib/blob/
|
1218
|
+
##### [wait](https://github.com/appium/ruby_lib/blob/ecf1a5a1e323aeb1efdaebbfe1ae566bfcae1978/lib/appium_lib/device/touch_actions.rb#L117)
|
1241
1219
|
|
1242
1220
|
> def wait(milliseconds)
|
1243
1221
|
|
@@ -1249,7 +1227,7 @@ __Parameters:__
|
|
1249
1227
|
|
1250
1228
|
--
|
1251
1229
|
|
1252
|
-
##### [swipe](https://github.com/appium/ruby_lib/blob/
|
1230
|
+
##### [swipe](https://github.com/appium/ruby_lib/blob/ecf1a5a1e323aeb1efdaebbfe1ae566bfcae1978/lib/appium_lib/device/touch_actions.rb#L132)
|
1253
1231
|
|
1254
1232
|
> def swipe(opts, ele = nil)
|
1255
1233
|
|
@@ -1263,7 +1241,7 @@ __Parameters:__
|
|
1263
1241
|
|
1264
1242
|
--
|
1265
1243
|
|
1266
|
-
##### [perform](https://github.com/appium/ruby_lib/blob/
|
1244
|
+
##### [perform](https://github.com/appium/ruby_lib/blob/ecf1a5a1e323aeb1efdaebbfe1ae566bfcae1978/lib/appium_lib/device/touch_actions.rb#L166)
|
1267
1245
|
|
1268
1246
|
> def perform
|
1269
1247
|
|
@@ -1271,7 +1249,7 @@ Ask the driver to perform all actions in this action chain.
|
|
1271
1249
|
|
1272
1250
|
--
|
1273
1251
|
|
1274
|
-
##### [cancel](https://github.com/appium/ruby_lib/blob/
|
1252
|
+
##### [cancel](https://github.com/appium/ruby_lib/blob/ecf1a5a1e323aeb1efdaebbfe1ae566bfcae1978/lib/appium_lib/device/touch_actions.rb#L172)
|
1275
1253
|
|
1276
1254
|
> def cancel
|
1277
1255
|
|
@@ -1279,7 +1257,7 @@ Does nothing, currently.
|
|
1279
1257
|
|
1280
1258
|
--
|
1281
1259
|
|
1282
|
-
##### [chain_method](https://github.com/appium/ruby_lib/blob/
|
1260
|
+
##### [chain_method](https://github.com/appium/ruby_lib/blob/ecf1a5a1e323aeb1efdaebbfe1ae566bfcae1978/lib/appium_lib/device/touch_actions.rb#L180)
|
1283
1261
|
|
1284
1262
|
> def chain_method(method, args = nil)
|
1285
1263
|
|
@@ -1287,7 +1265,7 @@ Does nothing, currently.
|
|
1287
1265
|
|
1288
1266
|
--
|
1289
1267
|
|
1290
|
-
##### [args_with_ele_ref](https://github.com/appium/ruby_lib/blob/
|
1268
|
+
##### [args_with_ele_ref](https://github.com/appium/ruby_lib/blob/ecf1a5a1e323aeb1efdaebbfe1ae566bfcae1978/lib/appium_lib/device/touch_actions.rb#L186)
|
1291
1269
|
|
1292
1270
|
> def args_with_ele_ref(args)
|
1293
1271
|
|
@@ -1295,7 +1273,7 @@ Does nothing, currently.
|
|
1295
1273
|
|
1296
1274
|
--
|
1297
1275
|
|
1298
|
-
##### [_generic_wait](https://github.com/appium/ruby_lib/blob/
|
1276
|
+
##### [_generic_wait](https://github.com/appium/ruby_lib/blob/ecf1a5a1e323aeb1efdaebbfe1ae566bfcae1978/lib/appium_lib/common/wait.rb#L9)
|
1299
1277
|
|
1300
1278
|
> def _generic_wait(opts = {})
|
1301
1279
|
|
@@ -1304,7 +1282,7 @@ https://github.com/SeleniumHQ/selenium/blob/cf501dda3f0ed12233de51ce8170c0e8090f
|
|
1304
1282
|
|
1305
1283
|
--
|
1306
1284
|
|
1307
|
-
##### [_process_wait_opts](https://github.com/appium/ruby_lib/blob/
|
1285
|
+
##### [_process_wait_opts](https://github.com/appium/ruby_lib/blob/ecf1a5a1e323aeb1efdaebbfe1ae566bfcae1978/lib/appium_lib/common/wait.rb#L48)
|
1308
1286
|
|
1309
1287
|
> def _process_wait_opts(opts)
|
1310
1288
|
|
@@ -1312,7 +1290,7 @@ process opts before calling _generic_wait
|
|
1312
1290
|
|
1313
1291
|
--
|
1314
1292
|
|
1315
|
-
##### [wait_true](https://github.com/appium/ruby_lib/blob/
|
1293
|
+
##### [wait_true](https://github.com/appium/ruby_lib/blob/ecf1a5a1e323aeb1efdaebbfe1ae566bfcae1978/lib/appium_lib/common/wait.rb#L69)
|
1316
1294
|
|
1317
1295
|
> def wait_true(opts = {}, &block)
|
1318
1296
|
|
@@ -1332,7 +1310,7 @@ __Parameters:__
|
|
1332
1310
|
|
1333
1311
|
--
|
1334
1312
|
|
1335
|
-
##### [wait](https://github.com/appium/ruby_lib/blob/
|
1313
|
+
##### [wait](https://github.com/appium/ruby_lib/blob/ecf1a5a1e323aeb1efdaebbfe1ae566bfcae1978/lib/appium_lib/common/wait.rb#L87)
|
1336
1314
|
|
1337
1315
|
> def wait(opts = {}, &block)
|
1338
1316
|
|
@@ -1350,7 +1328,7 @@ __Parameters:__
|
|
1350
1328
|
|
1351
1329
|
--
|
1352
1330
|
|
1353
|
-
##### [ignore](https://github.com/appium/ruby_lib/blob/
|
1331
|
+
##### [ignore](https://github.com/appium/ruby_lib/blob/ecf1a5a1e323aeb1efdaebbfe1ae566bfcae1978/lib/appium_lib/common/helper.rb#L24)
|
1354
1332
|
|
1355
1333
|
> def ignore
|
1356
1334
|
|
@@ -1358,7 +1336,7 @@ Return yield and ignore any exceptions.
|
|
1358
1336
|
|
1359
1337
|
--
|
1360
1338
|
|
1361
|
-
##### [back](https://github.com/appium/ruby_lib/blob/
|
1339
|
+
##### [back](https://github.com/appium/ruby_lib/blob/ecf1a5a1e323aeb1efdaebbfe1ae566bfcae1978/lib/appium_lib/common/helper.rb#L31)
|
1362
1340
|
|
1363
1341
|
> def back
|
1364
1342
|
|
@@ -1370,7 +1348,7 @@ __Returns:__
|
|
1370
1348
|
|
1371
1349
|
--
|
1372
1350
|
|
1373
|
-
##### [session_id](https://github.com/appium/ruby_lib/blob/
|
1351
|
+
##### [session_id](https://github.com/appium/ruby_lib/blob/ecf1a5a1e323aeb1efdaebbfe1ae566bfcae1978/lib/appium_lib/common/helper.rb#L36)
|
1374
1352
|
|
1375
1353
|
> def session_id
|
1376
1354
|
|
@@ -1378,7 +1356,7 @@ For Sauce Labs reporting. Returns the current session id.
|
|
1378
1356
|
|
1379
1357
|
--
|
1380
1358
|
|
1381
|
-
##### [xpath](https://github.com/appium/ruby_lib/blob/
|
1359
|
+
##### [xpath](https://github.com/appium/ruby_lib/blob/ecf1a5a1e323aeb1efdaebbfe1ae566bfcae1978/lib/appium_lib/common/helper.rb#L44)
|
1382
1360
|
|
1383
1361
|
> def xpath(xpath_str)
|
1384
1362
|
|
@@ -1394,7 +1372,7 @@ __Returns:__
|
|
1394
1372
|
|
1395
1373
|
--
|
1396
1374
|
|
1397
|
-
##### [xpaths](https://github.com/appium/ruby_lib/blob/
|
1375
|
+
##### [xpaths](https://github.com/appium/ruby_lib/blob/ecf1a5a1e323aeb1efdaebbfe1ae566bfcae1978/lib/appium_lib/common/helper.rb#L52)
|
1398
1376
|
|
1399
1377
|
> def xpaths(xpath_str)
|
1400
1378
|
|
@@ -1410,7 +1388,7 @@ __Returns:__
|
|
1410
1388
|
|
1411
1389
|
--
|
1412
1390
|
|
1413
|
-
##### [_print_source](https://github.com/appium/ruby_lib/blob/
|
1391
|
+
##### [_print_source](https://github.com/appium/ruby_lib/blob/ecf1a5a1e323aeb1efdaebbfe1ae566bfcae1978/lib/appium_lib/common/helper.rb#L56)
|
1414
1392
|
|
1415
1393
|
> def _print_source(source)
|
1416
1394
|
|
@@ -1418,7 +1396,7 @@ __Returns:__
|
|
1418
1396
|
|
1419
1397
|
--
|
1420
1398
|
|
1421
|
-
##### [result](https://github.com/appium/ruby_lib/blob/
|
1399
|
+
##### [result](https://github.com/appium/ruby_lib/blob/ecf1a5a1e323aeb1efdaebbfe1ae566bfcae1978/lib/appium_lib/common/helper.rb#L69)
|
1422
1400
|
|
1423
1401
|
> def result
|
1424
1402
|
|
@@ -1426,7 +1404,7 @@ Returns the value of attribute result
|
|
1426
1404
|
|
1427
1405
|
--
|
1428
1406
|
|
1429
|
-
##### [initialize](https://github.com/appium/ruby_lib/blob/
|
1407
|
+
##### [initialize](https://github.com/appium/ruby_lib/blob/ecf1a5a1e323aeb1efdaebbfe1ae566bfcae1978/lib/appium_lib/common/helper.rb#L71)
|
1430
1408
|
|
1431
1409
|
> def initialize
|
1432
1410
|
|
@@ -1438,7 +1416,7 @@ __Returns:__
|
|
1438
1416
|
|
1439
1417
|
--
|
1440
1418
|
|
1441
|
-
##### [reset](https://github.com/appium/ruby_lib/blob/
|
1419
|
+
##### [reset](https://github.com/appium/ruby_lib/blob/ecf1a5a1e323aeb1efdaebbfe1ae566bfcae1978/lib/appium_lib/common/helper.rb#L75)
|
1442
1420
|
|
1443
1421
|
> def reset
|
1444
1422
|
|
@@ -1446,7 +1424,7 @@ __Returns:__
|
|
1446
1424
|
|
1447
1425
|
--
|
1448
1426
|
|
1449
|
-
##### [start_element](https://github.com/appium/ruby_lib/blob/
|
1427
|
+
##### [start_element](https://github.com/appium/ruby_lib/blob/ecf1a5a1e323aeb1efdaebbfe1ae566bfcae1978/lib/appium_lib/common/helper.rb#L80)
|
1450
1428
|
|
1451
1429
|
> def start_element(name, attrs = [])
|
1452
1430
|
|
@@ -1454,7 +1432,7 @@ http://nokogiri.org/Nokogiri/XML/SAX/Document.html
|
|
1454
1432
|
|
1455
1433
|
--
|
1456
1434
|
|
1457
|
-
##### [formatted_result](https://github.com/appium/ruby_lib/blob/
|
1435
|
+
##### [formatted_result](https://github.com/appium/ruby_lib/blob/ecf1a5a1e323aeb1efdaebbfe1ae566bfcae1978/lib/appium_lib/common/helper.rb#L86)
|
1458
1436
|
|
1459
1437
|
> def formatted_result
|
1460
1438
|
|
@@ -1462,7 +1440,7 @@ http://nokogiri.org/Nokogiri/XML/SAX/Document.html
|
|
1462
1440
|
|
1463
1441
|
--
|
1464
1442
|
|
1465
|
-
##### [get_page_class](https://github.com/appium/ruby_lib/blob/
|
1443
|
+
##### [get_page_class](https://github.com/appium/ruby_lib/blob/ecf1a5a1e323aeb1efdaebbfe1ae566bfcae1978/lib/appium_lib/common/helper.rb#L97)
|
1466
1444
|
|
1467
1445
|
> def get_page_class
|
1468
1446
|
|
@@ -1470,7 +1448,7 @@ Returns a string of class counts of visible elements.
|
|
1470
1448
|
|
1471
1449
|
--
|
1472
1450
|
|
1473
|
-
##### [page_class](https://github.com/appium/ruby_lib/blob/
|
1451
|
+
##### [page_class](https://github.com/appium/ruby_lib/blob/ecf1a5a1e323aeb1efdaebbfe1ae566bfcae1978/lib/appium_lib/common/helper.rb#L108)
|
1474
1452
|
|
1475
1453
|
> def page_class
|
1476
1454
|
|
@@ -1479,7 +1457,7 @@ Useful for appium_console.
|
|
1479
1457
|
|
1480
1458
|
--
|
1481
1459
|
|
1482
|
-
##### [px_to_window_rel](https://github.com/appium/ruby_lib/blob/
|
1460
|
+
##### [px_to_window_rel](https://github.com/appium/ruby_lib/blob/ecf1a5a1e323aeb1efdaebbfe1ae566bfcae1978/lib/appium_lib/common/helper.rb#L118)
|
1483
1461
|
|
1484
1462
|
> def px_to_window_rel(opts = {})
|
1485
1463
|
|
@@ -1491,7 +1469,7 @@ px_to_window_rel x: 50, y: 150
|
|
1491
1469
|
|
1492
1470
|
--
|
1493
1471
|
|
1494
|
-
##### [xml_keys](https://github.com/appium/ruby_lib/blob/
|
1472
|
+
##### [xml_keys](https://github.com/appium/ruby_lib/blob/ecf1a5a1e323aeb1efdaebbfe1ae566bfcae1978/lib/appium_lib/common/helper.rb#L137)
|
1495
1473
|
|
1496
1474
|
> def xml_keys(target)
|
1497
1475
|
|
@@ -1507,7 +1485,7 @@ __Returns:__
|
|
1507
1485
|
|
1508
1486
|
--
|
1509
1487
|
|
1510
|
-
##### [xml_values](https://github.com/appium/ruby_lib/blob/
|
1488
|
+
##### [xml_values](https://github.com/appium/ruby_lib/blob/ecf1a5a1e323aeb1efdaebbfe1ae566bfcae1978/lib/appium_lib/common/helper.rb#L145)
|
1511
1489
|
|
1512
1490
|
> def xml_values(target)
|
1513
1491
|
|
@@ -1523,7 +1501,7 @@ __Returns:__
|
|
1523
1501
|
|
1524
1502
|
--
|
1525
1503
|
|
1526
|
-
##### [resolve_id](https://github.com/appium/ruby_lib/blob/
|
1504
|
+
##### [resolve_id](https://github.com/appium/ruby_lib/blob/ecf1a5a1e323aeb1efdaebbfe1ae566bfcae1978/lib/appium_lib/common/helper.rb#L153)
|
1527
1505
|
|
1528
1506
|
> def resolve_id(id)
|
1529
1507
|
|
@@ -1539,7 +1517,7 @@ __Returns:__
|
|
1539
1517
|
|
1540
1518
|
--
|
1541
1519
|
|
1542
|
-
##### [filter](https://github.com/appium/ruby_lib/blob/
|
1520
|
+
##### [filter](https://github.com/appium/ruby_lib/blob/ecf1a5a1e323aeb1efdaebbfe1ae566bfcae1978/lib/appium_lib/common/helper.rb#L159)
|
1543
1521
|
|
1544
1522
|
> def filter
|
1545
1523
|
|
@@ -1547,7 +1525,7 @@ Returns the value of attribute filter
|
|
1547
1525
|
|
1548
1526
|
--
|
1549
1527
|
|
1550
|
-
##### [filter=](https://github.com/appium/ruby_lib/blob/
|
1528
|
+
##### [filter=](https://github.com/appium/ruby_lib/blob/ecf1a5a1e323aeb1efdaebbfe1ae566bfcae1978/lib/appium_lib/common/helper.rb#L162)
|
1551
1529
|
|
1552
1530
|
> def filter=(value)
|
1553
1531
|
|
@@ -1555,7 +1533,7 @@ convert to string to support symbols
|
|
1555
1533
|
|
1556
1534
|
--
|
1557
1535
|
|
1558
|
-
##### [initialize](https://github.com/appium/ruby_lib/blob/
|
1536
|
+
##### [initialize](https://github.com/appium/ruby_lib/blob/ecf1a5a1e323aeb1efdaebbfe1ae566bfcae1978/lib/appium_lib/common/helper.rb#L168)
|
1559
1537
|
|
1560
1538
|
> def initialize
|
1561
1539
|
|
@@ -1567,7 +1545,7 @@ __Returns:__
|
|
1567
1545
|
|
1568
1546
|
--
|
1569
1547
|
|
1570
|
-
##### [reset](https://github.com/appium/ruby_lib/blob/
|
1548
|
+
##### [reset](https://github.com/appium/ruby_lib/blob/ecf1a5a1e323aeb1efdaebbfe1ae566bfcae1978/lib/appium_lib/common/helper.rb#L173)
|
1571
1549
|
|
1572
1550
|
> def reset
|
1573
1551
|
|
@@ -1575,7 +1553,7 @@ __Returns:__
|
|
1575
1553
|
|
1576
1554
|
--
|
1577
1555
|
|
1578
|
-
##### [result](https://github.com/appium/ruby_lib/blob/
|
1556
|
+
##### [result](https://github.com/appium/ruby_lib/blob/ecf1a5a1e323aeb1efdaebbfe1ae566bfcae1978/lib/appium_lib/common/helper.rb#L179)
|
1579
1557
|
|
1580
1558
|
> def result
|
1581
1559
|
|
@@ -1583,7 +1561,7 @@ __Returns:__
|
|
1583
1561
|
|
1584
1562
|
--
|
1585
1563
|
|
1586
|
-
##### [start_element](https://github.com/appium/ruby_lib/blob/
|
1564
|
+
##### [start_element](https://github.com/appium/ruby_lib/blob/ecf1a5a1e323aeb1efdaebbfe1ae566bfcae1978/lib/appium_lib/common/helper.rb#L195)
|
1587
1565
|
|
1588
1566
|
> def start_element(name, attrs = [])
|
1589
1567
|
|
@@ -1591,7 +1569,7 @@ __Returns:__
|
|
1591
1569
|
|
1592
1570
|
--
|
1593
1571
|
|
1594
|
-
##### [end_element](https://github.com/appium/ruby_lib/blob/
|
1572
|
+
##### [end_element](https://github.com/appium/ruby_lib/blob/ecf1a5a1e323aeb1efdaebbfe1ae566bfcae1978/lib/appium_lib/common/helper.rb#L204)
|
1595
1573
|
|
1596
1574
|
> def end_element(name)
|
1597
1575
|
|
@@ -1599,7 +1577,7 @@ __Returns:__
|
|
1599
1577
|
|
1600
1578
|
--
|
1601
1579
|
|
1602
|
-
##### [characters](https://github.com/appium/ruby_lib/blob/
|
1580
|
+
##### [characters](https://github.com/appium/ruby_lib/blob/ecf1a5a1e323aeb1efdaebbfe1ae566bfcae1978/lib/appium_lib/common/helper.rb#L210)
|
1603
1581
|
|
1604
1582
|
> def characters(chars)
|
1605
1583
|
|
@@ -1607,7 +1585,7 @@ __Returns:__
|
|
1607
1585
|
|
1608
1586
|
--
|
1609
1587
|
|
1610
|
-
##### [_no_such_element](https://github.com/appium/ruby_lib/blob/
|
1588
|
+
##### [_no_such_element](https://github.com/appium/ruby_lib/blob/ecf1a5a1e323aeb1efdaebbfe1ae566bfcae1978/lib/appium_lib/common/helper.rb#L217)
|
1611
1589
|
|
1612
1590
|
> def _no_such_element
|
1613
1591
|
|
@@ -1615,7 +1593,7 @@ __Returns:__
|
|
1615
1593
|
|
1616
1594
|
--
|
1617
1595
|
|
1618
|
-
##### [COMMAND_NO_ARG](https://github.com/appium/ruby_lib/blob/
|
1596
|
+
##### [COMMAND_NO_ARG](https://github.com/appium/ruby_lib/blob/ecf1a5a1e323aeb1efdaebbfe1ae566bfcae1978/lib/appium_lib/common/command.rb#L4)
|
1619
1597
|
|
1620
1598
|
> COMMAND_NO_ARG = {
|
1621
1599
|
|
@@ -1623,7 +1601,7 @@ __Returns:__
|
|
1623
1601
|
|
1624
1602
|
--
|
1625
1603
|
|
1626
|
-
##### [COMMAND](https://github.com/appium/ruby_lib/blob/
|
1604
|
+
##### [COMMAND](https://github.com/appium/ruby_lib/blob/ecf1a5a1e323aeb1efdaebbfe1ae566bfcae1978/lib/appium_lib/common/command.rb#L23)
|
1627
1605
|
|
1628
1606
|
> COMMAND = {
|
1629
1607
|
|
@@ -1631,23 +1609,23 @@ __Returns:__
|
|
1631
1609
|
|
1632
1610
|
--
|
1633
1611
|
|
1634
|
-
##### [
|
1612
|
+
##### [window_size](https://github.com/appium/ruby_lib/blob/ecf1a5a1e323aeb1efdaebbfe1ae566bfcae1978/lib/appium_lib/common/element/window.rb#L5)
|
1635
1613
|
|
1636
|
-
>
|
1614
|
+
> def window_size
|
1637
1615
|
|
1638
|
-
|
1616
|
+
Get the window's size
|
1639
1617
|
|
1640
1618
|
--
|
1641
1619
|
|
1642
|
-
##### [
|
1620
|
+
##### [FINDERS](https://github.com/appium/ruby_lib/blob/ecf1a5a1e323aeb1efdaebbfe1ae566bfcae1978/lib/appium_lib/common/search_context.rb#L5)
|
1643
1621
|
|
1644
|
-
>
|
1622
|
+
> FINDERS = {
|
1645
1623
|
|
1646
|
-
|
1624
|
+
rubocop:disable Style/MutableConstant
|
1647
1625
|
|
1648
1626
|
--
|
1649
1627
|
|
1650
|
-
##### [result](https://github.com/appium/ruby_lib/blob/
|
1628
|
+
##### [result](https://github.com/appium/ruby_lib/blob/ecf1a5a1e323aeb1efdaebbfe1ae566bfcae1978/lib/appium_lib/android/helper.rb#L6) android
|
1651
1629
|
|
1652
1630
|
> def result
|
1653
1631
|
|
@@ -1655,7 +1633,7 @@ Returns the value of attribute result
|
|
1655
1633
|
|
1656
1634
|
--
|
1657
1635
|
|
1658
|
-
##### [keys](https://github.com/appium/ruby_lib/blob/
|
1636
|
+
##### [keys](https://github.com/appium/ruby_lib/blob/ecf1a5a1e323aeb1efdaebbfe1ae566bfcae1978/lib/appium_lib/android/helper.rb#L6) android
|
1659
1637
|
|
1660
1638
|
> def keys
|
1661
1639
|
|
@@ -1663,7 +1641,7 @@ Returns the value of attribute keys
|
|
1663
1641
|
|
1664
1642
|
--
|
1665
1643
|
|
1666
|
-
##### [instance](https://github.com/appium/ruby_lib/blob/
|
1644
|
+
##### [instance](https://github.com/appium/ruby_lib/blob/ecf1a5a1e323aeb1efdaebbfe1ae566bfcae1978/lib/appium_lib/android/helper.rb#L6) android
|
1667
1645
|
|
1668
1646
|
> def instance
|
1669
1647
|
|
@@ -1671,7 +1649,7 @@ Returns the value of attribute instance
|
|
1671
1649
|
|
1672
1650
|
--
|
1673
1651
|
|
1674
|
-
##### [filter](https://github.com/appium/ruby_lib/blob/
|
1652
|
+
##### [filter](https://github.com/appium/ruby_lib/blob/ecf1a5a1e323aeb1efdaebbfe1ae566bfcae1978/lib/appium_lib/android/helper.rb#L6) android
|
1675
1653
|
|
1676
1654
|
> def filter
|
1677
1655
|
|
@@ -1679,7 +1657,7 @@ Returns the value of attribute filter
|
|
1679
1657
|
|
1680
1658
|
--
|
1681
1659
|
|
1682
|
-
##### [filter=](https://github.com/appium/ruby_lib/blob/
|
1660
|
+
##### [filter=](https://github.com/appium/ruby_lib/blob/ecf1a5a1e323aeb1efdaebbfe1ae566bfcae1978/lib/appium_lib/android/helper.rb#L9) android
|
1683
1661
|
|
1684
1662
|
> def filter=(value)
|
1685
1663
|
|
@@ -1687,7 +1665,7 @@ convert to string to support symbols
|
|
1687
1665
|
|
1688
1666
|
--
|
1689
1667
|
|
1690
|
-
##### [initialize](https://github.com/appium/ruby_lib/blob/
|
1668
|
+
##### [initialize](https://github.com/appium/ruby_lib/blob/ecf1a5a1e323aeb1efdaebbfe1ae566bfcae1978/lib/appium_lib/android/helper.rb#L15) android
|
1691
1669
|
|
1692
1670
|
> def initialize
|
1693
1671
|
|
@@ -1699,7 +1677,7 @@ __Returns:__
|
|
1699
1677
|
|
1700
1678
|
--
|
1701
1679
|
|
1702
|
-
##### [reset](https://github.com/appium/ruby_lib/blob/
|
1680
|
+
##### [reset](https://github.com/appium/ruby_lib/blob/ecf1a5a1e323aeb1efdaebbfe1ae566bfcae1978/lib/appium_lib/android/helper.rb#L21) android
|
1703
1681
|
|
1704
1682
|
> def reset
|
1705
1683
|
|
@@ -1707,7 +1685,7 @@ __Returns:__
|
|
1707
1685
|
|
1708
1686
|
--
|
1709
1687
|
|
1710
|
-
##### [start_element](https://github.com/appium/ruby_lib/blob/
|
1688
|
+
##### [start_element](https://github.com/appium/ruby_lib/blob/ecf1a5a1e323aeb1efdaebbfe1ae566bfcae1978/lib/appium_lib/android/helper.rb#L28) android
|
1711
1689
|
|
1712
1690
|
> def start_element(name, attrs = [])
|
1713
1691
|
|
@@ -1715,7 +1693,7 @@ http://nokogiri.org/Nokogiri/XML/SAX/Document.html
|
|
1715
1693
|
|
1716
1694
|
--
|
1717
1695
|
|
1718
|
-
##### [_fix_android_native_source](https://github.com/appium/ruby_lib/blob/
|
1696
|
+
##### [_fix_android_native_source](https://github.com/appium/ruby_lib/blob/ecf1a5a1e323aeb1efdaebbfe1ae566bfcae1978/lib/appium_lib/android/helper.rb#L88) android
|
1719
1697
|
|
1720
1698
|
> def _fix_android_native_source(source)
|
1721
1699
|
|
@@ -1725,7 +1703,7 @@ https://code.google.com/p/android/issues/detail?id=74143
|
|
1725
1703
|
|
1726
1704
|
--
|
1727
1705
|
|
1728
|
-
##### [source](https://github.com/appium/ruby_lib/blob/
|
1706
|
+
##### [source](https://github.com/appium/ruby_lib/blob/ecf1a5a1e323aeb1efdaebbfe1ae566bfcae1978/lib/appium_lib/android/helper.rb#L116) android
|
1729
1707
|
|
1730
1708
|
> def source
|
1731
1709
|
|
@@ -1737,7 +1715,7 @@ __Returns:__
|
|
1737
1715
|
|
1738
1716
|
--
|
1739
1717
|
|
1740
|
-
##### [get_android_inspect](https://github.com/appium/ruby_lib/blob/
|
1718
|
+
##### [get_android_inspect](https://github.com/appium/ruby_lib/blob/ecf1a5a1e323aeb1efdaebbfe1ae566bfcae1978/lib/appium_lib/android/helper.rb#L126) android
|
1741
1719
|
|
1742
1720
|
> def get_android_inspect(class_name = false)
|
1743
1721
|
|
@@ -1756,7 +1734,7 @@ __Returns:__
|
|
1756
1734
|
|
1757
1735
|
--
|
1758
1736
|
|
1759
|
-
##### [page](https://github.com/appium/ruby_lib/blob/
|
1737
|
+
##### [page](https://github.com/appium/ruby_lib/blob/ecf1a5a1e323aeb1efdaebbfe1ae566bfcae1978/lib/appium_lib/android/helper.rb#L152) android
|
1760
1738
|
|
1761
1739
|
> def page(opts = {})
|
1762
1740
|
|
@@ -1775,7 +1753,7 @@ __Returns:__
|
|
1775
1753
|
|
1776
1754
|
--
|
1777
1755
|
|
1778
|
-
##### [current_app](https://github.com/appium/ruby_lib/blob/
|
1756
|
+
##### [current_app](https://github.com/appium/ruby_lib/blob/ecf1a5a1e323aeb1efdaebbfe1ae566bfcae1978/lib/appium_lib/android/helper.rb#L164) android
|
1779
1757
|
|
1780
1758
|
> def current_app
|
1781
1759
|
|
@@ -1785,7 +1763,7 @@ example line:
|
|
1785
1763
|
|
1786
1764
|
--
|
1787
1765
|
|
1788
|
-
##### [id](https://github.com/appium/ruby_lib/blob/
|
1766
|
+
##### [id](https://github.com/appium/ruby_lib/blob/ecf1a5a1e323aeb1efdaebbfe1ae566bfcae1978/lib/appium_lib/android/helper.rb#L188) android
|
1789
1767
|
|
1790
1768
|
> def id(id)
|
1791
1769
|
|
@@ -1801,7 +1779,7 @@ __Returns:__
|
|
1801
1779
|
|
1802
1780
|
--
|
1803
1781
|
|
1804
|
-
##### [ids](https://github.com/appium/ruby_lib/blob/
|
1782
|
+
##### [ids](https://github.com/appium/ruby_lib/blob/ecf1a5a1e323aeb1efdaebbfe1ae566bfcae1978/lib/appium_lib/android/helper.rb#L196) android
|
1805
1783
|
|
1806
1784
|
> def ids(id)
|
1807
1785
|
|
@@ -1817,7 +1795,7 @@ __Returns:__
|
|
1817
1795
|
|
1818
1796
|
--
|
1819
1797
|
|
1820
|
-
##### [ele_index](https://github.com/appium/ruby_lib/blob/
|
1798
|
+
##### [ele_index](https://github.com/appium/ruby_lib/blob/ecf1a5a1e323aeb1efdaebbfe1ae566bfcae1978/lib/appium_lib/android/helper.rb#L205) android
|
1821
1799
|
|
1822
1800
|
> def ele_index(class_name, index)
|
1823
1801
|
|
@@ -1835,7 +1813,7 @@ __Returns:__
|
|
1835
1813
|
|
1836
1814
|
--
|
1837
1815
|
|
1838
|
-
##### [first_ele](https://github.com/appium/ruby_lib/blob/
|
1816
|
+
##### [first_ele](https://github.com/appium/ruby_lib/blob/ecf1a5a1e323aeb1efdaebbfe1ae566bfcae1978/lib/appium_lib/android/helper.rb#L223) android
|
1839
1817
|
|
1840
1818
|
> def first_ele(class_name)
|
1841
1819
|
|
@@ -1851,7 +1829,7 @@ __Returns:__
|
|
1851
1829
|
|
1852
1830
|
--
|
1853
1831
|
|
1854
|
-
##### [last_ele](https://github.com/appium/ruby_lib/blob/
|
1832
|
+
##### [last_ele](https://github.com/appium/ruby_lib/blob/ecf1a5a1e323aeb1efdaebbfe1ae566bfcae1978/lib/appium_lib/android/helper.rb#L230) android
|
1855
1833
|
|
1856
1834
|
> def last_ele(class_name)
|
1857
1835
|
|
@@ -1867,7 +1845,7 @@ __Returns:__
|
|
1867
1845
|
|
1868
1846
|
--
|
1869
1847
|
|
1870
|
-
##### [tag](https://github.com/appium/ruby_lib/blob/
|
1848
|
+
##### [tag](https://github.com/appium/ruby_lib/blob/ecf1a5a1e323aeb1efdaebbfe1ae566bfcae1978/lib/appium_lib/android/helper.rb#L238) android
|
1871
1849
|
|
1872
1850
|
> def tag(class_name)
|
1873
1851
|
|
@@ -1883,7 +1861,7 @@ __Returns:__
|
|
1883
1861
|
|
1884
1862
|
--
|
1885
1863
|
|
1886
|
-
##### [tags](https://github.com/appium/ruby_lib/blob/
|
1864
|
+
##### [tags](https://github.com/appium/ruby_lib/blob/ecf1a5a1e323aeb1efdaebbfe1ae566bfcae1978/lib/appium_lib/android/helper.rb#L246) android
|
1887
1865
|
|
1888
1866
|
> def tags(class_name)
|
1889
1867
|
|
@@ -1899,7 +1877,7 @@ __Returns:__
|
|
1899
1877
|
|
1900
1878
|
--
|
1901
1879
|
|
1902
|
-
##### [string_visible_contains](https://github.com/appium/ruby_lib/blob/
|
1880
|
+
##### [string_visible_contains](https://github.com/appium/ruby_lib/blob/ecf1a5a1e323aeb1efdaebbfe1ae566bfcae1978/lib/appium_lib/android/helper.rb#L288) android
|
1903
1881
|
|
1904
1882
|
> def string_visible_contains(class_name, value)
|
1905
1883
|
|
@@ -1919,7 +1897,7 @@ __Returns:__
|
|
1919
1897
|
|
1920
1898
|
--
|
1921
1899
|
|
1922
|
-
##### [complex_find_contains](https://github.com/appium/ruby_lib/blob/
|
1900
|
+
##### [complex_find_contains](https://github.com/appium/ruby_lib/blob/ecf1a5a1e323aeb1efdaebbfe1ae566bfcae1978/lib/appium_lib/android/helper.rb#L308) android
|
1923
1901
|
|
1924
1902
|
> def complex_find_contains(element, value)
|
1925
1903
|
|
@@ -1937,7 +1915,7 @@ __Returns:__
|
|
1937
1915
|
|
1938
1916
|
--
|
1939
1917
|
|
1940
|
-
##### [complex_finds_contains](https://github.com/appium/ruby_lib/blob/
|
1918
|
+
##### [complex_finds_contains](https://github.com/appium/ruby_lib/blob/ecf1a5a1e323aeb1efdaebbfe1ae566bfcae1978/lib/appium_lib/android/helper.rb#L316) android
|
1941
1919
|
|
1942
1920
|
> def complex_finds_contains(element, value)
|
1943
1921
|
|
@@ -1955,7 +1933,7 @@ __Returns:__
|
|
1955
1933
|
|
1956
1934
|
--
|
1957
1935
|
|
1958
|
-
##### [complex_find_exact](https://github.com/appium/ruby_lib/blob/
|
1936
|
+
##### [complex_find_exact](https://github.com/appium/ruby_lib/blob/ecf1a5a1e323aeb1efdaebbfe1ae566bfcae1978/lib/appium_lib/android/helper.rb#L345) android
|
1959
1937
|
|
1960
1938
|
> def complex_find_exact(class_name, value)
|
1961
1939
|
|
@@ -1973,7 +1951,7 @@ __Returns:__
|
|
1973
1951
|
|
1974
1952
|
--
|
1975
1953
|
|
1976
|
-
##### [complex_finds_exact](https://github.com/appium/ruby_lib/blob/
|
1954
|
+
##### [complex_finds_exact](https://github.com/appium/ruby_lib/blob/ecf1a5a1e323aeb1efdaebbfe1ae566bfcae1978/lib/appium_lib/android/helper.rb#L353) android
|
1977
1955
|
|
1978
1956
|
> def complex_finds_exact(class_name, value)
|
1979
1957
|
|
@@ -1991,7 +1969,7 @@ __Returns:__
|
|
1991
1969
|
|
1992
1970
|
--
|
1993
1971
|
|
1994
|
-
##### [get_source](https://github.com/appium/ruby_lib/blob/
|
1972
|
+
##### [get_source](https://github.com/appium/ruby_lib/blob/ecf1a5a1e323aeb1efdaebbfe1ae566bfcae1978/lib/appium_lib/android/helper.rb#L361) android
|
1995
1973
|
|
1996
1974
|
> def get_source
|
1997
1975
|
|
@@ -2005,7 +1983,39 @@ __Returns:__
|
|
2005
1983
|
|
2006
1984
|
--
|
2007
1985
|
|
2008
|
-
##### [
|
1986
|
+
##### [_nodeset_to_uiselector](https://github.com/appium/ruby_lib/blob/ecf1a5a1e323aeb1efdaebbfe1ae566bfcae1978/lib/appium_lib/android/client_xpath.rb#L5) android
|
1987
|
+
|
1988
|
+
> def _nodeset_to_uiselector(opts = {})
|
1989
|
+
|
1990
|
+
|
1991
|
+
|
1992
|
+
--
|
1993
|
+
|
1994
|
+
##### [_client_xpath](https://github.com/appium/ruby_lib/blob/ecf1a5a1e323aeb1efdaebbfe1ae566bfcae1978/lib/appium_lib/android/client_xpath.rb#L20) android
|
1995
|
+
|
1996
|
+
> def _client_xpath(opts = {})
|
1997
|
+
|
1998
|
+
|
1999
|
+
|
2000
|
+
--
|
2001
|
+
|
2002
|
+
##### [client_xpath](https://github.com/appium/ruby_lib/blob/ecf1a5a1e323aeb1efdaebbfe1ae566bfcae1978/lib/appium_lib/android/client_xpath.rb#L36) android
|
2003
|
+
|
2004
|
+
> def client_xpath(xpath)
|
2005
|
+
|
2006
|
+
|
2007
|
+
|
2008
|
+
--
|
2009
|
+
|
2010
|
+
##### [client_xpaths](https://github.com/appium/ruby_lib/blob/ecf1a5a1e323aeb1efdaebbfe1ae566bfcae1978/lib/appium_lib/android/client_xpath.rb#L40) android
|
2011
|
+
|
2012
|
+
> def client_xpaths(xpath)
|
2013
|
+
|
2014
|
+
|
2015
|
+
|
2016
|
+
--
|
2017
|
+
|
2018
|
+
##### [TextView](https://github.com/appium/ruby_lib/blob/ecf1a5a1e323aeb1efdaebbfe1ae566bfcae1978/lib/appium_lib/android/element/text.rb#L4) android
|
2009
2019
|
|
2010
2020
|
> TextView = 'android.widget.TextView'.freeze
|
2011
2021
|
|
@@ -2013,7 +2023,7 @@ __Returns:__
|
|
2013
2023
|
|
2014
2024
|
--
|
2015
2025
|
|
2016
|
-
##### [text](https://github.com/appium/ruby_lib/blob/
|
2026
|
+
##### [text](https://github.com/appium/ruby_lib/blob/ecf1a5a1e323aeb1efdaebbfe1ae566bfcae1978/lib/appium_lib/android/element/text.rb#L10) android
|
2017
2027
|
|
2018
2028
|
> def text(value)
|
2019
2029
|
|
@@ -2030,7 +2040,7 @@ __Returns:__
|
|
2030
2040
|
|
2031
2041
|
--
|
2032
2042
|
|
2033
|
-
##### [texts](https://github.com/appium/ruby_lib/blob/
|
2043
|
+
##### [texts](https://github.com/appium/ruby_lib/blob/ecf1a5a1e323aeb1efdaebbfe1ae566bfcae1978/lib/appium_lib/android/element/text.rb#L19) android
|
2034
2044
|
|
2035
2045
|
> def texts(value = false)
|
2036
2046
|
|
@@ -2047,7 +2057,7 @@ __Returns:__
|
|
2047
2057
|
|
2048
2058
|
--
|
2049
2059
|
|
2050
|
-
##### [first_text](https://github.com/appium/ruby_lib/blob/
|
2060
|
+
##### [first_text](https://github.com/appium/ruby_lib/blob/ecf1a5a1e323aeb1efdaebbfe1ae566bfcae1978/lib/appium_lib/android/element/text.rb#L26) android
|
2051
2061
|
|
2052
2062
|
> def first_text
|
2053
2063
|
|
@@ -2059,7 +2069,7 @@ __Returns:__
|
|
2059
2069
|
|
2060
2070
|
--
|
2061
2071
|
|
2062
|
-
##### [last_text](https://github.com/appium/ruby_lib/blob/
|
2072
|
+
##### [last_text](https://github.com/appium/ruby_lib/blob/ecf1a5a1e323aeb1efdaebbfe1ae566bfcae1978/lib/appium_lib/android/element/text.rb#L32) android
|
2063
2073
|
|
2064
2074
|
> def last_text
|
2065
2075
|
|
@@ -2071,7 +2081,7 @@ __Returns:__
|
|
2071
2081
|
|
2072
2082
|
--
|
2073
2083
|
|
2074
|
-
##### [text_exact](https://github.com/appium/ruby_lib/blob/
|
2084
|
+
##### [text_exact](https://github.com/appium/ruby_lib/blob/ecf1a5a1e323aeb1efdaebbfe1ae566bfcae1978/lib/appium_lib/android/element/text.rb#L39) android
|
2075
2085
|
|
2076
2086
|
> def text_exact(value)
|
2077
2087
|
|
@@ -2087,7 +2097,7 @@ __Returns:__
|
|
2087
2097
|
|
2088
2098
|
--
|
2089
2099
|
|
2090
|
-
##### [texts_exact](https://github.com/appium/ruby_lib/blob/
|
2100
|
+
##### [texts_exact](https://github.com/appium/ruby_lib/blob/ecf1a5a1e323aeb1efdaebbfe1ae566bfcae1978/lib/appium_lib/android/element/text.rb#L46) android
|
2091
2101
|
|
2092
2102
|
> def texts_exact(value)
|
2093
2103
|
|
@@ -2103,39 +2113,7 @@ __Returns:__
|
|
2103
2113
|
|
2104
2114
|
--
|
2105
2115
|
|
2106
|
-
##### [
|
2107
|
-
|
2108
|
-
> def _nodeset_to_uiselector(opts = {})
|
2109
|
-
|
2110
|
-
|
2111
|
-
|
2112
|
-
--
|
2113
|
-
|
2114
|
-
##### [_client_xpath](https://github.com/appium/ruby_lib/blob/ba2fbdcb206609259134fc09eac7940c21cc2c13/lib/appium_lib/android/client_xpath.rb#L20) android
|
2115
|
-
|
2116
|
-
> def _client_xpath(opts = {})
|
2117
|
-
|
2118
|
-
|
2119
|
-
|
2120
|
-
--
|
2121
|
-
|
2122
|
-
##### [client_xpath](https://github.com/appium/ruby_lib/blob/ba2fbdcb206609259134fc09eac7940c21cc2c13/lib/appium_lib/android/client_xpath.rb#L36) android
|
2123
|
-
|
2124
|
-
> def client_xpath(xpath)
|
2125
|
-
|
2126
|
-
|
2127
|
-
|
2128
|
-
--
|
2129
|
-
|
2130
|
-
##### [client_xpaths](https://github.com/appium/ruby_lib/blob/ba2fbdcb206609259134fc09eac7940c21cc2c13/lib/appium_lib/android/client_xpath.rb#L40) android
|
2131
|
-
|
2132
|
-
> def client_xpaths(xpath)
|
2133
|
-
|
2134
|
-
|
2135
|
-
|
2136
|
-
--
|
2137
|
-
|
2138
|
-
##### [alert_click](https://github.com/appium/ruby_lib/blob/ba2fbdcb206609259134fc09eac7940c21cc2c13/lib/appium_lib/android/element/alert.rb#L6) android
|
2116
|
+
##### [alert_click](https://github.com/appium/ruby_lib/blob/ecf1a5a1e323aeb1efdaebbfe1ae566bfcae1978/lib/appium_lib/android/element/alert.rb#L6) android
|
2139
2117
|
|
2140
2118
|
> def alert_click(value)
|
2141
2119
|
|
@@ -2151,7 +2129,7 @@ __Returns:__
|
|
2151
2129
|
|
2152
2130
|
--
|
2153
2131
|
|
2154
|
-
##### [alert_accept](https://github.com/appium/ruby_lib/blob/
|
2132
|
+
##### [alert_accept](https://github.com/appium/ruby_lib/blob/ecf1a5a1e323aeb1efdaebbfe1ae566bfcae1978/lib/appium_lib/android/element/alert.rb#L13) android
|
2155
2133
|
|
2156
2134
|
> def alert_accept
|
2157
2135
|
|
@@ -2164,7 +2142,7 @@ __Returns:__
|
|
2164
2142
|
|
2165
2143
|
--
|
2166
2144
|
|
2167
|
-
##### [alert_accept_text](https://github.com/appium/ruby_lib/blob/
|
2145
|
+
##### [alert_accept_text](https://github.com/appium/ruby_lib/blob/ecf1a5a1e323aeb1efdaebbfe1ae566bfcae1978/lib/appium_lib/android/element/alert.rb#L20) android
|
2168
2146
|
|
2169
2147
|
> def alert_accept_text
|
2170
2148
|
|
@@ -2177,7 +2155,7 @@ __Returns:__
|
|
2177
2155
|
|
2178
2156
|
--
|
2179
2157
|
|
2180
|
-
##### [alert_dismiss](https://github.com/appium/ruby_lib/blob/
|
2158
|
+
##### [alert_dismiss](https://github.com/appium/ruby_lib/blob/ecf1a5a1e323aeb1efdaebbfe1ae566bfcae1978/lib/appium_lib/android/element/alert.rb#L27) android
|
2181
2159
|
|
2182
2160
|
> def alert_dismiss
|
2183
2161
|
|
@@ -2190,7 +2168,7 @@ __Returns:__
|
|
2190
2168
|
|
2191
2169
|
--
|
2192
2170
|
|
2193
|
-
##### [alert_dismiss_text](https://github.com/appium/ruby_lib/blob/
|
2171
|
+
##### [alert_dismiss_text](https://github.com/appium/ruby_lib/blob/ecf1a5a1e323aeb1efdaebbfe1ae566bfcae1978/lib/appium_lib/android/element/alert.rb#L34) android
|
2194
2172
|
|
2195
2173
|
> def alert_dismiss_text
|
2196
2174
|
|
@@ -2203,7 +2181,7 @@ __Returns:__
|
|
2203
2181
|
|
2204
2182
|
--
|
2205
2183
|
|
2206
|
-
##### [Button](https://github.com/appium/ruby_lib/blob/
|
2184
|
+
##### [Button](https://github.com/appium/ruby_lib/blob/ecf1a5a1e323aeb1efdaebbfe1ae566bfcae1978/lib/appium_lib/android/element/button.rb#L4) android
|
2207
2185
|
|
2208
2186
|
> Button = 'android.widget.Button'.freeze
|
2209
2187
|
|
@@ -2211,7 +2189,7 @@ __Returns:__
|
|
2211
2189
|
|
2212
2190
|
--
|
2213
2191
|
|
2214
|
-
##### [ImageButton](https://github.com/appium/ruby_lib/blob/
|
2192
|
+
##### [ImageButton](https://github.com/appium/ruby_lib/blob/ecf1a5a1e323aeb1efdaebbfe1ae566bfcae1978/lib/appium_lib/android/element/button.rb#L5) android
|
2215
2193
|
|
2216
2194
|
> ImageButton = 'android.widget.ImageButton'.freeze
|
2217
2195
|
|
@@ -2219,7 +2197,7 @@ __Returns:__
|
|
2219
2197
|
|
2220
2198
|
--
|
2221
2199
|
|
2222
|
-
##### [button](https://github.com/appium/ruby_lib/blob/
|
2200
|
+
##### [button](https://github.com/appium/ruby_lib/blob/ecf1a5a1e323aeb1efdaebbfe1ae566bfcae1978/lib/appium_lib/android/element/button.rb#L43) android
|
2223
2201
|
|
2224
2202
|
> def button(value)
|
2225
2203
|
|
@@ -2236,7 +2214,7 @@ __Returns:__
|
|
2236
2214
|
|
2237
2215
|
--
|
2238
2216
|
|
2239
|
-
##### [buttons](https://github.com/appium/ruby_lib/blob/
|
2217
|
+
##### [buttons](https://github.com/appium/ruby_lib/blob/ecf1a5a1e323aeb1efdaebbfe1ae566bfcae1978/lib/appium_lib/android/element/button.rb#L60) android
|
2240
2218
|
|
2241
2219
|
> def buttons(value = false)
|
2242
2220
|
|
@@ -2253,7 +2231,7 @@ __Returns:__
|
|
2253
2231
|
|
2254
2232
|
--
|
2255
2233
|
|
2256
|
-
##### [first_button](https://github.com/appium/ruby_lib/blob/
|
2234
|
+
##### [first_button](https://github.com/appium/ruby_lib/blob/ecf1a5a1e323aeb1efdaebbfe1ae566bfcae1978/lib/appium_lib/android/element/button.rb#L67) android
|
2257
2235
|
|
2258
2236
|
> def first_button
|
2259
2237
|
|
@@ -2265,7 +2243,7 @@ __Returns:__
|
|
2265
2243
|
|
2266
2244
|
--
|
2267
2245
|
|
2268
|
-
##### [last_button](https://github.com/appium/ruby_lib/blob/
|
2246
|
+
##### [last_button](https://github.com/appium/ruby_lib/blob/ecf1a5a1e323aeb1efdaebbfe1ae566bfcae1978/lib/appium_lib/android/element/button.rb#L73) android
|
2269
2247
|
|
2270
2248
|
> def last_button
|
2271
2249
|
|
@@ -2277,7 +2255,7 @@ __Returns:__
|
|
2277
2255
|
|
2278
2256
|
--
|
2279
2257
|
|
2280
|
-
##### [button_exact](https://github.com/appium/ruby_lib/blob/
|
2258
|
+
##### [button_exact](https://github.com/appium/ruby_lib/blob/ecf1a5a1e323aeb1efdaebbfe1ae566bfcae1978/lib/appium_lib/android/element/button.rb#L89) android
|
2281
2259
|
|
2282
2260
|
> def button_exact(value)
|
2283
2261
|
|
@@ -2293,7 +2271,7 @@ __Returns:__
|
|
2293
2271
|
|
2294
2272
|
--
|
2295
2273
|
|
2296
|
-
##### [buttons_exact](https://github.com/appium/ruby_lib/blob/
|
2274
|
+
##### [buttons_exact](https://github.com/appium/ruby_lib/blob/ecf1a5a1e323aeb1efdaebbfe1ae566bfcae1978/lib/appium_lib/android/element/button.rb#L96) android
|
2297
2275
|
|
2298
2276
|
> def buttons_exact(value)
|
2299
2277
|
|
@@ -2309,7 +2287,7 @@ __Returns:__
|
|
2309
2287
|
|
2310
2288
|
--
|
2311
2289
|
|
2312
|
-
##### [uiautomator_find](https://github.com/appium/ruby_lib/blob/
|
2290
|
+
##### [uiautomator_find](https://github.com/appium/ruby_lib/blob/ecf1a5a1e323aeb1efdaebbfe1ae566bfcae1978/lib/appium_lib/android/mobile_methods.rb#L10) android
|
2313
2291
|
|
2314
2292
|
> def uiautomator_find
|
2315
2293
|
|
@@ -2321,7 +2299,7 @@ find_element/s can be used with a [UISelector](http://developer.android.com/tool
|
|
2321
2299
|
|
2322
2300
|
--
|
2323
2301
|
|
2324
|
-
##### [find](https://github.com/appium/ruby_lib/blob/
|
2302
|
+
##### [find](https://github.com/appium/ruby_lib/blob/ecf1a5a1e323aeb1efdaebbfe1ae566bfcae1978/lib/appium_lib/android/element/generic.rb#L6) android
|
2325
2303
|
|
2326
2304
|
> def find(value)
|
2327
2305
|
|
@@ -2337,7 +2315,7 @@ __Returns:__
|
|
2337
2315
|
|
2338
2316
|
--
|
2339
2317
|
|
2340
|
-
##### [finds](https://github.com/appium/ruby_lib/blob/
|
2318
|
+
##### [finds](https://github.com/appium/ruby_lib/blob/ecf1a5a1e323aeb1efdaebbfe1ae566bfcae1978/lib/appium_lib/android/element/generic.rb#L13) android
|
2341
2319
|
|
2342
2320
|
> def finds(value)
|
2343
2321
|
|
@@ -2353,7 +2331,7 @@ __Returns:__
|
|
2353
2331
|
|
2354
2332
|
--
|
2355
2333
|
|
2356
|
-
##### [find_exact](https://github.com/appium/ruby_lib/blob/
|
2334
|
+
##### [find_exact](https://github.com/appium/ruby_lib/blob/ecf1a5a1e323aeb1efdaebbfe1ae566bfcae1978/lib/appium_lib/android/element/generic.rb#L20) android
|
2357
2335
|
|
2358
2336
|
> def find_exact(value)
|
2359
2337
|
|
@@ -2369,7 +2347,7 @@ __Returns:__
|
|
2369
2347
|
|
2370
2348
|
--
|
2371
2349
|
|
2372
|
-
##### [finds_exact](https://github.com/appium/ruby_lib/blob/
|
2350
|
+
##### [finds_exact](https://github.com/appium/ruby_lib/blob/ecf1a5a1e323aeb1efdaebbfe1ae566bfcae1978/lib/appium_lib/android/element/generic.rb#L27) android
|
2373
2351
|
|
2374
2352
|
> def finds_exact(value)
|
2375
2353
|
|
@@ -2385,7 +2363,7 @@ __Returns:__
|
|
2385
2363
|
|
2386
2364
|
--
|
2387
2365
|
|
2388
|
-
##### [scroll_to](https://github.com/appium/ruby_lib/blob/
|
2366
|
+
##### [scroll_to](https://github.com/appium/ruby_lib/blob/ecf1a5a1e323aeb1efdaebbfe1ae566bfcae1978/lib/appium_lib/android/element/generic.rb#L39) android
|
2389
2367
|
|
2390
2368
|
> def scroll_to(text)
|
2391
2369
|
|
@@ -2401,7 +2379,7 @@ __Returns:__
|
|
2401
2379
|
|
2402
2380
|
--
|
2403
2381
|
|
2404
|
-
##### [scroll_to_exact](https://github.com/appium/ruby_lib/blob/
|
2382
|
+
##### [scroll_to_exact](https://github.com/appium/ruby_lib/blob/ecf1a5a1e323aeb1efdaebbfe1ae566bfcae1978/lib/appium_lib/android/element/generic.rb#L51) android
|
2405
2383
|
|
2406
2384
|
> def scroll_to_exact(text)
|
2407
2385
|
|
@@ -2417,7 +2395,7 @@ __Returns:__
|
|
2417
2395
|
|
2418
2396
|
--
|
2419
2397
|
|
2420
|
-
##### [EditText](https://github.com/appium/ruby_lib/blob/
|
2398
|
+
##### [EditText](https://github.com/appium/ruby_lib/blob/ecf1a5a1e323aeb1efdaebbfe1ae566bfcae1978/lib/appium_lib/android/element/textfield.rb#L3) android
|
2421
2399
|
|
2422
2400
|
> EditText = 'android.widget.EditText'.freeze
|
2423
2401
|
|
@@ -2425,7 +2403,7 @@ __Returns:__
|
|
2425
2403
|
|
2426
2404
|
--
|
2427
2405
|
|
2428
|
-
##### [textfield](https://github.com/appium/ruby_lib/blob/
|
2406
|
+
##### [textfield](https://github.com/appium/ruby_lib/blob/ecf1a5a1e323aeb1efdaebbfe1ae566bfcae1978/lib/appium_lib/android/element/textfield.rb#L9) android
|
2429
2407
|
|
2430
2408
|
> def textfield(value)
|
2431
2409
|
|
@@ -2442,7 +2420,7 @@ __Returns:__
|
|
2442
2420
|
|
2443
2421
|
--
|
2444
2422
|
|
2445
|
-
##### [textfields](https://github.com/appium/ruby_lib/blob/
|
2423
|
+
##### [textfields](https://github.com/appium/ruby_lib/blob/ecf1a5a1e323aeb1efdaebbfe1ae566bfcae1978/lib/appium_lib/android/element/textfield.rb#L18) android
|
2446
2424
|
|
2447
2425
|
> def textfields(value = false)
|
2448
2426
|
|
@@ -2459,7 +2437,7 @@ __Returns:__
|
|
2459
2437
|
|
2460
2438
|
--
|
2461
2439
|
|
2462
|
-
##### [first_textfield](https://github.com/appium/ruby_lib/blob/
|
2440
|
+
##### [first_textfield](https://github.com/appium/ruby_lib/blob/ecf1a5a1e323aeb1efdaebbfe1ae566bfcae1978/lib/appium_lib/android/element/textfield.rb#L25) android
|
2463
2441
|
|
2464
2442
|
> def first_textfield
|
2465
2443
|
|
@@ -2471,7 +2449,7 @@ __Returns:__
|
|
2471
2449
|
|
2472
2450
|
--
|
2473
2451
|
|
2474
|
-
##### [last_textfield](https://github.com/appium/ruby_lib/blob/
|
2452
|
+
##### [last_textfield](https://github.com/appium/ruby_lib/blob/ecf1a5a1e323aeb1efdaebbfe1ae566bfcae1978/lib/appium_lib/android/element/textfield.rb#L31) android
|
2475
2453
|
|
2476
2454
|
> def last_textfield
|
2477
2455
|
|
@@ -2483,7 +2461,7 @@ __Returns:__
|
|
2483
2461
|
|
2484
2462
|
--
|
2485
2463
|
|
2486
|
-
##### [textfield_exact](https://github.com/appium/ruby_lib/blob/
|
2464
|
+
##### [textfield_exact](https://github.com/appium/ruby_lib/blob/ecf1a5a1e323aeb1efdaebbfe1ae566bfcae1978/lib/appium_lib/android/element/textfield.rb#L38) android
|
2487
2465
|
|
2488
2466
|
> def textfield_exact(value)
|
2489
2467
|
|
@@ -2499,7 +2477,7 @@ __Returns:__
|
|
2499
2477
|
|
2500
2478
|
--
|
2501
2479
|
|
2502
|
-
##### [textfields_exact](https://github.com/appium/ruby_lib/blob/
|
2480
|
+
##### [textfields_exact](https://github.com/appium/ruby_lib/blob/ecf1a5a1e323aeb1efdaebbfe1ae566bfcae1978/lib/appium_lib/android/element/textfield.rb#L45) android
|
2503
2481
|
|
2504
2482
|
> def textfields_exact(value)
|
2505
2483
|
|
@@ -2515,7 +2493,7 @@ __Returns:__
|
|
2515
2493
|
|
2516
2494
|
--
|
2517
2495
|
|
2518
|
-
##### [value](https://github.com/appium/ruby_lib/blob/
|
2496
|
+
##### [value](https://github.com/appium/ruby_lib/blob/ecf1a5a1e323aeb1efdaebbfe1ae566bfcae1978/lib/appium_lib/common/patch.rb#L12)
|
2519
2497
|
|
2520
2498
|
> def value
|
2521
2499
|
|
@@ -2525,7 +2503,7 @@ Fixes NoMethodError: undefined method `value' for Selenium::WebDriver::Element
|
|
2525
2503
|
|
2526
2504
|
--
|
2527
2505
|
|
2528
|
-
##### [name](https://github.com/appium/ruby_lib/blob/
|
2506
|
+
##### [name](https://github.com/appium/ruby_lib/blob/ecf1a5a1e323aeb1efdaebbfe1ae566bfcae1978/lib/appium_lib/common/patch.rb#L19)
|
2529
2507
|
|
2530
2508
|
> def name
|
2531
2509
|
|
@@ -2535,7 +2513,7 @@ Fixes NoMethodError: undefined method `name' for Selenium::WebDriver::Element
|
|
2535
2513
|
|
2536
2514
|
--
|
2537
2515
|
|
2538
|
-
##### [location_rel](https://github.com/appium/ruby_lib/blob/
|
2516
|
+
##### [location_rel](https://github.com/appium/ruby_lib/blob/ecf1a5a1e323aeb1efdaebbfe1ae566bfcae1978/lib/appium_lib/common/patch.rb#L31)
|
2539
2517
|
|
2540
2518
|
> def location_rel
|
2541
2519
|
|
@@ -2553,7 +2531,7 @@ __Returns:__
|
|
2553
2531
|
|
2554
2532
|
--
|
2555
2533
|
|
2556
|
-
##### [DEFAULT_HEADERS](https://github.com/appium/ruby_lib/blob/
|
2534
|
+
##### [DEFAULT_HEADERS](https://github.com/appium/ruby_lib/blob/ecf1a5a1e323aeb1efdaebbfe1ae566bfcae1978/lib/appium_lib/common/patch.rb#L152)
|
2557
2535
|
|
2558
2536
|
> DEFAULT_HEADERS = { 'Accept' => CONTENT_TYPE, 'User-Agent' => "appium/ruby_lib/#{::Appium::VERSION}" }.freeze
|
2559
2537
|
|
@@ -2561,7 +2539,7 @@ __Returns:__
|
|
2561
2539
|
|
2562
2540
|
--
|
2563
2541
|
|
2564
|
-
##### [patch_remote_driver_commands](https://github.com/appium/ruby_lib/blob/
|
2542
|
+
##### [patch_remote_driver_commands](https://github.com/appium/ruby_lib/blob/ecf1a5a1e323aeb1efdaebbfe1ae566bfcae1978/lib/appium_lib/common/patch.rb#L155)
|
2565
2543
|
|
2566
2544
|
> def patch_remote_driver_commands
|
2567
2545
|
|