lib/appium_lib/android/element/button.rb in appium_lib-11.2.0 vs lib/appium_lib/android/element/button.rb in appium_lib-12.0.0.rc1

- old
+ new

@@ -96,13 +96,13 @@ button_index = opts.fetch :button_index, false image_button_index = opts.fetch :image_button_index, false if button_index && image_button_index "new UiSelector().className(#{BUTTON}).instance(#{button_index});" \ - "new UiSelector().className(#{IMAGE_BUTTON}).instance(#{image_button_index});" + "new UiSelector().className(#{IMAGE_BUTTON}).instance(#{image_button_index});" else "new UiSelector().className(#{BUTTON});" \ - "new UiSelector().className(#{IMAGE_BUTTON});" + "new UiSelector().className(#{IMAGE_BUTTON});" end end def _button_exact_string(value) button = string_visible_exact BUTTON, value