From the course: Advanced Selenium: Automation Frameworks

Unlock the full course today

Join today to access over 22,500 courses taught by industry experts or purchase this course individually.

Introducing Watir

Introducing Watir - Selenium Tutorial

From the course: Advanced Selenium: Automation Frameworks

Start my 1-month free trial

Introducing Watir

- [Instructor] Now that we've had a look at RSpec, let's go ahead and bring in Watir. The precursor to Watir actually came about a little bit before Selenium WebDriver itself. And it was a tool to automate testing in Internet Explorer. When I first used Watir, it was already being called Watir WebDriver to distinguish the Selenium-driven version from the original. Anyway, let's dive in. First things first, Watir will need access to Chromedriver. We'll open up tutorial.gemspec in the Atom IDE, and add the web drivers gem as a dependency. Make some room at the bottom of the file. Add the web drivers dependency, and we'll set the version to approximately version four using a feature called optimistic version locking. The short explanation is that this tilde greater than means use any version between 4.0 and 5.0. The web drivers gem handles sessions in Chrome driver and Firefox's Mozilla driver and Safari and Internet Explorer…

Contents