appium_lib 6.0.0 → 7.0.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.gitignore +2 -0
- data/.rubocop.yml +28 -0
- data/.travis.yml +10 -0
- data/Rakefile +9 -1
- data/android_tests/Gemfile +1 -1
- data/android_tests/Rakefile +20 -13
- data/android_tests/lib/android/specs/android/element/alert.rb +1 -1
- data/android_tests/lib/android/specs/android/element/button.rb +2 -2
- data/android_tests/lib/android/specs/android/element/generic.rb +1 -2
- data/android_tests/lib/android/specs/android/element/text.rb +2 -3
- data/android_tests/lib/android/specs/android/element/textfield.rb +2 -2
- data/android_tests/lib/android/specs/android/helper.rb +5 -3
- data/android_tests/lib/android/specs/android/patch.rb +2 -2
- data/android_tests/lib/android/specs/common/device.rb +16 -9
- data/android_tests/lib/android/specs/common/device_touchaction.rb +5 -2
- data/android_tests/lib/android/specs/common/element/window.rb +1 -1
- data/android_tests/lib/android/specs/common/helper.rb +14 -15
- data/android_tests/lib/android/specs/common/patch.rb +11 -9
- data/android_tests/lib/android/specs/common/version.rb +3 -3
- data/android_tests/lib/android/specs/common/web_context.rb +2 -3
- data/android_tests/lib/android/specs/driver.rb +38 -29
- data/android_tests/lib/android/specs/install.rb +3 -3
- data/android_tests/lib/format.rb +6 -8
- data/android_tests/lib/run.rb +25 -17
- data/android_tests/readme.md +4 -2
- data/appium_lib.gemspec +13 -11
- data/contributing.md +1 -1
- data/docs/android_docs.md +358 -274
- data/docs/ios_docs.md +333 -270
- data/docs/migration.md +10 -0
- data/docs_gen/make_docs.rb +3 -1
- data/ios_tests/Gemfile +1 -1
- data/ios_tests/Rakefile +17 -10
- data/ios_tests/appium.txt +1 -1
- data/ios_tests/lib/common.rb +8 -4
- data/ios_tests/lib/format.rb +5 -7
- data/ios_tests/lib/ios/specs/common/element/window.rb +1 -1
- data/ios_tests/lib/ios/specs/common/helper.rb +40 -39
- data/ios_tests/lib/ios/specs/common/patch.rb +15 -11
- data/ios_tests/lib/ios/specs/common/version.rb +3 -3
- data/ios_tests/lib/ios/specs/common/web_context.rb +1 -2
- data/ios_tests/lib/ios/specs/device/device.rb +7 -7
- data/ios_tests/lib/ios/specs/device/multi_touch.rb +6 -8
- data/ios_tests/lib/ios/specs/device/touch_actions.rb +12 -12
- data/ios_tests/lib/ios/specs/driver.rb +23 -22
- data/ios_tests/lib/ios/specs/ios/element/alert.rb +6 -2
- data/ios_tests/lib/ios/specs/ios/element/button.rb +2 -2
- data/ios_tests/lib/ios/specs/ios/element/generic.rb +1 -1
- data/ios_tests/lib/ios/specs/ios/element/text.rb +4 -1
- data/ios_tests/lib/ios/specs/ios/element/textfield.rb +6 -6
- data/ios_tests/lib/ios/specs/ios/helper.rb +5 -5
- data/ios_tests/lib/ios/specs/ios/patch.rb +2 -2
- data/ios_tests/lib/run.rb +1 -1
- data/ios_tests/readme.md +3 -3
- data/ios_tests/upload/sauce_storage.rb +8 -8
- data/ios_tests/upload/upload.rb +1 -1
- data/lib/appium_lib/android/client_xpath.rb +7 -7
- data/lib/appium_lib/android/element/alert.rb +2 -2
- data/lib/appium_lib/android/element/button.rb +16 -16
- data/lib/appium_lib/android/element/generic.rb +12 -13
- data/lib/appium_lib/android/element/text.rb +5 -5
- data/lib/appium_lib/android/element/textfield.rb +5 -5
- data/lib/appium_lib/android/helper.rb +82 -52
- data/lib/appium_lib/android/mobile_methods.rb +2 -2
- data/lib/appium_lib/android/patch.rb +3 -3
- data/lib/appium_lib/common/element/window.rb +1 -1
- data/lib/appium_lib/common/helper.rb +30 -35
- data/lib/appium_lib/common/patch.rb +22 -20
- data/lib/appium_lib/common/version.rb +3 -3
- data/lib/appium_lib/common/wait.rb +9 -10
- data/lib/appium_lib/device/device.rb +39 -33
- data/lib/appium_lib/device/multi_touch.rb +5 -7
- data/lib/appium_lib/device/touch_actions.rb +14 -15
- data/lib/appium_lib/driver.rb +97 -76
- data/lib/appium_lib/ios/element/alert.rb +1 -1
- data/lib/appium_lib/ios/element/button.rb +5 -5
- data/lib/appium_lib/ios/element/generic.rb +5 -6
- data/lib/appium_lib/ios/element/text.rb +5 -5
- data/lib/appium_lib/ios/element/textfield.rb +15 -15
- data/lib/appium_lib/ios/helper.rb +103 -90
- data/lib/appium_lib/ios/mobile_methods.rb +2 -2
- data/lib/appium_lib/ios/patch.rb +4 -4
- data/lib/appium_lib/logger.rb +7 -5
- data/lib/appium_lib/rails/duplicable.rb +3 -1
- data/readme.md +7 -1
- data/release_notes.md +152 -0
- metadata +28 -54
data/docs/ios_docs.md
CHANGED
@@ -1,6 +1,6 @@
|
|
1
|
-
##### [load_appium_txt](https://github.com/appium/ruby_lib/blob/
|
1
|
+
##### [load_appium_txt](https://github.com/appium/ruby_lib/blob/af838966d0724793d3dbfa35798ca6dd9f8a3143/lib/appium_lib/driver.rb#L70)
|
2
2
|
|
3
|
-
> def self.load_appium_txt
|
3
|
+
> def self.load_appium_txt(opts = {})
|
4
4
|
|
5
5
|
Load appium.txt (toml format)
|
6
6
|
the basedir of this file + appium.txt is what's used
|
@@ -27,9 +27,9 @@ __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/af838966d0724793d3dbfa35798ca6dd9f8a3143/lib/appium_lib/driver.rb#L139)
|
31
31
|
|
32
|
-
> def self.symbolize_keys
|
32
|
+
> def self.symbolize_keys(hash)
|
33
33
|
|
34
34
|
convert all keys (including nested) to symbols
|
35
35
|
|
@@ -38,9 +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/
|
41
|
+
##### [promote_singleton_appium_methods](https://github.com/appium/ruby_lib/blob/af838966d0724793d3dbfa35798ca6dd9f8a3143/lib/appium_lib/driver.rb#L160)
|
42
42
|
|
43
|
-
> def self.promote_singleton_appium_methods
|
43
|
+
> def self.promote_singleton_appium_methods(modules)
|
44
|
+
|
45
|
+
This method is intended to work with page objects that share
|
46
|
+
a common module. For example, Page::HomePage, Page::SignIn
|
47
|
+
those could be promoted on with Appium.promote_singleton_appium_methods Page
|
48
|
+
|
49
|
+
If you are promoting on an individual class then you should use
|
50
|
+
Appium.promote_appium_methods instead. The singleton method is intended
|
51
|
+
only for the shared module use case.
|
44
52
|
|
45
53
|
if modules is a module instead of an array, then the constants of
|
46
54
|
that module are promoted on.
|
@@ -48,9 +56,9 @@ otherwise, the array of modules will be used as the promotion target.
|
|
48
56
|
|
49
57
|
--
|
50
58
|
|
51
|
-
##### [promote_appium_methods](https://github.com/appium/ruby_lib/blob/
|
59
|
+
##### [promote_appium_methods](https://github.com/appium/ruby_lib/blob/af838966d0724793d3dbfa35798ca6dd9f8a3143/lib/appium_lib/driver.rb#L211)
|
52
60
|
|
53
|
-
> def self.promote_appium_methods
|
61
|
+
> def self.promote_appium_methods(class_array)
|
54
62
|
|
55
63
|
Promote appium methods to class instance methods
|
56
64
|
|
@@ -60,13 +68,25 @@ To promote methods to all classes:
|
|
60
68
|
Appium.promote_appium_methods Object
|
61
69
|
```
|
62
70
|
|
71
|
+
It's better to promote on specific classes instead of Object
|
72
|
+
|
73
|
+
```ruby
|
74
|
+
# promote on rspec
|
75
|
+
Appium.promote_appium_methods RSpec::Core::ExampleGroup
|
76
|
+
```
|
77
|
+
|
78
|
+
```ruby
|
79
|
+
# promote on minispec
|
80
|
+
Appium.promote_appium_methods Minitest::Spec
|
81
|
+
```
|
82
|
+
|
63
83
|
__Parameters:__
|
64
84
|
|
65
85
|
[Array<Class>] class_array - An array of classes
|
66
86
|
|
67
87
|
--
|
68
88
|
|
69
|
-
##### [global_webdriver_http_sleep](https://github.com/appium/ruby_lib/blob/
|
89
|
+
##### [global_webdriver_http_sleep](https://github.com/appium/ruby_lib/blob/af838966d0724793d3dbfa35798ca6dd9f8a3143/lib/appium_lib/driver.rb#L245)
|
70
90
|
|
71
91
|
> def global_webdriver_http_sleep
|
72
92
|
|
@@ -74,7 +94,7 @@ The amount to sleep in seconds before every webdriver http call.
|
|
74
94
|
|
75
95
|
--
|
76
96
|
|
77
|
-
##### [global_webdriver_http_sleep=](https://github.com/appium/ruby_lib/blob/
|
97
|
+
##### [global_webdriver_http_sleep=](https://github.com/appium/ruby_lib/blob/af838966d0724793d3dbfa35798ca6dd9f8a3143/lib/appium_lib/driver.rb#L245)
|
78
98
|
|
79
99
|
> def global_webdriver_http_sleep=(value)
|
80
100
|
|
@@ -82,7 +102,7 @@ The amount to sleep in seconds before every webdriver http call.
|
|
82
102
|
|
83
103
|
--
|
84
104
|
|
85
|
-
##### [caps](https://github.com/appium/ruby_lib/blob/
|
105
|
+
##### [caps](https://github.com/appium/ruby_lib/blob/af838966d0724793d3dbfa35798ca6dd9f8a3143/lib/appium_lib/driver.rb#L247)
|
86
106
|
|
87
107
|
> def caps
|
88
108
|
|
@@ -90,7 +110,7 @@ Selenium webdriver capabilities
|
|
90
110
|
|
91
111
|
--
|
92
112
|
|
93
|
-
##### [caps=](https://github.com/appium/ruby_lib/blob/
|
113
|
+
##### [caps=](https://github.com/appium/ruby_lib/blob/af838966d0724793d3dbfa35798ca6dd9f8a3143/lib/appium_lib/driver.rb#L247)
|
94
114
|
|
95
115
|
> def caps=(value)
|
96
116
|
|
@@ -98,7 +118,7 @@ Selenium webdriver capabilities
|
|
98
118
|
|
99
119
|
--
|
100
120
|
|
101
|
-
##### [custom_url](https://github.com/appium/ruby_lib/blob/
|
121
|
+
##### [custom_url](https://github.com/appium/ruby_lib/blob/af838966d0724793d3dbfa35798ca6dd9f8a3143/lib/appium_lib/driver.rb#L249)
|
102
122
|
|
103
123
|
> def custom_url
|
104
124
|
|
@@ -106,7 +126,7 @@ Custom URL for the selenium server
|
|
106
126
|
|
107
127
|
--
|
108
128
|
|
109
|
-
##### [custom_url=](https://github.com/appium/ruby_lib/blob/
|
129
|
+
##### [custom_url=](https://github.com/appium/ruby_lib/blob/af838966d0724793d3dbfa35798ca6dd9f8a3143/lib/appium_lib/driver.rb#L249)
|
110
130
|
|
111
131
|
> def custom_url=(value)
|
112
132
|
|
@@ -114,7 +134,7 @@ Custom URL for the selenium server
|
|
114
134
|
|
115
135
|
--
|
116
136
|
|
117
|
-
##### [export_session](https://github.com/appium/ruby_lib/blob/
|
137
|
+
##### [export_session](https://github.com/appium/ruby_lib/blob/af838966d0724793d3dbfa35798ca6dd9f8a3143/lib/appium_lib/driver.rb#L251)
|
118
138
|
|
119
139
|
> def export_session
|
120
140
|
|
@@ -122,7 +142,7 @@ Export session id to textfile in /tmp for 3rd party tools
|
|
122
142
|
|
123
143
|
--
|
124
144
|
|
125
|
-
##### [export_session=](https://github.com/appium/ruby_lib/blob/
|
145
|
+
##### [export_session=](https://github.com/appium/ruby_lib/blob/af838966d0724793d3dbfa35798ca6dd9f8a3143/lib/appium_lib/driver.rb#L251)
|
126
146
|
|
127
147
|
> def export_session=(value)
|
128
148
|
|
@@ -130,10 +150,11 @@ Export session id to textfile in /tmp for 3rd party tools
|
|
130
150
|
|
131
151
|
--
|
132
152
|
|
133
|
-
##### [default_wait](https://github.com/appium/ruby_lib/blob/
|
153
|
+
##### [default_wait](https://github.com/appium/ruby_lib/blob/af838966d0724793d3dbfa35798ca6dd9f8a3143/lib/appium_lib/driver.rb#L256)
|
134
154
|
|
135
155
|
> def default_wait
|
136
156
|
|
157
|
+
Default wait time for elements to appear
|
137
158
|
Returns the default client side wait.
|
138
159
|
This value is independent of what the server is using
|
139
160
|
|
@@ -143,15 +164,21 @@ __Returns:__
|
|
143
164
|
|
144
165
|
--
|
145
166
|
|
146
|
-
##### [default_wait=](https://github.com/appium/ruby_lib/blob/
|
167
|
+
##### [default_wait=](https://github.com/appium/ruby_lib/blob/af838966d0724793d3dbfa35798ca6dd9f8a3143/lib/appium_lib/driver.rb#L256)
|
147
168
|
|
148
169
|
> def default_wait=(value)
|
149
170
|
|
150
171
|
Default wait time for elements to appear
|
172
|
+
Returns the default client side wait.
|
173
|
+
This value is independent of what the server is using
|
174
|
+
|
175
|
+
__Returns:__
|
176
|
+
|
177
|
+
[Integer]
|
151
178
|
|
152
179
|
--
|
153
180
|
|
154
|
-
##### [last_waits](https://github.com/appium/ruby_lib/blob/
|
181
|
+
##### [last_waits](https://github.com/appium/ruby_lib/blob/af838966d0724793d3dbfa35798ca6dd9f8a3143/lib/appium_lib/driver.rb#L258)
|
155
182
|
|
156
183
|
> def last_waits
|
157
184
|
|
@@ -159,7 +186,7 @@ Array of previous wait time values
|
|
159
186
|
|
160
187
|
--
|
161
188
|
|
162
|
-
##### [last_waits=](https://github.com/appium/ruby_lib/blob/
|
189
|
+
##### [last_waits=](https://github.com/appium/ruby_lib/blob/af838966d0724793d3dbfa35798ca6dd9f8a3143/lib/appium_lib/driver.rb#L258)
|
163
190
|
|
164
191
|
> def last_waits=(value)
|
165
192
|
|
@@ -167,7 +194,7 @@ Array of previous wait time values
|
|
167
194
|
|
168
195
|
--
|
169
196
|
|
170
|
-
##### [sauce_username](https://github.com/appium/ruby_lib/blob/
|
197
|
+
##### [sauce_username](https://github.com/appium/ruby_lib/blob/af838966d0724793d3dbfa35798ca6dd9f8a3143/lib/appium_lib/driver.rb#L260)
|
171
198
|
|
172
199
|
> def sauce_username
|
173
200
|
|
@@ -175,7 +202,7 @@ Username for use on Sauce Labs
|
|
175
202
|
|
176
203
|
--
|
177
204
|
|
178
|
-
##### [sauce_username=](https://github.com/appium/ruby_lib/blob/
|
205
|
+
##### [sauce_username=](https://github.com/appium/ruby_lib/blob/af838966d0724793d3dbfa35798ca6dd9f8a3143/lib/appium_lib/driver.rb#L260)
|
179
206
|
|
180
207
|
> def sauce_username=(value)
|
181
208
|
|
@@ -183,7 +210,7 @@ Username for use on Sauce Labs
|
|
183
210
|
|
184
211
|
--
|
185
212
|
|
186
|
-
##### [sauce_access_key](https://github.com/appium/ruby_lib/blob/
|
213
|
+
##### [sauce_access_key](https://github.com/appium/ruby_lib/blob/af838966d0724793d3dbfa35798ca6dd9f8a3143/lib/appium_lib/driver.rb#L262)
|
187
214
|
|
188
215
|
> def sauce_access_key
|
189
216
|
|
@@ -191,7 +218,7 @@ Access Key for use on Sauce Labs
|
|
191
218
|
|
192
219
|
--
|
193
220
|
|
194
|
-
##### [sauce_access_key=](https://github.com/appium/ruby_lib/blob/
|
221
|
+
##### [sauce_access_key=](https://github.com/appium/ruby_lib/blob/af838966d0724793d3dbfa35798ca6dd9f8a3143/lib/appium_lib/driver.rb#L262)
|
195
222
|
|
196
223
|
> def sauce_access_key=(value)
|
197
224
|
|
@@ -199,7 +226,7 @@ Access Key for use on Sauce Labs
|
|
199
226
|
|
200
227
|
--
|
201
228
|
|
202
|
-
##### [appium_port](https://github.com/appium/ruby_lib/blob/
|
229
|
+
##### [appium_port](https://github.com/appium/ruby_lib/blob/af838966d0724793d3dbfa35798ca6dd9f8a3143/lib/appium_lib/driver.rb#L264)
|
203
230
|
|
204
231
|
> def appium_port
|
205
232
|
|
@@ -207,7 +234,7 @@ Appium's server port
|
|
207
234
|
|
208
235
|
--
|
209
236
|
|
210
|
-
##### [appium_port=](https://github.com/appium/ruby_lib/blob/
|
237
|
+
##### [appium_port=](https://github.com/appium/ruby_lib/blob/af838966d0724793d3dbfa35798ca6dd9f8a3143/lib/appium_lib/driver.rb#L264)
|
211
238
|
|
212
239
|
> def appium_port=(value)
|
213
240
|
|
@@ -215,7 +242,7 @@ Appium's server port
|
|
215
242
|
|
216
243
|
--
|
217
244
|
|
218
|
-
##### [appium_device](https://github.com/appium/ruby_lib/blob/
|
245
|
+
##### [appium_device](https://github.com/appium/ruby_lib/blob/af838966d0724793d3dbfa35798ca6dd9f8a3143/lib/appium_lib/driver.rb#L266)
|
219
246
|
|
220
247
|
> def appium_device
|
221
248
|
|
@@ -223,7 +250,7 @@ Device type to request from the appium server
|
|
223
250
|
|
224
251
|
--
|
225
252
|
|
226
|
-
##### [appium_device=](https://github.com/appium/ruby_lib/blob/
|
253
|
+
##### [appium_device=](https://github.com/appium/ruby_lib/blob/af838966d0724793d3dbfa35798ca6dd9f8a3143/lib/appium_lib/driver.rb#L266)
|
227
254
|
|
228
255
|
> def appium_device=(value)
|
229
256
|
|
@@ -231,7 +258,7 @@ Device type to request from the appium server
|
|
231
258
|
|
232
259
|
--
|
233
260
|
|
234
|
-
##### [appium_debug](https://github.com/appium/ruby_lib/blob/
|
261
|
+
##### [appium_debug](https://github.com/appium/ruby_lib/blob/af838966d0724793d3dbfa35798ca6dd9f8a3143/lib/appium_lib/driver.rb#L268)
|
235
262
|
|
236
263
|
> def appium_debug
|
237
264
|
|
@@ -239,7 +266,7 @@ Boolean debug mode for the Appium Ruby bindings
|
|
239
266
|
|
240
267
|
--
|
241
268
|
|
242
|
-
##### [appium_debug=](https://github.com/appium/ruby_lib/blob/
|
269
|
+
##### [appium_debug=](https://github.com/appium/ruby_lib/blob/af838966d0724793d3dbfa35798ca6dd9f8a3143/lib/appium_lib/driver.rb#L268)
|
243
270
|
|
244
271
|
> def appium_debug=(value)
|
245
272
|
|
@@ -247,9 +274,21 @@ Boolean debug mode for the Appium Ruby bindings
|
|
247
274
|
|
248
275
|
--
|
249
276
|
|
250
|
-
##### [
|
277
|
+
##### [driver](https://github.com/appium/ruby_lib/blob/af838966d0724793d3dbfa35798ca6dd9f8a3143/lib/appium_lib/driver.rb#L272)
|
251
278
|
|
252
|
-
> def
|
279
|
+
> def driver
|
280
|
+
|
281
|
+
Returns the driver
|
282
|
+
|
283
|
+
__Returns:__
|
284
|
+
|
285
|
+
[Driver] the driver
|
286
|
+
|
287
|
+
--
|
288
|
+
|
289
|
+
##### [initialize](https://github.com/appium/ruby_lib/blob/af838966d0724793d3dbfa35798ca6dd9f8a3143/lib/appium_lib/driver.rb#L293)
|
290
|
+
|
291
|
+
> def initialize(opts = {})
|
253
292
|
|
254
293
|
Creates a new driver
|
255
294
|
|
@@ -278,7 +317,7 @@ __Returns:__
|
|
278
317
|
|
279
318
|
--
|
280
319
|
|
281
|
-
##### [driver_attributes](https://github.com/appium/ruby_lib/blob/
|
320
|
+
##### [driver_attributes](https://github.com/appium/ruby_lib/blob/af838966d0724793d3dbfa35798ca6dd9f8a3143/lib/appium_lib/driver.rb#L359)
|
282
321
|
|
283
322
|
> def driver_attributes
|
284
323
|
|
@@ -286,7 +325,7 @@ Returns a hash of the driver attributes
|
|
286
325
|
|
287
326
|
--
|
288
327
|
|
289
|
-
##### [device_is_android?](https://github.com/appium/ruby_lib/blob/
|
328
|
+
##### [device_is_android?](https://github.com/appium/ruby_lib/blob/af838966d0724793d3dbfa35798ca6dd9f8a3143/lib/appium_lib/driver.rb#L379)
|
290
329
|
|
291
330
|
> def device_is_android?
|
292
331
|
|
@@ -298,7 +337,7 @@ __Returns:__
|
|
298
337
|
|
299
338
|
--
|
300
339
|
|
301
|
-
##### [appium_server_version](https://github.com/appium/ruby_lib/blob/
|
340
|
+
##### [appium_server_version](https://github.com/appium/ruby_lib/blob/af838966d0724793d3dbfa35798ca6dd9f8a3143/lib/appium_lib/driver.rb#L395)
|
302
341
|
|
303
342
|
> def appium_server_version
|
304
343
|
|
@@ -319,9 +358,9 @@ __Returns:__
|
|
319
358
|
|
320
359
|
--
|
321
360
|
|
322
|
-
##### [absolute_app_path](https://github.com/appium/ruby_lib/blob/
|
361
|
+
##### [absolute_app_path](https://github.com/appium/ruby_lib/blob/af838966d0724793d3dbfa35798ca6dd9f8a3143/lib/appium_lib/driver.rb#L407)
|
323
362
|
|
324
|
-
> def self.absolute_app_path
|
363
|
+
> def self.absolute_app_path(opts)
|
325
364
|
|
326
365
|
Converts app_path to an absolute path.
|
327
366
|
|
@@ -336,7 +375,7 @@ __Returns:__
|
|
336
375
|
|
337
376
|
--
|
338
377
|
|
339
|
-
##### [server_url](https://github.com/appium/ruby_lib/blob/
|
378
|
+
##### [server_url](https://github.com/appium/ruby_lib/blob/af838966d0724793d3dbfa35798ca6dd9f8a3143/lib/appium_lib/driver.rb#L440)
|
340
379
|
|
341
380
|
> def server_url
|
342
381
|
|
@@ -348,7 +387,7 @@ __Returns:__
|
|
348
387
|
|
349
388
|
--
|
350
389
|
|
351
|
-
##### [restart](https://github.com/appium/ruby_lib/blob/
|
390
|
+
##### [restart](https://github.com/appium/ruby_lib/blob/af838966d0724793d3dbfa35798ca6dd9f8a3143/lib/appium_lib/driver.rb#L451)
|
352
391
|
|
353
392
|
> def restart
|
354
393
|
|
@@ -360,21 +399,9 @@ __Returns:__
|
|
360
399
|
|
361
400
|
--
|
362
401
|
|
363
|
-
##### [
|
364
|
-
|
365
|
-
> def driver
|
366
|
-
|
367
|
-
Returns the driver
|
368
|
-
|
369
|
-
__Returns:__
|
370
|
-
|
371
|
-
[Driver] the driver
|
372
|
-
|
373
|
-
--
|
374
|
-
|
375
|
-
##### [screenshot](https://github.com/appium/ruby_lib/blob/ea11190b9ab36e34226d988f85fe612af6f769de/lib/appium_lib/driver.rb#L453)
|
402
|
+
##### [screenshot](https://github.com/appium/ruby_lib/blob/af838966d0724793d3dbfa35798ca6dd9f8a3143/lib/appium_lib/driver.rb#L462)
|
376
403
|
|
377
|
-
> def screenshot
|
404
|
+
> def screenshot(png_save_path)
|
378
405
|
|
379
406
|
Takes a png screenshot and saves to the target path.
|
380
407
|
|
@@ -390,7 +417,7 @@ __Returns:__
|
|
390
417
|
|
391
418
|
--
|
392
419
|
|
393
|
-
##### [driver_quit](https://github.com/appium/ruby_lib/blob/
|
420
|
+
##### [driver_quit](https://github.com/appium/ruby_lib/blob/af838966d0724793d3dbfa35798ca6dd9f8a3143/lib/appium_lib/driver.rb#L469)
|
394
421
|
|
395
422
|
> def driver_quit
|
396
423
|
|
@@ -402,7 +429,7 @@ __Returns:__
|
|
402
429
|
|
403
430
|
--
|
404
431
|
|
405
|
-
##### [start_driver](https://github.com/appium/ruby_lib/blob/
|
432
|
+
##### [start_driver](https://github.com/appium/ruby_lib/blob/af838966d0724793d3dbfa35798ca6dd9f8a3143/lib/appium_lib/driver.rb#L478)
|
406
433
|
|
407
434
|
> def start_driver
|
408
435
|
|
@@ -414,7 +441,7 @@ __Returns:__
|
|
414
441
|
|
415
442
|
--
|
416
443
|
|
417
|
-
##### [no_wait](https://github.com/appium/ruby_lib/blob/
|
444
|
+
##### [no_wait](https://github.com/appium/ruby_lib/blob/af838966d0724793d3dbfa35798ca6dd9f8a3143/lib/appium_lib/driver.rb#L506)
|
418
445
|
|
419
446
|
> def no_wait
|
420
447
|
|
@@ -422,9 +449,9 @@ Set implicit wait and default_wait to zero.
|
|
422
449
|
|
423
450
|
--
|
424
451
|
|
425
|
-
##### [set_wait](https://github.com/appium/ruby_lib/blob/
|
452
|
+
##### [set_wait](https://github.com/appium/ruby_lib/blob/af838966d0724793d3dbfa35798ca6dd9f8a3143/lib/appium_lib/driver.rb#L525)
|
426
453
|
|
427
|
-
> def set_wait
|
454
|
+
> def set_wait(timeout = nil)
|
428
455
|
|
429
456
|
Set implicit wait and default_wait to timeout, defaults to 30.
|
430
457
|
if set_wait is called without a param then the second to last
|
@@ -447,9 +474,9 @@ __Returns:__
|
|
447
474
|
|
448
475
|
--
|
449
476
|
|
450
|
-
##### [exists](https://github.com/appium/ruby_lib/blob/
|
477
|
+
##### [exists](https://github.com/appium/ruby_lib/blob/af838966d0724793d3dbfa35798ca6dd9f8a3143/lib/appium_lib/driver.rb#L552)
|
451
478
|
|
452
|
-
> def exists
|
479
|
+
> def exists(pre_check = 0, post_check = @default_wait, &search_block)
|
453
480
|
|
454
481
|
Returns existence of element.
|
455
482
|
|
@@ -473,9 +500,9 @@ __Returns:__
|
|
473
500
|
|
474
501
|
--
|
475
502
|
|
476
|
-
##### [execute_script](https://github.com/appium/ruby_lib/blob/
|
503
|
+
##### [execute_script](https://github.com/appium/ruby_lib/blob/af838966d0724793d3dbfa35798ca6dd9f8a3143/lib/appium_lib/driver.rb#L576)
|
477
504
|
|
478
|
-
> def execute_script
|
505
|
+
> def execute_script(script, *args)
|
479
506
|
|
480
507
|
The same as @driver.execute_script
|
481
508
|
|
@@ -491,9 +518,9 @@ __Returns:__
|
|
491
518
|
|
492
519
|
--
|
493
520
|
|
494
|
-
##### [find_elements](https://github.com/appium/ruby_lib/blob/
|
521
|
+
##### [find_elements](https://github.com/appium/ruby_lib/blob/af838966d0724793d3dbfa35798ca6dd9f8a3143/lib/appium_lib/driver.rb#L584)
|
495
522
|
|
496
|
-
> def find_elements
|
523
|
+
> def find_elements(*args)
|
497
524
|
|
498
525
|
Calls @driver.find_elements
|
499
526
|
|
@@ -507,9 +534,9 @@ __Returns:__
|
|
507
534
|
|
508
535
|
--
|
509
536
|
|
510
|
-
##### [find_element](https://github.com/appium/ruby_lib/blob/
|
537
|
+
##### [find_element](https://github.com/appium/ruby_lib/blob/af838966d0724793d3dbfa35798ca6dd9f8a3143/lib/appium_lib/driver.rb#L592)
|
511
538
|
|
512
|
-
> def find_element
|
539
|
+
> def find_element(*args)
|
513
540
|
|
514
541
|
Calls @driver.find_elements
|
515
542
|
|
@@ -523,7 +550,23 @@ __Returns:__
|
|
523
550
|
|
524
551
|
--
|
525
552
|
|
526
|
-
##### [
|
553
|
+
##### [set_location](https://github.com/appium/ruby_lib/blob/af838966d0724793d3dbfa35798ca6dd9f8a3143/lib/appium_lib/driver.rb#L605)
|
554
|
+
|
555
|
+
> def set_location(opts = {})
|
556
|
+
|
557
|
+
Calls @driver.set_location
|
558
|
+
|
559
|
+
__Parameters:__
|
560
|
+
|
561
|
+
[Hash] opts - consisting of:
|
562
|
+
|
563
|
+
__Returns:__
|
564
|
+
|
565
|
+
[Selenium::WebDriver::Location] the location constructed by the selenium webdriver
|
566
|
+
|
567
|
+
--
|
568
|
+
|
569
|
+
##### [x](https://github.com/appium/ruby_lib/blob/af838966d0724793d3dbfa35798ca6dd9f8a3143/lib/appium_lib/driver.rb#L615)
|
527
570
|
|
528
571
|
> def x
|
529
572
|
|
@@ -536,7 +579,19 @@ __Returns:__
|
|
536
579
|
|
537
580
|
--
|
538
581
|
|
539
|
-
##### [logger](https://github.com/appium/ruby_lib/blob/
|
582
|
+
##### [logger=](https://github.com/appium/ruby_lib/blob/af838966d0724793d3dbfa35798ca6dd9f8a3143/lib/appium_lib/logger.rb#L13)
|
583
|
+
|
584
|
+
> def logger=(value)
|
585
|
+
|
586
|
+
Sets the attribute logger
|
587
|
+
|
588
|
+
__Parameters:__
|
589
|
+
|
590
|
+
value - the value to set the attribute logger to.
|
591
|
+
|
592
|
+
--
|
593
|
+
|
594
|
+
##### [logger](https://github.com/appium/ruby_lib/blob/af838966d0724793d3dbfa35798ca6dd9f8a3143/lib/appium_lib/logger.rb#L17)
|
540
595
|
|
541
596
|
> def logger
|
542
597
|
|
@@ -544,7 +599,7 @@ __Returns:__
|
|
544
599
|
|
545
600
|
--
|
546
601
|
|
547
|
-
##### [NoArgMethods](https://github.com/appium/ruby_lib/blob/
|
602
|
+
##### [NoArgMethods](https://github.com/appium/ruby_lib/blob/af838966d0724793d3dbfa35798ca6dd9f8a3143/lib/appium_lib/device/device.rb#L7)
|
548
603
|
|
549
604
|
> NoArgMethods = {
|
550
605
|
|
@@ -552,7 +607,7 @@ __Returns:__
|
|
552
607
|
|
553
608
|
--
|
554
609
|
|
555
|
-
##### [app_strings](https://github.com/appium/ruby_lib/blob/
|
610
|
+
##### [app_strings](https://github.com/appium/ruby_lib/blob/af838966d0724793d3dbfa35798ca6dd9f8a3143/lib/appium_lib/device/device.rb#L24)
|
556
611
|
|
557
612
|
> def app_strings
|
558
613
|
|
@@ -563,7 +618,7 @@ app_strings #=> "TransitionsTitle"=>"Transitions", "WebTitle"=>"Web"
|
|
563
618
|
|
564
619
|
--
|
565
620
|
|
566
|
-
##### [background_app](https://github.com/appium/ruby_lib/blob/
|
621
|
+
##### [background_app](https://github.com/appium/ruby_lib/blob/af838966d0724793d3dbfa35798ca6dd9f8a3143/lib/appium_lib/device/device.rb#L30)
|
567
622
|
|
568
623
|
> def background_app
|
569
624
|
|
@@ -572,7 +627,7 @@ This is a blocking application
|
|
572
627
|
|
573
628
|
--
|
574
629
|
|
575
|
-
##### [current_activity](https://github.com/appium/ruby_lib/blob/
|
630
|
+
##### [current_activity](https://github.com/appium/ruby_lib/blob/af838966d0724793d3dbfa35798ca6dd9f8a3143/lib/appium_lib/device/device.rb#L35)
|
576
631
|
|
577
632
|
> def current_activity
|
578
633
|
|
@@ -580,15 +635,15 @@ This is a blocking application
|
|
580
635
|
|
581
636
|
--
|
582
637
|
|
583
|
-
##### [launch_app](https://github.com/appium/ruby_lib/blob/
|
638
|
+
##### [launch_app](https://github.com/appium/ruby_lib/blob/af838966d0724793d3dbfa35798ca6dd9f8a3143/lib/appium_lib/device/device.rb#L37)
|
584
639
|
|
585
640
|
> def launch_app
|
586
641
|
|
587
|
-
Start the simulator and
|
642
|
+
Start the simulator and application configured with desired capabilities
|
588
643
|
|
589
644
|
--
|
590
645
|
|
591
|
-
##### [reset](https://github.com/appium/ruby_lib/blob/
|
646
|
+
##### [reset](https://github.com/appium/ruby_lib/blob/af838966d0724793d3dbfa35798ca6dd9f8a3143/lib/appium_lib/device/device.rb#L40)
|
592
647
|
|
593
648
|
> def reset
|
594
649
|
|
@@ -596,7 +651,7 @@ Reset the device, relaunching the application.
|
|
596
651
|
|
597
652
|
--
|
598
653
|
|
599
|
-
##### [shake](https://github.com/appium/ruby_lib/blob/
|
654
|
+
##### [shake](https://github.com/appium/ruby_lib/blob/af838966d0724793d3dbfa35798ca6dd9f8a3143/lib/appium_lib/device/device.rb#L43)
|
600
655
|
|
601
656
|
> def shake
|
602
657
|
|
@@ -604,15 +659,23 @@ Cause the device to shake
|
|
604
659
|
|
605
660
|
--
|
606
661
|
|
607
|
-
##### [toggle_flight_mode](https://github.com/appium/ruby_lib/blob/
|
662
|
+
##### [toggle_flight_mode](https://github.com/appium/ruby_lib/blob/af838966d0724793d3dbfa35798ca6dd9f8a3143/lib/appium_lib/device/device.rb#L46)
|
608
663
|
|
609
664
|
> def toggle_flight_mode
|
610
665
|
|
611
|
-
|
666
|
+
Toggle flight mode on or off
|
667
|
+
|
668
|
+
--
|
669
|
+
|
670
|
+
##### [device_locked?](https://github.com/appium/ruby_lib/blob/af838966d0724793d3dbfa35798ca6dd9f8a3143/lib/appium_lib/device/device.rb#L49)
|
671
|
+
|
672
|
+
> def device_locked?
|
673
|
+
|
674
|
+
|
612
675
|
|
613
676
|
--
|
614
677
|
|
615
|
-
##### [hide_keyboard](https://github.com/appium/ruby_lib/blob/
|
678
|
+
##### [hide_keyboard](https://github.com/appium/ruby_lib/blob/af838966d0724793d3dbfa35798ca6dd9f8a3143/lib/appium_lib/device/device.rb#L51)
|
616
679
|
|
617
680
|
> def hide_keyboard
|
618
681
|
|
@@ -625,7 +688,7 @@ Defaults to 'Done'.
|
|
625
688
|
|
626
689
|
--
|
627
690
|
|
628
|
-
##### [press_keycode](https://github.com/appium/ruby_lib/blob/
|
691
|
+
##### [press_keycode](https://github.com/appium/ruby_lib/blob/af838966d0724793d3dbfa35798ca6dd9f8a3143/lib/appium_lib/device/device.rb#L60)
|
629
692
|
|
630
693
|
> def press_keycode
|
631
694
|
|
@@ -640,7 +703,7 @@ __Parameters:__
|
|
640
703
|
|
641
704
|
--
|
642
705
|
|
643
|
-
##### [long_press_keycode](https://github.com/appium/ruby_lib/blob/
|
706
|
+
##### [long_press_keycode](https://github.com/appium/ruby_lib/blob/af838966d0724793d3dbfa35798ca6dd9f8a3143/lib/appium_lib/device/device.rb#L66)
|
644
707
|
|
645
708
|
> def long_press_keycode
|
646
709
|
|
@@ -655,7 +718,7 @@ __Parameters:__
|
|
655
718
|
|
656
719
|
--
|
657
720
|
|
658
|
-
##### [push_file](https://github.com/appium/ruby_lib/blob/
|
721
|
+
##### [push_file](https://github.com/appium/ruby_lib/blob/af838966d0724793d3dbfa35798ca6dd9f8a3143/lib/appium_lib/device/device.rb#L72)
|
659
722
|
|
660
723
|
> def push_file
|
661
724
|
|
@@ -669,7 +732,7 @@ __Parameters:__
|
|
669
732
|
|
670
733
|
--
|
671
734
|
|
672
|
-
##### [pull_file](https://github.com/appium/ruby_lib/blob/
|
735
|
+
##### [pull_file](https://github.com/appium/ruby_lib/blob/af838966d0724793d3dbfa35798ca6dd9f8a3143/lib/appium_lib/device/device.rb#L77)
|
673
736
|
|
674
737
|
> def pull_file
|
675
738
|
|
@@ -686,7 +749,7 @@ __Parameters:__
|
|
686
749
|
|
687
750
|
--
|
688
751
|
|
689
|
-
##### [pull_folder](https://github.com/appium/ruby_lib/blob/
|
752
|
+
##### [pull_folder](https://github.com/appium/ruby_lib/blob/af838966d0724793d3dbfa35798ca6dd9f8a3143/lib/appium_lib/device/device.rb#L87)
|
690
753
|
|
691
754
|
> def pull_folder
|
692
755
|
|
@@ -701,7 +764,7 @@ __Parameters:__
|
|
701
764
|
|
702
765
|
--
|
703
766
|
|
704
|
-
##### [end_coverage](https://github.com/appium/ruby_lib/blob/
|
767
|
+
##### [end_coverage](https://github.com/appium/ruby_lib/blob/af838966d0724793d3dbfa35798ca6dd9f8a3143/lib/appium_lib/device/device.rb#L95)
|
705
768
|
|
706
769
|
> def end_coverage
|
707
770
|
|
@@ -715,7 +778,7 @@ __Parameters:__
|
|
715
778
|
|
716
779
|
--
|
717
780
|
|
718
|
-
##### [get_settings](https://github.com/appium/ruby_lib/blob/
|
781
|
+
##### [get_settings](https://github.com/appium/ruby_lib/blob/af838966d0724793d3dbfa35798ca6dd9f8a3143/lib/appium_lib/device/device.rb#L100)
|
719
782
|
|
720
783
|
> def get_settings
|
721
784
|
|
@@ -723,7 +786,7 @@ Get appium Settings for current test session
|
|
723
786
|
|
724
787
|
--
|
725
788
|
|
726
|
-
##### [extend_search_contexts](https://github.com/appium/ruby_lib/blob/
|
789
|
+
##### [extend_search_contexts](https://github.com/appium/ruby_lib/blob/af838966d0724793d3dbfa35798ca6dd9f8a3143/lib/appium_lib/device/device.rb#L351)
|
727
790
|
|
728
791
|
> def extend_search_contexts
|
729
792
|
|
@@ -731,7 +794,7 @@ Get appium Settings for current test session
|
|
731
794
|
|
732
795
|
--
|
733
796
|
|
734
|
-
##### [accessiblity_id_find](https://github.com/appium/ruby_lib/blob/
|
797
|
+
##### [accessiblity_id_find](https://github.com/appium/ruby_lib/blob/af838966d0724793d3dbfa35798ca6dd9f8a3143/lib/appium_lib/device/device.rb#L351)
|
735
798
|
|
736
799
|
> def accessiblity_id_find
|
737
800
|
|
@@ -743,7 +806,7 @@ find_element/s with their accessibility_id
|
|
743
806
|
|
744
807
|
--
|
745
808
|
|
746
|
-
##### [add_touch_actions](https://github.com/appium/ruby_lib/blob/
|
809
|
+
##### [add_touch_actions](https://github.com/appium/ruby_lib/blob/af838966d0724793d3dbfa35798ca6dd9f8a3143/lib/appium_lib/device/device.rb#L357)
|
747
810
|
|
748
811
|
> def add_touch_actions
|
749
812
|
|
@@ -751,7 +814,7 @@ find_element/s with their accessibility_id
|
|
751
814
|
|
752
815
|
--
|
753
816
|
|
754
|
-
##### [set_context](https://github.com/appium/ruby_lib/blob/
|
817
|
+
##### [set_context](https://github.com/appium/ruby_lib/blob/af838966d0724793d3dbfa35798ca6dd9f8a3143/lib/appium_lib/device/device.rb#L381)
|
755
818
|
|
756
819
|
> def set_context
|
757
820
|
|
@@ -766,7 +829,7 @@ __Parameters:__
|
|
766
829
|
|
767
830
|
--
|
768
831
|
|
769
|
-
##### [current_context](https://github.com/appium/ruby_lib/blob/
|
832
|
+
##### [current_context](https://github.com/appium/ruby_lib/blob/af838966d0724793d3dbfa35798ca6dd9f8a3143/lib/appium_lib/device/device.rb#L389)
|
770
833
|
|
771
834
|
> def current_context
|
772
835
|
|
@@ -778,7 +841,7 @@ __Returns:__
|
|
778
841
|
|
779
842
|
--
|
780
843
|
|
781
|
-
##### [available_contexts](https://github.com/appium/ruby_lib/blob/
|
844
|
+
##### [available_contexts](https://github.com/appium/ruby_lib/blob/af838966d0724793d3dbfa35798ca6dd9f8a3143/lib/appium_lib/device/device.rb#L392)
|
782
845
|
|
783
846
|
> def available_contexts
|
784
847
|
|
@@ -790,7 +853,7 @@ __Returns:__
|
|
790
853
|
|
791
854
|
--
|
792
855
|
|
793
|
-
##### [within_context](https://github.com/appium/ruby_lib/blob/
|
856
|
+
##### [within_context](https://github.com/appium/ruby_lib/blob/af838966d0724793d3dbfa35798ca6dd9f8a3143/lib/appium_lib/device/device.rb#L402)
|
794
857
|
|
795
858
|
> def within_context(context)
|
796
859
|
|
@@ -806,7 +869,7 @@ __Parameters:__
|
|
806
869
|
|
807
870
|
--
|
808
871
|
|
809
|
-
##### [switch_to_default_context](https://github.com/appium/ruby_lib/blob/
|
872
|
+
##### [switch_to_default_context](https://github.com/appium/ruby_lib/blob/af838966d0724793d3dbfa35798ca6dd9f8a3143/lib/appium_lib/device/device.rb#L410)
|
810
873
|
|
811
874
|
> def switch_to_default_context
|
812
875
|
|
@@ -814,9 +877,9 @@ Change to the default context. This is equivalent to `set_context nil`.
|
|
814
877
|
|
815
878
|
--
|
816
879
|
|
817
|
-
##### [pinch](https://github.com/appium/ruby_lib/blob/
|
880
|
+
##### [pinch](https://github.com/appium/ruby_lib/blob/af838966d0724793d3dbfa35798ca6dd9f8a3143/lib/appium_lib/device/multi_touch.rb#L28)
|
818
881
|
|
819
|
-
> def pinch(percentage=25, auto_perform=true)
|
882
|
+
> def pinch(percentage = 25, auto_perform = true)
|
820
883
|
|
821
884
|
Convenience method for pinching the screen.
|
822
885
|
Places two fingers at the edges of the screen and brings them together.
|
@@ -833,9 +896,9 @@ __Parameters:__
|
|
833
896
|
|
834
897
|
--
|
835
898
|
|
836
|
-
##### [zoom](https://github.com/appium/ruby_lib/blob/
|
899
|
+
##### [zoom](https://github.com/appium/ruby_lib/blob/af838966d0724793d3dbfa35798ca6dd9f8a3143/lib/appium_lib/device/multi_touch.rb#L56)
|
837
900
|
|
838
|
-
> def zoom(percentage=200, auto_perform=true)
|
901
|
+
> def zoom(percentage = 200, auto_perform = true)
|
839
902
|
|
840
903
|
Convenience method for zooming the screen.
|
841
904
|
Places two fingers at the edges of the screen and brings them together.
|
@@ -852,7 +915,7 @@ __Parameters:__
|
|
852
915
|
|
853
916
|
--
|
854
917
|
|
855
|
-
##### [initialize](https://github.com/appium/ruby_lib/blob/
|
918
|
+
##### [initialize](https://github.com/appium/ruby_lib/blob/af838966d0724793d3dbfa35798ca6dd9f8a3143/lib/appium_lib/device/multi_touch.rb#L77)
|
856
919
|
|
857
920
|
> def initialize
|
858
921
|
|
@@ -864,7 +927,7 @@ __Returns:__
|
|
864
927
|
|
865
928
|
--
|
866
929
|
|
867
|
-
##### [add](https://github.com/appium/ruby_lib/blob/
|
930
|
+
##### [add](https://github.com/appium/ruby_lib/blob/af838966d0724793d3dbfa35798ca6dd9f8a3143/lib/appium_lib/device/multi_touch.rb#L83)
|
868
931
|
|
869
932
|
> def add(chain)
|
870
933
|
|
@@ -876,7 +939,7 @@ __Parameters:__
|
|
876
939
|
|
877
940
|
--
|
878
941
|
|
879
|
-
##### [perform](https://github.com/appium/ruby_lib/blob/
|
942
|
+
##### [perform](https://github.com/appium/ruby_lib/blob/af838966d0724793d3dbfa35798ca6dd9f8a3143/lib/appium_lib/device/multi_touch.rb#L88)
|
880
943
|
|
881
944
|
> def perform
|
882
945
|
|
@@ -884,7 +947,7 @@ Ask Appium to perform the actions
|
|
884
947
|
|
885
948
|
--
|
886
949
|
|
887
|
-
##### [ACTIONS](https://github.com/appium/ruby_lib/blob/
|
950
|
+
##### [ACTIONS](https://github.com/appium/ruby_lib/blob/af838966d0724793d3dbfa35798ca6dd9f8a3143/lib/appium_lib/device/touch_actions.rb#L11)
|
888
951
|
|
889
952
|
> ACTIONS = [:move_to, :long_press, :press, :release, :tap, :wait, :perform]
|
890
953
|
|
@@ -892,7 +955,7 @@ Ask Appium to perform the actions
|
|
892
955
|
|
893
956
|
--
|
894
957
|
|
895
|
-
##### [COMPLEX_ACTIONS](https://github.com/appium/ruby_lib/blob/
|
958
|
+
##### [COMPLEX_ACTIONS](https://github.com/appium/ruby_lib/blob/af838966d0724793d3dbfa35798ca6dd9f8a3143/lib/appium_lib/device/touch_actions.rb#L12)
|
896
959
|
|
897
960
|
> COMPLEX_ACTIONS = [:swipe]
|
898
961
|
|
@@ -900,7 +963,7 @@ Ask Appium to perform the actions
|
|
900
963
|
|
901
964
|
--
|
902
965
|
|
903
|
-
##### [actions](https://github.com/appium/ruby_lib/blob/
|
966
|
+
##### [actions](https://github.com/appium/ruby_lib/blob/af838966d0724793d3dbfa35798ca6dd9f8a3143/lib/appium_lib/device/touch_actions.rb#L26)
|
904
967
|
|
905
968
|
> def actions
|
906
969
|
|
@@ -908,7 +971,7 @@ Returns the value of attribute actions
|
|
908
971
|
|
909
972
|
--
|
910
973
|
|
911
|
-
##### [initialize](https://github.com/appium/ruby_lib/blob/
|
974
|
+
##### [initialize](https://github.com/appium/ruby_lib/blob/af838966d0724793d3dbfa35798ca6dd9f8a3143/lib/appium_lib/device/touch_actions.rb#L28)
|
912
975
|
|
913
976
|
> def initialize
|
914
977
|
|
@@ -920,7 +983,7 @@ __Returns:__
|
|
920
983
|
|
921
984
|
--
|
922
985
|
|
923
|
-
##### [move_to](https://github.com/appium/ruby_lib/blob/
|
986
|
+
##### [move_to](https://github.com/appium/ruby_lib/blob/af838966d0724793d3dbfa35798ca6dd9f8a3143/lib/appium_lib/device/touch_actions.rb#L36)
|
924
987
|
|
925
988
|
> def move_to(opts)
|
926
989
|
|
@@ -932,7 +995,7 @@ __Parameters:__
|
|
932
995
|
|
933
996
|
--
|
934
997
|
|
935
|
-
##### [long_press](https://github.com/appium/ruby_lib/blob/
|
998
|
+
##### [long_press](https://github.com/appium/ruby_lib/blob/af838966d0724793d3dbfa35798ca6dd9f8a3143/lib/appium_lib/device/touch_actions.rb#L46)
|
936
999
|
|
937
1000
|
> def long_press(opts)
|
938
1001
|
|
@@ -950,7 +1013,7 @@ __Parameters:__
|
|
950
1013
|
|
951
1014
|
--
|
952
1015
|
|
953
|
-
##### [press](https://github.com/appium/ruby_lib/blob/
|
1016
|
+
##### [press](https://github.com/appium/ruby_lib/blob/af838966d0724793d3dbfa35798ca6dd9f8a3143/lib/appium_lib/device/touch_actions.rb#L58)
|
954
1017
|
|
955
1018
|
> def press(opts)
|
956
1019
|
|
@@ -963,9 +1026,9 @@ __Parameters:__
|
|
963
1026
|
|
964
1027
|
--
|
965
1028
|
|
966
|
-
##### [release](https://github.com/appium/ruby_lib/blob/
|
1029
|
+
##### [release](https://github.com/appium/ruby_lib/blob/af838966d0724793d3dbfa35798ca6dd9f8a3143/lib/appium_lib/device/touch_actions.rb#L69)
|
967
1030
|
|
968
|
-
> def release(opts=nil)
|
1031
|
+
> def release(opts = nil)
|
969
1032
|
|
970
1033
|
Remove a finger from the screen.
|
971
1034
|
|
@@ -975,7 +1038,7 @@ __Parameters:__
|
|
975
1038
|
|
976
1039
|
--
|
977
1040
|
|
978
|
-
##### [tap](https://github.com/appium/ruby_lib/blob/
|
1041
|
+
##### [tap](https://github.com/appium/ruby_lib/blob/af838966d0724793d3dbfa35798ca6dd9f8a3143/lib/appium_lib/device/touch_actions.rb#L80)
|
979
1042
|
|
980
1043
|
> def tap(opts)
|
981
1044
|
|
@@ -987,7 +1050,7 @@ __Parameters:__
|
|
987
1050
|
|
988
1051
|
--
|
989
1052
|
|
990
|
-
##### [wait](https://github.com/appium/ruby_lib/blob/
|
1053
|
+
##### [wait](https://github.com/appium/ruby_lib/blob/af838966d0724793d3dbfa35798ca6dd9f8a3143/lib/appium_lib/device/touch_actions.rb#L89)
|
991
1054
|
|
992
1055
|
> def wait(milliseconds)
|
993
1056
|
|
@@ -999,7 +1062,7 @@ __Parameters:__
|
|
999
1062
|
|
1000
1063
|
--
|
1001
1064
|
|
1002
|
-
##### [swipe](https://github.com/appium/ruby_lib/blob/
|
1065
|
+
##### [swipe](https://github.com/appium/ruby_lib/blob/af838966d0724793d3dbfa35798ca6dd9f8a3143/lib/appium_lib/device/touch_actions.rb#L103)
|
1003
1066
|
|
1004
1067
|
> def swipe(opts)
|
1005
1068
|
|
@@ -1013,7 +1076,7 @@ __Parameters:__
|
|
1013
1076
|
|
1014
1077
|
--
|
1015
1078
|
|
1016
|
-
##### [perform](https://github.com/appium/ruby_lib/blob/
|
1079
|
+
##### [perform](https://github.com/appium/ruby_lib/blob/af838966d0724793d3dbfa35798ca6dd9f8a3143/lib/appium_lib/device/touch_actions.rb#L118)
|
1017
1080
|
|
1018
1081
|
> def perform
|
1019
1082
|
|
@@ -1021,7 +1084,7 @@ Ask the driver to perform all actions in this action chain.
|
|
1021
1084
|
|
1022
1085
|
--
|
1023
1086
|
|
1024
|
-
##### [cancel](https://github.com/appium/ruby_lib/blob/
|
1087
|
+
##### [cancel](https://github.com/appium/ruby_lib/blob/af838966d0724793d3dbfa35798ca6dd9f8a3143/lib/appium_lib/device/touch_actions.rb#L124)
|
1025
1088
|
|
1026
1089
|
> def cancel
|
1027
1090
|
|
@@ -1029,15 +1092,15 @@ Does nothing, currently.
|
|
1029
1092
|
|
1030
1093
|
--
|
1031
1094
|
|
1032
|
-
##### [chain_method](https://github.com/appium/ruby_lib/blob/
|
1095
|
+
##### [chain_method](https://github.com/appium/ruby_lib/blob/af838966d0724793d3dbfa35798ca6dd9f8a3143/lib/appium_lib/device/touch_actions.rb#L132)
|
1033
1096
|
|
1034
|
-
> def chain_method(method, args=nil)
|
1097
|
+
> def chain_method(method, args = nil)
|
1035
1098
|
|
1036
1099
|
|
1037
1100
|
|
1038
1101
|
--
|
1039
1102
|
|
1040
|
-
##### [args_with_ele_ref](https://github.com/appium/ruby_lib/blob/
|
1103
|
+
##### [args_with_ele_ref](https://github.com/appium/ruby_lib/blob/af838966d0724793d3dbfa35798ca6dd9f8a3143/lib/appium_lib/device/touch_actions.rb#L141)
|
1041
1104
|
|
1042
1105
|
> def args_with_ele_ref(args)
|
1043
1106
|
|
@@ -1045,26 +1108,26 @@ Does nothing, currently.
|
|
1045
1108
|
|
1046
1109
|
--
|
1047
1110
|
|
1048
|
-
##### [_generic_wait](https://github.com/appium/ruby_lib/blob/
|
1111
|
+
##### [_generic_wait](https://github.com/appium/ruby_lib/blob/af838966d0724793d3dbfa35798ca6dd9f8a3143/lib/appium_lib/common/wait.rb#L9)
|
1049
1112
|
|
1050
|
-
> def _generic_wait
|
1113
|
+
> def _generic_wait(opts = {}, &block)
|
1051
1114
|
|
1052
1115
|
Wait code from the selenium Ruby gem
|
1053
1116
|
https://github.com/SeleniumHQ/selenium/blob/cf501dda3f0ed12233de51ce8170c0e8090f0c20/rb/lib/selenium/webdriver/common/wait.rb
|
1054
1117
|
|
1055
1118
|
--
|
1056
1119
|
|
1057
|
-
##### [_process_wait_opts](https://github.com/appium/ruby_lib/blob/
|
1120
|
+
##### [_process_wait_opts](https://github.com/appium/ruby_lib/blob/af838966d0724793d3dbfa35798ca6dd9f8a3143/lib/appium_lib/common/wait.rb#L54)
|
1058
1121
|
|
1059
|
-
> def _process_wait_opts
|
1122
|
+
> def _process_wait_opts(opts)
|
1060
1123
|
|
1061
1124
|
process opts before calling _generic_wait
|
1062
1125
|
|
1063
1126
|
--
|
1064
1127
|
|
1065
|
-
##### [wait_true](https://github.com/appium/ruby_lib/blob/
|
1128
|
+
##### [wait_true](https://github.com/appium/ruby_lib/blob/af838966d0724793d3dbfa35798ca6dd9f8a3143/lib/appium_lib/common/wait.rb#L75)
|
1066
1129
|
|
1067
|
-
> def wait_true
|
1130
|
+
> def wait_true(opts = {}, &block)
|
1068
1131
|
|
1069
1132
|
Check every interval seconds to see if block.call returns a truthy value.
|
1070
1133
|
Note this isn't a strict boolean true, any truthy value is accepted.
|
@@ -1082,9 +1145,9 @@ __Parameters:__
|
|
1082
1145
|
|
1083
1146
|
--
|
1084
1147
|
|
1085
|
-
##### [wait](https://github.com/appium/ruby_lib/blob/
|
1148
|
+
##### [wait](https://github.com/appium/ruby_lib/blob/af838966d0724793d3dbfa35798ca6dd9f8a3143/lib/appium_lib/common/wait.rb#L93)
|
1086
1149
|
|
1087
|
-
> def wait
|
1150
|
+
> def wait(opts = {}, &block)
|
1088
1151
|
|
1089
1152
|
Check every interval seconds to see if block.call doesn't raise an exception.
|
1090
1153
|
Give up after timeout seconds.
|
@@ -1100,15 +1163,15 @@ __Parameters:__
|
|
1100
1163
|
|
1101
1164
|
--
|
1102
1165
|
|
1103
|
-
##### [ignore](https://github.com/appium/ruby_lib/blob/
|
1166
|
+
##### [ignore](https://github.com/appium/ruby_lib/blob/af838966d0724793d3dbfa35798ca6dd9f8a3143/lib/appium_lib/common/helper.rb#L24)
|
1104
1167
|
|
1105
|
-
> def ignore
|
1168
|
+
> def ignore(&block)
|
1106
1169
|
|
1107
1170
|
Return block.call and ignore any exceptions.
|
1108
1171
|
|
1109
1172
|
--
|
1110
1173
|
|
1111
|
-
##### [back](https://github.com/appium/ruby_lib/blob/
|
1174
|
+
##### [back](https://github.com/appium/ruby_lib/blob/af838966d0724793d3dbfa35798ca6dd9f8a3143/lib/appium_lib/common/helper.rb#L31)
|
1112
1175
|
|
1113
1176
|
> def back
|
1114
1177
|
|
@@ -1120,7 +1183,7 @@ __Returns:__
|
|
1120
1183
|
|
1121
1184
|
--
|
1122
1185
|
|
1123
|
-
##### [session_id](https://github.com/appium/ruby_lib/blob/
|
1186
|
+
##### [session_id](https://github.com/appium/ruby_lib/blob/af838966d0724793d3dbfa35798ca6dd9f8a3143/lib/appium_lib/common/helper.rb#L36)
|
1124
1187
|
|
1125
1188
|
> def session_id
|
1126
1189
|
|
@@ -1128,9 +1191,9 @@ For Sauce Labs reporting. Returns the current session id.
|
|
1128
1191
|
|
1129
1192
|
--
|
1130
1193
|
|
1131
|
-
##### [xpath](https://github.com/appium/ruby_lib/blob/
|
1194
|
+
##### [xpath](https://github.com/appium/ruby_lib/blob/af838966d0724793d3dbfa35798ca6dd9f8a3143/lib/appium_lib/common/helper.rb#L44)
|
1132
1195
|
|
1133
|
-
> def xpath
|
1196
|
+
> def xpath(xpath_str)
|
1134
1197
|
|
1135
1198
|
Returns the first element that matches the provided xpath.
|
1136
1199
|
|
@@ -1144,9 +1207,9 @@ __Returns:__
|
|
1144
1207
|
|
1145
1208
|
--
|
1146
1209
|
|
1147
|
-
##### [xpaths](https://github.com/appium/ruby_lib/blob/
|
1210
|
+
##### [xpaths](https://github.com/appium/ruby_lib/blob/af838966d0724793d3dbfa35798ca6dd9f8a3143/lib/appium_lib/common/helper.rb#L52)
|
1148
1211
|
|
1149
|
-
> def xpaths
|
1212
|
+
> def xpaths(xpath_str)
|
1150
1213
|
|
1151
1214
|
Returns all elements that match the provided xpath.
|
1152
1215
|
|
@@ -1160,15 +1223,15 @@ __Returns:__
|
|
1160
1223
|
|
1161
1224
|
--
|
1162
1225
|
|
1163
|
-
##### [_print_source](https://github.com/appium/ruby_lib/blob/
|
1226
|
+
##### [_print_source](https://github.com/appium/ruby_lib/blob/af838966d0724793d3dbfa35798ca6dd9f8a3143/lib/appium_lib/common/helper.rb#L56)
|
1164
1227
|
|
1165
|
-
> def _print_source
|
1228
|
+
> def _print_source(source)
|
1166
1229
|
|
1167
1230
|
|
1168
1231
|
|
1169
1232
|
--
|
1170
1233
|
|
1171
|
-
##### [result](https://github.com/appium/ruby_lib/blob/
|
1234
|
+
##### [result](https://github.com/appium/ruby_lib/blob/af838966d0724793d3dbfa35798ca6dd9f8a3143/lib/appium_lib/common/helper.rb#L69)
|
1172
1235
|
|
1173
1236
|
> def result
|
1174
1237
|
|
@@ -1176,7 +1239,7 @@ Returns the value of attribute result
|
|
1176
1239
|
|
1177
1240
|
--
|
1178
1241
|
|
1179
|
-
##### [initialize](https://github.com/appium/ruby_lib/blob/
|
1242
|
+
##### [initialize](https://github.com/appium/ruby_lib/blob/af838966d0724793d3dbfa35798ca6dd9f8a3143/lib/appium_lib/common/helper.rb#L71)
|
1180
1243
|
|
1181
1244
|
> def initialize
|
1182
1245
|
|
@@ -1188,7 +1251,7 @@ __Returns:__
|
|
1188
1251
|
|
1189
1252
|
--
|
1190
1253
|
|
1191
|
-
##### [reset](https://github.com/appium/ruby_lib/blob/
|
1254
|
+
##### [reset](https://github.com/appium/ruby_lib/blob/af838966d0724793d3dbfa35798ca6dd9f8a3143/lib/appium_lib/common/helper.rb#L75)
|
1192
1255
|
|
1193
1256
|
> def reset
|
1194
1257
|
|
@@ -1196,15 +1259,15 @@ __Returns:__
|
|
1196
1259
|
|
1197
1260
|
--
|
1198
1261
|
|
1199
|
-
##### [start_element](https://github.com/appium/ruby_lib/blob/
|
1262
|
+
##### [start_element](https://github.com/appium/ruby_lib/blob/af838966d0724793d3dbfa35798ca6dd9f8a3143/lib/appium_lib/common/helper.rb#L80)
|
1200
1263
|
|
1201
|
-
> def start_element
|
1264
|
+
> def start_element(name, attrs = [])
|
1202
1265
|
|
1203
1266
|
http://nokogiri.org/Nokogiri/XML/SAX/Document.html
|
1204
1267
|
|
1205
1268
|
--
|
1206
1269
|
|
1207
|
-
##### [formatted_result](https://github.com/appium/ruby_lib/blob/
|
1270
|
+
##### [formatted_result](https://github.com/appium/ruby_lib/blob/af838966d0724793d3dbfa35798ca6dd9f8a3143/lib/appium_lib/common/helper.rb#L86)
|
1208
1271
|
|
1209
1272
|
> def formatted_result
|
1210
1273
|
|
@@ -1212,7 +1275,7 @@ http://nokogiri.org/Nokogiri/XML/SAX/Document.html
|
|
1212
1275
|
|
1213
1276
|
--
|
1214
1277
|
|
1215
|
-
##### [get_page_class](https://github.com/appium/ruby_lib/blob/
|
1278
|
+
##### [get_page_class](https://github.com/appium/ruby_lib/blob/af838966d0724793d3dbfa35798ca6dd9f8a3143/lib/appium_lib/common/helper.rb#L97)
|
1216
1279
|
|
1217
1280
|
> def get_page_class
|
1218
1281
|
|
@@ -1220,7 +1283,7 @@ Returns a string of class counts of visible elements.
|
|
1220
1283
|
|
1221
1284
|
--
|
1222
1285
|
|
1223
|
-
##### [page_class](https://github.com/appium/ruby_lib/blob/
|
1286
|
+
##### [page_class](https://github.com/appium/ruby_lib/blob/af838966d0724793d3dbfa35798ca6dd9f8a3143/lib/appium_lib/common/helper.rb#L108)
|
1224
1287
|
|
1225
1288
|
> def page_class
|
1226
1289
|
|
@@ -1229,9 +1292,9 @@ Useful for appium_console.
|
|
1229
1292
|
|
1230
1293
|
--
|
1231
1294
|
|
1232
|
-
##### [px_to_window_rel](https://github.com/appium/ruby_lib/blob/
|
1295
|
+
##### [px_to_window_rel](https://github.com/appium/ruby_lib/blob/af838966d0724793d3dbfa35798ca6dd9f8a3143/lib/appium_lib/common/helper.rb#L118)
|
1233
1296
|
|
1234
|
-
> def px_to_window_rel
|
1297
|
+
> def px_to_window_rel(opts = {})
|
1235
1298
|
|
1236
1299
|
Converts pixel values to window relative values
|
1237
1300
|
|
@@ -1241,9 +1304,9 @@ px_to_window_rel x: 50, y: 150
|
|
1241
1304
|
|
1242
1305
|
--
|
1243
1306
|
|
1244
|
-
##### [xml_keys](https://github.com/appium/ruby_lib/blob/
|
1307
|
+
##### [xml_keys](https://github.com/appium/ruby_lib/blob/af838966d0724793d3dbfa35798ca6dd9f8a3143/lib/appium_lib/common/helper.rb#L137)
|
1245
1308
|
|
1246
|
-
> def xml_keys
|
1309
|
+
> def xml_keys(target)
|
1247
1310
|
|
1248
1311
|
Search strings.xml's values for target.
|
1249
1312
|
|
@@ -1257,9 +1320,9 @@ __Returns:__
|
|
1257
1320
|
|
1258
1321
|
--
|
1259
1322
|
|
1260
|
-
##### [xml_values](https://github.com/appium/ruby_lib/blob/
|
1323
|
+
##### [xml_values](https://github.com/appium/ruby_lib/blob/af838966d0724793d3dbfa35798ca6dd9f8a3143/lib/appium_lib/common/helper.rb#L145)
|
1261
1324
|
|
1262
|
-
> def xml_values
|
1325
|
+
> def xml_values(target)
|
1263
1326
|
|
1264
1327
|
Search strings.xml's keys for target.
|
1265
1328
|
|
@@ -1273,9 +1336,9 @@ __Returns:__
|
|
1273
1336
|
|
1274
1337
|
--
|
1275
1338
|
|
1276
|
-
##### [resolve_id](https://github.com/appium/ruby_lib/blob/
|
1339
|
+
##### [resolve_id](https://github.com/appium/ruby_lib/blob/af838966d0724793d3dbfa35798ca6dd9f8a3143/lib/appium_lib/common/helper.rb#L153)
|
1277
1340
|
|
1278
|
-
> def resolve_id
|
1341
|
+
> def resolve_id(id)
|
1279
1342
|
|
1280
1343
|
Resolve id in strings.xml and return the value.
|
1281
1344
|
|
@@ -1289,23 +1352,23 @@ __Returns:__
|
|
1289
1352
|
|
1290
1353
|
--
|
1291
1354
|
|
1292
|
-
##### [filter](https://github.com/appium/ruby_lib/blob/
|
1355
|
+
##### [filter](https://github.com/appium/ruby_lib/blob/af838966d0724793d3dbfa35798ca6dd9f8a3143/lib/appium_lib/common/helper.rb#L159)
|
1293
1356
|
|
1294
1357
|
> def filter
|
1295
1358
|
|
1296
|
-
|
1359
|
+
Returns the value of attribute filter
|
1297
1360
|
|
1298
1361
|
--
|
1299
1362
|
|
1300
|
-
##### [filter=](https://github.com/appium/ruby_lib/blob/
|
1363
|
+
##### [filter=](https://github.com/appium/ruby_lib/blob/af838966d0724793d3dbfa35798ca6dd9f8a3143/lib/appium_lib/common/helper.rb#L162)
|
1301
1364
|
|
1302
|
-
> def filter=
|
1365
|
+
> def filter=(value)
|
1303
1366
|
|
1304
1367
|
convert to string to support symbols
|
1305
1368
|
|
1306
1369
|
--
|
1307
1370
|
|
1308
|
-
##### [initialize](https://github.com/appium/ruby_lib/blob/
|
1371
|
+
##### [initialize](https://github.com/appium/ruby_lib/blob/af838966d0724793d3dbfa35798ca6dd9f8a3143/lib/appium_lib/common/helper.rb#L168)
|
1309
1372
|
|
1310
1373
|
> def initialize
|
1311
1374
|
|
@@ -1317,7 +1380,7 @@ __Returns:__
|
|
1317
1380
|
|
1318
1381
|
--
|
1319
1382
|
|
1320
|
-
##### [reset](https://github.com/appium/ruby_lib/blob/
|
1383
|
+
##### [reset](https://github.com/appium/ruby_lib/blob/af838966d0724793d3dbfa35798ca6dd9f8a3143/lib/appium_lib/common/helper.rb#L173)
|
1321
1384
|
|
1322
1385
|
> def reset
|
1323
1386
|
|
@@ -1325,7 +1388,7 @@ __Returns:__
|
|
1325
1388
|
|
1326
1389
|
--
|
1327
1390
|
|
1328
|
-
##### [result](https://github.com/appium/ruby_lib/blob/
|
1391
|
+
##### [result](https://github.com/appium/ruby_lib/blob/af838966d0724793d3dbfa35798ca6dd9f8a3143/lib/appium_lib/common/helper.rb#L179)
|
1329
1392
|
|
1330
1393
|
> def result
|
1331
1394
|
|
@@ -1333,23 +1396,23 @@ __Returns:__
|
|
1333
1396
|
|
1334
1397
|
--
|
1335
1398
|
|
1336
|
-
##### [start_element](https://github.com/appium/ruby_lib/blob/
|
1399
|
+
##### [start_element](https://github.com/appium/ruby_lib/blob/af838966d0724793d3dbfa35798ca6dd9f8a3143/lib/appium_lib/common/helper.rb#L195)
|
1337
1400
|
|
1338
|
-
> def start_element
|
1401
|
+
> def start_element(name, attrs = [])
|
1339
1402
|
|
1340
1403
|
|
1341
1404
|
|
1342
1405
|
--
|
1343
1406
|
|
1344
|
-
##### [end_element](https://github.com/appium/ruby_lib/blob/
|
1407
|
+
##### [end_element](https://github.com/appium/ruby_lib/blob/af838966d0724793d3dbfa35798ca6dd9f8a3143/lib/appium_lib/common/helper.rb#L204)
|
1345
1408
|
|
1346
|
-
> def end_element
|
1409
|
+
> def end_element(name)
|
1347
1410
|
|
1348
1411
|
|
1349
1412
|
|
1350
1413
|
--
|
1351
1414
|
|
1352
|
-
##### [characters](https://github.com/appium/ruby_lib/blob/
|
1415
|
+
##### [characters](https://github.com/appium/ruby_lib/blob/af838966d0724793d3dbfa35798ca6dd9f8a3143/lib/appium_lib/common/helper.rb#L210)
|
1353
1416
|
|
1354
1417
|
> def characters(chars)
|
1355
1418
|
|
@@ -1357,7 +1420,7 @@ __Returns:__
|
|
1357
1420
|
|
1358
1421
|
--
|
1359
1422
|
|
1360
|
-
##### [_no_such_element](https://github.com/appium/ruby_lib/blob/
|
1423
|
+
##### [_no_such_element](https://github.com/appium/ruby_lib/blob/af838966d0724793d3dbfa35798ca6dd9f8a3143/lib/appium_lib/common/helper.rb#L217)
|
1361
1424
|
|
1362
1425
|
> def _no_such_element
|
1363
1426
|
|
@@ -1365,7 +1428,7 @@ __Returns:__
|
|
1365
1428
|
|
1366
1429
|
--
|
1367
1430
|
|
1368
|
-
##### [window_size](https://github.com/appium/ruby_lib/blob/
|
1431
|
+
##### [window_size](https://github.com/appium/ruby_lib/blob/af838966d0724793d3dbfa35798ca6dd9f8a3143/lib/appium_lib/common/element/window.rb#L5)
|
1369
1432
|
|
1370
1433
|
> def window_size
|
1371
1434
|
|
@@ -1373,9 +1436,9 @@ Get the window's size
|
|
1373
1436
|
|
1374
1437
|
--
|
1375
1438
|
|
1376
|
-
##### [ios_password](https://github.com/appium/ruby_lib/blob/
|
1439
|
+
##### [ios_password](https://github.com/appium/ruby_lib/blob/af838966d0724793d3dbfa35798ca6dd9f8a3143/lib/appium_lib/ios/helper.rb#L8) ios
|
1377
1440
|
|
1378
|
-
> def ios_password
|
1441
|
+
> def ios_password(length = 1)
|
1379
1442
|
|
1380
1443
|
iOS only. On Android uiautomator always returns an empty string for EditText password.
|
1381
1444
|
|
@@ -1391,9 +1454,9 @@ __Returns:__
|
|
1391
1454
|
|
1392
1455
|
--
|
1393
1456
|
|
1394
|
-
##### [get_page](https://github.com/appium/ruby_lib/blob/
|
1457
|
+
##### [get_page](https://github.com/appium/ruby_lib/blob/af838966d0724793d3dbfa35798ca6dd9f8a3143/lib/appium_lib/ios/helper.rb#L20) ios
|
1395
1458
|
|
1396
|
-
> def get_page
|
1459
|
+
> def get_page(element = source_window(0), class_name = nil)
|
1397
1460
|
|
1398
1461
|
Returns a string of interesting elements. iOS only.
|
1399
1462
|
|
@@ -1412,9 +1475,9 @@ __Returns:__
|
|
1412
1475
|
|
1413
1476
|
--
|
1414
1477
|
|
1415
|
-
##### [page](https://github.com/appium/ruby_lib/blob/
|
1478
|
+
##### [page](https://github.com/appium/ruby_lib/blob/af838966d0724793d3dbfa35798ca6dd9f8a3143/lib/appium_lib/ios/helper.rb#L129) ios
|
1416
1479
|
|
1417
|
-
> def page
|
1480
|
+
> def page(opts = {})
|
1418
1481
|
|
1419
1482
|
Prints a string of interesting elements to the console.
|
1420
1483
|
|
@@ -1438,9 +1501,9 @@ __Returns:__
|
|
1438
1501
|
|
1439
1502
|
--
|
1440
1503
|
|
1441
|
-
##### [source_window](https://github.com/appium/ruby_lib/blob/
|
1504
|
+
##### [source_window](https://github.com/appium/ruby_lib/blob/af838966d0724793d3dbfa35798ca6dd9f8a3143/lib/appium_lib/ios/helper.rb#L161) ios
|
1442
1505
|
|
1443
|
-
> def source_window
|
1506
|
+
> def source_window(window_number = 0)
|
1444
1507
|
|
1445
1508
|
Gets the JSON source of window number
|
1446
1509
|
|
@@ -1454,9 +1517,9 @@ __Returns:__
|
|
1454
1517
|
|
1455
1518
|
--
|
1456
1519
|
|
1457
|
-
##### [page_window](https://github.com/appium/ruby_lib/blob/
|
1520
|
+
##### [page_window](https://github.com/appium/ruby_lib/blob/af838966d0724793d3dbfa35798ca6dd9f8a3143/lib/appium_lib/ios/helper.rb#L175) ios
|
1458
1521
|
|
1459
|
-
> def page_window
|
1522
|
+
> def page_window(window_number = 0)
|
1460
1523
|
|
1461
1524
|
Prints parsed page source to console.
|
1462
1525
|
|
@@ -1472,9 +1535,9 @@ __Returns:__
|
|
1472
1535
|
|
1473
1536
|
--
|
1474
1537
|
|
1475
|
-
##### [id](https://github.com/appium/ruby_lib/blob/
|
1538
|
+
##### [id](https://github.com/appium/ruby_lib/blob/af838966d0724793d3dbfa35798ca6dd9f8a3143/lib/appium_lib/ios/helper.rb#L183) ios
|
1476
1539
|
|
1477
|
-
> def id
|
1540
|
+
> def id(id)
|
1478
1541
|
|
1479
1542
|
Find by id
|
1480
1543
|
|
@@ -1488,7 +1551,7 @@ __Returns:__
|
|
1488
1551
|
|
1489
1552
|
--
|
1490
1553
|
|
1491
|
-
##### [ios_version](https://github.com/appium/ruby_lib/blob/
|
1554
|
+
##### [ios_version](https://github.com/appium/ruby_lib/blob/af838966d0724793d3dbfa35798ca6dd9f8a3143/lib/appium_lib/ios/helper.rb#L189) ios
|
1492
1555
|
|
1493
1556
|
> def ios_version
|
1494
1557
|
|
@@ -1500,9 +1563,9 @@ __Returns:__
|
|
1500
1563
|
|
1501
1564
|
--
|
1502
1565
|
|
1503
|
-
##### [ele_index](https://github.com/appium/ruby_lib/blob/
|
1566
|
+
##### [ele_index](https://github.com/appium/ruby_lib/blob/af838966d0724793d3dbfa35798ca6dd9f8a3143/lib/appium_lib/ios/helper.rb#L198) ios
|
1504
1567
|
|
1505
|
-
> def ele_index
|
1568
|
+
> def ele_index(class_name, index)
|
1506
1569
|
|
1507
1570
|
Get the element of type class_name at matching index.
|
1508
1571
|
|
@@ -1518,9 +1581,9 @@ __Returns:__
|
|
1518
1581
|
|
1519
1582
|
--
|
1520
1583
|
|
1521
|
-
##### [find_ele_by_attr](https://github.com/appium/ruby_lib/blob/
|
1584
|
+
##### [find_ele_by_attr](https://github.com/appium/ruby_lib/blob/af838966d0724793d3dbfa35798ca6dd9f8a3143/lib/appium_lib/ios/helper.rb#L225) ios
|
1522
1585
|
|
1523
|
-
> def find_ele_by_attr
|
1586
|
+
> def find_ele_by_attr(class_name, attr, value)
|
1524
1587
|
|
1525
1588
|
Find the first element exactly matching class and attribute value.
|
1526
1589
|
Note: Uses XPath
|
@@ -1539,9 +1602,9 @@ __Returns:__
|
|
1539
1602
|
|
1540
1603
|
--
|
1541
1604
|
|
1542
|
-
##### [find_eles_by_attr](https://github.com/appium/ruby_lib/blob/
|
1605
|
+
##### [find_eles_by_attr](https://github.com/appium/ruby_lib/blob/af838966d0724793d3dbfa35798ca6dd9f8a3143/lib/appium_lib/ios/helper.rb#L235) ios
|
1543
1606
|
|
1544
|
-
> def find_eles_by_attr
|
1607
|
+
> def find_eles_by_attr(class_name, attr, value)
|
1545
1608
|
|
1546
1609
|
Find all elements exactly matching class and attribute value.
|
1547
1610
|
Note: Uses XPath
|
@@ -1560,9 +1623,9 @@ __Returns:__
|
|
1560
1623
|
|
1561
1624
|
--
|
1562
1625
|
|
1563
|
-
##### [find_ele_by_attr_include](https://github.com/appium/ruby_lib/blob/
|
1626
|
+
##### [find_ele_by_attr_include](https://github.com/appium/ruby_lib/blob/af838966d0724793d3dbfa35798ca6dd9f8a3143/lib/appium_lib/ios/helper.rb#L250) ios
|
1564
1627
|
|
1565
|
-
> def find_ele_by_attr_include
|
1628
|
+
> def find_ele_by_attr_include(class_name, attr, value)
|
1566
1629
|
|
1567
1630
|
Get the first tag by attribute that exactly matches value.
|
1568
1631
|
Note: Uses XPath
|
@@ -1581,9 +1644,9 @@ __Returns:__
|
|
1581
1644
|
|
1582
1645
|
--
|
1583
1646
|
|
1584
|
-
##### [find_eles_by_attr_include](https://github.com/appium/ruby_lib/blob/
|
1647
|
+
##### [find_eles_by_attr_include](https://github.com/appium/ruby_lib/blob/af838966d0724793d3dbfa35798ca6dd9f8a3143/lib/appium_lib/ios/helper.rb#L260) ios
|
1585
1648
|
|
1586
|
-
> def find_eles_by_attr_include
|
1649
|
+
> def find_eles_by_attr_include(class_name, attr, value)
|
1587
1650
|
|
1588
1651
|
Get tags by attribute that include value.
|
1589
1652
|
Note: Uses XPath
|
@@ -1602,9 +1665,9 @@ __Returns:__
|
|
1602
1665
|
|
1603
1666
|
--
|
1604
1667
|
|
1605
|
-
##### [first_ele](https://github.com/appium/ruby_lib/blob/
|
1668
|
+
##### [first_ele](https://github.com/appium/ruby_lib/blob/af838966d0724793d3dbfa35798ca6dd9f8a3143/lib/appium_lib/ios/helper.rb#L267) ios
|
1606
1669
|
|
1607
|
-
> def first_ele
|
1670
|
+
> def first_ele(class_name)
|
1608
1671
|
|
1609
1672
|
Get the first tag that matches class_name
|
1610
1673
|
|
@@ -1618,9 +1681,9 @@ __Returns:__
|
|
1618
1681
|
|
1619
1682
|
--
|
1620
1683
|
|
1621
|
-
##### [last_ele](https://github.com/appium/ruby_lib/blob/
|
1684
|
+
##### [last_ele](https://github.com/appium/ruby_lib/blob/af838966d0724793d3dbfa35798ca6dd9f8a3143/lib/appium_lib/ios/helper.rb#L275) ios
|
1622
1685
|
|
1623
|
-
> def last_ele
|
1686
|
+
> def last_ele(class_name)
|
1624
1687
|
|
1625
1688
|
Get the last tag that matches class_name
|
1626
1689
|
|
@@ -1634,9 +1697,9 @@ __Returns:__
|
|
1634
1697
|
|
1635
1698
|
--
|
1636
1699
|
|
1637
|
-
##### [tag](https://github.com/appium/ruby_lib/blob/
|
1700
|
+
##### [tag](https://github.com/appium/ruby_lib/blob/af838966d0724793d3dbfa35798ca6dd9f8a3143/lib/appium_lib/ios/helper.rb#L283) ios
|
1638
1701
|
|
1639
|
-
> def tag
|
1702
|
+
> def tag(class_name)
|
1640
1703
|
|
1641
1704
|
Returns the first visible element matching class_name
|
1642
1705
|
|
@@ -1650,9 +1713,9 @@ __Returns:__
|
|
1650
1713
|
|
1651
1714
|
--
|
1652
1715
|
|
1653
|
-
##### [tags](https://github.com/appium/ruby_lib/blob/
|
1716
|
+
##### [tags](https://github.com/appium/ruby_lib/blob/af838966d0724793d3dbfa35798ca6dd9f8a3143/lib/appium_lib/ios/helper.rb#L294) ios
|
1654
1717
|
|
1655
|
-
> def tags
|
1718
|
+
> def tags(class_name)
|
1656
1719
|
|
1657
1720
|
Returns all visible elements matching class_name
|
1658
1721
|
|
@@ -1666,9 +1729,9 @@ __Returns:__
|
|
1666
1729
|
|
1667
1730
|
--
|
1668
1731
|
|
1669
|
-
##### [ele_by_json_visible_contains](https://github.com/appium/ruby_lib/blob/
|
1732
|
+
##### [ele_by_json_visible_contains](https://github.com/appium/ruby_lib/blob/af838966d0724793d3dbfa35798ca6dd9f8a3143/lib/appium_lib/ios/helper.rb#L329) ios
|
1670
1733
|
|
1671
|
-
> def ele_by_json_visible_contains
|
1734
|
+
> def ele_by_json_visible_contains(element, value)
|
1672
1735
|
|
1673
1736
|
Find the first element that contains value
|
1674
1737
|
|
@@ -1684,9 +1747,9 @@ __Returns:__
|
|
1684
1747
|
|
1685
1748
|
--
|
1686
1749
|
|
1687
|
-
##### [eles_by_json_visible_contains](https://github.com/appium/ruby_lib/blob/
|
1750
|
+
##### [eles_by_json_visible_contains](https://github.com/appium/ruby_lib/blob/af838966d0724793d3dbfa35798ca6dd9f8a3143/lib/appium_lib/ios/helper.rb#L337) ios
|
1688
1751
|
|
1689
|
-
> def eles_by_json_visible_contains
|
1752
|
+
> def eles_by_json_visible_contains(element, value)
|
1690
1753
|
|
1691
1754
|
Find all elements containing value
|
1692
1755
|
|
@@ -1702,9 +1765,9 @@ __Returns:__
|
|
1702
1765
|
|
1703
1766
|
--
|
1704
1767
|
|
1705
|
-
##### [ele_by_json_visible_exact](https://github.com/appium/ruby_lib/blob/
|
1768
|
+
##### [ele_by_json_visible_exact](https://github.com/appium/ruby_lib/blob/af838966d0724793d3dbfa35798ca6dd9f8a3143/lib/appium_lib/ios/helper.rb#L366) ios
|
1706
1769
|
|
1707
|
-
> def ele_by_json_visible_exact
|
1770
|
+
> def ele_by_json_visible_exact(element, value)
|
1708
1771
|
|
1709
1772
|
Find the first element exactly matching value
|
1710
1773
|
|
@@ -1720,9 +1783,9 @@ __Returns:__
|
|
1720
1783
|
|
1721
1784
|
--
|
1722
1785
|
|
1723
|
-
##### [eles_by_json_visible_exact](https://github.com/appium/ruby_lib/blob/
|
1786
|
+
##### [eles_by_json_visible_exact](https://github.com/appium/ruby_lib/blob/af838966d0724793d3dbfa35798ca6dd9f8a3143/lib/appium_lib/ios/helper.rb#L374) ios
|
1724
1787
|
|
1725
|
-
> def eles_by_json_visible_exact
|
1788
|
+
> def eles_by_json_visible_exact(element, value)
|
1726
1789
|
|
1727
1790
|
Find all elements exactly matching value
|
1728
1791
|
|
@@ -1738,9 +1801,9 @@ __Returns:__
|
|
1738
1801
|
|
1739
1802
|
--
|
1740
1803
|
|
1741
|
-
##### [_all_pred](https://github.com/appium/ruby_lib/blob/
|
1804
|
+
##### [_all_pred](https://github.com/appium/ruby_lib/blob/af838966d0724793d3dbfa35798ca6dd9f8a3143/lib/appium_lib/ios/helper.rb#L438) ios
|
1742
1805
|
|
1743
|
-
> def _all_pred
|
1806
|
+
> def _all_pred(opts)
|
1744
1807
|
|
1745
1808
|
predicate - the predicate to evaluate on the main app
|
1746
1809
|
|
@@ -1748,9 +1811,9 @@ visible - if true, only visible elements are returned. default true
|
|
1748
1811
|
|
1749
1812
|
--
|
1750
1813
|
|
1751
|
-
##### [ele_with_pred](https://github.com/appium/ruby_lib/blob/
|
1814
|
+
##### [ele_with_pred](https://github.com/appium/ruby_lib/blob/af838966d0724793d3dbfa35798ca6dd9f8a3143/lib/appium_lib/ios/helper.rb#L451) ios
|
1752
1815
|
|
1753
|
-
> def ele_with_pred
|
1816
|
+
> def ele_with_pred(opts)
|
1754
1817
|
|
1755
1818
|
returns element matching predicate contained in the main app
|
1756
1819
|
|
@@ -1764,9 +1827,9 @@ __Returns:__
|
|
1764
1827
|
|
1765
1828
|
--
|
1766
1829
|
|
1767
|
-
##### [eles_with_pred](https://github.com/appium/ruby_lib/blob/
|
1830
|
+
##### [eles_with_pred](https://github.com/appium/ruby_lib/blob/af838966d0724793d3dbfa35798ca6dd9f8a3143/lib/appium_lib/ios/helper.rb#L462) ios
|
1768
1831
|
|
1769
|
-
> def eles_with_pred
|
1832
|
+
> def eles_with_pred(opts)
|
1770
1833
|
|
1771
1834
|
returns elements matching predicate contained in the main app
|
1772
1835
|
|
@@ -1780,7 +1843,7 @@ __Returns:__
|
|
1780
1843
|
|
1781
1844
|
--
|
1782
1845
|
|
1783
|
-
##### [source](https://github.com/appium/ruby_lib/blob/
|
1846
|
+
##### [source](https://github.com/appium/ruby_lib/blob/af838966d0724793d3dbfa35798ca6dd9f8a3143/lib/appium_lib/ios/helper.rb#L468) ios
|
1784
1847
|
|
1785
1848
|
> def source
|
1786
1849
|
|
@@ -1792,17 +1855,17 @@ __Returns:__
|
|
1792
1855
|
|
1793
1856
|
--
|
1794
1857
|
|
1795
|
-
##### [_validate_object](https://github.com/appium/ruby_lib/blob/
|
1858
|
+
##### [_validate_object](https://github.com/appium/ruby_lib/blob/af838966d0724793d3dbfa35798ca6dd9f8a3143/lib/appium_lib/ios/helper.rb#L472) ios
|
1796
1859
|
|
1797
|
-
> def _validate_object
|
1860
|
+
> def _validate_object(*objects)
|
1798
1861
|
|
1799
1862
|
|
1800
1863
|
|
1801
1864
|
--
|
1802
1865
|
|
1803
|
-
##### [_by_json](https://github.com/appium/ruby_lib/blob/
|
1866
|
+
##### [_by_json](https://github.com/appium/ruby_lib/blob/af838966d0724793d3dbfa35798ca6dd9f8a3143/lib/appium_lib/ios/helper.rb#L520) ios
|
1804
1867
|
|
1805
|
-
> def _by_json
|
1868
|
+
> def _by_json(opts)
|
1806
1869
|
|
1807
1870
|
typeArray - array of string types to search for. Example: ["UIAStaticText"]
|
1808
1871
|
onlyFirst - boolean. returns only the first result if true. Example: true
|
@@ -1834,9 +1897,9 @@ opts = {
|
|
1834
1897
|
|
1835
1898
|
--
|
1836
1899
|
|
1837
|
-
##### [eles_by_json](https://github.com/appium/ruby_lib/blob/
|
1900
|
+
##### [eles_by_json](https://github.com/appium/ruby_lib/blob/af838966d0724793d3dbfa35798ca6dd9f8a3143/lib/appium_lib/ios/helper.rb#L569) ios
|
1838
1901
|
|
1839
|
-
> def eles_by_json
|
1902
|
+
> def eles_by_json(opts)
|
1840
1903
|
|
1841
1904
|
example usage:
|
1842
1905
|
|
@@ -1852,15 +1915,15 @@ eles_by_json({
|
|
1852
1915
|
|
1853
1916
|
--
|
1854
1917
|
|
1855
|
-
##### [ele_by_json](https://github.com/appium/ruby_lib/blob/
|
1918
|
+
##### [ele_by_json](https://github.com/appium/ruby_lib/blob/af838966d0724793d3dbfa35798ca6dd9f8a3143/lib/appium_lib/ios/helper.rb#L575) ios
|
1856
1919
|
|
1857
|
-
> def ele_by_json
|
1920
|
+
> def ele_by_json(opts)
|
1858
1921
|
|
1859
1922
|
see eles_by_json
|
1860
1923
|
|
1861
1924
|
--
|
1862
1925
|
|
1863
|
-
##### [get_source](https://github.com/appium/ruby_lib/blob/
|
1926
|
+
##### [get_source](https://github.com/appium/ruby_lib/blob/af838966d0724793d3dbfa35798ca6dd9f8a3143/lib/appium_lib/ios/helper.rb#L585) ios
|
1864
1927
|
|
1865
1928
|
> def get_source
|
1866
1929
|
|
@@ -1873,7 +1936,7 @@ __Returns:__
|
|
1873
1936
|
|
1874
1937
|
--
|
1875
1938
|
|
1876
|
-
##### [UIAStaticText](https://github.com/appium/ruby_lib/blob/
|
1939
|
+
##### [UIAStaticText](https://github.com/appium/ruby_lib/blob/af838966d0724793d3dbfa35798ca6dd9f8a3143/lib/appium_lib/ios/element/text.rb#L4) ios
|
1877
1940
|
|
1878
1941
|
> UIAStaticText = 'UIAStaticText'
|
1879
1942
|
|
@@ -1881,9 +1944,9 @@ __Returns:__
|
|
1881
1944
|
|
1882
1945
|
--
|
1883
1946
|
|
1884
|
-
##### [text](https://github.com/appium/ruby_lib/blob/
|
1947
|
+
##### [text](https://github.com/appium/ruby_lib/blob/af838966d0724793d3dbfa35798ca6dd9f8a3143/lib/appium_lib/ios/element/text.rb#L10) ios
|
1885
1948
|
|
1886
|
-
> def text
|
1949
|
+
> def text(value)
|
1887
1950
|
|
1888
1951
|
Find the first UIAStaticText that contains value or by index.
|
1889
1952
|
If int then the UIAStaticText at that index is returned.
|
@@ -1898,9 +1961,9 @@ __Returns:__
|
|
1898
1961
|
|
1899
1962
|
--
|
1900
1963
|
|
1901
|
-
##### [texts](https://github.com/appium/ruby_lib/blob/
|
1964
|
+
##### [texts](https://github.com/appium/ruby_lib/blob/af838966d0724793d3dbfa35798ca6dd9f8a3143/lib/appium_lib/ios/element/text.rb#L19) ios
|
1902
1965
|
|
1903
|
-
> def texts
|
1966
|
+
> def texts(value = false)
|
1904
1967
|
|
1905
1968
|
Find all UIAStaticText containing value.
|
1906
1969
|
If value is omitted, all UIAStaticTexts are returned
|
@@ -1915,7 +1978,7 @@ __Returns:__
|
|
1915
1978
|
|
1916
1979
|
--
|
1917
1980
|
|
1918
|
-
##### [first_text](https://github.com/appium/ruby_lib/blob/
|
1981
|
+
##### [first_text](https://github.com/appium/ruby_lib/blob/af838966d0724793d3dbfa35798ca6dd9f8a3143/lib/appium_lib/ios/element/text.rb#L26) ios
|
1919
1982
|
|
1920
1983
|
> def first_text
|
1921
1984
|
|
@@ -1927,7 +1990,7 @@ __Returns:__
|
|
1927
1990
|
|
1928
1991
|
--
|
1929
1992
|
|
1930
|
-
##### [last_text](https://github.com/appium/ruby_lib/blob/
|
1993
|
+
##### [last_text](https://github.com/appium/ruby_lib/blob/af838966d0724793d3dbfa35798ca6dd9f8a3143/lib/appium_lib/ios/element/text.rb#L32) ios
|
1931
1994
|
|
1932
1995
|
> def last_text
|
1933
1996
|
|
@@ -1939,9 +2002,9 @@ __Returns:__
|
|
1939
2002
|
|
1940
2003
|
--
|
1941
2004
|
|
1942
|
-
##### [text_exact](https://github.com/appium/ruby_lib/blob/
|
2005
|
+
##### [text_exact](https://github.com/appium/ruby_lib/blob/af838966d0724793d3dbfa35798ca6dd9f8a3143/lib/appium_lib/ios/element/text.rb#L39) ios
|
1943
2006
|
|
1944
|
-
> def text_exact
|
2007
|
+
> def text_exact(value)
|
1945
2008
|
|
1946
2009
|
Find the first UIAStaticText that exactly matches value.
|
1947
2010
|
|
@@ -1955,9 +2018,9 @@ __Returns:__
|
|
1955
2018
|
|
1956
2019
|
--
|
1957
2020
|
|
1958
|
-
##### [texts_exact](https://github.com/appium/ruby_lib/blob/
|
2021
|
+
##### [texts_exact](https://github.com/appium/ruby_lib/blob/af838966d0724793d3dbfa35798ca6dd9f8a3143/lib/appium_lib/ios/element/text.rb#L46) ios
|
1959
2022
|
|
1960
|
-
> def texts_exact
|
2023
|
+
> def texts_exact(value)
|
1961
2024
|
|
1962
2025
|
Find all UIAStaticTexts that exactly match value.
|
1963
2026
|
|
@@ -1971,7 +2034,7 @@ __Returns:__
|
|
1971
2034
|
|
1972
2035
|
--
|
1973
2036
|
|
1974
|
-
##### [alert_accept](https://github.com/appium/ruby_lib/blob/
|
2037
|
+
##### [alert_accept](https://github.com/appium/ruby_lib/blob/af838966d0724793d3dbfa35798ca6dd9f8a3143/lib/appium_lib/ios/element/alert.rb#L5) ios
|
1975
2038
|
|
1976
2039
|
> def alert_accept
|
1977
2040
|
|
@@ -1983,7 +2046,7 @@ __Returns:__
|
|
1983
2046
|
|
1984
2047
|
--
|
1985
2048
|
|
1986
|
-
##### [alert_dismiss](https://github.com/appium/ruby_lib/blob/
|
2049
|
+
##### [alert_dismiss](https://github.com/appium/ruby_lib/blob/af838966d0724793d3dbfa35798ca6dd9f8a3143/lib/appium_lib/ios/element/alert.rb#L13) ios
|
1987
2050
|
|
1988
2051
|
> def alert_dismiss
|
1989
2052
|
|
@@ -1995,7 +2058,7 @@ __Returns:__
|
|
1995
2058
|
|
1996
2059
|
--
|
1997
2060
|
|
1998
|
-
##### [uiautomation_find](https://github.com/appium/ruby_lib/blob/
|
2061
|
+
##### [uiautomation_find](https://github.com/appium/ruby_lib/blob/af838966d0724793d3dbfa35798ca6dd9f8a3143/lib/appium_lib/ios/mobile_methods.rb#L10) ios
|
1999
2062
|
|
2000
2063
|
> def uiautomation_find
|
2001
2064
|
|
@@ -2007,7 +2070,7 @@ find_element/s can be used with a [UIAutomation command](https://developer.apple
|
|
2007
2070
|
|
2008
2071
|
--
|
2009
2072
|
|
2010
|
-
##### [UIAButton](https://github.com/appium/ruby_lib/blob/
|
2073
|
+
##### [UIAButton](https://github.com/appium/ruby_lib/blob/af838966d0724793d3dbfa35798ca6dd9f8a3143/lib/appium_lib/ios/element/button.rb#L4) ios
|
2011
2074
|
|
2012
2075
|
> UIAButton = 'UIAButton'
|
2013
2076
|
|
@@ -2015,9 +2078,9 @@ find_element/s can be used with a [UIAutomation command](https://developer.apple
|
|
2015
2078
|
|
2016
2079
|
--
|
2017
2080
|
|
2018
|
-
##### [button](https://github.com/appium/ruby_lib/blob/
|
2081
|
+
##### [button](https://github.com/appium/ruby_lib/blob/af838966d0724793d3dbfa35798ca6dd9f8a3143/lib/appium_lib/ios/element/button.rb#L10) ios
|
2019
2082
|
|
2020
|
-
> def button
|
2083
|
+
> def button(value)
|
2021
2084
|
|
2022
2085
|
Find the first UIAButton that contains value or by index.
|
2023
2086
|
If int then the UIAButton at that index is returned.
|
@@ -2032,9 +2095,9 @@ __Returns:__
|
|
2032
2095
|
|
2033
2096
|
--
|
2034
2097
|
|
2035
|
-
##### [buttons](https://github.com/appium/ruby_lib/blob/
|
2098
|
+
##### [buttons](https://github.com/appium/ruby_lib/blob/af838966d0724793d3dbfa35798ca6dd9f8a3143/lib/appium_lib/ios/element/button.rb#L20) ios
|
2036
2099
|
|
2037
|
-
> def buttons
|
2100
|
+
> def buttons(value = false)
|
2038
2101
|
|
2039
2102
|
Find all UIAButtons containing value.
|
2040
2103
|
If value is omitted, all UIAButtons are returned.
|
@@ -2049,7 +2112,7 @@ __Returns:__
|
|
2049
2112
|
|
2050
2113
|
--
|
2051
2114
|
|
2052
|
-
##### [first_button](https://github.com/appium/ruby_lib/blob/
|
2115
|
+
##### [first_button](https://github.com/appium/ruby_lib/blob/af838966d0724793d3dbfa35798ca6dd9f8a3143/lib/appium_lib/ios/element/button.rb#L27) ios
|
2053
2116
|
|
2054
2117
|
> def first_button
|
2055
2118
|
|
@@ -2061,7 +2124,7 @@ __Returns:__
|
|
2061
2124
|
|
2062
2125
|
--
|
2063
2126
|
|
2064
|
-
##### [last_button](https://github.com/appium/ruby_lib/blob/
|
2127
|
+
##### [last_button](https://github.com/appium/ruby_lib/blob/af838966d0724793d3dbfa35798ca6dd9f8a3143/lib/appium_lib/ios/element/button.rb#L33) ios
|
2065
2128
|
|
2066
2129
|
> def last_button
|
2067
2130
|
|
@@ -2073,9 +2136,9 @@ __Returns:__
|
|
2073
2136
|
|
2074
2137
|
--
|
2075
2138
|
|
2076
|
-
##### [button_exact](https://github.com/appium/ruby_lib/blob/
|
2139
|
+
##### [button_exact](https://github.com/appium/ruby_lib/blob/af838966d0724793d3dbfa35798ca6dd9f8a3143/lib/appium_lib/ios/element/button.rb#L40) ios
|
2077
2140
|
|
2078
|
-
> def button_exact
|
2141
|
+
> def button_exact(value)
|
2079
2142
|
|
2080
2143
|
Find the first UIAButton that exactly matches value.
|
2081
2144
|
|
@@ -2089,9 +2152,9 @@ __Returns:__
|
|
2089
2152
|
|
2090
2153
|
--
|
2091
2154
|
|
2092
|
-
##### [buttons_exact](https://github.com/appium/ruby_lib/blob/
|
2155
|
+
##### [buttons_exact](https://github.com/appium/ruby_lib/blob/af838966d0724793d3dbfa35798ca6dd9f8a3143/lib/appium_lib/ios/element/button.rb#L47) ios
|
2093
2156
|
|
2094
|
-
> def buttons_exact
|
2157
|
+
> def buttons_exact(value)
|
2095
2158
|
|
2096
2159
|
Find all UIAButtons that exactly match value.
|
2097
2160
|
|
@@ -2105,9 +2168,9 @@ __Returns:__
|
|
2105
2168
|
|
2106
2169
|
--
|
2107
2170
|
|
2108
|
-
##### [find](https://github.com/appium/ruby_lib/blob/
|
2171
|
+
##### [find](https://github.com/appium/ruby_lib/blob/af838966d0724793d3dbfa35798ca6dd9f8a3143/lib/appium_lib/ios/element/generic.rb#L6) ios
|
2109
2172
|
|
2110
|
-
> def find
|
2173
|
+
> def find(value)
|
2111
2174
|
|
2112
2175
|
Find the first element containing value
|
2113
2176
|
|
@@ -2121,9 +2184,9 @@ __Returns:__
|
|
2121
2184
|
|
2122
2185
|
--
|
2123
2186
|
|
2124
|
-
##### [finds](https://github.com/appium/ruby_lib/blob/
|
2187
|
+
##### [finds](https://github.com/appium/ruby_lib/blob/af838966d0724793d3dbfa35798ca6dd9f8a3143/lib/appium_lib/ios/element/generic.rb#L13) ios
|
2125
2188
|
|
2126
|
-
> def finds
|
2189
|
+
> def finds(value)
|
2127
2190
|
|
2128
2191
|
Find all elements containing value
|
2129
2192
|
|
@@ -2137,9 +2200,9 @@ __Returns:__
|
|
2137
2200
|
|
2138
2201
|
--
|
2139
2202
|
|
2140
|
-
##### [find_exact](https://github.com/appium/ruby_lib/blob/
|
2203
|
+
##### [find_exact](https://github.com/appium/ruby_lib/blob/af838966d0724793d3dbfa35798ca6dd9f8a3143/lib/appium_lib/ios/element/generic.rb#L20) ios
|
2141
2204
|
|
2142
|
-
> def find_exact
|
2205
|
+
> def find_exact(value)
|
2143
2206
|
|
2144
2207
|
Find the first element exactly matching value
|
2145
2208
|
|
@@ -2153,9 +2216,9 @@ __Returns:__
|
|
2153
2216
|
|
2154
2217
|
--
|
2155
2218
|
|
2156
|
-
##### [finds_exact](https://github.com/appium/ruby_lib/blob/
|
2219
|
+
##### [finds_exact](https://github.com/appium/ruby_lib/blob/af838966d0724793d3dbfa35798ca6dd9f8a3143/lib/appium_lib/ios/element/generic.rb#L27) ios
|
2157
2220
|
|
2158
|
-
> def finds_exact
|
2221
|
+
> def finds_exact(value)
|
2159
2222
|
|
2160
2223
|
Find all elements exactly matching value
|
2161
2224
|
|
@@ -2169,7 +2232,7 @@ __Returns:__
|
|
2169
2232
|
|
2170
2233
|
--
|
2171
2234
|
|
2172
|
-
##### [UIATextField](https://github.com/appium/ruby_lib/blob/
|
2235
|
+
##### [UIATextField](https://github.com/appium/ruby_lib/blob/af838966d0724793d3dbfa35798ca6dd9f8a3143/lib/appium_lib/ios/element/textfield.rb#L3) ios
|
2173
2236
|
|
2174
2237
|
> UIATextField = 'UIATextField'
|
2175
2238
|
|
@@ -2177,7 +2240,7 @@ __Returns:__
|
|
2177
2240
|
|
2178
2241
|
--
|
2179
2242
|
|
2180
|
-
##### [UIASecureTextField](https://github.com/appium/ruby_lib/blob/
|
2243
|
+
##### [UIASecureTextField](https://github.com/appium/ruby_lib/blob/af838966d0724793d3dbfa35798ca6dd9f8a3143/lib/appium_lib/ios/element/textfield.rb#L4) ios
|
2181
2244
|
|
2182
2245
|
> UIASecureTextField = 'UIASecureTextField'
|
2183
2246
|
|
@@ -2185,9 +2248,9 @@ __Returns:__
|
|
2185
2248
|
|
2186
2249
|
--
|
2187
2250
|
|
2188
|
-
##### [textfield](https://github.com/appium/ruby_lib/blob/
|
2251
|
+
##### [textfield](https://github.com/appium/ruby_lib/blob/af838966d0724793d3dbfa35798ca6dd9f8a3143/lib/appium_lib/ios/element/textfield.rb#L52) ios
|
2189
2252
|
|
2190
|
-
> def textfield
|
2253
|
+
> def textfield(value)
|
2191
2254
|
|
2192
2255
|
Find the first TextField that contains value or by index.
|
2193
2256
|
If int then the TextField at that index is returned.
|
@@ -2202,9 +2265,9 @@ __Returns:__
|
|
2202
2265
|
|
2203
2266
|
--
|
2204
2267
|
|
2205
|
-
##### [textfields](https://github.com/appium/ruby_lib/blob/
|
2268
|
+
##### [textfields](https://github.com/appium/ruby_lib/blob/af838966d0724793d3dbfa35798ca6dd9f8a3143/lib/appium_lib/ios/element/textfield.rb#L72) ios
|
2206
2269
|
|
2207
|
-
> def textfields
|
2270
|
+
> def textfields(value = false)
|
2208
2271
|
|
2209
2272
|
Find all TextFields containing value.
|
2210
2273
|
If value is omitted, all TextFields are returned.
|
@@ -2219,7 +2282,7 @@ __Returns:__
|
|
2219
2282
|
|
2220
2283
|
--
|
2221
2284
|
|
2222
|
-
##### [first_textfield](https://github.com/appium/ruby_lib/blob/
|
2285
|
+
##### [first_textfield](https://github.com/appium/ruby_lib/blob/af838966d0724793d3dbfa35798ca6dd9f8a3143/lib/appium_lib/ios/element/textfield.rb#L79) ios
|
2223
2286
|
|
2224
2287
|
> def first_textfield
|
2225
2288
|
|
@@ -2231,7 +2294,7 @@ __Returns:__
|
|
2231
2294
|
|
2232
2295
|
--
|
2233
2296
|
|
2234
|
-
##### [last_textfield](https://github.com/appium/ruby_lib/blob/
|
2297
|
+
##### [last_textfield](https://github.com/appium/ruby_lib/blob/af838966d0724793d3dbfa35798ca6dd9f8a3143/lib/appium_lib/ios/element/textfield.rb#L85) ios
|
2235
2298
|
|
2236
2299
|
> def last_textfield
|
2237
2300
|
|
@@ -2243,9 +2306,9 @@ __Returns:__
|
|
2243
2306
|
|
2244
2307
|
--
|
2245
2308
|
|
2246
|
-
##### [textfield_exact](https://github.com/appium/ruby_lib/blob/
|
2309
|
+
##### [textfield_exact](https://github.com/appium/ruby_lib/blob/af838966d0724793d3dbfa35798ca6dd9f8a3143/lib/appium_lib/ios/element/textfield.rb#L94) ios
|
2247
2310
|
|
2248
|
-
> def textfield_exact
|
2311
|
+
> def textfield_exact(value)
|
2249
2312
|
|
2250
2313
|
Find the first TextField that exactly matches value.
|
2251
2314
|
|
@@ -2259,9 +2322,9 @@ __Returns:__
|
|
2259
2322
|
|
2260
2323
|
--
|
2261
2324
|
|
2262
|
-
##### [textfields_exact](https://github.com/appium/ruby_lib/blob/
|
2325
|
+
##### [textfields_exact](https://github.com/appium/ruby_lib/blob/af838966d0724793d3dbfa35798ca6dd9f8a3143/lib/appium_lib/ios/element/textfield.rb#L101) ios
|
2263
2326
|
|
2264
|
-
> def textfields_exact
|
2327
|
+
> def textfields_exact(value)
|
2265
2328
|
|
2266
2329
|
Find all TextFields that exactly match value.
|
2267
2330
|
|
@@ -2275,7 +2338,7 @@ __Returns:__
|
|
2275
2338
|
|
2276
2339
|
--
|
2277
2340
|
|
2278
|
-
##### [value](https://github.com/appium/ruby_lib/blob/
|
2341
|
+
##### [value](https://github.com/appium/ruby_lib/blob/af838966d0724793d3dbfa35798ca6dd9f8a3143/lib/appium_lib/common/patch.rb#L12)
|
2279
2342
|
|
2280
2343
|
> def value
|
2281
2344
|
|
@@ -2285,7 +2348,7 @@ Fixes NoMethodError: undefined method `value' for Selenium::WebDriver::Element
|
|
2285
2348
|
|
2286
2349
|
--
|
2287
2350
|
|
2288
|
-
##### [name](https://github.com/appium/ruby_lib/blob/
|
2351
|
+
##### [name](https://github.com/appium/ruby_lib/blob/af838966d0724793d3dbfa35798ca6dd9f8a3143/lib/appium_lib/common/patch.rb#L19)
|
2289
2352
|
|
2290
2353
|
> def name
|
2291
2354
|
|
@@ -2295,7 +2358,7 @@ Fixes NoMethodError: undefined method `name' for Selenium::WebDriver::Element
|
|
2295
2358
|
|
2296
2359
|
--
|
2297
2360
|
|
2298
|
-
##### [location_rel](https://github.com/appium/ruby_lib/blob/
|
2361
|
+
##### [location_rel](https://github.com/appium/ruby_lib/blob/af838966d0724793d3dbfa35798ca6dd9f8a3143/lib/appium_lib/common/patch.rb#L31)
|
2299
2362
|
|
2300
2363
|
> def location_rel
|
2301
2364
|
|
@@ -2313,7 +2376,7 @@ __Returns:__
|
|
2313
2376
|
|
2314
2377
|
--
|
2315
2378
|
|
2316
|
-
##### [DEFAULT_HEADERS](https://github.com/appium/ruby_lib/blob/
|
2379
|
+
##### [DEFAULT_HEADERS](https://github.com/appium/ruby_lib/blob/af838966d0724793d3dbfa35798ca6dd9f8a3143/lib/appium_lib/common/patch.rb#L147)
|
2317
2380
|
|
2318
2381
|
> DEFAULT_HEADERS = { 'Accept' => CONTENT_TYPE, 'User-Agent' => "appium/ruby_lib/#{::Appium::VERSION}" }
|
2319
2382
|
|