Class: AX::RadioButton

Inherits:
Element show all
Defined in:
lib/ax/radio_button.rb

Overview

Radio buttons are not the same as a generic button, radio buttons work in mutually exclusive groups (you can only select one at a time). You often have radio buttons when dealing with tab groups.

Instance Method Summary collapse

Methods inherited from Element

#actions, #ancestor, #ancestry, #application, #attribute, #attributes, #blank?, #bounds, #children, #description, #initialize, #inspect, #inspect_subtree, #invalid?, #method_missing, #methods, #parameterized_attribute, #parameterized_attributes, #perform, #pid, #respond_to?, #screenshot, #search, #set, #size_of, #to_h, #to_point, #to_s, #type, #writable?

Methods included from Accessibility::PrettyPrinter

#pp_checkbox, #pp_children, #pp_enabled, #pp_focused, #pp_identifier, #pp_position

Constructor Details

This class inherits a constructor from AX::Element

Dynamic Method Handling

This class handles dynamic methods through the method_missing method in the class AX::Element

Instance Method Details

#==(other) ⇒ Boolean

Test equality with another object. Equality can be with another Element or it can be with a string that matches the title of the radio button.

Returns:

  • (Boolean)


15
16
17
18
19
20
21
# File 'lib/ax/radio_button.rb', line 15

def == other
  if other.kind_of? String
    attribute(:title) == other
  else
    super
  end
end