Sha256: 720eaa87a54eaac529ca7a0a14c93e8f051174c047525e4b8d2b9ec54cbdfe8b
Contents?: true
Size: 1000 Bytes
Versions: 5
Compression:
Stored size: 1000 Bytes
Contents
module OperaWatir class QuickSearchField < QuickEditField # @private # Checks the type of the widget is correct def correct_type? @element.getType == WIDGET_ENUM_MAP[:search] end ###################################################################### # Enters the search text into the search field, and waits for page # loading to finish # # @param [String] url text to search with # # @return [String] text in the address field after the page is loaded # or a blank string # def search_with_text(search_text) # Must focus field before calling enter_text... focus_with_click # Enters text in a field and then hits enter t = enter_text_and_hit_enter(search_text) # return text in addressfield (in same window as search field) driver.findWidgetByName(WIDGET_ENUM_MAP[:addressfield], @window_id, "tba_address_field", "Document Toolbar").getText end end end
Version data entries
5 entries across 5 versions & 1 rubygems