Sha256: 5c5aa23c78d2048280d5f2b714de8d83b30c4b871221639a0f0d9bfa026a16af

Contents?: true

Size: 790 Bytes

Versions: 3

Compression:

Stored size: 790 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
      enter_text_and_hit_enter(search_text)
    end
    
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
operawatir-0.4.1.pre5-jruby lib/operawatir/quickwidgets/quick_searchfield.rb
operawatir-0.4.1.pre4-jruby lib/operawatir/quickwidgets/quick_searchfield.rb
operawatir-0.4.1.pre3-jruby lib/operawatir/quickwidgets/quick_searchfield.rb