Skip to content

Commit

Permalink
Changed to use the link's label instead of the url for searching
Browse files Browse the repository at this point in the history
Seems like the webrat/selenium methods don't like using IDs and URLs
  • Loading branch information
comcast authored and comcast committed Apr 28, 2009
1 parent 76b4698 commit 540e234
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion examples/selenium_webrat/features/search.feature
Expand Up @@ -6,4 +6,4 @@ Feature: Search
Scenario: Find what I'm looking for
Given I am on the Google search page
When I search for "rspec"
Then I should see a link to http://rspec.info/
Then I should see a link to RSpec-1.2.4: Home
Expand Up @@ -4,10 +4,10 @@

When /I search for "(.*)"/ do |query|
fill_in('q', :with => query)
click_button('btnG')
click_button 'Google Search'
selenium.wait_for_page_to_load
end

Then /I should see a link to (.*)/ do |expected_url|
click_link(expected_url)
click_link expected_url
end

0 comments on commit 540e234

Please sign in to comment.