Watir works by using the OLE/COM Automation interface to control Internet Explorer and allow tests to drive the browser. It uses the Document Object Model (DOM) standard to represent and interact with elements of a web page, which is supported by most major browsers. Tests are created by viewing the source, using Watir's show methods, DOM inspectors, or by building your own scripts to use the OLE/COM interface to automate a browser.