appium_lib 4.0.0 → 4.1.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/android_tests/lib/android/specs/common/helper.rb +26 -13
- data/android_tests/lib/android/specs/driver.rb +4 -4
- data/docs/android_docs.md +249 -203
- data/docs/docs.md +2 -12
- data/docs/ios_docs.md +210 -196
- data/ios_tests/lib/ios/specs/common/helper.rb +19 -13
- data/lib/appium_lib/android/client_xpath.rb +47 -0
- data/lib/appium_lib/common/helper.rb +0 -58
- data/lib/appium_lib/common/version.rb +2 -2
- data/lib/appium_lib/common/wait.rb +99 -0
- data/lib/appium_lib/device/touch_actions.rb +3 -0
- data/lib/appium_lib/driver.rb +38 -10
- data/release_notes.md +13 -0
- metadata +4 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 698cb9e22f14cb133365f282b236ff2c3f9e0c41
|
4
|
+
data.tar.gz: 0f9b1f695ecac4416dc3f521dc2315aaf1ffb7d4
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: b57a644d394f4fac902f61603053cbfc59304238c4b7a5bcfaea0d6f431868ef6d625aed5a4bedf96ff0975edeb5cb0bf130634e2b85a69fb61e7a10b61ebf5a
|
7
|
+
data.tar.gz: c5000e575530d0e24dd5187edf6f592e3eb7494b61045f1c9bba880e3e24c34ad43ec7c6d5f8e5474f3cafecc0a3b77b38e7579af1405bda767222c4fb66dc03
|
@@ -1,21 +1,31 @@
|
|
1
1
|
describe 'common/helper' do
|
2
|
-
|
2
|
+
wait_opts = { timeout: 0.2, interval: 0.2 } # max_wait, interval
|
3
|
+
|
4
|
+
=begin
|
5
|
+
There's no `must_not_raise` as the opposite of must_raise
|
6
|
+
|
7
|
+
By default code is expected to not raise exceptions.
|
8
|
+
must_not_raise is a no-op.
|
9
|
+
=end
|
3
10
|
|
4
11
|
# wait is a success unless an error is raised
|
5
12
|
# max_wait=0 is infinity to use 0.1
|
6
13
|
t 'wait' do
|
7
14
|
# successful wait should not raise error
|
8
|
-
wait(
|
9
|
-
wait(
|
10
|
-
wait(
|
15
|
+
wait(wait_opts) { true }
|
16
|
+
wait(wait_opts) { false }
|
17
|
+
wait(wait_opts) { nil }
|
11
18
|
|
12
19
|
# failed wait should error
|
13
|
-
proc { wait(
|
20
|
+
proc { wait(wait_opts) { raise } }.must_raise Selenium::WebDriver::Error::TimeOutError
|
14
21
|
|
15
22
|
# regular rescue will not handle exceptions outside of StandardError hierarchy
|
16
23
|
# must rescue Exception explicitly to rescue everything
|
17
|
-
proc { wait(
|
18
|
-
proc { wait(0.2, 0.0) { raise NoMemoryError } }.must_raise
|
24
|
+
proc { wait(wait_opts) { raise NoMemoryError } }.must_raise Selenium::WebDriver::Error::TimeOutError
|
25
|
+
proc { wait(timeout: 0.2, interval: 0.0) { raise NoMemoryError } }.must_raise Selenium::WebDriver::Error::TimeOutError
|
26
|
+
|
27
|
+
# invalid keys are rejected
|
28
|
+
proc { wait(invalidkey: 2) { true } }.must_raise RuntimeError
|
19
29
|
end
|
20
30
|
|
21
31
|
t 'ignore' do
|
@@ -30,19 +40,22 @@ describe 'common/helper' do
|
|
30
40
|
# wait_true is a success unless the value is not true
|
31
41
|
t 'wait_true' do
|
32
42
|
# successful wait should not error
|
33
|
-
wait_true(
|
43
|
+
wait_true(wait_opts) { true }
|
34
44
|
|
35
45
|
# failed wait should error
|
36
|
-
proc { wait_true(
|
37
|
-
proc { wait_true(
|
46
|
+
proc { wait_true(wait_opts) { false } }.must_raise Selenium::WebDriver::Error::TimeOutError
|
47
|
+
proc { wait_true(wait_opts) { nil } }.must_raise Selenium::WebDriver::Error::TimeOutError
|
38
48
|
|
39
49
|
# raise should error
|
40
|
-
proc { wait_true(
|
50
|
+
proc { wait_true(wait_opts) { raise } }.must_raise Selenium::WebDriver::Error::TimeOutError
|
41
51
|
|
42
52
|
# regular rescue will not handle exceptions outside of StandardError hierarchy
|
43
53
|
# must rescue Exception explicitly to rescue everything
|
44
|
-
proc { wait_true(
|
45
|
-
proc { wait_true(0.2, 0.0) { raise NoMemoryError } }.must_raise
|
54
|
+
proc { wait_true(wait_opts) { raise NoMemoryError } }.must_raise Selenium::WebDriver::Error::TimeOutError
|
55
|
+
proc { wait_true(timeout: 0.2, interval: 0.0) { raise NoMemoryError } }.must_raise Selenium::WebDriver::Error::TimeOutError
|
56
|
+
|
57
|
+
# invalid keys are rejected
|
58
|
+
proc { wait_true(invalidkey: 2) { true } }.must_raise RuntimeError
|
46
59
|
end
|
47
60
|
|
48
61
|
t 'back' do
|
@@ -69,12 +69,12 @@ describe 'driver' do
|
|
69
69
|
end
|
70
70
|
|
71
71
|
t 'absolute_app_path' do
|
72
|
-
def absolute_app_path path
|
73
|
-
$driver.class.absolute_app_path path
|
72
|
+
def absolute_app_path path
|
73
|
+
$driver.class.absolute_app_path({caps: { app: path } })
|
74
74
|
end
|
75
75
|
|
76
|
-
def validate_path path
|
77
|
-
absolute_app_path(path).must_equal path
|
76
|
+
def validate_path path
|
77
|
+
absolute_app_path(path).must_equal path
|
78
78
|
end
|
79
79
|
|
80
80
|
validate_path 'sauce-storage:some_storage_suffix'
|
data/docs/android_docs.md
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
##### [load_appium_txt](https://github.com/appium/ruby_lib/blob/
|
1
|
+
##### [load_appium_txt](https://github.com/appium/ruby_lib/blob/a13158fb926212d84f26120c3bc5355c8cd34baf/lib/appium_lib/driver.rb#L72)
|
2
2
|
|
3
3
|
> def self.load_appium_txt opts={}
|
4
4
|
|
@@ -27,7 +27,7 @@ __Returns:__
|
|
27
27
|
|
28
28
|
--
|
29
29
|
|
30
|
-
##### [symbolize_keys](https://github.com/appium/ruby_lib/blob/
|
30
|
+
##### [symbolize_keys](https://github.com/appium/ruby_lib/blob/a13158fb926212d84f26120c3bc5355c8cd34baf/lib/appium_lib/driver.rb#L142)
|
31
31
|
|
32
32
|
> def self.symbolize_keys hash
|
33
33
|
|
@@ -38,15 +38,17 @@ https://github.com/rails/docrails/blob/a3b1105ada3da64acfa3843b164b14b734456a50/
|
|
38
38
|
|
39
39
|
--
|
40
40
|
|
41
|
-
##### [promote_singleton_appium_methods](https://github.com/appium/ruby_lib/blob/
|
42
|
-
|
43
|
-
> def self.promote_singleton_appium_methods main_module
|
41
|
+
##### [promote_singleton_appium_methods](https://github.com/appium/ruby_lib/blob/a13158fb926212d84f26120c3bc5355c8cd34baf/lib/appium_lib/driver.rb#L155)
|
44
42
|
|
43
|
+
> def self.promote_singleton_appium_methods modules
|
45
44
|
|
45
|
+
if modules is a module instead of an array, then the constants of
|
46
|
+
that module are promoted on.
|
47
|
+
otherwise, the array of modules will be used as the promotion target.
|
46
48
|
|
47
49
|
--
|
48
50
|
|
49
|
-
##### [promote_appium_methods](https://github.com/appium/ruby_lib/blob/
|
51
|
+
##### [promote_appium_methods](https://github.com/appium/ruby_lib/blob/a13158fb926212d84f26120c3bc5355c8cd34baf/lib/appium_lib/driver.rb#L195)
|
50
52
|
|
51
53
|
> def self.promote_appium_methods class_array
|
52
54
|
|
@@ -64,7 +66,7 @@ __Parameters:__
|
|
64
66
|
|
65
67
|
--
|
66
68
|
|
67
|
-
##### [global_webdriver_http_sleep](https://github.com/appium/ruby_lib/blob/
|
69
|
+
##### [global_webdriver_http_sleep](https://github.com/appium/ruby_lib/blob/a13158fb926212d84f26120c3bc5355c8cd34baf/lib/appium_lib/driver.rb#L228)
|
68
70
|
|
69
71
|
> def global_webdriver_http_sleep
|
70
72
|
|
@@ -72,7 +74,7 @@ The amount to sleep in seconds before every webdriver http call.
|
|
72
74
|
|
73
75
|
--
|
74
76
|
|
75
|
-
##### [global_webdriver_http_sleep=](https://github.com/appium/ruby_lib/blob/
|
77
|
+
##### [global_webdriver_http_sleep=](https://github.com/appium/ruby_lib/blob/a13158fb926212d84f26120c3bc5355c8cd34baf/lib/appium_lib/driver.rb#L228)
|
76
78
|
|
77
79
|
> def global_webdriver_http_sleep=(value)
|
78
80
|
|
@@ -80,7 +82,7 @@ The amount to sleep in seconds before every webdriver http call.
|
|
80
82
|
|
81
83
|
--
|
82
84
|
|
83
|
-
##### [caps](https://github.com/appium/ruby_lib/blob/
|
85
|
+
##### [caps](https://github.com/appium/ruby_lib/blob/a13158fb926212d84f26120c3bc5355c8cd34baf/lib/appium_lib/driver.rb#L228)
|
84
86
|
|
85
87
|
> def caps
|
86
88
|
|
@@ -88,7 +90,7 @@ The amount to sleep in seconds before every webdriver http call.
|
|
88
90
|
|
89
91
|
--
|
90
92
|
|
91
|
-
##### [caps=](https://github.com/appium/ruby_lib/blob/
|
93
|
+
##### [caps=](https://github.com/appium/ruby_lib/blob/a13158fb926212d84f26120c3bc5355c8cd34baf/lib/appium_lib/driver.rb#L228)
|
92
94
|
|
93
95
|
> def caps=(value)
|
94
96
|
|
@@ -96,7 +98,7 @@ The amount to sleep in seconds before every webdriver http call.
|
|
96
98
|
|
97
99
|
--
|
98
100
|
|
99
|
-
##### [custom_url](https://github.com/appium/ruby_lib/blob/
|
101
|
+
##### [custom_url](https://github.com/appium/ruby_lib/blob/a13158fb926212d84f26120c3bc5355c8cd34baf/lib/appium_lib/driver.rb#L228)
|
100
102
|
|
101
103
|
> def custom_url
|
102
104
|
|
@@ -104,7 +106,7 @@ The amount to sleep in seconds before every webdriver http call.
|
|
104
106
|
|
105
107
|
--
|
106
108
|
|
107
|
-
##### [custom_url=](https://github.com/appium/ruby_lib/blob/
|
109
|
+
##### [custom_url=](https://github.com/appium/ruby_lib/blob/a13158fb926212d84f26120c3bc5355c8cd34baf/lib/appium_lib/driver.rb#L228)
|
108
110
|
|
109
111
|
> def custom_url=(value)
|
110
112
|
|
@@ -112,7 +114,7 @@ The amount to sleep in seconds before every webdriver http call.
|
|
112
114
|
|
113
115
|
--
|
114
116
|
|
115
|
-
##### [export_session](https://github.com/appium/ruby_lib/blob/
|
117
|
+
##### [export_session](https://github.com/appium/ruby_lib/blob/a13158fb926212d84f26120c3bc5355c8cd34baf/lib/appium_lib/driver.rb#L228)
|
116
118
|
|
117
119
|
> def export_session
|
118
120
|
|
@@ -120,7 +122,7 @@ The amount to sleep in seconds before every webdriver http call.
|
|
120
122
|
|
121
123
|
--
|
122
124
|
|
123
|
-
##### [export_session=](https://github.com/appium/ruby_lib/blob/
|
125
|
+
##### [export_session=](https://github.com/appium/ruby_lib/blob/a13158fb926212d84f26120c3bc5355c8cd34baf/lib/appium_lib/driver.rb#L228)
|
124
126
|
|
125
127
|
> def export_session=(value)
|
126
128
|
|
@@ -128,7 +130,7 @@ The amount to sleep in seconds before every webdriver http call.
|
|
128
130
|
|
129
131
|
--
|
130
132
|
|
131
|
-
##### [default_wait](https://github.com/appium/ruby_lib/blob/
|
133
|
+
##### [default_wait](https://github.com/appium/ruby_lib/blob/a13158fb926212d84f26120c3bc5355c8cd34baf/lib/appium_lib/driver.rb#L228)
|
132
134
|
|
133
135
|
> def default_wait
|
134
136
|
|
@@ -141,7 +143,7 @@ __Returns:__
|
|
141
143
|
|
142
144
|
--
|
143
145
|
|
144
|
-
##### [default_wait=](https://github.com/appium/ruby_lib/blob/
|
146
|
+
##### [default_wait=](https://github.com/appium/ruby_lib/blob/a13158fb926212d84f26120c3bc5355c8cd34baf/lib/appium_lib/driver.rb#L228)
|
145
147
|
|
146
148
|
> def default_wait=(value)
|
147
149
|
|
@@ -149,7 +151,7 @@ The amount to sleep in seconds before every webdriver http call.
|
|
149
151
|
|
150
152
|
--
|
151
153
|
|
152
|
-
##### [last_waits](https://github.com/appium/ruby_lib/blob/
|
154
|
+
##### [last_waits](https://github.com/appium/ruby_lib/blob/a13158fb926212d84f26120c3bc5355c8cd34baf/lib/appium_lib/driver.rb#L228)
|
153
155
|
|
154
156
|
> def last_waits
|
155
157
|
|
@@ -157,7 +159,7 @@ The amount to sleep in seconds before every webdriver http call.
|
|
157
159
|
|
158
160
|
--
|
159
161
|
|
160
|
-
##### [last_waits=](https://github.com/appium/ruby_lib/blob/
|
162
|
+
##### [last_waits=](https://github.com/appium/ruby_lib/blob/a13158fb926212d84f26120c3bc5355c8cd34baf/lib/appium_lib/driver.rb#L228)
|
161
163
|
|
162
164
|
> def last_waits=(value)
|
163
165
|
|
@@ -165,7 +167,7 @@ The amount to sleep in seconds before every webdriver http call.
|
|
165
167
|
|
166
168
|
--
|
167
169
|
|
168
|
-
##### [sauce_username](https://github.com/appium/ruby_lib/blob/
|
170
|
+
##### [sauce_username](https://github.com/appium/ruby_lib/blob/a13158fb926212d84f26120c3bc5355c8cd34baf/lib/appium_lib/driver.rb#L228)
|
169
171
|
|
170
172
|
> def sauce_username
|
171
173
|
|
@@ -173,7 +175,7 @@ The amount to sleep in seconds before every webdriver http call.
|
|
173
175
|
|
174
176
|
--
|
175
177
|
|
176
|
-
##### [sauce_username=](https://github.com/appium/ruby_lib/blob/
|
178
|
+
##### [sauce_username=](https://github.com/appium/ruby_lib/blob/a13158fb926212d84f26120c3bc5355c8cd34baf/lib/appium_lib/driver.rb#L228)
|
177
179
|
|
178
180
|
> def sauce_username=(value)
|
179
181
|
|
@@ -181,7 +183,7 @@ The amount to sleep in seconds before every webdriver http call.
|
|
181
183
|
|
182
184
|
--
|
183
185
|
|
184
|
-
##### [sauce_access_key](https://github.com/appium/ruby_lib/blob/
|
186
|
+
##### [sauce_access_key](https://github.com/appium/ruby_lib/blob/a13158fb926212d84f26120c3bc5355c8cd34baf/lib/appium_lib/driver.rb#L228)
|
185
187
|
|
186
188
|
> def sauce_access_key
|
187
189
|
|
@@ -189,7 +191,7 @@ The amount to sleep in seconds before every webdriver http call.
|
|
189
191
|
|
190
192
|
--
|
191
193
|
|
192
|
-
##### [sauce_access_key=](https://github.com/appium/ruby_lib/blob/
|
194
|
+
##### [sauce_access_key=](https://github.com/appium/ruby_lib/blob/a13158fb926212d84f26120c3bc5355c8cd34baf/lib/appium_lib/driver.rb#L228)
|
193
195
|
|
194
196
|
> def sauce_access_key=(value)
|
195
197
|
|
@@ -197,7 +199,7 @@ The amount to sleep in seconds before every webdriver http call.
|
|
197
199
|
|
198
200
|
--
|
199
201
|
|
200
|
-
##### [appium_port](https://github.com/appium/ruby_lib/blob/
|
202
|
+
##### [appium_port](https://github.com/appium/ruby_lib/blob/a13158fb926212d84f26120c3bc5355c8cd34baf/lib/appium_lib/driver.rb#L228)
|
201
203
|
|
202
204
|
> def appium_port
|
203
205
|
|
@@ -205,7 +207,7 @@ The amount to sleep in seconds before every webdriver http call.
|
|
205
207
|
|
206
208
|
--
|
207
209
|
|
208
|
-
##### [appium_port=](https://github.com/appium/ruby_lib/blob/
|
210
|
+
##### [appium_port=](https://github.com/appium/ruby_lib/blob/a13158fb926212d84f26120c3bc5355c8cd34baf/lib/appium_lib/driver.rb#L228)
|
209
211
|
|
210
212
|
> def appium_port=(value)
|
211
213
|
|
@@ -213,7 +215,7 @@ The amount to sleep in seconds before every webdriver http call.
|
|
213
215
|
|
214
216
|
--
|
215
217
|
|
216
|
-
##### [appium_device](https://github.com/appium/ruby_lib/blob/
|
218
|
+
##### [appium_device](https://github.com/appium/ruby_lib/blob/a13158fb926212d84f26120c3bc5355c8cd34baf/lib/appium_lib/driver.rb#L228)
|
217
219
|
|
218
220
|
> def appium_device
|
219
221
|
|
@@ -221,7 +223,7 @@ The amount to sleep in seconds before every webdriver http call.
|
|
221
223
|
|
222
224
|
--
|
223
225
|
|
224
|
-
##### [appium_device=](https://github.com/appium/ruby_lib/blob/
|
226
|
+
##### [appium_device=](https://github.com/appium/ruby_lib/blob/a13158fb926212d84f26120c3bc5355c8cd34baf/lib/appium_lib/driver.rb#L228)
|
225
227
|
|
226
228
|
> def appium_device=(value)
|
227
229
|
|
@@ -229,7 +231,7 @@ The amount to sleep in seconds before every webdriver http call.
|
|
229
231
|
|
230
232
|
--
|
231
233
|
|
232
|
-
##### [appium_debug](https://github.com/appium/ruby_lib/blob/
|
234
|
+
##### [appium_debug](https://github.com/appium/ruby_lib/blob/a13158fb926212d84f26120c3bc5355c8cd34baf/lib/appium_lib/driver.rb#L228)
|
233
235
|
|
234
236
|
> def appium_debug
|
235
237
|
|
@@ -237,7 +239,7 @@ The amount to sleep in seconds before every webdriver http call.
|
|
237
239
|
|
238
240
|
--
|
239
241
|
|
240
|
-
##### [appium_debug=](https://github.com/appium/ruby_lib/blob/
|
242
|
+
##### [appium_debug=](https://github.com/appium/ruby_lib/blob/a13158fb926212d84f26120c3bc5355c8cd34baf/lib/appium_lib/driver.rb#L228)
|
241
243
|
|
242
244
|
> def appium_debug=(value)
|
243
245
|
|
@@ -245,7 +247,7 @@ The amount to sleep in seconds before every webdriver http call.
|
|
245
247
|
|
246
248
|
--
|
247
249
|
|
248
|
-
##### [initialize](https://github.com/appium/ruby_lib/blob/
|
250
|
+
##### [initialize](https://github.com/appium/ruby_lib/blob/a13158fb926212d84f26120c3bc5355c8cd34baf/lib/appium_lib/driver.rb#L259)
|
249
251
|
|
250
252
|
> def initialize opts={}
|
251
253
|
|
@@ -276,7 +278,7 @@ __Returns:__
|
|
276
278
|
|
277
279
|
--
|
278
280
|
|
279
|
-
##### [driver_attributes](https://github.com/appium/ruby_lib/blob/
|
281
|
+
##### [driver_attributes](https://github.com/appium/ruby_lib/blob/a13158fb926212d84f26120c3bc5355c8cd34baf/lib/appium_lib/driver.rb#L334)
|
280
282
|
|
281
283
|
> def driver_attributes
|
282
284
|
|
@@ -284,7 +286,7 @@ Returns a hash of the driver attributes
|
|
284
286
|
|
285
287
|
--
|
286
288
|
|
287
|
-
##### [device_is_android?](https://github.com/appium/ruby_lib/blob/
|
289
|
+
##### [device_is_android?](https://github.com/appium/ruby_lib/blob/a13158fb926212d84f26120c3bc5355c8cd34baf/lib/appium_lib/driver.rb#L354)
|
288
290
|
|
289
291
|
> def device_is_android?
|
290
292
|
|
@@ -296,7 +298,7 @@ __Returns:__
|
|
296
298
|
|
297
299
|
--
|
298
300
|
|
299
|
-
##### [appium_server_version](https://github.com/appium/ruby_lib/blob/
|
301
|
+
##### [appium_server_version](https://github.com/appium/ruby_lib/blob/a13158fb926212d84f26120c3bc5355c8cd34baf/lib/appium_lib/driver.rb#L370)
|
300
302
|
|
301
303
|
> def appium_server_version
|
302
304
|
|
@@ -317,19 +319,24 @@ __Returns:__
|
|
317
319
|
|
318
320
|
--
|
319
321
|
|
320
|
-
##### [absolute_app_path](https://github.com/appium/ruby_lib/blob/
|
322
|
+
##### [absolute_app_path](https://github.com/appium/ruby_lib/blob/a13158fb926212d84f26120c3bc5355c8cd34baf/lib/appium_lib/driver.rb#L382)
|
321
323
|
|
322
|
-
> def self.absolute_app_path
|
324
|
+
> def self.absolute_app_path opts
|
323
325
|
|
324
326
|
Converts app_path to an absolute path.
|
325
327
|
|
328
|
+
opts is the full options hash (caps and appium_lib). If server_url is set
|
329
|
+
then the app path is used as is.
|
330
|
+
|
331
|
+
if app isn't set then an error is raised.
|
332
|
+
|
326
333
|
__Returns:__
|
327
334
|
|
328
335
|
[String] APP_PATH as an absolute path
|
329
336
|
|
330
337
|
--
|
331
338
|
|
332
|
-
##### [server_url](https://github.com/appium/ruby_lib/blob/
|
339
|
+
##### [server_url](https://github.com/appium/ruby_lib/blob/a13158fb926212d84f26120c3bc5355c8cd34baf/lib/appium_lib/driver.rb#L415)
|
333
340
|
|
334
341
|
> def server_url
|
335
342
|
|
@@ -341,7 +348,7 @@ __Returns:__
|
|
341
348
|
|
342
349
|
--
|
343
350
|
|
344
|
-
##### [restart](https://github.com/appium/ruby_lib/blob/
|
351
|
+
##### [restart](https://github.com/appium/ruby_lib/blob/a13158fb926212d84f26120c3bc5355c8cd34baf/lib/appium_lib/driver.rb#L426)
|
345
352
|
|
346
353
|
> def restart
|
347
354
|
|
@@ -353,7 +360,7 @@ __Returns:__
|
|
353
360
|
|
354
361
|
--
|
355
362
|
|
356
|
-
##### [driver](https://github.com/appium/ruby_lib/blob/
|
363
|
+
##### [driver](https://github.com/appium/ruby_lib/blob/a13158fb926212d84f26120c3bc5355c8cd34baf/lib/appium_lib/driver.rb#L433)
|
357
364
|
|
358
365
|
> def driver
|
359
366
|
|
@@ -365,7 +372,7 @@ __Returns:__
|
|
365
372
|
|
366
373
|
--
|
367
374
|
|
368
|
-
##### [screenshot](https://github.com/appium/ruby_lib/blob/
|
375
|
+
##### [screenshot](https://github.com/appium/ruby_lib/blob/a13158fb926212d84f26120c3bc5355c8cd34baf/lib/appium_lib/driver.rb#L443)
|
369
376
|
|
370
377
|
> def screenshot png_save_path
|
371
378
|
|
@@ -383,7 +390,7 @@ __Returns:__
|
|
383
390
|
|
384
391
|
--
|
385
392
|
|
386
|
-
##### [driver_quit](https://github.com/appium/ruby_lib/blob/
|
393
|
+
##### [driver_quit](https://github.com/appium/ruby_lib/blob/a13158fb926212d84f26120c3bc5355c8cd34baf/lib/appium_lib/driver.rb#L450)
|
387
394
|
|
388
395
|
> def driver_quit
|
389
396
|
|
@@ -395,7 +402,7 @@ __Returns:__
|
|
395
402
|
|
396
403
|
--
|
397
404
|
|
398
|
-
##### [start_driver](https://github.com/appium/ruby_lib/blob/
|
405
|
+
##### [start_driver](https://github.com/appium/ruby_lib/blob/a13158fb926212d84f26120c3bc5355c8cd34baf/lib/appium_lib/driver.rb#L458)
|
399
406
|
|
400
407
|
> def start_driver
|
401
408
|
|
@@ -407,7 +414,7 @@ __Returns:__
|
|
407
414
|
|
408
415
|
--
|
409
416
|
|
410
|
-
##### [no_wait](https://github.com/appium/ruby_lib/blob/
|
417
|
+
##### [no_wait](https://github.com/appium/ruby_lib/blob/a13158fb926212d84f26120c3bc5355c8cd34baf/lib/appium_lib/driver.rb#L485)
|
411
418
|
|
412
419
|
> def no_wait
|
413
420
|
|
@@ -415,7 +422,7 @@ Set implicit wait and default_wait to zero.
|
|
415
422
|
|
416
423
|
--
|
417
424
|
|
418
|
-
##### [set_wait](https://github.com/appium/ruby_lib/blob/
|
425
|
+
##### [set_wait](https://github.com/appium/ruby_lib/blob/a13158fb926212d84f26120c3bc5355c8cd34baf/lib/appium_lib/driver.rb#L504)
|
419
426
|
|
420
427
|
> def set_wait timeout=nil
|
421
428
|
|
@@ -440,7 +447,7 @@ __Returns:__
|
|
440
447
|
|
441
448
|
--
|
442
449
|
|
443
|
-
##### [exists](https://github.com/appium/ruby_lib/blob/
|
450
|
+
##### [exists](https://github.com/appium/ruby_lib/blob/a13158fb926212d84f26120c3bc5355c8cd34baf/lib/appium_lib/driver.rb#L538)
|
444
451
|
|
445
452
|
> def exists pre_check=0, post_check=@default_wait, &search_block
|
446
453
|
|
@@ -466,7 +473,7 @@ __Returns:__
|
|
466
473
|
|
467
474
|
--
|
468
475
|
|
469
|
-
##### [execute_script](https://github.com/appium/ruby_lib/blob/
|
476
|
+
##### [execute_script](https://github.com/appium/ruby_lib/blob/a13158fb926212d84f26120c3bc5355c8cd34baf/lib/appium_lib/driver.rb#L562)
|
470
477
|
|
471
478
|
> def execute_script script, *args
|
472
479
|
|
@@ -484,7 +491,7 @@ __Returns:__
|
|
484
491
|
|
485
492
|
--
|
486
493
|
|
487
|
-
##### [find_elements](https://github.com/appium/ruby_lib/blob/
|
494
|
+
##### [find_elements](https://github.com/appium/ruby_lib/blob/a13158fb926212d84f26120c3bc5355c8cd34baf/lib/appium_lib/driver.rb#L570)
|
488
495
|
|
489
496
|
> def find_elements *args
|
490
497
|
|
@@ -500,7 +507,7 @@ __Returns:__
|
|
500
507
|
|
501
508
|
--
|
502
509
|
|
503
|
-
##### [find_element](https://github.com/appium/ruby_lib/blob/
|
510
|
+
##### [find_element](https://github.com/appium/ruby_lib/blob/a13158fb926212d84f26120c3bc5355c8cd34baf/lib/appium_lib/driver.rb#L578)
|
504
511
|
|
505
512
|
> def find_element *args
|
506
513
|
|
@@ -516,7 +523,7 @@ __Returns:__
|
|
516
523
|
|
517
524
|
--
|
518
525
|
|
519
|
-
##### [x](https://github.com/appium/ruby_lib/blob/
|
526
|
+
##### [x](https://github.com/appium/ruby_lib/blob/a13158fb926212d84f26120c3bc5355c8cd34baf/lib/appium_lib/driver.rb#L585)
|
520
527
|
|
521
528
|
> def x
|
522
529
|
|
@@ -529,7 +536,7 @@ __Returns:__
|
|
529
536
|
|
530
537
|
--
|
531
538
|
|
532
|
-
##### [NoArgMethods](https://github.com/appium/ruby_lib/blob/
|
539
|
+
##### [NoArgMethods](https://github.com/appium/ruby_lib/blob/a13158fb926212d84f26120c3bc5355c8cd34baf/lib/appium_lib/device/device.rb#L7)
|
533
540
|
|
534
541
|
> NoArgMethods = {
|
535
542
|
|
@@ -537,7 +544,7 @@ __Returns:__
|
|
537
544
|
|
538
545
|
--
|
539
546
|
|
540
|
-
##### [app_strings](https://github.com/appium/ruby_lib/blob/
|
547
|
+
##### [app_strings](https://github.com/appium/ruby_lib/blob/a13158fb926212d84f26120c3bc5355c8cd34baf/lib/appium_lib/device/device.rb#L22)
|
541
548
|
|
542
549
|
> def app_strings
|
543
550
|
|
@@ -548,7 +555,7 @@ app_strings #=> "TransitionsTitle"=>"Transitions", "WebTitle"=>"Web"
|
|
548
555
|
|
549
556
|
--
|
550
557
|
|
551
|
-
##### [background_app](https://github.com/appium/ruby_lib/blob/
|
558
|
+
##### [background_app](https://github.com/appium/ruby_lib/blob/a13158fb926212d84f26120c3bc5355c8cd34baf/lib/appium_lib/device/device.rb#L28)
|
552
559
|
|
553
560
|
> def background_app
|
554
561
|
|
@@ -557,7 +564,7 @@ This is a blocking application
|
|
557
564
|
|
558
565
|
--
|
559
566
|
|
560
|
-
##### [current_activity](https://github.com/appium/ruby_lib/blob/
|
567
|
+
##### [current_activity](https://github.com/appium/ruby_lib/blob/a13158fb926212d84f26120c3bc5355c8cd34baf/lib/appium_lib/device/device.rb#L33)
|
561
568
|
|
562
569
|
> def current_activity
|
563
570
|
|
@@ -565,7 +572,7 @@ This is a blocking application
|
|
565
572
|
|
566
573
|
--
|
567
574
|
|
568
|
-
##### [launch](https://github.com/appium/ruby_lib/blob/
|
575
|
+
##### [launch](https://github.com/appium/ruby_lib/blob/a13158fb926212d84f26120c3bc5355c8cd34baf/lib/appium_lib/device/device.rb#L35)
|
569
576
|
|
570
577
|
> def launch
|
571
578
|
|
@@ -573,7 +580,7 @@ Start the simulator and applicaton configured with desired capabilities
|
|
573
580
|
|
574
581
|
--
|
575
582
|
|
576
|
-
##### [reset](https://github.com/appium/ruby_lib/blob/
|
583
|
+
##### [reset](https://github.com/appium/ruby_lib/blob/a13158fb926212d84f26120c3bc5355c8cd34baf/lib/appium_lib/device/device.rb#L38)
|
577
584
|
|
578
585
|
> def reset
|
579
586
|
|
@@ -581,7 +588,7 @@ Reset the device, relaunching the application.
|
|
581
588
|
|
582
589
|
--
|
583
590
|
|
584
|
-
##### [shake](https://github.com/appium/ruby_lib/blob/
|
591
|
+
##### [shake](https://github.com/appium/ruby_lib/blob/a13158fb926212d84f26120c3bc5355c8cd34baf/lib/appium_lib/device/device.rb#L41)
|
585
592
|
|
586
593
|
> def shake
|
587
594
|
|
@@ -589,7 +596,7 @@ Cause the device to shake
|
|
589
596
|
|
590
597
|
--
|
591
598
|
|
592
|
-
##### [toggle_flight_mode](https://github.com/appium/ruby_lib/blob/
|
599
|
+
##### [toggle_flight_mode](https://github.com/appium/ruby_lib/blob/a13158fb926212d84f26120c3bc5355c8cd34baf/lib/appium_lib/device/device.rb#L44)
|
593
600
|
|
594
601
|
> def toggle_flight_mode
|
595
602
|
|
@@ -597,7 +604,7 @@ toggle flight mode on or off
|
|
597
604
|
|
598
605
|
--
|
599
606
|
|
600
|
-
##### [hide_keyboard](https://github.com/appium/ruby_lib/blob/
|
607
|
+
##### [hide_keyboard](https://github.com/appium/ruby_lib/blob/a13158fb926212d84f26120c3bc5355c8cd34baf/lib/appium_lib/device/device.rb#L47)
|
601
608
|
|
602
609
|
> def hide_keyboard
|
603
610
|
|
@@ -610,7 +617,7 @@ Defaults to 'Done'.
|
|
610
617
|
|
611
618
|
--
|
612
619
|
|
613
|
-
##### [press_keycode](https://github.com/appium/ruby_lib/blob/
|
620
|
+
##### [press_keycode](https://github.com/appium/ruby_lib/blob/a13158fb926212d84f26120c3bc5355c8cd34baf/lib/appium_lib/device/device.rb#L56)
|
614
621
|
|
615
622
|
> def press_keycode
|
616
623
|
|
@@ -625,7 +632,7 @@ __Parameters:__
|
|
625
632
|
|
626
633
|
--
|
627
634
|
|
628
|
-
##### [long_press_keycode](https://github.com/appium/ruby_lib/blob/
|
635
|
+
##### [long_press_keycode](https://github.com/appium/ruby_lib/blob/a13158fb926212d84f26120c3bc5355c8cd34baf/lib/appium_lib/device/device.rb#L62)
|
629
636
|
|
630
637
|
> def long_press_keycode
|
631
638
|
|
@@ -640,7 +647,7 @@ __Parameters:__
|
|
640
647
|
|
641
648
|
--
|
642
649
|
|
643
|
-
##### [push_file](https://github.com/appium/ruby_lib/blob/
|
650
|
+
##### [push_file](https://github.com/appium/ruby_lib/blob/a13158fb926212d84f26120c3bc5355c8cd34baf/lib/appium_lib/device/device.rb#L68)
|
644
651
|
|
645
652
|
> def push_file
|
646
653
|
|
@@ -654,7 +661,7 @@ __Parameters:__
|
|
654
661
|
|
655
662
|
--
|
656
663
|
|
657
|
-
##### [pull_file](https://github.com/appium/ruby_lib/blob/
|
664
|
+
##### [pull_file](https://github.com/appium/ruby_lib/blob/a13158fb926212d84f26120c3bc5355c8cd34baf/lib/appium_lib/device/device.rb#L73)
|
658
665
|
|
659
666
|
> def pull_file
|
660
667
|
|
@@ -671,7 +678,7 @@ __Parameters:__
|
|
671
678
|
|
672
679
|
--
|
673
680
|
|
674
|
-
##### [pull_folder](https://github.com/appium/ruby_lib/blob/
|
681
|
+
##### [pull_folder](https://github.com/appium/ruby_lib/blob/a13158fb926212d84f26120c3bc5355c8cd34baf/lib/appium_lib/device/device.rb#L83)
|
675
682
|
|
676
683
|
> def pull_folder
|
677
684
|
|
@@ -686,7 +693,7 @@ __Parameters:__
|
|
686
693
|
|
687
694
|
--
|
688
695
|
|
689
|
-
##### [extend_search_contexts](https://github.com/appium/ruby_lib/blob/
|
696
|
+
##### [extend_search_contexts](https://github.com/appium/ruby_lib/blob/a13158fb926212d84f26120c3bc5355c8cd34baf/lib/appium_lib/device/device.rb#L274)
|
690
697
|
|
691
698
|
> def extend_search_contexts
|
692
699
|
|
@@ -694,7 +701,7 @@ __Parameters:__
|
|
694
701
|
|
695
702
|
--
|
696
703
|
|
697
|
-
##### [accessiblity_id_find](https://github.com/appium/ruby_lib/blob/
|
704
|
+
##### [accessiblity_id_find](https://github.com/appium/ruby_lib/blob/a13158fb926212d84f26120c3bc5355c8cd34baf/lib/appium_lib/device/device.rb#L274)
|
698
705
|
|
699
706
|
> def accessiblity_id_find
|
700
707
|
|
@@ -706,7 +713,7 @@ find_element/s with their accessibility_id
|
|
706
713
|
|
707
714
|
--
|
708
715
|
|
709
|
-
##### [add_touch_actions](https://github.com/appium/ruby_lib/blob/
|
716
|
+
##### [add_touch_actions](https://github.com/appium/ruby_lib/blob/a13158fb926212d84f26120c3bc5355c8cd34baf/lib/appium_lib/device/device.rb#L280)
|
710
717
|
|
711
718
|
> def add_touch_actions
|
712
719
|
|
@@ -714,7 +721,7 @@ find_element/s with their accessibility_id
|
|
714
721
|
|
715
722
|
--
|
716
723
|
|
717
|
-
##### [set_context](https://github.com/appium/ruby_lib/blob/
|
724
|
+
##### [set_context](https://github.com/appium/ruby_lib/blob/a13158fb926212d84f26120c3bc5355c8cd34baf/lib/appium_lib/device/device.rb#L304)
|
718
725
|
|
719
726
|
> def set_context
|
720
727
|
|
@@ -729,7 +736,7 @@ __Parameters:__
|
|
729
736
|
|
730
737
|
--
|
731
738
|
|
732
|
-
##### [current_context](https://github.com/appium/ruby_lib/blob/
|
739
|
+
##### [current_context](https://github.com/appium/ruby_lib/blob/a13158fb926212d84f26120c3bc5355c8cd34baf/lib/appium_lib/device/device.rb#L312)
|
733
740
|
|
734
741
|
> def current_context
|
735
742
|
|
@@ -741,7 +748,7 @@ __Returns:__
|
|
741
748
|
|
742
749
|
--
|
743
750
|
|
744
|
-
##### [available_contexts](https://github.com/appium/ruby_lib/blob/
|
751
|
+
##### [available_contexts](https://github.com/appium/ruby_lib/blob/a13158fb926212d84f26120c3bc5355c8cd34baf/lib/appium_lib/device/device.rb#L315)
|
745
752
|
|
746
753
|
> def available_contexts
|
747
754
|
|
@@ -753,7 +760,7 @@ __Returns:__
|
|
753
760
|
|
754
761
|
--
|
755
762
|
|
756
|
-
##### [within_context](https://github.com/appium/ruby_lib/blob/
|
763
|
+
##### [within_context](https://github.com/appium/ruby_lib/blob/a13158fb926212d84f26120c3bc5355c8cd34baf/lib/appium_lib/device/device.rb#L325)
|
757
764
|
|
758
765
|
> def within_context(context)
|
759
766
|
|
@@ -769,7 +776,7 @@ __Parameters:__
|
|
769
776
|
|
770
777
|
--
|
771
778
|
|
772
|
-
##### [switch_to_default_context](https://github.com/appium/ruby_lib/blob/
|
779
|
+
##### [switch_to_default_context](https://github.com/appium/ruby_lib/blob/a13158fb926212d84f26120c3bc5355c8cd34baf/lib/appium_lib/device/device.rb#L333)
|
773
780
|
|
774
781
|
> def switch_to_default_context
|
775
782
|
|
@@ -777,7 +784,7 @@ Change to the default context. This is equivalent to `set_context nil`.
|
|
777
784
|
|
778
785
|
--
|
779
786
|
|
780
|
-
##### [pinch](https://github.com/appium/ruby_lib/blob/
|
787
|
+
##### [pinch](https://github.com/appium/ruby_lib/blob/a13158fb926212d84f26120c3bc5355c8cd34baf/lib/appium_lib/device/multi_touch.rb#L30)
|
781
788
|
|
782
789
|
> def pinch(percentage=25, auto_perform=true)
|
783
790
|
|
@@ -796,7 +803,7 @@ __Parameters:__
|
|
796
803
|
|
797
804
|
--
|
798
805
|
|
799
|
-
##### [zoom](https://github.com/appium/ruby_lib/blob/
|
806
|
+
##### [zoom](https://github.com/appium/ruby_lib/blob/a13158fb926212d84f26120c3bc5355c8cd34baf/lib/appium_lib/device/multi_touch.rb#L58)
|
800
807
|
|
801
808
|
> def zoom(percentage=200, auto_perform=true)
|
802
809
|
|
@@ -815,7 +822,7 @@ __Parameters:__
|
|
815
822
|
|
816
823
|
--
|
817
824
|
|
818
|
-
##### [initialize](https://github.com/appium/ruby_lib/blob/
|
825
|
+
##### [initialize](https://github.com/appium/ruby_lib/blob/a13158fb926212d84f26120c3bc5355c8cd34baf/lib/appium_lib/device/multi_touch.rb#L79)
|
819
826
|
|
820
827
|
> def initialize
|
821
828
|
|
@@ -827,7 +834,7 @@ __Returns:__
|
|
827
834
|
|
828
835
|
--
|
829
836
|
|
830
|
-
##### [add](https://github.com/appium/ruby_lib/blob/
|
837
|
+
##### [add](https://github.com/appium/ruby_lib/blob/a13158fb926212d84f26120c3bc5355c8cd34baf/lib/appium_lib/device/multi_touch.rb#L85)
|
831
838
|
|
832
839
|
> def add(chain)
|
833
840
|
|
@@ -839,7 +846,7 @@ __Parameters:__
|
|
839
846
|
|
840
847
|
--
|
841
848
|
|
842
|
-
##### [perform](https://github.com/appium/ruby_lib/blob/
|
849
|
+
##### [perform](https://github.com/appium/ruby_lib/blob/a13158fb926212d84f26120c3bc5355c8cd34baf/lib/appium_lib/device/multi_touch.rb#L90)
|
843
850
|
|
844
851
|
> def perform
|
845
852
|
|
@@ -847,7 +854,7 @@ Ask Appium to perform the actions
|
|
847
854
|
|
848
855
|
--
|
849
856
|
|
850
|
-
##### [ACTIONS](https://github.com/appium/ruby_lib/blob/
|
857
|
+
##### [ACTIONS](https://github.com/appium/ruby_lib/blob/a13158fb926212d84f26120c3bc5355c8cd34baf/lib/appium_lib/device/touch_actions.rb#L12)
|
851
858
|
|
852
859
|
> ACTIONS = [:move_to, :long_press, :press, :release, :tap, :wait, :perform]
|
853
860
|
|
@@ -855,7 +862,7 @@ Ask Appium to perform the actions
|
|
855
862
|
|
856
863
|
--
|
857
864
|
|
858
|
-
##### [COMPLEX_ACTIONS](https://github.com/appium/ruby_lib/blob/
|
865
|
+
##### [COMPLEX_ACTIONS](https://github.com/appium/ruby_lib/blob/a13158fb926212d84f26120c3bc5355c8cd34baf/lib/appium_lib/device/touch_actions.rb#L13)
|
859
866
|
|
860
867
|
> COMPLEX_ACTIONS = [:swipe]
|
861
868
|
|
@@ -863,7 +870,7 @@ Ask Appium to perform the actions
|
|
863
870
|
|
864
871
|
--
|
865
872
|
|
866
|
-
##### [actions](https://github.com/appium/ruby_lib/blob/
|
873
|
+
##### [actions](https://github.com/appium/ruby_lib/blob/a13158fb926212d84f26120c3bc5355c8cd34baf/lib/appium_lib/device/touch_actions.rb#L27)
|
867
874
|
|
868
875
|
> def actions
|
869
876
|
|
@@ -871,7 +878,7 @@ Returns the value of attribute actions
|
|
871
878
|
|
872
879
|
--
|
873
880
|
|
874
|
-
##### [initialize](https://github.com/appium/ruby_lib/blob/
|
881
|
+
##### [initialize](https://github.com/appium/ruby_lib/blob/a13158fb926212d84f26120c3bc5355c8cd34baf/lib/appium_lib/device/touch_actions.rb#L29)
|
875
882
|
|
876
883
|
> def initialize
|
877
884
|
|
@@ -883,7 +890,7 @@ __Returns:__
|
|
883
890
|
|
884
891
|
--
|
885
892
|
|
886
|
-
##### [move_to](https://github.com/appium/ruby_lib/blob/
|
893
|
+
##### [move_to](https://github.com/appium/ruby_lib/blob/a13158fb926212d84f26120c3bc5355c8cd34baf/lib/appium_lib/device/touch_actions.rb#L37)
|
887
894
|
|
888
895
|
> def move_to(opts)
|
889
896
|
|
@@ -895,7 +902,7 @@ __Parameters:__
|
|
895
902
|
|
896
903
|
--
|
897
904
|
|
898
|
-
##### [long_press](https://github.com/appium/ruby_lib/blob/
|
905
|
+
##### [long_press](https://github.com/appium/ruby_lib/blob/a13158fb926212d84f26120c3bc5355c8cd34baf/lib/appium_lib/device/touch_actions.rb#L47)
|
899
906
|
|
900
907
|
> def long_press(opts)
|
901
908
|
|
@@ -913,7 +920,7 @@ __Parameters:__
|
|
913
920
|
|
914
921
|
--
|
915
922
|
|
916
|
-
##### [press](https://github.com/appium/ruby_lib/blob/
|
923
|
+
##### [press](https://github.com/appium/ruby_lib/blob/a13158fb926212d84f26120c3bc5355c8cd34baf/lib/appium_lib/device/touch_actions.rb#L59)
|
917
924
|
|
918
925
|
> def press(opts)
|
919
926
|
|
@@ -926,7 +933,7 @@ __Parameters:__
|
|
926
933
|
|
927
934
|
--
|
928
935
|
|
929
|
-
##### [release](https://github.com/appium/ruby_lib/blob/
|
936
|
+
##### [release](https://github.com/appium/ruby_lib/blob/a13158fb926212d84f26120c3bc5355c8cd34baf/lib/appium_lib/device/touch_actions.rb#L70)
|
930
937
|
|
931
938
|
> def release(opts=nil)
|
932
939
|
|
@@ -938,7 +945,7 @@ __Parameters:__
|
|
938
945
|
|
939
946
|
--
|
940
947
|
|
941
|
-
##### [tap](https://github.com/appium/ruby_lib/blob/
|
948
|
+
##### [tap](https://github.com/appium/ruby_lib/blob/a13158fb926212d84f26120c3bc5355c8cd34baf/lib/appium_lib/device/touch_actions.rb#L81)
|
942
949
|
|
943
950
|
> def tap(opts)
|
944
951
|
|
@@ -950,7 +957,7 @@ __Parameters:__
|
|
950
957
|
|
951
958
|
--
|
952
959
|
|
953
|
-
##### [wait](https://github.com/appium/ruby_lib/blob/
|
960
|
+
##### [wait](https://github.com/appium/ruby_lib/blob/a13158fb926212d84f26120c3bc5355c8cd34baf/lib/appium_lib/device/touch_actions.rb#L90)
|
954
961
|
|
955
962
|
> def wait(milliseconds)
|
956
963
|
|
@@ -962,19 +969,21 @@ __Parameters:__
|
|
962
969
|
|
963
970
|
--
|
964
971
|
|
965
|
-
##### [swipe](https://github.com/appium/ruby_lib/blob/
|
972
|
+
##### [swipe](https://github.com/appium/ruby_lib/blob/a13158fb926212d84f26120c3bc5355c8cd34baf/lib/appium_lib/device/touch_actions.rb#L104)
|
966
973
|
|
967
974
|
> def swipe(opts)
|
968
975
|
|
969
976
|
Convenience method to peform a swipe.
|
970
977
|
|
978
|
+
Note that iOS 7 simulators have broken swipe.
|
979
|
+
|
971
980
|
__Parameters:__
|
972
981
|
|
973
982
|
[Hash] opts - a customizable set of options
|
974
983
|
|
975
984
|
--
|
976
985
|
|
977
|
-
##### [perform](https://github.com/appium/ruby_lib/blob/
|
986
|
+
##### [perform](https://github.com/appium/ruby_lib/blob/a13158fb926212d84f26120c3bc5355c8cd34baf/lib/appium_lib/device/touch_actions.rb#L119)
|
978
987
|
|
979
988
|
> def perform
|
980
989
|
|
@@ -982,7 +991,7 @@ Ask the driver to perform all actions in this action chain.
|
|
982
991
|
|
983
992
|
--
|
984
993
|
|
985
|
-
##### [cancel](https://github.com/appium/ruby_lib/blob/
|
994
|
+
##### [cancel](https://github.com/appium/ruby_lib/blob/a13158fb926212d84f26120c3bc5355c8cd34baf/lib/appium_lib/device/touch_actions.rb#L125)
|
986
995
|
|
987
996
|
> def cancel
|
988
997
|
|
@@ -990,7 +999,7 @@ Does nothing, currently.
|
|
990
999
|
|
991
1000
|
--
|
992
1001
|
|
993
|
-
##### [chain_method](https://github.com/appium/ruby_lib/blob/
|
1002
|
+
##### [chain_method](https://github.com/appium/ruby_lib/blob/a13158fb926212d84f26120c3bc5355c8cd34baf/lib/appium_lib/device/touch_actions.rb#L133)
|
994
1003
|
|
995
1004
|
> def chain_method(method, args=nil)
|
996
1005
|
|
@@ -998,7 +1007,7 @@ Does nothing, currently.
|
|
998
1007
|
|
999
1008
|
--
|
1000
1009
|
|
1001
|
-
##### [args_with_ele_ref](https://github.com/appium/ruby_lib/blob/
|
1010
|
+
##### [args_with_ele_ref](https://github.com/appium/ruby_lib/blob/a13158fb926212d84f26120c3bc5355c8cd34baf/lib/appium_lib/device/touch_actions.rb#L142)
|
1002
1011
|
|
1003
1012
|
> def args_with_ele_ref(args)
|
1004
1013
|
|
@@ -1006,65 +1015,70 @@ Does nothing, currently.
|
|
1006
1015
|
|
1007
1016
|
--
|
1008
1017
|
|
1009
|
-
##### [
|
1018
|
+
##### [_generic_wait](https://github.com/appium/ruby_lib/blob/a13158fb926212d84f26120c3bc5355c8cd34baf/lib/appium_lib/common/wait.rb#L10)
|
1010
1019
|
|
1011
|
-
> def
|
1020
|
+
> def _generic_wait opts={}, &block
|
1012
1021
|
|
1013
|
-
|
1014
|
-
|
1015
|
-
if .call doesn't raise an exception then it will stop waiting.
|
1022
|
+
Wait code from the selenium Ruby gem
|
1023
|
+
https://github.com/SeleniumHQ/selenium/blob/cf501dda3f0ed12233de51ce8170c0e8090f0c20/rb/lib/selenium/webdriver/common/wait.rb
|
1016
1024
|
|
1017
|
-
|
1025
|
+
--
|
1018
1026
|
|
1019
|
-
|
1027
|
+
##### [_process_wait_opts](https://github.com/appium/ruby_lib/blob/a13158fb926212d84f26120c3bc5355c8cd34baf/lib/appium_lib/common/wait.rb#L55)
|
1020
1028
|
|
1021
|
-
|
1029
|
+
> def _process_wait_opts opts
|
1022
1030
|
|
1023
|
-
|
1024
|
-
Note that max wait 0 means infinity.
|
1031
|
+
process opts before calling _generic_wait
|
1025
1032
|
|
1026
|
-
|
1033
|
+
--
|
1027
1034
|
|
1028
|
-
|
1035
|
+
##### [wait_true](https://github.com/appium/ruby_lib/blob/a13158fb926212d84f26120c3bc5355c8cd34baf/lib/appium_lib/common/wait.rb#L76)
|
1029
1036
|
|
1030
|
-
|
1037
|
+
> def wait_true opts={}, &block
|
1031
1038
|
|
1032
|
-
|
1039
|
+
Check every interval seconds to see if block.call returns a truthy value.
|
1040
|
+
Note this isn't a strict boolean true, any truthy value is accepted.
|
1041
|
+
false and nil are considered failures.
|
1042
|
+
Give up after timeout seconds.
|
1033
1043
|
|
1034
|
-
|
1044
|
+
Wait code from the selenium Ruby gem
|
1045
|
+
https://github.com/SeleniumHQ/selenium/blob/cf501dda3f0ed12233de51ce8170c0e8090f0c20/rb/lib/selenium/webdriver/common/wait.rb
|
1035
1046
|
|
1036
|
-
|
1047
|
+
If only a number is provided then it's treated as the timeout value.
|
1037
1048
|
|
1038
|
-
|
1049
|
+
__Parameters:__
|
1039
1050
|
|
1040
|
-
|
1051
|
+
[Hash] opts - Options
|
1041
1052
|
|
1042
1053
|
--
|
1043
1054
|
|
1044
|
-
##### [
|
1055
|
+
##### [wait](https://github.com/appium/ruby_lib/blob/a13158fb926212d84f26120c3bc5355c8cd34baf/lib/appium_lib/common/wait.rb#L94)
|
1045
1056
|
|
1046
|
-
> def
|
1057
|
+
> def wait opts={}, &block
|
1047
1058
|
|
1048
|
-
Check every
|
1049
|
-
|
1050
|
-
|
1051
|
-
|
1059
|
+
Check every interval seconds to see if block.call doesn't raise an exception.
|
1060
|
+
Give up after timeout seconds.
|
1061
|
+
|
1062
|
+
Wait code from the selenium Ruby gem
|
1063
|
+
https://github.com/SeleniumHQ/selenium/blob/cf501dda3f0ed12233de51ce8170c0e8090f0c20/rb/lib/selenium/webdriver/common/wait.rb
|
1064
|
+
|
1065
|
+
If only a number is provided then it's treated as the timeout value.
|
1052
1066
|
|
1053
1067
|
__Parameters:__
|
1054
1068
|
|
1055
|
-
[
|
1069
|
+
[Hash] opts - Options
|
1056
1070
|
|
1057
|
-
|
1071
|
+
--
|
1058
1072
|
|
1059
|
-
|
1073
|
+
##### [ignore](https://github.com/appium/ruby_lib/blob/a13158fb926212d84f26120c3bc5355c8cd34baf/lib/appium_lib/common/helper.rb#L22)
|
1060
1074
|
|
1061
|
-
|
1075
|
+
> def ignore &block
|
1062
1076
|
|
1063
|
-
|
1077
|
+
Return block.call and ignore any exceptions.
|
1064
1078
|
|
1065
1079
|
--
|
1066
1080
|
|
1067
|
-
##### [back](https://github.com/appium/ruby_lib/blob/
|
1081
|
+
##### [back](https://github.com/appium/ruby_lib/blob/a13158fb926212d84f26120c3bc5355c8cd34baf/lib/appium_lib/common/helper.rb#L31)
|
1068
1082
|
|
1069
1083
|
> def back
|
1070
1084
|
|
@@ -1076,7 +1090,7 @@ __Returns:__
|
|
1076
1090
|
|
1077
1091
|
--
|
1078
1092
|
|
1079
|
-
##### [session_id](https://github.com/appium/ruby_lib/blob/
|
1093
|
+
##### [session_id](https://github.com/appium/ruby_lib/blob/a13158fb926212d84f26120c3bc5355c8cd34baf/lib/appium_lib/common/helper.rb#L36)
|
1080
1094
|
|
1081
1095
|
> def session_id
|
1082
1096
|
|
@@ -1084,7 +1098,7 @@ For Sauce Labs reporting. Returns the current session id.
|
|
1084
1098
|
|
1085
1099
|
--
|
1086
1100
|
|
1087
|
-
##### [xpath](https://github.com/appium/ruby_lib/blob/
|
1101
|
+
##### [xpath](https://github.com/appium/ruby_lib/blob/a13158fb926212d84f26120c3bc5355c8cd34baf/lib/appium_lib/common/helper.rb#L44)
|
1088
1102
|
|
1089
1103
|
> def xpath xpath_str
|
1090
1104
|
|
@@ -1100,7 +1114,7 @@ __Returns:__
|
|
1100
1114
|
|
1101
1115
|
--
|
1102
1116
|
|
1103
|
-
##### [xpaths](https://github.com/appium/ruby_lib/blob/
|
1117
|
+
##### [xpaths](https://github.com/appium/ruby_lib/blob/a13158fb926212d84f26120c3bc5355c8cd34baf/lib/appium_lib/common/helper.rb#L52)
|
1104
1118
|
|
1105
1119
|
> def xpaths xpath_str
|
1106
1120
|
|
@@ -1116,7 +1130,7 @@ __Returns:__
|
|
1116
1130
|
|
1117
1131
|
--
|
1118
1132
|
|
1119
|
-
##### [source](https://github.com/appium/ruby_lib/blob/
|
1133
|
+
##### [source](https://github.com/appium/ruby_lib/blob/a13158fb926212d84f26120c3bc5355c8cd34baf/lib/appium_lib/common/helper.rb#L58)
|
1120
1134
|
|
1121
1135
|
> def source
|
1122
1136
|
|
@@ -1128,7 +1142,7 @@ __Returns:__
|
|
1128
1142
|
|
1129
1143
|
--
|
1130
1144
|
|
1131
|
-
##### [get_source](https://github.com/appium/ruby_lib/blob/
|
1145
|
+
##### [get_source](https://github.com/appium/ruby_lib/blob/a13158fb926212d84f26120c3bc5355c8cd34baf/lib/appium_lib/common/helper.rb#L76)
|
1132
1146
|
|
1133
1147
|
> def get_source
|
1134
1148
|
|
@@ -1141,7 +1155,7 @@ __Returns:__
|
|
1141
1155
|
|
1142
1156
|
--
|
1143
1157
|
|
1144
|
-
##### [result](https://github.com/appium/ruby_lib/blob/
|
1158
|
+
##### [result](https://github.com/appium/ruby_lib/blob/a13158fb926212d84f26120c3bc5355c8cd34baf/lib/appium_lib/common/helper.rb#L83)
|
1145
1159
|
|
1146
1160
|
> def result
|
1147
1161
|
|
@@ -1149,7 +1163,7 @@ Returns the value of attribute result
|
|
1149
1163
|
|
1150
1164
|
--
|
1151
1165
|
|
1152
|
-
##### [initialize](https://github.com/appium/ruby_lib/blob/
|
1166
|
+
##### [initialize](https://github.com/appium/ruby_lib/blob/a13158fb926212d84f26120c3bc5355c8cd34baf/lib/appium_lib/common/helper.rb#L85)
|
1153
1167
|
|
1154
1168
|
> def initialize
|
1155
1169
|
|
@@ -1161,7 +1175,7 @@ __Returns:__
|
|
1161
1175
|
|
1162
1176
|
--
|
1163
1177
|
|
1164
|
-
##### [reset](https://github.com/appium/ruby_lib/blob/
|
1178
|
+
##### [reset](https://github.com/appium/ruby_lib/blob/a13158fb926212d84f26120c3bc5355c8cd34baf/lib/appium_lib/common/helper.rb#L89)
|
1165
1179
|
|
1166
1180
|
> def reset
|
1167
1181
|
|
@@ -1169,7 +1183,7 @@ __Returns:__
|
|
1169
1183
|
|
1170
1184
|
--
|
1171
1185
|
|
1172
|
-
##### [start_element](https://github.com/appium/ruby_lib/blob/
|
1186
|
+
##### [start_element](https://github.com/appium/ruby_lib/blob/a13158fb926212d84f26120c3bc5355c8cd34baf/lib/appium_lib/common/helper.rb#L94)
|
1173
1187
|
|
1174
1188
|
> def start_element name, attrs = []
|
1175
1189
|
|
@@ -1177,7 +1191,7 @@ http://nokogiri.org/Nokogiri/XML/SAX/Document.html
|
|
1177
1191
|
|
1178
1192
|
--
|
1179
1193
|
|
1180
|
-
##### [formatted_result](https://github.com/appium/ruby_lib/blob/
|
1194
|
+
##### [formatted_result](https://github.com/appium/ruby_lib/blob/a13158fb926212d84f26120c3bc5355c8cd34baf/lib/appium_lib/common/helper.rb#L100)
|
1181
1195
|
|
1182
1196
|
> def formatted_result
|
1183
1197
|
|
@@ -1185,7 +1199,7 @@ http://nokogiri.org/Nokogiri/XML/SAX/Document.html
|
|
1185
1199
|
|
1186
1200
|
--
|
1187
1201
|
|
1188
|
-
##### [get_page_class](https://github.com/appium/ruby_lib/blob/
|
1202
|
+
##### [get_page_class](https://github.com/appium/ruby_lib/blob/a13158fb926212d84f26120c3bc5355c8cd34baf/lib/appium_lib/common/helper.rb#L111)
|
1189
1203
|
|
1190
1204
|
> def get_page_class
|
1191
1205
|
|
@@ -1193,7 +1207,7 @@ Returns a string of class counts of visible elements.
|
|
1193
1207
|
|
1194
1208
|
--
|
1195
1209
|
|
1196
|
-
##### [page_class](https://github.com/appium/ruby_lib/blob/
|
1210
|
+
##### [page_class](https://github.com/appium/ruby_lib/blob/a13158fb926212d84f26120c3bc5355c8cd34baf/lib/appium_lib/common/helper.rb#L122)
|
1197
1211
|
|
1198
1212
|
> def page_class
|
1199
1213
|
|
@@ -1202,7 +1216,7 @@ Useful for appium_console.
|
|
1202
1216
|
|
1203
1217
|
--
|
1204
1218
|
|
1205
|
-
##### [px_to_window_rel](https://github.com/appium/ruby_lib/blob/
|
1219
|
+
##### [px_to_window_rel](https://github.com/appium/ruby_lib/blob/a13158fb926212d84f26120c3bc5355c8cd34baf/lib/appium_lib/common/helper.rb#L132)
|
1206
1220
|
|
1207
1221
|
> def px_to_window_rel opts={}
|
1208
1222
|
|
@@ -1214,7 +1228,7 @@ px_to_window_rel x: 50, y: 150
|
|
1214
1228
|
|
1215
1229
|
--
|
1216
1230
|
|
1217
|
-
##### [xml_keys](https://github.com/appium/ruby_lib/blob/
|
1231
|
+
##### [xml_keys](https://github.com/appium/ruby_lib/blob/a13158fb926212d84f26120c3bc5355c8cd34baf/lib/appium_lib/common/helper.rb#L149)
|
1218
1232
|
|
1219
1233
|
> def xml_keys target
|
1220
1234
|
|
@@ -1230,7 +1244,7 @@ __Returns:__
|
|
1230
1244
|
|
1231
1245
|
--
|
1232
1246
|
|
1233
|
-
##### [xml_values](https://github.com/appium/ruby_lib/blob/
|
1247
|
+
##### [xml_values](https://github.com/appium/ruby_lib/blob/a13158fb926212d84f26120c3bc5355c8cd34baf/lib/appium_lib/common/helper.rb#L157)
|
1234
1248
|
|
1235
1249
|
> def xml_values target
|
1236
1250
|
|
@@ -1246,7 +1260,7 @@ __Returns:__
|
|
1246
1260
|
|
1247
1261
|
--
|
1248
1262
|
|
1249
|
-
##### [resolve_id](https://github.com/appium/ruby_lib/blob/
|
1263
|
+
##### [resolve_id](https://github.com/appium/ruby_lib/blob/a13158fb926212d84f26120c3bc5355c8cd34baf/lib/appium_lib/common/helper.rb#L165)
|
1250
1264
|
|
1251
1265
|
> def resolve_id id
|
1252
1266
|
|
@@ -1262,7 +1276,7 @@ __Returns:__
|
|
1262
1276
|
|
1263
1277
|
--
|
1264
1278
|
|
1265
|
-
##### [filter](https://github.com/appium/ruby_lib/blob/
|
1279
|
+
##### [filter](https://github.com/appium/ruby_lib/blob/a13158fb926212d84f26120c3bc5355c8cd34baf/lib/appium_lib/common/helper.rb#L171)
|
1266
1280
|
|
1267
1281
|
> def filter
|
1268
1282
|
|
@@ -1270,7 +1284,7 @@ __Returns:__
|
|
1270
1284
|
|
1271
1285
|
--
|
1272
1286
|
|
1273
|
-
##### [filter=](https://github.com/appium/ruby_lib/blob/
|
1287
|
+
##### [filter=](https://github.com/appium/ruby_lib/blob/a13158fb926212d84f26120c3bc5355c8cd34baf/lib/appium_lib/common/helper.rb#L176)
|
1274
1288
|
|
1275
1289
|
> def filter= value
|
1276
1290
|
|
@@ -1278,7 +1292,7 @@ convert to string to support symbols
|
|
1278
1292
|
|
1279
1293
|
--
|
1280
1294
|
|
1281
|
-
##### [initialize](https://github.com/appium/ruby_lib/blob/
|
1295
|
+
##### [initialize](https://github.com/appium/ruby_lib/blob/a13158fb926212d84f26120c3bc5355c8cd34baf/lib/appium_lib/common/helper.rb#L182)
|
1282
1296
|
|
1283
1297
|
> def initialize
|
1284
1298
|
|
@@ -1290,7 +1304,7 @@ __Returns:__
|
|
1290
1304
|
|
1291
1305
|
--
|
1292
1306
|
|
1293
|
-
##### [reset](https://github.com/appium/ruby_lib/blob/
|
1307
|
+
##### [reset](https://github.com/appium/ruby_lib/blob/a13158fb926212d84f26120c3bc5355c8cd34baf/lib/appium_lib/common/helper.rb#L187)
|
1294
1308
|
|
1295
1309
|
> def reset
|
1296
1310
|
|
@@ -1298,7 +1312,7 @@ __Returns:__
|
|
1298
1312
|
|
1299
1313
|
--
|
1300
1314
|
|
1301
|
-
##### [result](https://github.com/appium/ruby_lib/blob/
|
1315
|
+
##### [result](https://github.com/appium/ruby_lib/blob/a13158fb926212d84f26120c3bc5355c8cd34baf/lib/appium_lib/common/helper.rb#L193)
|
1302
1316
|
|
1303
1317
|
> def result
|
1304
1318
|
|
@@ -1306,7 +1320,7 @@ __Returns:__
|
|
1306
1320
|
|
1307
1321
|
--
|
1308
1322
|
|
1309
|
-
##### [start_element](https://github.com/appium/ruby_lib/blob/
|
1323
|
+
##### [start_element](https://github.com/appium/ruby_lib/blob/a13158fb926212d84f26120c3bc5355c8cd34baf/lib/appium_lib/common/helper.rb#L207)
|
1310
1324
|
|
1311
1325
|
> def start_element name, attrs = []
|
1312
1326
|
|
@@ -1314,7 +1328,7 @@ __Returns:__
|
|
1314
1328
|
|
1315
1329
|
--
|
1316
1330
|
|
1317
|
-
##### [end_element](https://github.com/appium/ruby_lib/blob/
|
1331
|
+
##### [end_element](https://github.com/appium/ruby_lib/blob/a13158fb926212d84f26120c3bc5355c8cd34baf/lib/appium_lib/common/helper.rb#L217)
|
1318
1332
|
|
1319
1333
|
> def end_element name
|
1320
1334
|
|
@@ -1322,7 +1336,7 @@ __Returns:__
|
|
1322
1336
|
|
1323
1337
|
--
|
1324
1338
|
|
1325
|
-
##### [characters](https://github.com/appium/ruby_lib/blob/
|
1339
|
+
##### [characters](https://github.com/appium/ruby_lib/blob/a13158fb926212d84f26120c3bc5355c8cd34baf/lib/appium_lib/common/helper.rb#L223)
|
1326
1340
|
|
1327
1341
|
> def characters(chars)
|
1328
1342
|
|
@@ -1330,7 +1344,7 @@ __Returns:__
|
|
1330
1344
|
|
1331
1345
|
--
|
1332
1346
|
|
1333
|
-
##### [window_size](https://github.com/appium/ruby_lib/blob/
|
1347
|
+
##### [window_size](https://github.com/appium/ruby_lib/blob/a13158fb926212d84f26120c3bc5355c8cd34baf/lib/appium_lib/common/element/window.rb#L5)
|
1334
1348
|
|
1335
1349
|
> def window_size
|
1336
1350
|
|
@@ -1338,7 +1352,7 @@ Get the window's size
|
|
1338
1352
|
|
1339
1353
|
--
|
1340
1354
|
|
1341
|
-
##### [result](https://github.com/appium/ruby_lib/blob/
|
1355
|
+
##### [result](https://github.com/appium/ruby_lib/blob/a13158fb926212d84f26120c3bc5355c8cd34baf/lib/appium_lib/android/helper.rb#L6) android
|
1342
1356
|
|
1343
1357
|
> def result
|
1344
1358
|
|
@@ -1346,7 +1360,7 @@ Returns the value of attribute result
|
|
1346
1360
|
|
1347
1361
|
--
|
1348
1362
|
|
1349
|
-
##### [keys](https://github.com/appium/ruby_lib/blob/
|
1363
|
+
##### [keys](https://github.com/appium/ruby_lib/blob/a13158fb926212d84f26120c3bc5355c8cd34baf/lib/appium_lib/android/helper.rb#L6) android
|
1350
1364
|
|
1351
1365
|
> def keys
|
1352
1366
|
|
@@ -1354,7 +1368,7 @@ Returns the value of attribute keys
|
|
1354
1368
|
|
1355
1369
|
--
|
1356
1370
|
|
1357
|
-
##### [instance](https://github.com/appium/ruby_lib/blob/
|
1371
|
+
##### [instance](https://github.com/appium/ruby_lib/blob/a13158fb926212d84f26120c3bc5355c8cd34baf/lib/appium_lib/android/helper.rb#L6) android
|
1358
1372
|
|
1359
1373
|
> def instance
|
1360
1374
|
|
@@ -1362,7 +1376,7 @@ Returns the value of attribute instance
|
|
1362
1376
|
|
1363
1377
|
--
|
1364
1378
|
|
1365
|
-
##### [filter](https://github.com/appium/ruby_lib/blob/
|
1379
|
+
##### [filter](https://github.com/appium/ruby_lib/blob/a13158fb926212d84f26120c3bc5355c8cd34baf/lib/appium_lib/android/helper.rb#L8) android
|
1366
1380
|
|
1367
1381
|
> def filter
|
1368
1382
|
|
@@ -1370,7 +1384,7 @@ Returns the value of attribute instance
|
|
1370
1384
|
|
1371
1385
|
--
|
1372
1386
|
|
1373
|
-
##### [filter=](https://github.com/appium/ruby_lib/blob/
|
1387
|
+
##### [filter=](https://github.com/appium/ruby_lib/blob/a13158fb926212d84f26120c3bc5355c8cd34baf/lib/appium_lib/android/helper.rb#L13) android
|
1374
1388
|
|
1375
1389
|
> def filter= value
|
1376
1390
|
|
@@ -1378,7 +1392,7 @@ convert to string to support symbols
|
|
1378
1392
|
|
1379
1393
|
--
|
1380
1394
|
|
1381
|
-
##### [initialize](https://github.com/appium/ruby_lib/blob/
|
1395
|
+
##### [initialize](https://github.com/appium/ruby_lib/blob/a13158fb926212d84f26120c3bc5355c8cd34baf/lib/appium_lib/android/helper.rb#L19) android
|
1382
1396
|
|
1383
1397
|
> def initialize
|
1384
1398
|
|
@@ -1390,7 +1404,7 @@ __Returns:__
|
|
1390
1404
|
|
1391
1405
|
--
|
1392
1406
|
|
1393
|
-
##### [reset](https://github.com/appium/ruby_lib/blob/
|
1407
|
+
##### [reset](https://github.com/appium/ruby_lib/blob/a13158fb926212d84f26120c3bc5355c8cd34baf/lib/appium_lib/android/helper.rb#L25) android
|
1394
1408
|
|
1395
1409
|
> def reset
|
1396
1410
|
|
@@ -1398,7 +1412,7 @@ __Returns:__
|
|
1398
1412
|
|
1399
1413
|
--
|
1400
1414
|
|
1401
|
-
##### [start_element](https://github.com/appium/ruby_lib/blob/
|
1415
|
+
##### [start_element](https://github.com/appium/ruby_lib/blob/a13158fb926212d84f26120c3bc5355c8cd34baf/lib/appium_lib/android/helper.rb#L32) android
|
1402
1416
|
|
1403
1417
|
> def start_element name, attrs = []
|
1404
1418
|
|
@@ -1406,7 +1420,7 @@ http://nokogiri.org/Nokogiri/XML/SAX/Document.html
|
|
1406
1420
|
|
1407
1421
|
--
|
1408
1422
|
|
1409
|
-
##### [get_android_inspect](https://github.com/appium/ruby_lib/blob/
|
1423
|
+
##### [get_android_inspect](https://github.com/appium/ruby_lib/blob/a13158fb926212d84f26120c3bc5355c8cd34baf/lib/appium_lib/android/helper.rb#L92) android
|
1410
1424
|
|
1411
1425
|
> def get_android_inspect class_name=false
|
1412
1426
|
|
@@ -1425,7 +1439,7 @@ __Returns:__
|
|
1425
1439
|
|
1426
1440
|
--
|
1427
1441
|
|
1428
|
-
##### [page](https://github.com/appium/ruby_lib/blob/
|
1442
|
+
##### [page](https://github.com/appium/ruby_lib/blob/a13158fb926212d84f26120c3bc5355c8cd34baf/lib/appium_lib/android/helper.rb#L113) android
|
1429
1443
|
|
1430
1444
|
> def page opts={}
|
1431
1445
|
|
@@ -1444,7 +1458,7 @@ __Returns:__
|
|
1444
1458
|
|
1445
1459
|
--
|
1446
1460
|
|
1447
|
-
##### [current_app](https://github.com/appium/ruby_lib/blob/
|
1461
|
+
##### [current_app](https://github.com/appium/ruby_lib/blob/a13158fb926212d84f26120c3bc5355c8cd34baf/lib/appium_lib/android/helper.rb#L124) android
|
1448
1462
|
|
1449
1463
|
> def current_app
|
1450
1464
|
|
@@ -1453,7 +1467,7 @@ example line:
|
|
1453
1467
|
|
1454
1468
|
--
|
1455
1469
|
|
1456
|
-
##### [id](https://github.com/appium/ruby_lib/blob/
|
1470
|
+
##### [id](https://github.com/appium/ruby_lib/blob/a13158fb926212d84f26120c3bc5355c8cd34baf/lib/appium_lib/android/helper.rb#L148) android
|
1457
1471
|
|
1458
1472
|
> def id id
|
1459
1473
|
|
@@ -1469,7 +1483,7 @@ __Returns:__
|
|
1469
1483
|
|
1470
1484
|
--
|
1471
1485
|
|
1472
|
-
##### [ids](https://github.com/appium/ruby_lib/blob/
|
1486
|
+
##### [ids](https://github.com/appium/ruby_lib/blob/a13158fb926212d84f26120c3bc5355c8cd34baf/lib/appium_lib/android/helper.rb#L156) android
|
1473
1487
|
|
1474
1488
|
> def ids id
|
1475
1489
|
|
@@ -1485,7 +1499,7 @@ __Returns:__
|
|
1485
1499
|
|
1486
1500
|
--
|
1487
1501
|
|
1488
|
-
##### [ele_index](https://github.com/appium/ruby_lib/blob/
|
1502
|
+
##### [ele_index](https://github.com/appium/ruby_lib/blob/a13158fb926212d84f26120c3bc5355c8cd34baf/lib/appium_lib/android/helper.rb#L165) android
|
1489
1503
|
|
1490
1504
|
> def ele_index class_name, index
|
1491
1505
|
|
@@ -1503,7 +1517,7 @@ __Returns:__
|
|
1503
1517
|
|
1504
1518
|
--
|
1505
1519
|
|
1506
|
-
##### [first_ele](https://github.com/appium/ruby_lib/blob/
|
1520
|
+
##### [first_ele](https://github.com/appium/ruby_lib/blob/a13158fb926212d84f26120c3bc5355c8cd34baf/lib/appium_lib/android/helper.rb#L183) android
|
1507
1521
|
|
1508
1522
|
> def first_ele class_name
|
1509
1523
|
|
@@ -1519,7 +1533,7 @@ __Returns:__
|
|
1519
1533
|
|
1520
1534
|
--
|
1521
1535
|
|
1522
|
-
##### [last_ele](https://github.com/appium/ruby_lib/blob/
|
1536
|
+
##### [last_ele](https://github.com/appium/ruby_lib/blob/a13158fb926212d84f26120c3bc5355c8cd34baf/lib/appium_lib/android/helper.rb#L190) android
|
1523
1537
|
|
1524
1538
|
> def last_ele class_name
|
1525
1539
|
|
@@ -1535,7 +1549,7 @@ __Returns:__
|
|
1535
1549
|
|
1536
1550
|
--
|
1537
1551
|
|
1538
|
-
##### [tag](https://github.com/appium/ruby_lib/blob/
|
1552
|
+
##### [tag](https://github.com/appium/ruby_lib/blob/a13158fb926212d84f26120c3bc5355c8cd34baf/lib/appium_lib/android/helper.rb#L198) android
|
1539
1553
|
|
1540
1554
|
> def tag class_name
|
1541
1555
|
|
@@ -1551,7 +1565,7 @@ __Returns:__
|
|
1551
1565
|
|
1552
1566
|
--
|
1553
1567
|
|
1554
|
-
##### [tags](https://github.com/appium/ruby_lib/blob/
|
1568
|
+
##### [tags](https://github.com/appium/ruby_lib/blob/a13158fb926212d84f26120c3bc5355c8cd34baf/lib/appium_lib/android/helper.rb#L206) android
|
1555
1569
|
|
1556
1570
|
> def tags class_name
|
1557
1571
|
|
@@ -1567,7 +1581,7 @@ __Returns:__
|
|
1567
1581
|
|
1568
1582
|
--
|
1569
1583
|
|
1570
|
-
##### [complex_find_contains](https://github.com/appium/ruby_lib/blob/
|
1584
|
+
##### [complex_find_contains](https://github.com/appium/ruby_lib/blob/a13158fb926212d84f26120c3bc5355c8cd34baf/lib/appium_lib/android/helper.rb#L238) android
|
1571
1585
|
|
1572
1586
|
> def complex_find_contains element, value
|
1573
1587
|
|
@@ -1585,7 +1599,7 @@ __Returns:__
|
|
1585
1599
|
|
1586
1600
|
--
|
1587
1601
|
|
1588
|
-
##### [complex_finds_contains](https://github.com/appium/ruby_lib/blob/
|
1602
|
+
##### [complex_finds_contains](https://github.com/appium/ruby_lib/blob/a13158fb926212d84f26120c3bc5355c8cd34baf/lib/appium_lib/android/helper.rb#L246) android
|
1589
1603
|
|
1590
1604
|
> def complex_finds_contains element, value
|
1591
1605
|
|
@@ -1603,7 +1617,7 @@ __Returns:__
|
|
1603
1617
|
|
1604
1618
|
--
|
1605
1619
|
|
1606
|
-
##### [complex_find_exact](https://github.com/appium/ruby_lib/blob/
|
1620
|
+
##### [complex_find_exact](https://github.com/appium/ruby_lib/blob/a13158fb926212d84f26120c3bc5355c8cd34baf/lib/appium_lib/android/helper.rb#L275) android
|
1607
1621
|
|
1608
1622
|
> def complex_find_exact class_name, value
|
1609
1623
|
|
@@ -1621,7 +1635,7 @@ __Returns:__
|
|
1621
1635
|
|
1622
1636
|
--
|
1623
1637
|
|
1624
|
-
##### [complex_finds_exact](https://github.com/appium/ruby_lib/blob/
|
1638
|
+
##### [complex_finds_exact](https://github.com/appium/ruby_lib/blob/a13158fb926212d84f26120c3bc5355c8cd34baf/lib/appium_lib/android/helper.rb#L283) android
|
1625
1639
|
|
1626
1640
|
> def complex_finds_exact class_name, value
|
1627
1641
|
|
@@ -1639,7 +1653,7 @@ __Returns:__
|
|
1639
1653
|
|
1640
1654
|
--
|
1641
1655
|
|
1642
|
-
##### [TextView](https://github.com/appium/ruby_lib/blob/
|
1656
|
+
##### [TextView](https://github.com/appium/ruby_lib/blob/a13158fb926212d84f26120c3bc5355c8cd34baf/lib/appium_lib/android/element/text.rb#L4) android
|
1643
1657
|
|
1644
1658
|
> TextView = 'android.widget.TextView'
|
1645
1659
|
|
@@ -1647,7 +1661,7 @@ __Returns:__
|
|
1647
1661
|
|
1648
1662
|
--
|
1649
1663
|
|
1650
|
-
##### [text](https://github.com/appium/ruby_lib/blob/
|
1664
|
+
##### [text](https://github.com/appium/ruby_lib/blob/a13158fb926212d84f26120c3bc5355c8cd34baf/lib/appium_lib/android/element/text.rb#L10) android
|
1651
1665
|
|
1652
1666
|
> def text value
|
1653
1667
|
|
@@ -1664,7 +1678,7 @@ __Returns:__
|
|
1664
1678
|
|
1665
1679
|
--
|
1666
1680
|
|
1667
|
-
##### [texts](https://github.com/appium/ruby_lib/blob/
|
1681
|
+
##### [texts](https://github.com/appium/ruby_lib/blob/a13158fb926212d84f26120c3bc5355c8cd34baf/lib/appium_lib/android/element/text.rb#L19) android
|
1668
1682
|
|
1669
1683
|
> def texts value=false
|
1670
1684
|
|
@@ -1681,7 +1695,7 @@ __Returns:__
|
|
1681
1695
|
|
1682
1696
|
--
|
1683
1697
|
|
1684
|
-
##### [first_text](https://github.com/appium/ruby_lib/blob/
|
1698
|
+
##### [first_text](https://github.com/appium/ruby_lib/blob/a13158fb926212d84f26120c3bc5355c8cd34baf/lib/appium_lib/android/element/text.rb#L26) android
|
1685
1699
|
|
1686
1700
|
> def first_text
|
1687
1701
|
|
@@ -1693,7 +1707,7 @@ __Returns:__
|
|
1693
1707
|
|
1694
1708
|
--
|
1695
1709
|
|
1696
|
-
##### [last_text](https://github.com/appium/ruby_lib/blob/
|
1710
|
+
##### [last_text](https://github.com/appium/ruby_lib/blob/a13158fb926212d84f26120c3bc5355c8cd34baf/lib/appium_lib/android/element/text.rb#L32) android
|
1697
1711
|
|
1698
1712
|
> def last_text
|
1699
1713
|
|
@@ -1705,7 +1719,7 @@ __Returns:__
|
|
1705
1719
|
|
1706
1720
|
--
|
1707
1721
|
|
1708
|
-
##### [text_exact](https://github.com/appium/ruby_lib/blob/
|
1722
|
+
##### [text_exact](https://github.com/appium/ruby_lib/blob/a13158fb926212d84f26120c3bc5355c8cd34baf/lib/appium_lib/android/element/text.rb#L39) android
|
1709
1723
|
|
1710
1724
|
> def text_exact value
|
1711
1725
|
|
@@ -1721,7 +1735,7 @@ __Returns:__
|
|
1721
1735
|
|
1722
1736
|
--
|
1723
1737
|
|
1724
|
-
##### [texts_exact](https://github.com/appium/ruby_lib/blob/
|
1738
|
+
##### [texts_exact](https://github.com/appium/ruby_lib/blob/a13158fb926212d84f26120c3bc5355c8cd34baf/lib/appium_lib/android/element/text.rb#L46) android
|
1725
1739
|
|
1726
1740
|
> def texts_exact value
|
1727
1741
|
|
@@ -1737,7 +1751,39 @@ __Returns:__
|
|
1737
1751
|
|
1738
1752
|
--
|
1739
1753
|
|
1740
|
-
##### [
|
1754
|
+
##### [_nodeset_to_uiselector](https://github.com/appium/ruby_lib/blob/a13158fb926212d84f26120c3bc5355c8cd34baf/lib/appium_lib/android/client_xpath.rb#L5) android
|
1755
|
+
|
1756
|
+
> def _nodeset_to_uiselector opts={}
|
1757
|
+
|
1758
|
+
|
1759
|
+
|
1760
|
+
--
|
1761
|
+
|
1762
|
+
##### [_client_xpath](https://github.com/appium/ruby_lib/blob/a13158fb926212d84f26120c3bc5355c8cd34baf/lib/appium_lib/android/client_xpath.rb#L20) android
|
1763
|
+
|
1764
|
+
> def _client_xpath opts={}
|
1765
|
+
|
1766
|
+
|
1767
|
+
|
1768
|
+
--
|
1769
|
+
|
1770
|
+
##### [client_xpath](https://github.com/appium/ruby_lib/blob/a13158fb926212d84f26120c3bc5355c8cd34baf/lib/appium_lib/android/client_xpath.rb#L36) android
|
1771
|
+
|
1772
|
+
> def client_xpath xpath
|
1773
|
+
|
1774
|
+
|
1775
|
+
|
1776
|
+
--
|
1777
|
+
|
1778
|
+
##### [client_xpaths](https://github.com/appium/ruby_lib/blob/a13158fb926212d84f26120c3bc5355c8cd34baf/lib/appium_lib/android/client_xpath.rb#L40) android
|
1779
|
+
|
1780
|
+
> def client_xpaths xpath
|
1781
|
+
|
1782
|
+
|
1783
|
+
|
1784
|
+
--
|
1785
|
+
|
1786
|
+
##### [alert_click](https://github.com/appium/ruby_lib/blob/a13158fb926212d84f26120c3bc5355c8cd34baf/lib/appium_lib/android/element/alert.rb#L6) android
|
1741
1787
|
|
1742
1788
|
> def alert_click value
|
1743
1789
|
|
@@ -1753,7 +1799,7 @@ __Returns:__
|
|
1753
1799
|
|
1754
1800
|
--
|
1755
1801
|
|
1756
|
-
##### [alert_accept](https://github.com/appium/ruby_lib/blob/
|
1802
|
+
##### [alert_accept](https://github.com/appium/ruby_lib/blob/a13158fb926212d84f26120c3bc5355c8cd34baf/lib/appium_lib/android/element/alert.rb#L13) android
|
1757
1803
|
|
1758
1804
|
> def alert_accept
|
1759
1805
|
|
@@ -1766,7 +1812,7 @@ __Returns:__
|
|
1766
1812
|
|
1767
1813
|
--
|
1768
1814
|
|
1769
|
-
##### [alert_accept_text](https://github.com/appium/ruby_lib/blob/
|
1815
|
+
##### [alert_accept_text](https://github.com/appium/ruby_lib/blob/a13158fb926212d84f26120c3bc5355c8cd34baf/lib/appium_lib/android/element/alert.rb#L20) android
|
1770
1816
|
|
1771
1817
|
> def alert_accept_text
|
1772
1818
|
|
@@ -1779,7 +1825,7 @@ __Returns:__
|
|
1779
1825
|
|
1780
1826
|
--
|
1781
1827
|
|
1782
|
-
##### [alert_dismiss](https://github.com/appium/ruby_lib/blob/
|
1828
|
+
##### [alert_dismiss](https://github.com/appium/ruby_lib/blob/a13158fb926212d84f26120c3bc5355c8cd34baf/lib/appium_lib/android/element/alert.rb#L27) android
|
1783
1829
|
|
1784
1830
|
> def alert_dismiss
|
1785
1831
|
|
@@ -1792,7 +1838,7 @@ __Returns:__
|
|
1792
1838
|
|
1793
1839
|
--
|
1794
1840
|
|
1795
|
-
##### [alert_dismiss_text](https://github.com/appium/ruby_lib/blob/
|
1841
|
+
##### [alert_dismiss_text](https://github.com/appium/ruby_lib/blob/a13158fb926212d84f26120c3bc5355c8cd34baf/lib/appium_lib/android/element/alert.rb#L34) android
|
1796
1842
|
|
1797
1843
|
> def alert_dismiss_text
|
1798
1844
|
|
@@ -1805,7 +1851,7 @@ __Returns:__
|
|
1805
1851
|
|
1806
1852
|
--
|
1807
1853
|
|
1808
|
-
##### [uiautomator_find](https://github.com/appium/ruby_lib/blob/
|
1854
|
+
##### [uiautomator_find](https://github.com/appium/ruby_lib/blob/a13158fb926212d84f26120c3bc5355c8cd34baf/lib/appium_lib/android/mobile_methods.rb#L10) android
|
1809
1855
|
|
1810
1856
|
> def uiautomator_find
|
1811
1857
|
|
@@ -1817,7 +1863,7 @@ find_element/s can be used with a [UISelector](http://developer.android.com/tool
|
|
1817
1863
|
|
1818
1864
|
--
|
1819
1865
|
|
1820
|
-
##### [Button](https://github.com/appium/ruby_lib/blob/
|
1866
|
+
##### [Button](https://github.com/appium/ruby_lib/blob/a13158fb926212d84f26120c3bc5355c8cd34baf/lib/appium_lib/android/element/button.rb#L4) android
|
1821
1867
|
|
1822
1868
|
> Button = 'android.widget.Button'
|
1823
1869
|
|
@@ -1825,7 +1871,7 @@ find_element/s can be used with a [UISelector](http://developer.android.com/tool
|
|
1825
1871
|
|
1826
1872
|
--
|
1827
1873
|
|
1828
|
-
##### [ImageButton](https://github.com/appium/ruby_lib/blob/
|
1874
|
+
##### [ImageButton](https://github.com/appium/ruby_lib/blob/a13158fb926212d84f26120c3bc5355c8cd34baf/lib/appium_lib/android/element/button.rb#L5) android
|
1829
1875
|
|
1830
1876
|
> ImageButton = 'android.widget.ImageButton'
|
1831
1877
|
|
@@ -1833,7 +1879,7 @@ find_element/s can be used with a [UISelector](http://developer.android.com/tool
|
|
1833
1879
|
|
1834
1880
|
--
|
1835
1881
|
|
1836
|
-
##### [button](https://github.com/appium/ruby_lib/blob/
|
1882
|
+
##### [button](https://github.com/appium/ruby_lib/blob/a13158fb926212d84f26120c3bc5355c8cd34baf/lib/appium_lib/android/element/button.rb#L43) android
|
1837
1883
|
|
1838
1884
|
> def button value
|
1839
1885
|
|
@@ -1850,7 +1896,7 @@ __Returns:__
|
|
1850
1896
|
|
1851
1897
|
--
|
1852
1898
|
|
1853
|
-
##### [buttons](https://github.com/appium/ruby_lib/blob/
|
1899
|
+
##### [buttons](https://github.com/appium/ruby_lib/blob/a13158fb926212d84f26120c3bc5355c8cd34baf/lib/appium_lib/android/element/button.rb#L60) android
|
1854
1900
|
|
1855
1901
|
> def buttons value=false
|
1856
1902
|
|
@@ -1867,7 +1913,7 @@ __Returns:__
|
|
1867
1913
|
|
1868
1914
|
--
|
1869
1915
|
|
1870
|
-
##### [first_button](https://github.com/appium/ruby_lib/blob/
|
1916
|
+
##### [first_button](https://github.com/appium/ruby_lib/blob/a13158fb926212d84f26120c3bc5355c8cd34baf/lib/appium_lib/android/element/button.rb#L67) android
|
1871
1917
|
|
1872
1918
|
> def first_button
|
1873
1919
|
|
@@ -1879,7 +1925,7 @@ __Returns:__
|
|
1879
1925
|
|
1880
1926
|
--
|
1881
1927
|
|
1882
|
-
##### [last_button](https://github.com/appium/ruby_lib/blob/
|
1928
|
+
##### [last_button](https://github.com/appium/ruby_lib/blob/a13158fb926212d84f26120c3bc5355c8cd34baf/lib/appium_lib/android/element/button.rb#L73) android
|
1883
1929
|
|
1884
1930
|
> def last_button
|
1885
1931
|
|
@@ -1891,7 +1937,7 @@ __Returns:__
|
|
1891
1937
|
|
1892
1938
|
--
|
1893
1939
|
|
1894
|
-
##### [button_exact](https://github.com/appium/ruby_lib/blob/
|
1940
|
+
##### [button_exact](https://github.com/appium/ruby_lib/blob/a13158fb926212d84f26120c3bc5355c8cd34baf/lib/appium_lib/android/element/button.rb#L89) android
|
1895
1941
|
|
1896
1942
|
> def button_exact value
|
1897
1943
|
|
@@ -1907,7 +1953,7 @@ __Returns:__
|
|
1907
1953
|
|
1908
1954
|
--
|
1909
1955
|
|
1910
|
-
##### [buttons_exact](https://github.com/appium/ruby_lib/blob/
|
1956
|
+
##### [buttons_exact](https://github.com/appium/ruby_lib/blob/a13158fb926212d84f26120c3bc5355c8cd34baf/lib/appium_lib/android/element/button.rb#L96) android
|
1911
1957
|
|
1912
1958
|
> def buttons_exact value
|
1913
1959
|
|
@@ -1923,7 +1969,7 @@ __Returns:__
|
|
1923
1969
|
|
1924
1970
|
--
|
1925
1971
|
|
1926
|
-
##### [find](https://github.com/appium/ruby_lib/blob/
|
1972
|
+
##### [find](https://github.com/appium/ruby_lib/blob/a13158fb926212d84f26120c3bc5355c8cd34baf/lib/appium_lib/android/element/generic.rb#L7) android
|
1927
1973
|
|
1928
1974
|
> def find value
|
1929
1975
|
|
@@ -1939,7 +1985,7 @@ __Returns:__
|
|
1939
1985
|
|
1940
1986
|
--
|
1941
1987
|
|
1942
|
-
##### [finds](https://github.com/appium/ruby_lib/blob/
|
1988
|
+
##### [finds](https://github.com/appium/ruby_lib/blob/a13158fb926212d84f26120c3bc5355c8cd34baf/lib/appium_lib/android/element/generic.rb#L14) android
|
1943
1989
|
|
1944
1990
|
> def finds value
|
1945
1991
|
|
@@ -1955,7 +2001,7 @@ __Returns:__
|
|
1955
2001
|
|
1956
2002
|
--
|
1957
2003
|
|
1958
|
-
##### [find_exact](https://github.com/appium/ruby_lib/blob/
|
2004
|
+
##### [find_exact](https://github.com/appium/ruby_lib/blob/a13158fb926212d84f26120c3bc5355c8cd34baf/lib/appium_lib/android/element/generic.rb#L21) android
|
1959
2005
|
|
1960
2006
|
> def find_exact value
|
1961
2007
|
|
@@ -1971,7 +2017,7 @@ __Returns:__
|
|
1971
2017
|
|
1972
2018
|
--
|
1973
2019
|
|
1974
|
-
##### [finds_exact](https://github.com/appium/ruby_lib/blob/
|
2020
|
+
##### [finds_exact](https://github.com/appium/ruby_lib/blob/a13158fb926212d84f26120c3bc5355c8cd34baf/lib/appium_lib/android/element/generic.rb#L28) android
|
1975
2021
|
|
1976
2022
|
> def finds_exact value
|
1977
2023
|
|
@@ -1987,7 +2033,7 @@ __Returns:__
|
|
1987
2033
|
|
1988
2034
|
--
|
1989
2035
|
|
1990
|
-
##### [scroll_to](https://github.com/appium/ruby_lib/blob/
|
2036
|
+
##### [scroll_to](https://github.com/appium/ruby_lib/blob/a13158fb926212d84f26120c3bc5355c8cd34baf/lib/appium_lib/android/element/generic.rb#L40) android
|
1991
2037
|
|
1992
2038
|
> def scroll_to text
|
1993
2039
|
|
@@ -2003,7 +2049,7 @@ __Returns:__
|
|
2003
2049
|
|
2004
2050
|
--
|
2005
2051
|
|
2006
|
-
##### [scroll_to_exact](https://github.com/appium/ruby_lib/blob/
|
2052
|
+
##### [scroll_to_exact](https://github.com/appium/ruby_lib/blob/a13158fb926212d84f26120c3bc5355c8cd34baf/lib/appium_lib/android/element/generic.rb#L52) android
|
2007
2053
|
|
2008
2054
|
> def scroll_to_exact text
|
2009
2055
|
|
@@ -2019,7 +2065,7 @@ __Returns:__
|
|
2019
2065
|
|
2020
2066
|
--
|
2021
2067
|
|
2022
|
-
##### [EditText](https://github.com/appium/ruby_lib/blob/
|
2068
|
+
##### [EditText](https://github.com/appium/ruby_lib/blob/a13158fb926212d84f26120c3bc5355c8cd34baf/lib/appium_lib/android/element/textfield.rb#L3) android
|
2023
2069
|
|
2024
2070
|
> EditText = 'android.widget.EditText'
|
2025
2071
|
|
@@ -2027,7 +2073,7 @@ __Returns:__
|
|
2027
2073
|
|
2028
2074
|
--
|
2029
2075
|
|
2030
|
-
##### [textfield](https://github.com/appium/ruby_lib/blob/
|
2076
|
+
##### [textfield](https://github.com/appium/ruby_lib/blob/a13158fb926212d84f26120c3bc5355c8cd34baf/lib/appium_lib/android/element/textfield.rb#L9) android
|
2031
2077
|
|
2032
2078
|
> def textfield value
|
2033
2079
|
|
@@ -2044,7 +2090,7 @@ __Returns:__
|
|
2044
2090
|
|
2045
2091
|
--
|
2046
2092
|
|
2047
|
-
##### [textfields](https://github.com/appium/ruby_lib/blob/
|
2093
|
+
##### [textfields](https://github.com/appium/ruby_lib/blob/a13158fb926212d84f26120c3bc5355c8cd34baf/lib/appium_lib/android/element/textfield.rb#L18) android
|
2048
2094
|
|
2049
2095
|
> def textfields value=false
|
2050
2096
|
|
@@ -2061,7 +2107,7 @@ __Returns:__
|
|
2061
2107
|
|
2062
2108
|
--
|
2063
2109
|
|
2064
|
-
##### [first_textfield](https://github.com/appium/ruby_lib/blob/
|
2110
|
+
##### [first_textfield](https://github.com/appium/ruby_lib/blob/a13158fb926212d84f26120c3bc5355c8cd34baf/lib/appium_lib/android/element/textfield.rb#L25) android
|
2065
2111
|
|
2066
2112
|
> def first_textfield
|
2067
2113
|
|
@@ -2073,7 +2119,7 @@ __Returns:__
|
|
2073
2119
|
|
2074
2120
|
--
|
2075
2121
|
|
2076
|
-
##### [last_textfield](https://github.com/appium/ruby_lib/blob/
|
2122
|
+
##### [last_textfield](https://github.com/appium/ruby_lib/blob/a13158fb926212d84f26120c3bc5355c8cd34baf/lib/appium_lib/android/element/textfield.rb#L31) android
|
2077
2123
|
|
2078
2124
|
> def last_textfield
|
2079
2125
|
|
@@ -2085,7 +2131,7 @@ __Returns:__
|
|
2085
2131
|
|
2086
2132
|
--
|
2087
2133
|
|
2088
|
-
##### [textfield_exact](https://github.com/appium/ruby_lib/blob/
|
2134
|
+
##### [textfield_exact](https://github.com/appium/ruby_lib/blob/a13158fb926212d84f26120c3bc5355c8cd34baf/lib/appium_lib/android/element/textfield.rb#L38) android
|
2089
2135
|
|
2090
2136
|
> def textfield_exact value
|
2091
2137
|
|
@@ -2101,7 +2147,7 @@ __Returns:__
|
|
2101
2147
|
|
2102
2148
|
--
|
2103
2149
|
|
2104
|
-
##### [textfields_exact](https://github.com/appium/ruby_lib/blob/
|
2150
|
+
##### [textfields_exact](https://github.com/appium/ruby_lib/blob/a13158fb926212d84f26120c3bc5355c8cd34baf/lib/appium_lib/android/element/textfield.rb#L45) android
|
2105
2151
|
|
2106
2152
|
> def textfields_exact value
|
2107
2153
|
|
@@ -2117,7 +2163,7 @@ __Returns:__
|
|
2117
2163
|
|
2118
2164
|
--
|
2119
2165
|
|
2120
|
-
##### [value](https://github.com/appium/ruby_lib/blob/
|
2166
|
+
##### [value](https://github.com/appium/ruby_lib/blob/a13158fb926212d84f26120c3bc5355c8cd34baf/lib/appium_lib/common/patch.rb#L10)
|
2121
2167
|
|
2122
2168
|
> def value
|
2123
2169
|
|
@@ -2127,7 +2173,7 @@ Fixes NoMethodError: undefined method `value' for Selenium::WebDriver::Element
|
|
2127
2173
|
|
2128
2174
|
--
|
2129
2175
|
|
2130
|
-
##### [name](https://github.com/appium/ruby_lib/blob/
|
2176
|
+
##### [name](https://github.com/appium/ruby_lib/blob/a13158fb926212d84f26120c3bc5355c8cd34baf/lib/appium_lib/common/patch.rb#L17)
|
2131
2177
|
|
2132
2178
|
> def name
|
2133
2179
|
|
@@ -2137,7 +2183,7 @@ Fixes NoMethodError: undefined method `name' for Selenium::WebDriver::Element
|
|
2137
2183
|
|
2138
2184
|
--
|
2139
2185
|
|
2140
|
-
##### [location_rel](https://github.com/appium/ruby_lib/blob/
|
2186
|
+
##### [location_rel](https://github.com/appium/ruby_lib/blob/a13158fb926212d84f26120c3bc5355c8cd34baf/lib/appium_lib/common/patch.rb#L29)
|
2141
2187
|
|
2142
2188
|
> def location_rel
|
2143
2189
|
|