Watir, pronounced “water,” is a Ruby driver library that integrates with Crome, Firefox, Safari, and Internet Explorer (dependent on the platform). After installation, you can give Watir some Ruby commands to drive the browser, clicking links and filling in forms the same as a person would. During this process, you can run a few test cases and assert that things are working as expected:
# FireWatir drives Firefox require "firewatir" browser = Watir::Browser.new browser.goto("http://bit.ly/watir-example") browser.text_field(:name => "entry.0.single").set "Watir" browser.button(:name => "logon").click
Due to limitations on which browsers can be installed on which operating systems, if you’re testing with Internet Explorer, your continuous integration server will have to ...