Getting the page title 13/08/2012
# Retrieving browser title is very simple
browser.title

# Comparing the page title to a string can be done with an rspec matcher
browser.title.should == title

Making sure that the page titles are correct is important from the SEO point of view. Getting the title of a page with watir-webdriver is very easy after which the title can be compared to an expected value.