Sha256: 440402a7df4e62e30df71c77132ca870583420260140b8ac45e3f08b68da4fc7

Contents?: true

Size: 417 Bytes

Versions: 5

Compression:

Stored size: 417 Bytes

Contents

module PageObject
  module Platforms
    module Selenium
      module Image

        #
        # 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
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
page-object-0.2.5 lib/page-object/platforms/selenium/image.rb
page-object-0.2.4 lib/page-object/platforms/selenium/image.rb
page-object-0.2.3 lib/page-object/platforms/selenium/image.rb
page-object-0.2.2 lib/page-object/platforms/selenium/image.rb
page-object-0.2.1 lib/page-object/platforms/selenium/image.rb