Watir

Download as pdf or txt
Download as pdf or txt
You are on page 1of 2

Watir

Watir (Web Application Testing in Ruby, pronounced water), is


an open-source family of Ruby libraries for automating web
Watir
browsers.[1][2][3][4] It drives Internet Explorer, Firefox, Chrome,
Opera and Safari, and is available as a RubyGems gem.[4][5]
Watir was primarily developed by Bret Pettichord and Paul
Rogers.

Functionality
Watir project consists of several smaller projects. The most
important ones are watir-classic, watir-webdriver and watirspec.
Developer(s) Bret Pettichord,
Charley Baker,
Watir-classic Angrez Singh,
Jari Bakken,
Watir-classic makes use of the fact that Ruby has built in Object Jarmo Pertman,
Linking and Embedding (OLE) capabilities. As such it is Hugh McGowan,
possible to drive Internet Explorer programmatically.[6] Watir- Andreas Tolf
classic operates differently than HTTP based test tools, which Tolfsen, Paul
operate by simulating a browser. Instead Watir-classic directly Rogers, Dave
drives the browser through the OLE protocol, which is
Hoover, Sai
implemented over the Component Object Model (COM)
Venkatakrishnan,
architecture.
Tom Copeland,
The COM permits interprocess communication (such as between Alex Rodionov,
Ruby and Internet Explorer) and dynamic object creation and Titus Fortner
manipulation (which is what the Ruby program does to the Stable release 6.17 / August 28,
Internet Explorer). Microsoft calls this OLE automation, and
2020
calls the manipulating program an automation controller.
Technically, the Internet Explorer process is the server and serves Written in Ruby
the automation objects, exposing their methods; while the Ruby Operating system Cross-platform
program then becomes the client which manipulates the
Type Software testing
automation objects.
framework for
web applications
Watir-webdriver License MIT license

Watir-webdriver is a modern version of the Watir API based on Website watir.com (http://
Selenium. Selenium 2.0 (selenium-webdriver) aims to be the watir.com/)
reference implementation of the WebDriver specification. In
Ruby, Jari Bakken has implemented the Watir API as a wrapper around the Selenium 2.0 API. Not only is
Watir-webdriver derived from Selenium 2.0, it is also built from the HTML specification, so Watir-
webdriver should always be compatible with existing W3C specifications.

Watirspec

Watirspec is executable specification of the Watir API, like RubySpec is for Ruby.

See also
Free and open-
source software
portal

Acceptance testing
Regression testing
List of web testing tools
Test automation

References
1. "Watir home page" (http://watir.com/). Watir web site. Retrieved 11 October 2012.
2. "A new member in the Watir-family" (http://www.opera.com/developer/tools/operawatir/).
Opera Software web site. Opera Software. Retrieved 11 October 2012.
3. "Watir to WebDriver: Unit Test Frameworks" (https://www.facebook.com/notes/facebook-engi
neering/watir-to-webdriver-unit-test-frameworks/10150314152278920). Facebook
Engineering's Notes. Facebook. Retrieved 11 October 2012.
4. Crispin, Gregory (2008). Agile Testing: A Practical Guide for Testers and Agile Teams (http
s://books.google.com/books?id=68_lhPvoKS8C). Addison-Wesley. p. 172.
ISBN 9780321534460.
5. Marick, Brian (2007). Everyday Scripting with Ruby: For Teams, Testers, and You (https://bo
oks.google.com/books?id=1vKBQgAACAAJ). Pragmatic Bookshelf. p. 2.
ISBN 9780977616619.
6. "Creating automated test scripts with Ruby and WATIR" (http://www.thoughtworks.com/articl
es/automated-testing-using-ruby-and-watir). ThoughtWorks web site. ThoughtWorks.
Retrieved 11 October 2012.

External links
Watir home page (https://watir.github.io)
Watir source code (https://github.com/watir/)
The Watir Podcast (https://soundcloud.com/the-watir-podcast)
Cucumber & Cheese (https://leanpub.com/cucumber_and_cheese) A Testers Workshop
book by Jeff Morgan

Retrieved from "https://en.wikipedia.org/w/index.php?title=Watir&oldid=1150931841"

You might also like