Sha256: 893a79886777f7d6b50ac23e0efb3bb3e9c64c2407395e6a7006c272165da618

Contents?: true

Size: 965 Bytes

Versions: 2

Compression:

Stored size: 965 Bytes

Contents

Dir[File.dirname(__FILE__) + "/../../pages/*.rb"].each do |file| 
  require file 
end

Given /^I am on a page that has a element$/ do
  @page = StaticPages::Site::Firefox.new
  @page.context StaticPages::Site::InputPage
  @page.visit
end

Given /^I am on a page that has a textfield$/ do
  @page = StaticPages::Site::Firefox.new
  @page.context StaticPages::Site::InputPage
  @page.visit
end

Given /^I am on a page that has a textarea$/ do
  @page = StaticPages::Site::Firefox.new
  @page.context StaticPages::Site::InputPage
  @page.visit
end

Given /^I am on a page that has a checkbox$/ do
  @page = StaticPages::Site::Firefox.new
  @page.context StaticPages::Site::InputPage
  @page.visit
end

And /^There is a textfield with the text "(.*?)"$/ do |text|
  @page.text_field_fill_with(text)
end

And /^There is a textarea with the text "(.*?)"$/ do |text|
  @page.textarea_fill_with(text)
end

And /^There is a checkbox checked$/ do 
  @page.checkbox_check
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
cello-0.0.17 features/step_definitions/common_steps.rb
cello-0.0.16 features/step_definitions/common_steps.rb