Testing Software

Watir – web application testing in Ruby

Watir (Web Application Testing in Ruby, pronounced water), is an open-source family of Ruby libraries for automating web browsers.

Watir is a user focused way to test your websites. It mostly uses Selenium for browser automation, but it provides many more high level features that make it easy to write stable, maintainable tests.

Watir is designed for “Test Automation.” It takes the code in a page object and translates it into the series of applicable Selenium and JavaScript calls to accomplish the desired functionality. Watir attempts to understand the intention of the code in a test suite and tries to follow a “Do What I Mean” philosophy to accomplish it.

Watir project consists of several smaller projects. The most important ones are watir-classic, watir-webdriver and watirspec.

Key Features

  • Built-in libraries offering a good range of functionality.
  • Location web elements – there are different ways you can locate web-elements rendered inside the browser. The ones mostly used are id, class, tag name, custom attributes, label etc.
  • Taking Screenshots – take screenshot of the testing done as and when required. This helps to keep track of the intermediate testing.
  • Page Performance – measure page performance using the performance object which has properties like, performance.navigation, performance.timing, performance.memory and performance.timeOrigin. These details are obtained when you connect to the browser.
  • Page Objects – helps to reuse the code in the form of classes. Using this feature, we can automate our app without having to duplicate any code and also make it manageable.
  • Downloads – easy to test file download for UI or website.
  • Alerts – provides easy to use APIs to test alerts popup in your UI or website.
  • Headless Testing – using headless testing,the details are obtained at the command line without having to open the browser. This helps to execute UI test cases at the command line.
  • Supports all modern web browsers.

Website: watir.github.io
Support: GitHub Code Repository
Developer: Watir team
License: MIT License

Watir is written in Ruby. Learn Ruby with our recommended free books and free tutorials.


Related Software

Test Automation Tools
AppiumOpen source automation tool
CypressFast, easy and reliable testing
Robot FrameworkPython-based, extensible keyword-driven automation framework
CucumberTool for running automated tests written in plain language
SeleniumPortable framework for testing web applications
GaugeLightweight cross-platform test automation tool which uses Markdown
NightwatchIntegrated testing framework powered by Node.js
WebdriverIOBrowser and mobile automation framework for Node.js
Allure ReportMulti-language test report tool
KarateUnified test automation framework
Dojo ToolkitJavaScript toolkit that scales with your development process
PlaywrightFramework for web testing and automation
CodeceptJSScenario-driven end-to-end testing framework for Node.js
toxAutomate and standardize testing in Python
noxAutomates testing in multiple Python environments, similar to tox
CarinaJava-based test automation framework that unites all testing layers
TestsigmaExtensible test automation platform that works out of the box
WatirWeb application testing in Ruby
SerenityTest automation reporting library (previously known as Thucydides)
Cerberus TestingLow-code test automation platform
GalenTool for testing layout and responsive design of web applications

Read our verdict in the software roundup.


Best Free and Open Source Software Explore our comprehensive directory of recommended free and open source software. Our carefully curated collection spans every major software category.

This directory is part of our ongoing series of informative articles for Linux enthusiasts. It features hundreds of detailed reviews, along with open source alternatives to proprietary solutions from major corporations such as Google, Microsoft, Apple, Adobe, IBM, Cisco, Oracle, and Autodesk.

You’ll also find interesting projects to try, hardware coverage, free programming books and tutorials, and much more.

Discovered a useful open source Linux program that we haven’t covered yet? Let us know by completing this form.
Subscribe
Notify of
guest
0 Comments
Oldest
Newest Most Voted
Inline Feedbacks
View all comments