Skip to content

Commit

Permalink
Update EXAMPLES.rdoc to fix Google example
Browse files Browse the repository at this point in the history
google.com's search form is not named gbqf but has ID of gbqf. Changed page.form_with(:name => 'gbqf') to age.form_with(:id => 'gbqf')
  • Loading branch information
DrGauss committed Jul 12, 2014
1 parent 0efd9fd commit 29e800d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion EXAMPLES.rdoc
Expand Up @@ -15,7 +15,7 @@ example, <code>do ... end.submit</code> is the same as <code>{ ...
}

a.get('http://google.com/') do |page|
search_result = page.form_with(:name => 'gbqf') do |search|
search_result = page.form_with(:id => 'gbqf') do |search|
search.q = 'Hello world'
end.submit

Expand Down

0 comments on commit 29e800d

Please sign in to comment.