Sha256: 9e794b5e0190042009c695bb8494b37777b2c1f09dd63750fabf9d83545a481d

Contents?: true

Size: 426 Bytes

Versions: 18

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

18 entries across 18 versions & 1 rubygems

Version Path
page-object-0.6.3 lib/page-object/platforms/selenium_webdriver/image.rb
page-object-0.6.2 lib/page-object/platforms/selenium_webdriver/image.rb
page-object-0.6.1 lib/page-object/platforms/selenium_webdriver/image.rb
page-object-0.6 lib/page-object/platforms/selenium_webdriver/image.rb
page-object-0.5.5 lib/page-object/platforms/selenium_webdriver/image.rb
page-object-0.5.4 lib/page-object/platforms/selenium_webdriver/image.rb
page-object-0.5.3 lib/page-object/platforms/selenium_webdriver/image.rb
page-object-0.5.2 lib/page-object/platforms/selenium_webdriver/image.rb
page-object-0.5.1 lib/page-object/platforms/selenium_webdriver/image.rb
page-object-0.5.0 lib/page-object/platforms/selenium_webdriver/image.rb
page-object-0.4.4 lib/page-object/platforms/selenium_webdriver/image.rb
page-object-0.4.3 lib/page-object/platforms/selenium_webdriver/image.rb
page-object-0.4.2 lib/page-object/platforms/selenium_webdriver/image.rb
page-object-0.4.1 lib/page-object/platforms/selenium_webdriver/image.rb
page-object-0.4.0 lib/page-object/platforms/selenium_webdriver/image.rb
page-object-0.3.2 lib/page-object/platforms/selenium_webdriver/image.rb
page-object-0.3.1 lib/page-object/platforms/selenium_webdriver/image.rb
page-object-0.3.0 lib/page-object/platforms/selenium_webdriver/image.rb