android_tests/lib/android/specs/common/patch.rb in appium_lib-9.4.2 vs android_tests/lib/android/specs/common/patch.rb in appium_lib-9.4.3

- old
+ new

@@ -46,12 +46,19 @@ exp = 'An element could not be located on the page using the given search parameters.' value.must_equal exp end t 'id success' do - wait do - el = id 'autocomplete_3_button_7' # <string name="autocomplete_3_button_7">Text</string> - el.name.must_equal 'Text' + if !automation_name_is_uiautomator2? + wait do + el = id 'autocomplete_3_button_7' # <string name="autocomplete_3_button_7">Text</string> + el.name.must_equal 'Text' + end + else + wait do + el = text 'text' # <string name="autocomplete_3_button_7">Text</string> + el.name.must_equal 'Text' + end end end t 'find many elements by resource id' do wait do