Sha256: 9959af96cd3a9b49c9f59b856e05b1026675472b059bf0b60531be1f5f8c34f3

Contents?: true

Size: 671 Bytes

Versions: 16

Compression:

Stored size: 671 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 step(s)

  end

  def steps(ss)

  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

16 entries across 16 versions & 2 rubygems

Version Path
testautoi-0.9.135 lib/calabash-cucumber/ibase.rb
testautoi-0.9.134 lib/calabash-cucumber/ibase.rb
testautoi-0.9.133 lib/calabash-cucumber/ibase.rb
calabash-cucumber-0.9.133 lib/calabash-cucumber/ibase.rb
calabash-cucumber-0.9.132 lib/calabash-cucumber/ibase.rb
calabash-cucumber-0.9.129 lib/calabash-cucumber/ibase.rb
calabash-cucumber-0.9.128 lib/calabash-cucumber/ibase.rb
testautoi-0.9.127 lib/calabash-cucumber/ibase.rb
calabash-cucumber-0.9.127.pre1 lib/calabash-cucumber/ibase.rb
calabash-cucumber-0.9.126 lib/calabash-cucumber/ibase.rb
calabash-cucumber-0.9.125 lib/calabash-cucumber/ibase.rb
calabash-cucumber-0.9.124 lib/calabash-cucumber/ibase.rb
calabash-cucumber-0.9.123 lib/calabash-cucumber/ibase.rb
calabash-cucumber-0.9.122 lib/calabash-cucumber/ibase.rb
calabash-cucumber-0.9.121 lib/calabash-cucumber/ibase.rb
calabash-cucumber-0.9.120 lib/calabash-cucumber/ibase.rb