Sha256: 8331e514e3dcd13758548e053cf7a87acea07c0b7fc622fffff0e54d58656ef9

Contents?: true

Size: 385 Bytes

Versions: 5

Compression:

Stored size: 385 Bytes

Contents

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

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
page-object-0.2 lib/page-object/platforms/selenium_image.rb
page-object-0.1.1 lib/page-object/platforms/selenium_image.rb
page-object-0.1 lib/page-object/platforms/selenium_image.rb
page-object-0.0.5 lib/page-object/platforms/selenium_image.rb
page-object-0.0.4 lib/page-object/platforms/selenium_image.rb