Module: ClickToChangeStateMixin

Included in:
Button, Link
Defined in:
lib/rutl/interface/elements/click_to_change_state_mixin.rb

Overview

Mix this in for things that change state when clicked. The only things that wouldn’t change state when clicked either shouldn’t be clicked or are just annoying.

Instance Method Summary collapse

Instance Method Details

#clickObject



7
8
9
10
11
12
13
# File 'lib/rutl/interface/elements/click_to_change_state_mixin.rb', line 7

def click
  this_css.click

  # TODO: Is this part of the instance-stamping problem???
  # returns the page it found
  @context.interface.wait_for_transition(@context.destinations)
end