Category: 3. Watir
-
Working with Browsers
By default, Watir will open chrome browser in-case the browser name is not specified. The required browser drivers are installed along with Watir installation. In case you face any issues working with browsers, install the driver as shown in the Browsers drivers chapter and update the location in PATH variable. In this chapter, we will…
-
Installing Drivers for Browsers
In this chapter, we are going to install browser drivers that we need to test our project using Watir. Prior to Watir 6, we had to include watir-webdriver to use the browser drivers. With the release of Watir 6, the watir-webdriver is available as part of Watir package and users do not have to add the watir-webdriver separately. The browsers like…
-
Environment Setup
To work with Watir, we need to install the following − Since Watir is build using Ruby, we need to install Ruby and gem (package manager for Ruby). Ruby Installation on Windows To install Ruby on Windows, go to − https://rubyinstaller.org/downloads/ Install the ruby version based on your 32 or 64 bit operating system. Here we…
-
Introduction
Watir (Web Application Testing in Ruby) pronounced as “Water” is an open source tool developed using Ruby which helps in automating web application no matter which language the application is written. Watir comes with a rich set of APIs which helps us interact with the browser, locate page elements, take screenshots, work with alerts, file downloads, window.open popup…
-
Overview
Watir (Web Application Testing in Ruby), pronounced as “Water” is an open source tool developed using Ruby which helps in automating web application that suits applications developed in any programming language. The browsers supported for Watir installation Internet Explorer, Firefox, Chrome, Safari, and Edge. Watir is available as Rubygems for installation. Watir will connect to…