appium_lib 2.1.0 → 3.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/android_tests/lib/android/specs/android/element/button.rb +2 -2
- data/android_tests/lib/android/specs/android/helper.rb +5 -6
- data/android_tests/lib/android/specs/common/device.rb +10 -13
- data/android_tests/lib/android/specs/common/helper.rb +0 -14
- data/android_tests/lib/android/specs/driver.rb +11 -3
- data/android_tests/lib/run.rb +1 -0
- data/docs/android_docs.md +159 -239
- data/docs/ios_docs.md +147 -147
- data/lib/appium_lib/android/dynamic.rb +3 -0
- data/lib/appium_lib/android/element/button.rb +39 -16
- data/lib/appium_lib/android/element/generic.rb +4 -4
- data/lib/appium_lib/android/element/text.rb +4 -4
- data/lib/appium_lib/android/element/textfield.rb +4 -4
- data/lib/appium_lib/android/helper.rb +77 -106
- data/lib/appium_lib/common/patch.rb +1 -1
- data/lib/appium_lib/common/version.rb +2 -2
- data/lib/appium_lib/device/device.rb +13 -6
- data/release_notes.md +9 -0
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 8f7affb652d9661da57195e3a2f904f476dc9148
|
4
|
+
data.tar.gz: 38d15ff99fd98a893d3d75cef3b7449c406bc231
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: e310452ff41d1333feaa2ab8b1d7f9c310362e5a9d6b8ab48db82c502e24843d776a7153213ef3de152db2fa22e267cbb312fec6398affc9d20941333f759528
|
7
|
+
data.tar.gz: 9f56997abffa4f348c4cbb1bbc4385d27ab8c2bc77e4007e01c2500984e0aa79ce5b81eedda188c9665b8915554e9b2b3c62b3a2c383128abba93d1ab5d7d833
|
@@ -20,7 +20,7 @@ describe 'android/element/button' do
|
|
20
20
|
|
21
21
|
t 'button' do
|
22
22
|
# by index
|
23
|
-
wait { button(1).name.must_equal fade_in }
|
23
|
+
2.times { wait { button(1).name.must_equal fade_in } }
|
24
24
|
|
25
25
|
# by name contains
|
26
26
|
wait { button('ade').name.must_equal fade_in }
|
@@ -45,7 +45,7 @@ describe 'android/element/button' do
|
|
45
45
|
end
|
46
46
|
|
47
47
|
t 'buttons_exact' do
|
48
|
-
wait { buttons_exact(fade_in).first.name.must_equal fade_in }
|
48
|
+
2.times { wait { buttons_exact(fade_in).first.name.must_equal fade_in } }
|
49
49
|
end
|
50
50
|
|
51
51
|
t { after_last }
|
@@ -68,11 +68,10 @@ describe 'android/helper' do
|
|
68
68
|
end
|
69
69
|
|
70
70
|
t 'find by id' do
|
71
|
-
wait
|
72
|
-
|
73
|
-
|
74
|
-
|
75
|
-
2.times { back }
|
76
|
-
end
|
71
|
+
wait { find('accessibility').click }
|
72
|
+
wait { find('accessibility node provider').click }
|
73
|
+
wait { id 'accessibility_node_provider' } # Accessibility/Accessibility Node Provider
|
74
|
+
2.times { back }
|
77
75
|
end
|
76
|
+
|
78
77
|
end
|
@@ -41,14 +41,14 @@ describe 'common/device' do
|
|
41
41
|
end
|
42
42
|
|
43
43
|
t 'set_context' do
|
44
|
-
wait
|
45
|
-
|
46
|
-
|
47
|
-
|
48
|
-
|
49
|
-
|
44
|
+
wait { scroll_to('Views').click }
|
45
|
+
wait { scroll_to('WebView').click }
|
46
|
+
wait { set_context 'WEBVIEW' }
|
47
|
+
wait { current_context.must_equal 'WEBVIEW_1' }
|
48
|
+
|
49
|
+
wait { set_context 'NATIVE_APP' }
|
50
|
+
wait { current_context.must_equal 'NATIVE_APP' }
|
50
51
|
|
51
|
-
set_context 'NATIVE_APP'
|
52
52
|
2.times { back; sleep 1 }
|
53
53
|
end
|
54
54
|
|
@@ -66,10 +66,7 @@ describe 'common/device' do
|
|
66
66
|
end
|
67
67
|
|
68
68
|
t 'app_strings' do
|
69
|
-
|
70
|
-
strs = app_strings
|
71
|
-
strs.has_key?('activity_save_restore').must_equal true
|
72
|
-
end
|
69
|
+
wait_true { app_strings.has_key? 'activity_save_restore' }
|
73
70
|
end
|
74
71
|
|
75
72
|
def must_return_element element
|
@@ -116,9 +113,9 @@ describe 'common/device' do
|
|
116
113
|
end
|
117
114
|
|
118
115
|
t 'push and pull file' do
|
116
|
+
file = 'A Fine Day'
|
117
|
+
path = '/data/local/tmp/remote.txt'
|
119
118
|
wait do
|
120
|
-
file = "A Fine Day"
|
121
|
-
path = "/data/local/tmp/remote.txt"
|
122
119
|
push_file path, file
|
123
120
|
read_file = pull_file path
|
124
121
|
read_file.must_equal file
|
@@ -78,20 +78,6 @@ describe 'common/helper' do
|
|
78
78
|
wait { tags('android.widget.TextView').length.must_equal 12 }
|
79
79
|
end
|
80
80
|
|
81
|
-
t 'find_ele_by_attr_include' do
|
82
|
-
wait do
|
83
|
-
el_text = find_ele_by_attr_include('android.widget.TextView', :text, 'acc').text
|
84
|
-
el_text.must_equal 'Accessibility'
|
85
|
-
end
|
86
|
-
end
|
87
|
-
|
88
|
-
t 'find_eles_by_attr_include' do
|
89
|
-
wait do
|
90
|
-
ele_count = find_eles_by_attr_include('android.widget.TextView', :text, 'e').length
|
91
|
-
ele_count.must_equal 7
|
92
|
-
end
|
93
|
-
end
|
94
|
-
|
95
81
|
t 'first_ele' do
|
96
82
|
wait do
|
97
83
|
first_ele('android.widget.TextView').text.must_equal 'API Demos'
|
@@ -33,8 +33,8 @@ describe 'driver' do
|
|
33
33
|
actual[:caps][:app] = File.basename actual[:caps][:app]
|
34
34
|
expected = { caps: { platformName: 'android',
|
35
35
|
app: 'api.apk',
|
36
|
-
appPackage: '',
|
37
|
-
appActivity: '', },
|
36
|
+
appPackage: 'io.appium.android.apis',
|
37
|
+
appActivity: '.ApiDemos', },
|
38
38
|
custom_url: false,
|
39
39
|
export_session: false,
|
40
40
|
default_wait: 1,
|
@@ -45,7 +45,15 @@ describe 'driver' do
|
|
45
45
|
device: :android,
|
46
46
|
debug: true, }
|
47
47
|
|
48
|
-
actual
|
48
|
+
if actual != expected
|
49
|
+
diff = HashDiff.diff expected, actual
|
50
|
+
diff = "diff (expected, actual):\n#{diff}"
|
51
|
+
# example:
|
52
|
+
# change :ios in expected to match 'ios' in actual
|
53
|
+
# [["~", "caps.platformName", :ios, "ios"]]
|
54
|
+
message = "\n\nactual:\n\n: #{actual.ai}expected:\n\n#{expected.ai}\n\n#{diff}"
|
55
|
+
fail message
|
56
|
+
end
|
49
57
|
end
|
50
58
|
end
|
51
59
|
|
data/android_tests/lib/run.rb
CHANGED
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/77d64af57b0e6a828c5d61008c444518e6597e4b/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/77d64af57b0e6a828c5d61008c444518e6597e4b/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/77d64af57b0e6a828c5d61008c444518e6597e4b/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/77d64af57b0e6a828c5d61008c444518e6597e4b/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/77d64af57b0e6a828c5d61008c444518e6597e4b/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/77d64af57b0e6a828c5d61008c444518e6597e4b/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/77d64af57b0e6a828c5d61008c444518e6597e4b/lib/appium_lib/driver.rb#L234)
|
84
84
|
|
85
85
|
> def initialize opts={}
|
86
86
|
|
@@ -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/77d64af57b0e6a828c5d61008c444518e6597e4b/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/77d64af57b0e6a828c5d61008c444518e6597e4b/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/77d64af57b0e6a828c5d61008c444518e6597e4b/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/77d64af57b0e6a828c5d61008c444518e6597e4b/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/77d64af57b0e6a828c5d61008c444518e6597e4b/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/77d64af57b0e6a828c5d61008c444518e6597e4b/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/77d64af57b0e6a828c5d61008c444518e6597e4b/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/77d64af57b0e6a828c5d61008c444518e6597e4b/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/77d64af57b0e6a828c5d61008c444518e6597e4b/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/77d64af57b0e6a828c5d61008c444518e6597e4b/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/77d64af57b0e6a828c5d61008c444518e6597e4b/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/77d64af57b0e6a828c5d61008c444518e6597e4b/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/77d64af57b0e6a828c5d61008c444518e6597e4b/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/77d64af57b0e6a828c5d61008c444518e6597e4b/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/77d64af57b0e6a828c5d61008c444518e6597e4b/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/77d64af57b0e6a828c5d61008c444518e6597e4b/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/77d64af57b0e6a828c5d61008c444518e6597e4b/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/77d64af57b0e6a828c5d61008c444518e6597e4b/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/77d64af57b0e6a828c5d61008c444518e6597e4b/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/77d64af57b0e6a828c5d61008c444518e6597e4b/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/77d64af57b0e6a828c5d61008c444518e6597e4b/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/77d64af57b0e6a828c5d61008c444518e6597e4b/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/77d64af57b0e6a828c5d61008c444518e6597e4b/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/77d64af57b0e6a828c5d61008c444518e6597e4b/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/77d64af57b0e6a828c5d61008c444518e6597e4b/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/77d64af57b0e6a828c5d61008c444518e6597e4b/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/77d64af57b0e6a828c5d61008c444518e6597e4b/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/77d64af57b0e6a828c5d61008c444518e6597e4b/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/77d64af57b0e6a828c5d61008c444518e6597e4b/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/77d64af57b0e6a828c5d61008c444518e6597e4b/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/77d64af57b0e6a828c5d61008c444518e6597e4b/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/77d64af57b0e6a828c5d61008c444518e6597e4b/lib/appium_lib/device/device.rb#L290)
|
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/77d64af57b0e6a828c5d61008c444518e6597e4b/lib/appium_lib/device/device.rb#L290)
|
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/77d64af57b0e6a828c5d61008c444518e6597e4b/lib/appium_lib/device/device.rb#L296)
|
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/77d64af57b0e6a828c5d61008c444518e6597e4b/lib/appium_lib/device/device.rb#L320)
|
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/77d64af57b0e6a828c5d61008c444518e6597e4b/lib/appium_lib/device/device.rb#L328)
|
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/77d64af57b0e6a828c5d61008c444518e6597e4b/lib/appium_lib/device/device.rb#L331)
|
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/77d64af57b0e6a828c5d61008c444518e6597e4b/lib/appium_lib/device/device.rb#L341)
|
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/77d64af57b0e6a828c5d61008c444518e6597e4b/lib/appium_lib/device/device.rb#L349)
|
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/77d64af57b0e6a828c5d61008c444518e6597e4b/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/77d64af57b0e6a828c5d61008c444518e6597e4b/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/77d64af57b0e6a828c5d61008c444518e6597e4b/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/77d64af57b0e6a828c5d61008c444518e6597e4b/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/77d64af57b0e6a828c5d61008c444518e6597e4b/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/77d64af57b0e6a828c5d61008c444518e6597e4b/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/77d64af57b0e6a828c5d61008c444518e6597e4b/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/77d64af57b0e6a828c5d61008c444518e6597e4b/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/77d64af57b0e6a828c5d61008c444518e6597e4b/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/77d64af57b0e6a828c5d61008c444518e6597e4b/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/77d64af57b0e6a828c5d61008c444518e6597e4b/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/77d64af57b0e6a828c5d61008c444518e6597e4b/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/77d64af57b0e6a828c5d61008c444518e6597e4b/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/77d64af57b0e6a828c5d61008c444518e6597e4b/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/77d64af57b0e6a828c5d61008c444518e6597e4b/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/77d64af57b0e6a828c5d61008c444518e6597e4b/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/77d64af57b0e6a828c5d61008c444518e6597e4b/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/77d64af57b0e6a828c5d61008c444518e6597e4b/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/77d64af57b0e6a828c5d61008c444518e6597e4b/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/77d64af57b0e6a828c5d61008c444518e6597e4b/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/77d64af57b0e6a828c5d61008c444518e6597e4b/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/77d64af57b0e6a828c5d61008c444518e6597e4b/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/77d64af57b0e6a828c5d61008c444518e6597e4b/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/77d64af57b0e6a828c5d61008c444518e6597e4b/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/77d64af57b0e6a828c5d61008c444518e6597e4b/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/77d64af57b0e6a828c5d61008c444518e6597e4b/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/77d64af57b0e6a828c5d61008c444518e6597e4b/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/77d64af57b0e6a828c5d61008c444518e6597e4b/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/77d64af57b0e6a828c5d61008c444518e6597e4b/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/77d64af57b0e6a828c5d61008c444518e6597e4b/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/77d64af57b0e6a828c5d61008c444518e6597e4b/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/77d64af57b0e6a828c5d61008c444518e6597e4b/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/77d64af57b0e6a828c5d61008c444518e6597e4b/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/77d64af57b0e6a828c5d61008c444518e6597e4b/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/77d64af57b0e6a828c5d61008c444518e6597e4b/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/77d64af57b0e6a828c5d61008c444518e6597e4b/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/77d64af57b0e6a828c5d61008c444518e6597e4b/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/77d64af57b0e6a828c5d61008c444518e6597e4b/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/77d64af57b0e6a828c5d61008c444518e6597e4b/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/77d64af57b0e6a828c5d61008c444518e6597e4b/lib/appium_lib/common/helper.rb#L223)
|
1088
1088
|
|
1089
1089
|
> def resolve_id id
|
1090
1090
|
|
@@ -1100,7 +1100,7 @@ __Returns:__
|
|
1100
1100
|
|
1101
1101
|
--
|
1102
1102
|
|
1103
|
-
##### [filter](https://github.com/appium/ruby_lib/blob/
|
1103
|
+
##### [filter](https://github.com/appium/ruby_lib/blob/77d64af57b0e6a828c5d61008c444518e6597e4b/lib/appium_lib/common/helper.rb#L229)
|
1104
1104
|
|
1105
1105
|
> def filter
|
1106
1106
|
|
@@ -1108,7 +1108,7 @@ __Returns:__
|
|
1108
1108
|
|
1109
1109
|
--
|
1110
1110
|
|
1111
|
-
##### [filter=](https://github.com/appium/ruby_lib/blob/
|
1111
|
+
##### [filter=](https://github.com/appium/ruby_lib/blob/77d64af57b0e6a828c5d61008c444518e6597e4b/lib/appium_lib/common/helper.rb#L234)
|
1112
1112
|
|
1113
1113
|
> def filter= value
|
1114
1114
|
|
@@ -1116,7 +1116,7 @@ convert to string to support symbols
|
|
1116
1116
|
|
1117
1117
|
--
|
1118
1118
|
|
1119
|
-
##### [initialize](https://github.com/appium/ruby_lib/blob/
|
1119
|
+
##### [initialize](https://github.com/appium/ruby_lib/blob/77d64af57b0e6a828c5d61008c444518e6597e4b/lib/appium_lib/common/helper.rb#L240)
|
1120
1120
|
|
1121
1121
|
> def initialize
|
1122
1122
|
|
@@ -1128,7 +1128,7 @@ __Returns:__
|
|
1128
1128
|
|
1129
1129
|
--
|
1130
1130
|
|
1131
|
-
##### [reset](https://github.com/appium/ruby_lib/blob/
|
1131
|
+
##### [reset](https://github.com/appium/ruby_lib/blob/77d64af57b0e6a828c5d61008c444518e6597e4b/lib/appium_lib/common/helper.rb#L245)
|
1132
1132
|
|
1133
1133
|
> def reset
|
1134
1134
|
|
@@ -1136,7 +1136,7 @@ __Returns:__
|
|
1136
1136
|
|
1137
1137
|
--
|
1138
1138
|
|
1139
|
-
##### [result](https://github.com/appium/ruby_lib/blob/
|
1139
|
+
##### [result](https://github.com/appium/ruby_lib/blob/77d64af57b0e6a828c5d61008c444518e6597e4b/lib/appium_lib/common/helper.rb#L251)
|
1140
1140
|
|
1141
1141
|
> def result
|
1142
1142
|
|
@@ -1144,7 +1144,7 @@ __Returns:__
|
|
1144
1144
|
|
1145
1145
|
--
|
1146
1146
|
|
1147
|
-
##### [start_element](https://github.com/appium/ruby_lib/blob/
|
1147
|
+
##### [start_element](https://github.com/appium/ruby_lib/blob/77d64af57b0e6a828c5d61008c444518e6597e4b/lib/appium_lib/common/helper.rb#L265)
|
1148
1148
|
|
1149
1149
|
> def start_element name, attrs = []
|
1150
1150
|
|
@@ -1152,7 +1152,7 @@ __Returns:__
|
|
1152
1152
|
|
1153
1153
|
--
|
1154
1154
|
|
1155
|
-
##### [end_element](https://github.com/appium/ruby_lib/blob/
|
1155
|
+
##### [end_element](https://github.com/appium/ruby_lib/blob/77d64af57b0e6a828c5d61008c444518e6597e4b/lib/appium_lib/common/helper.rb#L275)
|
1156
1156
|
|
1157
1157
|
> def end_element name
|
1158
1158
|
|
@@ -1160,7 +1160,7 @@ __Returns:__
|
|
1160
1160
|
|
1161
1161
|
--
|
1162
1162
|
|
1163
|
-
##### [characters](https://github.com/appium/ruby_lib/blob/
|
1163
|
+
##### [characters](https://github.com/appium/ruby_lib/blob/77d64af57b0e6a828c5d61008c444518e6597e4b/lib/appium_lib/common/helper.rb#L281)
|
1164
1164
|
|
1165
1165
|
> def characters(chars)
|
1166
1166
|
|
@@ -1168,7 +1168,7 @@ __Returns:__
|
|
1168
1168
|
|
1169
1169
|
--
|
1170
1170
|
|
1171
|
-
##### [window_size](https://github.com/appium/ruby_lib/blob/
|
1171
|
+
##### [window_size](https://github.com/appium/ruby_lib/blob/77d64af57b0e6a828c5d61008c444518e6597e4b/lib/appium_lib/common/element/window.rb#L5)
|
1172
1172
|
|
1173
1173
|
> def window_size
|
1174
1174
|
|
@@ -1176,7 +1176,7 @@ Get the window's size
|
|
1176
1176
|
|
1177
1177
|
--
|
1178
1178
|
|
1179
|
-
##### [result](https://github.com/appium/ruby_lib/blob/
|
1179
|
+
##### [result](https://github.com/appium/ruby_lib/blob/77d64af57b0e6a828c5d61008c444518e6597e4b/lib/appium_lib/android/helper.rb#L7) android
|
1180
1180
|
|
1181
1181
|
> def result
|
1182
1182
|
|
@@ -1184,7 +1184,7 @@ TODO: Support strings.xml ids
|
|
1184
1184
|
|
1185
1185
|
--
|
1186
1186
|
|
1187
|
-
##### [keys](https://github.com/appium/ruby_lib/blob/
|
1187
|
+
##### [keys](https://github.com/appium/ruby_lib/blob/77d64af57b0e6a828c5d61008c444518e6597e4b/lib/appium_lib/android/helper.rb#L7) android
|
1188
1188
|
|
1189
1189
|
> def keys
|
1190
1190
|
|
@@ -1192,7 +1192,7 @@ TODO: Support strings.xml ids
|
|
1192
1192
|
|
1193
1193
|
--
|
1194
1194
|
|
1195
|
-
##### [filter](https://github.com/appium/ruby_lib/blob/
|
1195
|
+
##### [filter](https://github.com/appium/ruby_lib/blob/77d64af57b0e6a828c5d61008c444518e6597e4b/lib/appium_lib/android/helper.rb#L9) android
|
1196
1196
|
|
1197
1197
|
> def filter
|
1198
1198
|
|
@@ -1200,7 +1200,7 @@ TODO: Support strings.xml ids
|
|
1200
1200
|
|
1201
1201
|
--
|
1202
1202
|
|
1203
|
-
##### [filter=](https://github.com/appium/ruby_lib/blob/
|
1203
|
+
##### [filter=](https://github.com/appium/ruby_lib/blob/77d64af57b0e6a828c5d61008c444518e6597e4b/lib/appium_lib/android/helper.rb#L14) android
|
1204
1204
|
|
1205
1205
|
> def filter= value
|
1206
1206
|
|
@@ -1208,7 +1208,7 @@ convert to string to support symbols
|
|
1208
1208
|
|
1209
1209
|
--
|
1210
1210
|
|
1211
|
-
##### [initialize](https://github.com/appium/ruby_lib/blob/
|
1211
|
+
##### [initialize](https://github.com/appium/ruby_lib/blob/77d64af57b0e6a828c5d61008c444518e6597e4b/lib/appium_lib/android/helper.rb#L20) android
|
1212
1212
|
|
1213
1213
|
> def initialize
|
1214
1214
|
|
@@ -1220,7 +1220,7 @@ __Returns:__
|
|
1220
1220
|
|
1221
1221
|
--
|
1222
1222
|
|
1223
|
-
##### [reset](https://github.com/appium/ruby_lib/blob/
|
1223
|
+
##### [reset](https://github.com/appium/ruby_lib/blob/77d64af57b0e6a828c5d61008c444518e6597e4b/lib/appium_lib/android/helper.rb#L25) android
|
1224
1224
|
|
1225
1225
|
> def reset
|
1226
1226
|
|
@@ -1228,7 +1228,7 @@ __Returns:__
|
|
1228
1228
|
|
1229
1229
|
--
|
1230
1230
|
|
1231
|
-
##### [start_element](https://github.com/appium/ruby_lib/blob/
|
1231
|
+
##### [start_element](https://github.com/appium/ruby_lib/blob/77d64af57b0e6a828c5d61008c444518e6597e4b/lib/appium_lib/android/helper.rb#L31) android
|
1232
1232
|
|
1233
1233
|
> def start_element name, attrs = []
|
1234
1234
|
|
@@ -1236,7 +1236,7 @@ http://nokogiri.org/Nokogiri/XML/SAX/Document.html
|
|
1236
1236
|
|
1237
1237
|
--
|
1238
1238
|
|
1239
|
-
##### [get_android_inspect](https://github.com/appium/ruby_lib/blob/
|
1239
|
+
##### [get_android_inspect](https://github.com/appium/ruby_lib/blob/77d64af57b0e6a828c5d61008c444518e6597e4b/lib/appium_lib/android/helper.rb#L88) android
|
1240
1240
|
|
1241
1241
|
> def get_android_inspect class_name=false
|
1242
1242
|
|
@@ -1255,7 +1255,7 @@ __Returns:__
|
|
1255
1255
|
|
1256
1256
|
--
|
1257
1257
|
|
1258
|
-
##### [page](https://github.com/appium/ruby_lib/blob/
|
1258
|
+
##### [page](https://github.com/appium/ruby_lib/blob/77d64af57b0e6a828c5d61008c444518e6597e4b/lib/appium_lib/android/helper.rb#L107) android
|
1259
1259
|
|
1260
1260
|
> def page opts={}
|
1261
1261
|
|
@@ -1274,7 +1274,7 @@ __Returns:__
|
|
1274
1274
|
|
1275
1275
|
--
|
1276
1276
|
|
1277
|
-
##### [current_app](https://github.com/appium/ruby_lib/blob/
|
1277
|
+
##### [current_app](https://github.com/appium/ruby_lib/blob/77d64af57b0e6a828c5d61008c444518e6597e4b/lib/appium_lib/android/helper.rb#L118) android
|
1278
1278
|
|
1279
1279
|
> def current_app
|
1280
1280
|
|
@@ -1286,7 +1286,7 @@ example line:
|
|
1286
1286
|
|
1287
1287
|
--
|
1288
1288
|
|
1289
|
-
##### [id](https://github.com/appium/ruby_lib/blob/
|
1289
|
+
##### [id](https://github.com/appium/ruby_lib/blob/77d64af57b0e6a828c5d61008c444518e6597e4b/lib/appium_lib/android/helper.rb#L136) android
|
1290
1290
|
|
1291
1291
|
> def id id
|
1292
1292
|
|
@@ -1302,7 +1302,7 @@ __Returns:__
|
|
1302
1302
|
|
1303
1303
|
--
|
1304
1304
|
|
1305
|
-
##### [ids](https://github.com/appium/ruby_lib/blob/
|
1305
|
+
##### [ids](https://github.com/appium/ruby_lib/blob/77d64af57b0e6a828c5d61008c444518e6597e4b/lib/appium_lib/android/helper.rb#L144) android
|
1306
1306
|
|
1307
1307
|
> def ids id
|
1308
1308
|
|
@@ -1318,7 +1318,7 @@ __Returns:__
|
|
1318
1318
|
|
1319
1319
|
--
|
1320
1320
|
|
1321
|
-
##### [ele_index](https://github.com/appium/ruby_lib/blob/
|
1321
|
+
##### [ele_index](https://github.com/appium/ruby_lib/blob/77d64af57b0e6a828c5d61008c444518e6597e4b/lib/appium_lib/android/helper.rb#L153) android
|
1322
1322
|
|
1323
1323
|
> def ele_index class_name, index
|
1324
1324
|
|
@@ -1336,87 +1336,7 @@ __Returns:__
|
|
1336
1336
|
|
1337
1337
|
--
|
1338
1338
|
|
1339
|
-
##### [
|
1340
|
-
|
1341
|
-
> def find_ele_by_attr class_name, attr, value
|
1342
|
-
|
1343
|
-
Find the first element exactly matching class and attribute value.
|
1344
|
-
|
1345
|
-
__Parameters:__
|
1346
|
-
|
1347
|
-
[String] class_name - the class name to search for
|
1348
|
-
|
1349
|
-
[String] attr - the attribute to inspect
|
1350
|
-
|
1351
|
-
[String] value - the expected value of the attribute
|
1352
|
-
|
1353
|
-
__Returns:__
|
1354
|
-
|
1355
|
-
[Element]
|
1356
|
-
|
1357
|
-
--
|
1358
|
-
|
1359
|
-
##### [find_eles_by_attr](https://github.com/appium/ruby_lib/blob/f0db0910ea077e04329d3e0cafb434f829760abb/lib/appium_lib/android/helper.rb#L189) android
|
1360
|
-
|
1361
|
-
> def find_eles_by_attr class_name, attr, value
|
1362
|
-
|
1363
|
-
Find all elements exactly matching class and attribute value.
|
1364
|
-
|
1365
|
-
__Parameters:__
|
1366
|
-
|
1367
|
-
[String] class_name - the class name to match
|
1368
|
-
|
1369
|
-
[String] attr - the attribute to compare
|
1370
|
-
|
1371
|
-
[String] value - the value of the attribute that the element must have
|
1372
|
-
|
1373
|
-
__Returns:__
|
1374
|
-
|
1375
|
-
[Array<Element>]
|
1376
|
-
|
1377
|
-
--
|
1378
|
-
|
1379
|
-
##### [find_ele_by_attr_include](https://github.com/appium/ruby_lib/blob/f0db0910ea077e04329d3e0cafb434f829760abb/lib/appium_lib/android/helper.rb#L203) android
|
1380
|
-
|
1381
|
-
> def find_ele_by_attr_include class_name, attr, value
|
1382
|
-
|
1383
|
-
Find the first element by attribute that exactly matches value.
|
1384
|
-
|
1385
|
-
__Parameters:__
|
1386
|
-
|
1387
|
-
[String] class_name - the class name to match
|
1388
|
-
|
1389
|
-
[String] attr - the attribute to compare
|
1390
|
-
|
1391
|
-
[String] value - the value of the attribute that the element must include
|
1392
|
-
|
1393
|
-
__Returns:__
|
1394
|
-
|
1395
|
-
[Element] the element of type tag who's attribute includes value
|
1396
|
-
|
1397
|
-
--
|
1398
|
-
|
1399
|
-
##### [find_eles_by_attr_include](https://github.com/appium/ruby_lib/blob/f0db0910ea077e04329d3e0cafb434f829760abb/lib/appium_lib/android/helper.rb#L212) android
|
1400
|
-
|
1401
|
-
> def find_eles_by_attr_include class_name, attr, value
|
1402
|
-
|
1403
|
-
Find elements by attribute that include value.
|
1404
|
-
|
1405
|
-
__Parameters:__
|
1406
|
-
|
1407
|
-
[String] class_name - the tag name to match
|
1408
|
-
|
1409
|
-
[String] attr - the attribute to compare
|
1410
|
-
|
1411
|
-
[String] value - the value of the attribute that the element must include
|
1412
|
-
|
1413
|
-
__Returns:__
|
1414
|
-
|
1415
|
-
[Array<Element>] the elements of type tag who's attribute includes value
|
1416
|
-
|
1417
|
-
--
|
1418
|
-
|
1419
|
-
##### [first_ele](https://github.com/appium/ruby_lib/blob/f0db0910ea077e04329d3e0cafb434f829760abb/lib/appium_lib/android/helper.rb#L219) android
|
1339
|
+
##### [first_ele](https://github.com/appium/ruby_lib/blob/77d64af57b0e6a828c5d61008c444518e6597e4b/lib/appium_lib/android/helper.rb#L167) android
|
1420
1340
|
|
1421
1341
|
> def first_ele class_name
|
1422
1342
|
|
@@ -1432,7 +1352,7 @@ __Returns:__
|
|
1432
1352
|
|
1433
1353
|
--
|
1434
1354
|
|
1435
|
-
##### [last_ele](https://github.com/appium/ruby_lib/blob/
|
1355
|
+
##### [last_ele](https://github.com/appium/ruby_lib/blob/77d64af57b0e6a828c5d61008c444518e6597e4b/lib/appium_lib/android/helper.rb#L174) android
|
1436
1356
|
|
1437
1357
|
> def last_ele class_name
|
1438
1358
|
|
@@ -1448,7 +1368,7 @@ __Returns:__
|
|
1448
1368
|
|
1449
1369
|
--
|
1450
1370
|
|
1451
|
-
##### [tag](https://github.com/appium/ruby_lib/blob/
|
1371
|
+
##### [tag](https://github.com/appium/ruby_lib/blob/77d64af57b0e6a828c5d61008c444518e6597e4b/lib/appium_lib/android/helper.rb#L182) android
|
1452
1372
|
|
1453
1373
|
> def tag class_name
|
1454
1374
|
|
@@ -1464,7 +1384,7 @@ __Returns:__
|
|
1464
1384
|
|
1465
1385
|
--
|
1466
1386
|
|
1467
|
-
##### [tags](https://github.com/appium/ruby_lib/blob/
|
1387
|
+
##### [tags](https://github.com/appium/ruby_lib/blob/77d64af57b0e6a828c5d61008c444518e6597e4b/lib/appium_lib/android/helper.rb#L190) android
|
1468
1388
|
|
1469
1389
|
> def tags class_name
|
1470
1390
|
|
@@ -1480,9 +1400,9 @@ __Returns:__
|
|
1480
1400
|
|
1481
1401
|
--
|
1482
1402
|
|
1483
|
-
##### [
|
1403
|
+
##### [complex_find_contains](https://github.com/appium/ruby_lib/blob/77d64af57b0e6a828c5d61008c444518e6597e4b/lib/appium_lib/android/helper.rb#L235) android
|
1484
1404
|
|
1485
|
-
> def
|
1405
|
+
> def complex_find_contains element, value
|
1486
1406
|
|
1487
1407
|
Find the first element that contains value
|
1488
1408
|
|
@@ -1498,9 +1418,9 @@ __Returns:__
|
|
1498
1418
|
|
1499
1419
|
--
|
1500
1420
|
|
1501
|
-
##### [
|
1421
|
+
##### [complex_finds_contains](https://github.com/appium/ruby_lib/blob/77d64af57b0e6a828c5d61008c444518e6597e4b/lib/appium_lib/android/helper.rb#L243) android
|
1502
1422
|
|
1503
|
-
> def
|
1423
|
+
> def complex_finds_contains element, value
|
1504
1424
|
|
1505
1425
|
Find all elements containing value
|
1506
1426
|
|
@@ -1516,15 +1436,15 @@ __Returns:__
|
|
1516
1436
|
|
1517
1437
|
--
|
1518
1438
|
|
1519
|
-
##### [
|
1439
|
+
##### [complex_find_exact](https://github.com/appium/ruby_lib/blob/77d64af57b0e6a828c5d61008c444518e6597e4b/lib/appium_lib/android/helper.rb#L283) android
|
1520
1440
|
|
1521
|
-
> def
|
1441
|
+
> def complex_find_exact class_name, value
|
1522
1442
|
|
1523
1443
|
Find the first element exactly matching value
|
1524
1444
|
|
1525
1445
|
__Parameters:__
|
1526
1446
|
|
1527
|
-
[String]
|
1447
|
+
[String] class_name - the class name for the element
|
1528
1448
|
|
1529
1449
|
[String] value - the value to search for
|
1530
1450
|
|
@@ -1534,15 +1454,15 @@ __Returns:__
|
|
1534
1454
|
|
1535
1455
|
--
|
1536
1456
|
|
1537
|
-
##### [
|
1457
|
+
##### [complex_finds_exact](https://github.com/appium/ruby_lib/blob/77d64af57b0e6a828c5d61008c444518e6597e4b/lib/appium_lib/android/helper.rb#L291) android
|
1538
1458
|
|
1539
|
-
> def
|
1459
|
+
> def complex_finds_exact class_name, value
|
1540
1460
|
|
1541
1461
|
Find all elements exactly matching value
|
1542
1462
|
|
1543
1463
|
__Parameters:__
|
1544
1464
|
|
1545
|
-
[String]
|
1465
|
+
[String] class_name - the class name for the element
|
1546
1466
|
|
1547
1467
|
[String] value - the value to search for
|
1548
1468
|
|
@@ -1552,7 +1472,7 @@ __Returns:__
|
|
1552
1472
|
|
1553
1473
|
--
|
1554
1474
|
|
1555
|
-
##### [TextView](https://github.com/appium/ruby_lib/blob/
|
1475
|
+
##### [TextView](https://github.com/appium/ruby_lib/blob/77d64af57b0e6a828c5d61008c444518e6597e4b/lib/appium_lib/android/element/text.rb#L4) android
|
1556
1476
|
|
1557
1477
|
> TextView = 'android.widget.TextView'
|
1558
1478
|
|
@@ -1560,7 +1480,7 @@ __Returns:__
|
|
1560
1480
|
|
1561
1481
|
--
|
1562
1482
|
|
1563
|
-
##### [text](https://github.com/appium/ruby_lib/blob/
|
1483
|
+
##### [text](https://github.com/appium/ruby_lib/blob/77d64af57b0e6a828c5d61008c444518e6597e4b/lib/appium_lib/android/element/text.rb#L10) android
|
1564
1484
|
|
1565
1485
|
> def text value
|
1566
1486
|
|
@@ -1577,7 +1497,7 @@ __Returns:__
|
|
1577
1497
|
|
1578
1498
|
--
|
1579
1499
|
|
1580
|
-
##### [texts](https://github.com/appium/ruby_lib/blob/
|
1500
|
+
##### [texts](https://github.com/appium/ruby_lib/blob/77d64af57b0e6a828c5d61008c444518e6597e4b/lib/appium_lib/android/element/text.rb#L19) android
|
1581
1501
|
|
1582
1502
|
> def texts value=false
|
1583
1503
|
|
@@ -1594,7 +1514,7 @@ __Returns:__
|
|
1594
1514
|
|
1595
1515
|
--
|
1596
1516
|
|
1597
|
-
##### [first_text](https://github.com/appium/ruby_lib/blob/
|
1517
|
+
##### [first_text](https://github.com/appium/ruby_lib/blob/77d64af57b0e6a828c5d61008c444518e6597e4b/lib/appium_lib/android/element/text.rb#L26) android
|
1598
1518
|
|
1599
1519
|
> def first_text
|
1600
1520
|
|
@@ -1606,7 +1526,7 @@ __Returns:__
|
|
1606
1526
|
|
1607
1527
|
--
|
1608
1528
|
|
1609
|
-
##### [last_text](https://github.com/appium/ruby_lib/blob/
|
1529
|
+
##### [last_text](https://github.com/appium/ruby_lib/blob/77d64af57b0e6a828c5d61008c444518e6597e4b/lib/appium_lib/android/element/text.rb#L32) android
|
1610
1530
|
|
1611
1531
|
> def last_text
|
1612
1532
|
|
@@ -1618,7 +1538,7 @@ __Returns:__
|
|
1618
1538
|
|
1619
1539
|
--
|
1620
1540
|
|
1621
|
-
##### [text_exact](https://github.com/appium/ruby_lib/blob/
|
1541
|
+
##### [text_exact](https://github.com/appium/ruby_lib/blob/77d64af57b0e6a828c5d61008c444518e6597e4b/lib/appium_lib/android/element/text.rb#L39) android
|
1622
1542
|
|
1623
1543
|
> def text_exact value
|
1624
1544
|
|
@@ -1634,7 +1554,7 @@ __Returns:__
|
|
1634
1554
|
|
1635
1555
|
--
|
1636
1556
|
|
1637
|
-
##### [texts_exact](https://github.com/appium/ruby_lib/blob/
|
1557
|
+
##### [texts_exact](https://github.com/appium/ruby_lib/blob/77d64af57b0e6a828c5d61008c444518e6597e4b/lib/appium_lib/android/element/text.rb#L46) android
|
1638
1558
|
|
1639
1559
|
> def texts_exact value
|
1640
1560
|
|
@@ -1650,7 +1570,7 @@ __Returns:__
|
|
1650
1570
|
|
1651
1571
|
--
|
1652
1572
|
|
1653
|
-
##### [alert_click](https://github.com/appium/ruby_lib/blob/
|
1573
|
+
##### [alert_click](https://github.com/appium/ruby_lib/blob/77d64af57b0e6a828c5d61008c444518e6597e4b/lib/appium_lib/android/element/alert.rb#L6) android
|
1654
1574
|
|
1655
1575
|
> def alert_click value
|
1656
1576
|
|
@@ -1666,7 +1586,7 @@ __Returns:__
|
|
1666
1586
|
|
1667
1587
|
--
|
1668
1588
|
|
1669
|
-
##### [alert_accept](https://github.com/appium/ruby_lib/blob/
|
1589
|
+
##### [alert_accept](https://github.com/appium/ruby_lib/blob/77d64af57b0e6a828c5d61008c444518e6597e4b/lib/appium_lib/android/element/alert.rb#L13) android
|
1670
1590
|
|
1671
1591
|
> def alert_accept
|
1672
1592
|
|
@@ -1679,7 +1599,7 @@ __Returns:__
|
|
1679
1599
|
|
1680
1600
|
--
|
1681
1601
|
|
1682
|
-
##### [alert_accept_text](https://github.com/appium/ruby_lib/blob/
|
1602
|
+
##### [alert_accept_text](https://github.com/appium/ruby_lib/blob/77d64af57b0e6a828c5d61008c444518e6597e4b/lib/appium_lib/android/element/alert.rb#L20) android
|
1683
1603
|
|
1684
1604
|
> def alert_accept_text
|
1685
1605
|
|
@@ -1692,7 +1612,7 @@ __Returns:__
|
|
1692
1612
|
|
1693
1613
|
--
|
1694
1614
|
|
1695
|
-
##### [alert_dismiss](https://github.com/appium/ruby_lib/blob/
|
1615
|
+
##### [alert_dismiss](https://github.com/appium/ruby_lib/blob/77d64af57b0e6a828c5d61008c444518e6597e4b/lib/appium_lib/android/element/alert.rb#L27) android
|
1696
1616
|
|
1697
1617
|
> def alert_dismiss
|
1698
1618
|
|
@@ -1705,7 +1625,7 @@ __Returns:__
|
|
1705
1625
|
|
1706
1626
|
--
|
1707
1627
|
|
1708
|
-
##### [alert_dismiss_text](https://github.com/appium/ruby_lib/blob/
|
1628
|
+
##### [alert_dismiss_text](https://github.com/appium/ruby_lib/blob/77d64af57b0e6a828c5d61008c444518e6597e4b/lib/appium_lib/android/element/alert.rb#L34) android
|
1709
1629
|
|
1710
1630
|
> def alert_dismiss_text
|
1711
1631
|
|
@@ -1718,7 +1638,7 @@ __Returns:__
|
|
1718
1638
|
|
1719
1639
|
--
|
1720
1640
|
|
1721
|
-
##### [uiautomator_find](https://github.com/appium/ruby_lib/blob/
|
1641
|
+
##### [uiautomator_find](https://github.com/appium/ruby_lib/blob/77d64af57b0e6a828c5d61008c444518e6597e4b/lib/appium_lib/android/mobile_methods.rb#L10) android
|
1722
1642
|
|
1723
1643
|
> def uiautomator_find
|
1724
1644
|
|
@@ -1730,7 +1650,7 @@ find_element/s can be used with a [UISelector](http://developer.android.com/tool
|
|
1730
1650
|
|
1731
1651
|
--
|
1732
1652
|
|
1733
|
-
##### [Button](https://github.com/appium/ruby_lib/blob/
|
1653
|
+
##### [Button](https://github.com/appium/ruby_lib/blob/77d64af57b0e6a828c5d61008c444518e6597e4b/lib/appium_lib/android/element/button.rb#L4) android
|
1734
1654
|
|
1735
1655
|
> Button = 'android.widget.Button'
|
1736
1656
|
|
@@ -1738,7 +1658,7 @@ find_element/s can be used with a [UISelector](http://developer.android.com/tool
|
|
1738
1658
|
|
1739
1659
|
--
|
1740
1660
|
|
1741
|
-
##### [ImageButton](https://github.com/appium/ruby_lib/blob/
|
1661
|
+
##### [ImageButton](https://github.com/appium/ruby_lib/blob/77d64af57b0e6a828c5d61008c444518e6597e4b/lib/appium_lib/android/element/button.rb#L5) android
|
1742
1662
|
|
1743
1663
|
> ImageButton = 'android.widget.ImageButton'
|
1744
1664
|
|
@@ -1746,7 +1666,7 @@ find_element/s can be used with a [UISelector](http://developer.android.com/tool
|
|
1746
1666
|
|
1747
1667
|
--
|
1748
1668
|
|
1749
|
-
##### [button](https://github.com/appium/ruby_lib/blob/
|
1669
|
+
##### [button](https://github.com/appium/ruby_lib/blob/77d64af57b0e6a828c5d61008c444518e6597e4b/lib/appium_lib/android/element/button.rb#L55) android
|
1750
1670
|
|
1751
1671
|
> def button value
|
1752
1672
|
|
@@ -1763,7 +1683,7 @@ __Returns:__
|
|
1763
1683
|
|
1764
1684
|
--
|
1765
1685
|
|
1766
|
-
##### [buttons](https://github.com/appium/ruby_lib/blob/
|
1686
|
+
##### [buttons](https://github.com/appium/ruby_lib/blob/77d64af57b0e6a828c5d61008c444518e6597e4b/lib/appium_lib/android/element/button.rb#L72) android
|
1767
1687
|
|
1768
1688
|
> def buttons value=false
|
1769
1689
|
|
@@ -1780,7 +1700,7 @@ __Returns:__
|
|
1780
1700
|
|
1781
1701
|
--
|
1782
1702
|
|
1783
|
-
##### [first_button](https://github.com/appium/ruby_lib/blob/
|
1703
|
+
##### [first_button](https://github.com/appium/ruby_lib/blob/77d64af57b0e6a828c5d61008c444518e6597e4b/lib/appium_lib/android/element/button.rb#L79) android
|
1784
1704
|
|
1785
1705
|
> def first_button
|
1786
1706
|
|
@@ -1792,7 +1712,7 @@ __Returns:__
|
|
1792
1712
|
|
1793
1713
|
--
|
1794
1714
|
|
1795
|
-
##### [last_button](https://github.com/appium/ruby_lib/blob/
|
1715
|
+
##### [last_button](https://github.com/appium/ruby_lib/blob/77d64af57b0e6a828c5d61008c444518e6597e4b/lib/appium_lib/android/element/button.rb#L85) android
|
1796
1716
|
|
1797
1717
|
> def last_button
|
1798
1718
|
|
@@ -1804,7 +1724,7 @@ __Returns:__
|
|
1804
1724
|
|
1805
1725
|
--
|
1806
1726
|
|
1807
|
-
##### [button_exact](https://github.com/appium/ruby_lib/blob/
|
1727
|
+
##### [button_exact](https://github.com/appium/ruby_lib/blob/77d64af57b0e6a828c5d61008c444518e6597e4b/lib/appium_lib/android/element/button.rb#L99) android
|
1808
1728
|
|
1809
1729
|
> def button_exact value
|
1810
1730
|
|
@@ -1820,7 +1740,7 @@ __Returns:__
|
|
1820
1740
|
|
1821
1741
|
--
|
1822
1742
|
|
1823
|
-
##### [buttons_exact](https://github.com/appium/ruby_lib/blob/
|
1743
|
+
##### [buttons_exact](https://github.com/appium/ruby_lib/blob/77d64af57b0e6a828c5d61008c444518e6597e4b/lib/appium_lib/android/element/button.rb#L106) android
|
1824
1744
|
|
1825
1745
|
> def buttons_exact value
|
1826
1746
|
|
@@ -1836,7 +1756,7 @@ __Returns:__
|
|
1836
1756
|
|
1837
1757
|
--
|
1838
1758
|
|
1839
|
-
##### [find](https://github.com/appium/ruby_lib/blob/
|
1759
|
+
##### [find](https://github.com/appium/ruby_lib/blob/77d64af57b0e6a828c5d61008c444518e6597e4b/lib/appium_lib/android/element/generic.rb#L7) android
|
1840
1760
|
|
1841
1761
|
> def find value
|
1842
1762
|
|
@@ -1852,7 +1772,7 @@ __Returns:__
|
|
1852
1772
|
|
1853
1773
|
--
|
1854
1774
|
|
1855
|
-
##### [finds](https://github.com/appium/ruby_lib/blob/
|
1775
|
+
##### [finds](https://github.com/appium/ruby_lib/blob/77d64af57b0e6a828c5d61008c444518e6597e4b/lib/appium_lib/android/element/generic.rb#L14) android
|
1856
1776
|
|
1857
1777
|
> def finds value
|
1858
1778
|
|
@@ -1868,7 +1788,7 @@ __Returns:__
|
|
1868
1788
|
|
1869
1789
|
--
|
1870
1790
|
|
1871
|
-
##### [find_exact](https://github.com/appium/ruby_lib/blob/
|
1791
|
+
##### [find_exact](https://github.com/appium/ruby_lib/blob/77d64af57b0e6a828c5d61008c444518e6597e4b/lib/appium_lib/android/element/generic.rb#L21) android
|
1872
1792
|
|
1873
1793
|
> def find_exact value
|
1874
1794
|
|
@@ -1884,7 +1804,7 @@ __Returns:__
|
|
1884
1804
|
|
1885
1805
|
--
|
1886
1806
|
|
1887
|
-
##### [finds_exact](https://github.com/appium/ruby_lib/blob/
|
1807
|
+
##### [finds_exact](https://github.com/appium/ruby_lib/blob/77d64af57b0e6a828c5d61008c444518e6597e4b/lib/appium_lib/android/element/generic.rb#L28) android
|
1888
1808
|
|
1889
1809
|
> def finds_exact value
|
1890
1810
|
|
@@ -1900,7 +1820,7 @@ __Returns:__
|
|
1900
1820
|
|
1901
1821
|
--
|
1902
1822
|
|
1903
|
-
##### [scroll_to](https://github.com/appium/ruby_lib/blob/
|
1823
|
+
##### [scroll_to](https://github.com/appium/ruby_lib/blob/77d64af57b0e6a828c5d61008c444518e6597e4b/lib/appium_lib/android/element/generic.rb#L35) android
|
1904
1824
|
|
1905
1825
|
> def scroll_to text
|
1906
1826
|
|
@@ -1916,7 +1836,7 @@ __Returns:__
|
|
1916
1836
|
|
1917
1837
|
--
|
1918
1838
|
|
1919
|
-
##### [scroll_to_exact](https://github.com/appium/ruby_lib/blob/
|
1839
|
+
##### [scroll_to_exact](https://github.com/appium/ruby_lib/blob/77d64af57b0e6a828c5d61008c444518e6597e4b/lib/appium_lib/android/element/generic.rb#L48) android
|
1920
1840
|
|
1921
1841
|
> def scroll_to_exact text
|
1922
1842
|
|
@@ -1932,7 +1852,7 @@ __Returns:__
|
|
1932
1852
|
|
1933
1853
|
--
|
1934
1854
|
|
1935
|
-
##### [EditText](https://github.com/appium/ruby_lib/blob/
|
1855
|
+
##### [EditText](https://github.com/appium/ruby_lib/blob/77d64af57b0e6a828c5d61008c444518e6597e4b/lib/appium_lib/android/element/textfield.rb#L3) android
|
1936
1856
|
|
1937
1857
|
> EditText = 'android.widget.EditText'
|
1938
1858
|
|
@@ -1940,7 +1860,7 @@ __Returns:__
|
|
1940
1860
|
|
1941
1861
|
--
|
1942
1862
|
|
1943
|
-
##### [textfield](https://github.com/appium/ruby_lib/blob/
|
1863
|
+
##### [textfield](https://github.com/appium/ruby_lib/blob/77d64af57b0e6a828c5d61008c444518e6597e4b/lib/appium_lib/android/element/textfield.rb#L9) android
|
1944
1864
|
|
1945
1865
|
> def textfield value
|
1946
1866
|
|
@@ -1957,7 +1877,7 @@ __Returns:__
|
|
1957
1877
|
|
1958
1878
|
--
|
1959
1879
|
|
1960
|
-
##### [textfields](https://github.com/appium/ruby_lib/blob/
|
1880
|
+
##### [textfields](https://github.com/appium/ruby_lib/blob/77d64af57b0e6a828c5d61008c444518e6597e4b/lib/appium_lib/android/element/textfield.rb#L18) android
|
1961
1881
|
|
1962
1882
|
> def textfields value=false
|
1963
1883
|
|
@@ -1974,7 +1894,7 @@ __Returns:__
|
|
1974
1894
|
|
1975
1895
|
--
|
1976
1896
|
|
1977
|
-
##### [first_textfield](https://github.com/appium/ruby_lib/blob/
|
1897
|
+
##### [first_textfield](https://github.com/appium/ruby_lib/blob/77d64af57b0e6a828c5d61008c444518e6597e4b/lib/appium_lib/android/element/textfield.rb#L25) android
|
1978
1898
|
|
1979
1899
|
> def first_textfield
|
1980
1900
|
|
@@ -1986,7 +1906,7 @@ __Returns:__
|
|
1986
1906
|
|
1987
1907
|
--
|
1988
1908
|
|
1989
|
-
##### [last_textfield](https://github.com/appium/ruby_lib/blob/
|
1909
|
+
##### [last_textfield](https://github.com/appium/ruby_lib/blob/77d64af57b0e6a828c5d61008c444518e6597e4b/lib/appium_lib/android/element/textfield.rb#L31) android
|
1990
1910
|
|
1991
1911
|
> def last_textfield
|
1992
1912
|
|
@@ -1998,7 +1918,7 @@ __Returns:__
|
|
1998
1918
|
|
1999
1919
|
--
|
2000
1920
|
|
2001
|
-
##### [textfield_exact](https://github.com/appium/ruby_lib/blob/
|
1921
|
+
##### [textfield_exact](https://github.com/appium/ruby_lib/blob/77d64af57b0e6a828c5d61008c444518e6597e4b/lib/appium_lib/android/element/textfield.rb#L38) android
|
2002
1922
|
|
2003
1923
|
> def textfield_exact value
|
2004
1924
|
|
@@ -2014,7 +1934,7 @@ __Returns:__
|
|
2014
1934
|
|
2015
1935
|
--
|
2016
1936
|
|
2017
|
-
##### [textfields_exact](https://github.com/appium/ruby_lib/blob/
|
1937
|
+
##### [textfields_exact](https://github.com/appium/ruby_lib/blob/77d64af57b0e6a828c5d61008c444518e6597e4b/lib/appium_lib/android/element/textfield.rb#L45) android
|
2018
1938
|
|
2019
1939
|
> def textfields_exact value
|
2020
1940
|
|
@@ -2030,7 +1950,7 @@ __Returns:__
|
|
2030
1950
|
|
2031
1951
|
--
|
2032
1952
|
|
2033
|
-
##### [value](https://github.com/appium/ruby_lib/blob/
|
1953
|
+
##### [value](https://github.com/appium/ruby_lib/blob/77d64af57b0e6a828c5d61008c444518e6597e4b/lib/appium_lib/common/patch.rb#L10)
|
2034
1954
|
|
2035
1955
|
> def value
|
2036
1956
|
|
@@ -2040,7 +1960,7 @@ Fixes NoMethodError: undefined method `value' for Selenium::WebDriver::Element
|
|
2040
1960
|
|
2041
1961
|
--
|
2042
1962
|
|
2043
|
-
##### [name](https://github.com/appium/ruby_lib/blob/
|
1963
|
+
##### [name](https://github.com/appium/ruby_lib/blob/77d64af57b0e6a828c5d61008c444518e6597e4b/lib/appium_lib/common/patch.rb#L17)
|
2044
1964
|
|
2045
1965
|
> def name
|
2046
1966
|
|
@@ -2050,7 +1970,7 @@ Fixes NoMethodError: undefined method `name' for Selenium::WebDriver::Element
|
|
2050
1970
|
|
2051
1971
|
--
|
2052
1972
|
|
2053
|
-
##### [location_rel](https://github.com/appium/ruby_lib/blob/
|
1973
|
+
##### [location_rel](https://github.com/appium/ruby_lib/blob/77d64af57b0e6a828c5d61008c444518e6597e4b/lib/appium_lib/common/patch.rb#L29)
|
2054
1974
|
|
2055
1975
|
> def location_rel
|
2056
1976
|
|