Sha256: 31f5e4030428b2fa61fa64941a2f73e02f928e9a55c0cf6aeb991f775b3fbea1

Contents?: true

Size: 417 Bytes

Versions: 3

Compression:

Stored size: 417 Bytes

Contents

#
# 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.
#
module ClickToChangeStateMixin
  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
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
rutl-0.2.1 lib/rutl/interface/elements/click_to_change_state_mixin.rb
rutl-0.2.0 lib/rutl/interface/elements/click_to_change_state_mixin.rb
rutl-0.1.4 lib/rutl/interface/elements/click_to_change_state_mixin.rb