lib/honeydew/device.rb in honeydew-0.10.0 vs lib/honeydew/device.rb in honeydew-0.11.0

- old
+ new

@@ -16,18 +16,27 @@ @serial = serial start_uiautomator_server end def contains_textview_text?(text, timeout = Honeydew.config.timeout) - has_textview_text? text, timeout + response = has_textview_text? text, timeout + response['success'] + rescue + false end def contains_element_with_description?(description, timeout = Honeydew.config.timeout) - has_element_with_description? description, timeout + response = has_element_with_description? description, timeout + response['success'] + rescue + false end def contains_button?(text, timeout = Honeydew.config.timeout) - has_button? text, timeout + response = has_button? text, timeout + response['success'] + rescue + false end def is_app_installed?(package_name) has_app_installed?(package_name) end