lib/rautomation/adapter/ms_uia/text_field.rb in rautomation-0.8.0 vs lib/rautomation/adapter/ms_uia/text_field.rb in rautomation-0.9.0
- old
+ new
@@ -40,10 +40,10 @@
def hwnd
Functions.control_hwnd(@window.hwnd, @locators)
end
def exist?
- super && matches_type?(Constants::UIA_EDIT_CONTROL_TYPE)
+ super && matches_type?(Constants::UIA_EDIT_CONTROL_TYPE, Constants::UIA_DOCUMENT_CONTROL_TYPE)
end
alias_method :exists?, :exist?
end