Sha256: 5e21dd4cdf519e57c6a23cc4fa31a4d13566ab44274859fd9f48b2b1bb7c9b41
Contents?: true
Size: 998 Bytes
Versions: 20
Compression:
Stored size: 998 Bytes
Contents
# encoding: utf-8 module Watir class Image < HTMLElement alias_method :loaded?, :complete? # # returns the image's width in pixels # # @return [Integer] width # def width assert_exists driver.execute_script "return arguments[0].width", @element end # # returns the image's height in pixels # # @return [Integer] height # def height assert_exists driver.execute_script "return arguments[0].height", @element end def file_created_date assert_exists raise NotImplementedError, "not currently supported by WebDriver" end def file_size assert_exists raise NotImplementedError, "not currently supported by WebDriver" end def save(path) assert_exists raise NotImplementedError, "not currently supported by WebDriver" end end # Image module Container alias_method :image, :img alias_method :images, :imgs end # Container end # Watir
Version data entries
20 entries across 20 versions & 1 rubygems