Sha256: 94f2b8a8005ba32af66d43f5c52f0c5345651d5965df9afb47f0f52c6e14267a

Contents?: true

Size: 625 Bytes

Versions: 1

Compression:

Stored size: 625 Bytes

Contents

require 'calabash-cucumber/core'
require 'calabash-cucumber/operations'

class Calabash::IBase
  include Calabash::Cucumber::Operations

  def initialize(world)
    @world = world
  end

  def embed(*args)
    @world.send(:embed,*args)
  end

  def puts(*args)
    @world.send(:puts, *args)
  end

  def trait
    "navigationItemView marked:'#{self.title}'"
  end

  def page(clz,*args)
    clz.new(@world,*args)
  end

  def await(opts={})
    wait_for_elements_exist([trait], opts)
    self
  end

  def await_screenshot(wait_opts={},screenshot_opts={})
    await(wait_opts)
    screenshot_embed(screenshot_opts)
  end

end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
calabash-cucumber-0.9.119 lib/calabash-cucumber/ibase.rb