This is an example project, illustrating how to automate the Chrome Browser using Taiko and Gauge test automation framework in JavaScript. Originally cloned from Gauge Examples and then modifed for the AUT Demoaut
Gauge is a free and open source test runner for writing readable and reusable acceptance tests. It is easy to install and well integrated with Taiko.
Taiko is a free and open source browser automation tool built by the team behind Gauge from ThoughtWorks. Taiko is a node library with a clear and concise API to automate the chrome browser. Tests written in Taiko are highly readable and maintainable.
With Taiko it’s easy to
- Get Started
- Record/Write/Run tests
Taiko’s smart selectors make tests reliable by adapting to changes in the structure of your web application. With Taiko there’s no need for id/css/xpath selectors or adding explicit waits (for XHR requests) in test scripts.
Taiko is built ground up to test modern web applications. Here’s a list of a few unique features that sets it apart from other browser automation tools.
- Easy Installation
- Interactive Recorder
- Smart Selectors
- Handle XHR and dynamic content
- Request/Response stubbing and mocking
Taiko works on Windows, MacOS and Linux. You only need to have Node.js installed in your system to start writing Taiko scripts in JavaScript. After you’ve installed Node.js open a terminal application (or powershell in the case of Windows) and install Taiko using npm with the command
$ npm install -g taiko
$ gauge install js
This installs Taiko and the latest version of Chromium browser.
$ cd gauge-taiko-demo
$ npm install
$ npm test