Sha256: 1096e1a3e73e275dbe4ec0e3b565bf6d42ec0586afd9f9c9e45ecf35fac5f695

Contents?: true

Size: 426 Bytes

Versions: 49

Compression:

Stored size: 426 Bytes

Contents

module PageObject
  module Platforms
    module SeleniumWebDriver
      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

49 entries across 49 versions & 3 rubygems

Version Path
page-object-2.0.0 lib/page-object/platforms/selenium_webdriver/image.rb
page-object-1.2.2 lib/page-object/platforms/selenium_webdriver/image.rb
page-object-1.2.1 lib/page-object/platforms/selenium_webdriver/image.rb
page-object-1.2.0 lib/page-object/platforms/selenium_webdriver/image.rb
page-object-1.1.1 lib/page-object/platforms/selenium_webdriver/image.rb
page_object-1.1.3 lib/page-object/platforms/selenium_webdriver/image.rb
page_object-1.1.2 lib/page-object/platforms/selenium_webdriver/image.rb
page_object-1.1.1 lib/page-object/platforms/selenium_webdriver/image.rb
page-object-1.1.0 lib/page-object/platforms/selenium_webdriver/image.rb
page-object-1.0.3 lib/page-object/platforms/selenium_webdriver/image.rb
meeane-page-object-0.1.11 lib/page-object/platforms/selenium_webdriver/image.rb
page-object-1.0.2 lib/page-object/platforms/selenium_webdriver/image.rb
page-object-1.0.1 lib/page-object/platforms/selenium_webdriver/image.rb
page-object-1.0 lib/page-object/platforms/selenium_webdriver/image.rb
page-object-0.9.8 lib/page-object/platforms/selenium_webdriver/image.rb
page-object-0.9.7 lib/page-object/platforms/selenium_webdriver/image.rb
page-object-0.9.6 lib/page-object/platforms/selenium_webdriver/image.rb
page-object-0.9.5 lib/page-object/platforms/selenium_webdriver/image.rb
page-object-0.9.4 lib/page-object/platforms/selenium_webdriver/image.rb
page-object-0.9.3 lib/page-object/platforms/selenium_webdriver/image.rb