Skip to content

Commit

Permalink
Minor mistake in tests_watir.textile corrected
Browse files Browse the repository at this point in the history
  • Loading branch information
ngiger committed Feb 12, 2014
1 parent ea20941 commit fea3bcc
Showing 1 changed file with 4 additions and 8 deletions.
12 changes: 4 additions & 8 deletions tests_watir.textile
Expand Up @@ -19,14 +19,10 @@ h2. Creating new tests interactively
Here is a irb sample, which demonstrates the main points.

bq. require Dir.pwd + '/spec/spec_helper.rb'
HomeUrl = "oddb-ci2.dyndns.org"
@browser = Watir::Browser.new
# should open firefox, the default watir browser
@browser.goto HomeUrl
# Now it should show the home page of the your test site
page = OddMain.new(HomeUrl, true)
puts @browser.selects[0].text
# should ouput Preisvergleich <..>
@browser = Watir::Browser.new # should open firefox, the default watir browser
@browser.goto OddbUrl # Now it should show the home page of the your test site
page = OddMain.new(OddbUrl, true)
puts @browser.selects[0].text # should ouput Preisvergleich <..>
@browser.buttons[1].click # goes to the paypal site
@browser.back # to back
@browser.select(:name => /search_type/).select('Interaktion')
Expand Down

0 comments on commit fea3bcc

Please sign in to comment.