Project

watir-rack

0.0
No commit activity in last 3 years
No release in over 3 years
Use Watir (http://github.com/watir/watir) in Rack.
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Development

Runtime

>= 0
>= 6.0.0.beta4
 Project Readme

Watir::Rack

Gem Version Build Status Coverage

This gem makes Watir work with any Rack App.

Installation

Add this code to your Gemfile:

group :test do
  gem "watir-rack"
end

Usage

Just use Watir like you've always done in your requests/integration tests:

Watir::Rack.app = Hanami.app

browser = Watir::Browser.new
browser.goto home_path
browser.text_field(name: "first").set "Jarmo"
browser.text_field(name: "last").set  "Pertman"
browser.button(name: "sign_in").click

Limitations

  • This is a [quick] adaptation of watir-rails. All the heavy lifting was done by those folks.

Contributors

License

See LICENSE.