A gem to assist in building page-object like structures for testing Windows applications.
Add this line to your application's Gemfile:
gem 'mohawk'
And then execute:
$ bundle
Or install it yourself as:
$ gem install mohawk
require 'mohawk'
class LoginScreen
include Mohawk
window(:title => /Login/)
text(:username, :id => "UserNameField")
text(:password, :id => "PasswordField")
button(:login, :value => "Login")
end
World(Mohawk::Navigation)
on(LoginScreen) do |screen|
screen.username = "levi"
screen.password = "secret"
screen.login
end
- Fork it
- Create your feature branch (
git checkout -b my-new-feature
) - Commit your changes (
git commit -am 'Add some feature'
) - Push to the branch (
git push origin my-new-feature
) - Create new Pull Request