Sha256: 2b271aa016c286e3ba392e0585cac24875c3d5adf20027f83934048189b674af

Contents?: true

Size: 373 Bytes

Versions: 1

Compression:

Stored size: 373 Bytes

Contents

module PageObject
  module Platforms
    module SeleniumImage
      
      #
      # Return the width of the image.
      #
      def width
        dimension = @element.size
        dimension.width
      end
      
      #
      # Return the height of the image
      #
      def height
        dimension = @element.size
        dimension.height
      end
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
page-object-0.0.3 lib/page-object/platforms/selenium_image.rb