README.rdoc in watirsplash-0.2.2 vs README.rdoc in watirsplash-0.2.3

- old
+ new

@@ -33,11 +33,11 @@ - saves all the files created/downloaded during the example and shows them on the report - automatically archives test results for later reviewing == SYNOPSIS: -=== Without WatirSplash: +=== With plain Watir and RSpec: require 'watir' require 'spec' describe "Google" do before :all do @@ -46,12 +46,12 @@ @browser.goto "http://google.com" @browser.url.should =~ /google/ end it "has search field" do - @browser.text_field = text_field(:name => "q") - @browser.text_field.should exist - @browser.text_field.should be_visible + text_field = @browser.text_field(:name => "q") + text_field.should exist + text_field.should be_visible end it "performs search" do @browser.text_field(:name => "q").set "Bing" @browser.button(:name => "btnG").click \ No newline at end of file