android_tests/lib/android/specs/android/patch.rb in appium_lib-3.0.3 vs android_tests/lib/android/specs/android/patch.rb in appium_lib-4.0.0

- old
+ new

@@ -1,14 +1,27 @@ +# rake android[android/patch] describe 'android/patch.rb' do t 'type' do # nav to textfield wait { find('app').click } - wait { find('search').click } - wait { find('invoke').click } + wait { find('Search').click } + wait { find('Invoke Search').click } wait { first_textfield.type 'ok' } wait { first_textfield.text.must_equal 'ok' } + # todo: how to invoke random am start commands? # nav to start activity - 3.times { back } + # io.appium.android.apis/.ApiDemos + + # keyboard may exist, if it doesn't then an error will raise + ignore { hide_keyboard } + + # return to app start + back + wait { find('Invoke Search') } + back + wait { find_exact('Search') } + back + wait { find('app') } end end \ No newline at end of file