Sha256: ba96e5b17bde4d34e356a6937220546226bf8ec8f87c56e256224dca2f5054fe

Contents?: true

Size: 320 Bytes

Versions: 3

Compression:

Stored size: 320 Bytes

Contents

require 'page_navigation'

module Mohawk
  module Navigation
    include PageNavigation

    def on(cls, extra={}, &block)
      screen = cls.new extra
      screen.wait_until_present "Unable to locate #{cls} using #{screen.adapter.locator}"
      block.call screen if block
      screen
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
mohawk-1.0 lib/mohawk/navigation.rb
mohawk-0.4.4 lib/mohawk/navigation.rb
mohawk-0.4.3 lib/mohawk/navigation.rb