Sha256: 217ca544bd6e071c2f3126b6c990fa925987556c951706ffe7e86a68c4c843b0

Contents?: true

Size: 873 Bytes

Versions: 5

Compression:

Stored size: 873 Bytes

Contents

module OperaWatir
  class QuickAddressField < QuickEditField

    # Checks the type of the widget is correct
    #
    # @private
    def correct_type?
      @element.getType == WIDGET_ENUM_MAP[:addressfield]
    end

    # Enters the url into the address field, and waits for page loading 
    # to finish
    #
    # @param  [String] URL to load
    # @return [String] text in the address field after the page is loaded
    #                  or a blank string
    def load_page_with_url(url)
      # Enters text in a field and then hits enter
      enter_text_and_hit_enter(url)
    end
    
    #
    # Gets the visible text in the address field
    #
    def visible_text
      element.getVisibleText()
    end
    
    #
    # Gets the highlighted text in the address field
    #
    def highlighted_text
      element.getAdditionalText()     
    end
    
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

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