Sha256: d1f6fb5e94cf9d145f63b5128083806a3458eb30bcaea7521ab4b2577c164d61

Contents?: true

Size: 398 Bytes

Versions: 6

Compression:

Stored size: 398 Bytes

Contents

class LockersPage < UnderOs::Page
  def initialize
    first('#buttons #b1').on(:tap){ show_simple_locker }
    first('#buttons #b2').on(:tap){ show_locker_with_label }
  end

  def show_simple_locker
    @locker = Locker.new.show
    2.seconds.later { @locker.hide }
  end

  def show_locker_with_label
    @locker = Locker.new(text: "Wait...").show
    2.seconds.later { @locker.hide }
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
under-os-1.4.0 app/pages/lockers_page.rb
under-os-1.3.0 app/pages/lockers_page.rb
under-os-1.2.1 app/pages/lockers_page.rb
under-os-1.2.0 app/pages/lockers_page.rb
under-os-1.1.0 app/pages/lockers_page.rb
under-os-1.0.0 app/pages/lockers_page.rb