Sha256: 0f102a3a2273523cc463c8fc218b809e959395945e3ec967364189f609a8a1b7

Contents?: true

Size: 747 Bytes

Versions: 13

Compression:

Stored size: 747 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 onto the speed dial tab_target
    #
    # @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

13 entries across 13 versions & 1 rubygems

Version Path
operawatir-0.4.3.pre1-jruby lib/operawatir/quickwidgets/quick_thumbnail.rb
operawatir-0.4.2-jruby lib/operawatir/quickwidgets/quick_thumbnail.rb
operawatir-0.4.1-jruby lib/operawatir/quickwidgets/quick_thumbnail.rb
operawatir-0.4.1.pre7-jruby lib/operawatir/quickwidgets/quick_thumbnail.rb
operawatir-0.4.1.pre6-jruby lib/operawatir/quickwidgets/quick_thumbnail.rb
operawatir-0.4.1.pre5-jruby lib/operawatir/quickwidgets/quick_thumbnail.rb
operawatir-0.4.1.pre4-jruby lib/operawatir/quickwidgets/quick_thumbnail.rb
operawatir-0.4.1.pre3-jruby lib/operawatir/quickwidgets/quick_thumbnail.rb
operawatir-0.4.1.pre2-jruby lib/operawatir/quickwidgets/quick_thumbnail.rb
operawatir-0.4.1.pre1-jruby lib/operawatir/quickwidgets/quick_thumbnail.rb
operawatir-0.4-jruby lib/operawatir/quickwidgets/quick_thumbnail.rb
operawatir-0.3.7.pre2-jruby lib/operawatir/quickwidgets/quick_thumbnail.rb
operawatir-0.3.7.pre1-jruby lib/operawatir/quickwidgets/quick_thumbnail.rb