Sha256: 479d7dd0e11d527fd1df9685e96378ae3bfa150e50d33de25eb14df3c7ae2737

Contents?: true

Size: 355 Bytes

Versions: 164

Compression:

Stored size: 355 Bytes

Contents

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

When /I search for "(.*)"/ do |query|
  @browser.type('q', query)   
  @browser.click 'btnG'
  @browser.wait_for_page_to_load
end

Then /I should see a link to (.*)/ do |expected_url|
  @browser.is_element_present("css=a[href='#{expected_url}']").should be_true
end

Version data entries

164 entries across 164 versions & 15 rubygems

Version Path
cucumber-0.3.6 examples/selenium/features/step_definitons/search_steps.rb
cucumber-0.3.7 examples/selenium/features/step_definitons/search_steps.rb
cucumber-0.3.9 examples/selenium/features/step_definitons/search_steps.rb
cucumber-0.3.8 examples/selenium/features/step_definitons/search_steps.rb