appium_lib 9.2.0 → 9.3.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/CHANGELOG.md +26 -0
- data/android_tests/lib/android/specs/common/device_touchaction.rb +1 -1
- data/android_tests/lib/android/specs/device/touch_actions.rb +40 -1
- data/android_tests/lib/android/specs/driver.rb +3 -1
- data/appium_lib.gemspec +1 -0
- data/docs/android_docs.md +361 -231
- data/docs/ios_docs.md +391 -251
- data/ios_tests/appium.txt +3 -1
- data/ios_tests/lib/ios/specs/common/helper.rb +1 -1
- data/ios_tests/lib/ios/specs/device/device.rb +1 -1
- data/ios_tests/lib/ios/specs/device/touch_actions.rb +53 -1
- data/ios_tests/lib/ios/specs/driver.rb +3 -1
- data/ios_tests/lib/ios/specs/ios/element/button.rb +1 -2
- data/ios_tests/lib/ios/specs/ios/element/text.rb +2 -2
- data/ios_tests/lib/ios/specs/ios/element/textfield.rb +3 -1
- data/ios_tests/lib/ios/specs/ios/patch.rb +1 -6
- data/lib/appium_lib/common/version.rb +2 -2
- data/lib/appium_lib/common/wait.rb +6 -6
- data/lib/appium_lib/device/device.rb +53 -49
- data/lib/appium_lib/device/multi_touch.rb +99 -27
- data/lib/appium_lib/device/touch_actions.rb +38 -20
- data/lib/appium_lib/driver.rb +58 -24
- data/lib/appium_lib/ios/element/button.rb +6 -6
- data/lib/appium_lib/ios/element/generic.rb +30 -10
- data/lib/appium_lib/ios/element/text.rb +8 -8
- data/lib/appium_lib/ios/element/textfield.rb +9 -6
- data/lib/appium_lib/ios/helper.rb +17 -18
- data/release_notes.md +15 -0
- metadata +22 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 6d651c568be2f5f4386ff703ca2b9ade9bfb210f
|
4
|
+
data.tar.gz: 881a85afe9e3405b238c8264d68beab6b3fca57d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 4a4dacef748d22085d4f780ef0624e650d2f7756ab39551ec5e93d4f7886ca817be78d4e78296af39bf0a4efc379bf5e39e6526c189c17bc0799753fe178bd37
|
7
|
+
data.tar.gz: 95403fc83cee084bed4590980e0396bdfb28e1092a6c9dbc414c7bb2f9cf8908d53018519db776cedda19e7bb455488e7188cd391fb89a8b4a9e86ad3f55b565
|
data/CHANGELOG.md
CHANGED
@@ -3,6 +3,32 @@ 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.0
|
7
|
+
### 1. Enhancements
|
8
|
+
- wait / wait_true need global defaults [#250](https://github.com/appium/ruby_lib/issues/250)
|
9
|
+
- You can set default value in `appium_lib`
|
10
|
+
- e.g.: [lib/appium_lib/driver.rb](https://github.com/appium/ruby_lib/blob/34803ef6b7b94df9ef4e147ba8fec5c1d2cfaada/lib/appium_lib/driver.rb#L341-L351)
|
11
|
+
- Problem with delta_x/delta_y in swipe method [#461](https://github.com/appium/ruby_lib/issues/461)
|
12
|
+
- Revert _fix arguments for `move_to` in `swipe` method._ in Appium v8.2.1
|
13
|
+
- `delta_x/delta_y` replace to `offset_*` for iOS
|
14
|
+
- e.g.: `swipe start_x: start_x, start_y: start_y, end_offset_x: 0, offset_y: -100`
|
15
|
+
- `delta_x/delta_y` replace to `end_*` for Android
|
16
|
+
- e.g.: `swipe start_x: start_x, start_y: start_y, end_x: start_x, end_y: start_y - 100`
|
17
|
+
- The reason why there are two kind of arguments is the following issue.
|
18
|
+
- [Difference behaviour between iOS and Android regarding with `swipe` action #7702](https://github.com/appium/appium/issues/7702)
|
19
|
+
- Clarify disabling Sauce Labs. #471
|
20
|
+
- update documentations
|
21
|
+
|
22
|
+
### 2. Bug fixes
|
23
|
+
- REQUIRED_VERSION_XCUITEST [#463](https://github.com/appium/ruby_lib/issues/463)
|
24
|
+
- find elements except for name attributes in text/s, button/s [#462](https://github.com/appium/ruby_lib/issues/462)
|
25
|
+
- Return only **visible** elements
|
26
|
+
- Previously, these methods return **all** elements.
|
27
|
+
|
28
|
+
### 3. Deprecations
|
29
|
+
- Problem with delta_x/delta_y in swipe method [#461](https://github.com/appium/ruby_lib/issues/461)
|
30
|
+
- `delta_x/delta_y` are replaced to `offset_*` for iOS and `end_*` for Android.
|
31
|
+
|
6
32
|
## v9.2.0
|
7
33
|
### 1. Enhancements
|
8
34
|
- update set_wait / no_wait logic #249
|
@@ -11,7 +11,7 @@ describe 'common/device_touchaction' do
|
|
11
11
|
end
|
12
12
|
|
13
13
|
t 'swipe' do
|
14
|
-
wait { Appium::TouchAction.new.swipe(start_x: 0.75, start_y: 0.25,
|
14
|
+
wait { Appium::TouchAction.new.swipe(start_x: 0.75, start_y: 0.25, end_x: 0.75, end_y: 50).perform }
|
15
15
|
wait { !exists { text_exact 'NFC' } }
|
16
16
|
wait { text_exact 'Bouncing Balls' }
|
17
17
|
back
|
@@ -1,13 +1,52 @@
|
|
1
|
+
# rake android[device/touch_actions]
|
1
2
|
describe 'device/touch_actions' do
|
2
3
|
def swipe_till_text_visible(seen_text)
|
3
4
|
start_x = window_size[:width] / 2
|
4
5
|
start_y = window_size[:height] / 2
|
5
6
|
wait(60) do
|
6
|
-
|
7
|
+
# rubocop:disable Metrics/LineLength
|
8
|
+
# Example for Android's log
|
9
|
+
# [0] pry(#<device/touch_actions>)> swipe start_x: start_x, start_y: start_y, end_x: start_y, end_y: start_y - 100
|
10
|
+
# [HTTP] --> POST /wd/hub/session/9baa18bf-a19b-4654-be4a-d0db0334bbc0/touch/perform {"actions":[{"action":"press","options":{"x":600,"y":919}},{"action":"wait","options":{"ms":200}},{"action":"moveTo","options":{"x":600,"y":819}},{"action":"release"}]}
|
11
|
+
# [debug] [MJSONWP] Calling AppiumDriver.performTouch() with args: [[{"action":"press","options":{"x":600,"y":919}},{"action":"wait","options":{"ms":200}},{"action":"moveTo","options":{"x":600,"y":819}},{"action":"release"}],"9baa18bf-a19b-4654-be4a-d0db0334bbc0"]
|
12
|
+
# [debug] [AndroidBootstrap] Sending command to android: {"cmd":"action","action":"swipe","params":{"startX":600,"startY":919,"endX":600,"endY":819,"steps":6}}
|
13
|
+
# [AndroidBootstrap] [BOOTSTRAP LOG] [debug] Got data from client: {"cmd":"action","action":"swipe","params":{"startX":600,"startY":919,"endX":600,"endY":819,"steps":6}}
|
14
|
+
# [AndroidBootstrap] [BOOTSTRAP LOG] [debug] Got command of type ACTION
|
15
|
+
# [AndroidBootstrap] [BOOTSTRAP LOG] [debug] Got command action: swipe
|
16
|
+
# [AndroidBootstrap] [BOOTSTRAP LOG] [debug] Display bounds: [0,0][1200,1838]
|
17
|
+
# [AndroidBootstrap] [BOOTSTRAP LOG] [debug] Display bounds: [0,0][1200,1838]
|
18
|
+
# [AndroidBootstrap] [BOOTSTRAP LOG] [debug] Swiping from [x=600.0, y=919.0] to [x=600.0, y=819.0] with steps: 6
|
19
|
+
# [debug] [AndroidBootstrap] Received command result from bootstrap
|
20
|
+
# rubocop:enable Metrics/LineLength
|
21
|
+
swipe start_x: start_x, start_y: start_y, end_x: start_x, end_y: start_y - 100
|
7
22
|
text(seen_text).displayed?
|
8
23
|
end
|
9
24
|
end
|
10
25
|
|
26
|
+
t 'swipe_coordinates_end_x_end_y' do
|
27
|
+
s = Appium::TouchAction.new.swipe_coordinates(end_x: 1, end_y: 2)
|
28
|
+
s[:offset_x].must_equal 1
|
29
|
+
s[:offset_y].must_equal 2
|
30
|
+
end
|
31
|
+
|
32
|
+
t 'swipe_coordinates_end_x' do
|
33
|
+
s = Appium::TouchAction.new.swipe_coordinates(end_x: 1)
|
34
|
+
s[:offset_x].must_equal 1
|
35
|
+
s[:offset_y].must_equal 0
|
36
|
+
end
|
37
|
+
|
38
|
+
t 'swipe_coordinates_end_y' do
|
39
|
+
s = Appium::TouchAction.new.swipe_coordinates(end_y: 1)
|
40
|
+
s[:offset_x].must_equal 0
|
41
|
+
s[:offset_y].must_equal 1
|
42
|
+
end
|
43
|
+
|
44
|
+
t 'swipe_coordinates_offset' do
|
45
|
+
s = Appium::TouchAction.new.swipe_coordinates
|
46
|
+
s[:offset_x].must_equal 0
|
47
|
+
s[:offset_y].must_equal 0
|
48
|
+
end
|
49
|
+
|
11
50
|
t 'swipe_default_duration' do
|
12
51
|
swipe_till_text_visible('views')
|
13
52
|
text('views').click
|
data/appium_lib.gemspec
CHANGED
@@ -28,6 +28,7 @@ Gem::Specification.new do |s|
|
|
28
28
|
s.add_development_dependency 'yard', '~> 0.8'
|
29
29
|
|
30
30
|
s.add_development_dependency 'rubocop', '~> 0.46.0'
|
31
|
+
s.add_development_dependency 'rainbow', '>= 2.1.0', '< 2.2.0' # workaround for Gem::Ext::BuildError: ERROR: Failed to build gem native extension.
|
31
32
|
|
32
33
|
s.files = `git ls-files`.split "\n"
|
33
34
|
end
|
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/94f3348a8fbec111a7a958063d3a2e643051b2e9/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/94f3348a8fbec111a7a958063d3a2e643051b2e9/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/94f3348a8fbec111a7a958063d3a2e643051b2e9/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/94f3348a8fbec111a7a958063d3a2e643051b2e9/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/94f3348a8fbec111a7a958063d3a2e643051b2e9/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/94f3348a8fbec111a7a958063d3a2e643051b2e9/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/94f3348a8fbec111a7a958063d3a2e643051b2e9/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/94f3348a8fbec111a7a958063d3a2e643051b2e9/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/94f3348a8fbec111a7a958063d3a2e643051b2e9/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/94f3348a8fbec111a7a958063d3a2e643051b2e9/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/94f3348a8fbec111a7a958063d3a2e643051b2e9/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/94f3348a8fbec111a7a958063d3a2e643051b2e9/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/94f3348a8fbec111a7a958063d3a2e643051b2e9/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/94f3348a8fbec111a7a958063d3a2e643051b2e9/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/94f3348a8fbec111a7a958063d3a2e643051b2e9/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/94f3348a8fbec111a7a958063d3a2e643051b2e9/lib/appium_lib/driver.rb#L283)
|
210
210
|
|
211
211
|
> def default_wait
|
212
212
|
|
@@ -220,7 +220,7 @@ __Returns:__
|
|
220
220
|
|
221
221
|
--
|
222
222
|
|
223
|
-
##### [sauce_username](https://github.com/appium/ruby_lib/blob/
|
223
|
+
##### [sauce_username](https://github.com/appium/ruby_lib/blob/94f3348a8fbec111a7a958063d3a2e643051b2e9/lib/appium_lib/driver.rb#L285)
|
224
224
|
|
225
225
|
> def sauce_username
|
226
226
|
|
@@ -228,7 +228,7 @@ Username for use on Sauce Labs
|
|
228
228
|
|
229
229
|
--
|
230
230
|
|
231
|
-
##### [sauce_username=](https://github.com/appium/ruby_lib/blob/
|
231
|
+
##### [sauce_username=](https://github.com/appium/ruby_lib/blob/94f3348a8fbec111a7a958063d3a2e643051b2e9/lib/appium_lib/driver.rb#L285)
|
232
232
|
|
233
233
|
> def sauce_username=(value)
|
234
234
|
|
@@ -236,7 +236,7 @@ Username for use on Sauce Labs
|
|
236
236
|
|
237
237
|
--
|
238
238
|
|
239
|
-
##### [sauce_access_key](https://github.com/appium/ruby_lib/blob/
|
239
|
+
##### [sauce_access_key](https://github.com/appium/ruby_lib/blob/94f3348a8fbec111a7a958063d3a2e643051b2e9/lib/appium_lib/driver.rb#L287)
|
240
240
|
|
241
241
|
> def sauce_access_key
|
242
242
|
|
@@ -244,7 +244,7 @@ Access Key for use on Sauce Labs
|
|
244
244
|
|
245
245
|
--
|
246
246
|
|
247
|
-
##### [sauce_access_key=](https://github.com/appium/ruby_lib/blob/
|
247
|
+
##### [sauce_access_key=](https://github.com/appium/ruby_lib/blob/94f3348a8fbec111a7a958063d3a2e643051b2e9/lib/appium_lib/driver.rb#L287)
|
248
248
|
|
249
249
|
> def sauce_access_key=(value)
|
250
250
|
|
@@ -252,7 +252,7 @@ Access Key for use on Sauce Labs
|
|
252
252
|
|
253
253
|
--
|
254
254
|
|
255
|
-
##### [appium_port](https://github.com/appium/ruby_lib/blob/
|
255
|
+
##### [appium_port](https://github.com/appium/ruby_lib/blob/94f3348a8fbec111a7a958063d3a2e643051b2e9/lib/appium_lib/driver.rb#L289)
|
256
256
|
|
257
257
|
> def appium_port
|
258
258
|
|
@@ -260,7 +260,7 @@ Appium's server port
|
|
260
260
|
|
261
261
|
--
|
262
262
|
|
263
|
-
##### [appium_port=](https://github.com/appium/ruby_lib/blob/
|
263
|
+
##### [appium_port=](https://github.com/appium/ruby_lib/blob/94f3348a8fbec111a7a958063d3a2e643051b2e9/lib/appium_lib/driver.rb#L289)
|
264
264
|
|
265
265
|
> def appium_port=(value)
|
266
266
|
|
@@ -268,7 +268,7 @@ Appium's server port
|
|
268
268
|
|
269
269
|
--
|
270
270
|
|
271
|
-
##### [appium_device](https://github.com/appium/ruby_lib/blob/
|
271
|
+
##### [appium_device](https://github.com/appium/ruby_lib/blob/94f3348a8fbec111a7a958063d3a2e643051b2e9/lib/appium_lib/driver.rb#L291)
|
272
272
|
|
273
273
|
> def appium_device
|
274
274
|
|
@@ -276,7 +276,7 @@ Device type to request from the appium server
|
|
276
276
|
|
277
277
|
--
|
278
278
|
|
279
|
-
##### [appium_device=](https://github.com/appium/ruby_lib/blob/
|
279
|
+
##### [appium_device=](https://github.com/appium/ruby_lib/blob/94f3348a8fbec111a7a958063d3a2e643051b2e9/lib/appium_lib/driver.rb#L291)
|
280
280
|
|
281
281
|
> def appium_device=(value)
|
282
282
|
|
@@ -284,7 +284,7 @@ Device type to request from the appium server
|
|
284
284
|
|
285
285
|
--
|
286
286
|
|
287
|
-
##### [automation_name](https://github.com/appium/ruby_lib/blob/
|
287
|
+
##### [automation_name](https://github.com/appium/ruby_lib/blob/94f3348a8fbec111a7a958063d3a2e643051b2e9/lib/appium_lib/driver.rb#L294)
|
288
288
|
|
289
289
|
> def automation_name
|
290
290
|
|
@@ -293,7 +293,7 @@ If automation_name is nil, it is not set both client side and server side.
|
|
293
293
|
|
294
294
|
--
|
295
295
|
|
296
|
-
##### [appium_server_version](https://github.com/appium/ruby_lib/blob/
|
296
|
+
##### [appium_server_version](https://github.com/appium/ruby_lib/blob/94f3348a8fbec111a7a958063d3a2e643051b2e9/lib/appium_lib/driver.rb#L296)
|
297
297
|
|
298
298
|
> def appium_server_version
|
299
299
|
|
@@ -314,7 +314,7 @@ __Returns:__
|
|
314
314
|
|
315
315
|
--
|
316
316
|
|
317
|
-
##### [appium_debug](https://github.com/appium/ruby_lib/blob/
|
317
|
+
##### [appium_debug](https://github.com/appium/ruby_lib/blob/94f3348a8fbec111a7a958063d3a2e643051b2e9/lib/appium_lib/driver.rb#L298)
|
318
318
|
|
319
319
|
> def appium_debug
|
320
320
|
|
@@ -322,7 +322,7 @@ Boolean debug mode for the Appium Ruby bindings
|
|
322
322
|
|
323
323
|
--
|
324
324
|
|
325
|
-
##### [appium_debug=](https://github.com/appium/ruby_lib/blob/
|
325
|
+
##### [appium_debug=](https://github.com/appium/ruby_lib/blob/94f3348a8fbec111a7a958063d3a2e643051b2e9/lib/appium_lib/driver.rb#L298)
|
326
326
|
|
327
327
|
> def appium_debug=(value)
|
328
328
|
|
@@ -330,7 +330,7 @@ Boolean debug mode for the Appium Ruby bindings
|
|
330
330
|
|
331
331
|
--
|
332
332
|
|
333
|
-
##### [listener](https://github.com/appium/ruby_lib/blob/
|
333
|
+
##### [listener](https://github.com/appium/ruby_lib/blob/94f3348a8fbec111a7a958063d3a2e643051b2e9/lib/appium_lib/driver.rb#L300)
|
334
334
|
|
335
335
|
> def listener
|
336
336
|
|
@@ -338,7 +338,7 @@ instance of AbstractEventListener for logging support
|
|
338
338
|
|
339
339
|
--
|
340
340
|
|
341
|
-
##### [listener=](https://github.com/appium/ruby_lib/blob/
|
341
|
+
##### [listener=](https://github.com/appium/ruby_lib/blob/94f3348a8fbec111a7a958063d3a2e643051b2e9/lib/appium_lib/driver.rb#L300)
|
342
342
|
|
343
343
|
> def listener=(value)
|
344
344
|
|
@@ -346,7 +346,7 @@ instance of AbstractEventListener for logging support
|
|
346
346
|
|
347
347
|
--
|
348
348
|
|
349
|
-
##### [driver](https://github.com/appium/ruby_lib/blob/
|
349
|
+
##### [driver](https://github.com/appium/ruby_lib/blob/94f3348a8fbec111a7a958063d3a2e643051b2e9/lib/appium_lib/driver.rb#L303)
|
350
350
|
|
351
351
|
> def driver
|
352
352
|
|
@@ -358,7 +358,7 @@ __Returns:__
|
|
358
358
|
|
359
359
|
--
|
360
360
|
|
361
|
-
##### [http_client](https://github.com/appium/ruby_lib/blob/
|
361
|
+
##### [http_client](https://github.com/appium/ruby_lib/blob/94f3348a8fbec111a7a958063d3a2e643051b2e9/lib/appium_lib/driver.rb#L306)
|
362
362
|
|
363
363
|
> def http_client
|
364
364
|
|
@@ -370,26 +370,39 @@ __Returns:__
|
|
370
370
|
|
371
371
|
--
|
372
372
|
|
373
|
-
##### [
|
373
|
+
##### [appium_wait_timeout](https://github.com/appium/ruby_lib/blob/94f3348a8fbec111a7a958063d3a2e643051b2e9/lib/appium_lib/driver.rb#L311)
|
374
374
|
|
375
|
-
> def
|
375
|
+
> def appium_wait_timeout
|
376
376
|
|
377
|
-
|
377
|
+
Return a time wait timeout
|
378
|
+
Wait time for ::Appium::Common.wait or ::Appium::Common.wait_true.
|
379
|
+
Provide Appium::Drive like { appium_lib: { wait_timeout: 20 } }
|
378
380
|
|
379
|
-
|
380
|
-
require 'rubygems'
|
381
|
-
require 'appium_lib'
|
381
|
+
__Returns:__
|
382
382
|
|
383
|
-
|
383
|
+
[Integer]
|
384
384
|
|
385
|
-
|
386
|
-
opts = { caps: { platformName: :ios, app: '/path/to/MyiOS.app' } }
|
387
|
-
Appium::Driver.new(opts).start_driver
|
385
|
+
--
|
388
386
|
|
389
|
-
#
|
390
|
-
|
391
|
-
|
392
|
-
|
387
|
+
##### [appium_wait_interval](https://github.com/appium/ruby_lib/blob/94f3348a8fbec111a7a958063d3a2e643051b2e9/lib/appium_lib/driver.rb#L316)
|
388
|
+
|
389
|
+
> def appium_wait_interval
|
390
|
+
|
391
|
+
Return a time wait timeout
|
392
|
+
Wait interval time for ::Appium::Common.wait or ::Appium::Common.wait_true.
|
393
|
+
Provide Appium::Drive like { appium_lib: { wait_interval: 20 } }
|
394
|
+
|
395
|
+
__Returns:__
|
396
|
+
|
397
|
+
[Integer]
|
398
|
+
|
399
|
+
--
|
400
|
+
|
401
|
+
##### [initialize](https://github.com/appium/ruby_lib/blob/94f3348a8fbec111a7a958063d3a2e643051b2e9/lib/appium_lib/driver.rb#L356)
|
402
|
+
|
403
|
+
> def initialize(opts = {})
|
404
|
+
|
405
|
+
Creates a new driver
|
393
406
|
|
394
407
|
__Parameters:__
|
395
408
|
|
@@ -401,7 +414,7 @@ __Returns:__
|
|
401
414
|
|
402
415
|
--
|
403
416
|
|
404
|
-
##### [driver_attributes](https://github.com/appium/ruby_lib/blob/
|
417
|
+
##### [driver_attributes](https://github.com/appium/ruby_lib/blob/94f3348a8fbec111a7a958063d3a2e643051b2e9/lib/appium_lib/driver.rb#L431)
|
405
418
|
|
406
419
|
> def driver_attributes
|
407
420
|
|
@@ -409,7 +422,7 @@ Returns a hash of the driver attributes
|
|
409
422
|
|
410
423
|
--
|
411
424
|
|
412
|
-
##### [device_is_android?](https://github.com/appium/ruby_lib/blob/
|
425
|
+
##### [device_is_android?](https://github.com/appium/ruby_lib/blob/94f3348a8fbec111a7a958063d3a2e643051b2e9/lib/appium_lib/driver.rb#L455)
|
413
426
|
|
414
427
|
> def device_is_android?
|
415
428
|
|
@@ -421,7 +434,7 @@ __Returns:__
|
|
421
434
|
|
422
435
|
--
|
423
436
|
|
424
|
-
##### [automation_name_is_xcuitest?](https://github.com/appium/ruby_lib/blob/
|
437
|
+
##### [automation_name_is_xcuitest?](https://github.com/appium/ruby_lib/blob/94f3348a8fbec111a7a958063d3a2e643051b2e9/lib/appium_lib/driver.rb#L461)
|
425
438
|
|
426
439
|
> def automation_name_is_xcuitest?
|
427
440
|
|
@@ -433,7 +446,7 @@ __Returns:__
|
|
433
446
|
|
434
447
|
--
|
435
448
|
|
436
|
-
##### [check_server_version_xcuitest](https://github.com/appium/ruby_lib/blob/
|
449
|
+
##### [check_server_version_xcuitest](https://github.com/appium/ruby_lib/blob/94f3348a8fbec111a7a958063d3a2e643051b2e9/lib/appium_lib/driver.rb#L468)
|
437
450
|
|
438
451
|
> def check_server_version_xcuitest
|
439
452
|
|
@@ -446,7 +459,7 @@ __Returns:__
|
|
446
459
|
|
447
460
|
--
|
448
461
|
|
449
|
-
##### [appium_client_version](https://github.com/appium/ruby_lib/blob/
|
462
|
+
##### [appium_client_version](https://github.com/appium/ruby_lib/blob/94f3348a8fbec111a7a958063d3a2e643051b2e9/lib/appium_lib/driver.rb#L500)
|
450
463
|
|
451
464
|
> def appium_client_version
|
452
465
|
|
@@ -464,7 +477,7 @@ __Returns:__
|
|
464
477
|
|
465
478
|
--
|
466
479
|
|
467
|
-
##### [absolute_app_path](https://github.com/appium/ruby_lib/blob/
|
480
|
+
##### [absolute_app_path](https://github.com/appium/ruby_lib/blob/94f3348a8fbec111a7a958063d3a2e643051b2e9/lib/appium_lib/driver.rb#L512)
|
468
481
|
|
469
482
|
> def self.absolute_app_path(opts)
|
470
483
|
|
@@ -481,7 +494,7 @@ __Returns:__
|
|
481
494
|
|
482
495
|
--
|
483
496
|
|
484
|
-
##### [server_url](https://github.com/appium/ruby_lib/blob/
|
497
|
+
##### [server_url](https://github.com/appium/ruby_lib/blob/94f3348a8fbec111a7a958063d3a2e643051b2e9/lib/appium_lib/driver.rb#L545)
|
485
498
|
|
486
499
|
> def server_url
|
487
500
|
|
@@ -493,7 +506,7 @@ __Returns:__
|
|
493
506
|
|
494
507
|
--
|
495
508
|
|
496
|
-
##### [restart](https://github.com/appium/ruby_lib/blob/
|
509
|
+
##### [restart](https://github.com/appium/ruby_lib/blob/94f3348a8fbec111a7a958063d3a2e643051b2e9/lib/appium_lib/driver.rb#L556)
|
497
510
|
|
498
511
|
> def restart
|
499
512
|
|
@@ -505,7 +518,7 @@ __Returns:__
|
|
505
518
|
|
506
519
|
--
|
507
520
|
|
508
|
-
##### [screenshot](https://github.com/appium/ruby_lib/blob/
|
521
|
+
##### [screenshot](https://github.com/appium/ruby_lib/blob/94f3348a8fbec111a7a958063d3a2e643051b2e9/lib/appium_lib/driver.rb#L567)
|
509
522
|
|
510
523
|
> def screenshot(png_save_path)
|
511
524
|
|
@@ -523,7 +536,7 @@ __Returns:__
|
|
523
536
|
|
524
537
|
--
|
525
538
|
|
526
|
-
##### [driver_quit](https://github.com/appium/ruby_lib/blob/
|
539
|
+
##### [driver_quit](https://github.com/appium/ruby_lib/blob/94f3348a8fbec111a7a958063d3a2e643051b2e9/lib/appium_lib/driver.rb#L574)
|
527
540
|
|
528
541
|
> def driver_quit
|
529
542
|
|
@@ -535,7 +548,7 @@ __Returns:__
|
|
535
548
|
|
536
549
|
--
|
537
550
|
|
538
|
-
##### [start_driver](https://github.com/appium/ruby_lib/blob/
|
551
|
+
##### [start_driver](https://github.com/appium/ruby_lib/blob/94f3348a8fbec111a7a958063d3a2e643051b2e9/lib/appium_lib/driver.rb#L584)
|
539
552
|
|
540
553
|
> def start_driver
|
541
554
|
|
@@ -547,7 +560,7 @@ __Returns:__
|
|
547
560
|
|
548
561
|
--
|
549
562
|
|
550
|
-
##### [no_wait](https://github.com/appium/ruby_lib/blob/
|
563
|
+
##### [no_wait](https://github.com/appium/ruby_lib/blob/94f3348a8fbec111a7a958063d3a2e643051b2e9/lib/appium_lib/driver.rb#L622)
|
551
564
|
|
552
565
|
> def no_wait
|
553
566
|
|
@@ -555,7 +568,7 @@ Set implicit wait to zero.
|
|
555
568
|
|
556
569
|
--
|
557
570
|
|
558
|
-
##### [set_wait](https://github.com/appium/ruby_lib/blob/
|
571
|
+
##### [set_wait](https://github.com/appium/ruby_lib/blob/94f3348a8fbec111a7a958063d3a2e643051b2e9/lib/appium_lib/driver.rb#L636)
|
559
572
|
|
560
573
|
> def set_wait(timeout = nil)
|
561
574
|
|
@@ -577,7 +590,7 @@ __Returns:__
|
|
577
590
|
|
578
591
|
--
|
579
592
|
|
580
|
-
##### [exists](https://github.com/appium/ruby_lib/blob/
|
593
|
+
##### [exists](https://github.com/appium/ruby_lib/blob/94f3348a8fbec111a7a958063d3a2e643051b2e9/lib/appium_lib/driver.rb#L653)
|
581
594
|
|
582
595
|
> def exists(pre_check = 0, post_check = @default_wait)
|
583
596
|
|
@@ -589,13 +602,11 @@ exists { button('sign in') } ? puts('true') : puts('false')
|
|
589
602
|
|
590
603
|
__Parameters:__
|
591
604
|
|
592
|
-
[Integer] pre_check -
|
593
|
-
wait to before checking
|
594
|
-
|
595
|
-
[Integer] post_check - the amount in seconds to set the
|
596
|
-
wait to after checking existance
|
605
|
+
[Integer] pre_check - The amount in seconds to set the
|
606
|
+
wait to before checking existence
|
597
607
|
|
598
|
-
[
|
608
|
+
[Integer] post_check - The amount in seconds to set the
|
609
|
+
wait to after checking existence
|
599
610
|
|
600
611
|
__Returns:__
|
601
612
|
|
@@ -603,7 +614,7 @@ __Returns:__
|
|
603
614
|
|
604
615
|
--
|
605
616
|
|
606
|
-
##### [execute_script](https://github.com/appium/ruby_lib/blob/
|
617
|
+
##### [execute_script](https://github.com/appium/ruby_lib/blob/94f3348a8fbec111a7a958063d3a2e643051b2e9/lib/appium_lib/driver.rb#L677)
|
607
618
|
|
608
619
|
> def execute_script(script, *args)
|
609
620
|
|
@@ -611,9 +622,9 @@ The same as @driver.execute_script
|
|
611
622
|
|
612
623
|
__Parameters:__
|
613
624
|
|
614
|
-
[String] script -
|
625
|
+
[String] script - The script to execute
|
615
626
|
|
616
|
-
[*args] args -
|
627
|
+
[*args] args - The args to pass to the script
|
617
628
|
|
618
629
|
__Returns:__
|
619
630
|
|
@@ -621,7 +632,7 @@ __Returns:__
|
|
621
632
|
|
622
633
|
--
|
623
634
|
|
624
|
-
##### [find_elements](https://github.com/appium/ruby_lib/blob/
|
635
|
+
##### [find_elements](https://github.com/appium/ruby_lib/blob/94f3348a8fbec111a7a958063d3a2e643051b2e9/lib/appium_lib/driver.rb#L685)
|
625
636
|
|
626
637
|
> def find_elements(*args)
|
627
638
|
|
@@ -629,7 +640,7 @@ Calls @driver.find_elements
|
|
629
640
|
|
630
641
|
__Parameters:__
|
631
642
|
|
632
|
-
[*args] args -
|
643
|
+
[*args] args - The args to use
|
633
644
|
|
634
645
|
__Returns:__
|
635
646
|
|
@@ -637,7 +648,7 @@ __Returns:__
|
|
637
648
|
|
638
649
|
--
|
639
650
|
|
640
|
-
##### [find_element](https://github.com/appium/ruby_lib/blob/
|
651
|
+
##### [find_element](https://github.com/appium/ruby_lib/blob/94f3348a8fbec111a7a958063d3a2e643051b2e9/lib/appium_lib/driver.rb#L693)
|
641
652
|
|
642
653
|
> def find_element(*args)
|
643
654
|
|
@@ -645,7 +656,7 @@ Calls @driver.find_elements
|
|
645
656
|
|
646
657
|
__Parameters:__
|
647
658
|
|
648
|
-
[*args] args -
|
659
|
+
[*args] args - The args to use
|
649
660
|
|
650
661
|
__Returns:__
|
651
662
|
|
@@ -653,7 +664,7 @@ __Returns:__
|
|
653
664
|
|
654
665
|
--
|
655
666
|
|
656
|
-
##### [set_location](https://github.com/appium/ruby_lib/blob/
|
667
|
+
##### [set_location](https://github.com/appium/ruby_lib/blob/94f3348a8fbec111a7a958063d3a2e643051b2e9/lib/appium_lib/driver.rb#L706)
|
657
668
|
|
658
669
|
> def set_location(opts = {})
|
659
670
|
|
@@ -669,7 +680,7 @@ __Returns:__
|
|
669
680
|
|
670
681
|
--
|
671
682
|
|
672
|
-
##### [x](https://github.com/appium/ruby_lib/blob/
|
683
|
+
##### [x](https://github.com/appium/ruby_lib/blob/94f3348a8fbec111a7a958063d3a2e643051b2e9/lib/appium_lib/driver.rb#L716)
|
673
684
|
|
674
685
|
> def x
|
675
686
|
|
@@ -682,7 +693,7 @@ __Returns:__
|
|
682
693
|
|
683
694
|
--
|
684
695
|
|
685
|
-
##### [set_automation_name_if_nil](https://github.com/appium/ruby_lib/blob/
|
696
|
+
##### [set_automation_name_if_nil](https://github.com/appium/ruby_lib/blob/94f3348a8fbec111a7a958063d3a2e643051b2e9/lib/appium_lib/driver.rb#L725)
|
686
697
|
|
687
698
|
> def set_automation_name_if_nil
|
688
699
|
|
@@ -691,7 +702,7 @@ Since @automation_name is set only client side before start_driver is called.
|
|
691
702
|
|
692
703
|
--
|
693
704
|
|
694
|
-
##### [logger=](https://github.com/appium/ruby_lib/blob/
|
705
|
+
##### [logger=](https://github.com/appium/ruby_lib/blob/94f3348a8fbec111a7a958063d3a2e643051b2e9/lib/appium_lib/logger.rb#L13)
|
695
706
|
|
696
707
|
> def logger=(value)
|
697
708
|
|
@@ -703,7 +714,7 @@ __Parameters:__
|
|
703
714
|
|
704
715
|
--
|
705
716
|
|
706
|
-
##### [logger](https://github.com/appium/ruby_lib/blob/
|
717
|
+
##### [logger](https://github.com/appium/ruby_lib/blob/94f3348a8fbec111a7a958063d3a2e643051b2e9/lib/appium_lib/logger.rb#L17)
|
707
718
|
|
708
719
|
> def logger
|
709
720
|
|
@@ -711,7 +722,7 @@ __Parameters:__
|
|
711
722
|
|
712
723
|
--
|
713
724
|
|
714
|
-
##### [app_strings](https://github.com/appium/ruby_lib/blob/
|
725
|
+
##### [app_strings](https://github.com/appium/ruby_lib/blob/94f3348a8fbec111a7a958063d3a2e643051b2e9/lib/appium_lib/device/device.rb#L7)
|
715
726
|
|
716
727
|
> def app_strings
|
717
728
|
|
@@ -722,7 +733,7 @@ app_strings #=> "TransitionsTitle"=>"Transitions", "WebTitle"=>"Web"
|
|
722
733
|
|
723
734
|
--
|
724
735
|
|
725
|
-
##### [background_app](https://github.com/appium/ruby_lib/blob/
|
736
|
+
##### [background_app](https://github.com/appium/ruby_lib/blob/94f3348a8fbec111a7a958063d3a2e643051b2e9/lib/appium_lib/device/device.rb#L13)
|
726
737
|
|
727
738
|
> def background_app
|
728
739
|
|
@@ -731,7 +742,7 @@ This is a blocking application
|
|
731
742
|
|
732
743
|
--
|
733
744
|
|
734
|
-
##### [current_activity](https://github.com/appium/ruby_lib/blob/
|
745
|
+
##### [current_activity](https://github.com/appium/ruby_lib/blob/94f3348a8fbec111a7a958063d3a2e643051b2e9/lib/appium_lib/device/device.rb#L18)
|
735
746
|
|
736
747
|
> def current_activity
|
737
748
|
|
@@ -739,7 +750,7 @@ This is a blocking application
|
|
739
750
|
|
740
751
|
--
|
741
752
|
|
742
|
-
##### [launch_app](https://github.com/appium/ruby_lib/blob/
|
753
|
+
##### [launch_app](https://github.com/appium/ruby_lib/blob/94f3348a8fbec111a7a958063d3a2e643051b2e9/lib/appium_lib/device/device.rb#L20)
|
743
754
|
|
744
755
|
> def launch_app
|
745
756
|
|
@@ -747,7 +758,7 @@ Start the simulator and application configured with desired capabilities
|
|
747
758
|
|
748
759
|
--
|
749
760
|
|
750
|
-
##### [reset](https://github.com/appium/ruby_lib/blob/
|
761
|
+
##### [reset](https://github.com/appium/ruby_lib/blob/94f3348a8fbec111a7a958063d3a2e643051b2e9/lib/appium_lib/device/device.rb#L23)
|
751
762
|
|
752
763
|
> def reset
|
753
764
|
|
@@ -755,7 +766,7 @@ Reset the device, relaunching the application.
|
|
755
766
|
|
756
767
|
--
|
757
768
|
|
758
|
-
##### [shake](https://github.com/appium/ruby_lib/blob/
|
769
|
+
##### [shake](https://github.com/appium/ruby_lib/blob/94f3348a8fbec111a7a958063d3a2e643051b2e9/lib/appium_lib/device/device.rb#L26)
|
759
770
|
|
760
771
|
> def shake
|
761
772
|
|
@@ -763,7 +774,7 @@ Cause the device to shake
|
|
763
774
|
|
764
775
|
--
|
765
776
|
|
766
|
-
##### [toggle_flight_mode](https://github.com/appium/ruby_lib/blob/
|
777
|
+
##### [toggle_flight_mode](https://github.com/appium/ruby_lib/blob/94f3348a8fbec111a7a958063d3a2e643051b2e9/lib/appium_lib/device/device.rb#L29)
|
767
778
|
|
768
779
|
> def toggle_flight_mode
|
769
780
|
|
@@ -771,7 +782,7 @@ Toggle flight mode on or off
|
|
771
782
|
|
772
783
|
--
|
773
784
|
|
774
|
-
##### [device_locked?](https://github.com/appium/ruby_lib/blob/
|
785
|
+
##### [device_locked?](https://github.com/appium/ruby_lib/blob/94f3348a8fbec111a7a958063d3a2e643051b2e9/lib/appium_lib/device/device.rb#L32)
|
775
786
|
|
776
787
|
> def device_locked?
|
777
788
|
|
@@ -779,7 +790,7 @@ Toggle flight mode on or off
|
|
779
790
|
|
780
791
|
--
|
781
792
|
|
782
|
-
##### [hide_keyboard](https://github.com/appium/ruby_lib/blob/
|
793
|
+
##### [hide_keyboard](https://github.com/appium/ruby_lib/blob/94f3348a8fbec111a7a958063d3a2e643051b2e9/lib/appium_lib/device/device.rb#L34)
|
783
794
|
|
784
795
|
> def hide_keyboard
|
785
796
|
|
@@ -787,12 +798,12 @@ Hide the onscreen keyboard
|
|
787
798
|
|
788
799
|
__Parameters:__
|
789
800
|
|
790
|
-
[String] close_key -
|
801
|
+
[String] close_key - The name of the key which closes the keyboard.
|
791
802
|
Defaults to 'Done'.
|
792
803
|
|
793
804
|
--
|
794
805
|
|
795
|
-
##### [press_keycode](https://github.com/appium/ruby_lib/blob/
|
806
|
+
##### [press_keycode](https://github.com/appium/ruby_lib/blob/94f3348a8fbec111a7a958063d3a2e643051b2e9/lib/appium_lib/device/device.rb#L43)
|
796
807
|
|
797
808
|
> def press_keycode
|
798
809
|
|
@@ -807,7 +818,7 @@ __Parameters:__
|
|
807
818
|
|
808
819
|
--
|
809
820
|
|
810
|
-
##### [long_press_keycode](https://github.com/appium/ruby_lib/blob/
|
821
|
+
##### [long_press_keycode](https://github.com/appium/ruby_lib/blob/94f3348a8fbec111a7a958063d3a2e643051b2e9/lib/appium_lib/device/device.rb#L49)
|
811
822
|
|
812
823
|
> def long_press_keycode
|
813
824
|
|
@@ -822,7 +833,7 @@ __Parameters:__
|
|
822
833
|
|
823
834
|
--
|
824
835
|
|
825
|
-
##### [push_file](https://github.com/appium/ruby_lib/blob/
|
836
|
+
##### [push_file](https://github.com/appium/ruby_lib/blob/94f3348a8fbec111a7a958063d3a2e643051b2e9/lib/appium_lib/device/device.rb#L55)
|
826
837
|
|
827
838
|
> def push_file
|
828
839
|
|
@@ -836,7 +847,7 @@ __Parameters:__
|
|
836
847
|
|
837
848
|
--
|
838
849
|
|
839
|
-
##### [pull_file](https://github.com/appium/ruby_lib/blob/
|
850
|
+
##### [pull_file](https://github.com/appium/ruby_lib/blob/94f3348a8fbec111a7a958063d3a2e643051b2e9/lib/appium_lib/device/device.rb#L60)
|
840
851
|
|
841
852
|
> def pull_file
|
842
853
|
|
@@ -853,7 +864,7 @@ __Parameters:__
|
|
853
864
|
|
854
865
|
--
|
855
866
|
|
856
|
-
##### [pull_folder](https://github.com/appium/ruby_lib/blob/
|
867
|
+
##### [pull_folder](https://github.com/appium/ruby_lib/blob/94f3348a8fbec111a7a958063d3a2e643051b2e9/lib/appium_lib/device/device.rb#L70)
|
857
868
|
|
858
869
|
> def pull_folder
|
859
870
|
|
@@ -868,7 +879,7 @@ __Parameters:__
|
|
868
879
|
|
869
880
|
--
|
870
881
|
|
871
|
-
##### [touch_id](https://github.com/appium/ruby_lib/blob/
|
882
|
+
##### [touch_id](https://github.com/appium/ruby_lib/blob/94f3348a8fbec111a7a958063d3a2e643051b2e9/lib/appium_lib/device/device.rb#L78)
|
872
883
|
|
873
884
|
> def touch_id
|
874
885
|
|
@@ -885,7 +896,7 @@ Defaults to true.
|
|
885
896
|
|
886
897
|
--
|
887
898
|
|
888
|
-
##### [end_coverage](https://github.com/appium/ruby_lib/blob/
|
899
|
+
##### [end_coverage](https://github.com/appium/ruby_lib/blob/94f3348a8fbec111a7a958063d3a2e643051b2e9/lib/appium_lib/device/device.rb#L87)
|
889
900
|
|
890
901
|
> def end_coverage
|
891
902
|
|
@@ -899,7 +910,7 @@ __Parameters:__
|
|
899
910
|
|
900
911
|
--
|
901
912
|
|
902
|
-
##### [get_settings](https://github.com/appium/ruby_lib/blob/
|
913
|
+
##### [get_settings](https://github.com/appium/ruby_lib/blob/94f3348a8fbec111a7a958063d3a2e643051b2e9/lib/appium_lib/device/device.rb#L92)
|
903
914
|
|
904
915
|
> def get_settings
|
905
916
|
|
@@ -907,7 +918,61 @@ Get appium Settings for current test session
|
|
907
918
|
|
908
919
|
--
|
909
920
|
|
910
|
-
##### [
|
921
|
+
##### [update_settings](https://github.com/appium/ruby_lib/blob/94f3348a8fbec111a7a958063d3a2e643051b2e9/lib/appium_lib/device/device.rb#L95)
|
922
|
+
|
923
|
+
> def update_settings
|
924
|
+
|
925
|
+
Update appium Settings for current test session
|
926
|
+
|
927
|
+
__Parameters:__
|
928
|
+
|
929
|
+
[Hash] settings - Settings to update, keys are settings, values to value to set each setting to
|
930
|
+
|
931
|
+
--
|
932
|
+
|
933
|
+
##### [start_activity](https://github.com/appium/ruby_lib/blob/94f3348a8fbec111a7a958063d3a2e643051b2e9/lib/appium_lib/device/device.rb#L99)
|
934
|
+
|
935
|
+
> def start_activity
|
936
|
+
|
937
|
+
Start a new activity within the current app or launch a new app and start the target activity.
|
938
|
+
|
939
|
+
Android only.
|
940
|
+
```ruby
|
941
|
+
start_activity app_package: 'io.appium.android.apis',
|
942
|
+
app_activity: '.accessibility.AccessibilityNodeProviderActivity'
|
943
|
+
```
|
944
|
+
|
945
|
+
--
|
946
|
+
|
947
|
+
##### [get_network_connection](https://github.com/appium/ruby_lib/blob/94f3348a8fbec111a7a958063d3a2e643051b2e9/lib/appium_lib/device/device.rb#L113)
|
948
|
+
|
949
|
+
> def get_network_connection
|
950
|
+
|
951
|
+
Get the device network connection current status
|
952
|
+
See set_network_connection method for return value
|
953
|
+
|
954
|
+
--
|
955
|
+
|
956
|
+
##### [set_network_connection](https://github.com/appium/ruby_lib/blob/94f3348a8fbec111a7a958063d3a2e643051b2e9/lib/appium_lib/device/device.rb#L117)
|
957
|
+
|
958
|
+
> def set_network_connection
|
959
|
+
|
960
|
+
Set the device network connection mode
|
961
|
+
Value (Alias) | Data | Wifi | Airplane Mode
|
962
|
+
-------------------------------------------------
|
963
|
+
1 (Airplane Mode) | 0 | 0 | 1
|
964
|
+
6 (All network on) | 1 | 1 | 0
|
965
|
+
4 (Data only) | 1 | 0 | 0
|
966
|
+
2 (Wifi only) | 0 | 1 | 0
|
967
|
+
0 (None) | 0 | 0 | 0
|
968
|
+
|
969
|
+
__Parameters:__
|
970
|
+
|
971
|
+
[String] path - Bit mask that represent the network mode
|
972
|
+
|
973
|
+
--
|
974
|
+
|
975
|
+
##### [extend_search_contexts](https://github.com/appium/ruby_lib/blob/94f3348a8fbec111a7a958063d3a2e643051b2e9/lib/appium_lib/device/device.rb#L360)
|
911
976
|
|
912
977
|
> def extend_search_contexts
|
913
978
|
|
@@ -915,7 +980,7 @@ Get appium Settings for current test session
|
|
915
980
|
|
916
981
|
--
|
917
982
|
|
918
|
-
##### [find_element](https://github.com/appium/ruby_lib/blob/
|
983
|
+
##### [find_element](https://github.com/appium/ruby_lib/blob/94f3348a8fbec111a7a958063d3a2e643051b2e9/lib/appium_lib/device/device.rb#L360)
|
919
984
|
|
920
985
|
> def find_element
|
921
986
|
|
@@ -923,7 +988,7 @@ Get appium Settings for current test session
|
|
923
988
|
|
924
989
|
--
|
925
990
|
|
926
|
-
##### [find_elements](https://github.com/appium/ruby_lib/blob/
|
991
|
+
##### [find_elements](https://github.com/appium/ruby_lib/blob/94f3348a8fbec111a7a958063d3a2e643051b2e9/lib/appium_lib/device/device.rb#L360)
|
927
992
|
|
928
993
|
> def find_elements
|
929
994
|
|
@@ -935,7 +1000,7 @@ find_element/s with their accessibility_id
|
|
935
1000
|
|
936
1001
|
--
|
937
1002
|
|
938
|
-
##### [add_touch_actions](https://github.com/appium/ruby_lib/blob/
|
1003
|
+
##### [add_touch_actions](https://github.com/appium/ruby_lib/blob/94f3348a8fbec111a7a958063d3a2e643051b2e9/lib/appium_lib/device/device.rb#L391)
|
939
1004
|
|
940
1005
|
> def add_touch_actions
|
941
1006
|
|
@@ -943,7 +1008,7 @@ find_element/s with their accessibility_id
|
|
943
1008
|
|
944
1009
|
--
|
945
1010
|
|
946
|
-
##### [add_ime_actions](https://github.com/appium/ruby_lib/blob/
|
1011
|
+
##### [add_ime_actions](https://github.com/appium/ruby_lib/blob/94f3348a8fbec111a7a958063d3a2e643051b2e9/lib/appium_lib/device/device.rb#L414)
|
947
1012
|
|
948
1013
|
> def add_ime_actions
|
949
1014
|
|
@@ -951,7 +1016,7 @@ find_element/s with their accessibility_id
|
|
951
1016
|
|
952
1017
|
--
|
953
1018
|
|
954
|
-
##### [set_context](https://github.com/appium/ruby_lib/blob/
|
1019
|
+
##### [set_context](https://github.com/appium/ruby_lib/blob/94f3348a8fbec111a7a958063d3a2e643051b2e9/lib/appium_lib/device/device.rb#L489)
|
955
1020
|
|
956
1021
|
> def set_context
|
957
1022
|
|
@@ -966,7 +1031,7 @@ __Parameters:__
|
|
966
1031
|
|
967
1032
|
--
|
968
1033
|
|
969
|
-
##### [current_context](https://github.com/appium/ruby_lib/blob/
|
1034
|
+
##### [current_context](https://github.com/appium/ruby_lib/blob/94f3348a8fbec111a7a958063d3a2e643051b2e9/lib/appium_lib/device/device.rb#L497)
|
970
1035
|
|
971
1036
|
> def current_context
|
972
1037
|
|
@@ -978,7 +1043,7 @@ __Returns:__
|
|
978
1043
|
|
979
1044
|
--
|
980
1045
|
|
981
|
-
##### [available_contexts](https://github.com/appium/ruby_lib/blob/
|
1046
|
+
##### [available_contexts](https://github.com/appium/ruby_lib/blob/94f3348a8fbec111a7a958063d3a2e643051b2e9/lib/appium_lib/device/device.rb#L500)
|
982
1047
|
|
983
1048
|
> def available_contexts
|
984
1049
|
|
@@ -990,7 +1055,7 @@ __Returns:__
|
|
990
1055
|
|
991
1056
|
--
|
992
1057
|
|
993
|
-
##### [within_context](https://github.com/appium/ruby_lib/blob/
|
1058
|
+
##### [within_context](https://github.com/appium/ruby_lib/blob/94f3348a8fbec111a7a958063d3a2e643051b2e9/lib/appium_lib/device/device.rb#L510)
|
994
1059
|
|
995
1060
|
> def within_context(context)
|
996
1061
|
|
@@ -1006,7 +1071,7 @@ __Parameters:__
|
|
1006
1071
|
|
1007
1072
|
--
|
1008
1073
|
|
1009
|
-
##### [switch_to_default_context](https://github.com/appium/ruby_lib/blob/
|
1074
|
+
##### [switch_to_default_context](https://github.com/appium/ruby_lib/blob/94f3348a8fbec111a7a958063d3a2e643051b2e9/lib/appium_lib/device/device.rb#L518)
|
1010
1075
|
|
1011
1076
|
> def switch_to_default_context
|
1012
1077
|
|
@@ -1014,7 +1079,7 @@ Change to the default context. This is equivalent to `set_context nil`.
|
|
1014
1079
|
|
1015
1080
|
--
|
1016
1081
|
|
1017
|
-
##### [pinch](https://github.com/appium/ruby_lib/blob/
|
1082
|
+
##### [pinch](https://github.com/appium/ruby_lib/blob/94f3348a8fbec111a7a958063d3a2e643051b2e9/lib/appium_lib/device/multi_touch.rb#L28)
|
1018
1083
|
|
1019
1084
|
> def pinch(percentage = 25, auto_perform = true)
|
1020
1085
|
|
@@ -1033,7 +1098,7 @@ __Parameters:__
|
|
1033
1098
|
|
1034
1099
|
--
|
1035
1100
|
|
1036
|
-
##### [zoom](https://github.com/appium/ruby_lib/blob/
|
1101
|
+
##### [zoom](https://github.com/appium/ruby_lib/blob/94f3348a8fbec111a7a958063d3a2e643051b2e9/lib/appium_lib/device/multi_touch.rb#L57)
|
1037
1102
|
|
1038
1103
|
> def zoom(percentage = 200, auto_perform = true)
|
1039
1104
|
|
@@ -1052,7 +1117,55 @@ __Parameters:__
|
|
1052
1117
|
|
1053
1118
|
--
|
1054
1119
|
|
1055
|
-
##### [
|
1120
|
+
##### [pinch_for_xcuitest](https://github.com/appium/ruby_lib/blob/94f3348a8fbec111a7a958063d3a2e643051b2e9/lib/appium_lib/device/multi_touch.rb#L79)
|
1121
|
+
|
1122
|
+
> def pinch_for_xcuitest(rate)
|
1123
|
+
|
1124
|
+
|
1125
|
+
|
1126
|
+
--
|
1127
|
+
|
1128
|
+
##### [pinch_android](https://github.com/appium/ruby_lib/blob/94f3348a8fbec111a7a958063d3a2e643051b2e9/lib/appium_lib/device/multi_touch.rb#L94)
|
1129
|
+
|
1130
|
+
> def pinch_android(rate)
|
1131
|
+
|
1132
|
+
|
1133
|
+
|
1134
|
+
--
|
1135
|
+
|
1136
|
+
##### [pinch_ios](https://github.com/appium/ruby_lib/blob/94f3348a8fbec111a7a958063d3a2e643051b2e9/lib/appium_lib/device/multi_touch.rb#L108)
|
1137
|
+
|
1138
|
+
> def pinch_ios(rate)
|
1139
|
+
|
1140
|
+
|
1141
|
+
|
1142
|
+
--
|
1143
|
+
|
1144
|
+
##### [zoom_for_xcuitest](https://github.com/appium/ruby_lib/blob/94f3348a8fbec111a7a958063d3a2e643051b2e9/lib/appium_lib/device/multi_touch.rb#L122)
|
1145
|
+
|
1146
|
+
> def zoom_for_xcuitest(rate)
|
1147
|
+
|
1148
|
+
|
1149
|
+
|
1150
|
+
--
|
1151
|
+
|
1152
|
+
##### [zoom_android](https://github.com/appium/ruby_lib/blob/94f3348a8fbec111a7a958063d3a2e643051b2e9/lib/appium_lib/device/multi_touch.rb#L137)
|
1153
|
+
|
1154
|
+
> def zoom_android(rate)
|
1155
|
+
|
1156
|
+
|
1157
|
+
|
1158
|
+
--
|
1159
|
+
|
1160
|
+
##### [zoom_ios](https://github.com/appium/ruby_lib/blob/94f3348a8fbec111a7a958063d3a2e643051b2e9/lib/appium_lib/device/multi_touch.rb#L151)
|
1161
|
+
|
1162
|
+
> def zoom_ios(rate)
|
1163
|
+
|
1164
|
+
|
1165
|
+
|
1166
|
+
--
|
1167
|
+
|
1168
|
+
##### [initialize](https://github.com/appium/ruby_lib/blob/94f3348a8fbec111a7a958063d3a2e643051b2e9/lib/appium_lib/device/multi_touch.rb#L167)
|
1056
1169
|
|
1057
1170
|
> def initialize
|
1058
1171
|
|
@@ -1064,7 +1177,7 @@ __Returns:__
|
|
1064
1177
|
|
1065
1178
|
--
|
1066
1179
|
|
1067
|
-
##### [add](https://github.com/appium/ruby_lib/blob/
|
1180
|
+
##### [add](https://github.com/appium/ruby_lib/blob/94f3348a8fbec111a7a958063d3a2e643051b2e9/lib/appium_lib/device/multi_touch.rb#L173)
|
1068
1181
|
|
1069
1182
|
> def add(chain)
|
1070
1183
|
|
@@ -1076,7 +1189,7 @@ __Parameters:__
|
|
1076
1189
|
|
1077
1190
|
--
|
1078
1191
|
|
1079
|
-
##### [perform](https://github.com/appium/ruby_lib/blob/
|
1192
|
+
##### [perform](https://github.com/appium/ruby_lib/blob/94f3348a8fbec111a7a958063d3a2e643051b2e9/lib/appium_lib/device/multi_touch.rb#L178)
|
1080
1193
|
|
1081
1194
|
> def perform
|
1082
1195
|
|
@@ -1084,7 +1197,7 @@ Ask Appium to perform the actions
|
|
1084
1197
|
|
1085
1198
|
--
|
1086
1199
|
|
1087
|
-
##### [ACTIONS](https://github.com/appium/ruby_lib/blob/
|
1200
|
+
##### [ACTIONS](https://github.com/appium/ruby_lib/blob/94f3348a8fbec111a7a958063d3a2e643051b2e9/lib/appium_lib/device/touch_actions.rb#L11)
|
1088
1201
|
|
1089
1202
|
> ACTIONS = [:move_to, :long_press, :double_tap, :two_finger_tap, :press, :release, :tap, :wait, :perform].freeze
|
1090
1203
|
|
@@ -1092,7 +1205,7 @@ Ask Appium to perform the actions
|
|
1092
1205
|
|
1093
1206
|
--
|
1094
1207
|
|
1095
|
-
##### [COMPLEX_ACTIONS](https://github.com/appium/ruby_lib/blob/
|
1208
|
+
##### [COMPLEX_ACTIONS](https://github.com/appium/ruby_lib/blob/94f3348a8fbec111a7a958063d3a2e643051b2e9/lib/appium_lib/device/touch_actions.rb#L12)
|
1096
1209
|
|
1097
1210
|
> COMPLEX_ACTIONS = [:swipe].freeze
|
1098
1211
|
|
@@ -1100,7 +1213,7 @@ Ask Appium to perform the actions
|
|
1100
1213
|
|
1101
1214
|
--
|
1102
1215
|
|
1103
|
-
##### [actions](https://github.com/appium/ruby_lib/blob/
|
1216
|
+
##### [actions](https://github.com/appium/ruby_lib/blob/94f3348a8fbec111a7a958063d3a2e643051b2e9/lib/appium_lib/device/touch_actions.rb#L26)
|
1104
1217
|
|
1105
1218
|
> def actions
|
1106
1219
|
|
@@ -1108,7 +1221,7 @@ Returns the value of attribute actions
|
|
1108
1221
|
|
1109
1222
|
--
|
1110
1223
|
|
1111
|
-
##### [initialize](https://github.com/appium/ruby_lib/blob/
|
1224
|
+
##### [initialize](https://github.com/appium/ruby_lib/blob/94f3348a8fbec111a7a958063d3a2e643051b2e9/lib/appium_lib/device/touch_actions.rb#L28)
|
1112
1225
|
|
1113
1226
|
> def initialize
|
1114
1227
|
|
@@ -1120,19 +1233,21 @@ __Returns:__
|
|
1120
1233
|
|
1121
1234
|
--
|
1122
1235
|
|
1123
|
-
##### [move_to](https://github.com/appium/ruby_lib/blob/
|
1236
|
+
##### [move_to](https://github.com/appium/ruby_lib/blob/94f3348a8fbec111a7a958063d3a2e643051b2e9/lib/appium_lib/device/touch_actions.rb#L39)
|
1124
1237
|
|
1125
1238
|
> def move_to(opts)
|
1126
1239
|
|
1127
1240
|
Move to the given co-ordinates.
|
1128
1241
|
|
1242
|
+
`move_to`'s `x` and `y` have two case. One is working as coordinate, the other is working as offset.
|
1243
|
+
|
1129
1244
|
__Parameters:__
|
1130
1245
|
|
1131
1246
|
[Hash] opts - a customizable set of options
|
1132
1247
|
|
1133
1248
|
--
|
1134
1249
|
|
1135
|
-
##### [long_press](https://github.com/appium/ruby_lib/blob/
|
1250
|
+
##### [long_press](https://github.com/appium/ruby_lib/blob/94f3348a8fbec111a7a958063d3a2e643051b2e9/lib/appium_lib/device/touch_actions.rb#L53)
|
1136
1251
|
|
1137
1252
|
> def long_press(opts)
|
1138
1253
|
|
@@ -1153,7 +1268,7 @@ __Parameters:__
|
|
1153
1268
|
|
1154
1269
|
--
|
1155
1270
|
|
1156
|
-
##### [press](https://github.com/appium/ruby_lib/blob/
|
1271
|
+
##### [press](https://github.com/appium/ruby_lib/blob/94f3348a8fbec111a7a958063d3a2e643051b2e9/lib/appium_lib/device/touch_actions.rb#L65)
|
1157
1272
|
|
1158
1273
|
> def press(opts)
|
1159
1274
|
|
@@ -1166,7 +1281,7 @@ __Parameters:__
|
|
1166
1281
|
|
1167
1282
|
--
|
1168
1283
|
|
1169
|
-
##### [release](https://github.com/appium/ruby_lib/blob/
|
1284
|
+
##### [release](https://github.com/appium/ruby_lib/blob/94f3348a8fbec111a7a958063d3a2e643051b2e9/lib/appium_lib/device/touch_actions.rb#L76)
|
1170
1285
|
|
1171
1286
|
> def release(opts = nil)
|
1172
1287
|
|
@@ -1178,7 +1293,7 @@ __Parameters:__
|
|
1178
1293
|
|
1179
1294
|
--
|
1180
1295
|
|
1181
|
-
##### [tap](https://github.com/appium/ruby_lib/blob/
|
1296
|
+
##### [tap](https://github.com/appium/ruby_lib/blob/94f3348a8fbec111a7a958063d3a2e643051b2e9/lib/appium_lib/device/touch_actions.rb#L88)
|
1182
1297
|
|
1183
1298
|
> def tap(opts)
|
1184
1299
|
|
@@ -1191,7 +1306,7 @@ __Parameters:__
|
|
1191
1306
|
|
1192
1307
|
--
|
1193
1308
|
|
1194
|
-
##### [double_tap](https://github.com/appium/ruby_lib/blob/
|
1309
|
+
##### [double_tap](https://github.com/appium/ruby_lib/blob/94f3348a8fbec111a7a958063d3a2e643051b2e9/lib/appium_lib/device/touch_actions.rb#L101)
|
1195
1310
|
|
1196
1311
|
> def double_tap(opts)
|
1197
1312
|
|
@@ -1203,7 +1318,7 @@ __Parameters:__
|
|
1203
1318
|
|
1204
1319
|
--
|
1205
1320
|
|
1206
|
-
##### [two_finger_tap](https://github.com/appium/ruby_lib/blob/
|
1321
|
+
##### [two_finger_tap](https://github.com/appium/ruby_lib/blob/94f3348a8fbec111a7a958063d3a2e643051b2e9/lib/appium_lib/device/touch_actions.rb#L112)
|
1207
1322
|
|
1208
1323
|
> def two_finger_tap(opts)
|
1209
1324
|
|
@@ -1215,7 +1330,7 @@ __Parameters:__
|
|
1215
1330
|
|
1216
1331
|
--
|
1217
1332
|
|
1218
|
-
##### [wait](https://github.com/appium/ruby_lib/blob/
|
1333
|
+
##### [wait](https://github.com/appium/ruby_lib/blob/94f3348a8fbec111a7a958063d3a2e643051b2e9/lib/appium_lib/device/touch_actions.rb#L120)
|
1219
1334
|
|
1220
1335
|
> def wait(milliseconds)
|
1221
1336
|
|
@@ -1227,7 +1342,7 @@ __Parameters:__
|
|
1227
1342
|
|
1228
1343
|
--
|
1229
1344
|
|
1230
|
-
##### [swipe](https://github.com/appium/ruby_lib/blob/
|
1345
|
+
##### [swipe](https://github.com/appium/ruby_lib/blob/94f3348a8fbec111a7a958063d3a2e643051b2e9/lib/appium_lib/device/touch_actions.rb#L143)
|
1231
1346
|
|
1232
1347
|
> def swipe(opts, ele = nil)
|
1233
1348
|
|
@@ -1235,13 +1350,20 @@ Convenience method to peform a swipe.
|
|
1235
1350
|
|
1236
1351
|
Note that iOS 7 simulators have broken swipe.
|
1237
1352
|
|
1353
|
+
For iOS: Use `offset_x` and `offset_y` to define the end point.
|
1354
|
+
|
1355
|
+
For Android: Use `end_x` and `end_y` to define the end point.
|
1356
|
+
|
1357
|
+
If you'd like more details, please read tests and its log samples in
|
1358
|
+
`ios_tests/lib/ios/specs/device/touch_actions.rb` and `ios_tests/lib/ios/specs/device/touch_actions.rb`
|
1359
|
+
|
1238
1360
|
__Parameters:__
|
1239
1361
|
|
1240
1362
|
[Hash] opts - a customizable set of options
|
1241
1363
|
|
1242
1364
|
--
|
1243
1365
|
|
1244
|
-
##### [perform](https://github.com/appium/ruby_lib/blob/
|
1366
|
+
##### [perform](https://github.com/appium/ruby_lib/blob/94f3348a8fbec111a7a958063d3a2e643051b2e9/lib/appium_lib/device/touch_actions.rb#L168)
|
1245
1367
|
|
1246
1368
|
> def perform
|
1247
1369
|
|
@@ -1249,7 +1371,7 @@ Ask the driver to perform all actions in this action chain.
|
|
1249
1371
|
|
1250
1372
|
--
|
1251
1373
|
|
1252
|
-
##### [cancel](https://github.com/appium/ruby_lib/blob/
|
1374
|
+
##### [cancel](https://github.com/appium/ruby_lib/blob/94f3348a8fbec111a7a958063d3a2e643051b2e9/lib/appium_lib/device/touch_actions.rb#L174)
|
1253
1375
|
|
1254
1376
|
> def cancel
|
1255
1377
|
|
@@ -1257,7 +1379,15 @@ Does nothing, currently.
|
|
1257
1379
|
|
1258
1380
|
--
|
1259
1381
|
|
1260
|
-
##### [
|
1382
|
+
##### [swipe_coordinates](https://github.com/appium/ruby_lib/blob/94f3348a8fbec111a7a958063d3a2e643051b2e9/lib/appium_lib/device/touch_actions.rb#L180)
|
1383
|
+
|
1384
|
+
> def swipe_coordinates(end_x: nil, end_y: nil, offset_x: nil, offset_y: nil)
|
1385
|
+
|
1386
|
+
|
1387
|
+
|
1388
|
+
--
|
1389
|
+
|
1390
|
+
##### [chain_method](https://github.com/appium/ruby_lib/blob/94f3348a8fbec111a7a958063d3a2e643051b2e9/lib/appium_lib/device/touch_actions.rb#L198)
|
1261
1391
|
|
1262
1392
|
> def chain_method(method, args = nil)
|
1263
1393
|
|
@@ -1265,7 +1395,7 @@ Does nothing, currently.
|
|
1265
1395
|
|
1266
1396
|
--
|
1267
1397
|
|
1268
|
-
##### [args_with_ele_ref](https://github.com/appium/ruby_lib/blob/
|
1398
|
+
##### [args_with_ele_ref](https://github.com/appium/ruby_lib/blob/94f3348a8fbec111a7a958063d3a2e643051b2e9/lib/appium_lib/device/touch_actions.rb#L204)
|
1269
1399
|
|
1270
1400
|
> def args_with_ele_ref(args)
|
1271
1401
|
|
@@ -1273,7 +1403,7 @@ Does nothing, currently.
|
|
1273
1403
|
|
1274
1404
|
--
|
1275
1405
|
|
1276
|
-
##### [_generic_wait](https://github.com/appium/ruby_lib/blob/
|
1406
|
+
##### [_generic_wait](https://github.com/appium/ruby_lib/blob/94f3348a8fbec111a7a958063d3a2e643051b2e9/lib/appium_lib/common/wait.rb#L9)
|
1277
1407
|
|
1278
1408
|
> def _generic_wait(opts = {})
|
1279
1409
|
|
@@ -1282,7 +1412,7 @@ https://github.com/SeleniumHQ/selenium/blob/cf501dda3f0ed12233de51ce8170c0e8090f
|
|
1282
1412
|
|
1283
1413
|
--
|
1284
1414
|
|
1285
|
-
##### [_process_wait_opts](https://github.com/appium/ruby_lib/blob/
|
1415
|
+
##### [_process_wait_opts](https://github.com/appium/ruby_lib/blob/94f3348a8fbec111a7a958063d3a2e643051b2e9/lib/appium_lib/common/wait.rb#L48)
|
1286
1416
|
|
1287
1417
|
> def _process_wait_opts(opts)
|
1288
1418
|
|
@@ -1290,7 +1420,7 @@ process opts before calling _generic_wait
|
|
1290
1420
|
|
1291
1421
|
--
|
1292
1422
|
|
1293
|
-
##### [wait_true](https://github.com/appium/ruby_lib/blob/
|
1423
|
+
##### [wait_true](https://github.com/appium/ruby_lib/blob/94f3348a8fbec111a7a958063d3a2e643051b2e9/lib/appium_lib/common/wait.rb#L69)
|
1294
1424
|
|
1295
1425
|
> def wait_true(opts = {}, &block)
|
1296
1426
|
|
@@ -1310,7 +1440,7 @@ __Parameters:__
|
|
1310
1440
|
|
1311
1441
|
--
|
1312
1442
|
|
1313
|
-
##### [wait](https://github.com/appium/ruby_lib/blob/
|
1443
|
+
##### [wait](https://github.com/appium/ruby_lib/blob/94f3348a8fbec111a7a958063d3a2e643051b2e9/lib/appium_lib/common/wait.rb#L87)
|
1314
1444
|
|
1315
1445
|
> def wait(opts = {}, &block)
|
1316
1446
|
|
@@ -1328,7 +1458,7 @@ __Parameters:__
|
|
1328
1458
|
|
1329
1459
|
--
|
1330
1460
|
|
1331
|
-
##### [ignore](https://github.com/appium/ruby_lib/blob/
|
1461
|
+
##### [ignore](https://github.com/appium/ruby_lib/blob/94f3348a8fbec111a7a958063d3a2e643051b2e9/lib/appium_lib/common/helper.rb#L24)
|
1332
1462
|
|
1333
1463
|
> def ignore
|
1334
1464
|
|
@@ -1336,7 +1466,7 @@ Return yield and ignore any exceptions.
|
|
1336
1466
|
|
1337
1467
|
--
|
1338
1468
|
|
1339
|
-
##### [back](https://github.com/appium/ruby_lib/blob/
|
1469
|
+
##### [back](https://github.com/appium/ruby_lib/blob/94f3348a8fbec111a7a958063d3a2e643051b2e9/lib/appium_lib/common/helper.rb#L31)
|
1340
1470
|
|
1341
1471
|
> def back
|
1342
1472
|
|
@@ -1348,7 +1478,7 @@ __Returns:__
|
|
1348
1478
|
|
1349
1479
|
--
|
1350
1480
|
|
1351
|
-
##### [session_id](https://github.com/appium/ruby_lib/blob/
|
1481
|
+
##### [session_id](https://github.com/appium/ruby_lib/blob/94f3348a8fbec111a7a958063d3a2e643051b2e9/lib/appium_lib/common/helper.rb#L36)
|
1352
1482
|
|
1353
1483
|
> def session_id
|
1354
1484
|
|
@@ -1356,7 +1486,7 @@ For Sauce Labs reporting. Returns the current session id.
|
|
1356
1486
|
|
1357
1487
|
--
|
1358
1488
|
|
1359
|
-
##### [xpath](https://github.com/appium/ruby_lib/blob/
|
1489
|
+
##### [xpath](https://github.com/appium/ruby_lib/blob/94f3348a8fbec111a7a958063d3a2e643051b2e9/lib/appium_lib/common/helper.rb#L44)
|
1360
1490
|
|
1361
1491
|
> def xpath(xpath_str)
|
1362
1492
|
|
@@ -1372,7 +1502,7 @@ __Returns:__
|
|
1372
1502
|
|
1373
1503
|
--
|
1374
1504
|
|
1375
|
-
##### [xpaths](https://github.com/appium/ruby_lib/blob/
|
1505
|
+
##### [xpaths](https://github.com/appium/ruby_lib/blob/94f3348a8fbec111a7a958063d3a2e643051b2e9/lib/appium_lib/common/helper.rb#L52)
|
1376
1506
|
|
1377
1507
|
> def xpaths(xpath_str)
|
1378
1508
|
|
@@ -1388,7 +1518,7 @@ __Returns:__
|
|
1388
1518
|
|
1389
1519
|
--
|
1390
1520
|
|
1391
|
-
##### [_print_source](https://github.com/appium/ruby_lib/blob/
|
1521
|
+
##### [_print_source](https://github.com/appium/ruby_lib/blob/94f3348a8fbec111a7a958063d3a2e643051b2e9/lib/appium_lib/common/helper.rb#L56)
|
1392
1522
|
|
1393
1523
|
> def _print_source(source)
|
1394
1524
|
|
@@ -1396,7 +1526,7 @@ __Returns:__
|
|
1396
1526
|
|
1397
1527
|
--
|
1398
1528
|
|
1399
|
-
##### [result](https://github.com/appium/ruby_lib/blob/
|
1529
|
+
##### [result](https://github.com/appium/ruby_lib/blob/94f3348a8fbec111a7a958063d3a2e643051b2e9/lib/appium_lib/common/helper.rb#L69)
|
1400
1530
|
|
1401
1531
|
> def result
|
1402
1532
|
|
@@ -1404,7 +1534,7 @@ Returns the value of attribute result
|
|
1404
1534
|
|
1405
1535
|
--
|
1406
1536
|
|
1407
|
-
##### [initialize](https://github.com/appium/ruby_lib/blob/
|
1537
|
+
##### [initialize](https://github.com/appium/ruby_lib/blob/94f3348a8fbec111a7a958063d3a2e643051b2e9/lib/appium_lib/common/helper.rb#L71)
|
1408
1538
|
|
1409
1539
|
> def initialize
|
1410
1540
|
|
@@ -1416,7 +1546,7 @@ __Returns:__
|
|
1416
1546
|
|
1417
1547
|
--
|
1418
1548
|
|
1419
|
-
##### [reset](https://github.com/appium/ruby_lib/blob/
|
1549
|
+
##### [reset](https://github.com/appium/ruby_lib/blob/94f3348a8fbec111a7a958063d3a2e643051b2e9/lib/appium_lib/common/helper.rb#L75)
|
1420
1550
|
|
1421
1551
|
> def reset
|
1422
1552
|
|
@@ -1424,7 +1554,7 @@ __Returns:__
|
|
1424
1554
|
|
1425
1555
|
--
|
1426
1556
|
|
1427
|
-
##### [start_element](https://github.com/appium/ruby_lib/blob/
|
1557
|
+
##### [start_element](https://github.com/appium/ruby_lib/blob/94f3348a8fbec111a7a958063d3a2e643051b2e9/lib/appium_lib/common/helper.rb#L80)
|
1428
1558
|
|
1429
1559
|
> def start_element(name, attrs = [])
|
1430
1560
|
|
@@ -1432,7 +1562,7 @@ http://nokogiri.org/Nokogiri/XML/SAX/Document.html
|
|
1432
1562
|
|
1433
1563
|
--
|
1434
1564
|
|
1435
|
-
##### [formatted_result](https://github.com/appium/ruby_lib/blob/
|
1565
|
+
##### [formatted_result](https://github.com/appium/ruby_lib/blob/94f3348a8fbec111a7a958063d3a2e643051b2e9/lib/appium_lib/common/helper.rb#L86)
|
1436
1566
|
|
1437
1567
|
> def formatted_result
|
1438
1568
|
|
@@ -1440,7 +1570,7 @@ http://nokogiri.org/Nokogiri/XML/SAX/Document.html
|
|
1440
1570
|
|
1441
1571
|
--
|
1442
1572
|
|
1443
|
-
##### [get_page_class](https://github.com/appium/ruby_lib/blob/
|
1573
|
+
##### [get_page_class](https://github.com/appium/ruby_lib/blob/94f3348a8fbec111a7a958063d3a2e643051b2e9/lib/appium_lib/common/helper.rb#L97)
|
1444
1574
|
|
1445
1575
|
> def get_page_class
|
1446
1576
|
|
@@ -1448,7 +1578,7 @@ Returns a string of class counts of visible elements.
|
|
1448
1578
|
|
1449
1579
|
--
|
1450
1580
|
|
1451
|
-
##### [page_class](https://github.com/appium/ruby_lib/blob/
|
1581
|
+
##### [page_class](https://github.com/appium/ruby_lib/blob/94f3348a8fbec111a7a958063d3a2e643051b2e9/lib/appium_lib/common/helper.rb#L108)
|
1452
1582
|
|
1453
1583
|
> def page_class
|
1454
1584
|
|
@@ -1457,7 +1587,7 @@ Useful for appium_console.
|
|
1457
1587
|
|
1458
1588
|
--
|
1459
1589
|
|
1460
|
-
##### [px_to_window_rel](https://github.com/appium/ruby_lib/blob/
|
1590
|
+
##### [px_to_window_rel](https://github.com/appium/ruby_lib/blob/94f3348a8fbec111a7a958063d3a2e643051b2e9/lib/appium_lib/common/helper.rb#L118)
|
1461
1591
|
|
1462
1592
|
> def px_to_window_rel(opts = {})
|
1463
1593
|
|
@@ -1469,7 +1599,7 @@ px_to_window_rel x: 50, y: 150
|
|
1469
1599
|
|
1470
1600
|
--
|
1471
1601
|
|
1472
|
-
##### [xml_keys](https://github.com/appium/ruby_lib/blob/
|
1602
|
+
##### [xml_keys](https://github.com/appium/ruby_lib/blob/94f3348a8fbec111a7a958063d3a2e643051b2e9/lib/appium_lib/common/helper.rb#L137)
|
1473
1603
|
|
1474
1604
|
> def xml_keys(target)
|
1475
1605
|
|
@@ -1485,7 +1615,7 @@ __Returns:__
|
|
1485
1615
|
|
1486
1616
|
--
|
1487
1617
|
|
1488
|
-
##### [xml_values](https://github.com/appium/ruby_lib/blob/
|
1618
|
+
##### [xml_values](https://github.com/appium/ruby_lib/blob/94f3348a8fbec111a7a958063d3a2e643051b2e9/lib/appium_lib/common/helper.rb#L145)
|
1489
1619
|
|
1490
1620
|
> def xml_values(target)
|
1491
1621
|
|
@@ -1501,7 +1631,7 @@ __Returns:__
|
|
1501
1631
|
|
1502
1632
|
--
|
1503
1633
|
|
1504
|
-
##### [resolve_id](https://github.com/appium/ruby_lib/blob/
|
1634
|
+
##### [resolve_id](https://github.com/appium/ruby_lib/blob/94f3348a8fbec111a7a958063d3a2e643051b2e9/lib/appium_lib/common/helper.rb#L153)
|
1505
1635
|
|
1506
1636
|
> def resolve_id(id)
|
1507
1637
|
|
@@ -1517,7 +1647,7 @@ __Returns:__
|
|
1517
1647
|
|
1518
1648
|
--
|
1519
1649
|
|
1520
|
-
##### [filter](https://github.com/appium/ruby_lib/blob/
|
1650
|
+
##### [filter](https://github.com/appium/ruby_lib/blob/94f3348a8fbec111a7a958063d3a2e643051b2e9/lib/appium_lib/common/helper.rb#L159)
|
1521
1651
|
|
1522
1652
|
> def filter
|
1523
1653
|
|
@@ -1525,7 +1655,7 @@ Returns the value of attribute filter
|
|
1525
1655
|
|
1526
1656
|
--
|
1527
1657
|
|
1528
|
-
##### [filter=](https://github.com/appium/ruby_lib/blob/
|
1658
|
+
##### [filter=](https://github.com/appium/ruby_lib/blob/94f3348a8fbec111a7a958063d3a2e643051b2e9/lib/appium_lib/common/helper.rb#L162)
|
1529
1659
|
|
1530
1660
|
> def filter=(value)
|
1531
1661
|
|
@@ -1533,7 +1663,7 @@ convert to string to support symbols
|
|
1533
1663
|
|
1534
1664
|
--
|
1535
1665
|
|
1536
|
-
##### [initialize](https://github.com/appium/ruby_lib/blob/
|
1666
|
+
##### [initialize](https://github.com/appium/ruby_lib/blob/94f3348a8fbec111a7a958063d3a2e643051b2e9/lib/appium_lib/common/helper.rb#L168)
|
1537
1667
|
|
1538
1668
|
> def initialize
|
1539
1669
|
|
@@ -1545,7 +1675,7 @@ __Returns:__
|
|
1545
1675
|
|
1546
1676
|
--
|
1547
1677
|
|
1548
|
-
##### [reset](https://github.com/appium/ruby_lib/blob/
|
1678
|
+
##### [reset](https://github.com/appium/ruby_lib/blob/94f3348a8fbec111a7a958063d3a2e643051b2e9/lib/appium_lib/common/helper.rb#L173)
|
1549
1679
|
|
1550
1680
|
> def reset
|
1551
1681
|
|
@@ -1553,7 +1683,7 @@ __Returns:__
|
|
1553
1683
|
|
1554
1684
|
--
|
1555
1685
|
|
1556
|
-
##### [result](https://github.com/appium/ruby_lib/blob/
|
1686
|
+
##### [result](https://github.com/appium/ruby_lib/blob/94f3348a8fbec111a7a958063d3a2e643051b2e9/lib/appium_lib/common/helper.rb#L179)
|
1557
1687
|
|
1558
1688
|
> def result
|
1559
1689
|
|
@@ -1561,7 +1691,7 @@ __Returns:__
|
|
1561
1691
|
|
1562
1692
|
--
|
1563
1693
|
|
1564
|
-
##### [start_element](https://github.com/appium/ruby_lib/blob/
|
1694
|
+
##### [start_element](https://github.com/appium/ruby_lib/blob/94f3348a8fbec111a7a958063d3a2e643051b2e9/lib/appium_lib/common/helper.rb#L195)
|
1565
1695
|
|
1566
1696
|
> def start_element(name, attrs = [])
|
1567
1697
|
|
@@ -1569,7 +1699,7 @@ __Returns:__
|
|
1569
1699
|
|
1570
1700
|
--
|
1571
1701
|
|
1572
|
-
##### [end_element](https://github.com/appium/ruby_lib/blob/
|
1702
|
+
##### [end_element](https://github.com/appium/ruby_lib/blob/94f3348a8fbec111a7a958063d3a2e643051b2e9/lib/appium_lib/common/helper.rb#L204)
|
1573
1703
|
|
1574
1704
|
> def end_element(name)
|
1575
1705
|
|
@@ -1577,7 +1707,7 @@ __Returns:__
|
|
1577
1707
|
|
1578
1708
|
--
|
1579
1709
|
|
1580
|
-
##### [characters](https://github.com/appium/ruby_lib/blob/
|
1710
|
+
##### [characters](https://github.com/appium/ruby_lib/blob/94f3348a8fbec111a7a958063d3a2e643051b2e9/lib/appium_lib/common/helper.rb#L210)
|
1581
1711
|
|
1582
1712
|
> def characters(chars)
|
1583
1713
|
|
@@ -1585,7 +1715,7 @@ __Returns:__
|
|
1585
1715
|
|
1586
1716
|
--
|
1587
1717
|
|
1588
|
-
##### [_no_such_element](https://github.com/appium/ruby_lib/blob/
|
1718
|
+
##### [_no_such_element](https://github.com/appium/ruby_lib/blob/94f3348a8fbec111a7a958063d3a2e643051b2e9/lib/appium_lib/common/helper.rb#L217)
|
1589
1719
|
|
1590
1720
|
> def _no_such_element
|
1591
1721
|
|
@@ -1593,7 +1723,7 @@ __Returns:__
|
|
1593
1723
|
|
1594
1724
|
--
|
1595
1725
|
|
1596
|
-
##### [COMMAND_NO_ARG](https://github.com/appium/ruby_lib/blob/
|
1726
|
+
##### [COMMAND_NO_ARG](https://github.com/appium/ruby_lib/blob/94f3348a8fbec111a7a958063d3a2e643051b2e9/lib/appium_lib/common/command.rb#L4)
|
1597
1727
|
|
1598
1728
|
> COMMAND_NO_ARG = {
|
1599
1729
|
|
@@ -1601,7 +1731,7 @@ __Returns:__
|
|
1601
1731
|
|
1602
1732
|
--
|
1603
1733
|
|
1604
|
-
##### [COMMAND](https://github.com/appium/ruby_lib/blob/
|
1734
|
+
##### [COMMAND](https://github.com/appium/ruby_lib/blob/94f3348a8fbec111a7a958063d3a2e643051b2e9/lib/appium_lib/common/command.rb#L23)
|
1605
1735
|
|
1606
1736
|
> COMMAND = {
|
1607
1737
|
|
@@ -1609,7 +1739,7 @@ __Returns:__
|
|
1609
1739
|
|
1610
1740
|
--
|
1611
1741
|
|
1612
|
-
##### [window_size](https://github.com/appium/ruby_lib/blob/
|
1742
|
+
##### [window_size](https://github.com/appium/ruby_lib/blob/94f3348a8fbec111a7a958063d3a2e643051b2e9/lib/appium_lib/common/element/window.rb#L5)
|
1613
1743
|
|
1614
1744
|
> def window_size
|
1615
1745
|
|
@@ -1617,7 +1747,7 @@ Get the window's size
|
|
1617
1747
|
|
1618
1748
|
--
|
1619
1749
|
|
1620
|
-
##### [FINDERS](https://github.com/appium/ruby_lib/blob/
|
1750
|
+
##### [FINDERS](https://github.com/appium/ruby_lib/blob/94f3348a8fbec111a7a958063d3a2e643051b2e9/lib/appium_lib/common/search_context.rb#L5)
|
1621
1751
|
|
1622
1752
|
> FINDERS = {
|
1623
1753
|
|
@@ -1625,7 +1755,7 @@ rubocop:disable Style/MutableConstant
|
|
1625
1755
|
|
1626
1756
|
--
|
1627
1757
|
|
1628
|
-
##### [result](https://github.com/appium/ruby_lib/blob/
|
1758
|
+
##### [result](https://github.com/appium/ruby_lib/blob/94f3348a8fbec111a7a958063d3a2e643051b2e9/lib/appium_lib/android/helper.rb#L6) android
|
1629
1759
|
|
1630
1760
|
> def result
|
1631
1761
|
|
@@ -1633,7 +1763,7 @@ Returns the value of attribute result
|
|
1633
1763
|
|
1634
1764
|
--
|
1635
1765
|
|
1636
|
-
##### [keys](https://github.com/appium/ruby_lib/blob/
|
1766
|
+
##### [keys](https://github.com/appium/ruby_lib/blob/94f3348a8fbec111a7a958063d3a2e643051b2e9/lib/appium_lib/android/helper.rb#L6) android
|
1637
1767
|
|
1638
1768
|
> def keys
|
1639
1769
|
|
@@ -1641,7 +1771,7 @@ Returns the value of attribute keys
|
|
1641
1771
|
|
1642
1772
|
--
|
1643
1773
|
|
1644
|
-
##### [instance](https://github.com/appium/ruby_lib/blob/
|
1774
|
+
##### [instance](https://github.com/appium/ruby_lib/blob/94f3348a8fbec111a7a958063d3a2e643051b2e9/lib/appium_lib/android/helper.rb#L6) android
|
1645
1775
|
|
1646
1776
|
> def instance
|
1647
1777
|
|
@@ -1649,7 +1779,7 @@ Returns the value of attribute instance
|
|
1649
1779
|
|
1650
1780
|
--
|
1651
1781
|
|
1652
|
-
##### [filter](https://github.com/appium/ruby_lib/blob/
|
1782
|
+
##### [filter](https://github.com/appium/ruby_lib/blob/94f3348a8fbec111a7a958063d3a2e643051b2e9/lib/appium_lib/android/helper.rb#L6) android
|
1653
1783
|
|
1654
1784
|
> def filter
|
1655
1785
|
|
@@ -1657,7 +1787,7 @@ Returns the value of attribute filter
|
|
1657
1787
|
|
1658
1788
|
--
|
1659
1789
|
|
1660
|
-
##### [filter=](https://github.com/appium/ruby_lib/blob/
|
1790
|
+
##### [filter=](https://github.com/appium/ruby_lib/blob/94f3348a8fbec111a7a958063d3a2e643051b2e9/lib/appium_lib/android/helper.rb#L9) android
|
1661
1791
|
|
1662
1792
|
> def filter=(value)
|
1663
1793
|
|
@@ -1665,7 +1795,7 @@ convert to string to support symbols
|
|
1665
1795
|
|
1666
1796
|
--
|
1667
1797
|
|
1668
|
-
##### [initialize](https://github.com/appium/ruby_lib/blob/
|
1798
|
+
##### [initialize](https://github.com/appium/ruby_lib/blob/94f3348a8fbec111a7a958063d3a2e643051b2e9/lib/appium_lib/android/helper.rb#L15) android
|
1669
1799
|
|
1670
1800
|
> def initialize
|
1671
1801
|
|
@@ -1677,7 +1807,7 @@ __Returns:__
|
|
1677
1807
|
|
1678
1808
|
--
|
1679
1809
|
|
1680
|
-
##### [reset](https://github.com/appium/ruby_lib/blob/
|
1810
|
+
##### [reset](https://github.com/appium/ruby_lib/blob/94f3348a8fbec111a7a958063d3a2e643051b2e9/lib/appium_lib/android/helper.rb#L21) android
|
1681
1811
|
|
1682
1812
|
> def reset
|
1683
1813
|
|
@@ -1685,7 +1815,7 @@ __Returns:__
|
|
1685
1815
|
|
1686
1816
|
--
|
1687
1817
|
|
1688
|
-
##### [start_element](https://github.com/appium/ruby_lib/blob/
|
1818
|
+
##### [start_element](https://github.com/appium/ruby_lib/blob/94f3348a8fbec111a7a958063d3a2e643051b2e9/lib/appium_lib/android/helper.rb#L28) android
|
1689
1819
|
|
1690
1820
|
> def start_element(name, attrs = [])
|
1691
1821
|
|
@@ -1693,7 +1823,7 @@ http://nokogiri.org/Nokogiri/XML/SAX/Document.html
|
|
1693
1823
|
|
1694
1824
|
--
|
1695
1825
|
|
1696
|
-
##### [_fix_android_native_source](https://github.com/appium/ruby_lib/blob/
|
1826
|
+
##### [_fix_android_native_source](https://github.com/appium/ruby_lib/blob/94f3348a8fbec111a7a958063d3a2e643051b2e9/lib/appium_lib/android/helper.rb#L88) android
|
1697
1827
|
|
1698
1828
|
> def _fix_android_native_source(source)
|
1699
1829
|
|
@@ -1703,7 +1833,7 @@ https://code.google.com/p/android/issues/detail?id=74143
|
|
1703
1833
|
|
1704
1834
|
--
|
1705
1835
|
|
1706
|
-
##### [source](https://github.com/appium/ruby_lib/blob/
|
1836
|
+
##### [source](https://github.com/appium/ruby_lib/blob/94f3348a8fbec111a7a958063d3a2e643051b2e9/lib/appium_lib/android/helper.rb#L116) android
|
1707
1837
|
|
1708
1838
|
> def source
|
1709
1839
|
|
@@ -1715,7 +1845,7 @@ __Returns:__
|
|
1715
1845
|
|
1716
1846
|
--
|
1717
1847
|
|
1718
|
-
##### [get_android_inspect](https://github.com/appium/ruby_lib/blob/
|
1848
|
+
##### [get_android_inspect](https://github.com/appium/ruby_lib/blob/94f3348a8fbec111a7a958063d3a2e643051b2e9/lib/appium_lib/android/helper.rb#L126) android
|
1719
1849
|
|
1720
1850
|
> def get_android_inspect(class_name = false)
|
1721
1851
|
|
@@ -1734,7 +1864,7 @@ __Returns:__
|
|
1734
1864
|
|
1735
1865
|
--
|
1736
1866
|
|
1737
|
-
##### [page](https://github.com/appium/ruby_lib/blob/
|
1867
|
+
##### [page](https://github.com/appium/ruby_lib/blob/94f3348a8fbec111a7a958063d3a2e643051b2e9/lib/appium_lib/android/helper.rb#L152) android
|
1738
1868
|
|
1739
1869
|
> def page(opts = {})
|
1740
1870
|
|
@@ -1753,7 +1883,7 @@ __Returns:__
|
|
1753
1883
|
|
1754
1884
|
--
|
1755
1885
|
|
1756
|
-
##### [current_app](https://github.com/appium/ruby_lib/blob/
|
1886
|
+
##### [current_app](https://github.com/appium/ruby_lib/blob/94f3348a8fbec111a7a958063d3a2e643051b2e9/lib/appium_lib/android/helper.rb#L164) android
|
1757
1887
|
|
1758
1888
|
> def current_app
|
1759
1889
|
|
@@ -1763,7 +1893,7 @@ example line:
|
|
1763
1893
|
|
1764
1894
|
--
|
1765
1895
|
|
1766
|
-
##### [id](https://github.com/appium/ruby_lib/blob/
|
1896
|
+
##### [id](https://github.com/appium/ruby_lib/blob/94f3348a8fbec111a7a958063d3a2e643051b2e9/lib/appium_lib/android/helper.rb#L188) android
|
1767
1897
|
|
1768
1898
|
> def id(id)
|
1769
1899
|
|
@@ -1779,7 +1909,7 @@ __Returns:__
|
|
1779
1909
|
|
1780
1910
|
--
|
1781
1911
|
|
1782
|
-
##### [ids](https://github.com/appium/ruby_lib/blob/
|
1912
|
+
##### [ids](https://github.com/appium/ruby_lib/blob/94f3348a8fbec111a7a958063d3a2e643051b2e9/lib/appium_lib/android/helper.rb#L196) android
|
1783
1913
|
|
1784
1914
|
> def ids(id)
|
1785
1915
|
|
@@ -1795,7 +1925,7 @@ __Returns:__
|
|
1795
1925
|
|
1796
1926
|
--
|
1797
1927
|
|
1798
|
-
##### [ele_index](https://github.com/appium/ruby_lib/blob/
|
1928
|
+
##### [ele_index](https://github.com/appium/ruby_lib/blob/94f3348a8fbec111a7a958063d3a2e643051b2e9/lib/appium_lib/android/helper.rb#L205) android
|
1799
1929
|
|
1800
1930
|
> def ele_index(class_name, index)
|
1801
1931
|
|
@@ -1813,7 +1943,7 @@ __Returns:__
|
|
1813
1943
|
|
1814
1944
|
--
|
1815
1945
|
|
1816
|
-
##### [first_ele](https://github.com/appium/ruby_lib/blob/
|
1946
|
+
##### [first_ele](https://github.com/appium/ruby_lib/blob/94f3348a8fbec111a7a958063d3a2e643051b2e9/lib/appium_lib/android/helper.rb#L223) android
|
1817
1947
|
|
1818
1948
|
> def first_ele(class_name)
|
1819
1949
|
|
@@ -1829,7 +1959,7 @@ __Returns:__
|
|
1829
1959
|
|
1830
1960
|
--
|
1831
1961
|
|
1832
|
-
##### [last_ele](https://github.com/appium/ruby_lib/blob/
|
1962
|
+
##### [last_ele](https://github.com/appium/ruby_lib/blob/94f3348a8fbec111a7a958063d3a2e643051b2e9/lib/appium_lib/android/helper.rb#L230) android
|
1833
1963
|
|
1834
1964
|
> def last_ele(class_name)
|
1835
1965
|
|
@@ -1845,7 +1975,7 @@ __Returns:__
|
|
1845
1975
|
|
1846
1976
|
--
|
1847
1977
|
|
1848
|
-
##### [tag](https://github.com/appium/ruby_lib/blob/
|
1978
|
+
##### [tag](https://github.com/appium/ruby_lib/blob/94f3348a8fbec111a7a958063d3a2e643051b2e9/lib/appium_lib/android/helper.rb#L238) android
|
1849
1979
|
|
1850
1980
|
> def tag(class_name)
|
1851
1981
|
|
@@ -1861,7 +1991,7 @@ __Returns:__
|
|
1861
1991
|
|
1862
1992
|
--
|
1863
1993
|
|
1864
|
-
##### [tags](https://github.com/appium/ruby_lib/blob/
|
1994
|
+
##### [tags](https://github.com/appium/ruby_lib/blob/94f3348a8fbec111a7a958063d3a2e643051b2e9/lib/appium_lib/android/helper.rb#L246) android
|
1865
1995
|
|
1866
1996
|
> def tags(class_name)
|
1867
1997
|
|
@@ -1877,7 +2007,7 @@ __Returns:__
|
|
1877
2007
|
|
1878
2008
|
--
|
1879
2009
|
|
1880
|
-
##### [string_visible_contains](https://github.com/appium/ruby_lib/blob/
|
2010
|
+
##### [string_visible_contains](https://github.com/appium/ruby_lib/blob/94f3348a8fbec111a7a958063d3a2e643051b2e9/lib/appium_lib/android/helper.rb#L288) android
|
1881
2011
|
|
1882
2012
|
> def string_visible_contains(class_name, value)
|
1883
2013
|
|
@@ -1897,7 +2027,7 @@ __Returns:__
|
|
1897
2027
|
|
1898
2028
|
--
|
1899
2029
|
|
1900
|
-
##### [complex_find_contains](https://github.com/appium/ruby_lib/blob/
|
2030
|
+
##### [complex_find_contains](https://github.com/appium/ruby_lib/blob/94f3348a8fbec111a7a958063d3a2e643051b2e9/lib/appium_lib/android/helper.rb#L308) android
|
1901
2031
|
|
1902
2032
|
> def complex_find_contains(element, value)
|
1903
2033
|
|
@@ -1915,7 +2045,7 @@ __Returns:__
|
|
1915
2045
|
|
1916
2046
|
--
|
1917
2047
|
|
1918
|
-
##### [complex_finds_contains](https://github.com/appium/ruby_lib/blob/
|
2048
|
+
##### [complex_finds_contains](https://github.com/appium/ruby_lib/blob/94f3348a8fbec111a7a958063d3a2e643051b2e9/lib/appium_lib/android/helper.rb#L316) android
|
1919
2049
|
|
1920
2050
|
> def complex_finds_contains(element, value)
|
1921
2051
|
|
@@ -1933,7 +2063,7 @@ __Returns:__
|
|
1933
2063
|
|
1934
2064
|
--
|
1935
2065
|
|
1936
|
-
##### [complex_find_exact](https://github.com/appium/ruby_lib/blob/
|
2066
|
+
##### [complex_find_exact](https://github.com/appium/ruby_lib/blob/94f3348a8fbec111a7a958063d3a2e643051b2e9/lib/appium_lib/android/helper.rb#L345) android
|
1937
2067
|
|
1938
2068
|
> def complex_find_exact(class_name, value)
|
1939
2069
|
|
@@ -1951,7 +2081,7 @@ __Returns:__
|
|
1951
2081
|
|
1952
2082
|
--
|
1953
2083
|
|
1954
|
-
##### [complex_finds_exact](https://github.com/appium/ruby_lib/blob/
|
2084
|
+
##### [complex_finds_exact](https://github.com/appium/ruby_lib/blob/94f3348a8fbec111a7a958063d3a2e643051b2e9/lib/appium_lib/android/helper.rb#L353) android
|
1955
2085
|
|
1956
2086
|
> def complex_finds_exact(class_name, value)
|
1957
2087
|
|
@@ -1969,7 +2099,7 @@ __Returns:__
|
|
1969
2099
|
|
1970
2100
|
--
|
1971
2101
|
|
1972
|
-
##### [get_source](https://github.com/appium/ruby_lib/blob/
|
2102
|
+
##### [get_source](https://github.com/appium/ruby_lib/blob/94f3348a8fbec111a7a958063d3a2e643051b2e9/lib/appium_lib/android/helper.rb#L361) android
|
1973
2103
|
|
1974
2104
|
> def get_source
|
1975
2105
|
|
@@ -1983,7 +2113,7 @@ __Returns:__
|
|
1983
2113
|
|
1984
2114
|
--
|
1985
2115
|
|
1986
|
-
##### [_nodeset_to_uiselector](https://github.com/appium/ruby_lib/blob/
|
2116
|
+
##### [_nodeset_to_uiselector](https://github.com/appium/ruby_lib/blob/94f3348a8fbec111a7a958063d3a2e643051b2e9/lib/appium_lib/android/client_xpath.rb#L5) android
|
1987
2117
|
|
1988
2118
|
> def _nodeset_to_uiselector(opts = {})
|
1989
2119
|
|
@@ -1991,7 +2121,7 @@ __Returns:__
|
|
1991
2121
|
|
1992
2122
|
--
|
1993
2123
|
|
1994
|
-
##### [_client_xpath](https://github.com/appium/ruby_lib/blob/
|
2124
|
+
##### [_client_xpath](https://github.com/appium/ruby_lib/blob/94f3348a8fbec111a7a958063d3a2e643051b2e9/lib/appium_lib/android/client_xpath.rb#L20) android
|
1995
2125
|
|
1996
2126
|
> def _client_xpath(opts = {})
|
1997
2127
|
|
@@ -1999,7 +2129,7 @@ __Returns:__
|
|
1999
2129
|
|
2000
2130
|
--
|
2001
2131
|
|
2002
|
-
##### [client_xpath](https://github.com/appium/ruby_lib/blob/
|
2132
|
+
##### [client_xpath](https://github.com/appium/ruby_lib/blob/94f3348a8fbec111a7a958063d3a2e643051b2e9/lib/appium_lib/android/client_xpath.rb#L36) android
|
2003
2133
|
|
2004
2134
|
> def client_xpath(xpath)
|
2005
2135
|
|
@@ -2007,7 +2137,7 @@ __Returns:__
|
|
2007
2137
|
|
2008
2138
|
--
|
2009
2139
|
|
2010
|
-
##### [client_xpaths](https://github.com/appium/ruby_lib/blob/
|
2140
|
+
##### [client_xpaths](https://github.com/appium/ruby_lib/blob/94f3348a8fbec111a7a958063d3a2e643051b2e9/lib/appium_lib/android/client_xpath.rb#L40) android
|
2011
2141
|
|
2012
2142
|
> def client_xpaths(xpath)
|
2013
2143
|
|
@@ -2015,7 +2145,7 @@ __Returns:__
|
|
2015
2145
|
|
2016
2146
|
--
|
2017
2147
|
|
2018
|
-
##### [TextView](https://github.com/appium/ruby_lib/blob/
|
2148
|
+
##### [TextView](https://github.com/appium/ruby_lib/blob/94f3348a8fbec111a7a958063d3a2e643051b2e9/lib/appium_lib/android/element/text.rb#L4) android
|
2019
2149
|
|
2020
2150
|
> TextView = 'android.widget.TextView'.freeze
|
2021
2151
|
|
@@ -2023,7 +2153,7 @@ __Returns:__
|
|
2023
2153
|
|
2024
2154
|
--
|
2025
2155
|
|
2026
|
-
##### [text](https://github.com/appium/ruby_lib/blob/
|
2156
|
+
##### [text](https://github.com/appium/ruby_lib/blob/94f3348a8fbec111a7a958063d3a2e643051b2e9/lib/appium_lib/android/element/text.rb#L10) android
|
2027
2157
|
|
2028
2158
|
> def text(value)
|
2029
2159
|
|
@@ -2040,7 +2170,7 @@ __Returns:__
|
|
2040
2170
|
|
2041
2171
|
--
|
2042
2172
|
|
2043
|
-
##### [texts](https://github.com/appium/ruby_lib/blob/
|
2173
|
+
##### [texts](https://github.com/appium/ruby_lib/blob/94f3348a8fbec111a7a958063d3a2e643051b2e9/lib/appium_lib/android/element/text.rb#L19) android
|
2044
2174
|
|
2045
2175
|
> def texts(value = false)
|
2046
2176
|
|
@@ -2057,7 +2187,7 @@ __Returns:__
|
|
2057
2187
|
|
2058
2188
|
--
|
2059
2189
|
|
2060
|
-
##### [first_text](https://github.com/appium/ruby_lib/blob/
|
2190
|
+
##### [first_text](https://github.com/appium/ruby_lib/blob/94f3348a8fbec111a7a958063d3a2e643051b2e9/lib/appium_lib/android/element/text.rb#L26) android
|
2061
2191
|
|
2062
2192
|
> def first_text
|
2063
2193
|
|
@@ -2069,7 +2199,7 @@ __Returns:__
|
|
2069
2199
|
|
2070
2200
|
--
|
2071
2201
|
|
2072
|
-
##### [last_text](https://github.com/appium/ruby_lib/blob/
|
2202
|
+
##### [last_text](https://github.com/appium/ruby_lib/blob/94f3348a8fbec111a7a958063d3a2e643051b2e9/lib/appium_lib/android/element/text.rb#L32) android
|
2073
2203
|
|
2074
2204
|
> def last_text
|
2075
2205
|
|
@@ -2081,7 +2211,7 @@ __Returns:__
|
|
2081
2211
|
|
2082
2212
|
--
|
2083
2213
|
|
2084
|
-
##### [text_exact](https://github.com/appium/ruby_lib/blob/
|
2214
|
+
##### [text_exact](https://github.com/appium/ruby_lib/blob/94f3348a8fbec111a7a958063d3a2e643051b2e9/lib/appium_lib/android/element/text.rb#L39) android
|
2085
2215
|
|
2086
2216
|
> def text_exact(value)
|
2087
2217
|
|
@@ -2097,7 +2227,7 @@ __Returns:__
|
|
2097
2227
|
|
2098
2228
|
--
|
2099
2229
|
|
2100
|
-
##### [texts_exact](https://github.com/appium/ruby_lib/blob/
|
2230
|
+
##### [texts_exact](https://github.com/appium/ruby_lib/blob/94f3348a8fbec111a7a958063d3a2e643051b2e9/lib/appium_lib/android/element/text.rb#L46) android
|
2101
2231
|
|
2102
2232
|
> def texts_exact(value)
|
2103
2233
|
|
@@ -2113,7 +2243,7 @@ __Returns:__
|
|
2113
2243
|
|
2114
2244
|
--
|
2115
2245
|
|
2116
|
-
##### [alert_click](https://github.com/appium/ruby_lib/blob/
|
2246
|
+
##### [alert_click](https://github.com/appium/ruby_lib/blob/94f3348a8fbec111a7a958063d3a2e643051b2e9/lib/appium_lib/android/element/alert.rb#L6) android
|
2117
2247
|
|
2118
2248
|
> def alert_click(value)
|
2119
2249
|
|
@@ -2129,7 +2259,7 @@ __Returns:__
|
|
2129
2259
|
|
2130
2260
|
--
|
2131
2261
|
|
2132
|
-
##### [alert_accept](https://github.com/appium/ruby_lib/blob/
|
2262
|
+
##### [alert_accept](https://github.com/appium/ruby_lib/blob/94f3348a8fbec111a7a958063d3a2e643051b2e9/lib/appium_lib/android/element/alert.rb#L13) android
|
2133
2263
|
|
2134
2264
|
> def alert_accept
|
2135
2265
|
|
@@ -2142,7 +2272,7 @@ __Returns:__
|
|
2142
2272
|
|
2143
2273
|
--
|
2144
2274
|
|
2145
|
-
##### [alert_accept_text](https://github.com/appium/ruby_lib/blob/
|
2275
|
+
##### [alert_accept_text](https://github.com/appium/ruby_lib/blob/94f3348a8fbec111a7a958063d3a2e643051b2e9/lib/appium_lib/android/element/alert.rb#L20) android
|
2146
2276
|
|
2147
2277
|
> def alert_accept_text
|
2148
2278
|
|
@@ -2155,7 +2285,7 @@ __Returns:__
|
|
2155
2285
|
|
2156
2286
|
--
|
2157
2287
|
|
2158
|
-
##### [alert_dismiss](https://github.com/appium/ruby_lib/blob/
|
2288
|
+
##### [alert_dismiss](https://github.com/appium/ruby_lib/blob/94f3348a8fbec111a7a958063d3a2e643051b2e9/lib/appium_lib/android/element/alert.rb#L27) android
|
2159
2289
|
|
2160
2290
|
> def alert_dismiss
|
2161
2291
|
|
@@ -2168,7 +2298,7 @@ __Returns:__
|
|
2168
2298
|
|
2169
2299
|
--
|
2170
2300
|
|
2171
|
-
##### [alert_dismiss_text](https://github.com/appium/ruby_lib/blob/
|
2301
|
+
##### [alert_dismiss_text](https://github.com/appium/ruby_lib/blob/94f3348a8fbec111a7a958063d3a2e643051b2e9/lib/appium_lib/android/element/alert.rb#L34) android
|
2172
2302
|
|
2173
2303
|
> def alert_dismiss_text
|
2174
2304
|
|
@@ -2181,7 +2311,7 @@ __Returns:__
|
|
2181
2311
|
|
2182
2312
|
--
|
2183
2313
|
|
2184
|
-
##### [Button](https://github.com/appium/ruby_lib/blob/
|
2314
|
+
##### [Button](https://github.com/appium/ruby_lib/blob/94f3348a8fbec111a7a958063d3a2e643051b2e9/lib/appium_lib/android/element/button.rb#L4) android
|
2185
2315
|
|
2186
2316
|
> Button = 'android.widget.Button'.freeze
|
2187
2317
|
|
@@ -2189,7 +2319,7 @@ __Returns:__
|
|
2189
2319
|
|
2190
2320
|
--
|
2191
2321
|
|
2192
|
-
##### [ImageButton](https://github.com/appium/ruby_lib/blob/
|
2322
|
+
##### [ImageButton](https://github.com/appium/ruby_lib/blob/94f3348a8fbec111a7a958063d3a2e643051b2e9/lib/appium_lib/android/element/button.rb#L5) android
|
2193
2323
|
|
2194
2324
|
> ImageButton = 'android.widget.ImageButton'.freeze
|
2195
2325
|
|
@@ -2197,7 +2327,7 @@ __Returns:__
|
|
2197
2327
|
|
2198
2328
|
--
|
2199
2329
|
|
2200
|
-
##### [button](https://github.com/appium/ruby_lib/blob/
|
2330
|
+
##### [button](https://github.com/appium/ruby_lib/blob/94f3348a8fbec111a7a958063d3a2e643051b2e9/lib/appium_lib/android/element/button.rb#L43) android
|
2201
2331
|
|
2202
2332
|
> def button(value)
|
2203
2333
|
|
@@ -2214,7 +2344,7 @@ __Returns:__
|
|
2214
2344
|
|
2215
2345
|
--
|
2216
2346
|
|
2217
|
-
##### [buttons](https://github.com/appium/ruby_lib/blob/
|
2347
|
+
##### [buttons](https://github.com/appium/ruby_lib/blob/94f3348a8fbec111a7a958063d3a2e643051b2e9/lib/appium_lib/android/element/button.rb#L60) android
|
2218
2348
|
|
2219
2349
|
> def buttons(value = false)
|
2220
2350
|
|
@@ -2231,7 +2361,7 @@ __Returns:__
|
|
2231
2361
|
|
2232
2362
|
--
|
2233
2363
|
|
2234
|
-
##### [first_button](https://github.com/appium/ruby_lib/blob/
|
2364
|
+
##### [first_button](https://github.com/appium/ruby_lib/blob/94f3348a8fbec111a7a958063d3a2e643051b2e9/lib/appium_lib/android/element/button.rb#L67) android
|
2235
2365
|
|
2236
2366
|
> def first_button
|
2237
2367
|
|
@@ -2243,7 +2373,7 @@ __Returns:__
|
|
2243
2373
|
|
2244
2374
|
--
|
2245
2375
|
|
2246
|
-
##### [last_button](https://github.com/appium/ruby_lib/blob/
|
2376
|
+
##### [last_button](https://github.com/appium/ruby_lib/blob/94f3348a8fbec111a7a958063d3a2e643051b2e9/lib/appium_lib/android/element/button.rb#L73) android
|
2247
2377
|
|
2248
2378
|
> def last_button
|
2249
2379
|
|
@@ -2255,7 +2385,7 @@ __Returns:__
|
|
2255
2385
|
|
2256
2386
|
--
|
2257
2387
|
|
2258
|
-
##### [button_exact](https://github.com/appium/ruby_lib/blob/
|
2388
|
+
##### [button_exact](https://github.com/appium/ruby_lib/blob/94f3348a8fbec111a7a958063d3a2e643051b2e9/lib/appium_lib/android/element/button.rb#L89) android
|
2259
2389
|
|
2260
2390
|
> def button_exact(value)
|
2261
2391
|
|
@@ -2271,7 +2401,7 @@ __Returns:__
|
|
2271
2401
|
|
2272
2402
|
--
|
2273
2403
|
|
2274
|
-
##### [buttons_exact](https://github.com/appium/ruby_lib/blob/
|
2404
|
+
##### [buttons_exact](https://github.com/appium/ruby_lib/blob/94f3348a8fbec111a7a958063d3a2e643051b2e9/lib/appium_lib/android/element/button.rb#L96) android
|
2275
2405
|
|
2276
2406
|
> def buttons_exact(value)
|
2277
2407
|
|
@@ -2287,7 +2417,7 @@ __Returns:__
|
|
2287
2417
|
|
2288
2418
|
--
|
2289
2419
|
|
2290
|
-
##### [uiautomator_find](https://github.com/appium/ruby_lib/blob/
|
2420
|
+
##### [uiautomator_find](https://github.com/appium/ruby_lib/blob/94f3348a8fbec111a7a958063d3a2e643051b2e9/lib/appium_lib/android/mobile_methods.rb#L10) android
|
2291
2421
|
|
2292
2422
|
> def uiautomator_find
|
2293
2423
|
|
@@ -2299,7 +2429,7 @@ find_element/s can be used with a [UISelector](http://developer.android.com/tool
|
|
2299
2429
|
|
2300
2430
|
--
|
2301
2431
|
|
2302
|
-
##### [find](https://github.com/appium/ruby_lib/blob/
|
2432
|
+
##### [find](https://github.com/appium/ruby_lib/blob/94f3348a8fbec111a7a958063d3a2e643051b2e9/lib/appium_lib/android/element/generic.rb#L6) android
|
2303
2433
|
|
2304
2434
|
> def find(value)
|
2305
2435
|
|
@@ -2315,7 +2445,7 @@ __Returns:__
|
|
2315
2445
|
|
2316
2446
|
--
|
2317
2447
|
|
2318
|
-
##### [finds](https://github.com/appium/ruby_lib/blob/
|
2448
|
+
##### [finds](https://github.com/appium/ruby_lib/blob/94f3348a8fbec111a7a958063d3a2e643051b2e9/lib/appium_lib/android/element/generic.rb#L13) android
|
2319
2449
|
|
2320
2450
|
> def finds(value)
|
2321
2451
|
|
@@ -2331,7 +2461,7 @@ __Returns:__
|
|
2331
2461
|
|
2332
2462
|
--
|
2333
2463
|
|
2334
|
-
##### [find_exact](https://github.com/appium/ruby_lib/blob/
|
2464
|
+
##### [find_exact](https://github.com/appium/ruby_lib/blob/94f3348a8fbec111a7a958063d3a2e643051b2e9/lib/appium_lib/android/element/generic.rb#L20) android
|
2335
2465
|
|
2336
2466
|
> def find_exact(value)
|
2337
2467
|
|
@@ -2347,7 +2477,7 @@ __Returns:__
|
|
2347
2477
|
|
2348
2478
|
--
|
2349
2479
|
|
2350
|
-
##### [finds_exact](https://github.com/appium/ruby_lib/blob/
|
2480
|
+
##### [finds_exact](https://github.com/appium/ruby_lib/blob/94f3348a8fbec111a7a958063d3a2e643051b2e9/lib/appium_lib/android/element/generic.rb#L27) android
|
2351
2481
|
|
2352
2482
|
> def finds_exact(value)
|
2353
2483
|
|
@@ -2363,7 +2493,7 @@ __Returns:__
|
|
2363
2493
|
|
2364
2494
|
--
|
2365
2495
|
|
2366
|
-
##### [scroll_to](https://github.com/appium/ruby_lib/blob/
|
2496
|
+
##### [scroll_to](https://github.com/appium/ruby_lib/blob/94f3348a8fbec111a7a958063d3a2e643051b2e9/lib/appium_lib/android/element/generic.rb#L39) android
|
2367
2497
|
|
2368
2498
|
> def scroll_to(text)
|
2369
2499
|
|
@@ -2379,7 +2509,7 @@ __Returns:__
|
|
2379
2509
|
|
2380
2510
|
--
|
2381
2511
|
|
2382
|
-
##### [scroll_to_exact](https://github.com/appium/ruby_lib/blob/
|
2512
|
+
##### [scroll_to_exact](https://github.com/appium/ruby_lib/blob/94f3348a8fbec111a7a958063d3a2e643051b2e9/lib/appium_lib/android/element/generic.rb#L51) android
|
2383
2513
|
|
2384
2514
|
> def scroll_to_exact(text)
|
2385
2515
|
|
@@ -2395,7 +2525,7 @@ __Returns:__
|
|
2395
2525
|
|
2396
2526
|
--
|
2397
2527
|
|
2398
|
-
##### [EditText](https://github.com/appium/ruby_lib/blob/
|
2528
|
+
##### [EditText](https://github.com/appium/ruby_lib/blob/94f3348a8fbec111a7a958063d3a2e643051b2e9/lib/appium_lib/android/element/textfield.rb#L3) android
|
2399
2529
|
|
2400
2530
|
> EditText = 'android.widget.EditText'.freeze
|
2401
2531
|
|
@@ -2403,7 +2533,7 @@ __Returns:__
|
|
2403
2533
|
|
2404
2534
|
--
|
2405
2535
|
|
2406
|
-
##### [textfield](https://github.com/appium/ruby_lib/blob/
|
2536
|
+
##### [textfield](https://github.com/appium/ruby_lib/blob/94f3348a8fbec111a7a958063d3a2e643051b2e9/lib/appium_lib/android/element/textfield.rb#L9) android
|
2407
2537
|
|
2408
2538
|
> def textfield(value)
|
2409
2539
|
|
@@ -2420,7 +2550,7 @@ __Returns:__
|
|
2420
2550
|
|
2421
2551
|
--
|
2422
2552
|
|
2423
|
-
##### [textfields](https://github.com/appium/ruby_lib/blob/
|
2553
|
+
##### [textfields](https://github.com/appium/ruby_lib/blob/94f3348a8fbec111a7a958063d3a2e643051b2e9/lib/appium_lib/android/element/textfield.rb#L18) android
|
2424
2554
|
|
2425
2555
|
> def textfields(value = false)
|
2426
2556
|
|
@@ -2437,7 +2567,7 @@ __Returns:__
|
|
2437
2567
|
|
2438
2568
|
--
|
2439
2569
|
|
2440
|
-
##### [first_textfield](https://github.com/appium/ruby_lib/blob/
|
2570
|
+
##### [first_textfield](https://github.com/appium/ruby_lib/blob/94f3348a8fbec111a7a958063d3a2e643051b2e9/lib/appium_lib/android/element/textfield.rb#L25) android
|
2441
2571
|
|
2442
2572
|
> def first_textfield
|
2443
2573
|
|
@@ -2449,7 +2579,7 @@ __Returns:__
|
|
2449
2579
|
|
2450
2580
|
--
|
2451
2581
|
|
2452
|
-
##### [last_textfield](https://github.com/appium/ruby_lib/blob/
|
2582
|
+
##### [last_textfield](https://github.com/appium/ruby_lib/blob/94f3348a8fbec111a7a958063d3a2e643051b2e9/lib/appium_lib/android/element/textfield.rb#L31) android
|
2453
2583
|
|
2454
2584
|
> def last_textfield
|
2455
2585
|
|
@@ -2461,7 +2591,7 @@ __Returns:__
|
|
2461
2591
|
|
2462
2592
|
--
|
2463
2593
|
|
2464
|
-
##### [textfield_exact](https://github.com/appium/ruby_lib/blob/
|
2594
|
+
##### [textfield_exact](https://github.com/appium/ruby_lib/blob/94f3348a8fbec111a7a958063d3a2e643051b2e9/lib/appium_lib/android/element/textfield.rb#L38) android
|
2465
2595
|
|
2466
2596
|
> def textfield_exact(value)
|
2467
2597
|
|
@@ -2477,7 +2607,7 @@ __Returns:__
|
|
2477
2607
|
|
2478
2608
|
--
|
2479
2609
|
|
2480
|
-
##### [textfields_exact](https://github.com/appium/ruby_lib/blob/
|
2610
|
+
##### [textfields_exact](https://github.com/appium/ruby_lib/blob/94f3348a8fbec111a7a958063d3a2e643051b2e9/lib/appium_lib/android/element/textfield.rb#L45) android
|
2481
2611
|
|
2482
2612
|
> def textfields_exact(value)
|
2483
2613
|
|
@@ -2493,7 +2623,7 @@ __Returns:__
|
|
2493
2623
|
|
2494
2624
|
--
|
2495
2625
|
|
2496
|
-
##### [value](https://github.com/appium/ruby_lib/blob/
|
2626
|
+
##### [value](https://github.com/appium/ruby_lib/blob/94f3348a8fbec111a7a958063d3a2e643051b2e9/lib/appium_lib/common/patch.rb#L12)
|
2497
2627
|
|
2498
2628
|
> def value
|
2499
2629
|
|
@@ -2503,7 +2633,7 @@ Fixes NoMethodError: undefined method `value' for Selenium::WebDriver::Element
|
|
2503
2633
|
|
2504
2634
|
--
|
2505
2635
|
|
2506
|
-
##### [name](https://github.com/appium/ruby_lib/blob/
|
2636
|
+
##### [name](https://github.com/appium/ruby_lib/blob/94f3348a8fbec111a7a958063d3a2e643051b2e9/lib/appium_lib/common/patch.rb#L19)
|
2507
2637
|
|
2508
2638
|
> def name
|
2509
2639
|
|
@@ -2513,7 +2643,7 @@ Fixes NoMethodError: undefined method `name' for Selenium::WebDriver::Element
|
|
2513
2643
|
|
2514
2644
|
--
|
2515
2645
|
|
2516
|
-
##### [location_rel](https://github.com/appium/ruby_lib/blob/
|
2646
|
+
##### [location_rel](https://github.com/appium/ruby_lib/blob/94f3348a8fbec111a7a958063d3a2e643051b2e9/lib/appium_lib/common/patch.rb#L31)
|
2517
2647
|
|
2518
2648
|
> def location_rel
|
2519
2649
|
|
@@ -2531,7 +2661,7 @@ __Returns:__
|
|
2531
2661
|
|
2532
2662
|
--
|
2533
2663
|
|
2534
|
-
##### [DEFAULT_HEADERS](https://github.com/appium/ruby_lib/blob/
|
2664
|
+
##### [DEFAULT_HEADERS](https://github.com/appium/ruby_lib/blob/94f3348a8fbec111a7a958063d3a2e643051b2e9/lib/appium_lib/common/patch.rb#L152)
|
2535
2665
|
|
2536
2666
|
> DEFAULT_HEADERS = { 'Accept' => CONTENT_TYPE, 'User-Agent' => "appium/ruby_lib/#{::Appium::VERSION}" }.freeze
|
2537
2667
|
|
@@ -2539,7 +2669,7 @@ __Returns:__
|
|
2539
2669
|
|
2540
2670
|
--
|
2541
2671
|
|
2542
|
-
##### [patch_remote_driver_commands](https://github.com/appium/ruby_lib/blob/
|
2672
|
+
##### [patch_remote_driver_commands](https://github.com/appium/ruby_lib/blob/94f3348a8fbec111a7a958063d3a2e643051b2e9/lib/appium_lib/common/patch.rb#L155)
|
2543
2673
|
|
2544
2674
|
> def patch_remote_driver_commands
|
2545
2675
|
|