Sha256: af24b81d5f392734caa2877f5bc57eba74495dd73b773b8c9cbd2e1df9df5a20

Contents?: true

Size: 732 Bytes

Versions: 10

Compression:

Stored size: 732 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

10 entries across 10 versions & 1 rubygems

Version Path
operawatir-0.7.pre4-jruby lib/operawatir/quickwidgets/quick_thumbnail.rb
operawatir-0.7.pre3-jruby lib/operawatir/quickwidgets/quick_thumbnail.rb
operawatir-0.7.pre2-jruby lib/operawatir/quickwidgets/quick_thumbnail.rb
operawatir-0.7.pre1-jruby lib/operawatir/quickwidgets/quick_thumbnail.rb
operawatir-0.6.pre1-jruby lib/operawatir/quickwidgets/quick_thumbnail.rb
operawatir-0.5.1-jruby lib/operawatir/quickwidgets/quick_thumbnail.rb
operawatir-0.5-jruby lib/operawatir/quickwidgets/quick_thumbnail.rb
operawatir-0.5.pre3-jruby lib/operawatir/quickwidgets/quick_thumbnail.rb
operawatir-0.5.pre2-jruby lib/operawatir/quickwidgets/quick_thumbnail.rb
operawatir-0.5.pre1-jruby lib/operawatir/quickwidgets/quick_thumbnail.rb