Sha256: 06c17a2b29b7bf8be6aba32462aefb97fa64f5bf3fc5c02c07995c7391ec06e9

Contents?: true

Size: 764 Bytes

Versions: 51

Compression:

Stored size: 764 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/ do |text|
  @browser.text.should =~ /#{text}/m
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

51 entries across 51 versions & 6 rubygems

Version Path
aslakhellesoy-cucumber-0.3.10 examples/watir/features/step_definitons/search_steps.rb
aslakhellesoy-cucumber-0.3.11.1 examples/watir/features/step_definitons/search_steps.rb
aslakhellesoy-cucumber-0.3.11.200907091518 examples/watir/features/step_definitons/search_steps.rb
aslakhellesoy-cucumber-0.3.11.3 examples/watir/features/step_definitons/search_steps.rb
aslakhellesoy-cucumber-0.3.11.5 examples/watir/features/step_definitons/search_steps.rb
aslakhellesoy-cucumber-0.3.11.6 examples/watir/features/step_definitons/search_steps.rb
aslakhellesoy-cucumber-0.3.11 examples/watir/features/step_definitons/search_steps.rb
aslakhellesoy-cucumber-0.3.2 examples/watir/features/step_definitons/search_steps.rb
aslakhellesoy-cucumber-0.3.3.1 examples/watir/features/step_definitons/search_steps.rb
aslakhellesoy-cucumber-0.3.3.2 examples/watir/features/step_definitons/search_steps.rb
aslakhellesoy-cucumber-0.3.3.3 examples/watir/features/step_definitons/search_steps.rb
aslakhellesoy-cucumber-0.3.3.4 examples/watir/features/step_definitons/search_steps.rb
aslakhellesoy-cucumber-0.3.3.5 examples/watir/features/step_definitons/search_steps.rb
aslakhellesoy-cucumber-0.3.3.6 examples/watir/features/step_definitons/search_steps.rb
aslakhellesoy-cucumber-0.3.3 examples/watir/features/step_definitons/search_steps.rb
aslakhellesoy-cucumber-0.3.4 examples/watir/features/step_definitons/search_steps.rb
aslakhellesoy-cucumber-0.3.5 examples/watir/features/step_definitons/search_steps.rb
aslakhellesoy-cucumber-0.3.6.1 examples/watir/features/step_definitons/search_steps.rb
aslakhellesoy-cucumber-0.3.7.1 examples/watir/features/step_definitons/search_steps.rb
aslakhellesoy-cucumber-0.3.7.2 examples/watir/features/step_definitons/search_steps.rb