Sha256: 33ed249b9d08e9db2ca4df7ae1a8c5395eacb48d1cd3c0b03aea0a50d244a626

Contents?: true

Size: 381 Bytes

Versions: 4

Compression:

Stored size: 381 Bytes

Contents

# frozen_string_literal: true

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

4 entries across 4 versions & 1 rubygems

Version Path
watir-7.3.0 lib/watir/elements/image.rb
watir-7.2.2 lib/watir/elements/image.rb
watir-7.2.1 lib/watir/elements/image.rb
watir-7.2.0 lib/watir/elements/image.rb