Class Celerity::Image
In: lib/celerity/watir_compatibility.rb
lib/celerity/elements/image.rb
Parent: Object

Methods

Included Modules

ClickableElement

Constants

TAGS = [ Identifier.new('img') ]
ATTRIBUTES = BASE_ATTRIBUTES | [ :align, :alt, :border, :height, :hspace, :ismap, :longdesc, :name, :src, :usemap, :vspace, :width, ]
DEFAULT_HOW = :src

External Aliases

loaded? -> hasLoaded?
file_size -> fileSize
file_created_date -> fileCreatedDate

Public Instance methods

returns the file created date of the image

returns the file size of the image in bytes

returns the height in pixels of the image, as a string

returns true if the image is loaded

Saves the image to the given file

returns the width in pixels of the image, as a string

[Validate]