Sha256: dbfb31bba262629e9c3da235792ffded767dd4c5d18bf6270d56ac18c3517eb4

Contents?: true

Size: 354 Bytes

Versions: 8

Compression:

Stored size: 354 Bytes

Contents

# Google is too hard to script with Mechanize
# Using a Norewgian search engine instead :-)
Given /^I am on the Kvasir search page$/ do
  visit('http://www.kvasir.no/')
end

When /^I search for "([^"]*)"$/ do |query|
  fill_in('q', :with => query)
  click_button('sokeKnapp')
end

Then /^I should see$/ do |text|
  response_body.should contain(text)
end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
cucumber-0.8.4 examples/webrat/features/step_definitions/kvasir_steps.rb
cucumber-0.8.3 examples/webrat/features/step_definitions/kvasir_steps.rb
cucumber-0.8.2 examples/webrat/features/step_definitions/kvasir_steps.rb
cucumber-0.8.1 examples/webrat/features/step_definitions/kvasir_steps.rb
cucumber-0.8.0 examples/webrat/features/step_definitions/kvasir_steps.rb
cucumber-0.7.3 examples/webrat/features/step_definitions/kvasir_steps.rb
cucumber-0.7.2 examples/webrat/features/step_definitions/kvasir_steps.rb
cucumber-0.7.1 examples/webrat/features/step_definitions/kvasir_steps.rb