Sha256: 136373573fa67007f5ed7d724d9d9fb54c52d5ce19c201559541340c9ec4a78d

Contents?: true

Size: 750 Bytes

Versions: 24

Compression:

Stored size: 750 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

Then /^show me the page$/ do
  save_and_open_page
end

Version data entries

24 entries across 24 versions & 1 rubygems

Version Path
visage-app-0.9.4 features/step_definitions/webrat_steps.rb
visage-app-0.9.3 features/step_definitions/webrat_steps.rb
visage-app-0.9.2 features/step_definitions/webrat_steps.rb
visage-app-0.9.1 features/step_definitions/webrat_steps.rb
visage-app-0.9.0.pre2 features/step_definitions/webrat_steps.rb
visage-app-0.9.0 features/step_definitions/webrat_steps.rb
visage-app-0.9.0.pre1 features/step_definitions/webrat_steps.rb
visage-app-0.3.3 features/step_definitions/webrat_steps.rb
visage-app-0.3.2 features/step_definitions/webrat_steps.rb
visage-app-0.3.1 features/step_definitions/webrat_steps.rb
visage-app-0.3.0 features/step_definitions/webrat_steps.rb
visage-app-0.2.7 features/step_definitions/webrat_steps.rb
visage-app-0.2.6 features/step_definitions/webrat_steps.rb
visage-app-0.2.5 features/step_definitions/webrat_steps.rb
visage-app-0.2.4 features/step_definitions/webrat_steps.rb
visage-app-0.2.3 features/step_definitions/webrat_steps.rb
visage-app-0.2.2 features/step_definitions/webrat_steps.rb
visage-app-0.2.1 features/step_definitions/webrat_steps.rb
visage-app-0.2.0 features/step_definitions/webrat_steps.rb
visage-app-0.1.8 features/step_definitions/webrat_steps.rb