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 HTML source, using Watir methods in IRB, or with DOM inspection tools to examine the structure of pages.