Sha256: e6a8c43ad6ba1a651b6b3a46d3b96be823624dc1ed38892ac7a836fd0b6bb516

Contents?: true

Size: 713 Bytes

Versions: 6

Compression:

Stored size: 713 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)
      # Enters text in a field and then hits enter
      enter_text_and_hit_enter(search_text)
    end
    
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
operawatir-0.4.1.pre2-jruby lib/operawatir/quickwidgets/quick_searchfield.rb
operawatir-0.4.1.pre1-jruby lib/operawatir/quickwidgets/quick_searchfield.rb
operawatir-0.4-jruby lib/operawatir/quickwidgets/quick_searchfield.rb
operawatir-0.3.7.pre2-jruby lib/operawatir/quickwidgets/quick_searchfield.rb
operawatir-0.3.7.pre1-jruby lib/operawatir/quickwidgets/quick_searchfield.rb
operawatir-0.3.2-jruby lib/operawatir/quickwidgets/quick_searchfield.rb