class AX::StaticText

Represents text on the screen that cannot directly be changed by a user, usually a label or an instructional text block.

Public Instance Methods

==(other) click to toggle source

Test equality with another object. Equality can be with another {AX::Element} or it can be with a string that matches the value of the static text.

@return [Boolean]

Calls superclass method AX::Element#==
# File lib/ax/static_text.rb, line 14
def == other
  if other.kind_of? String
    attribute(:value) == other
  else
    super
  end
end