appium_lib 9.6.0 → 9.6.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/CHANGELOG.md +10 -1
- data/Rakefile +1 -1
- data/appium_lib.gemspec +1 -1
- data/docs/android_docs.md +258 -258
- data/docs/ios_docs.md +339 -312
- data/docs/ios_xcuitest.md +4 -0
- data/lib/appium_lib/android/uiautomator2.rb +10 -0
- data/lib/appium_lib/android/uiautomator2/element.rb +10 -0
- data/lib/appium_lib/capabilities.rb +13 -0
- data/lib/appium_lib/common/version.rb +2 -2
- data/lib/appium_lib/driver.rb +15 -26
- data/lib/appium_lib/ios/xcuitest.rb +15 -0
- data/lib/appium_lib/ios/xcuitest/command.rb +8 -0
- data/lib/appium_lib/ios/xcuitest/command/pasteboard.rb +33 -0
- data/lib/appium_lib/ios/xcuitest/element.rb +24 -17
- data/lib/appium_lib/ios/xcuitest/search_context.rb +25 -0
- data/release_notes.md +16 -0
- metadata +11 -5
- data/lib/appium_lib/ios/xcuitest/mobile_methods.rb +0 -23
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 9fff35396b443466eea1092088d381e6f5d7df13
|
|
4
|
+
data.tar.gz: 4d72a6c9b10e48e0df4c5ce7d8d488250680fb99
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 342688e9cda44b16d5c5870ecfc7b4d64ba358b1a2b229efd56295bdc9bd0a850d7afb8d8c0f3243bffb2d874816e55ca9a14458def34cfee50ab970a3176208
|
|
7
|
+
data.tar.gz: 358f21708e591ac582d4320104fa7bac049505a6f405ad1a4c191df583ea8ef7ddbd100a0b9bb2b676976abac21411cdb158061016a4b26dda5ccd476372b86c
|
data/CHANGELOG.md
CHANGED
|
@@ -3,7 +3,16 @@ Commit based release not is [release_notes.md](./release_notes.md)
|
|
|
3
3
|
|
|
4
4
|
Release tags are https://github.com/appium/ruby_lib/releases .
|
|
5
5
|
|
|
6
|
-
## v9.
|
|
6
|
+
## v9.6.1
|
|
7
|
+
### 1. Enhancements
|
|
8
|
+
- Refactor `XCUItest` for iOS and `uiautomator2` for Android a bit
|
|
9
|
+
|
|
10
|
+
### 2. Bug fixes
|
|
11
|
+
- missing extending `button` methods for `uiautomator2`, Android
|
|
12
|
+
|
|
13
|
+
### 3. Deprecations
|
|
14
|
+
|
|
15
|
+
## v9.6.0
|
|
7
16
|
### 1. Enhancements
|
|
8
17
|
- Reduce Global Driver
|
|
9
18
|
- We need to provide `driver` to work `TouchAction` and `MultiAction` without global driver
|
data/Rakefile
CHANGED
|
@@ -206,7 +206,7 @@ task :notes do
|
|
|
206
206
|
end
|
|
207
207
|
|
|
208
208
|
pairs.each_index do |a|
|
|
209
|
-
data =`git log --pretty=oneline #{pairs[a]}
|
|
209
|
+
data =`git log --pretty=oneline #{pairs[a]}`.force_encoding('UTF-8')
|
|
210
210
|
new_data = ''
|
|
211
211
|
data.split("\n").each do |line|
|
|
212
212
|
hex = line.match(/[a-zA-Z0-9]+/)[0]
|
data/appium_lib.gemspec
CHANGED
|
@@ -14,7 +14,7 @@ Gem::Specification.new do |s|
|
|
|
14
14
|
s.require_paths = ['lib']
|
|
15
15
|
|
|
16
16
|
s.add_runtime_dependency 'selenium-webdriver', '~> 3.4', '>= 3.4.1'
|
|
17
|
-
s.add_runtime_dependency 'awesome_print', '~> 1.
|
|
17
|
+
s.add_runtime_dependency 'awesome_print', '~> 1.8'
|
|
18
18
|
s.add_runtime_dependency 'json', '>= 1.8'
|
|
19
19
|
s.add_runtime_dependency 'tomlrb', '~> 1.1'
|
|
20
20
|
s.add_runtime_dependency 'nokogiri', '~> 1.6', '>= 1.6.6'
|
data/docs/android_docs.md
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
##### [load_settings](https://github.com/appium/ruby_lib/blob/
|
|
1
|
+
##### [load_settings](https://github.com/appium/ruby_lib/blob/95118d4e0a6ec285e55862ea6b6fed528711ad84/lib/appium_lib/driver.rb#L85)
|
|
2
2
|
|
|
3
3
|
> def self.load_settings(opts = {})
|
|
4
4
|
|
|
@@ -27,7 +27,7 @@ __Returns:__
|
|
|
27
27
|
|
|
28
28
|
--
|
|
29
29
|
|
|
30
|
-
##### [load_appium_txt](https://github.com/appium/ruby_lib/blob/
|
|
30
|
+
##### [load_appium_txt](https://github.com/appium/ruby_lib/blob/95118d4e0a6ec285e55862ea6b6fed528711ad84/lib/appium_lib/driver.rb#L121)
|
|
31
31
|
|
|
32
32
|
> def self.load_settings(opts = {})
|
|
33
33
|
|
|
@@ -57,7 +57,7 @@ __Returns:__
|
|
|
57
57
|
|
|
58
58
|
--
|
|
59
59
|
|
|
60
|
-
##### [expand_required_files](https://github.com/appium/ruby_lib/blob/
|
|
60
|
+
##### [expand_required_files](https://github.com/appium/ruby_lib/blob/95118d4e0a6ec285e55862ea6b6fed528711ad84/lib/appium_lib/driver.rb#L127)
|
|
61
61
|
|
|
62
62
|
> def self.expand_required_files(base_dir, file_paths)
|
|
63
63
|
|
|
@@ -75,7 +75,7 @@ __Returns:__
|
|
|
75
75
|
|
|
76
76
|
--
|
|
77
77
|
|
|
78
|
-
##### [symbolize_keys](https://github.com/appium/ruby_lib/blob/
|
|
78
|
+
##### [symbolize_keys](https://github.com/appium/ruby_lib/blob/95118d4e0a6ec285e55862ea6b6fed528711ad84/lib/appium_lib/driver.rb#L159)
|
|
79
79
|
|
|
80
80
|
> def self.symbolize_keys(hash)
|
|
81
81
|
|
|
@@ -86,7 +86,7 @@ https://github.com/rails/docrails/blob/a3b1105ada3da64acfa3843b164b14b734456a50/
|
|
|
86
86
|
|
|
87
87
|
--
|
|
88
88
|
|
|
89
|
-
##### [promote_singleton_appium_methods](https://github.com/appium/ruby_lib/blob/
|
|
89
|
+
##### [promote_singleton_appium_methods](https://github.com/appium/ruby_lib/blob/95118d4e0a6ec285e55862ea6b6fed528711ad84/lib/appium_lib/driver.rb#L180)
|
|
90
90
|
|
|
91
91
|
> def self.promote_singleton_appium_methods(modules, driver = $driver)
|
|
92
92
|
|
|
@@ -104,7 +104,7 @@ otherwise, the array of modules will be used as the promotion target.
|
|
|
104
104
|
|
|
105
105
|
--
|
|
106
106
|
|
|
107
|
-
##### [promote_appium_methods](https://github.com/appium/ruby_lib/blob/
|
|
107
|
+
##### [promote_appium_methods](https://github.com/appium/ruby_lib/blob/95118d4e0a6ec285e55862ea6b6fed528711ad84/lib/appium_lib/driver.rb#L233)
|
|
108
108
|
|
|
109
109
|
> def self.promote_appium_methods(class_array, driver = $driver)
|
|
110
110
|
|
|
@@ -134,7 +134,7 @@ __Parameters:__
|
|
|
134
134
|
|
|
135
135
|
--
|
|
136
136
|
|
|
137
|
-
##### [selenium_webdriver_version_more?](https://github.com/appium/ruby_lib/blob/
|
|
137
|
+
##### [selenium_webdriver_version_more?](https://github.com/appium/ruby_lib/blob/95118d4e0a6ec285e55862ea6b6fed528711ad84/lib/appium_lib/driver.rb#L260)
|
|
138
138
|
|
|
139
139
|
> def self.selenium_webdriver_version_more?(version)
|
|
140
140
|
|
|
@@ -146,25 +146,7 @@ __Returns:__
|
|
|
146
146
|
|
|
147
147
|
--
|
|
148
148
|
|
|
149
|
-
##### [
|
|
150
|
-
|
|
151
|
-
> def self.init_caps_for_appium(opts_caps = {})
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
__Parameters:__
|
|
156
|
-
|
|
157
|
-
[Hash] opts_caps - Capabilities for Appium server. All capability keys are converted to lowerCamelCase when
|
|
158
|
-
this client sends capabilities to Appium server as JSON format.
|
|
159
|
-
|
|
160
|
-
__Returns:__
|
|
161
|
-
|
|
162
|
-
[::Selenium::WebDriver::Remote::W3C::Capabilities] Return instance of Appium::Driver::Capabilities
|
|
163
|
-
inherited ::Selenium::WebDriver::Remote::W3C::Capabilities
|
|
164
|
-
|
|
165
|
-
--
|
|
166
|
-
|
|
167
|
-
##### [global_webdriver_http_sleep](https://github.com/appium/ruby_lib/blob/a4c238552724878c31d8ff0179ef00d8258c76a4/lib/appium_lib/driver.rb#L290)
|
|
149
|
+
##### [global_webdriver_http_sleep](https://github.com/appium/ruby_lib/blob/95118d4e0a6ec285e55862ea6b6fed528711ad84/lib/appium_lib/driver.rb#L272)
|
|
168
150
|
|
|
169
151
|
> def global_webdriver_http_sleep
|
|
170
152
|
|
|
@@ -172,7 +154,7 @@ The amount to sleep in seconds before every webdriver http call.
|
|
|
172
154
|
|
|
173
155
|
--
|
|
174
156
|
|
|
175
|
-
##### [global_webdriver_http_sleep=](https://github.com/appium/ruby_lib/blob/
|
|
157
|
+
##### [global_webdriver_http_sleep=](https://github.com/appium/ruby_lib/blob/95118d4e0a6ec285e55862ea6b6fed528711ad84/lib/appium_lib/driver.rb#L272)
|
|
176
158
|
|
|
177
159
|
> def global_webdriver_http_sleep=(value)
|
|
178
160
|
|
|
@@ -180,7 +162,7 @@ The amount to sleep in seconds before every webdriver http call.
|
|
|
180
162
|
|
|
181
163
|
--
|
|
182
164
|
|
|
183
|
-
##### [caps](https://github.com/appium/ruby_lib/blob/
|
|
165
|
+
##### [caps](https://github.com/appium/ruby_lib/blob/95118d4e0a6ec285e55862ea6b6fed528711ad84/lib/appium_lib/driver.rb#L274)
|
|
184
166
|
|
|
185
167
|
> def caps
|
|
186
168
|
|
|
@@ -188,7 +170,7 @@ Selenium webdriver capabilities
|
|
|
188
170
|
|
|
189
171
|
--
|
|
190
172
|
|
|
191
|
-
##### [custom_url](https://github.com/appium/ruby_lib/blob/
|
|
173
|
+
##### [custom_url](https://github.com/appium/ruby_lib/blob/95118d4e0a6ec285e55862ea6b6fed528711ad84/lib/appium_lib/driver.rb#L276)
|
|
192
174
|
|
|
193
175
|
> def custom_url
|
|
194
176
|
|
|
@@ -196,7 +178,7 @@ Custom URL for the selenium server
|
|
|
196
178
|
|
|
197
179
|
--
|
|
198
180
|
|
|
199
|
-
##### [export_session](https://github.com/appium/ruby_lib/blob/
|
|
181
|
+
##### [export_session](https://github.com/appium/ruby_lib/blob/95118d4e0a6ec285e55862ea6b6fed528711ad84/lib/appium_lib/driver.rb#L278)
|
|
200
182
|
|
|
201
183
|
> def export_session
|
|
202
184
|
|
|
@@ -204,7 +186,7 @@ Export session id to textfile in /tmp for 3rd party tools
|
|
|
204
186
|
|
|
205
187
|
--
|
|
206
188
|
|
|
207
|
-
##### [default_wait](https://github.com/appium/ruby_lib/blob/
|
|
189
|
+
##### [default_wait](https://github.com/appium/ruby_lib/blob/95118d4e0a6ec285e55862ea6b6fed528711ad84/lib/appium_lib/driver.rb#L283)
|
|
208
190
|
|
|
209
191
|
> def default_wait
|
|
210
192
|
|
|
@@ -218,7 +200,7 @@ __Returns:__
|
|
|
218
200
|
|
|
219
201
|
--
|
|
220
202
|
|
|
221
|
-
##### [sauce_username](https://github.com/appium/ruby_lib/blob/
|
|
203
|
+
##### [sauce_username](https://github.com/appium/ruby_lib/blob/95118d4e0a6ec285e55862ea6b6fed528711ad84/lib/appium_lib/driver.rb#L285)
|
|
222
204
|
|
|
223
205
|
> def sauce_username
|
|
224
206
|
|
|
@@ -226,7 +208,7 @@ Username for use on Sauce Labs. Set `false` to disable Sauce, even when SAUCE_US
|
|
|
226
208
|
|
|
227
209
|
--
|
|
228
210
|
|
|
229
|
-
##### [sauce_access_key](https://github.com/appium/ruby_lib/blob/
|
|
211
|
+
##### [sauce_access_key](https://github.com/appium/ruby_lib/blob/95118d4e0a6ec285e55862ea6b6fed528711ad84/lib/appium_lib/driver.rb#L287)
|
|
230
212
|
|
|
231
213
|
> def sauce_access_key
|
|
232
214
|
|
|
@@ -234,7 +216,7 @@ Access Key for use on Sauce Labs. Set `false` to disable Sauce, even when SAUCE_
|
|
|
234
216
|
|
|
235
217
|
--
|
|
236
218
|
|
|
237
|
-
##### [sauce_endpoint](https://github.com/appium/ruby_lib/blob/
|
|
219
|
+
##### [sauce_endpoint](https://github.com/appium/ruby_lib/blob/95118d4e0a6ec285e55862ea6b6fed528711ad84/lib/appium_lib/driver.rb#L289)
|
|
238
220
|
|
|
239
221
|
> def sauce_endpoint
|
|
240
222
|
|
|
@@ -242,7 +224,7 @@ Override the Sauce Appium endpoint to allow e.g. TestObject tests
|
|
|
242
224
|
|
|
243
225
|
--
|
|
244
226
|
|
|
245
|
-
##### [appium_port](https://github.com/appium/ruby_lib/blob/
|
|
227
|
+
##### [appium_port](https://github.com/appium/ruby_lib/blob/95118d4e0a6ec285e55862ea6b6fed528711ad84/lib/appium_lib/driver.rb#L291)
|
|
246
228
|
|
|
247
229
|
> def appium_port
|
|
248
230
|
|
|
@@ -250,7 +232,7 @@ Appium's server port
|
|
|
250
232
|
|
|
251
233
|
--
|
|
252
234
|
|
|
253
|
-
##### [appium_device](https://github.com/appium/ruby_lib/blob/
|
|
235
|
+
##### [appium_device](https://github.com/appium/ruby_lib/blob/95118d4e0a6ec285e55862ea6b6fed528711ad84/lib/appium_lib/driver.rb#L293)
|
|
254
236
|
|
|
255
237
|
> def appium_device
|
|
256
238
|
|
|
@@ -258,7 +240,7 @@ Device type to request from the appium server
|
|
|
258
240
|
|
|
259
241
|
--
|
|
260
242
|
|
|
261
|
-
##### [automation_name](https://github.com/appium/ruby_lib/blob/
|
|
243
|
+
##### [automation_name](https://github.com/appium/ruby_lib/blob/95118d4e0a6ec285e55862ea6b6fed528711ad84/lib/appium_lib/driver.rb#L296)
|
|
262
244
|
|
|
263
245
|
> def automation_name
|
|
264
246
|
|
|
@@ -267,7 +249,7 @@ If automation_name is nil, it is not set both client side and server side.
|
|
|
267
249
|
|
|
268
250
|
--
|
|
269
251
|
|
|
270
|
-
##### [appium_server_status](https://github.com/appium/ruby_lib/blob/
|
|
252
|
+
##### [appium_server_status](https://github.com/appium/ruby_lib/blob/95118d4e0a6ec285e55862ea6b6fed528711ad84/lib/appium_lib/driver.rb#L298)
|
|
271
253
|
|
|
272
254
|
> def appium_server_status
|
|
273
255
|
|
|
@@ -275,7 +257,7 @@ Appium's server version
|
|
|
275
257
|
|
|
276
258
|
--
|
|
277
259
|
|
|
278
|
-
##### [appium_debug](https://github.com/appium/ruby_lib/blob/
|
|
260
|
+
##### [appium_debug](https://github.com/appium/ruby_lib/blob/95118d4e0a6ec285e55862ea6b6fed528711ad84/lib/appium_lib/driver.rb#L300)
|
|
279
261
|
|
|
280
262
|
> def appium_debug
|
|
281
263
|
|
|
@@ -283,7 +265,7 @@ Boolean debug mode for the Appium Ruby bindings
|
|
|
283
265
|
|
|
284
266
|
--
|
|
285
267
|
|
|
286
|
-
##### [listener](https://github.com/appium/ruby_lib/blob/
|
|
268
|
+
##### [listener](https://github.com/appium/ruby_lib/blob/95118d4e0a6ec285e55862ea6b6fed528711ad84/lib/appium_lib/driver.rb#L302)
|
|
287
269
|
|
|
288
270
|
> def listener
|
|
289
271
|
|
|
@@ -291,7 +273,7 @@ instance of AbstractEventListener for logging support
|
|
|
291
273
|
|
|
292
274
|
--
|
|
293
275
|
|
|
294
|
-
##### [driver](https://github.com/appium/ruby_lib/blob/
|
|
276
|
+
##### [driver](https://github.com/appium/ruby_lib/blob/95118d4e0a6ec285e55862ea6b6fed528711ad84/lib/appium_lib/driver.rb#L305)
|
|
295
277
|
|
|
296
278
|
> def driver
|
|
297
279
|
|
|
@@ -303,7 +285,7 @@ __Returns:__
|
|
|
303
285
|
|
|
304
286
|
--
|
|
305
287
|
|
|
306
|
-
##### [http_client](https://github.com/appium/ruby_lib/blob/
|
|
288
|
+
##### [http_client](https://github.com/appium/ruby_lib/blob/95118d4e0a6ec285e55862ea6b6fed528711ad84/lib/appium_lib/driver.rb#L308)
|
|
307
289
|
|
|
308
290
|
> def http_client
|
|
309
291
|
|
|
@@ -315,7 +297,7 @@ __Returns:__
|
|
|
315
297
|
|
|
316
298
|
--
|
|
317
299
|
|
|
318
|
-
##### [appium_wait_timeout](https://github.com/appium/ruby_lib/blob/
|
|
300
|
+
##### [appium_wait_timeout](https://github.com/appium/ruby_lib/blob/95118d4e0a6ec285e55862ea6b6fed528711ad84/lib/appium_lib/driver.rb#L313)
|
|
319
301
|
|
|
320
302
|
> def appium_wait_timeout
|
|
321
303
|
|
|
@@ -329,7 +311,7 @@ __Returns:__
|
|
|
329
311
|
|
|
330
312
|
--
|
|
331
313
|
|
|
332
|
-
##### [appium_wait_interval](https://github.com/appium/ruby_lib/blob/
|
|
314
|
+
##### [appium_wait_interval](https://github.com/appium/ruby_lib/blob/95118d4e0a6ec285e55862ea6b6fed528711ad84/lib/appium_lib/driver.rb#L318)
|
|
333
315
|
|
|
334
316
|
> def appium_wait_interval
|
|
335
317
|
|
|
@@ -343,9 +325,9 @@ __Returns:__
|
|
|
343
325
|
|
|
344
326
|
--
|
|
345
327
|
|
|
346
|
-
##### [initialize](https://github.com/appium/ruby_lib/blob/
|
|
328
|
+
##### [initialize](https://github.com/appium/ruby_lib/blob/95118d4e0a6ec285e55862ea6b6fed528711ad84/lib/appium_lib/driver.rb#L372)
|
|
347
329
|
|
|
348
|
-
> def initialize(opts = {}, global_driver =
|
|
330
|
+
> def initialize(opts = {}, global_driver = nil)
|
|
349
331
|
|
|
350
332
|
Creates a new driver. The driver is defined as global scope by default.
|
|
351
333
|
We can avoid defining global driver.
|
|
@@ -362,7 +344,7 @@ __Returns:__
|
|
|
362
344
|
|
|
363
345
|
--
|
|
364
346
|
|
|
365
|
-
##### [set_appium_lib_specific_values](https://github.com/appium/ruby_lib/blob/
|
|
347
|
+
##### [set_appium_lib_specific_values](https://github.com/appium/ruby_lib/blob/95118d4e0a6ec285e55862ea6b6fed528711ad84/lib/appium_lib/driver.rb#L457)
|
|
366
348
|
|
|
367
349
|
> def set_appium_lib_specific_values(appium_lib_opts)
|
|
368
350
|
|
|
@@ -370,7 +352,7 @@ __Returns:__
|
|
|
370
352
|
|
|
371
353
|
--
|
|
372
354
|
|
|
373
|
-
##### [driver_attributes](https://github.com/appium/ruby_lib/blob/
|
|
355
|
+
##### [driver_attributes](https://github.com/appium/ruby_lib/blob/95118d4e0a6ec285e55862ea6b6fed528711ad84/lib/appium_lib/driver.rb#L483)
|
|
374
356
|
|
|
375
357
|
> def driver_attributes
|
|
376
358
|
|
|
@@ -378,7 +360,7 @@ Returns a hash of the driver attributes
|
|
|
378
360
|
|
|
379
361
|
--
|
|
380
362
|
|
|
381
|
-
##### [device_is_android?](https://github.com/appium/ruby_lib/blob/
|
|
363
|
+
##### [device_is_android?](https://github.com/appium/ruby_lib/blob/95118d4e0a6ec285e55862ea6b6fed528711ad84/lib/appium_lib/driver.rb#L502)
|
|
382
364
|
|
|
383
365
|
> def device_is_android?
|
|
384
366
|
|
|
@@ -390,7 +372,7 @@ __Returns:__
|
|
|
390
372
|
|
|
391
373
|
--
|
|
392
374
|
|
|
393
|
-
##### [automation_name_is_xcuitest?](https://github.com/appium/ruby_lib/blob/
|
|
375
|
+
##### [automation_name_is_xcuitest?](https://github.com/appium/ruby_lib/blob/95118d4e0a6ec285e55862ea6b6fed528711ad84/lib/appium_lib/driver.rb#L508)
|
|
394
376
|
|
|
395
377
|
> def automation_name_is_xcuitest?
|
|
396
378
|
|
|
@@ -402,7 +384,7 @@ __Returns:__
|
|
|
402
384
|
|
|
403
385
|
--
|
|
404
386
|
|
|
405
|
-
##### [automation_name_is_uiautomator2?](https://github.com/appium/ruby_lib/blob/
|
|
387
|
+
##### [automation_name_is_uiautomator2?](https://github.com/appium/ruby_lib/blob/95118d4e0a6ec285e55862ea6b6fed528711ad84/lib/appium_lib/driver.rb#L514)
|
|
406
388
|
|
|
407
389
|
> def automation_name_is_uiautomator2?
|
|
408
390
|
|
|
@@ -414,7 +396,7 @@ __Returns:__
|
|
|
414
396
|
|
|
415
397
|
--
|
|
416
398
|
|
|
417
|
-
##### [automation_name_is_espresso?](https://github.com/appium/ruby_lib/blob/
|
|
399
|
+
##### [automation_name_is_espresso?](https://github.com/appium/ruby_lib/blob/95118d4e0a6ec285e55862ea6b6fed528711ad84/lib/appium_lib/driver.rb#L520)
|
|
418
400
|
|
|
419
401
|
> def automation_name_is_espresso?
|
|
420
402
|
|
|
@@ -426,7 +408,7 @@ __Returns:__
|
|
|
426
408
|
|
|
427
409
|
--
|
|
428
410
|
|
|
429
|
-
##### [check_server_version_xcuitest](https://github.com/appium/ruby_lib/blob/
|
|
411
|
+
##### [check_server_version_xcuitest](https://github.com/appium/ruby_lib/blob/95118d4e0a6ec285e55862ea6b6fed528711ad84/lib/appium_lib/driver.rb#L527)
|
|
430
412
|
|
|
431
413
|
> def check_server_version_xcuitest
|
|
432
414
|
|
|
@@ -439,7 +421,7 @@ __Returns:__
|
|
|
439
421
|
|
|
440
422
|
--
|
|
441
423
|
|
|
442
|
-
##### [appium_server_version](https://github.com/appium/ruby_lib/blob/
|
|
424
|
+
##### [appium_server_version](https://github.com/appium/ruby_lib/blob/95118d4e0a6ec285e55862ea6b6fed528711ad84/lib/appium_lib/driver.rb#L554)
|
|
443
425
|
|
|
444
426
|
> def appium_server_version
|
|
445
427
|
|
|
@@ -466,7 +448,7 @@ __Returns:__
|
|
|
466
448
|
|
|
467
449
|
--
|
|
468
450
|
|
|
469
|
-
##### [appium_client_version](https://github.com/appium/ruby_lib/blob/
|
|
451
|
+
##### [appium_client_version](https://github.com/appium/ruby_lib/blob/95118d4e0a6ec285e55862ea6b6fed528711ad84/lib/appium_lib/driver.rb#L575)
|
|
470
452
|
|
|
471
453
|
> def appium_client_version
|
|
472
454
|
|
|
@@ -484,7 +466,7 @@ __Returns:__
|
|
|
484
466
|
|
|
485
467
|
--
|
|
486
468
|
|
|
487
|
-
##### [absolute_app_path](https://github.com/appium/ruby_lib/blob/
|
|
469
|
+
##### [absolute_app_path](https://github.com/appium/ruby_lib/blob/95118d4e0a6ec285e55862ea6b6fed528711ad84/lib/appium_lib/driver.rb#L587)
|
|
488
470
|
|
|
489
471
|
> def self.absolute_app_path(opts)
|
|
490
472
|
|
|
@@ -501,7 +483,7 @@ __Returns:__
|
|
|
501
483
|
|
|
502
484
|
--
|
|
503
485
|
|
|
504
|
-
##### [server_url](https://github.com/appium/ruby_lib/blob/
|
|
486
|
+
##### [server_url](https://github.com/appium/ruby_lib/blob/95118d4e0a6ec285e55862ea6b6fed528711ad84/lib/appium_lib/driver.rb#L620)
|
|
505
487
|
|
|
506
488
|
> def server_url
|
|
507
489
|
|
|
@@ -513,7 +495,7 @@ __Returns:__
|
|
|
513
495
|
|
|
514
496
|
--
|
|
515
497
|
|
|
516
|
-
##### [restart](https://github.com/appium/ruby_lib/blob/
|
|
498
|
+
##### [restart](https://github.com/appium/ruby_lib/blob/95118d4e0a6ec285e55862ea6b6fed528711ad84/lib/appium_lib/driver.rb#L631)
|
|
517
499
|
|
|
518
500
|
> def restart
|
|
519
501
|
|
|
@@ -525,7 +507,7 @@ __Returns:__
|
|
|
525
507
|
|
|
526
508
|
--
|
|
527
509
|
|
|
528
|
-
##### [screenshot](https://github.com/appium/ruby_lib/blob/
|
|
510
|
+
##### [screenshot](https://github.com/appium/ruby_lib/blob/95118d4e0a6ec285e55862ea6b6fed528711ad84/lib/appium_lib/driver.rb#L642)
|
|
529
511
|
|
|
530
512
|
> def screenshot(png_save_path)
|
|
531
513
|
|
|
@@ -543,7 +525,7 @@ __Returns:__
|
|
|
543
525
|
|
|
544
526
|
--
|
|
545
527
|
|
|
546
|
-
##### [driver_quit](https://github.com/appium/ruby_lib/blob/
|
|
528
|
+
##### [driver_quit](https://github.com/appium/ruby_lib/blob/95118d4e0a6ec285e55862ea6b6fed528711ad84/lib/appium_lib/driver.rb#L649)
|
|
547
529
|
|
|
548
530
|
> def driver_quit
|
|
549
531
|
|
|
@@ -555,7 +537,7 @@ __Returns:__
|
|
|
555
537
|
|
|
556
538
|
--
|
|
557
539
|
|
|
558
|
-
##### [quit_driver](https://github.com/appium/ruby_lib/blob/
|
|
540
|
+
##### [quit_driver](https://github.com/appium/ruby_lib/blob/95118d4e0a6ec285e55862ea6b6fed528711ad84/lib/appium_lib/driver.rb#L657)
|
|
559
541
|
|
|
560
542
|
> def driver_quit
|
|
561
543
|
|
|
@@ -568,7 +550,7 @@ __Returns:__
|
|
|
568
550
|
|
|
569
551
|
--
|
|
570
552
|
|
|
571
|
-
##### [start_driver](https://github.com/appium/ruby_lib/blob/
|
|
553
|
+
##### [start_driver](https://github.com/appium/ruby_lib/blob/95118d4e0a6ec285e55862ea6b6fed528711ad84/lib/appium_lib/driver.rb#L685)
|
|
572
554
|
|
|
573
555
|
> def start_driver(http_client_ops = { http_client: nil, open_timeout: 999_999, read_timeout: 999_999 })
|
|
574
556
|
|
|
@@ -585,7 +567,7 @@ __Returns:__
|
|
|
585
567
|
|
|
586
568
|
--
|
|
587
569
|
|
|
588
|
-
##### [set_implicit_wait](https://github.com/appium/ruby_lib/blob/
|
|
570
|
+
##### [set_implicit_wait](https://github.com/appium/ruby_lib/blob/95118d4e0a6ec285e55862ea6b6fed528711ad84/lib/appium_lib/driver.rb#L725)
|
|
589
571
|
|
|
590
572
|
> def set_implicit_wait(wait)
|
|
591
573
|
|
|
@@ -593,7 +575,7 @@ To ignore error for Espresso Driver
|
|
|
593
575
|
|
|
594
576
|
--
|
|
595
577
|
|
|
596
|
-
##### [no_wait](https://github.com/appium/ruby_lib/blob/
|
|
578
|
+
##### [no_wait](https://github.com/appium/ruby_lib/blob/95118d4e0a6ec285e55862ea6b6fed528711ad84/lib/appium_lib/driver.rb#L735)
|
|
597
579
|
|
|
598
580
|
> def no_wait
|
|
599
581
|
|
|
@@ -601,7 +583,7 @@ Set implicit wait to zero.
|
|
|
601
583
|
|
|
602
584
|
--
|
|
603
585
|
|
|
604
|
-
##### [set_wait](https://github.com/appium/ruby_lib/blob/
|
|
586
|
+
##### [set_wait](https://github.com/appium/ruby_lib/blob/95118d4e0a6ec285e55862ea6b6fed528711ad84/lib/appium_lib/driver.rb#L749)
|
|
605
587
|
|
|
606
588
|
> def set_wait(timeout = nil)
|
|
607
589
|
|
|
@@ -623,7 +605,7 @@ __Returns:__
|
|
|
623
605
|
|
|
624
606
|
--
|
|
625
607
|
|
|
626
|
-
##### [exists](https://github.com/appium/ruby_lib/blob/
|
|
608
|
+
##### [exists](https://github.com/appium/ruby_lib/blob/95118d4e0a6ec285e55862ea6b6fed528711ad84/lib/appium_lib/driver.rb#L766)
|
|
627
609
|
|
|
628
610
|
> def exists(pre_check = 0, post_check = @default_wait)
|
|
629
611
|
|
|
@@ -647,7 +629,7 @@ __Returns:__
|
|
|
647
629
|
|
|
648
630
|
--
|
|
649
631
|
|
|
650
|
-
##### [execute_script](https://github.com/appium/ruby_lib/blob/
|
|
632
|
+
##### [execute_script](https://github.com/appium/ruby_lib/blob/95118d4e0a6ec285e55862ea6b6fed528711ad84/lib/appium_lib/driver.rb#L790)
|
|
651
633
|
|
|
652
634
|
> def execute_script(script, *args)
|
|
653
635
|
|
|
@@ -665,7 +647,7 @@ __Returns:__
|
|
|
665
647
|
|
|
666
648
|
--
|
|
667
649
|
|
|
668
|
-
##### [find_elements](https://github.com/appium/ruby_lib/blob/
|
|
650
|
+
##### [find_elements](https://github.com/appium/ruby_lib/blob/95118d4e0a6ec285e55862ea6b6fed528711ad84/lib/appium_lib/driver.rb#L812)
|
|
669
651
|
|
|
670
652
|
> def find_elements(*args)
|
|
671
653
|
|
|
@@ -691,7 +673,7 @@ __Returns:__
|
|
|
691
673
|
|
|
692
674
|
--
|
|
693
675
|
|
|
694
|
-
##### [find_element](https://github.com/appium/ruby_lib/blob/
|
|
676
|
+
##### [find_element](https://github.com/appium/ruby_lib/blob/95118d4e0a6ec285e55862ea6b6fed528711ad84/lib/appium_lib/driver.rb#L827)
|
|
695
677
|
|
|
696
678
|
> def find_element(*args)
|
|
697
679
|
|
|
@@ -712,7 +694,7 @@ __Returns:__
|
|
|
712
694
|
|
|
713
695
|
--
|
|
714
696
|
|
|
715
|
-
##### [set_location](https://github.com/appium/ruby_lib/blob/
|
|
697
|
+
##### [set_location](https://github.com/appium/ruby_lib/blob/95118d4e0a6ec285e55862ea6b6fed528711ad84/lib/appium_lib/driver.rb#L840)
|
|
716
698
|
|
|
717
699
|
> def set_location(opts = {})
|
|
718
700
|
|
|
@@ -728,7 +710,7 @@ __Returns:__
|
|
|
728
710
|
|
|
729
711
|
--
|
|
730
712
|
|
|
731
|
-
##### [x](https://github.com/appium/ruby_lib/blob/
|
|
713
|
+
##### [x](https://github.com/appium/ruby_lib/blob/95118d4e0a6ec285e55862ea6b6fed528711ad84/lib/appium_lib/driver.rb#L850)
|
|
732
714
|
|
|
733
715
|
> def x
|
|
734
716
|
|
|
@@ -741,7 +723,7 @@ __Returns:__
|
|
|
741
723
|
|
|
742
724
|
--
|
|
743
725
|
|
|
744
|
-
##### [write_session_id](https://github.com/appium/ruby_lib/blob/
|
|
726
|
+
##### [write_session_id](https://github.com/appium/ruby_lib/blob/95118d4e0a6ec285e55862ea6b6fed528711ad84/lib/appium_lib/driver.rb#L857)
|
|
745
727
|
|
|
746
728
|
> def write_session_id(session_id)
|
|
747
729
|
|
|
@@ -749,7 +731,7 @@ __Returns:__
|
|
|
749
731
|
|
|
750
732
|
--
|
|
751
733
|
|
|
752
|
-
##### [set_automation_name_if_nil](https://github.com/appium/ruby_lib/blob/
|
|
734
|
+
##### [set_automation_name_if_nil](https://github.com/appium/ruby_lib/blob/95118d4e0a6ec285e55862ea6b6fed528711ad84/lib/appium_lib/driver.rb#L866)
|
|
753
735
|
|
|
754
736
|
> def set_automation_name_if_nil
|
|
755
737
|
|
|
@@ -758,7 +740,7 @@ Since @automation_name is set only client side before start_driver is called.
|
|
|
758
740
|
|
|
759
741
|
--
|
|
760
742
|
|
|
761
|
-
##### [logger=](https://github.com/appium/ruby_lib/blob/
|
|
743
|
+
##### [logger=](https://github.com/appium/ruby_lib/blob/95118d4e0a6ec285e55862ea6b6fed528711ad84/lib/appium_lib/logger.rb#L18)
|
|
762
744
|
|
|
763
745
|
> def logger=(value)
|
|
764
746
|
|
|
@@ -770,7 +752,7 @@ __Parameters:__
|
|
|
770
752
|
|
|
771
753
|
--
|
|
772
754
|
|
|
773
|
-
##### [logger](https://github.com/appium/ruby_lib/blob/
|
|
755
|
+
##### [logger](https://github.com/appium/ruby_lib/blob/95118d4e0a6ec285e55862ea6b6fed528711ad84/lib/appium_lib/logger.rb#L22)
|
|
774
756
|
|
|
775
757
|
> def logger
|
|
776
758
|
|
|
@@ -778,7 +760,25 @@ __Parameters:__
|
|
|
778
760
|
|
|
779
761
|
--
|
|
780
762
|
|
|
781
|
-
##### [
|
|
763
|
+
##### [init_caps_for_appium](https://github.com/appium/ruby_lib/blob/95118d4e0a6ec285e55862ea6b6fed528711ad84/lib/appium_lib/capabilities.rb#L8)
|
|
764
|
+
|
|
765
|
+
> def self.init_caps_for_appium(opts_caps = {})
|
|
766
|
+
|
|
767
|
+
|
|
768
|
+
|
|
769
|
+
__Parameters:__
|
|
770
|
+
|
|
771
|
+
[Hash] opts_caps - Capabilities for Appium server. All capability keys are converted to lowerCamelCase when
|
|
772
|
+
this client sends capabilities to Appium server as JSON format.
|
|
773
|
+
|
|
774
|
+
__Returns:__
|
|
775
|
+
|
|
776
|
+
[::Selenium::WebDriver::Remote::W3C::Capabilities] Return instance of Appium::Driver::Capabilities
|
|
777
|
+
inherited ::Selenium::WebDriver::Remote::W3C::Capabilities
|
|
778
|
+
|
|
779
|
+
--
|
|
780
|
+
|
|
781
|
+
##### [app_strings](https://github.com/appium/ruby_lib/blob/95118d4e0a6ec285e55862ea6b6fed528711ad84/lib/appium_lib/device/device.rb#L7)
|
|
782
782
|
|
|
783
783
|
> def app_strings
|
|
784
784
|
|
|
@@ -789,7 +789,7 @@ app_strings #=> "TransitionsTitle"=>"Transitions", "WebTitle"=>"Web"
|
|
|
789
789
|
|
|
790
790
|
--
|
|
791
791
|
|
|
792
|
-
##### [background_app](https://github.com/appium/ruby_lib/blob/
|
|
792
|
+
##### [background_app](https://github.com/appium/ruby_lib/blob/95118d4e0a6ec285e55862ea6b6fed528711ad84/lib/appium_lib/device/device.rb#L13)
|
|
793
793
|
|
|
794
794
|
> def background_app
|
|
795
795
|
|
|
@@ -798,7 +798,7 @@ This is a blocking application
|
|
|
798
798
|
|
|
799
799
|
--
|
|
800
800
|
|
|
801
|
-
##### [current_activity](https://github.com/appium/ruby_lib/blob/
|
|
801
|
+
##### [current_activity](https://github.com/appium/ruby_lib/blob/95118d4e0a6ec285e55862ea6b6fed528711ad84/lib/appium_lib/device/device.rb#L24)
|
|
802
802
|
|
|
803
803
|
> def current_activity
|
|
804
804
|
|
|
@@ -813,7 +813,7 @@ __Returns:__
|
|
|
813
813
|
|
|
814
814
|
--
|
|
815
815
|
|
|
816
|
-
##### [current_package](https://github.com/appium/ruby_lib/blob/
|
|
816
|
+
##### [current_package](https://github.com/appium/ruby_lib/blob/95118d4e0a6ec285e55862ea6b6fed528711ad84/lib/appium_lib/device/device.rb#L32)
|
|
817
817
|
|
|
818
818
|
> def current_package
|
|
819
819
|
|
|
@@ -828,7 +828,7 @@ __Returns:__
|
|
|
828
828
|
|
|
829
829
|
--
|
|
830
830
|
|
|
831
|
-
##### [get_system_bars](https://github.com/appium/ruby_lib/blob/
|
|
831
|
+
##### [get_system_bars](https://github.com/appium/ruby_lib/blob/95118d4e0a6ec285e55862ea6b6fed528711ad84/lib/appium_lib/device/device.rb#L40)
|
|
832
832
|
|
|
833
833
|
> def get_system_bars
|
|
834
834
|
|
|
@@ -843,7 +843,7 @@ __Returns:__
|
|
|
843
843
|
|
|
844
844
|
--
|
|
845
845
|
|
|
846
|
-
##### [get_display_density](https://github.com/appium/ruby_lib/blob/
|
|
846
|
+
##### [get_display_density](https://github.com/appium/ruby_lib/blob/95118d4e0a6ec285e55862ea6b6fed528711ad84/lib/appium_lib/device/device.rb#L48)
|
|
847
847
|
|
|
848
848
|
> def get_display_density
|
|
849
849
|
|
|
@@ -858,7 +858,7 @@ __Returns:__
|
|
|
858
858
|
|
|
859
859
|
--
|
|
860
860
|
|
|
861
|
-
##### [is_keyboard_shown](https://github.com/appium/ruby_lib/blob/
|
|
861
|
+
##### [is_keyboard_shown](https://github.com/appium/ruby_lib/blob/95118d4e0a6ec285e55862ea6b6fed528711ad84/lib/appium_lib/device/device.rb#L56)
|
|
862
862
|
|
|
863
863
|
> def is_keyboard_shown
|
|
864
864
|
|
|
@@ -873,7 +873,7 @@ __Returns:__
|
|
|
873
873
|
|
|
874
874
|
--
|
|
875
875
|
|
|
876
|
-
##### [launch_app](https://github.com/appium/ruby_lib/blob/
|
|
876
|
+
##### [launch_app](https://github.com/appium/ruby_lib/blob/95118d4e0a6ec285e55862ea6b6fed528711ad84/lib/appium_lib/device/device.rb#L64)
|
|
877
877
|
|
|
878
878
|
> def launch_app
|
|
879
879
|
|
|
@@ -881,7 +881,7 @@ Start the simulator and application configured with desired capabilities
|
|
|
881
881
|
|
|
882
882
|
--
|
|
883
883
|
|
|
884
|
-
##### [reset](https://github.com/appium/ruby_lib/blob/
|
|
884
|
+
##### [reset](https://github.com/appium/ruby_lib/blob/95118d4e0a6ec285e55862ea6b6fed528711ad84/lib/appium_lib/device/device.rb#L67)
|
|
885
885
|
|
|
886
886
|
> def reset
|
|
887
887
|
|
|
@@ -889,7 +889,7 @@ Reset the device, relaunching the application.
|
|
|
889
889
|
|
|
890
890
|
--
|
|
891
891
|
|
|
892
|
-
##### [shake](https://github.com/appium/ruby_lib/blob/
|
|
892
|
+
##### [shake](https://github.com/appium/ruby_lib/blob/95118d4e0a6ec285e55862ea6b6fed528711ad84/lib/appium_lib/device/device.rb#L70)
|
|
893
893
|
|
|
894
894
|
> def shake
|
|
895
895
|
|
|
@@ -897,7 +897,7 @@ Cause the device to shake
|
|
|
897
897
|
|
|
898
898
|
--
|
|
899
899
|
|
|
900
|
-
##### [toggle_flight_mode](https://github.com/appium/ruby_lib/blob/
|
|
900
|
+
##### [toggle_flight_mode](https://github.com/appium/ruby_lib/blob/95118d4e0a6ec285e55862ea6b6fed528711ad84/lib/appium_lib/device/device.rb#L73)
|
|
901
901
|
|
|
902
902
|
> def toggle_flight_mode
|
|
903
903
|
|
|
@@ -905,7 +905,7 @@ Toggle flight mode on or off
|
|
|
905
905
|
|
|
906
906
|
--
|
|
907
907
|
|
|
908
|
-
##### [device_locked?](https://github.com/appium/ruby_lib/blob/
|
|
908
|
+
##### [device_locked?](https://github.com/appium/ruby_lib/blob/95118d4e0a6ec285e55862ea6b6fed528711ad84/lib/appium_lib/device/device.rb#L76)
|
|
909
909
|
|
|
910
910
|
> def device_locked?
|
|
911
911
|
|
|
@@ -913,7 +913,7 @@ Toggle flight mode on or off
|
|
|
913
913
|
|
|
914
914
|
--
|
|
915
915
|
|
|
916
|
-
##### [hide_keyboard](https://github.com/appium/ruby_lib/blob/
|
|
916
|
+
##### [hide_keyboard](https://github.com/appium/ruby_lib/blob/95118d4e0a6ec285e55862ea6b6fed528711ad84/lib/appium_lib/device/device.rb#L78)
|
|
917
917
|
|
|
918
918
|
> def hide_keyboard
|
|
919
919
|
|
|
@@ -930,7 +930,7 @@ Default for iOS is `:pressKey`. Default for Android is `:tapOutside`.
|
|
|
930
930
|
|
|
931
931
|
--
|
|
932
932
|
|
|
933
|
-
##### [press_keycode](https://github.com/appium/ruby_lib/blob/
|
|
933
|
+
##### [press_keycode](https://github.com/appium/ruby_lib/blob/95118d4e0a6ec285e55862ea6b6fed528711ad84/lib/appium_lib/device/device.rb#L91)
|
|
934
934
|
|
|
935
935
|
> def press_keycode
|
|
936
936
|
|
|
@@ -945,7 +945,7 @@ __Parameters:__
|
|
|
945
945
|
|
|
946
946
|
--
|
|
947
947
|
|
|
948
|
-
##### [long_press_keycode](https://github.com/appium/ruby_lib/blob/
|
|
948
|
+
##### [long_press_keycode](https://github.com/appium/ruby_lib/blob/95118d4e0a6ec285e55862ea6b6fed528711ad84/lib/appium_lib/device/device.rb#L97)
|
|
949
949
|
|
|
950
950
|
> def long_press_keycode
|
|
951
951
|
|
|
@@ -960,7 +960,7 @@ __Parameters:__
|
|
|
960
960
|
|
|
961
961
|
--
|
|
962
962
|
|
|
963
|
-
##### [push_file](https://github.com/appium/ruby_lib/blob/
|
|
963
|
+
##### [push_file](https://github.com/appium/ruby_lib/blob/95118d4e0a6ec285e55862ea6b6fed528711ad84/lib/appium_lib/device/device.rb#L103)
|
|
964
964
|
|
|
965
965
|
> def push_file
|
|
966
966
|
|
|
@@ -974,7 +974,7 @@ __Parameters:__
|
|
|
974
974
|
|
|
975
975
|
--
|
|
976
976
|
|
|
977
|
-
##### [pull_file](https://github.com/appium/ruby_lib/blob/
|
|
977
|
+
##### [pull_file](https://github.com/appium/ruby_lib/blob/95118d4e0a6ec285e55862ea6b6fed528711ad84/lib/appium_lib/device/device.rb#L108)
|
|
978
978
|
|
|
979
979
|
> def pull_file
|
|
980
980
|
|
|
@@ -991,7 +991,7 @@ __Parameters:__
|
|
|
991
991
|
|
|
992
992
|
--
|
|
993
993
|
|
|
994
|
-
##### [pull_folder](https://github.com/appium/ruby_lib/blob/
|
|
994
|
+
##### [pull_folder](https://github.com/appium/ruby_lib/blob/95118d4e0a6ec285e55862ea6b6fed528711ad84/lib/appium_lib/device/device.rb#L118)
|
|
995
995
|
|
|
996
996
|
> def pull_folder
|
|
997
997
|
|
|
@@ -1006,7 +1006,7 @@ __Parameters:__
|
|
|
1006
1006
|
|
|
1007
1007
|
--
|
|
1008
1008
|
|
|
1009
|
-
##### [touch_id](https://github.com/appium/ruby_lib/blob/
|
|
1009
|
+
##### [touch_id](https://github.com/appium/ruby_lib/blob/95118d4e0a6ec285e55862ea6b6fed528711ad84/lib/appium_lib/device/device.rb#L126)
|
|
1010
1010
|
|
|
1011
1011
|
> def touch_id
|
|
1012
1012
|
|
|
@@ -1023,7 +1023,7 @@ Defaults to true.
|
|
|
1023
1023
|
|
|
1024
1024
|
--
|
|
1025
1025
|
|
|
1026
|
-
##### [toggle_touch_id_enrollment](https://github.com/appium/ruby_lib/blob/
|
|
1026
|
+
##### [toggle_touch_id_enrollment](https://github.com/appium/ruby_lib/blob/95118d4e0a6ec285e55862ea6b6fed528711ad84/lib/appium_lib/device/device.rb#L135)
|
|
1027
1027
|
|
|
1028
1028
|
> def toggle_touch_id_enrollment
|
|
1029
1029
|
|
|
@@ -1031,7 +1031,7 @@ iOS Simulator only: Toggle touch id enrollment on an iOS Simulator.
|
|
|
1031
1031
|
|
|
1032
1032
|
--
|
|
1033
1033
|
|
|
1034
|
-
##### [end_coverage](https://github.com/appium/ruby_lib/blob/
|
|
1034
|
+
##### [end_coverage](https://github.com/appium/ruby_lib/blob/95118d4e0a6ec285e55862ea6b6fed528711ad84/lib/appium_lib/device/device.rb#L138)
|
|
1035
1035
|
|
|
1036
1036
|
> def end_coverage
|
|
1037
1037
|
|
|
@@ -1045,7 +1045,7 @@ __Parameters:__
|
|
|
1045
1045
|
|
|
1046
1046
|
--
|
|
1047
1047
|
|
|
1048
|
-
##### [get_settings](https://github.com/appium/ruby_lib/blob/
|
|
1048
|
+
##### [get_settings](https://github.com/appium/ruby_lib/blob/95118d4e0a6ec285e55862ea6b6fed528711ad84/lib/appium_lib/device/device.rb#L143)
|
|
1049
1049
|
|
|
1050
1050
|
> def get_settings
|
|
1051
1051
|
|
|
@@ -1053,7 +1053,7 @@ Get appium Settings for current test session
|
|
|
1053
1053
|
|
|
1054
1054
|
--
|
|
1055
1055
|
|
|
1056
|
-
##### [update_settings](https://github.com/appium/ruby_lib/blob/
|
|
1056
|
+
##### [update_settings](https://github.com/appium/ruby_lib/blob/95118d4e0a6ec285e55862ea6b6fed528711ad84/lib/appium_lib/device/device.rb#L146)
|
|
1057
1057
|
|
|
1058
1058
|
> def update_settings
|
|
1059
1059
|
|
|
@@ -1065,7 +1065,7 @@ __Parameters:__
|
|
|
1065
1065
|
|
|
1066
1066
|
--
|
|
1067
1067
|
|
|
1068
|
-
##### [start_activity](https://github.com/appium/ruby_lib/blob/
|
|
1068
|
+
##### [start_activity](https://github.com/appium/ruby_lib/blob/95118d4e0a6ec285e55862ea6b6fed528711ad84/lib/appium_lib/device/device.rb#L150)
|
|
1069
1069
|
|
|
1070
1070
|
> def start_activity
|
|
1071
1071
|
|
|
@@ -1079,7 +1079,7 @@ start_activity app_package: 'io.appium.android.apis',
|
|
|
1079
1079
|
|
|
1080
1080
|
--
|
|
1081
1081
|
|
|
1082
|
-
##### [get_network_connection](https://github.com/appium/ruby_lib/blob/
|
|
1082
|
+
##### [get_network_connection](https://github.com/appium/ruby_lib/blob/95118d4e0a6ec285e55862ea6b6fed528711ad84/lib/appium_lib/device/device.rb#L164)
|
|
1083
1083
|
|
|
1084
1084
|
> def get_network_connection
|
|
1085
1085
|
|
|
@@ -1088,7 +1088,7 @@ See set_network_connection method for return value
|
|
|
1088
1088
|
|
|
1089
1089
|
--
|
|
1090
1090
|
|
|
1091
|
-
##### [set_network_connection](https://github.com/appium/ruby_lib/blob/
|
|
1091
|
+
##### [set_network_connection](https://github.com/appium/ruby_lib/blob/95118d4e0a6ec285e55862ea6b6fed528711ad84/lib/appium_lib/device/device.rb#L168)
|
|
1092
1092
|
|
|
1093
1093
|
> def set_network_connection
|
|
1094
1094
|
|
|
@@ -1107,7 +1107,7 @@ __Parameters:__
|
|
|
1107
1107
|
|
|
1108
1108
|
--
|
|
1109
1109
|
|
|
1110
|
-
##### [set_immediate_value](https://github.com/appium/ruby_lib/blob/
|
|
1110
|
+
##### [set_immediate_value](https://github.com/appium/ruby_lib/blob/95118d4e0a6ec285e55862ea6b6fed528711ad84/lib/appium_lib/device/device.rb#L181)
|
|
1111
1111
|
|
|
1112
1112
|
> def set_immediate_value
|
|
1113
1113
|
|
|
@@ -1121,7 +1121,7 @@ set_immediate_value element, 'hello'
|
|
|
1121
1121
|
|
|
1122
1122
|
--
|
|
1123
1123
|
|
|
1124
|
-
##### [get_performance_data_types](https://github.com/appium/ruby_lib/blob/
|
|
1124
|
+
##### [get_performance_data_types](https://github.com/appium/ruby_lib/blob/95118d4e0a6ec285e55862ea6b6fed528711ad84/lib/appium_lib/device/device.rb#L190)
|
|
1125
1125
|
|
|
1126
1126
|
> def get_performance_data_types
|
|
1127
1127
|
|
|
@@ -1135,7 +1135,7 @@ get_performance_data_types #=> ["cpuinfo", "batteryinfo", "networkinfo", "memory
|
|
|
1135
1135
|
|
|
1136
1136
|
--
|
|
1137
1137
|
|
|
1138
|
-
##### [extend_search_contexts](https://github.com/appium/ruby_lib/blob/
|
|
1138
|
+
##### [extend_search_contexts](https://github.com/appium/ruby_lib/blob/95118d4e0a6ec285e55862ea6b6fed528711ad84/lib/appium_lib/device/device.rb#L443)
|
|
1139
1139
|
|
|
1140
1140
|
> def extend_search_contexts
|
|
1141
1141
|
|
|
@@ -1143,7 +1143,7 @@ get_performance_data_types #=> ["cpuinfo", "batteryinfo", "networkinfo", "memory
|
|
|
1143
1143
|
|
|
1144
1144
|
--
|
|
1145
1145
|
|
|
1146
|
-
##### [find_element_with_appium](https://github.com/appium/ruby_lib/blob/
|
|
1146
|
+
##### [find_element_with_appium](https://github.com/appium/ruby_lib/blob/95118d4e0a6ec285e55862ea6b6fed528711ad84/lib/appium_lib/device/device.rb#L443)
|
|
1147
1147
|
|
|
1148
1148
|
> def find_element_with_appium
|
|
1149
1149
|
|
|
@@ -1151,7 +1151,7 @@ get_performance_data_types #=> ["cpuinfo", "batteryinfo", "networkinfo", "memory
|
|
|
1151
1151
|
|
|
1152
1152
|
--
|
|
1153
1153
|
|
|
1154
|
-
##### [find_elements_with_appium](https://github.com/appium/ruby_lib/blob/
|
|
1154
|
+
##### [find_elements_with_appium](https://github.com/appium/ruby_lib/blob/95118d4e0a6ec285e55862ea6b6fed528711ad84/lib/appium_lib/device/device.rb#L443)
|
|
1155
1155
|
|
|
1156
1156
|
> def find_elements_with_appium
|
|
1157
1157
|
|
|
@@ -1163,7 +1163,7 @@ find_element/s_with_appium with their accessibility_id
|
|
|
1163
1163
|
|
|
1164
1164
|
--
|
|
1165
1165
|
|
|
1166
|
-
##### [add_touch_actions](https://github.com/appium/ruby_lib/blob/
|
|
1166
|
+
##### [add_touch_actions](https://github.com/appium/ruby_lib/blob/95118d4e0a6ec285e55862ea6b6fed528711ad84/lib/appium_lib/device/device.rb#L474)
|
|
1167
1167
|
|
|
1168
1168
|
> def add_touch_actions
|
|
1169
1169
|
|
|
@@ -1171,7 +1171,7 @@ find_element/s_with_appium with their accessibility_id
|
|
|
1171
1171
|
|
|
1172
1172
|
--
|
|
1173
1173
|
|
|
1174
|
-
##### [add_ime_actions](https://github.com/appium/ruby_lib/blob/
|
|
1174
|
+
##### [add_ime_actions](https://github.com/appium/ruby_lib/blob/95118d4e0a6ec285e55862ea6b6fed528711ad84/lib/appium_lib/device/device.rb#L497)
|
|
1175
1175
|
|
|
1176
1176
|
> def add_ime_actions
|
|
1177
1177
|
|
|
@@ -1179,7 +1179,7 @@ find_element/s_with_appium with their accessibility_id
|
|
|
1179
1179
|
|
|
1180
1180
|
--
|
|
1181
1181
|
|
|
1182
|
-
##### [set_context](https://github.com/appium/ruby_lib/blob/
|
|
1182
|
+
##### [set_context](https://github.com/appium/ruby_lib/blob/95118d4e0a6ec285e55862ea6b6fed528711ad84/lib/appium_lib/device/device.rb#L572)
|
|
1183
1183
|
|
|
1184
1184
|
> def set_context
|
|
1185
1185
|
|
|
@@ -1194,7 +1194,7 @@ __Parameters:__
|
|
|
1194
1194
|
|
|
1195
1195
|
--
|
|
1196
1196
|
|
|
1197
|
-
##### [current_context](https://github.com/appium/ruby_lib/blob/
|
|
1197
|
+
##### [current_context](https://github.com/appium/ruby_lib/blob/95118d4e0a6ec285e55862ea6b6fed528711ad84/lib/appium_lib/device/device.rb#L580)
|
|
1198
1198
|
|
|
1199
1199
|
> def current_context
|
|
1200
1200
|
|
|
@@ -1206,7 +1206,7 @@ __Returns:__
|
|
|
1206
1206
|
|
|
1207
1207
|
--
|
|
1208
1208
|
|
|
1209
|
-
##### [available_contexts](https://github.com/appium/ruby_lib/blob/
|
|
1209
|
+
##### [available_contexts](https://github.com/appium/ruby_lib/blob/95118d4e0a6ec285e55862ea6b6fed528711ad84/lib/appium_lib/device/device.rb#L583)
|
|
1210
1210
|
|
|
1211
1211
|
> def available_contexts
|
|
1212
1212
|
|
|
@@ -1218,7 +1218,7 @@ __Returns:__
|
|
|
1218
1218
|
|
|
1219
1219
|
--
|
|
1220
1220
|
|
|
1221
|
-
##### [within_context](https://github.com/appium/ruby_lib/blob/
|
|
1221
|
+
##### [within_context](https://github.com/appium/ruby_lib/blob/95118d4e0a6ec285e55862ea6b6fed528711ad84/lib/appium_lib/device/device.rb#L594)
|
|
1222
1222
|
|
|
1223
1223
|
> def within_context(context)
|
|
1224
1224
|
|
|
@@ -1235,7 +1235,7 @@ __Parameters:__
|
|
|
1235
1235
|
|
|
1236
1236
|
--
|
|
1237
1237
|
|
|
1238
|
-
##### [switch_to_default_context](https://github.com/appium/ruby_lib/blob/
|
|
1238
|
+
##### [switch_to_default_context](https://github.com/appium/ruby_lib/blob/95118d4e0a6ec285e55862ea6b6fed528711ad84/lib/appium_lib/device/device.rb#L607)
|
|
1239
1239
|
|
|
1240
1240
|
> def switch_to_default_context
|
|
1241
1241
|
|
|
@@ -1243,7 +1243,7 @@ Change to the default context. This is equivalent to `set_context nil`.
|
|
|
1243
1243
|
|
|
1244
1244
|
--
|
|
1245
1245
|
|
|
1246
|
-
##### [pinch](https://github.com/appium/ruby_lib/blob/
|
|
1246
|
+
##### [pinch](https://github.com/appium/ruby_lib/blob/95118d4e0a6ec285e55862ea6b6fed528711ad84/lib/appium_lib/device/multi_touch.rb#L53)
|
|
1247
1247
|
|
|
1248
1248
|
> def pinch(percentage = 25, auto_perform = true, driver = $driver)
|
|
1249
1249
|
|
|
@@ -1277,7 +1277,7 @@ __Parameters:__
|
|
|
1277
1277
|
|
|
1278
1278
|
--
|
|
1279
1279
|
|
|
1280
|
-
##### [zoom](https://github.com/appium/ruby_lib/blob/
|
|
1280
|
+
##### [zoom](https://github.com/appium/ruby_lib/blob/95118d4e0a6ec285e55862ea6b6fed528711ad84/lib/appium_lib/device/multi_touch.rb#L96)
|
|
1281
1281
|
|
|
1282
1282
|
> def zoom(percentage = 200, auto_perform = true, driver = $driver)
|
|
1283
1283
|
|
|
@@ -1311,7 +1311,7 @@ __Parameters:__
|
|
|
1311
1311
|
|
|
1312
1312
|
--
|
|
1313
1313
|
|
|
1314
|
-
##### [pinch_for_xcuitest](https://github.com/appium/ruby_lib/blob/
|
|
1314
|
+
##### [pinch_for_xcuitest](https://github.com/appium/ruby_lib/blob/95118d4e0a6ec285e55862ea6b6fed528711ad84/lib/appium_lib/device/multi_touch.rb#L118)
|
|
1315
1315
|
|
|
1316
1316
|
> def pinch_for_xcuitest(rate, driver)
|
|
1317
1317
|
|
|
@@ -1319,7 +1319,7 @@ __Parameters:__
|
|
|
1319
1319
|
|
|
1320
1320
|
--
|
|
1321
1321
|
|
|
1322
|
-
##### [pinch_android](https://github.com/appium/ruby_lib/blob/
|
|
1322
|
+
##### [pinch_android](https://github.com/appium/ruby_lib/blob/95118d4e0a6ec285e55862ea6b6fed528711ad84/lib/appium_lib/device/multi_touch.rb#L133)
|
|
1323
1323
|
|
|
1324
1324
|
> def pinch_android(rate)
|
|
1325
1325
|
|
|
@@ -1327,7 +1327,7 @@ __Parameters:__
|
|
|
1327
1327
|
|
|
1328
1328
|
--
|
|
1329
1329
|
|
|
1330
|
-
##### [pinch_ios](https://github.com/appium/ruby_lib/blob/
|
|
1330
|
+
##### [pinch_ios](https://github.com/appium/ruby_lib/blob/95118d4e0a6ec285e55862ea6b6fed528711ad84/lib/appium_lib/device/multi_touch.rb#L147)
|
|
1331
1331
|
|
|
1332
1332
|
> def pinch_ios(rate)
|
|
1333
1333
|
|
|
@@ -1335,7 +1335,7 @@ __Parameters:__
|
|
|
1335
1335
|
|
|
1336
1336
|
--
|
|
1337
1337
|
|
|
1338
|
-
##### [zoom_for_xcuitest](https://github.com/appium/ruby_lib/blob/
|
|
1338
|
+
##### [zoom_for_xcuitest](https://github.com/appium/ruby_lib/blob/95118d4e0a6ec285e55862ea6b6fed528711ad84/lib/appium_lib/device/multi_touch.rb#L161)
|
|
1339
1339
|
|
|
1340
1340
|
> def zoom_for_xcuitest(rate, driver)
|
|
1341
1341
|
|
|
@@ -1343,7 +1343,7 @@ __Parameters:__
|
|
|
1343
1343
|
|
|
1344
1344
|
--
|
|
1345
1345
|
|
|
1346
|
-
##### [zoom_android](https://github.com/appium/ruby_lib/blob/
|
|
1346
|
+
##### [zoom_android](https://github.com/appium/ruby_lib/blob/95118d4e0a6ec285e55862ea6b6fed528711ad84/lib/appium_lib/device/multi_touch.rb#L176)
|
|
1347
1347
|
|
|
1348
1348
|
> def zoom_android(rate)
|
|
1349
1349
|
|
|
@@ -1351,7 +1351,7 @@ __Parameters:__
|
|
|
1351
1351
|
|
|
1352
1352
|
--
|
|
1353
1353
|
|
|
1354
|
-
##### [zoom_ios](https://github.com/appium/ruby_lib/blob/
|
|
1354
|
+
##### [zoom_ios](https://github.com/appium/ruby_lib/blob/95118d4e0a6ec285e55862ea6b6fed528711ad84/lib/appium_lib/device/multi_touch.rb#L190)
|
|
1355
1355
|
|
|
1356
1356
|
> def zoom_ios(rate)
|
|
1357
1357
|
|
|
@@ -1359,7 +1359,7 @@ __Parameters:__
|
|
|
1359
1359
|
|
|
1360
1360
|
--
|
|
1361
1361
|
|
|
1362
|
-
##### [actions](https://github.com/appium/ruby_lib/blob/
|
|
1362
|
+
##### [actions](https://github.com/appium/ruby_lib/blob/95118d4e0a6ec285e55862ea6b6fed528711ad84/lib/appium_lib/device/multi_touch.rb#L205)
|
|
1363
1363
|
|
|
1364
1364
|
> def actions
|
|
1365
1365
|
|
|
@@ -1367,7 +1367,7 @@ self
|
|
|
1367
1367
|
|
|
1368
1368
|
--
|
|
1369
1369
|
|
|
1370
|
-
##### [driver](https://github.com/appium/ruby_lib/blob/
|
|
1370
|
+
##### [driver](https://github.com/appium/ruby_lib/blob/95118d4e0a6ec285e55862ea6b6fed528711ad84/lib/appium_lib/device/multi_touch.rb#L205)
|
|
1371
1371
|
|
|
1372
1372
|
> def driver
|
|
1373
1373
|
|
|
@@ -1375,7 +1375,7 @@ self
|
|
|
1375
1375
|
|
|
1376
1376
|
--
|
|
1377
1377
|
|
|
1378
|
-
##### [initialize](https://github.com/appium/ruby_lib/blob/
|
|
1378
|
+
##### [initialize](https://github.com/appium/ruby_lib/blob/95118d4e0a6ec285e55862ea6b6fed528711ad84/lib/appium_lib/device/multi_touch.rb#L208)
|
|
1379
1379
|
|
|
1380
1380
|
> def initialize(driver = $driver)
|
|
1381
1381
|
|
|
@@ -1387,7 +1387,7 @@ __Returns:__
|
|
|
1387
1387
|
|
|
1388
1388
|
--
|
|
1389
1389
|
|
|
1390
|
-
##### [add](https://github.com/appium/ruby_lib/blob/
|
|
1390
|
+
##### [add](https://github.com/appium/ruby_lib/blob/95118d4e0a6ec285e55862ea6b6fed528711ad84/lib/appium_lib/device/multi_touch.rb#L215)
|
|
1391
1391
|
|
|
1392
1392
|
> def add(chain)
|
|
1393
1393
|
|
|
@@ -1399,7 +1399,7 @@ __Parameters:__
|
|
|
1399
1399
|
|
|
1400
1400
|
--
|
|
1401
1401
|
|
|
1402
|
-
##### [perform](https://github.com/appium/ruby_lib/blob/
|
|
1402
|
+
##### [perform](https://github.com/appium/ruby_lib/blob/95118d4e0a6ec285e55862ea6b6fed528711ad84/lib/appium_lib/device/multi_touch.rb#L220)
|
|
1403
1403
|
|
|
1404
1404
|
> def perform
|
|
1405
1405
|
|
|
@@ -1407,7 +1407,7 @@ Ask Appium to perform the actions
|
|
|
1407
1407
|
|
|
1408
1408
|
--
|
|
1409
1409
|
|
|
1410
|
-
##### [ACTIONS](https://github.com/appium/ruby_lib/blob/
|
|
1410
|
+
##### [ACTIONS](https://github.com/appium/ruby_lib/blob/95118d4e0a6ec285e55862ea6b6fed528711ad84/lib/appium_lib/device/touch_actions.rb#L30)
|
|
1411
1411
|
|
|
1412
1412
|
> ACTIONS = [:move_to, :long_press, :double_tap, :two_finger_tap, :press, :release, :tap, :wait, :perform].freeze
|
|
1413
1413
|
|
|
@@ -1415,7 +1415,7 @@ Ask Appium to perform the actions
|
|
|
1415
1415
|
|
|
1416
1416
|
--
|
|
1417
1417
|
|
|
1418
|
-
##### [COMPLEX_ACTIONS](https://github.com/appium/ruby_lib/blob/
|
|
1418
|
+
##### [COMPLEX_ACTIONS](https://github.com/appium/ruby_lib/blob/95118d4e0a6ec285e55862ea6b6fed528711ad84/lib/appium_lib/device/touch_actions.rb#L31)
|
|
1419
1419
|
|
|
1420
1420
|
> COMPLEX_ACTIONS = [:swipe].freeze
|
|
1421
1421
|
|
|
@@ -1423,7 +1423,7 @@ Ask Appium to perform the actions
|
|
|
1423
1423
|
|
|
1424
1424
|
--
|
|
1425
1425
|
|
|
1426
|
-
##### [actions](https://github.com/appium/ruby_lib/blob/
|
|
1426
|
+
##### [actions](https://github.com/appium/ruby_lib/blob/95118d4e0a6ec285e55862ea6b6fed528711ad84/lib/appium_lib/device/touch_actions.rb#L45)
|
|
1427
1427
|
|
|
1428
1428
|
> def actions
|
|
1429
1429
|
|
|
@@ -1431,7 +1431,7 @@ Returns the value of attribute actions
|
|
|
1431
1431
|
|
|
1432
1432
|
--
|
|
1433
1433
|
|
|
1434
|
-
##### [initialize](https://github.com/appium/ruby_lib/blob/
|
|
1434
|
+
##### [initialize](https://github.com/appium/ruby_lib/blob/95118d4e0a6ec285e55862ea6b6fed528711ad84/lib/appium_lib/device/touch_actions.rb#L47)
|
|
1435
1435
|
|
|
1436
1436
|
> def initialize
|
|
1437
1437
|
|
|
@@ -1443,7 +1443,7 @@ __Returns:__
|
|
|
1443
1443
|
|
|
1444
1444
|
--
|
|
1445
1445
|
|
|
1446
|
-
##### [move_to](https://github.com/appium/ruby_lib/blob/
|
|
1446
|
+
##### [move_to](https://github.com/appium/ruby_lib/blob/95118d4e0a6ec285e55862ea6b6fed528711ad84/lib/appium_lib/device/touch_actions.rb#L58)
|
|
1447
1447
|
|
|
1448
1448
|
> def move_to(opts)
|
|
1449
1449
|
|
|
@@ -1457,7 +1457,7 @@ __Parameters:__
|
|
|
1457
1457
|
|
|
1458
1458
|
--
|
|
1459
1459
|
|
|
1460
|
-
##### [long_press](https://github.com/appium/ruby_lib/blob/
|
|
1460
|
+
##### [long_press](https://github.com/appium/ruby_lib/blob/95118d4e0a6ec285e55862ea6b6fed528711ad84/lib/appium_lib/device/touch_actions.rb#L72)
|
|
1461
1461
|
|
|
1462
1462
|
> def long_press(opts)
|
|
1463
1463
|
|
|
@@ -1478,7 +1478,7 @@ __Parameters:__
|
|
|
1478
1478
|
|
|
1479
1479
|
--
|
|
1480
1480
|
|
|
1481
|
-
##### [press](https://github.com/appium/ruby_lib/blob/
|
|
1481
|
+
##### [press](https://github.com/appium/ruby_lib/blob/95118d4e0a6ec285e55862ea6b6fed528711ad84/lib/appium_lib/device/touch_actions.rb#L84)
|
|
1482
1482
|
|
|
1483
1483
|
> def press(opts)
|
|
1484
1484
|
|
|
@@ -1491,7 +1491,7 @@ __Parameters:__
|
|
|
1491
1491
|
|
|
1492
1492
|
--
|
|
1493
1493
|
|
|
1494
|
-
##### [release](https://github.com/appium/ruby_lib/blob/
|
|
1494
|
+
##### [release](https://github.com/appium/ruby_lib/blob/95118d4e0a6ec285e55862ea6b6fed528711ad84/lib/appium_lib/device/touch_actions.rb#L95)
|
|
1495
1495
|
|
|
1496
1496
|
> def release(opts = nil)
|
|
1497
1497
|
|
|
@@ -1503,7 +1503,7 @@ __Parameters:__
|
|
|
1503
1503
|
|
|
1504
1504
|
--
|
|
1505
1505
|
|
|
1506
|
-
##### [tap](https://github.com/appium/ruby_lib/blob/
|
|
1506
|
+
##### [tap](https://github.com/appium/ruby_lib/blob/95118d4e0a6ec285e55862ea6b6fed528711ad84/lib/appium_lib/device/touch_actions.rb#L107)
|
|
1507
1507
|
|
|
1508
1508
|
> def tap(opts)
|
|
1509
1509
|
|
|
@@ -1516,7 +1516,7 @@ __Parameters:__
|
|
|
1516
1516
|
|
|
1517
1517
|
--
|
|
1518
1518
|
|
|
1519
|
-
##### [double_tap](https://github.com/appium/ruby_lib/blob/
|
|
1519
|
+
##### [double_tap](https://github.com/appium/ruby_lib/blob/95118d4e0a6ec285e55862ea6b6fed528711ad84/lib/appium_lib/device/touch_actions.rb#L120)
|
|
1520
1520
|
|
|
1521
1521
|
> def double_tap(opts)
|
|
1522
1522
|
|
|
@@ -1528,7 +1528,7 @@ __Parameters:__
|
|
|
1528
1528
|
|
|
1529
1529
|
--
|
|
1530
1530
|
|
|
1531
|
-
##### [two_finger_tap](https://github.com/appium/ruby_lib/blob/
|
|
1531
|
+
##### [two_finger_tap](https://github.com/appium/ruby_lib/blob/95118d4e0a6ec285e55862ea6b6fed528711ad84/lib/appium_lib/device/touch_actions.rb#L131)
|
|
1532
1532
|
|
|
1533
1533
|
> def two_finger_tap(opts)
|
|
1534
1534
|
|
|
@@ -1540,7 +1540,7 @@ __Parameters:__
|
|
|
1540
1540
|
|
|
1541
1541
|
--
|
|
1542
1542
|
|
|
1543
|
-
##### [wait](https://github.com/appium/ruby_lib/blob/
|
|
1543
|
+
##### [wait](https://github.com/appium/ruby_lib/blob/95118d4e0a6ec285e55862ea6b6fed528711ad84/lib/appium_lib/device/touch_actions.rb#L139)
|
|
1544
1544
|
|
|
1545
1545
|
> def wait(milliseconds)
|
|
1546
1546
|
|
|
@@ -1552,7 +1552,7 @@ __Parameters:__
|
|
|
1552
1552
|
|
|
1553
1553
|
--
|
|
1554
1554
|
|
|
1555
|
-
##### [swipe](https://github.com/appium/ruby_lib/blob/
|
|
1555
|
+
##### [swipe](https://github.com/appium/ruby_lib/blob/95118d4e0a6ec285e55862ea6b6fed528711ad84/lib/appium_lib/device/touch_actions.rb#L162)
|
|
1556
1556
|
|
|
1557
1557
|
> def swipe(opts, ele = nil)
|
|
1558
1558
|
|
|
@@ -1573,7 +1573,7 @@ __Parameters:__
|
|
|
1573
1573
|
|
|
1574
1574
|
--
|
|
1575
1575
|
|
|
1576
|
-
##### [perform](https://github.com/appium/ruby_lib/blob/
|
|
1576
|
+
##### [perform](https://github.com/appium/ruby_lib/blob/95118d4e0a6ec285e55862ea6b6fed528711ad84/lib/appium_lib/device/touch_actions.rb#L187)
|
|
1577
1577
|
|
|
1578
1578
|
> def perform(driver = $driver)
|
|
1579
1579
|
|
|
@@ -1581,7 +1581,7 @@ Ask the driver to perform all actions in this action chain.
|
|
|
1581
1581
|
|
|
1582
1582
|
--
|
|
1583
1583
|
|
|
1584
|
-
##### [cancel](https://github.com/appium/ruby_lib/blob/
|
|
1584
|
+
##### [cancel](https://github.com/appium/ruby_lib/blob/95118d4e0a6ec285e55862ea6b6fed528711ad84/lib/appium_lib/device/touch_actions.rb#L194)
|
|
1585
1585
|
|
|
1586
1586
|
> def cancel(driver = $driver)
|
|
1587
1587
|
|
|
@@ -1589,7 +1589,7 @@ Does nothing, currently.
|
|
|
1589
1589
|
|
|
1590
1590
|
--
|
|
1591
1591
|
|
|
1592
|
-
##### [swipe_coordinates](https://github.com/appium/ruby_lib/blob/
|
|
1592
|
+
##### [swipe_coordinates](https://github.com/appium/ruby_lib/blob/95118d4e0a6ec285e55862ea6b6fed528711ad84/lib/appium_lib/device/touch_actions.rb#L201)
|
|
1593
1593
|
|
|
1594
1594
|
> def swipe_coordinates(end_x: nil, end_y: nil, offset_x: nil, offset_y: nil, driver: $driver)
|
|
1595
1595
|
|
|
@@ -1597,7 +1597,7 @@ Visible for testing
|
|
|
1597
1597
|
|
|
1598
1598
|
--
|
|
1599
1599
|
|
|
1600
|
-
##### [chain_method](https://github.com/appium/ruby_lib/blob/
|
|
1600
|
+
##### [chain_method](https://github.com/appium/ruby_lib/blob/95118d4e0a6ec285e55862ea6b6fed528711ad84/lib/appium_lib/device/touch_actions.rb#L219)
|
|
1601
1601
|
|
|
1602
1602
|
> def chain_method(method, args = nil)
|
|
1603
1603
|
|
|
@@ -1605,7 +1605,7 @@ Visible for testing
|
|
|
1605
1605
|
|
|
1606
1606
|
--
|
|
1607
1607
|
|
|
1608
|
-
##### [args_with_ele_ref](https://github.com/appium/ruby_lib/blob/
|
|
1608
|
+
##### [args_with_ele_ref](https://github.com/appium/ruby_lib/blob/95118d4e0a6ec285e55862ea6b6fed528711ad84/lib/appium_lib/device/touch_actions.rb#L225)
|
|
1609
1609
|
|
|
1610
1610
|
> def args_with_ele_ref(args)
|
|
1611
1611
|
|
|
@@ -1613,7 +1613,7 @@ Visible for testing
|
|
|
1613
1613
|
|
|
1614
1614
|
--
|
|
1615
1615
|
|
|
1616
|
-
##### [initialize](https://github.com/appium/ruby_lib/blob/
|
|
1616
|
+
##### [initialize](https://github.com/appium/ruby_lib/blob/95118d4e0a6ec285e55862ea6b6fed528711ad84/lib/appium_lib/common/wait.rb#L4)
|
|
1617
1617
|
|
|
1618
1618
|
> def initialize(opts = {})
|
|
1619
1619
|
|
|
@@ -1625,7 +1625,7 @@ __Returns:__
|
|
|
1625
1625
|
|
|
1626
1626
|
--
|
|
1627
1627
|
|
|
1628
|
-
##### [until](https://github.com/appium/ruby_lib/blob/
|
|
1628
|
+
##### [until](https://github.com/appium/ruby_lib/blob/95118d4e0a6ec285e55862ea6b6fed528711ad84/lib/appium_lib/common/wait.rb#L23)
|
|
1629
1629
|
|
|
1630
1630
|
> def until
|
|
1631
1631
|
|
|
@@ -1634,7 +1634,7 @@ https://github.com/SeleniumHQ/selenium/blob/cf501dda3f0ed12233de51ce8170c0e8090f
|
|
|
1634
1634
|
|
|
1635
1635
|
--
|
|
1636
1636
|
|
|
1637
|
-
##### [wait_true](https://github.com/appium/ruby_lib/blob/
|
|
1637
|
+
##### [wait_true](https://github.com/appium/ruby_lib/blob/95118d4e0a6ec285e55862ea6b6fed528711ad84/lib/appium_lib/common/wait.rb#L73)
|
|
1638
1638
|
|
|
1639
1639
|
> def wait_true(opts = {})
|
|
1640
1640
|
|
|
@@ -1654,7 +1654,7 @@ __Parameters:__
|
|
|
1654
1654
|
|
|
1655
1655
|
--
|
|
1656
1656
|
|
|
1657
|
-
##### [wait](https://github.com/appium/ruby_lib/blob/
|
|
1657
|
+
##### [wait](https://github.com/appium/ruby_lib/blob/95118d4e0a6ec285e55862ea6b6fed528711ad84/lib/appium_lib/common/wait.rb#L96)
|
|
1658
1658
|
|
|
1659
1659
|
> def wait(opts = {})
|
|
1660
1660
|
|
|
@@ -1672,7 +1672,7 @@ __Parameters:__
|
|
|
1672
1672
|
|
|
1673
1673
|
--
|
|
1674
1674
|
|
|
1675
|
-
##### [ignore](https://github.com/appium/ruby_lib/blob/
|
|
1675
|
+
##### [ignore](https://github.com/appium/ruby_lib/blob/95118d4e0a6ec285e55862ea6b6fed528711ad84/lib/appium_lib/common/helper.rb#L24)
|
|
1676
1676
|
|
|
1677
1677
|
> def ignore
|
|
1678
1678
|
|
|
@@ -1680,7 +1680,7 @@ Return yield and ignore any exceptions.
|
|
|
1680
1680
|
|
|
1681
1681
|
--
|
|
1682
1682
|
|
|
1683
|
-
##### [back](https://github.com/appium/ruby_lib/blob/
|
|
1683
|
+
##### [back](https://github.com/appium/ruby_lib/blob/95118d4e0a6ec285e55862ea6b6fed528711ad84/lib/appium_lib/common/helper.rb#L31)
|
|
1684
1684
|
|
|
1685
1685
|
> def back
|
|
1686
1686
|
|
|
@@ -1692,7 +1692,7 @@ __Returns:__
|
|
|
1692
1692
|
|
|
1693
1693
|
--
|
|
1694
1694
|
|
|
1695
|
-
##### [session_id](https://github.com/appium/ruby_lib/blob/
|
|
1695
|
+
##### [session_id](https://github.com/appium/ruby_lib/blob/95118d4e0a6ec285e55862ea6b6fed528711ad84/lib/appium_lib/common/helper.rb#L36)
|
|
1696
1696
|
|
|
1697
1697
|
> def session_id
|
|
1698
1698
|
|
|
@@ -1700,7 +1700,7 @@ For Sauce Labs reporting. Returns the current session id.
|
|
|
1700
1700
|
|
|
1701
1701
|
--
|
|
1702
1702
|
|
|
1703
|
-
##### [xpath](https://github.com/appium/ruby_lib/blob/
|
|
1703
|
+
##### [xpath](https://github.com/appium/ruby_lib/blob/95118d4e0a6ec285e55862ea6b6fed528711ad84/lib/appium_lib/common/helper.rb#L44)
|
|
1704
1704
|
|
|
1705
1705
|
> def xpath(xpath_str)
|
|
1706
1706
|
|
|
@@ -1716,7 +1716,7 @@ __Returns:__
|
|
|
1716
1716
|
|
|
1717
1717
|
--
|
|
1718
1718
|
|
|
1719
|
-
##### [xpaths](https://github.com/appium/ruby_lib/blob/
|
|
1719
|
+
##### [xpaths](https://github.com/appium/ruby_lib/blob/95118d4e0a6ec285e55862ea6b6fed528711ad84/lib/appium_lib/common/helper.rb#L52)
|
|
1720
1720
|
|
|
1721
1721
|
> def xpaths(xpath_str)
|
|
1722
1722
|
|
|
@@ -1732,7 +1732,7 @@ __Returns:__
|
|
|
1732
1732
|
|
|
1733
1733
|
--
|
|
1734
1734
|
|
|
1735
|
-
##### [_print_source](https://github.com/appium/ruby_lib/blob/
|
|
1735
|
+
##### [_print_source](https://github.com/appium/ruby_lib/blob/95118d4e0a6ec285e55862ea6b6fed528711ad84/lib/appium_lib/common/helper.rb#L56)
|
|
1736
1736
|
|
|
1737
1737
|
> def _print_source(source)
|
|
1738
1738
|
|
|
@@ -1740,7 +1740,7 @@ __Returns:__
|
|
|
1740
1740
|
|
|
1741
1741
|
--
|
|
1742
1742
|
|
|
1743
|
-
##### [result](https://github.com/appium/ruby_lib/blob/
|
|
1743
|
+
##### [result](https://github.com/appium/ruby_lib/blob/95118d4e0a6ec285e55862ea6b6fed528711ad84/lib/appium_lib/common/helper.rb#L69)
|
|
1744
1744
|
|
|
1745
1745
|
> def result
|
|
1746
1746
|
|
|
@@ -1748,7 +1748,7 @@ Returns the value of attribute result
|
|
|
1748
1748
|
|
|
1749
1749
|
--
|
|
1750
1750
|
|
|
1751
|
-
##### [initialize](https://github.com/appium/ruby_lib/blob/
|
|
1751
|
+
##### [initialize](https://github.com/appium/ruby_lib/blob/95118d4e0a6ec285e55862ea6b6fed528711ad84/lib/appium_lib/common/helper.rb#L71)
|
|
1752
1752
|
|
|
1753
1753
|
> def initialize
|
|
1754
1754
|
|
|
@@ -1760,7 +1760,7 @@ __Returns:__
|
|
|
1760
1760
|
|
|
1761
1761
|
--
|
|
1762
1762
|
|
|
1763
|
-
##### [reset](https://github.com/appium/ruby_lib/blob/
|
|
1763
|
+
##### [reset](https://github.com/appium/ruby_lib/blob/95118d4e0a6ec285e55862ea6b6fed528711ad84/lib/appium_lib/common/helper.rb#L75)
|
|
1764
1764
|
|
|
1765
1765
|
> def reset
|
|
1766
1766
|
|
|
@@ -1768,7 +1768,7 @@ __Returns:__
|
|
|
1768
1768
|
|
|
1769
1769
|
--
|
|
1770
1770
|
|
|
1771
|
-
##### [start_element](https://github.com/appium/ruby_lib/blob/
|
|
1771
|
+
##### [start_element](https://github.com/appium/ruby_lib/blob/95118d4e0a6ec285e55862ea6b6fed528711ad84/lib/appium_lib/common/helper.rb#L80)
|
|
1772
1772
|
|
|
1773
1773
|
> def start_element(name, attrs = [], driver = $driver)
|
|
1774
1774
|
|
|
@@ -1776,7 +1776,7 @@ http://nokogiri.org/Nokogiri/XML/SAX/Document.html
|
|
|
1776
1776
|
|
|
1777
1777
|
--
|
|
1778
1778
|
|
|
1779
|
-
##### [formatted_result](https://github.com/appium/ruby_lib/blob/
|
|
1779
|
+
##### [formatted_result](https://github.com/appium/ruby_lib/blob/95118d4e0a6ec285e55862ea6b6fed528711ad84/lib/appium_lib/common/helper.rb#L86)
|
|
1780
1780
|
|
|
1781
1781
|
> def formatted_result
|
|
1782
1782
|
|
|
@@ -1784,7 +1784,7 @@ http://nokogiri.org/Nokogiri/XML/SAX/Document.html
|
|
|
1784
1784
|
|
|
1785
1785
|
--
|
|
1786
1786
|
|
|
1787
|
-
##### [get_page_class](https://github.com/appium/ruby_lib/blob/
|
|
1787
|
+
##### [get_page_class](https://github.com/appium/ruby_lib/blob/95118d4e0a6ec285e55862ea6b6fed528711ad84/lib/appium_lib/common/helper.rb#L97)
|
|
1788
1788
|
|
|
1789
1789
|
> def get_page_class
|
|
1790
1790
|
|
|
@@ -1792,7 +1792,7 @@ Returns a string of class counts of visible elements.
|
|
|
1792
1792
|
|
|
1793
1793
|
--
|
|
1794
1794
|
|
|
1795
|
-
##### [page_class](https://github.com/appium/ruby_lib/blob/
|
|
1795
|
+
##### [page_class](https://github.com/appium/ruby_lib/blob/95118d4e0a6ec285e55862ea6b6fed528711ad84/lib/appium_lib/common/helper.rb#L108)
|
|
1796
1796
|
|
|
1797
1797
|
> def page_class
|
|
1798
1798
|
|
|
@@ -1801,7 +1801,7 @@ Useful for appium_console.
|
|
|
1801
1801
|
|
|
1802
1802
|
--
|
|
1803
1803
|
|
|
1804
|
-
##### [px_to_window_rel](https://github.com/appium/ruby_lib/blob/
|
|
1804
|
+
##### [px_to_window_rel](https://github.com/appium/ruby_lib/blob/95118d4e0a6ec285e55862ea6b6fed528711ad84/lib/appium_lib/common/helper.rb#L118)
|
|
1805
1805
|
|
|
1806
1806
|
> def px_to_window_rel(opts = {}, driver = $driver)
|
|
1807
1807
|
|
|
@@ -1813,7 +1813,7 @@ px_to_window_rel x: 50, y: 150
|
|
|
1813
1813
|
|
|
1814
1814
|
--
|
|
1815
1815
|
|
|
1816
|
-
##### [xml_keys](https://github.com/appium/ruby_lib/blob/
|
|
1816
|
+
##### [xml_keys](https://github.com/appium/ruby_lib/blob/95118d4e0a6ec285e55862ea6b6fed528711ad84/lib/appium_lib/common/helper.rb#L137)
|
|
1817
1817
|
|
|
1818
1818
|
> def xml_keys(target)
|
|
1819
1819
|
|
|
@@ -1829,7 +1829,7 @@ __Returns:__
|
|
|
1829
1829
|
|
|
1830
1830
|
--
|
|
1831
1831
|
|
|
1832
|
-
##### [xml_values](https://github.com/appium/ruby_lib/blob/
|
|
1832
|
+
##### [xml_values](https://github.com/appium/ruby_lib/blob/95118d4e0a6ec285e55862ea6b6fed528711ad84/lib/appium_lib/common/helper.rb#L145)
|
|
1833
1833
|
|
|
1834
1834
|
> def xml_values(target)
|
|
1835
1835
|
|
|
@@ -1845,7 +1845,7 @@ __Returns:__
|
|
|
1845
1845
|
|
|
1846
1846
|
--
|
|
1847
1847
|
|
|
1848
|
-
##### [resolve_id](https://github.com/appium/ruby_lib/blob/
|
|
1848
|
+
##### [resolve_id](https://github.com/appium/ruby_lib/blob/95118d4e0a6ec285e55862ea6b6fed528711ad84/lib/appium_lib/common/helper.rb#L153)
|
|
1849
1849
|
|
|
1850
1850
|
> def resolve_id(id)
|
|
1851
1851
|
|
|
@@ -1861,7 +1861,7 @@ __Returns:__
|
|
|
1861
1861
|
|
|
1862
1862
|
--
|
|
1863
1863
|
|
|
1864
|
-
##### [filter](https://github.com/appium/ruby_lib/blob/
|
|
1864
|
+
##### [filter](https://github.com/appium/ruby_lib/blob/95118d4e0a6ec285e55862ea6b6fed528711ad84/lib/appium_lib/common/helper.rb#L159)
|
|
1865
1865
|
|
|
1866
1866
|
> def filter
|
|
1867
1867
|
|
|
@@ -1869,7 +1869,7 @@ Returns the value of attribute filter
|
|
|
1869
1869
|
|
|
1870
1870
|
--
|
|
1871
1871
|
|
|
1872
|
-
##### [filter=](https://github.com/appium/ruby_lib/blob/
|
|
1872
|
+
##### [filter=](https://github.com/appium/ruby_lib/blob/95118d4e0a6ec285e55862ea6b6fed528711ad84/lib/appium_lib/common/helper.rb#L162)
|
|
1873
1873
|
|
|
1874
1874
|
> def filter=(value)
|
|
1875
1875
|
|
|
@@ -1877,7 +1877,7 @@ convert to string to support symbols
|
|
|
1877
1877
|
|
|
1878
1878
|
--
|
|
1879
1879
|
|
|
1880
|
-
##### [initialize](https://github.com/appium/ruby_lib/blob/
|
|
1880
|
+
##### [initialize](https://github.com/appium/ruby_lib/blob/95118d4e0a6ec285e55862ea6b6fed528711ad84/lib/appium_lib/common/helper.rb#L168)
|
|
1881
1881
|
|
|
1882
1882
|
> def initialize
|
|
1883
1883
|
|
|
@@ -1889,7 +1889,7 @@ __Returns:__
|
|
|
1889
1889
|
|
|
1890
1890
|
--
|
|
1891
1891
|
|
|
1892
|
-
##### [reset](https://github.com/appium/ruby_lib/blob/
|
|
1892
|
+
##### [reset](https://github.com/appium/ruby_lib/blob/95118d4e0a6ec285e55862ea6b6fed528711ad84/lib/appium_lib/common/helper.rb#L173)
|
|
1893
1893
|
|
|
1894
1894
|
> def reset
|
|
1895
1895
|
|
|
@@ -1897,7 +1897,7 @@ __Returns:__
|
|
|
1897
1897
|
|
|
1898
1898
|
--
|
|
1899
1899
|
|
|
1900
|
-
##### [result](https://github.com/appium/ruby_lib/blob/
|
|
1900
|
+
##### [result](https://github.com/appium/ruby_lib/blob/95118d4e0a6ec285e55862ea6b6fed528711ad84/lib/appium_lib/common/helper.rb#L179)
|
|
1901
1901
|
|
|
1902
1902
|
> def result
|
|
1903
1903
|
|
|
@@ -1905,7 +1905,7 @@ __Returns:__
|
|
|
1905
1905
|
|
|
1906
1906
|
--
|
|
1907
1907
|
|
|
1908
|
-
##### [start_element](https://github.com/appium/ruby_lib/blob/
|
|
1908
|
+
##### [start_element](https://github.com/appium/ruby_lib/blob/95118d4e0a6ec285e55862ea6b6fed528711ad84/lib/appium_lib/common/helper.rb#L195)
|
|
1909
1909
|
|
|
1910
1910
|
> def start_element(name, attrs = [])
|
|
1911
1911
|
|
|
@@ -1913,7 +1913,7 @@ __Returns:__
|
|
|
1913
1913
|
|
|
1914
1914
|
--
|
|
1915
1915
|
|
|
1916
|
-
##### [end_element](https://github.com/appium/ruby_lib/blob/
|
|
1916
|
+
##### [end_element](https://github.com/appium/ruby_lib/blob/95118d4e0a6ec285e55862ea6b6fed528711ad84/lib/appium_lib/common/helper.rb#L204)
|
|
1917
1917
|
|
|
1918
1918
|
> def end_element(name)
|
|
1919
1919
|
|
|
@@ -1921,7 +1921,7 @@ __Returns:__
|
|
|
1921
1921
|
|
|
1922
1922
|
--
|
|
1923
1923
|
|
|
1924
|
-
##### [characters](https://github.com/appium/ruby_lib/blob/
|
|
1924
|
+
##### [characters](https://github.com/appium/ruby_lib/blob/95118d4e0a6ec285e55862ea6b6fed528711ad84/lib/appium_lib/common/helper.rb#L210)
|
|
1925
1925
|
|
|
1926
1926
|
> def characters(chars)
|
|
1927
1927
|
|
|
@@ -1929,7 +1929,7 @@ __Returns:__
|
|
|
1929
1929
|
|
|
1930
1930
|
--
|
|
1931
1931
|
|
|
1932
|
-
##### [COMMAND_NO_ARG](https://github.com/appium/ruby_lib/blob/
|
|
1932
|
+
##### [COMMAND_NO_ARG](https://github.com/appium/ruby_lib/blob/95118d4e0a6ec285e55862ea6b6fed528711ad84/lib/appium_lib/common/command.rb#L4)
|
|
1933
1933
|
|
|
1934
1934
|
> COMMAND_NO_ARG = {
|
|
1935
1935
|
|
|
@@ -1937,7 +1937,7 @@ __Returns:__
|
|
|
1937
1937
|
|
|
1938
1938
|
--
|
|
1939
1939
|
|
|
1940
|
-
##### [COMMAND](https://github.com/appium/ruby_lib/blob/
|
|
1940
|
+
##### [COMMAND](https://github.com/appium/ruby_lib/blob/95118d4e0a6ec285e55862ea6b6fed528711ad84/lib/appium_lib/common/command.rb#L28)
|
|
1941
1941
|
|
|
1942
1942
|
> COMMAND = {
|
|
1943
1943
|
|
|
@@ -1945,7 +1945,7 @@ __Returns:__
|
|
|
1945
1945
|
|
|
1946
1946
|
--
|
|
1947
1947
|
|
|
1948
|
-
##### [COMMANDS_EXTEND_OSS](https://github.com/appium/ruby_lib/blob/
|
|
1948
|
+
##### [COMMANDS_EXTEND_OSS](https://github.com/appium/ruby_lib/blob/95118d4e0a6ec285e55862ea6b6fed528711ad84/lib/appium_lib/common/command.rb#L66)
|
|
1949
1949
|
|
|
1950
1950
|
> COMMANDS_EXTEND_OSS = COMMAND.merge(::Selenium::WebDriver::Remote::OSS::Bridge::COMMANDS).freeze
|
|
1951
1951
|
|
|
@@ -1953,7 +1953,7 @@ __Returns:__
|
|
|
1953
1953
|
|
|
1954
1954
|
--
|
|
1955
1955
|
|
|
1956
|
-
##### [COMMANDS_EXTEND_W3C](https://github.com/appium/ruby_lib/blob/
|
|
1956
|
+
##### [COMMANDS_EXTEND_W3C](https://github.com/appium/ruby_lib/blob/95118d4e0a6ec285e55862ea6b6fed528711ad84/lib/appium_lib/common/command.rb#L67)
|
|
1957
1957
|
|
|
1958
1958
|
> COMMANDS_EXTEND_W3C = COMMAND.merge(::Selenium::WebDriver::Remote::W3C::Bridge::COMMANDS).freeze
|
|
1959
1959
|
|
|
@@ -1961,7 +1961,7 @@ __Returns:__
|
|
|
1961
1961
|
|
|
1962
1962
|
--
|
|
1963
1963
|
|
|
1964
|
-
##### [window_size](https://github.com/appium/ruby_lib/blob/
|
|
1964
|
+
##### [window_size](https://github.com/appium/ruby_lib/blob/95118d4e0a6ec285e55862ea6b6fed528711ad84/lib/appium_lib/common/element/window.rb#L5)
|
|
1965
1965
|
|
|
1966
1966
|
> def window_size
|
|
1967
1967
|
|
|
@@ -1969,7 +1969,7 @@ Get the window's size
|
|
|
1969
1969
|
|
|
1970
1970
|
--
|
|
1971
1971
|
|
|
1972
|
-
##### [FINDERS](https://github.com/appium/ruby_lib/blob/
|
|
1972
|
+
##### [FINDERS](https://github.com/appium/ruby_lib/blob/95118d4e0a6ec285e55862ea6b6fed528711ad84/lib/appium_lib/common/search_context.rb#L5)
|
|
1973
1973
|
|
|
1974
1974
|
> FINDERS = {
|
|
1975
1975
|
|
|
@@ -1977,7 +1977,7 @@ rubocop:disable Style/MutableConstant
|
|
|
1977
1977
|
|
|
1978
1978
|
--
|
|
1979
1979
|
|
|
1980
|
-
##### [result](https://github.com/appium/ruby_lib/blob/
|
|
1980
|
+
##### [result](https://github.com/appium/ruby_lib/blob/95118d4e0a6ec285e55862ea6b6fed528711ad84/lib/appium_lib/android/helper.rb#L6) android
|
|
1981
1981
|
|
|
1982
1982
|
> def result
|
|
1983
1983
|
|
|
@@ -1985,7 +1985,7 @@ Returns the value of attribute result
|
|
|
1985
1985
|
|
|
1986
1986
|
--
|
|
1987
1987
|
|
|
1988
|
-
##### [keys](https://github.com/appium/ruby_lib/blob/
|
|
1988
|
+
##### [keys](https://github.com/appium/ruby_lib/blob/95118d4e0a6ec285e55862ea6b6fed528711ad84/lib/appium_lib/android/helper.rb#L6) android
|
|
1989
1989
|
|
|
1990
1990
|
> def keys
|
|
1991
1991
|
|
|
@@ -1993,7 +1993,7 @@ Returns the value of attribute keys
|
|
|
1993
1993
|
|
|
1994
1994
|
--
|
|
1995
1995
|
|
|
1996
|
-
##### [filter](https://github.com/appium/ruby_lib/blob/
|
|
1996
|
+
##### [filter](https://github.com/appium/ruby_lib/blob/95118d4e0a6ec285e55862ea6b6fed528711ad84/lib/appium_lib/android/helper.rb#L6) android
|
|
1997
1997
|
|
|
1998
1998
|
> def filter
|
|
1999
1999
|
|
|
@@ -2001,7 +2001,7 @@ Returns the value of attribute filter
|
|
|
2001
2001
|
|
|
2002
2002
|
--
|
|
2003
2003
|
|
|
2004
|
-
##### [filter=](https://github.com/appium/ruby_lib/blob/
|
|
2004
|
+
##### [filter=](https://github.com/appium/ruby_lib/blob/95118d4e0a6ec285e55862ea6b6fed528711ad84/lib/appium_lib/android/helper.rb#L9) android
|
|
2005
2005
|
|
|
2006
2006
|
> def filter=(value)
|
|
2007
2007
|
|
|
@@ -2009,7 +2009,7 @@ convert to string to support symbols
|
|
|
2009
2009
|
|
|
2010
2010
|
--
|
|
2011
2011
|
|
|
2012
|
-
##### [initialize](https://github.com/appium/ruby_lib/blob/
|
|
2012
|
+
##### [initialize](https://github.com/appium/ruby_lib/blob/95118d4e0a6ec285e55862ea6b6fed528711ad84/lib/appium_lib/android/helper.rb#L15) android
|
|
2013
2013
|
|
|
2014
2014
|
> def initialize
|
|
2015
2015
|
|
|
@@ -2021,7 +2021,7 @@ __Returns:__
|
|
|
2021
2021
|
|
|
2022
2022
|
--
|
|
2023
2023
|
|
|
2024
|
-
##### [reset](https://github.com/appium/ruby_lib/blob/
|
|
2024
|
+
##### [reset](https://github.com/appium/ruby_lib/blob/95118d4e0a6ec285e55862ea6b6fed528711ad84/lib/appium_lib/android/helper.rb#L20) android
|
|
2025
2025
|
|
|
2026
2026
|
> def reset
|
|
2027
2027
|
|
|
@@ -2029,7 +2029,7 @@ __Returns:__
|
|
|
2029
2029
|
|
|
2030
2030
|
--
|
|
2031
2031
|
|
|
2032
|
-
##### [start_element](https://github.com/appium/ruby_lib/blob/
|
|
2032
|
+
##### [start_element](https://github.com/appium/ruby_lib/blob/95118d4e0a6ec285e55862ea6b6fed528711ad84/lib/appium_lib/android/helper.rb#L26) android
|
|
2033
2033
|
|
|
2034
2034
|
> def start_element(name, attrs = [], driver = $driver)
|
|
2035
2035
|
|
|
@@ -2037,7 +2037,7 @@ http://nokogiri.org/Nokogiri/XML/SAX/Document.html
|
|
|
2037
2037
|
|
|
2038
2038
|
--
|
|
2039
2039
|
|
|
2040
|
-
##### [source](https://github.com/appium/ruby_lib/blob/
|
|
2040
|
+
##### [source](https://github.com/appium/ruby_lib/blob/95118d4e0a6ec285e55862ea6b6fed528711ad84/lib/appium_lib/android/helper.rb#L76) android
|
|
2041
2041
|
|
|
2042
2042
|
> def source
|
|
2043
2043
|
|
|
@@ -2049,7 +2049,7 @@ __Returns:__
|
|
|
2049
2049
|
|
|
2050
2050
|
--
|
|
2051
2051
|
|
|
2052
|
-
##### [get_android_inspect](https://github.com/appium/ruby_lib/blob/
|
|
2052
|
+
##### [get_android_inspect](https://github.com/appium/ruby_lib/blob/95118d4e0a6ec285e55862ea6b6fed528711ad84/lib/appium_lib/android/helper.rb#L86) android
|
|
2053
2053
|
|
|
2054
2054
|
> def get_android_inspect(class_name = false)
|
|
2055
2055
|
|
|
@@ -2068,7 +2068,7 @@ __Returns:__
|
|
|
2068
2068
|
|
|
2069
2069
|
--
|
|
2070
2070
|
|
|
2071
|
-
##### [page](https://github.com/appium/ruby_lib/blob/
|
|
2071
|
+
##### [page](https://github.com/appium/ruby_lib/blob/95118d4e0a6ec285e55862ea6b6fed528711ad84/lib/appium_lib/android/helper.rb#L112) android
|
|
2072
2072
|
|
|
2073
2073
|
> def page(opts = {})
|
|
2074
2074
|
|
|
@@ -2087,7 +2087,7 @@ __Returns:__
|
|
|
2087
2087
|
|
|
2088
2088
|
--
|
|
2089
2089
|
|
|
2090
|
-
##### [current_app](https://github.com/appium/ruby_lib/blob/
|
|
2090
|
+
##### [current_app](https://github.com/appium/ruby_lib/blob/95118d4e0a6ec285e55862ea6b6fed528711ad84/lib/appium_lib/android/helper.rb#L124) android
|
|
2091
2091
|
|
|
2092
2092
|
> def current_app
|
|
2093
2093
|
|
|
@@ -2097,7 +2097,7 @@ example line:
|
|
|
2097
2097
|
|
|
2098
2098
|
--
|
|
2099
2099
|
|
|
2100
|
-
##### [id](https://github.com/appium/ruby_lib/blob/
|
|
2100
|
+
##### [id](https://github.com/appium/ruby_lib/blob/95118d4e0a6ec285e55862ea6b6fed528711ad84/lib/appium_lib/android/helper.rb#L148) android
|
|
2101
2101
|
|
|
2102
2102
|
> def id(id)
|
|
2103
2103
|
|
|
@@ -2113,7 +2113,7 @@ __Returns:__
|
|
|
2113
2113
|
|
|
2114
2114
|
--
|
|
2115
2115
|
|
|
2116
|
-
##### [ids](https://github.com/appium/ruby_lib/blob/
|
|
2116
|
+
##### [ids](https://github.com/appium/ruby_lib/blob/95118d4e0a6ec285e55862ea6b6fed528711ad84/lib/appium_lib/android/helper.rb#L156) android
|
|
2117
2117
|
|
|
2118
2118
|
> def ids(id)
|
|
2119
2119
|
|
|
@@ -2129,7 +2129,7 @@ __Returns:__
|
|
|
2129
2129
|
|
|
2130
2130
|
--
|
|
2131
2131
|
|
|
2132
|
-
##### [ele_index](https://github.com/appium/ruby_lib/blob/
|
|
2132
|
+
##### [ele_index](https://github.com/appium/ruby_lib/blob/95118d4e0a6ec285e55862ea6b6fed528711ad84/lib/appium_lib/android/helper.rb#L165) android
|
|
2133
2133
|
|
|
2134
2134
|
> def ele_index(class_name, index)
|
|
2135
2135
|
|
|
@@ -2147,7 +2147,7 @@ __Returns:__
|
|
|
2147
2147
|
|
|
2148
2148
|
--
|
|
2149
2149
|
|
|
2150
|
-
##### [first_ele](https://github.com/appium/ruby_lib/blob/
|
|
2150
|
+
##### [first_ele](https://github.com/appium/ruby_lib/blob/95118d4e0a6ec285e55862ea6b6fed528711ad84/lib/appium_lib/android/helper.rb#L183) android
|
|
2151
2151
|
|
|
2152
2152
|
> def first_ele(class_name)
|
|
2153
2153
|
|
|
@@ -2163,7 +2163,7 @@ __Returns:__
|
|
|
2163
2163
|
|
|
2164
2164
|
--
|
|
2165
2165
|
|
|
2166
|
-
##### [last_ele](https://github.com/appium/ruby_lib/blob/
|
|
2166
|
+
##### [last_ele](https://github.com/appium/ruby_lib/blob/95118d4e0a6ec285e55862ea6b6fed528711ad84/lib/appium_lib/android/helper.rb#L190) android
|
|
2167
2167
|
|
|
2168
2168
|
> def last_ele(class_name)
|
|
2169
2169
|
|
|
@@ -2179,7 +2179,7 @@ __Returns:__
|
|
|
2179
2179
|
|
|
2180
2180
|
--
|
|
2181
2181
|
|
|
2182
|
-
##### [tag](https://github.com/appium/ruby_lib/blob/
|
|
2182
|
+
##### [tag](https://github.com/appium/ruby_lib/blob/95118d4e0a6ec285e55862ea6b6fed528711ad84/lib/appium_lib/android/helper.rb#L198) android
|
|
2183
2183
|
|
|
2184
2184
|
> def tag(class_name)
|
|
2185
2185
|
|
|
@@ -2195,7 +2195,7 @@ __Returns:__
|
|
|
2195
2195
|
|
|
2196
2196
|
--
|
|
2197
2197
|
|
|
2198
|
-
##### [tags](https://github.com/appium/ruby_lib/blob/
|
|
2198
|
+
##### [tags](https://github.com/appium/ruby_lib/blob/95118d4e0a6ec285e55862ea6b6fed528711ad84/lib/appium_lib/android/helper.rb#L206) android
|
|
2199
2199
|
|
|
2200
2200
|
> def tags(class_name)
|
|
2201
2201
|
|
|
@@ -2211,7 +2211,7 @@ __Returns:__
|
|
|
2211
2211
|
|
|
2212
2212
|
--
|
|
2213
2213
|
|
|
2214
|
-
##### [string_visible_contains_xpath](https://github.com/appium/ruby_lib/blob/
|
|
2214
|
+
##### [string_visible_contains_xpath](https://github.com/appium/ruby_lib/blob/95118d4e0a6ec285e55862ea6b6fed528711ad84/lib/appium_lib/android/helper.rb#L249) android
|
|
2215
2215
|
|
|
2216
2216
|
> def string_visible_contains_xpath(class_name, value)
|
|
2217
2217
|
|
|
@@ -2232,7 +2232,7 @@ __Returns:__
|
|
|
2232
2232
|
|
|
2233
2233
|
--
|
|
2234
2234
|
|
|
2235
|
-
##### [string_visible_contains](https://github.com/appium/ruby_lib/blob/
|
|
2235
|
+
##### [string_visible_contains](https://github.com/appium/ruby_lib/blob/95118d4e0a6ec285e55862ea6b6fed528711ad84/lib/appium_lib/android/helper.rb#L269) android
|
|
2236
2236
|
|
|
2237
2237
|
> def string_visible_contains(class_name, value)
|
|
2238
2238
|
|
|
@@ -2253,7 +2253,7 @@ __Returns:__
|
|
|
2253
2253
|
|
|
2254
2254
|
--
|
|
2255
2255
|
|
|
2256
|
-
##### [complex_find_contains](https://github.com/appium/ruby_lib/blob/
|
|
2256
|
+
##### [complex_find_contains](https://github.com/appium/ruby_lib/blob/95118d4e0a6ec285e55862ea6b6fed528711ad84/lib/appium_lib/android/helper.rb#L287) android
|
|
2257
2257
|
|
|
2258
2258
|
> def complex_find_contains(class_name, value)
|
|
2259
2259
|
|
|
@@ -2271,7 +2271,7 @@ __Returns:__
|
|
|
2271
2271
|
|
|
2272
2272
|
--
|
|
2273
2273
|
|
|
2274
|
-
##### [complex_finds_contains](https://github.com/appium/ruby_lib/blob/
|
|
2274
|
+
##### [complex_finds_contains](https://github.com/appium/ruby_lib/blob/95118d4e0a6ec285e55862ea6b6fed528711ad84/lib/appium_lib/android/helper.rb#L295) android
|
|
2275
2275
|
|
|
2276
2276
|
> def complex_finds_contains(class_name, value)
|
|
2277
2277
|
|
|
@@ -2289,7 +2289,7 @@ __Returns:__
|
|
|
2289
2289
|
|
|
2290
2290
|
--
|
|
2291
2291
|
|
|
2292
|
-
##### [complex_find_exact](https://github.com/appium/ruby_lib/blob/
|
|
2292
|
+
##### [complex_find_exact](https://github.com/appium/ruby_lib/blob/95118d4e0a6ec285e55862ea6b6fed528711ad84/lib/appium_lib/android/helper.rb#L339) android
|
|
2293
2293
|
|
|
2294
2294
|
> def complex_find_exact(class_name, value)
|
|
2295
2295
|
|
|
@@ -2307,7 +2307,7 @@ __Returns:__
|
|
|
2307
2307
|
|
|
2308
2308
|
--
|
|
2309
2309
|
|
|
2310
|
-
##### [complex_finds_exact](https://github.com/appium/ruby_lib/blob/
|
|
2310
|
+
##### [complex_finds_exact](https://github.com/appium/ruby_lib/blob/95118d4e0a6ec285e55862ea6b6fed528711ad84/lib/appium_lib/android/helper.rb#L347) android
|
|
2311
2311
|
|
|
2312
2312
|
> def complex_finds_exact(class_name, value)
|
|
2313
2313
|
|
|
@@ -2325,7 +2325,7 @@ __Returns:__
|
|
|
2325
2325
|
|
|
2326
2326
|
--
|
|
2327
2327
|
|
|
2328
|
-
##### [get_source](https://github.com/appium/ruby_lib/blob/
|
|
2328
|
+
##### [get_source](https://github.com/appium/ruby_lib/blob/95118d4e0a6ec285e55862ea6b6fed528711ad84/lib/appium_lib/android/helper.rb#L353) android
|
|
2329
2329
|
|
|
2330
2330
|
> def get_source
|
|
2331
2331
|
|
|
@@ -2337,7 +2337,7 @@ __Returns:__
|
|
|
2337
2337
|
|
|
2338
2338
|
--
|
|
2339
2339
|
|
|
2340
|
-
##### [_nodeset_to_uiselector](https://github.com/appium/ruby_lib/blob/
|
|
2340
|
+
##### [_nodeset_to_uiselector](https://github.com/appium/ruby_lib/blob/95118d4e0a6ec285e55862ea6b6fed528711ad84/lib/appium_lib/android/client_xpath.rb#L5) android
|
|
2341
2341
|
|
|
2342
2342
|
> def _nodeset_to_uiselector(opts = {})
|
|
2343
2343
|
|
|
@@ -2345,7 +2345,7 @@ __Returns:__
|
|
|
2345
2345
|
|
|
2346
2346
|
--
|
|
2347
2347
|
|
|
2348
|
-
##### [_client_xpath](https://github.com/appium/ruby_lib/blob/
|
|
2348
|
+
##### [_client_xpath](https://github.com/appium/ruby_lib/blob/95118d4e0a6ec285e55862ea6b6fed528711ad84/lib/appium_lib/android/client_xpath.rb#L20) android
|
|
2349
2349
|
|
|
2350
2350
|
> def _client_xpath(opts = {})
|
|
2351
2351
|
|
|
@@ -2353,7 +2353,7 @@ __Returns:__
|
|
|
2353
2353
|
|
|
2354
2354
|
--
|
|
2355
2355
|
|
|
2356
|
-
##### [client_xpath](https://github.com/appium/ruby_lib/blob/
|
|
2356
|
+
##### [client_xpath](https://github.com/appium/ruby_lib/blob/95118d4e0a6ec285e55862ea6b6fed528711ad84/lib/appium_lib/android/client_xpath.rb#L37) android
|
|
2357
2357
|
|
|
2358
2358
|
> def client_xpath(xpath)
|
|
2359
2359
|
|
|
@@ -2361,7 +2361,7 @@ __Returns:__
|
|
|
2361
2361
|
|
|
2362
2362
|
--
|
|
2363
2363
|
|
|
2364
|
-
##### [client_xpaths](https://github.com/appium/ruby_lib/blob/
|
|
2364
|
+
##### [client_xpaths](https://github.com/appium/ruby_lib/blob/95118d4e0a6ec285e55862ea6b6fed528711ad84/lib/appium_lib/android/client_xpath.rb#L43) android
|
|
2365
2365
|
|
|
2366
2366
|
> def client_xpaths(xpath)
|
|
2367
2367
|
|
|
@@ -2369,7 +2369,7 @@ __Returns:__
|
|
|
2369
2369
|
|
|
2370
2370
|
--
|
|
2371
2371
|
|
|
2372
|
-
##### [TextView](https://github.com/appium/ruby_lib/blob/
|
|
2372
|
+
##### [TextView](https://github.com/appium/ruby_lib/blob/95118d4e0a6ec285e55862ea6b6fed528711ad84/lib/appium_lib/android/element/text.rb#L4) android
|
|
2373
2373
|
|
|
2374
2374
|
> TextView = 'android.widget.TextView'.freeze
|
|
2375
2375
|
|
|
@@ -2377,7 +2377,7 @@ __Returns:__
|
|
|
2377
2377
|
|
|
2378
2378
|
--
|
|
2379
2379
|
|
|
2380
|
-
##### [text](https://github.com/appium/ruby_lib/blob/
|
|
2380
|
+
##### [text](https://github.com/appium/ruby_lib/blob/95118d4e0a6ec285e55862ea6b6fed528711ad84/lib/appium_lib/android/element/text.rb#L10) android
|
|
2381
2381
|
|
|
2382
2382
|
> def text(value)
|
|
2383
2383
|
|
|
@@ -2394,7 +2394,7 @@ __Returns:__
|
|
|
2394
2394
|
|
|
2395
2395
|
--
|
|
2396
2396
|
|
|
2397
|
-
##### [texts](https://github.com/appium/ruby_lib/blob/
|
|
2397
|
+
##### [texts](https://github.com/appium/ruby_lib/blob/95118d4e0a6ec285e55862ea6b6fed528711ad84/lib/appium_lib/android/element/text.rb#L19) android
|
|
2398
2398
|
|
|
2399
2399
|
> def texts(value = false)
|
|
2400
2400
|
|
|
@@ -2411,7 +2411,7 @@ __Returns:__
|
|
|
2411
2411
|
|
|
2412
2412
|
--
|
|
2413
2413
|
|
|
2414
|
-
##### [first_text](https://github.com/appium/ruby_lib/blob/
|
|
2414
|
+
##### [first_text](https://github.com/appium/ruby_lib/blob/95118d4e0a6ec285e55862ea6b6fed528711ad84/lib/appium_lib/android/element/text.rb#L26) android
|
|
2415
2415
|
|
|
2416
2416
|
> def first_text
|
|
2417
2417
|
|
|
@@ -2423,7 +2423,7 @@ __Returns:__
|
|
|
2423
2423
|
|
|
2424
2424
|
--
|
|
2425
2425
|
|
|
2426
|
-
##### [last_text](https://github.com/appium/ruby_lib/blob/
|
|
2426
|
+
##### [last_text](https://github.com/appium/ruby_lib/blob/95118d4e0a6ec285e55862ea6b6fed528711ad84/lib/appium_lib/android/element/text.rb#L32) android
|
|
2427
2427
|
|
|
2428
2428
|
> def last_text
|
|
2429
2429
|
|
|
@@ -2435,7 +2435,7 @@ __Returns:__
|
|
|
2435
2435
|
|
|
2436
2436
|
--
|
|
2437
2437
|
|
|
2438
|
-
##### [text_exact](https://github.com/appium/ruby_lib/blob/
|
|
2438
|
+
##### [text_exact](https://github.com/appium/ruby_lib/blob/95118d4e0a6ec285e55862ea6b6fed528711ad84/lib/appium_lib/android/element/text.rb#L39) android
|
|
2439
2439
|
|
|
2440
2440
|
> def text_exact(value)
|
|
2441
2441
|
|
|
@@ -2451,7 +2451,7 @@ __Returns:__
|
|
|
2451
2451
|
|
|
2452
2452
|
--
|
|
2453
2453
|
|
|
2454
|
-
##### [texts_exact](https://github.com/appium/ruby_lib/blob/
|
|
2454
|
+
##### [texts_exact](https://github.com/appium/ruby_lib/blob/95118d4e0a6ec285e55862ea6b6fed528711ad84/lib/appium_lib/android/element/text.rb#L46) android
|
|
2455
2455
|
|
|
2456
2456
|
> def texts_exact(value)
|
|
2457
2457
|
|
|
@@ -2467,7 +2467,7 @@ __Returns:__
|
|
|
2467
2467
|
|
|
2468
2468
|
--
|
|
2469
2469
|
|
|
2470
|
-
##### [alert_click](https://github.com/appium/ruby_lib/blob/
|
|
2470
|
+
##### [alert_click](https://github.com/appium/ruby_lib/blob/95118d4e0a6ec285e55862ea6b6fed528711ad84/lib/appium_lib/android/element/alert.rb#L6) android
|
|
2471
2471
|
|
|
2472
2472
|
> def alert_click(value)
|
|
2473
2473
|
|
|
@@ -2483,7 +2483,7 @@ __Returns:__
|
|
|
2483
2483
|
|
|
2484
2484
|
--
|
|
2485
2485
|
|
|
2486
|
-
##### [alert_accept](https://github.com/appium/ruby_lib/blob/
|
|
2486
|
+
##### [alert_accept](https://github.com/appium/ruby_lib/blob/95118d4e0a6ec285e55862ea6b6fed528711ad84/lib/appium_lib/android/element/alert.rb#L13) android
|
|
2487
2487
|
|
|
2488
2488
|
> def alert_accept
|
|
2489
2489
|
|
|
@@ -2496,7 +2496,7 @@ __Returns:__
|
|
|
2496
2496
|
|
|
2497
2497
|
--
|
|
2498
2498
|
|
|
2499
|
-
##### [alert_accept_text](https://github.com/appium/ruby_lib/blob/
|
|
2499
|
+
##### [alert_accept_text](https://github.com/appium/ruby_lib/blob/95118d4e0a6ec285e55862ea6b6fed528711ad84/lib/appium_lib/android/element/alert.rb#L20) android
|
|
2500
2500
|
|
|
2501
2501
|
> def alert_accept_text
|
|
2502
2502
|
|
|
@@ -2509,7 +2509,7 @@ __Returns:__
|
|
|
2509
2509
|
|
|
2510
2510
|
--
|
|
2511
2511
|
|
|
2512
|
-
##### [alert_dismiss](https://github.com/appium/ruby_lib/blob/
|
|
2512
|
+
##### [alert_dismiss](https://github.com/appium/ruby_lib/blob/95118d4e0a6ec285e55862ea6b6fed528711ad84/lib/appium_lib/android/element/alert.rb#L27) android
|
|
2513
2513
|
|
|
2514
2514
|
> def alert_dismiss
|
|
2515
2515
|
|
|
@@ -2522,7 +2522,7 @@ __Returns:__
|
|
|
2522
2522
|
|
|
2523
2523
|
--
|
|
2524
2524
|
|
|
2525
|
-
##### [alert_dismiss_text](https://github.com/appium/ruby_lib/blob/
|
|
2525
|
+
##### [alert_dismiss_text](https://github.com/appium/ruby_lib/blob/95118d4e0a6ec285e55862ea6b6fed528711ad84/lib/appium_lib/android/element/alert.rb#L34) android
|
|
2526
2526
|
|
|
2527
2527
|
> def alert_dismiss_text
|
|
2528
2528
|
|
|
@@ -2535,7 +2535,7 @@ __Returns:__
|
|
|
2535
2535
|
|
|
2536
2536
|
--
|
|
2537
2537
|
|
|
2538
|
-
##### [Button](https://github.com/appium/ruby_lib/blob/
|
|
2538
|
+
##### [Button](https://github.com/appium/ruby_lib/blob/95118d4e0a6ec285e55862ea6b6fed528711ad84/lib/appium_lib/android/element/button.rb#L3) android
|
|
2539
2539
|
|
|
2540
2540
|
> Button = 'android.widget.Button'.freeze
|
|
2541
2541
|
|
|
@@ -2543,7 +2543,7 @@ __Returns:__
|
|
|
2543
2543
|
|
|
2544
2544
|
--
|
|
2545
2545
|
|
|
2546
|
-
##### [ImageButton](https://github.com/appium/ruby_lib/blob/
|
|
2546
|
+
##### [ImageButton](https://github.com/appium/ruby_lib/blob/95118d4e0a6ec285e55862ea6b6fed528711ad84/lib/appium_lib/android/element/button.rb#L4) android
|
|
2547
2547
|
|
|
2548
2548
|
> ImageButton = 'android.widget.ImageButton'.freeze
|
|
2549
2549
|
|
|
@@ -2551,7 +2551,7 @@ __Returns:__
|
|
|
2551
2551
|
|
|
2552
2552
|
--
|
|
2553
2553
|
|
|
2554
|
-
##### [button](https://github.com/appium/ruby_lib/blob/
|
|
2554
|
+
##### [button](https://github.com/appium/ruby_lib/blob/95118d4e0a6ec285e55862ea6b6fed528711ad84/lib/appium_lib/android/element/button.rb#L10) android
|
|
2555
2555
|
|
|
2556
2556
|
> def button(value)
|
|
2557
2557
|
|
|
@@ -2568,7 +2568,7 @@ __Returns:__
|
|
|
2568
2568
|
|
|
2569
2569
|
--
|
|
2570
2570
|
|
|
2571
|
-
##### [buttons](https://github.com/appium/ruby_lib/blob/
|
|
2571
|
+
##### [buttons](https://github.com/appium/ruby_lib/blob/95118d4e0a6ec285e55862ea6b6fed528711ad84/lib/appium_lib/android/element/button.rb#L27) android
|
|
2572
2572
|
|
|
2573
2573
|
> def buttons(value = false)
|
|
2574
2574
|
|
|
@@ -2585,7 +2585,7 @@ __Returns:__
|
|
|
2585
2585
|
|
|
2586
2586
|
--
|
|
2587
2587
|
|
|
2588
|
-
##### [first_button](https://github.com/appium/ruby_lib/blob/
|
|
2588
|
+
##### [first_button](https://github.com/appium/ruby_lib/blob/95118d4e0a6ec285e55862ea6b6fed528711ad84/lib/appium_lib/android/element/button.rb#L34) android
|
|
2589
2589
|
|
|
2590
2590
|
> def first_button
|
|
2591
2591
|
|
|
@@ -2597,7 +2597,7 @@ __Returns:__
|
|
|
2597
2597
|
|
|
2598
2598
|
--
|
|
2599
2599
|
|
|
2600
|
-
##### [last_button](https://github.com/appium/ruby_lib/blob/
|
|
2600
|
+
##### [last_button](https://github.com/appium/ruby_lib/blob/95118d4e0a6ec285e55862ea6b6fed528711ad84/lib/appium_lib/android/element/button.rb#L40) android
|
|
2601
2601
|
|
|
2602
2602
|
> def last_button
|
|
2603
2603
|
|
|
@@ -2609,7 +2609,7 @@ __Returns:__
|
|
|
2609
2609
|
|
|
2610
2610
|
--
|
|
2611
2611
|
|
|
2612
|
-
##### [button_exact](https://github.com/appium/ruby_lib/blob/
|
|
2612
|
+
##### [button_exact](https://github.com/appium/ruby_lib/blob/95118d4e0a6ec285e55862ea6b6fed528711ad84/lib/appium_lib/android/element/button.rb#L56) android
|
|
2613
2613
|
|
|
2614
2614
|
> def button_exact(value)
|
|
2615
2615
|
|
|
@@ -2625,7 +2625,7 @@ __Returns:__
|
|
|
2625
2625
|
|
|
2626
2626
|
--
|
|
2627
2627
|
|
|
2628
|
-
##### [buttons_exact](https://github.com/appium/ruby_lib/blob/
|
|
2628
|
+
##### [buttons_exact](https://github.com/appium/ruby_lib/blob/95118d4e0a6ec285e55862ea6b6fed528711ad84/lib/appium_lib/android/element/button.rb#L63) android
|
|
2629
2629
|
|
|
2630
2630
|
> def buttons_exact(value)
|
|
2631
2631
|
|
|
@@ -2641,7 +2641,7 @@ __Returns:__
|
|
|
2641
2641
|
|
|
2642
2642
|
--
|
|
2643
2643
|
|
|
2644
|
-
##### [uiautomator_find](https://github.com/appium/ruby_lib/blob/
|
|
2644
|
+
##### [uiautomator_find](https://github.com/appium/ruby_lib/blob/95118d4e0a6ec285e55862ea6b6fed528711ad84/lib/appium_lib/android/mobile_methods.rb#L10) android
|
|
2645
2645
|
|
|
2646
2646
|
> def uiautomator_find
|
|
2647
2647
|
|
|
@@ -2653,7 +2653,7 @@ find_element/s can be used with a [UISelector](http://developer.android.com/tool
|
|
|
2653
2653
|
|
|
2654
2654
|
--
|
|
2655
2655
|
|
|
2656
|
-
##### [find](https://github.com/appium/ruby_lib/blob/
|
|
2656
|
+
##### [find](https://github.com/appium/ruby_lib/blob/95118d4e0a6ec285e55862ea6b6fed528711ad84/lib/appium_lib/android/element/generic.rb#L6) android
|
|
2657
2657
|
|
|
2658
2658
|
> def find(value)
|
|
2659
2659
|
|
|
@@ -2669,7 +2669,7 @@ __Returns:__
|
|
|
2669
2669
|
|
|
2670
2670
|
--
|
|
2671
2671
|
|
|
2672
|
-
##### [finds](https://github.com/appium/ruby_lib/blob/
|
|
2672
|
+
##### [finds](https://github.com/appium/ruby_lib/blob/95118d4e0a6ec285e55862ea6b6fed528711ad84/lib/appium_lib/android/element/generic.rb#L13) android
|
|
2673
2673
|
|
|
2674
2674
|
> def finds(value)
|
|
2675
2675
|
|
|
@@ -2685,7 +2685,7 @@ __Returns:__
|
|
|
2685
2685
|
|
|
2686
2686
|
--
|
|
2687
2687
|
|
|
2688
|
-
##### [find_exact](https://github.com/appium/ruby_lib/blob/
|
|
2688
|
+
##### [find_exact](https://github.com/appium/ruby_lib/blob/95118d4e0a6ec285e55862ea6b6fed528711ad84/lib/appium_lib/android/element/generic.rb#L20) android
|
|
2689
2689
|
|
|
2690
2690
|
> def find_exact(value)
|
|
2691
2691
|
|
|
@@ -2701,7 +2701,7 @@ __Returns:__
|
|
|
2701
2701
|
|
|
2702
2702
|
--
|
|
2703
2703
|
|
|
2704
|
-
##### [finds_exact](https://github.com/appium/ruby_lib/blob/
|
|
2704
|
+
##### [finds_exact](https://github.com/appium/ruby_lib/blob/95118d4e0a6ec285e55862ea6b6fed528711ad84/lib/appium_lib/android/element/generic.rb#L27) android
|
|
2705
2705
|
|
|
2706
2706
|
> def finds_exact(value)
|
|
2707
2707
|
|
|
@@ -2717,7 +2717,7 @@ __Returns:__
|
|
|
2717
2717
|
|
|
2718
2718
|
--
|
|
2719
2719
|
|
|
2720
|
-
##### [scroll_to](https://github.com/appium/ruby_lib/blob/
|
|
2720
|
+
##### [scroll_to](https://github.com/appium/ruby_lib/blob/95118d4e0a6ec285e55862ea6b6fed528711ad84/lib/appium_lib/android/element/generic.rb#L40) android
|
|
2721
2721
|
|
|
2722
2722
|
> def scroll_to(text, scrollable_index = 0)
|
|
2723
2723
|
|
|
@@ -2735,7 +2735,7 @@ __Returns:__
|
|
|
2735
2735
|
|
|
2736
2736
|
--
|
|
2737
2737
|
|
|
2738
|
-
##### [scroll_to_exact](https://github.com/appium/ruby_lib/blob/
|
|
2738
|
+
##### [scroll_to_exact](https://github.com/appium/ruby_lib/blob/95118d4e0a6ec285e55862ea6b6fed528711ad84/lib/appium_lib/android/element/generic.rb#L58) android
|
|
2739
2739
|
|
|
2740
2740
|
> def scroll_to_exact(text, scrollable_index = 0)
|
|
2741
2741
|
|
|
@@ -2753,7 +2753,7 @@ __Returns:__
|
|
|
2753
2753
|
|
|
2754
2754
|
--
|
|
2755
2755
|
|
|
2756
|
-
##### [EditText](https://github.com/appium/ruby_lib/blob/
|
|
2756
|
+
##### [EditText](https://github.com/appium/ruby_lib/blob/95118d4e0a6ec285e55862ea6b6fed528711ad84/lib/appium_lib/android/element/textfield.rb#L3) android
|
|
2757
2757
|
|
|
2758
2758
|
> EditText = 'android.widget.EditText'.freeze
|
|
2759
2759
|
|
|
@@ -2761,7 +2761,7 @@ __Returns:__
|
|
|
2761
2761
|
|
|
2762
2762
|
--
|
|
2763
2763
|
|
|
2764
|
-
##### [textfield](https://github.com/appium/ruby_lib/blob/
|
|
2764
|
+
##### [textfield](https://github.com/appium/ruby_lib/blob/95118d4e0a6ec285e55862ea6b6fed528711ad84/lib/appium_lib/android/element/textfield.rb#L9) android
|
|
2765
2765
|
|
|
2766
2766
|
> def textfield(value)
|
|
2767
2767
|
|
|
@@ -2778,7 +2778,7 @@ __Returns:__
|
|
|
2778
2778
|
|
|
2779
2779
|
--
|
|
2780
2780
|
|
|
2781
|
-
##### [textfields](https://github.com/appium/ruby_lib/blob/
|
|
2781
|
+
##### [textfields](https://github.com/appium/ruby_lib/blob/95118d4e0a6ec285e55862ea6b6fed528711ad84/lib/appium_lib/android/element/textfield.rb#L18) android
|
|
2782
2782
|
|
|
2783
2783
|
> def textfields(value = false)
|
|
2784
2784
|
|
|
@@ -2795,7 +2795,7 @@ __Returns:__
|
|
|
2795
2795
|
|
|
2796
2796
|
--
|
|
2797
2797
|
|
|
2798
|
-
##### [first_textfield](https://github.com/appium/ruby_lib/blob/
|
|
2798
|
+
##### [first_textfield](https://github.com/appium/ruby_lib/blob/95118d4e0a6ec285e55862ea6b6fed528711ad84/lib/appium_lib/android/element/textfield.rb#L25) android
|
|
2799
2799
|
|
|
2800
2800
|
> def first_textfield
|
|
2801
2801
|
|
|
@@ -2807,7 +2807,7 @@ __Returns:__
|
|
|
2807
2807
|
|
|
2808
2808
|
--
|
|
2809
2809
|
|
|
2810
|
-
##### [last_textfield](https://github.com/appium/ruby_lib/blob/
|
|
2810
|
+
##### [last_textfield](https://github.com/appium/ruby_lib/blob/95118d4e0a6ec285e55862ea6b6fed528711ad84/lib/appium_lib/android/element/textfield.rb#L31) android
|
|
2811
2811
|
|
|
2812
2812
|
> def last_textfield
|
|
2813
2813
|
|
|
@@ -2819,7 +2819,7 @@ __Returns:__
|
|
|
2819
2819
|
|
|
2820
2820
|
--
|
|
2821
2821
|
|
|
2822
|
-
##### [textfield_exact](https://github.com/appium/ruby_lib/blob/
|
|
2822
|
+
##### [textfield_exact](https://github.com/appium/ruby_lib/blob/95118d4e0a6ec285e55862ea6b6fed528711ad84/lib/appium_lib/android/element/textfield.rb#L38) android
|
|
2823
2823
|
|
|
2824
2824
|
> def textfield_exact(value)
|
|
2825
2825
|
|
|
@@ -2835,7 +2835,7 @@ __Returns:__
|
|
|
2835
2835
|
|
|
2836
2836
|
--
|
|
2837
2837
|
|
|
2838
|
-
##### [textfields_exact](https://github.com/appium/ruby_lib/blob/
|
|
2838
|
+
##### [textfields_exact](https://github.com/appium/ruby_lib/blob/95118d4e0a6ec285e55862ea6b6fed528711ad84/lib/appium_lib/android/element/textfield.rb#L45) android
|
|
2839
2839
|
|
|
2840
2840
|
> def textfields_exact(value)
|
|
2841
2841
|
|
|
@@ -2851,7 +2851,7 @@ __Returns:__
|
|
|
2851
2851
|
|
|
2852
2852
|
--
|
|
2853
2853
|
|
|
2854
|
-
##### [string_visible_contains](https://github.com/appium/ruby_lib/blob/
|
|
2854
|
+
##### [string_visible_contains](https://github.com/appium/ruby_lib/blob/95118d4e0a6ec285e55862ea6b6fed528711ad84/lib/appium_lib/android/uiautomator2/helper.rb#L13) android
|
|
2855
2855
|
|
|
2856
2856
|
> def string_visible_contains(class_name, value)
|
|
2857
2857
|
|
|
@@ -2872,7 +2872,7 @@ __Returns:__
|
|
|
2872
2872
|
|
|
2873
2873
|
--
|
|
2874
2874
|
|
|
2875
|
-
##### [complex_find_contains](https://github.com/appium/ruby_lib/blob/
|
|
2875
|
+
##### [complex_find_contains](https://github.com/appium/ruby_lib/blob/95118d4e0a6ec285e55862ea6b6fed528711ad84/lib/appium_lib/android/uiautomator2/helper.rb#L31) android
|
|
2876
2876
|
|
|
2877
2877
|
> def complex_find_contains(class_name, value)
|
|
2878
2878
|
|
|
@@ -2890,7 +2890,7 @@ __Returns:__
|
|
|
2890
2890
|
|
|
2891
2891
|
--
|
|
2892
2892
|
|
|
2893
|
-
##### [complex_finds_contains](https://github.com/appium/ruby_lib/blob/
|
|
2893
|
+
##### [complex_finds_contains](https://github.com/appium/ruby_lib/blob/95118d4e0a6ec285e55862ea6b6fed528711ad84/lib/appium_lib/android/uiautomator2/helper.rb#L41) android
|
|
2894
2894
|
|
|
2895
2895
|
> def complex_finds_contains(class_name, value)
|
|
2896
2896
|
|
|
@@ -2908,7 +2908,7 @@ __Returns:__
|
|
|
2908
2908
|
|
|
2909
2909
|
--
|
|
2910
2910
|
|
|
2911
|
-
##### [complex_find_exact](https://github.com/appium/ruby_lib/blob/
|
|
2911
|
+
##### [complex_find_exact](https://github.com/appium/ruby_lib/blob/95118d4e0a6ec285e55862ea6b6fed528711ad84/lib/appium_lib/android/uiautomator2/helper.rb#L69) android
|
|
2912
2912
|
|
|
2913
2913
|
> def complex_find_exact(class_name, value)
|
|
2914
2914
|
|
|
@@ -2926,7 +2926,7 @@ __Returns:__
|
|
|
2926
2926
|
|
|
2927
2927
|
--
|
|
2928
2928
|
|
|
2929
|
-
##### [complex_finds_exact](https://github.com/appium/ruby_lib/blob/
|
|
2929
|
+
##### [complex_finds_exact](https://github.com/appium/ruby_lib/blob/95118d4e0a6ec285e55862ea6b6fed528711ad84/lib/appium_lib/android/uiautomator2/helper.rb#L79) android
|
|
2930
2930
|
|
|
2931
2931
|
> def complex_finds_exact(class_name, value)
|
|
2932
2932
|
|
|
@@ -2944,7 +2944,7 @@ __Returns:__
|
|
|
2944
2944
|
|
|
2945
2945
|
--
|
|
2946
2946
|
|
|
2947
|
-
##### [button](https://github.com/appium/ruby_lib/blob/
|
|
2947
|
+
##### [button](https://github.com/appium/ruby_lib/blob/95118d4e0a6ec285e55862ea6b6fed528711ad84/lib/appium_lib/android/uiautomator2/element/button.rb#L9) android
|
|
2948
2948
|
|
|
2949
2949
|
> def button(value)
|
|
2950
2950
|
|
|
@@ -2961,7 +2961,7 @@ __Returns:__
|
|
|
2961
2961
|
|
|
2962
2962
|
--
|
|
2963
2963
|
|
|
2964
|
-
##### [buttons](https://github.com/appium/ruby_lib/blob/
|
|
2964
|
+
##### [buttons](https://github.com/appium/ruby_lib/blob/95118d4e0a6ec285e55862ea6b6fed528711ad84/lib/appium_lib/android/uiautomator2/element/button.rb#L29) android
|
|
2965
2965
|
|
|
2966
2966
|
> def buttons(value = false)
|
|
2967
2967
|
|
|
@@ -2978,7 +2978,7 @@ __Returns:__
|
|
|
2978
2978
|
|
|
2979
2979
|
--
|
|
2980
2980
|
|
|
2981
|
-
##### [first_button](https://github.com/appium/ruby_lib/blob/
|
|
2981
|
+
##### [first_button](https://github.com/appium/ruby_lib/blob/95118d4e0a6ec285e55862ea6b6fed528711ad84/lib/appium_lib/android/uiautomator2/element/button.rb#L36) android
|
|
2982
2982
|
|
|
2983
2983
|
> def first_button
|
|
2984
2984
|
|
|
@@ -2990,7 +2990,7 @@ __Returns:__
|
|
|
2990
2990
|
|
|
2991
2991
|
--
|
|
2992
2992
|
|
|
2993
|
-
##### [last_button](https://github.com/appium/ruby_lib/blob/
|
|
2993
|
+
##### [last_button](https://github.com/appium/ruby_lib/blob/95118d4e0a6ec285e55862ea6b6fed528711ad84/lib/appium_lib/android/uiautomator2/element/button.rb#L43) android
|
|
2994
2994
|
|
|
2995
2995
|
> def last_button
|
|
2996
2996
|
|
|
@@ -3002,7 +3002,7 @@ __Returns:__
|
|
|
3002
3002
|
|
|
3003
3003
|
--
|
|
3004
3004
|
|
|
3005
|
-
##### [button_exact](https://github.com/appium/ruby_lib/blob/
|
|
3005
|
+
##### [button_exact](https://github.com/appium/ruby_lib/blob/95118d4e0a6ec285e55862ea6b6fed528711ad84/lib/appium_lib/android/uiautomator2/element/button.rb#L60) android
|
|
3006
3006
|
|
|
3007
3007
|
> def button_exact(value)
|
|
3008
3008
|
|
|
@@ -3018,7 +3018,7 @@ __Returns:__
|
|
|
3018
3018
|
|
|
3019
3019
|
--
|
|
3020
3020
|
|
|
3021
|
-
##### [buttons_exact](https://github.com/appium/ruby_lib/blob/
|
|
3021
|
+
##### [buttons_exact](https://github.com/appium/ruby_lib/blob/95118d4e0a6ec285e55862ea6b6fed528711ad84/lib/appium_lib/android/uiautomator2/element/button.rb#L68) android
|
|
3022
3022
|
|
|
3023
3023
|
> def buttons_exact(value)
|
|
3024
3024
|
|
|
@@ -3034,7 +3034,7 @@ __Returns:__
|
|
|
3034
3034
|
|
|
3035
3035
|
--
|
|
3036
3036
|
|
|
3037
|
-
##### [value](https://github.com/appium/ruby_lib/blob/
|
|
3037
|
+
##### [value](https://github.com/appium/ruby_lib/blob/95118d4e0a6ec285e55862ea6b6fed528711ad84/lib/appium_lib/common/patch.rb#L12)
|
|
3038
3038
|
|
|
3039
3039
|
> def value
|
|
3040
3040
|
|
|
@@ -3044,7 +3044,7 @@ Fixes NoMethodError: undefined method `value' for Selenium::WebDriver::Element
|
|
|
3044
3044
|
|
|
3045
3045
|
--
|
|
3046
3046
|
|
|
3047
|
-
##### [name](https://github.com/appium/ruby_lib/blob/
|
|
3047
|
+
##### [name](https://github.com/appium/ruby_lib/blob/95118d4e0a6ec285e55862ea6b6fed528711ad84/lib/appium_lib/common/patch.rb#L19)
|
|
3048
3048
|
|
|
3049
3049
|
> def name
|
|
3050
3050
|
|
|
@@ -3054,7 +3054,7 @@ Fixes NoMethodError: undefined method `name' for Selenium::WebDriver::Element
|
|
|
3054
3054
|
|
|
3055
3055
|
--
|
|
3056
3056
|
|
|
3057
|
-
##### [location_rel](https://github.com/appium/ruby_lib/blob/
|
|
3057
|
+
##### [location_rel](https://github.com/appium/ruby_lib/blob/95118d4e0a6ec285e55862ea6b6fed528711ad84/lib/appium_lib/common/patch.rb#L30)
|
|
3058
3058
|
|
|
3059
3059
|
> def location_rel(driver = $driver)
|
|
3060
3060
|
|
|
@@ -3070,7 +3070,7 @@ __Returns:__
|
|
|
3070
3070
|
|
|
3071
3071
|
--
|
|
3072
3072
|
|
|
3073
|
-
##### [DEFAULT_HEADERS](https://github.com/appium/ruby_lib/blob/
|
|
3073
|
+
##### [DEFAULT_HEADERS](https://github.com/appium/ruby_lib/blob/95118d4e0a6ec285e55862ea6b6fed528711ad84/lib/appium_lib/common/patch.rb#L170)
|
|
3074
3074
|
|
|
3075
3075
|
> DEFAULT_HEADERS = { 'Accept' => CONTENT_TYPE, 'User-Agent' => "appium/ruby_lib/#{::Appium::VERSION}" }.freeze
|
|
3076
3076
|
|
|
@@ -3078,7 +3078,7 @@ __Returns:__
|
|
|
3078
3078
|
|
|
3079
3079
|
--
|
|
3080
3080
|
|
|
3081
|
-
##### [patch_remote_driver_commands](https://github.com/appium/ruby_lib/blob/
|
|
3081
|
+
##### [patch_remote_driver_commands](https://github.com/appium/ruby_lib/blob/95118d4e0a6ec285e55862ea6b6fed528711ad84/lib/appium_lib/common/patch.rb#L173)
|
|
3082
3082
|
|
|
3083
3083
|
> def patch_remote_driver_commands
|
|
3084
3084
|
|