@@ -34,6 +34,15 @@ def before_first
34
34
proc { wait ( *wait_time ) { raise NoMemoryError } } . must_raise Timeout ::Error
35
35
end
36
36
37
+ t 'ignore' do
38
+ # ignore should rescue all exceptions
39
+ ignore { true }
40
+ ignore { false }
41
+ ignore { nil }
42
+ ignore { raise }
43
+ ignore { raise NoMemoryError }
44
+ end
45
+
37
46
# wait_true is a success unless the value is not true
38
47
t 'wait_true' do
39
48
# successful wait should not error
@@ -51,15 +60,6 @@ def before_first
51
60
proc { wait ( *wait_time ) { raise NoMemoryError } } . must_raise Timeout ::Error
52
61
end
53
62
54
- t 'ignore' do
55
- # ignore should rescue all exceptions
56
- ignore { true }
57
- ignore { false }
58
- ignore { nil }
59
- ignore { raise }
60
- ignore { raise NoMemoryError }
61
- end
62
-
63
63
# t 'id' # id is for Selendroid
64
64
65
65
t 'back' do
@@ -95,6 +95,8 @@ def uibutton_text
95
95
ele_index ( 'UIAStaticText' , 2 ) . name . must_equal uibutton_text
96
96
end
97
97
98
+ # todo: 'string_attr_exact'
99
+
98
100
t 'find_ele_by_attr' do
99
101
el_id = find_ele_by_attr ( 'UIAStaticText' , 'name' , uibutton_text ) . instance_variable_get :@id
100
102
el_id . must_match /\d +/
@@ -113,6 +115,8 @@ def uibutton_text
113
115
set_wait
114
116
end
115
117
118
+ # todo: 'string_attr_include'
119
+
116
120
t 'find_ele_by_attr_include' do
117
121
el_text = find_ele_by_attr_include ( 'UIAStaticText' , :name , 'button' ) . text
118
122
el_text . must_equal ''
@@ -170,4 +174,32 @@ def uibutton_text
170
174
t 'tags' do
171
175
tags ( 'UIATableCell' ) . length . must_equal 12
172
176
end
177
+
178
+ t 'find_eles_by_attr_include' do
179
+ find_eles_by_attr_include ( 'UIATableCell' , 'name' , 'Use' ) . length . must_equal 7
180
+ end
181
+
182
+ t 'get_page_class' do
183
+ # 8 local. 9 on sauce.
184
+ get_page_class . split ( "\n " ) . length . must_be :>= , 8
185
+ end
186
+ =begin
187
+ todo:
188
+ get_page_class
189
+ page_class
190
+ tag
191
+ tags
192
+ px_to_window_rel
193
+ lazy_load_strings
194
+ xml_keys
195
+ xml_values
196
+ resolve_id
197
+ string_visible_contains
198
+ xpath_visible_contains
199
+ xpaths_visible_contains
200
+ string_visible_exact
201
+ xpath_visible_exact
202
+ xpaths_visible_exact
203
+ raise_no_element_error
204
+ =end
173
205
end
0 commit comments