Sha256: cc8ee3dc1be6d81e62b2b63ddcfc3910c4b1ab17575d7c9f7e603d4f36980668

Contents?: true

Size: 840 Bytes

Versions: 70

Compression:

Stored size: 840 Bytes

Contents

# Full Watir API: http://wtr.rubyforge.org/rdoc/
# Full RSpec API: http://rspec.rubyforge.org/

Given 'I am on the Google search page' do
  @browser.goto 'http://www.google.com/'
end

When /I search for "(.*)"/ do |query|
  @browser.text_field(:name, 'q').set(query)
  @browser.button(:name, 'btnG').click
end

Then /I should see a link to "(.*)":(.*)/ do |text, url|
  link = @browser.link(:url, url)
  link.should_not == nil
  link.text.should == text
end

# To avoid step definitions that are tightly coupled to your user interface,
# consider creating classes for your pages - such as this:
# http://github.com/aslakhellesoy/cucumber/tree/v0.1.15/examples/watir/features/step_definitons/search_steps.rb
#
# You may keep the page classes along your steps, or even better, put them in separate files, e.g.
# support/pages/google_search.rb

Version data entries

70 entries across 70 versions & 6 rubygems

Version Path
aslakhellesoy-cucumber-0.1.100.1 examples/watir/features/step_definitons/search_steps.rb
aslakhellesoy-cucumber-0.1.100.2 examples/watir/features/step_definitons/search_steps.rb
aslakhellesoy-cucumber-0.1.100.3 examples/watir/features/step_definitons/search_steps.rb
aslakhellesoy-cucumber-0.1.100.4 examples/watir/features/step_definitons/search_steps.rb
aslakhellesoy-cucumber-0.1.100.5 examples/watir/features/step_definitons/search_steps.rb
aslakhellesoy-cucumber-0.1.16.1 examples/watir/features/step_definitons/search_steps.rb
aslakhellesoy-cucumber-0.1.16.2 examples/watir/features/step_definitons/search_steps.rb
aslakhellesoy-cucumber-0.1.16.3 examples/watir/features/step_definitons/search_steps.rb
aslakhellesoy-cucumber-0.1.16.4 examples/watir/features/step_definitons/search_steps.rb
aslakhellesoy-cucumber-0.1.16.5 examples/watir/features/step_definitons/search_steps.rb
aslakhellesoy-cucumber-0.1.16 examples/watir/features/step_definitons/search_steps.rb
aslakhellesoy-cucumber-0.1.99.1 examples/watir/features/step_definitons/search_steps.rb
aslakhellesoy-cucumber-0.1.99.10 examples/watir/features/step_definitons/search_steps.rb
aslakhellesoy-cucumber-0.1.99.11 examples/watir/features/step_definitons/search_steps.rb
aslakhellesoy-cucumber-0.1.99.12 examples/watir/features/step_definitons/search_steps.rb
aslakhellesoy-cucumber-0.1.99.13 examples/watir/features/step_definitons/search_steps.rb
aslakhellesoy-cucumber-0.1.99.14 examples/watir/features/step_definitons/search_steps.rb
aslakhellesoy-cucumber-0.1.99.15 examples/watir/features/step_definitons/search_steps.rb
aslakhellesoy-cucumber-0.1.99.17 examples/watir/features/step_definitons/search_steps.rb
aslakhellesoy-cucumber-0.1.99.18 examples/watir/features/step_definitons/search_steps.rb