Sha256: e9898e2f6199b9538c2f1d2548011c1ad8688c08f6c87871935726b05e3cac17

Contents?: true

Size: 695 Bytes

Versions: 12

Compression:

Stored size: 695 Bytes

Contents

# Commonly used webrat steps
# http://github.com/brynary/webrat

When /^I go to (.*)$/ do |path|
  visit path
end

When /^I press "(.*)"$/ do |button|
  click_button(button)
end

When /^I follow "(.*)"$/ do |link|
  click_link(link)
end

When /^I fill in "(.*)" with "(.*)"$/ do |field, value|
  fill_in(field, :with => value) 
end

When /^I select "(.*)" from "(.*)"$/ do |value, field|
  select(value, :from => field) 
end

When /^I check "(.*)"$/ do |field|
  check(field) 
end

When /^I uncheck "(.*)"$/ do |field|
  uncheck(field) 
end

When /^I choose "(.*)"$/ do |field|
  choose(field)
end

When /^I attach the file at "(.*)" to "(.*)" $/ do |path, field|
  attach_file(field, path)
end

Version data entries

12 entries across 12 versions & 4 rubygems

Version Path
david-merb_cucumber-0.3.1.1 lib/generators/cucumber/templates/features/steps/common_webrat.rb
david-merb_cucumber-0.4.0 lib/generators/cucumber/templates/features/steps/common_webrat.rb
david-merb_cucumber-0.4.1 lib/generators/cucumber/templates/features/steps/webrat_steps.rb
david-merb_cucumber-0.5.0.1 lib/generators/cucumber/templates/features/steps/webrat_steps.rb
david-merb_cucumber-0.5.0 lib/generators/cucumber/templates/features/steps/webrat_steps.rb
david-merb_cucumber-0.5.1.1 lib/generators/cucumber/templates/features/steps/webrat_steps.rb
david-merb_cucumber-0.5.1.2 lib/generators/cucumber/templates/features/steps/webrat_steps.rb
david-merb_cucumber-0.5.1 lib/generators/cucumber/templates/features/steps/webrat_steps.rb
roman-merb_cucumber-0.5.1.3 lib/generators/cucumber/templates/features/steps/webrat_steps.rb
merb_cucumber-0.6.1 lib/generators/cucumber/templates/features/steps/webrat_steps.rb
dr-merb_cucumber-0.6 lib/generators/cucumber/templates/features/steps/webrat_steps.rb
merb_cucumber-0.5.1.2 lib/generators/cucumber/templates/features/steps/webrat_steps.rb