Sha256: 0c7331b08db89870606d7ea6960695312d9c6930476d4e20b99c78dc039be393

Contents?: true

Size: 350 Bytes

Versions: 20

Compression:

Stored size: 350 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 image img
    alias images imgs
  end # Container
end # Watir

Version data entries

20 entries across 20 versions & 1 rubygems

Version Path
watir-7.1.0 lib/watir/elements/image.rb
watir-7.0.0 lib/watir/elements/image.rb
watir-7.0.0.beta5 lib/watir/elements/image.rb
watir-7.0.0.beta4 lib/watir/elements/image.rb
watir-7.0.0.beta3 lib/watir/elements/image.rb
watir-7.0.0.beta2 lib/watir/elements/image.rb
watir-7.0.0.beta1 lib/watir/elements/image.rb
watir-6.19.1 lib/watir/elements/image.rb
watir-6.19.0 lib/watir/elements/image.rb
watir-6.18.0 lib/watir/elements/image.rb
watir-6.17.0 lib/watir/elements/image.rb
watir-6.16.5 lib/watir/elements/image.rb
watir-6.16.4 lib/watir/elements/image.rb
watir-6.16.3 lib/watir/elements/image.rb
watir-6.16.2 lib/watir/elements/image.rb
watir-6.16.1 lib/watir/elements/image.rb
watir-6.16.0 lib/watir/elements/image.rb
watir-6.15.1 lib/watir/elements/image.rb
watir-6.15.0 lib/watir/elements/image.rb
watir-6.14.0 lib/watir/elements/image.rb