Sha256: e136b71235e64f26f2c9307a19474f3c38fbad7865a424af172b34d85802d6aa

Contents?: true

Size: 1.5 KB

Versions: 7

Compression:

Stored size: 1.5 KB

Contents

# Mohawk
[![Build Status](https://travis-ci.org/leviwilson/mohawk.png)](https://travis-ci.org/leviwilson/mohawk)
[![Coverage Status](https://coveralls.io/repos/leviwilson/mohawk/badge.png?branch=master)](https://coveralls.io/r/leviwilson/mohawk?branch=master)

A gem to assist in building page-object like structures for testing Windows applications.

## Installation

### Runtime Environment
In order for `mohawk` to work, you need to have the [.NET 4.0 Framework](http://www.microsoft.com/en-us/download/details.aspx?id=24872) as well as the [C++ Runtime Redistributable](http://www.microsoft.com/en-us/download/details.aspx?id=5555).

### Ruby Environment
Add this line to your application's Gemfile:

    gem 'mohawk'

And then execute:

    $ bundle

Or install it yourself as:

    $ gem install mohawk

## Example

### Defining a screen

```ruby
require 'mohawk'

class LoginScreen
  include Mohawk
  window(:title => /Login/)

  text(:username, :id => "UserNameField")
  text(:password, :id => "PasswordField")
  
  button(:login, :value => "Login")
end
```

### Using the Page-Object
```ruby
World(Mohawk::Navigation)

on(LoginScreen) do |screen|
  screen.username = "levi"
  screen.password = "secret"
  screen.login
end
```

## Contributing

1. Fork it
2. Create your feature branch (`git checkout -b my-new-feature`)
3. Commit your changes (`git commit -am 'Add some feature'`)
4. Push to the branch (`git push origin my-new-feature`)
5. Create new Pull Request

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
mohawk-0.1.0 README.md
mohawk-0.0.9 README.md
mohawk-0.0.8 README.md
mohawk-0.0.7 README.md
mohawk-0.0.6 README.md
mohawk-0.0.5 README.md
mohawk-0.0.4 README.md