You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Jul 20, 2026. It is now read-only.
lkhoward edited this page Feb 26, 2016
·
52 revisions
The examples in this tutorial will be using RSpec for the testing framework. However, any testing framework will do and should have similar configuration setup. You may need to take additional steps based on your framework of choice (e.g. cucumber scenarios & step definitions).
Create & Configure a New Project
In your editor of choice, setup a new project with the following directory structure:
Update your Gemfile:
gem'huzzah'gem'watir-webdriver'
NOTE: Although Huzzah is designed to be use with watir-webdriver, the two gems a decoupled. This allow you to choose the version of watir-webdriver that best suits your needs.
Perform a bundle install to get the gems.
Next, you will need create your Huzzah configuration. This should be done in the RSpec spec_helper.rb file.
Setup a Testing Framework (RSpec)
Setup Huzzah Directory Structure
Add Huzzah Configuration to Testing Framework
Create a Basic Test Scenario
Create a Page
Add Locators
Refactor Test Scenario
Add a Method to the Page
Refactor Test Scenario
Add a Site Config
Refactor Test Scenario
Add a Flow
Refactor Test Scenario