Recipe 32 | Test a Web App Using Watir |
Problem
You want to test a web application across several browsers, including Chrome, Firefox, Safari, Internet Explorer, and Opera.
Ingredients
-
Watir (Web Application Testing in Ruby),[204] a programmer-friendly in-browser test library
-
WebDriver,[205] a cross-platform API for controlling web browsers
-
Watir WebDriver,[206] a Watir implementation that uses WebDriver under the hood
-
Nokogiri,[207] a Ruby library for parsing HTML results
-
(Mac users) SafariWatir[208] for testing in Safari
-
(Chrome users) ChromeDriver,[209] a stand-alone program that helps Watir control Google Chrome
Solution
Watir is a Ruby browser automation library focused on ease of use. Watir started its life as a simple, Ruby-focused ...
Get Cucumber Recipes now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.