appium_lib 2.0.0 → 2.1.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/android_tests/Gemfile +2 -1
- data/android_tests/api.apk +0 -0
- data/android_tests/appium.txt +7 -1
- data/android_tests/lib/android/specs/common/helper.rb +3 -1
- data/android_tests/lib/android/specs/common/web_context.rb +13 -0
- data/android_tests/lib/android/specs/driver.rb +4 -2
- data/appium_lib.gemspec +1 -1
- data/docs/android_docs.md +221 -150
- data/docs/ios_docs.md +208 -140
- data/docs/migration.md +2 -1
- data/ios_tests/Gemfile +2 -1
- data/ios_tests/appium.txt +5 -1
- data/ios_tests/lib/ios/specs/common/helper.rb +3 -1
- data/ios_tests/lib/ios/specs/common/web_context.rb +11 -0
- data/lib/appium_lib/android/helper.rb +15 -5
- data/lib/appium_lib/common/helper.rb +82 -5
- data/lib/appium_lib/common/version.rb +2 -2
- data/lib/appium_lib/driver.rb +6 -2
- data/lib/appium_lib/ios/helper.rb +17 -8
- data/release_notes.md +29 -0
- metadata +17 -15
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: f7270fc3ac6ac28e582dff095dc66a5ecff33762
|
4
|
+
data.tar.gz: b747216b4d6ca7a08e4f15b125999052e37c0a9e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a307f87ef87b1442671df5f9c0649fa2617e1a9f9a8155014f92b90bb51101162730dba84138baacabe9fc02af69201f7e3895f6b52e71e4b94a90c6571b3686
|
7
|
+
data.tar.gz: 16d27a956caec09adf1e0be4a63f095590115a7517f20daec7d32f75f4b4b07c0f4dc90925d15335d86206c7c969751e06a8af3fabebfedea8a639cc851b25ff
|
data/android_tests/Gemfile
CHANGED
@@ -1 +1,2 @@
|
|
1
|
-
|
1
|
+
source 'https://rubygems.org'
|
2
|
+
gemspec path: File.expand_path('../../', __FILE__) # __dir__ fails on 1.9
|
data/android_tests/api.apk
CHANGED
Binary file
|
data/android_tests/appium.txt
CHANGED
@@ -15,6 +15,7 @@ describe 'common/helper' do
|
|
15
15
|
# regular rescue will not handle exceptions outside of StandardError hierarchy
|
16
16
|
# must rescue Exception explicitly to rescue everything
|
17
17
|
proc { wait(*wait_time) { raise NoMemoryError } }.must_raise Timeout::Error
|
18
|
+
proc { wait(0.2, 0.0) { raise NoMemoryError } }.must_raise Timeout::Error
|
18
19
|
end
|
19
20
|
|
20
21
|
t 'ignore' do
|
@@ -40,7 +41,8 @@ describe 'common/helper' do
|
|
40
41
|
|
41
42
|
# regular rescue will not handle exceptions outside of StandardError hierarchy
|
42
43
|
# must rescue Exception explicitly to rescue everything
|
43
|
-
proc {
|
44
|
+
proc { wait_true(*wait_time) { raise NoMemoryError } }.must_raise Timeout::Error
|
45
|
+
proc { wait_true(0.2, 0.0) { raise NoMemoryError } }.must_raise Timeout::Error
|
44
46
|
end
|
45
47
|
|
46
48
|
t 'back' do
|
@@ -0,0 +1,13 @@
|
|
1
|
+
# Tests specifically for areas where the web_context differs in behaviour
|
2
|
+
describe 'the web context' do
|
3
|
+
|
4
|
+
t 'get_android_inspect' do
|
5
|
+
scroll_to "Views"
|
6
|
+
last_text.click
|
7
|
+
scroll_to 'WebView'
|
8
|
+
last_text.click
|
9
|
+
set_context 'WEBVIEW'
|
10
|
+
current_context.must_equal 'WEBVIEW_1'
|
11
|
+
get_android_inspect.split("\n").length.must_be :>=, 3
|
12
|
+
end
|
13
|
+
end
|
@@ -32,7 +32,9 @@ describe 'driver' do
|
|
32
32
|
actual = driver_attributes
|
33
33
|
actual[:caps][:app] = File.basename actual[:caps][:app]
|
34
34
|
expected = { caps: { platformName: 'android',
|
35
|
-
app: 'api.apk'
|
35
|
+
app: 'api.apk',
|
36
|
+
appPackage: '',
|
37
|
+
appActivity: '', },
|
36
38
|
custom_url: false,
|
37
39
|
export_session: false,
|
38
40
|
default_wait: 1,
|
@@ -41,7 +43,7 @@ describe 'driver' do
|
|
41
43
|
sauce_access_key: nil,
|
42
44
|
port: 4723,
|
43
45
|
device: :android,
|
44
|
-
debug: true }
|
46
|
+
debug: true, }
|
45
47
|
|
46
48
|
actual.must_equal expected
|
47
49
|
end
|
data/appium_lib.gemspec
CHANGED
@@ -26,9 +26,9 @@ Gem::Specification.new do |s|
|
|
26
26
|
s.add_runtime_dependency 'awesome_print', '~> 1.2', '>= 1.2.0'
|
27
27
|
s.add_runtime_dependency 'json', '~> 1.8', '>= 1.8.1'
|
28
28
|
s.add_runtime_dependency 'toml', '~> 0.0', '>= 0.0.4'
|
29
|
-
s.add_runtime_dependency 'posix-spawn', '~> 0.3', '>= 0.3.8'
|
30
29
|
s.add_runtime_dependency 'nokogiri', '~> 1.6.1'
|
31
30
|
|
31
|
+
s.add_development_dependency 'posix-spawn', '~> 0.3', '>= 0.3.8'
|
32
32
|
s.add_development_dependency 'hashdiff', '~> 0.2.0'
|
33
33
|
s.add_development_dependency 'spec', '~> 5.3.4'
|
34
34
|
s.add_development_dependency 'fakefs', '~> 0.5.0'
|
data/docs/android_docs.md
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
##### [load_appium_txt](https://github.com/appium/ruby_lib/blob/
|
1
|
+
##### [load_appium_txt](https://github.com/appium/ruby_lib/blob/f0db0910ea077e04329d3e0cafb434f829760abb/lib/appium_lib/driver.rb#L71)
|
2
2
|
|
3
3
|
> def self.load_appium_txt opts={}
|
4
4
|
|
@@ -27,7 +27,7 @@ __Returns:__
|
|
27
27
|
|
28
28
|
--
|
29
29
|
|
30
|
-
##### [symbolize_keys](https://github.com/appium/ruby_lib/blob/
|
30
|
+
##### [symbolize_keys](https://github.com/appium/ruby_lib/blob/f0db0910ea077e04329d3e0cafb434f829760abb/lib/appium_lib/driver.rb#L141)
|
31
31
|
|
32
32
|
> def self.symbolize_keys hash
|
33
33
|
|
@@ -38,7 +38,7 @@ https://github.com/rails/docrails/blob/a3b1105ada3da64acfa3843b164b14b734456a50/
|
|
38
38
|
|
39
39
|
--
|
40
40
|
|
41
|
-
##### [promote_singleton_appium_methods](https://github.com/appium/ruby_lib/blob/
|
41
|
+
##### [promote_singleton_appium_methods](https://github.com/appium/ruby_lib/blob/f0db0910ea077e04329d3e0cafb434f829760abb/lib/appium_lib/driver.rb#L151)
|
42
42
|
|
43
43
|
> def self.promote_singleton_appium_methods main_module
|
44
44
|
|
@@ -46,7 +46,7 @@ https://github.com/rails/docrails/blob/a3b1105ada3da64acfa3843b164b14b734456a50/
|
|
46
46
|
|
47
47
|
--
|
48
48
|
|
49
|
-
##### [promote_appium_methods](https://github.com/appium/ruby_lib/blob/
|
49
|
+
##### [promote_appium_methods](https://github.com/appium/ruby_lib/blob/f0db0910ea077e04329d3e0cafb434f829760abb/lib/appium_lib/driver.rb#L180)
|
50
50
|
|
51
51
|
> def self.promote_appium_methods class_array
|
52
52
|
|
@@ -64,7 +64,7 @@ __Parameters:__
|
|
64
64
|
|
65
65
|
--
|
66
66
|
|
67
|
-
##### [global_webdriver_http_sleep](https://github.com/appium/ruby_lib/blob/
|
67
|
+
##### [global_webdriver_http_sleep](https://github.com/appium/ruby_lib/blob/f0db0910ea077e04329d3e0cafb434f829760abb/lib/appium_lib/driver.rb#L213)
|
68
68
|
|
69
69
|
> def global_webdriver_http_sleep
|
70
70
|
|
@@ -72,7 +72,7 @@ The amount to sleep in seconds before every webdriver http call.
|
|
72
72
|
|
73
73
|
--
|
74
74
|
|
75
|
-
##### [global_webdriver_http_sleep=](https://github.com/appium/ruby_lib/blob/
|
75
|
+
##### [global_webdriver_http_sleep=](https://github.com/appium/ruby_lib/blob/f0db0910ea077e04329d3e0cafb434f829760abb/lib/appium_lib/driver.rb#L213)
|
76
76
|
|
77
77
|
> def global_webdriver_http_sleep=(value)
|
78
78
|
|
@@ -80,7 +80,7 @@ The amount to sleep in seconds before every webdriver http call.
|
|
80
80
|
|
81
81
|
--
|
82
82
|
|
83
|
-
##### [initialize](https://github.com/appium/ruby_lib/blob/
|
83
|
+
##### [initialize](https://github.com/appium/ruby_lib/blob/f0db0910ea077e04329d3e0cafb434f829760abb/lib/appium_lib/driver.rb#L234)
|
84
84
|
|
85
85
|
> def initialize opts={}
|
86
86
|
|
@@ -98,7 +98,7 @@ Appium::Driver.new(opts).start_driver
|
|
98
98
|
|
99
99
|
# Start Android driver
|
100
100
|
opts = { caps: { platformName: :android, app: '/path/to/my.apk' } }
|
101
|
-
Appium::Driver.new(
|
101
|
+
Appium::Driver.new(opts).start_driver
|
102
102
|
```
|
103
103
|
|
104
104
|
__Parameters:__
|
@@ -111,7 +111,7 @@ __Returns:__
|
|
111
111
|
|
112
112
|
--
|
113
113
|
|
114
|
-
##### [driver_attributes](https://github.com/appium/ruby_lib/blob/
|
114
|
+
##### [driver_attributes](https://github.com/appium/ruby_lib/blob/f0db0910ea077e04329d3e0cafb434f829760abb/lib/appium_lib/driver.rb#L311)
|
115
115
|
|
116
116
|
> def driver_attributes
|
117
117
|
|
@@ -119,7 +119,7 @@ Returns a hash of the driver attributes
|
|
119
119
|
|
120
120
|
--
|
121
121
|
|
122
|
-
##### [device_is_android?](https://github.com/appium/ruby_lib/blob/
|
122
|
+
##### [device_is_android?](https://github.com/appium/ruby_lib/blob/f0db0910ea077e04329d3e0cafb434f829760abb/lib/appium_lib/driver.rb#L331)
|
123
123
|
|
124
124
|
> def device_is_android?
|
125
125
|
|
@@ -131,7 +131,7 @@ __Returns:__
|
|
131
131
|
|
132
132
|
--
|
133
133
|
|
134
|
-
##### [appium_server_version](https://github.com/appium/ruby_lib/blob/
|
134
|
+
##### [appium_server_version](https://github.com/appium/ruby_lib/blob/f0db0910ea077e04329d3e0cafb434f829760abb/lib/appium_lib/driver.rb#L347)
|
135
135
|
|
136
136
|
> def appium_server_version
|
137
137
|
|
@@ -152,7 +152,7 @@ __Returns:__
|
|
152
152
|
|
153
153
|
--
|
154
154
|
|
155
|
-
##### [absolute_app_path](https://github.com/appium/ruby_lib/blob/
|
155
|
+
##### [absolute_app_path](https://github.com/appium/ruby_lib/blob/f0db0910ea077e04329d3e0cafb434f829760abb/lib/appium_lib/driver.rb#L353)
|
156
156
|
|
157
157
|
> def self.absolute_app_path app_path
|
158
158
|
|
@@ -164,7 +164,7 @@ __Returns:__
|
|
164
164
|
|
165
165
|
--
|
166
166
|
|
167
|
-
##### [server_url](https://github.com/appium/ruby_lib/blob/
|
167
|
+
##### [server_url](https://github.com/appium/ruby_lib/blob/f0db0910ea077e04329d3e0cafb434f829760abb/lib/appium_lib/driver.rb#L377)
|
168
168
|
|
169
169
|
> def server_url
|
170
170
|
|
@@ -176,7 +176,7 @@ __Returns:__
|
|
176
176
|
|
177
177
|
--
|
178
178
|
|
179
|
-
##### [restart](https://github.com/appium/ruby_lib/blob/
|
179
|
+
##### [restart](https://github.com/appium/ruby_lib/blob/f0db0910ea077e04329d3e0cafb434f829760abb/lib/appium_lib/driver.rb#L388)
|
180
180
|
|
181
181
|
> def restart
|
182
182
|
|
@@ -188,7 +188,7 @@ __Returns:__
|
|
188
188
|
|
189
189
|
--
|
190
190
|
|
191
|
-
##### [driver](https://github.com/appium/ruby_lib/blob/
|
191
|
+
##### [driver](https://github.com/appium/ruby_lib/blob/f0db0910ea077e04329d3e0cafb434f829760abb/lib/appium_lib/driver.rb#L395)
|
192
192
|
|
193
193
|
> def driver
|
194
194
|
|
@@ -200,7 +200,7 @@ __Returns:__
|
|
200
200
|
|
201
201
|
--
|
202
202
|
|
203
|
-
##### [screenshot](https://github.com/appium/ruby_lib/blob/
|
203
|
+
##### [screenshot](https://github.com/appium/ruby_lib/blob/f0db0910ea077e04329d3e0cafb434f829760abb/lib/appium_lib/driver.rb#L405)
|
204
204
|
|
205
205
|
> def screenshot png_save_path
|
206
206
|
|
@@ -218,7 +218,7 @@ __Returns:__
|
|
218
218
|
|
219
219
|
--
|
220
220
|
|
221
|
-
##### [driver_quit](https://github.com/appium/ruby_lib/blob/
|
221
|
+
##### [driver_quit](https://github.com/appium/ruby_lib/blob/f0db0910ea077e04329d3e0cafb434f829760abb/lib/appium_lib/driver.rb#L412)
|
222
222
|
|
223
223
|
> def driver_quit
|
224
224
|
|
@@ -230,7 +230,7 @@ __Returns:__
|
|
230
230
|
|
231
231
|
--
|
232
232
|
|
233
|
-
##### [start_driver](https://github.com/appium/ruby_lib/blob/
|
233
|
+
##### [start_driver](https://github.com/appium/ruby_lib/blob/f0db0910ea077e04329d3e0cafb434f829760abb/lib/appium_lib/driver.rb#L420)
|
234
234
|
|
235
235
|
> def start_driver
|
236
236
|
|
@@ -242,7 +242,7 @@ __Returns:__
|
|
242
242
|
|
243
243
|
--
|
244
244
|
|
245
|
-
##### [no_wait](https://github.com/appium/ruby_lib/blob/
|
245
|
+
##### [no_wait](https://github.com/appium/ruby_lib/blob/f0db0910ea077e04329d3e0cafb434f829760abb/lib/appium_lib/driver.rb#L447)
|
246
246
|
|
247
247
|
> def no_wait
|
248
248
|
|
@@ -250,7 +250,7 @@ Set implicit wait and default_wait to zero.
|
|
250
250
|
|
251
251
|
--
|
252
252
|
|
253
|
-
##### [set_wait](https://github.com/appium/ruby_lib/blob/
|
253
|
+
##### [set_wait](https://github.com/appium/ruby_lib/blob/f0db0910ea077e04329d3e0cafb434f829760abb/lib/appium_lib/driver.rb#L466)
|
254
254
|
|
255
255
|
> def set_wait timeout=nil
|
256
256
|
|
@@ -275,7 +275,7 @@ __Returns:__
|
|
275
275
|
|
276
276
|
--
|
277
277
|
|
278
|
-
##### [default_wait](https://github.com/appium/ruby_lib/blob/
|
278
|
+
##### [default_wait](https://github.com/appium/ruby_lib/blob/f0db0910ea077e04329d3e0cafb434f829760abb/lib/appium_lib/driver.rb#L484)
|
279
279
|
|
280
280
|
> def default_wait
|
281
281
|
|
@@ -288,7 +288,7 @@ __Returns:__
|
|
288
288
|
|
289
289
|
--
|
290
290
|
|
291
|
-
##### [exists](https://github.com/appium/ruby_lib/blob/
|
291
|
+
##### [exists](https://github.com/appium/ruby_lib/blob/f0db0910ea077e04329d3e0cafb434f829760abb/lib/appium_lib/driver.rb#L500)
|
292
292
|
|
293
293
|
> def exists pre_check=0, post_check=@default_wait, &search_block
|
294
294
|
|
@@ -314,7 +314,7 @@ __Returns:__
|
|
314
314
|
|
315
315
|
--
|
316
316
|
|
317
|
-
##### [execute_script](https://github.com/appium/ruby_lib/blob/
|
317
|
+
##### [execute_script](https://github.com/appium/ruby_lib/blob/f0db0910ea077e04329d3e0cafb434f829760abb/lib/appium_lib/driver.rb#L524)
|
318
318
|
|
319
319
|
> def execute_script script, *args
|
320
320
|
|
@@ -332,7 +332,7 @@ __Returns:__
|
|
332
332
|
|
333
333
|
--
|
334
334
|
|
335
|
-
##### [find_elements](https://github.com/appium/ruby_lib/blob/
|
335
|
+
##### [find_elements](https://github.com/appium/ruby_lib/blob/f0db0910ea077e04329d3e0cafb434f829760abb/lib/appium_lib/driver.rb#L532)
|
336
336
|
|
337
337
|
> def find_elements *args
|
338
338
|
|
@@ -348,7 +348,7 @@ __Returns:__
|
|
348
348
|
|
349
349
|
--
|
350
350
|
|
351
|
-
##### [find_element](https://github.com/appium/ruby_lib/blob/
|
351
|
+
##### [find_element](https://github.com/appium/ruby_lib/blob/f0db0910ea077e04329d3e0cafb434f829760abb/lib/appium_lib/driver.rb#L540)
|
352
352
|
|
353
353
|
> def find_element *args
|
354
354
|
|
@@ -364,7 +364,7 @@ __Returns:__
|
|
364
364
|
|
365
365
|
--
|
366
366
|
|
367
|
-
##### [x](https://github.com/appium/ruby_lib/blob/
|
367
|
+
##### [x](https://github.com/appium/ruby_lib/blob/f0db0910ea077e04329d3e0cafb434f829760abb/lib/appium_lib/driver.rb#L547)
|
368
368
|
|
369
369
|
> def x
|
370
370
|
|
@@ -377,7 +377,7 @@ __Returns:__
|
|
377
377
|
|
378
378
|
--
|
379
379
|
|
380
|
-
##### [NoArgMethods](https://github.com/appium/ruby_lib/blob/
|
380
|
+
##### [NoArgMethods](https://github.com/appium/ruby_lib/blob/f0db0910ea077e04329d3e0cafb434f829760abb/lib/appium_lib/device/device.rb#L7)
|
381
381
|
|
382
382
|
> NoArgMethods = {
|
383
383
|
|
@@ -385,7 +385,7 @@ __Returns:__
|
|
385
385
|
|
386
386
|
--
|
387
387
|
|
388
|
-
##### [app_strings](https://github.com/appium/ruby_lib/blob/
|
388
|
+
##### [app_strings](https://github.com/appium/ruby_lib/blob/f0db0910ea077e04329d3e0cafb434f829760abb/lib/appium_lib/device/device.rb#L22)
|
389
389
|
|
390
390
|
> def app_strings
|
391
391
|
|
@@ -396,7 +396,7 @@ app_strings #=> "TransitionsTitle"=>"Transitions", "WebTitle"=>"Web"
|
|
396
396
|
|
397
397
|
--
|
398
398
|
|
399
|
-
##### [background_app](https://github.com/appium/ruby_lib/blob/
|
399
|
+
##### [background_app](https://github.com/appium/ruby_lib/blob/f0db0910ea077e04329d3e0cafb434f829760abb/lib/appium_lib/device/device.rb#L28)
|
400
400
|
|
401
401
|
> def background_app
|
402
402
|
|
@@ -405,7 +405,7 @@ This is a blocking application
|
|
405
405
|
|
406
406
|
--
|
407
407
|
|
408
|
-
##### [current_activity](https://github.com/appium/ruby_lib/blob/
|
408
|
+
##### [current_activity](https://github.com/appium/ruby_lib/blob/f0db0910ea077e04329d3e0cafb434f829760abb/lib/appium_lib/device/device.rb#L33)
|
409
409
|
|
410
410
|
> def current_activity
|
411
411
|
|
@@ -413,7 +413,7 @@ This is a blocking application
|
|
413
413
|
|
414
414
|
--
|
415
415
|
|
416
|
-
##### [launch](https://github.com/appium/ruby_lib/blob/
|
416
|
+
##### [launch](https://github.com/appium/ruby_lib/blob/f0db0910ea077e04329d3e0cafb434f829760abb/lib/appium_lib/device/device.rb#L35)
|
417
417
|
|
418
418
|
> def launch
|
419
419
|
|
@@ -421,7 +421,7 @@ Start the simulator and applicaton configured with desired capabilities
|
|
421
421
|
|
422
422
|
--
|
423
423
|
|
424
|
-
##### [reset](https://github.com/appium/ruby_lib/blob/
|
424
|
+
##### [reset](https://github.com/appium/ruby_lib/blob/f0db0910ea077e04329d3e0cafb434f829760abb/lib/appium_lib/device/device.rb#L38)
|
425
425
|
|
426
426
|
> def reset
|
427
427
|
|
@@ -429,7 +429,7 @@ Reset the device, relaunching the application.
|
|
429
429
|
|
430
430
|
--
|
431
431
|
|
432
|
-
##### [shake](https://github.com/appium/ruby_lib/blob/
|
432
|
+
##### [shake](https://github.com/appium/ruby_lib/blob/f0db0910ea077e04329d3e0cafb434f829760abb/lib/appium_lib/device/device.rb#L41)
|
433
433
|
|
434
434
|
> def shake
|
435
435
|
|
@@ -437,7 +437,7 @@ Cause the device to shake
|
|
437
437
|
|
438
438
|
--
|
439
439
|
|
440
|
-
##### [toggle_flight_mode](https://github.com/appium/ruby_lib/blob/
|
440
|
+
##### [toggle_flight_mode](https://github.com/appium/ruby_lib/blob/f0db0910ea077e04329d3e0cafb434f829760abb/lib/appium_lib/device/device.rb#L44)
|
441
441
|
|
442
442
|
> def toggle_flight_mode
|
443
443
|
|
@@ -445,7 +445,7 @@ toggle flight mode on or off
|
|
445
445
|
|
446
446
|
--
|
447
447
|
|
448
|
-
##### [complex_find](https://github.com/appium/ruby_lib/blob/
|
448
|
+
##### [complex_find](https://github.com/appium/ruby_lib/blob/f0db0910ea077e04329d3e0cafb434f829760abb/lib/appium_lib/device/device.rb#L47)
|
449
449
|
|
450
450
|
> def complex_find
|
451
451
|
|
@@ -466,7 +466,7 @@ __Parameters:__
|
|
466
466
|
|
467
467
|
--
|
468
468
|
|
469
|
-
##### [hide_keyboard](https://github.com/appium/ruby_lib/blob/
|
469
|
+
##### [hide_keyboard](https://github.com/appium/ruby_lib/blob/f0db0910ea077e04329d3e0cafb434f829760abb/lib/appium_lib/device/device.rb#L59)
|
470
470
|
|
471
471
|
> def hide_keyboard
|
472
472
|
|
@@ -479,7 +479,7 @@ Defaults to 'Done'.
|
|
479
479
|
|
480
480
|
--
|
481
481
|
|
482
|
-
##### [key_event](https://github.com/appium/ruby_lib/blob/
|
482
|
+
##### [key_event](https://github.com/appium/ruby_lib/blob/f0db0910ea077e04329d3e0cafb434f829760abb/lib/appium_lib/device/device.rb#L68)
|
483
483
|
|
484
484
|
> def key_event
|
485
485
|
|
@@ -493,7 +493,7 @@ __Parameters:__
|
|
493
493
|
|
494
494
|
--
|
495
495
|
|
496
|
-
##### [push_file](https://github.com/appium/ruby_lib/blob/
|
496
|
+
##### [push_file](https://github.com/appium/ruby_lib/blob/f0db0910ea077e04329d3e0cafb434f829760abb/lib/appium_lib/device/device.rb#L73)
|
497
497
|
|
498
498
|
> def push_file
|
499
499
|
|
@@ -507,7 +507,7 @@ __Parameters:__
|
|
507
507
|
|
508
508
|
--
|
509
509
|
|
510
|
-
##### [pull_file](https://github.com/appium/ruby_lib/blob/
|
510
|
+
##### [pull_file](https://github.com/appium/ruby_lib/blob/f0db0910ea077e04329d3e0cafb434f829760abb/lib/appium_lib/device/device.rb#L78)
|
511
511
|
|
512
512
|
> def pull_file
|
513
513
|
|
@@ -524,7 +524,7 @@ __Parameters:__
|
|
524
524
|
|
525
525
|
--
|
526
526
|
|
527
|
-
##### [extend_search_contexts](https://github.com/appium/ruby_lib/blob/
|
527
|
+
##### [extend_search_contexts](https://github.com/appium/ruby_lib/blob/f0db0910ea077e04329d3e0cafb434f829760abb/lib/appium_lib/device/device.rb#L283)
|
528
528
|
|
529
529
|
> def extend_search_contexts
|
530
530
|
|
@@ -532,7 +532,7 @@ __Parameters:__
|
|
532
532
|
|
533
533
|
--
|
534
534
|
|
535
|
-
##### [accessiblity_id_find](https://github.com/appium/ruby_lib/blob/
|
535
|
+
##### [accessiblity_id_find](https://github.com/appium/ruby_lib/blob/f0db0910ea077e04329d3e0cafb434f829760abb/lib/appium_lib/device/device.rb#L283)
|
536
536
|
|
537
537
|
> def accessiblity_id_find
|
538
538
|
|
@@ -544,7 +544,7 @@ find_element/s with their accessibility_id
|
|
544
544
|
|
545
545
|
--
|
546
546
|
|
547
|
-
##### [add_touch_actions](https://github.com/appium/ruby_lib/blob/
|
547
|
+
##### [add_touch_actions](https://github.com/appium/ruby_lib/blob/f0db0910ea077e04329d3e0cafb434f829760abb/lib/appium_lib/device/device.rb#L289)
|
548
548
|
|
549
549
|
> def add_touch_actions
|
550
550
|
|
@@ -552,7 +552,7 @@ find_element/s with their accessibility_id
|
|
552
552
|
|
553
553
|
--
|
554
554
|
|
555
|
-
##### [set_context](https://github.com/appium/ruby_lib/blob/
|
555
|
+
##### [set_context](https://github.com/appium/ruby_lib/blob/f0db0910ea077e04329d3e0cafb434f829760abb/lib/appium_lib/device/device.rb#L313)
|
556
556
|
|
557
557
|
> def set_context
|
558
558
|
|
@@ -567,7 +567,7 @@ __Parameters:__
|
|
567
567
|
|
568
568
|
--
|
569
569
|
|
570
|
-
##### [current_context](https://github.com/appium/ruby_lib/blob/
|
570
|
+
##### [current_context](https://github.com/appium/ruby_lib/blob/f0db0910ea077e04329d3e0cafb434f829760abb/lib/appium_lib/device/device.rb#L321)
|
571
571
|
|
572
572
|
> def current_context
|
573
573
|
|
@@ -579,7 +579,7 @@ __Returns:__
|
|
579
579
|
|
580
580
|
--
|
581
581
|
|
582
|
-
##### [available_contexts](https://github.com/appium/ruby_lib/blob/
|
582
|
+
##### [available_contexts](https://github.com/appium/ruby_lib/blob/f0db0910ea077e04329d3e0cafb434f829760abb/lib/appium_lib/device/device.rb#L324)
|
583
583
|
|
584
584
|
> def available_contexts
|
585
585
|
|
@@ -591,7 +591,7 @@ __Returns:__
|
|
591
591
|
|
592
592
|
--
|
593
593
|
|
594
|
-
##### [within_context](https://github.com/appium/ruby_lib/blob/
|
594
|
+
##### [within_context](https://github.com/appium/ruby_lib/blob/f0db0910ea077e04329d3e0cafb434f829760abb/lib/appium_lib/device/device.rb#L334)
|
595
595
|
|
596
596
|
> def within_context(context)
|
597
597
|
|
@@ -607,7 +607,7 @@ __Parameters:__
|
|
607
607
|
|
608
608
|
--
|
609
609
|
|
610
|
-
##### [switch_to_default_context](https://github.com/appium/ruby_lib/blob/
|
610
|
+
##### [switch_to_default_context](https://github.com/appium/ruby_lib/blob/f0db0910ea077e04329d3e0cafb434f829760abb/lib/appium_lib/device/device.rb#L342)
|
611
611
|
|
612
612
|
> def switch_to_default_context
|
613
613
|
|
@@ -615,7 +615,7 @@ Change to the default context. This is equivalent to `set_context nil`.
|
|
615
615
|
|
616
616
|
--
|
617
617
|
|
618
|
-
##### [pinch](https://github.com/appium/ruby_lib/blob/
|
618
|
+
##### [pinch](https://github.com/appium/ruby_lib/blob/f0db0910ea077e04329d3e0cafb434f829760abb/lib/appium_lib/device/multi_touch.rb#L30)
|
619
619
|
|
620
620
|
> def pinch(percentage=25, auto_perform=true)
|
621
621
|
|
@@ -634,7 +634,7 @@ __Parameters:__
|
|
634
634
|
|
635
635
|
--
|
636
636
|
|
637
|
-
##### [zoom](https://github.com/appium/ruby_lib/blob/
|
637
|
+
##### [zoom](https://github.com/appium/ruby_lib/blob/f0db0910ea077e04329d3e0cafb434f829760abb/lib/appium_lib/device/multi_touch.rb#L58)
|
638
638
|
|
639
639
|
> def zoom(percentage=200, auto_perform=true)
|
640
640
|
|
@@ -653,7 +653,7 @@ __Parameters:__
|
|
653
653
|
|
654
654
|
--
|
655
655
|
|
656
|
-
##### [initialize](https://github.com/appium/ruby_lib/blob/
|
656
|
+
##### [initialize](https://github.com/appium/ruby_lib/blob/f0db0910ea077e04329d3e0cafb434f829760abb/lib/appium_lib/device/multi_touch.rb#L79)
|
657
657
|
|
658
658
|
> def initialize
|
659
659
|
|
@@ -665,7 +665,7 @@ __Returns:__
|
|
665
665
|
|
666
666
|
--
|
667
667
|
|
668
|
-
##### [add](https://github.com/appium/ruby_lib/blob/
|
668
|
+
##### [add](https://github.com/appium/ruby_lib/blob/f0db0910ea077e04329d3e0cafb434f829760abb/lib/appium_lib/device/multi_touch.rb#L85)
|
669
669
|
|
670
670
|
> def add(chain)
|
671
671
|
|
@@ -677,7 +677,7 @@ __Parameters:__
|
|
677
677
|
|
678
678
|
--
|
679
679
|
|
680
|
-
##### [perform](https://github.com/appium/ruby_lib/blob/
|
680
|
+
##### [perform](https://github.com/appium/ruby_lib/blob/f0db0910ea077e04329d3e0cafb434f829760abb/lib/appium_lib/device/multi_touch.rb#L90)
|
681
681
|
|
682
682
|
> def perform
|
683
683
|
|
@@ -685,7 +685,7 @@ Ask Appium to perform the actions
|
|
685
685
|
|
686
686
|
--
|
687
687
|
|
688
|
-
##### [ACTIONS](https://github.com/appium/ruby_lib/blob/
|
688
|
+
##### [ACTIONS](https://github.com/appium/ruby_lib/blob/f0db0910ea077e04329d3e0cafb434f829760abb/lib/appium_lib/device/touch_actions.rb#L12)
|
689
689
|
|
690
690
|
> ACTIONS = [:move_to, :long_press, :press, :release, :tap, :wait, :perform]
|
691
691
|
|
@@ -693,7 +693,7 @@ Ask Appium to perform the actions
|
|
693
693
|
|
694
694
|
--
|
695
695
|
|
696
|
-
##### [COMPLEX_ACTIONS](https://github.com/appium/ruby_lib/blob/
|
696
|
+
##### [COMPLEX_ACTIONS](https://github.com/appium/ruby_lib/blob/f0db0910ea077e04329d3e0cafb434f829760abb/lib/appium_lib/device/touch_actions.rb#L13)
|
697
697
|
|
698
698
|
> COMPLEX_ACTIONS = [:swipe]
|
699
699
|
|
@@ -701,7 +701,7 @@ Ask Appium to perform the actions
|
|
701
701
|
|
702
702
|
--
|
703
703
|
|
704
|
-
##### [actions](https://github.com/appium/ruby_lib/blob/
|
704
|
+
##### [actions](https://github.com/appium/ruby_lib/blob/f0db0910ea077e04329d3e0cafb434f829760abb/lib/appium_lib/device/touch_actions.rb#L27)
|
705
705
|
|
706
706
|
> def actions
|
707
707
|
|
@@ -709,7 +709,7 @@ Returns the value of attribute actions
|
|
709
709
|
|
710
710
|
--
|
711
711
|
|
712
|
-
##### [initialize](https://github.com/appium/ruby_lib/blob/
|
712
|
+
##### [initialize](https://github.com/appium/ruby_lib/blob/f0db0910ea077e04329d3e0cafb434f829760abb/lib/appium_lib/device/touch_actions.rb#L29)
|
713
713
|
|
714
714
|
> def initialize
|
715
715
|
|
@@ -721,7 +721,7 @@ __Returns:__
|
|
721
721
|
|
722
722
|
--
|
723
723
|
|
724
|
-
##### [move_to](https://github.com/appium/ruby_lib/blob/
|
724
|
+
##### [move_to](https://github.com/appium/ruby_lib/blob/f0db0910ea077e04329d3e0cafb434f829760abb/lib/appium_lib/device/touch_actions.rb#L37)
|
725
725
|
|
726
726
|
> def move_to(opts)
|
727
727
|
|
@@ -733,7 +733,7 @@ __Parameters:__
|
|
733
733
|
|
734
734
|
--
|
735
735
|
|
736
|
-
##### [long_press](https://github.com/appium/ruby_lib/blob/
|
736
|
+
##### [long_press](https://github.com/appium/ruby_lib/blob/f0db0910ea077e04329d3e0cafb434f829760abb/lib/appium_lib/device/touch_actions.rb#L47)
|
737
737
|
|
738
738
|
> def long_press(opts)
|
739
739
|
|
@@ -751,7 +751,7 @@ __Parameters:__
|
|
751
751
|
|
752
752
|
--
|
753
753
|
|
754
|
-
##### [press](https://github.com/appium/ruby_lib/blob/
|
754
|
+
##### [press](https://github.com/appium/ruby_lib/blob/f0db0910ea077e04329d3e0cafb434f829760abb/lib/appium_lib/device/touch_actions.rb#L59)
|
755
755
|
|
756
756
|
> def press(opts)
|
757
757
|
|
@@ -764,7 +764,7 @@ __Parameters:__
|
|
764
764
|
|
765
765
|
--
|
766
766
|
|
767
|
-
##### [release](https://github.com/appium/ruby_lib/blob/
|
767
|
+
##### [release](https://github.com/appium/ruby_lib/blob/f0db0910ea077e04329d3e0cafb434f829760abb/lib/appium_lib/device/touch_actions.rb#L70)
|
768
768
|
|
769
769
|
> def release(opts=nil)
|
770
770
|
|
@@ -776,7 +776,7 @@ __Parameters:__
|
|
776
776
|
|
777
777
|
--
|
778
778
|
|
779
|
-
##### [tap](https://github.com/appium/ruby_lib/blob/
|
779
|
+
##### [tap](https://github.com/appium/ruby_lib/blob/f0db0910ea077e04329d3e0cafb434f829760abb/lib/appium_lib/device/touch_actions.rb#L81)
|
780
780
|
|
781
781
|
> def tap(opts)
|
782
782
|
|
@@ -788,7 +788,7 @@ __Parameters:__
|
|
788
788
|
|
789
789
|
--
|
790
790
|
|
791
|
-
##### [wait](https://github.com/appium/ruby_lib/blob/
|
791
|
+
##### [wait](https://github.com/appium/ruby_lib/blob/f0db0910ea077e04329d3e0cafb434f829760abb/lib/appium_lib/device/touch_actions.rb#L90)
|
792
792
|
|
793
793
|
> def wait(milliseconds)
|
794
794
|
|
@@ -800,7 +800,7 @@ __Parameters:__
|
|
800
800
|
|
801
801
|
--
|
802
802
|
|
803
|
-
##### [swipe](https://github.com/appium/ruby_lib/blob/
|
803
|
+
##### [swipe](https://github.com/appium/ruby_lib/blob/f0db0910ea077e04329d3e0cafb434f829760abb/lib/appium_lib/device/touch_actions.rb#L101)
|
804
804
|
|
805
805
|
> def swipe(opts)
|
806
806
|
|
@@ -812,7 +812,7 @@ __Parameters:__
|
|
812
812
|
|
813
813
|
--
|
814
814
|
|
815
|
-
##### [perform](https://github.com/appium/ruby_lib/blob/
|
815
|
+
##### [perform](https://github.com/appium/ruby_lib/blob/f0db0910ea077e04329d3e0cafb434f829760abb/lib/appium_lib/device/touch_actions.rb#L116)
|
816
816
|
|
817
817
|
> def perform
|
818
818
|
|
@@ -820,7 +820,7 @@ Ask the driver to perform all actions in this action chain.
|
|
820
820
|
|
821
821
|
--
|
822
822
|
|
823
|
-
##### [cancel](https://github.com/appium/ruby_lib/blob/
|
823
|
+
##### [cancel](https://github.com/appium/ruby_lib/blob/f0db0910ea077e04329d3e0cafb434f829760abb/lib/appium_lib/device/touch_actions.rb#L122)
|
824
824
|
|
825
825
|
> def cancel
|
826
826
|
|
@@ -828,7 +828,7 @@ Does nothing, currently.
|
|
828
828
|
|
829
829
|
--
|
830
830
|
|
831
|
-
##### [chain_method](https://github.com/appium/ruby_lib/blob/
|
831
|
+
##### [chain_method](https://github.com/appium/ruby_lib/blob/f0db0910ea077e04329d3e0cafb434f829760abb/lib/appium_lib/device/touch_actions.rb#L130)
|
832
832
|
|
833
833
|
> def chain_method(method, args=nil)
|
834
834
|
|
@@ -836,7 +836,7 @@ Does nothing, currently.
|
|
836
836
|
|
837
837
|
--
|
838
838
|
|
839
|
-
##### [args_with_ele_ref](https://github.com/appium/ruby_lib/blob/
|
839
|
+
##### [args_with_ele_ref](https://github.com/appium/ruby_lib/blob/f0db0910ea077e04329d3e0cafb434f829760abb/lib/appium_lib/device/touch_actions.rb#L139)
|
840
840
|
|
841
841
|
> def args_with_ele_ref(args)
|
842
842
|
|
@@ -844,7 +844,7 @@ Does nothing, currently.
|
|
844
844
|
|
845
845
|
--
|
846
846
|
|
847
|
-
##### [wait](https://github.com/appium/ruby_lib/blob/
|
847
|
+
##### [wait](https://github.com/appium/ruby_lib/blob/f0db0910ea077e04329d3e0cafb434f829760abb/lib/appium_lib/common/helper.rb#L33)
|
848
848
|
|
849
849
|
> def wait max_wait=30, interval=0.5, &block
|
850
850
|
|
@@ -871,7 +871,7 @@ __Returns:__
|
|
871
871
|
|
872
872
|
--
|
873
873
|
|
874
|
-
##### [ignore](https://github.com/appium/ruby_lib/blob/
|
874
|
+
##### [ignore](https://github.com/appium/ruby_lib/blob/f0db0910ea077e04329d3e0cafb434f829760abb/lib/appium_lib/common/helper.rb#L54)
|
875
875
|
|
876
876
|
> def ignore &block
|
877
877
|
|
@@ -879,7 +879,7 @@ Return block.call and ignore any exceptions.
|
|
879
879
|
|
880
880
|
--
|
881
881
|
|
882
|
-
##### [wait_true](https://github.com/appium/ruby_lib/blob/
|
882
|
+
##### [wait_true](https://github.com/appium/ruby_lib/blob/f0db0910ea077e04329d3e0cafb434f829760abb/lib/appium_lib/common/helper.rb#L69)
|
883
883
|
|
884
884
|
> def wait_true max_wait=30, interval=0.5, &block
|
885
885
|
|
@@ -902,7 +902,7 @@ __Returns:__
|
|
902
902
|
|
903
903
|
--
|
904
904
|
|
905
|
-
##### [back](https://github.com/appium/ruby_lib/blob/
|
905
|
+
##### [back](https://github.com/appium/ruby_lib/blob/f0db0910ea077e04329d3e0cafb434f829760abb/lib/appium_lib/common/helper.rb#L89)
|
906
906
|
|
907
907
|
> def back
|
908
908
|
|
@@ -914,7 +914,7 @@ __Returns:__
|
|
914
914
|
|
915
915
|
--
|
916
916
|
|
917
|
-
##### [session_id](https://github.com/appium/ruby_lib/blob/
|
917
|
+
##### [session_id](https://github.com/appium/ruby_lib/blob/f0db0910ea077e04329d3e0cafb434f829760abb/lib/appium_lib/common/helper.rb#L94)
|
918
918
|
|
919
919
|
> def session_id
|
920
920
|
|
@@ -922,7 +922,7 @@ For Sauce Labs reporting. Returns the current session id.
|
|
922
922
|
|
923
923
|
--
|
924
924
|
|
925
|
-
##### [xpath](https://github.com/appium/ruby_lib/blob/
|
925
|
+
##### [xpath](https://github.com/appium/ruby_lib/blob/f0db0910ea077e04329d3e0cafb434f829760abb/lib/appium_lib/common/helper.rb#L102)
|
926
926
|
|
927
927
|
> def xpath xpath_str
|
928
928
|
|
@@ -938,7 +938,7 @@ __Returns:__
|
|
938
938
|
|
939
939
|
--
|
940
940
|
|
941
|
-
##### [xpaths](https://github.com/appium/ruby_lib/blob/
|
941
|
+
##### [xpaths](https://github.com/appium/ruby_lib/blob/f0db0910ea077e04329d3e0cafb434f829760abb/lib/appium_lib/common/helper.rb#L110)
|
942
942
|
|
943
943
|
> def xpaths xpath_str
|
944
944
|
|
@@ -954,7 +954,7 @@ __Returns:__
|
|
954
954
|
|
955
955
|
--
|
956
956
|
|
957
|
-
##### [source](https://github.com/appium/ruby_lib/blob/
|
957
|
+
##### [source](https://github.com/appium/ruby_lib/blob/f0db0910ea077e04329d3e0cafb434f829760abb/lib/appium_lib/common/helper.rb#L116)
|
958
958
|
|
959
959
|
> def source
|
960
960
|
|
@@ -966,7 +966,7 @@ __Returns:__
|
|
966
966
|
|
967
967
|
--
|
968
968
|
|
969
|
-
##### [get_source](https://github.com/appium/ruby_lib/blob/
|
969
|
+
##### [get_source](https://github.com/appium/ruby_lib/blob/f0db0910ea077e04329d3e0cafb434f829760abb/lib/appium_lib/common/helper.rb#L134)
|
970
970
|
|
971
971
|
> def get_source
|
972
972
|
|
@@ -979,7 +979,7 @@ __Returns:__
|
|
979
979
|
|
980
980
|
--
|
981
981
|
|
982
|
-
##### [result](https://github.com/appium/ruby_lib/blob/
|
982
|
+
##### [result](https://github.com/appium/ruby_lib/blob/f0db0910ea077e04329d3e0cafb434f829760abb/lib/appium_lib/common/helper.rb#L141)
|
983
983
|
|
984
984
|
> def result
|
985
985
|
|
@@ -987,7 +987,7 @@ Returns the value of attribute result
|
|
987
987
|
|
988
988
|
--
|
989
989
|
|
990
|
-
##### [initialize](https://github.com/appium/ruby_lib/blob/
|
990
|
+
##### [initialize](https://github.com/appium/ruby_lib/blob/f0db0910ea077e04329d3e0cafb434f829760abb/lib/appium_lib/common/helper.rb#L143)
|
991
991
|
|
992
992
|
> def initialize
|
993
993
|
|
@@ -999,7 +999,7 @@ __Returns:__
|
|
999
999
|
|
1000
1000
|
--
|
1001
1001
|
|
1002
|
-
##### [reset](https://github.com/appium/ruby_lib/blob/
|
1002
|
+
##### [reset](https://github.com/appium/ruby_lib/blob/f0db0910ea077e04329d3e0cafb434f829760abb/lib/appium_lib/common/helper.rb#L147)
|
1003
1003
|
|
1004
1004
|
> def reset
|
1005
1005
|
|
@@ -1007,7 +1007,7 @@ __Returns:__
|
|
1007
1007
|
|
1008
1008
|
--
|
1009
1009
|
|
1010
|
-
##### [start_element](https://github.com/appium/ruby_lib/blob/
|
1010
|
+
##### [start_element](https://github.com/appium/ruby_lib/blob/f0db0910ea077e04329d3e0cafb434f829760abb/lib/appium_lib/common/helper.rb#L152)
|
1011
1011
|
|
1012
1012
|
> def start_element name, attrs = []
|
1013
1013
|
|
@@ -1015,7 +1015,7 @@ http://nokogiri.org/Nokogiri/XML/SAX/Document.html
|
|
1015
1015
|
|
1016
1016
|
--
|
1017
1017
|
|
1018
|
-
##### [formatted_result](https://github.com/appium/ruby_lib/blob/
|
1018
|
+
##### [formatted_result](https://github.com/appium/ruby_lib/blob/f0db0910ea077e04329d3e0cafb434f829760abb/lib/appium_lib/common/helper.rb#L158)
|
1019
1019
|
|
1020
1020
|
> def formatted_result
|
1021
1021
|
|
@@ -1023,7 +1023,7 @@ http://nokogiri.org/Nokogiri/XML/SAX/Document.html
|
|
1023
1023
|
|
1024
1024
|
--
|
1025
1025
|
|
1026
|
-
##### [get_page_class](https://github.com/appium/ruby_lib/blob/
|
1026
|
+
##### [get_page_class](https://github.com/appium/ruby_lib/blob/f0db0910ea077e04329d3e0cafb434f829760abb/lib/appium_lib/common/helper.rb#L169)
|
1027
1027
|
|
1028
1028
|
> def get_page_class
|
1029
1029
|
|
@@ -1031,7 +1031,7 @@ Returns a string of class counts of visible elements.
|
|
1031
1031
|
|
1032
1032
|
--
|
1033
1033
|
|
1034
|
-
##### [page_class](https://github.com/appium/ruby_lib/blob/
|
1034
|
+
##### [page_class](https://github.com/appium/ruby_lib/blob/f0db0910ea077e04329d3e0cafb434f829760abb/lib/appium_lib/common/helper.rb#L180)
|
1035
1035
|
|
1036
1036
|
> def page_class
|
1037
1037
|
|
@@ -1040,7 +1040,7 @@ Useful for appium_console.
|
|
1040
1040
|
|
1041
1041
|
--
|
1042
1042
|
|
1043
|
-
##### [px_to_window_rel](https://github.com/appium/ruby_lib/blob/
|
1043
|
+
##### [px_to_window_rel](https://github.com/appium/ruby_lib/blob/f0db0910ea077e04329d3e0cafb434f829760abb/lib/appium_lib/common/helper.rb#L190)
|
1044
1044
|
|
1045
1045
|
> def px_to_window_rel opts={}
|
1046
1046
|
|
@@ -1052,7 +1052,7 @@ px_to_window_rel x: 50, y: 150
|
|
1052
1052
|
|
1053
1053
|
--
|
1054
1054
|
|
1055
|
-
##### [xml_keys](https://github.com/appium/ruby_lib/blob/
|
1055
|
+
##### [xml_keys](https://github.com/appium/ruby_lib/blob/f0db0910ea077e04329d3e0cafb434f829760abb/lib/appium_lib/common/helper.rb#L207)
|
1056
1056
|
|
1057
1057
|
> def xml_keys target
|
1058
1058
|
|
@@ -1068,7 +1068,7 @@ __Returns:__
|
|
1068
1068
|
|
1069
1069
|
--
|
1070
1070
|
|
1071
|
-
##### [xml_values](https://github.com/appium/ruby_lib/blob/
|
1071
|
+
##### [xml_values](https://github.com/appium/ruby_lib/blob/f0db0910ea077e04329d3e0cafb434f829760abb/lib/appium_lib/common/helper.rb#L215)
|
1072
1072
|
|
1073
1073
|
> def xml_values target
|
1074
1074
|
|
@@ -1084,7 +1084,7 @@ __Returns:__
|
|
1084
1084
|
|
1085
1085
|
--
|
1086
1086
|
|
1087
|
-
##### [resolve_id](https://github.com/appium/ruby_lib/blob/
|
1087
|
+
##### [resolve_id](https://github.com/appium/ruby_lib/blob/f0db0910ea077e04329d3e0cafb434f829760abb/lib/appium_lib/common/helper.rb#L223)
|
1088
1088
|
|
1089
1089
|
> def resolve_id id
|
1090
1090
|
|
@@ -1100,7 +1100,75 @@ __Returns:__
|
|
1100
1100
|
|
1101
1101
|
--
|
1102
1102
|
|
1103
|
-
##### [
|
1103
|
+
##### [filter](https://github.com/appium/ruby_lib/blob/f0db0910ea077e04329d3e0cafb434f829760abb/lib/appium_lib/common/helper.rb#L229)
|
1104
|
+
|
1105
|
+
> def filter
|
1106
|
+
|
1107
|
+
|
1108
|
+
|
1109
|
+
--
|
1110
|
+
|
1111
|
+
##### [filter=](https://github.com/appium/ruby_lib/blob/f0db0910ea077e04329d3e0cafb434f829760abb/lib/appium_lib/common/helper.rb#L234)
|
1112
|
+
|
1113
|
+
> def filter= value
|
1114
|
+
|
1115
|
+
convert to string to support symbols
|
1116
|
+
|
1117
|
+
--
|
1118
|
+
|
1119
|
+
##### [initialize](https://github.com/appium/ruby_lib/blob/f0db0910ea077e04329d3e0cafb434f829760abb/lib/appium_lib/common/helper.rb#L240)
|
1120
|
+
|
1121
|
+
> def initialize
|
1122
|
+
|
1123
|
+
|
1124
|
+
|
1125
|
+
__Returns:__
|
1126
|
+
|
1127
|
+
[HTMLElements] a new instance of HTMLElements
|
1128
|
+
|
1129
|
+
--
|
1130
|
+
|
1131
|
+
##### [reset](https://github.com/appium/ruby_lib/blob/f0db0910ea077e04329d3e0cafb434f829760abb/lib/appium_lib/common/helper.rb#L245)
|
1132
|
+
|
1133
|
+
> def reset
|
1134
|
+
|
1135
|
+
|
1136
|
+
|
1137
|
+
--
|
1138
|
+
|
1139
|
+
##### [result](https://github.com/appium/ruby_lib/blob/f0db0910ea077e04329d3e0cafb434f829760abb/lib/appium_lib/common/helper.rb#L251)
|
1140
|
+
|
1141
|
+
> def result
|
1142
|
+
|
1143
|
+
|
1144
|
+
|
1145
|
+
--
|
1146
|
+
|
1147
|
+
##### [start_element](https://github.com/appium/ruby_lib/blob/f0db0910ea077e04329d3e0cafb434f829760abb/lib/appium_lib/common/helper.rb#L265)
|
1148
|
+
|
1149
|
+
> def start_element name, attrs = []
|
1150
|
+
|
1151
|
+
|
1152
|
+
|
1153
|
+
--
|
1154
|
+
|
1155
|
+
##### [end_element](https://github.com/appium/ruby_lib/blob/f0db0910ea077e04329d3e0cafb434f829760abb/lib/appium_lib/common/helper.rb#L275)
|
1156
|
+
|
1157
|
+
> def end_element name
|
1158
|
+
|
1159
|
+
|
1160
|
+
|
1161
|
+
--
|
1162
|
+
|
1163
|
+
##### [characters](https://github.com/appium/ruby_lib/blob/f0db0910ea077e04329d3e0cafb434f829760abb/lib/appium_lib/common/helper.rb#L281)
|
1164
|
+
|
1165
|
+
> def characters(chars)
|
1166
|
+
|
1167
|
+
|
1168
|
+
|
1169
|
+
--
|
1170
|
+
|
1171
|
+
##### [window_size](https://github.com/appium/ruby_lib/blob/f0db0910ea077e04329d3e0cafb434f829760abb/lib/appium_lib/common/element/window.rb#L5)
|
1104
1172
|
|
1105
1173
|
> def window_size
|
1106
1174
|
|
@@ -1108,7 +1176,7 @@ Get the window's size
|
|
1108
1176
|
|
1109
1177
|
--
|
1110
1178
|
|
1111
|
-
##### [result](https://github.com/appium/ruby_lib/blob/
|
1179
|
+
##### [result](https://github.com/appium/ruby_lib/blob/f0db0910ea077e04329d3e0cafb434f829760abb/lib/appium_lib/android/helper.rb#L7) android
|
1112
1180
|
|
1113
1181
|
> def result
|
1114
1182
|
|
@@ -1116,7 +1184,7 @@ TODO: Support strings.xml ids
|
|
1116
1184
|
|
1117
1185
|
--
|
1118
1186
|
|
1119
|
-
##### [keys](https://github.com/appium/ruby_lib/blob/
|
1187
|
+
##### [keys](https://github.com/appium/ruby_lib/blob/f0db0910ea077e04329d3e0cafb434f829760abb/lib/appium_lib/android/helper.rb#L7) android
|
1120
1188
|
|
1121
1189
|
> def keys
|
1122
1190
|
|
@@ -1124,7 +1192,7 @@ TODO: Support strings.xml ids
|
|
1124
1192
|
|
1125
1193
|
--
|
1126
1194
|
|
1127
|
-
##### [filter](https://github.com/appium/ruby_lib/blob/
|
1195
|
+
##### [filter](https://github.com/appium/ruby_lib/blob/f0db0910ea077e04329d3e0cafb434f829760abb/lib/appium_lib/android/helper.rb#L9) android
|
1128
1196
|
|
1129
1197
|
> def filter
|
1130
1198
|
|
@@ -1132,7 +1200,7 @@ TODO: Support strings.xml ids
|
|
1132
1200
|
|
1133
1201
|
--
|
1134
1202
|
|
1135
|
-
##### [filter=](https://github.com/appium/ruby_lib/blob/
|
1203
|
+
##### [filter=](https://github.com/appium/ruby_lib/blob/f0db0910ea077e04329d3e0cafb434f829760abb/lib/appium_lib/android/helper.rb#L14) android
|
1136
1204
|
|
1137
1205
|
> def filter= value
|
1138
1206
|
|
@@ -1140,7 +1208,7 @@ convert to string to support symbols
|
|
1140
1208
|
|
1141
1209
|
--
|
1142
1210
|
|
1143
|
-
##### [initialize](https://github.com/appium/ruby_lib/blob/
|
1211
|
+
##### [initialize](https://github.com/appium/ruby_lib/blob/f0db0910ea077e04329d3e0cafb434f829760abb/lib/appium_lib/android/helper.rb#L20) android
|
1144
1212
|
|
1145
1213
|
> def initialize
|
1146
1214
|
|
@@ -1152,7 +1220,7 @@ __Returns:__
|
|
1152
1220
|
|
1153
1221
|
--
|
1154
1222
|
|
1155
|
-
##### [reset](https://github.com/appium/ruby_lib/blob/
|
1223
|
+
##### [reset](https://github.com/appium/ruby_lib/blob/f0db0910ea077e04329d3e0cafb434f829760abb/lib/appium_lib/android/helper.rb#L25) android
|
1156
1224
|
|
1157
1225
|
> def reset
|
1158
1226
|
|
@@ -1160,7 +1228,7 @@ __Returns:__
|
|
1160
1228
|
|
1161
1229
|
--
|
1162
1230
|
|
1163
|
-
##### [start_element](https://github.com/appium/ruby_lib/blob/
|
1231
|
+
##### [start_element](https://github.com/appium/ruby_lib/blob/f0db0910ea077e04329d3e0cafb434f829760abb/lib/appium_lib/android/helper.rb#L31) android
|
1164
1232
|
|
1165
1233
|
> def start_element name, attrs = []
|
1166
1234
|
|
@@ -1168,7 +1236,7 @@ http://nokogiri.org/Nokogiri/XML/SAX/Document.html
|
|
1168
1236
|
|
1169
1237
|
--
|
1170
1238
|
|
1171
|
-
##### [get_android_inspect](https://github.com/appium/ruby_lib/blob/
|
1239
|
+
##### [get_android_inspect](https://github.com/appium/ruby_lib/blob/f0db0910ea077e04329d3e0cafb434f829760abb/lib/appium_lib/android/helper.rb#L88) android
|
1172
1240
|
|
1173
1241
|
> def get_android_inspect class_name=false
|
1174
1242
|
|
@@ -1187,12 +1255,13 @@ __Returns:__
|
|
1187
1255
|
|
1188
1256
|
--
|
1189
1257
|
|
1190
|
-
##### [page](https://github.com/appium/ruby_lib/blob/
|
1258
|
+
##### [page](https://github.com/appium/ruby_lib/blob/f0db0910ea077e04329d3e0cafb434f829760abb/lib/appium_lib/android/helper.rb#L107) android
|
1191
1259
|
|
1192
1260
|
> def page opts={}
|
1193
1261
|
|
1194
1262
|
Intended for use with console.
|
1195
1263
|
Inspects and prints the current page.
|
1264
|
+
Will return XHTML for Web contexts because of a quirk with Nokogiri.
|
1196
1265
|
if nil (default) then all classes will be inspected
|
1197
1266
|
|
1198
1267
|
__Parameters:__
|
@@ -1205,17 +1274,19 @@ __Returns:__
|
|
1205
1274
|
|
1206
1275
|
--
|
1207
1276
|
|
1208
|
-
##### [current_app](https://github.com/appium/ruby_lib/blob/
|
1277
|
+
##### [current_app](https://github.com/appium/ruby_lib/blob/f0db0910ea077e04329d3e0cafb434f829760abb/lib/appium_lib/android/helper.rb#L118) android
|
1209
1278
|
|
1210
1279
|
> def current_app
|
1211
1280
|
|
1212
1281
|
Lists package, activity, and adb shell am start -n value for current app.
|
1213
1282
|
Works on local host only (not remote).
|
1214
1283
|
noinspection RubyArgCount
|
1284
|
+
example line:
|
1285
|
+
"mFocusedApp=AppWindowToken{b1420058 token=Token{b128add0 ActivityRecord{b1264d10 u0 com.example.android.apis/.ApiDemos t23}}}"
|
1215
1286
|
|
1216
1287
|
--
|
1217
1288
|
|
1218
|
-
##### [id](https://github.com/appium/ruby_lib/blob/
|
1289
|
+
##### [id](https://github.com/appium/ruby_lib/blob/f0db0910ea077e04329d3e0cafb434f829760abb/lib/appium_lib/android/helper.rb#L147) android
|
1219
1290
|
|
1220
1291
|
> def id id
|
1221
1292
|
|
@@ -1231,7 +1302,7 @@ __Returns:__
|
|
1231
1302
|
|
1232
1303
|
--
|
1233
1304
|
|
1234
|
-
##### [ids](https://github.com/appium/ruby_lib/blob/
|
1305
|
+
##### [ids](https://github.com/appium/ruby_lib/blob/f0db0910ea077e04329d3e0cafb434f829760abb/lib/appium_lib/android/helper.rb#L154) android
|
1235
1306
|
|
1236
1307
|
> def ids id
|
1237
1308
|
|
@@ -1247,7 +1318,7 @@ __Returns:__
|
|
1247
1318
|
|
1248
1319
|
--
|
1249
1320
|
|
1250
|
-
##### [ele_index](https://github.com/appium/ruby_lib/blob/
|
1321
|
+
##### [ele_index](https://github.com/appium/ruby_lib/blob/f0db0910ea077e04329d3e0cafb434f829760abb/lib/appium_lib/android/helper.rb#L162) android
|
1251
1322
|
|
1252
1323
|
> def ele_index class_name, index
|
1253
1324
|
|
@@ -1265,7 +1336,7 @@ __Returns:__
|
|
1265
1336
|
|
1266
1337
|
--
|
1267
1338
|
|
1268
|
-
##### [find_ele_by_attr](https://github.com/appium/ruby_lib/blob/
|
1339
|
+
##### [find_ele_by_attr](https://github.com/appium/ruby_lib/blob/f0db0910ea077e04329d3e0cafb434f829760abb/lib/appium_lib/android/helper.rb#L180) android
|
1269
1340
|
|
1270
1341
|
> def find_ele_by_attr class_name, attr, value
|
1271
1342
|
|
@@ -1285,7 +1356,7 @@ __Returns:__
|
|
1285
1356
|
|
1286
1357
|
--
|
1287
1358
|
|
1288
|
-
##### [find_eles_by_attr](https://github.com/appium/ruby_lib/blob/
|
1359
|
+
##### [find_eles_by_attr](https://github.com/appium/ruby_lib/blob/f0db0910ea077e04329d3e0cafb434f829760abb/lib/appium_lib/android/helper.rb#L189) android
|
1289
1360
|
|
1290
1361
|
> def find_eles_by_attr class_name, attr, value
|
1291
1362
|
|
@@ -1305,7 +1376,7 @@ __Returns:__
|
|
1305
1376
|
|
1306
1377
|
--
|
1307
1378
|
|
1308
|
-
##### [find_ele_by_attr_include](https://github.com/appium/ruby_lib/blob/
|
1379
|
+
##### [find_ele_by_attr_include](https://github.com/appium/ruby_lib/blob/f0db0910ea077e04329d3e0cafb434f829760abb/lib/appium_lib/android/helper.rb#L203) android
|
1309
1380
|
|
1310
1381
|
> def find_ele_by_attr_include class_name, attr, value
|
1311
1382
|
|
@@ -1325,7 +1396,7 @@ __Returns:__
|
|
1325
1396
|
|
1326
1397
|
--
|
1327
1398
|
|
1328
|
-
##### [find_eles_by_attr_include](https://github.com/appium/ruby_lib/blob/
|
1399
|
+
##### [find_eles_by_attr_include](https://github.com/appium/ruby_lib/blob/f0db0910ea077e04329d3e0cafb434f829760abb/lib/appium_lib/android/helper.rb#L212) android
|
1329
1400
|
|
1330
1401
|
> def find_eles_by_attr_include class_name, attr, value
|
1331
1402
|
|
@@ -1345,7 +1416,7 @@ __Returns:__
|
|
1345
1416
|
|
1346
1417
|
--
|
1347
1418
|
|
1348
|
-
##### [first_ele](https://github.com/appium/ruby_lib/blob/
|
1419
|
+
##### [first_ele](https://github.com/appium/ruby_lib/blob/f0db0910ea077e04329d3e0cafb434f829760abb/lib/appium_lib/android/helper.rb#L219) android
|
1349
1420
|
|
1350
1421
|
> def first_ele class_name
|
1351
1422
|
|
@@ -1361,7 +1432,7 @@ __Returns:__
|
|
1361
1432
|
|
1362
1433
|
--
|
1363
1434
|
|
1364
|
-
##### [last_ele](https://github.com/appium/ruby_lib/blob/
|
1435
|
+
##### [last_ele](https://github.com/appium/ruby_lib/blob/f0db0910ea077e04329d3e0cafb434f829760abb/lib/appium_lib/android/helper.rb#L227) android
|
1365
1436
|
|
1366
1437
|
> def last_ele class_name
|
1367
1438
|
|
@@ -1377,7 +1448,7 @@ __Returns:__
|
|
1377
1448
|
|
1378
1449
|
--
|
1379
1450
|
|
1380
|
-
##### [tag](https://github.com/appium/ruby_lib/blob/
|
1451
|
+
##### [tag](https://github.com/appium/ruby_lib/blob/f0db0910ea077e04329d3e0cafb434f829760abb/lib/appium_lib/android/helper.rb#L235) android
|
1381
1452
|
|
1382
1453
|
> def tag class_name
|
1383
1454
|
|
@@ -1393,7 +1464,7 @@ __Returns:__
|
|
1393
1464
|
|
1394
1465
|
--
|
1395
1466
|
|
1396
|
-
##### [tags](https://github.com/appium/ruby_lib/blob/
|
1467
|
+
##### [tags](https://github.com/appium/ruby_lib/blob/f0db0910ea077e04329d3e0cafb434f829760abb/lib/appium_lib/android/helper.rb#L243) android
|
1397
1468
|
|
1398
1469
|
> def tags class_name
|
1399
1470
|
|
@@ -1409,7 +1480,7 @@ __Returns:__
|
|
1409
1480
|
|
1410
1481
|
--
|
1411
1482
|
|
1412
|
-
##### [xpath_visible_contains](https://github.com/appium/ruby_lib/blob/
|
1483
|
+
##### [xpath_visible_contains](https://github.com/appium/ruby_lib/blob/f0db0910ea077e04329d3e0cafb434f829760abb/lib/appium_lib/android/helper.rb#L278) android
|
1413
1484
|
|
1414
1485
|
> def xpath_visible_contains element, value
|
1415
1486
|
|
@@ -1427,7 +1498,7 @@ __Returns:__
|
|
1427
1498
|
|
1428
1499
|
--
|
1429
1500
|
|
1430
|
-
##### [xpaths_visible_contains](https://github.com/appium/ruby_lib/blob/
|
1501
|
+
##### [xpaths_visible_contains](https://github.com/appium/ruby_lib/blob/f0db0910ea077e04329d3e0cafb434f829760abb/lib/appium_lib/android/helper.rb#L286) android
|
1431
1502
|
|
1432
1503
|
> def xpaths_visible_contains element, value
|
1433
1504
|
|
@@ -1445,7 +1516,7 @@ __Returns:__
|
|
1445
1516
|
|
1446
1517
|
--
|
1447
1518
|
|
1448
|
-
##### [xpath_visible_exact](https://github.com/appium/ruby_lib/blob/
|
1519
|
+
##### [xpath_visible_exact](https://github.com/appium/ruby_lib/blob/f0db0910ea077e04329d3e0cafb434f829760abb/lib/appium_lib/android/helper.rb#L312) android
|
1449
1520
|
|
1450
1521
|
> def xpath_visible_exact element, value
|
1451
1522
|
|
@@ -1463,7 +1534,7 @@ __Returns:__
|
|
1463
1534
|
|
1464
1535
|
--
|
1465
1536
|
|
1466
|
-
##### [xpaths_visible_exact](https://github.com/appium/ruby_lib/blob/
|
1537
|
+
##### [xpaths_visible_exact](https://github.com/appium/ruby_lib/blob/f0db0910ea077e04329d3e0cafb434f829760abb/lib/appium_lib/android/helper.rb#L320) android
|
1467
1538
|
|
1468
1539
|
> def xpaths_visible_exact element, value
|
1469
1540
|
|
@@ -1481,7 +1552,7 @@ __Returns:__
|
|
1481
1552
|
|
1482
1553
|
--
|
1483
1554
|
|
1484
|
-
##### [TextView](https://github.com/appium/ruby_lib/blob/
|
1555
|
+
##### [TextView](https://github.com/appium/ruby_lib/blob/f0db0910ea077e04329d3e0cafb434f829760abb/lib/appium_lib/android/element/text.rb#L4) android
|
1485
1556
|
|
1486
1557
|
> TextView = 'android.widget.TextView'
|
1487
1558
|
|
@@ -1489,7 +1560,7 @@ __Returns:__
|
|
1489
1560
|
|
1490
1561
|
--
|
1491
1562
|
|
1492
|
-
##### [text](https://github.com/appium/ruby_lib/blob/
|
1563
|
+
##### [text](https://github.com/appium/ruby_lib/blob/f0db0910ea077e04329d3e0cafb434f829760abb/lib/appium_lib/android/element/text.rb#L10) android
|
1493
1564
|
|
1494
1565
|
> def text value
|
1495
1566
|
|
@@ -1506,7 +1577,7 @@ __Returns:__
|
|
1506
1577
|
|
1507
1578
|
--
|
1508
1579
|
|
1509
|
-
##### [texts](https://github.com/appium/ruby_lib/blob/
|
1580
|
+
##### [texts](https://github.com/appium/ruby_lib/blob/f0db0910ea077e04329d3e0cafb434f829760abb/lib/appium_lib/android/element/text.rb#L19) android
|
1510
1581
|
|
1511
1582
|
> def texts value=false
|
1512
1583
|
|
@@ -1523,7 +1594,7 @@ __Returns:__
|
|
1523
1594
|
|
1524
1595
|
--
|
1525
1596
|
|
1526
|
-
##### [first_text](https://github.com/appium/ruby_lib/blob/
|
1597
|
+
##### [first_text](https://github.com/appium/ruby_lib/blob/f0db0910ea077e04329d3e0cafb434f829760abb/lib/appium_lib/android/element/text.rb#L26) android
|
1527
1598
|
|
1528
1599
|
> def first_text
|
1529
1600
|
|
@@ -1535,7 +1606,7 @@ __Returns:__
|
|
1535
1606
|
|
1536
1607
|
--
|
1537
1608
|
|
1538
|
-
##### [last_text](https://github.com/appium/ruby_lib/blob/
|
1609
|
+
##### [last_text](https://github.com/appium/ruby_lib/blob/f0db0910ea077e04329d3e0cafb434f829760abb/lib/appium_lib/android/element/text.rb#L32) android
|
1539
1610
|
|
1540
1611
|
> def last_text
|
1541
1612
|
|
@@ -1547,7 +1618,7 @@ __Returns:__
|
|
1547
1618
|
|
1548
1619
|
--
|
1549
1620
|
|
1550
|
-
##### [text_exact](https://github.com/appium/ruby_lib/blob/
|
1621
|
+
##### [text_exact](https://github.com/appium/ruby_lib/blob/f0db0910ea077e04329d3e0cafb434f829760abb/lib/appium_lib/android/element/text.rb#L39) android
|
1551
1622
|
|
1552
1623
|
> def text_exact value
|
1553
1624
|
|
@@ -1563,7 +1634,7 @@ __Returns:__
|
|
1563
1634
|
|
1564
1635
|
--
|
1565
1636
|
|
1566
|
-
##### [texts_exact](https://github.com/appium/ruby_lib/blob/
|
1637
|
+
##### [texts_exact](https://github.com/appium/ruby_lib/blob/f0db0910ea077e04329d3e0cafb434f829760abb/lib/appium_lib/android/element/text.rb#L46) android
|
1567
1638
|
|
1568
1639
|
> def texts_exact value
|
1569
1640
|
|
@@ -1579,7 +1650,7 @@ __Returns:__
|
|
1579
1650
|
|
1580
1651
|
--
|
1581
1652
|
|
1582
|
-
##### [alert_click](https://github.com/appium/ruby_lib/blob/
|
1653
|
+
##### [alert_click](https://github.com/appium/ruby_lib/blob/f0db0910ea077e04329d3e0cafb434f829760abb/lib/appium_lib/android/element/alert.rb#L6) android
|
1583
1654
|
|
1584
1655
|
> def alert_click value
|
1585
1656
|
|
@@ -1595,7 +1666,7 @@ __Returns:__
|
|
1595
1666
|
|
1596
1667
|
--
|
1597
1668
|
|
1598
|
-
##### [alert_accept](https://github.com/appium/ruby_lib/blob/
|
1669
|
+
##### [alert_accept](https://github.com/appium/ruby_lib/blob/f0db0910ea077e04329d3e0cafb434f829760abb/lib/appium_lib/android/element/alert.rb#L13) android
|
1599
1670
|
|
1600
1671
|
> def alert_accept
|
1601
1672
|
|
@@ -1608,7 +1679,7 @@ __Returns:__
|
|
1608
1679
|
|
1609
1680
|
--
|
1610
1681
|
|
1611
|
-
##### [alert_accept_text](https://github.com/appium/ruby_lib/blob/
|
1682
|
+
##### [alert_accept_text](https://github.com/appium/ruby_lib/blob/f0db0910ea077e04329d3e0cafb434f829760abb/lib/appium_lib/android/element/alert.rb#L20) android
|
1612
1683
|
|
1613
1684
|
> def alert_accept_text
|
1614
1685
|
|
@@ -1621,7 +1692,7 @@ __Returns:__
|
|
1621
1692
|
|
1622
1693
|
--
|
1623
1694
|
|
1624
|
-
##### [alert_dismiss](https://github.com/appium/ruby_lib/blob/
|
1695
|
+
##### [alert_dismiss](https://github.com/appium/ruby_lib/blob/f0db0910ea077e04329d3e0cafb434f829760abb/lib/appium_lib/android/element/alert.rb#L27) android
|
1625
1696
|
|
1626
1697
|
> def alert_dismiss
|
1627
1698
|
|
@@ -1634,7 +1705,7 @@ __Returns:__
|
|
1634
1705
|
|
1635
1706
|
--
|
1636
1707
|
|
1637
|
-
##### [alert_dismiss_text](https://github.com/appium/ruby_lib/blob/
|
1708
|
+
##### [alert_dismiss_text](https://github.com/appium/ruby_lib/blob/f0db0910ea077e04329d3e0cafb434f829760abb/lib/appium_lib/android/element/alert.rb#L34) android
|
1638
1709
|
|
1639
1710
|
> def alert_dismiss_text
|
1640
1711
|
|
@@ -1647,7 +1718,7 @@ __Returns:__
|
|
1647
1718
|
|
1648
1719
|
--
|
1649
1720
|
|
1650
|
-
##### [uiautomator_find](https://github.com/appium/ruby_lib/blob/
|
1721
|
+
##### [uiautomator_find](https://github.com/appium/ruby_lib/blob/f0db0910ea077e04329d3e0cafb434f829760abb/lib/appium_lib/android/mobile_methods.rb#L10) android
|
1651
1722
|
|
1652
1723
|
> def uiautomator_find
|
1653
1724
|
|
@@ -1659,7 +1730,7 @@ find_element/s can be used with a [UISelector](http://developer.android.com/tool
|
|
1659
1730
|
|
1660
1731
|
--
|
1661
1732
|
|
1662
|
-
##### [Button](https://github.com/appium/ruby_lib/blob/
|
1733
|
+
##### [Button](https://github.com/appium/ruby_lib/blob/f0db0910ea077e04329d3e0cafb434f829760abb/lib/appium_lib/android/element/button.rb#L4) android
|
1663
1734
|
|
1664
1735
|
> Button = 'android.widget.Button'
|
1665
1736
|
|
@@ -1667,7 +1738,7 @@ find_element/s can be used with a [UISelector](http://developer.android.com/tool
|
|
1667
1738
|
|
1668
1739
|
--
|
1669
1740
|
|
1670
|
-
##### [ImageButton](https://github.com/appium/ruby_lib/blob/
|
1741
|
+
##### [ImageButton](https://github.com/appium/ruby_lib/blob/f0db0910ea077e04329d3e0cafb434f829760abb/lib/appium_lib/android/element/button.rb#L5) android
|
1671
1742
|
|
1672
1743
|
> ImageButton = 'android.widget.ImageButton'
|
1673
1744
|
|
@@ -1675,7 +1746,7 @@ find_element/s can be used with a [UISelector](http://developer.android.com/tool
|
|
1675
1746
|
|
1676
1747
|
--
|
1677
1748
|
|
1678
|
-
##### [button](https://github.com/appium/ruby_lib/blob/
|
1749
|
+
##### [button](https://github.com/appium/ruby_lib/blob/f0db0910ea077e04329d3e0cafb434f829760abb/lib/appium_lib/android/element/button.rb#L39) android
|
1679
1750
|
|
1680
1751
|
> def button value
|
1681
1752
|
|
@@ -1692,7 +1763,7 @@ __Returns:__
|
|
1692
1763
|
|
1693
1764
|
--
|
1694
1765
|
|
1695
|
-
##### [buttons](https://github.com/appium/ruby_lib/blob/
|
1766
|
+
##### [buttons](https://github.com/appium/ruby_lib/blob/f0db0910ea077e04329d3e0cafb434f829760abb/lib/appium_lib/android/element/button.rb#L56) android
|
1696
1767
|
|
1697
1768
|
> def buttons value=false
|
1698
1769
|
|
@@ -1709,7 +1780,7 @@ __Returns:__
|
|
1709
1780
|
|
1710
1781
|
--
|
1711
1782
|
|
1712
|
-
##### [first_button](https://github.com/appium/ruby_lib/blob/
|
1783
|
+
##### [first_button](https://github.com/appium/ruby_lib/blob/f0db0910ea077e04329d3e0cafb434f829760abb/lib/appium_lib/android/element/button.rb#L63) android
|
1713
1784
|
|
1714
1785
|
> def first_button
|
1715
1786
|
|
@@ -1721,7 +1792,7 @@ __Returns:__
|
|
1721
1792
|
|
1722
1793
|
--
|
1723
1794
|
|
1724
|
-
##### [last_button](https://github.com/appium/ruby_lib/blob/
|
1795
|
+
##### [last_button](https://github.com/appium/ruby_lib/blob/f0db0910ea077e04329d3e0cafb434f829760abb/lib/appium_lib/android/element/button.rb#L69) android
|
1725
1796
|
|
1726
1797
|
> def last_button
|
1727
1798
|
|
@@ -1733,7 +1804,7 @@ __Returns:__
|
|
1733
1804
|
|
1734
1805
|
--
|
1735
1806
|
|
1736
|
-
##### [button_exact](https://github.com/appium/ruby_lib/blob/
|
1807
|
+
##### [button_exact](https://github.com/appium/ruby_lib/blob/f0db0910ea077e04329d3e0cafb434f829760abb/lib/appium_lib/android/element/button.rb#L76) android
|
1737
1808
|
|
1738
1809
|
> def button_exact value
|
1739
1810
|
|
@@ -1749,7 +1820,7 @@ __Returns:__
|
|
1749
1820
|
|
1750
1821
|
--
|
1751
1822
|
|
1752
|
-
##### [buttons_exact](https://github.com/appium/ruby_lib/blob/
|
1823
|
+
##### [buttons_exact](https://github.com/appium/ruby_lib/blob/f0db0910ea077e04329d3e0cafb434f829760abb/lib/appium_lib/android/element/button.rb#L83) android
|
1753
1824
|
|
1754
1825
|
> def buttons_exact value
|
1755
1826
|
|
@@ -1765,7 +1836,7 @@ __Returns:__
|
|
1765
1836
|
|
1766
1837
|
--
|
1767
1838
|
|
1768
|
-
##### [find](https://github.com/appium/ruby_lib/blob/
|
1839
|
+
##### [find](https://github.com/appium/ruby_lib/blob/f0db0910ea077e04329d3e0cafb434f829760abb/lib/appium_lib/android/element/generic.rb#L7) android
|
1769
1840
|
|
1770
1841
|
> def find value
|
1771
1842
|
|
@@ -1781,7 +1852,7 @@ __Returns:__
|
|
1781
1852
|
|
1782
1853
|
--
|
1783
1854
|
|
1784
|
-
##### [finds](https://github.com/appium/ruby_lib/blob/
|
1855
|
+
##### [finds](https://github.com/appium/ruby_lib/blob/f0db0910ea077e04329d3e0cafb434f829760abb/lib/appium_lib/android/element/generic.rb#L14) android
|
1785
1856
|
|
1786
1857
|
> def finds value
|
1787
1858
|
|
@@ -1797,7 +1868,7 @@ __Returns:__
|
|
1797
1868
|
|
1798
1869
|
--
|
1799
1870
|
|
1800
|
-
##### [find_exact](https://github.com/appium/ruby_lib/blob/
|
1871
|
+
##### [find_exact](https://github.com/appium/ruby_lib/blob/f0db0910ea077e04329d3e0cafb434f829760abb/lib/appium_lib/android/element/generic.rb#L21) android
|
1801
1872
|
|
1802
1873
|
> def find_exact value
|
1803
1874
|
|
@@ -1813,7 +1884,7 @@ __Returns:__
|
|
1813
1884
|
|
1814
1885
|
--
|
1815
1886
|
|
1816
|
-
##### [finds_exact](https://github.com/appium/ruby_lib/blob/
|
1887
|
+
##### [finds_exact](https://github.com/appium/ruby_lib/blob/f0db0910ea077e04329d3e0cafb434f829760abb/lib/appium_lib/android/element/generic.rb#L28) android
|
1817
1888
|
|
1818
1889
|
> def finds_exact value
|
1819
1890
|
|
@@ -1829,7 +1900,7 @@ __Returns:__
|
|
1829
1900
|
|
1830
1901
|
--
|
1831
1902
|
|
1832
|
-
##### [scroll_to](https://github.com/appium/ruby_lib/blob/
|
1903
|
+
##### [scroll_to](https://github.com/appium/ruby_lib/blob/f0db0910ea077e04329d3e0cafb434f829760abb/lib/appium_lib/android/element/generic.rb#L35) android
|
1833
1904
|
|
1834
1905
|
> def scroll_to text
|
1835
1906
|
|
@@ -1845,7 +1916,7 @@ __Returns:__
|
|
1845
1916
|
|
1846
1917
|
--
|
1847
1918
|
|
1848
|
-
##### [scroll_to_exact](https://github.com/appium/ruby_lib/blob/
|
1919
|
+
##### [scroll_to_exact](https://github.com/appium/ruby_lib/blob/f0db0910ea077e04329d3e0cafb434f829760abb/lib/appium_lib/android/element/generic.rb#L48) android
|
1849
1920
|
|
1850
1921
|
> def scroll_to_exact text
|
1851
1922
|
|
@@ -1861,7 +1932,7 @@ __Returns:__
|
|
1861
1932
|
|
1862
1933
|
--
|
1863
1934
|
|
1864
|
-
##### [EditText](https://github.com/appium/ruby_lib/blob/
|
1935
|
+
##### [EditText](https://github.com/appium/ruby_lib/blob/f0db0910ea077e04329d3e0cafb434f829760abb/lib/appium_lib/android/element/textfield.rb#L3) android
|
1865
1936
|
|
1866
1937
|
> EditText = 'android.widget.EditText'
|
1867
1938
|
|
@@ -1869,7 +1940,7 @@ __Returns:__
|
|
1869
1940
|
|
1870
1941
|
--
|
1871
1942
|
|
1872
|
-
##### [textfield](https://github.com/appium/ruby_lib/blob/
|
1943
|
+
##### [textfield](https://github.com/appium/ruby_lib/blob/f0db0910ea077e04329d3e0cafb434f829760abb/lib/appium_lib/android/element/textfield.rb#L9) android
|
1873
1944
|
|
1874
1945
|
> def textfield value
|
1875
1946
|
|
@@ -1886,7 +1957,7 @@ __Returns:__
|
|
1886
1957
|
|
1887
1958
|
--
|
1888
1959
|
|
1889
|
-
##### [textfields](https://github.com/appium/ruby_lib/blob/
|
1960
|
+
##### [textfields](https://github.com/appium/ruby_lib/blob/f0db0910ea077e04329d3e0cafb434f829760abb/lib/appium_lib/android/element/textfield.rb#L18) android
|
1890
1961
|
|
1891
1962
|
> def textfields value=false
|
1892
1963
|
|
@@ -1903,7 +1974,7 @@ __Returns:__
|
|
1903
1974
|
|
1904
1975
|
--
|
1905
1976
|
|
1906
|
-
##### [first_textfield](https://github.com/appium/ruby_lib/blob/
|
1977
|
+
##### [first_textfield](https://github.com/appium/ruby_lib/blob/f0db0910ea077e04329d3e0cafb434f829760abb/lib/appium_lib/android/element/textfield.rb#L25) android
|
1907
1978
|
|
1908
1979
|
> def first_textfield
|
1909
1980
|
|
@@ -1915,7 +1986,7 @@ __Returns:__
|
|
1915
1986
|
|
1916
1987
|
--
|
1917
1988
|
|
1918
|
-
##### [last_textfield](https://github.com/appium/ruby_lib/blob/
|
1989
|
+
##### [last_textfield](https://github.com/appium/ruby_lib/blob/f0db0910ea077e04329d3e0cafb434f829760abb/lib/appium_lib/android/element/textfield.rb#L31) android
|
1919
1990
|
|
1920
1991
|
> def last_textfield
|
1921
1992
|
|
@@ -1927,7 +1998,7 @@ __Returns:__
|
|
1927
1998
|
|
1928
1999
|
--
|
1929
2000
|
|
1930
|
-
##### [textfield_exact](https://github.com/appium/ruby_lib/blob/
|
2001
|
+
##### [textfield_exact](https://github.com/appium/ruby_lib/blob/f0db0910ea077e04329d3e0cafb434f829760abb/lib/appium_lib/android/element/textfield.rb#L38) android
|
1931
2002
|
|
1932
2003
|
> def textfield_exact value
|
1933
2004
|
|
@@ -1943,7 +2014,7 @@ __Returns:__
|
|
1943
2014
|
|
1944
2015
|
--
|
1945
2016
|
|
1946
|
-
##### [textfields_exact](https://github.com/appium/ruby_lib/blob/
|
2017
|
+
##### [textfields_exact](https://github.com/appium/ruby_lib/blob/f0db0910ea077e04329d3e0cafb434f829760abb/lib/appium_lib/android/element/textfield.rb#L45) android
|
1947
2018
|
|
1948
2019
|
> def textfields_exact value
|
1949
2020
|
|
@@ -1959,7 +2030,7 @@ __Returns:__
|
|
1959
2030
|
|
1960
2031
|
--
|
1961
2032
|
|
1962
|
-
##### [value](https://github.com/appium/ruby_lib/blob/
|
2033
|
+
##### [value](https://github.com/appium/ruby_lib/blob/f0db0910ea077e04329d3e0cafb434f829760abb/lib/appium_lib/common/patch.rb#L10)
|
1963
2034
|
|
1964
2035
|
> def value
|
1965
2036
|
|
@@ -1969,7 +2040,7 @@ Fixes NoMethodError: undefined method `value' for Selenium::WebDriver::Element
|
|
1969
2040
|
|
1970
2041
|
--
|
1971
2042
|
|
1972
|
-
##### [name](https://github.com/appium/ruby_lib/blob/
|
2043
|
+
##### [name](https://github.com/appium/ruby_lib/blob/f0db0910ea077e04329d3e0cafb434f829760abb/lib/appium_lib/common/patch.rb#L17)
|
1973
2044
|
|
1974
2045
|
> def name
|
1975
2046
|
|
@@ -1979,7 +2050,7 @@ Fixes NoMethodError: undefined method `name' for Selenium::WebDriver::Element
|
|
1979
2050
|
|
1980
2051
|
--
|
1981
2052
|
|
1982
|
-
##### [location_rel](https://github.com/appium/ruby_lib/blob/
|
2053
|
+
##### [location_rel](https://github.com/appium/ruby_lib/blob/f0db0910ea077e04329d3e0cafb434f829760abb/lib/appium_lib/common/patch.rb#L29)
|
1983
2054
|
|
1984
2055
|
> def location_rel
|
1985
2056
|
|