Sha256: c037a2ba5a9bed10236bc4c9ba5bb04a19313736b7bf41411e2b6b4e9c5579d3

Contents?: true

Size: 373 Bytes

Versions: 15

Compression:

Stored size: 373 Bytes

Contents

module Watir
  class Image < HTMLElement

    #
    # Returns true if image is loaded.
    #
    # @return [Boolean]
    #

    def loaded?
      return false unless complete?
      element_call { execute_js(:isImageLoaded, @element) }
    end

  end # Image

  module Container
     alias_method :image, :img
     alias_method :images, :imgs
  end # Container
end # Watir

Version data entries

15 entries across 15 versions & 1 rubygems

Version Path
watir-6.13.0 lib/watir/elements/image.rb
watir-6.12.0 lib/watir/elements/image.rb
watir-6.11.0 lib/watir/elements/image.rb
watir-6.11.0.beta2 lib/watir/elements/image.rb
watir-6.11.0.beta1 lib/watir/elements/image.rb
watir-6.10.3 lib/watir/elements/image.rb
watir-6.10.2 lib/watir/elements/image.rb
watir-6.10.0 lib/watir/elements/image.rb
watir-6.9.1 lib/watir/elements/image.rb
watir-6.9.0 lib/watir/elements/image.rb
watir-6.8.4 lib/watir/elements/image.rb
watir-6.8.3 lib/watir/elements/image.rb
watir-6.8.2 lib/watir/elements/image.rb
watir-6.8.1 lib/watir/elements/image.rb
watir-6.8.0 lib/watir/elements/image.rb