Sha256: ff40b141e0fb02519f29b1ac14c3214f451c0b2b7eb37d0e1f926c90a60f334a
Contents?: true
Size: 1.11 KB
Versions: 10
Compression:
Stored size: 1.11 KB
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 # # @example (RSpec) # browser.quick_searchfield(:name, "tbs_MainSearch").search_with_text("old cars").should include "http://www.google" # # @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
10 entries across 10 versions & 1 rubygems