Sha256: 030a3d4c62c401fa1153e7581bd2ec3e259eec1237f878701fcc580d25d04028

Contents?: true

Size: 348 Bytes

Versions: 3

Compression:

Stored size: 348 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
    interface.wait_for_transition(@destinations)
    # TODO: Return what?
    @destinations
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
rutl-0.1.3 lib/rutl/interface/elements/click_to_change_state_mixin.rb
rutl-0.1.2 lib/rutl/interface/elements/click_to_change_state_mixin.rb
rutl-0.1.1 lib/rutl/interface/elements/click_to_change_state_mixin.rb