ios_tests/lib/ios/specs/ios/element/textfield.rb in appium_lib-3.0.3 vs ios_tests/lib/ios/specs/ios/element/textfield.rb in appium_lib-4.0.0

- old
+ new

@@ -31,10 +31,15 @@ values.include?('<enter text>').must_equal true values.include?('<enter password>').must_equal true textfields.length.must_equal 4 end + t 'predicate textfields' do + textfield_count = execute_script(%Q(au.mainApp().getAllWithPredicate("type contains[c] 'textfield'", true))).length + textfield_count.must_equal 4 + end + t 'first_textfield' do first_textfield.text.must_equal enter_text end t 'last_textfield' do @@ -106,9 +111,14 @@ must_raise_no_element { textfield_exact('does not exist') } end t 'no textfields_exact' do textfields_exact('does not exist').length.must_equal 0 + end + + t 'hide_keyboard' do + first_textfield.click + hide_keyboard end t 'after_last' do after_last end \ No newline at end of file