We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 447f13c commit e06b25eCopy full SHA for e06b25e
ios_tests/lib/ios/specs/ios/element/textfield.rb
@@ -34,10 +34,13 @@ def after_last
34
end
35
36
t 'predicate textfields' do
37
- raise NotImplementedError, "XCUITest(Appium1.6.2) doesn't support UIAutomation script" if UI::Inventory.xcuitest?
+ textfields = if UI::Inventory.xcuitest?
38
+ find_elements(:predicate, "type contains[c] 'textfield'")
39
+ else
40
+ execute_script(%(au.mainApp().getAllWithPredicate("type contains[c] 'textfield'", true)))
41
+ end
42
- textfield_count = execute_script(%(au.mainApp().getAllWithPredicate("type contains[c] 'textfield'", true))).length
- textfield_count.must_equal 4
43
+ textfields.length.must_equal 4
44
45
46
t 'first_textfield' do
0 commit comments