Sha256: d7ef3e3a499a0877b04d44a77112eb7302dc768422759599002023adc09e8a83

Contents?: true

Size: 716 Bytes

Versions: 1

Compression:

Stored size: 716 Bytes

Contents

module OperaWatir
  class QuickThumbnail < QuickButton
 
    # @private
    # Checks the type of the widget is correct
    def correct_type?
      @element.getType == WIDGET_ENUM_MAP[:thumbnail]
    end
    
    ######################################################################
    # Drag and drop this speeddial
    #
    # @param [QuickThumbnail] Thumbnail to drop this thumbnail on
    #
    # @raise [DesktopExceptions::UnknownObjectException] if the target is not a thumbnail
    #
    #@private
    def move_with_drag(tab_target)
      raise(Exceptions::UnknownObjectException) unless tab_target.type == :thumbnail
      drag_and_drop_on(tab_target, :center)
      
      sleep(0.1)
    end
    
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
operawatir-0.3.2-jruby lib/operawatir/quickwidgets/quick_thumbnail.rb