<commit_before># Gametel

[![Build Status](http://travis-ci.org/leandog/gametel.png)](http://travis-ci.org/leandog/gametel)

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

## Installation

Add this line to your application's Gemfile:

    gem 'gametel'

And then execute:

    $ bundle

Or install it yourself as:

    $ gem install gametel

## Usage

### Defining your screen object
````ruby
class LoginScreen
  include Gametel
end
````

When you include this module methods are added to your class allowing you to declare the items on the screen.

````ruby
class LoginPage
  include Gametel
  
  text(:username, :index => 0)
  text(:password, :index => 1)
  button(:login, :text => 'Login')
end
````

In your step definitions you can then access generated methods to interact with the views on your screen.

````ruby
on(LoginPage) do |screen|
  screen.username = 'levi'
  screen.password = '<PASSWORD>'
  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 'Added some feature'`)
4. Push to the branch (`git push origin my-new-feature`)
5. Create new Pull Request
<commit_msg>LoginScreen --> LoginPage in README<commit_after># Gametel

[![Build Status](http://travis-ci.org/leandog/gametel.png)](http://travis-ci.org/leandog/gametel)

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

## Installation

Add this line to your application's Gemfile:

    gem 'gametel'

And then execute:

    $ bundle

Or install it yourself as:

    $ gem install gametel

## Usage

### Defining your screen object
````ruby
class LoginPage
  include Gametel
end
````

When you include this module methods are added to your class allowing you to declare the items on the screen.

````ruby
class LoginPage
  include Gametel
  
  text(:username, :index => 0)
  text(:password, :index => 1)
  button(:login, :text => 'Login')
end
````

In your step definitions you can then access generated methods to interact with the views on your screen.

````ruby
on(LoginPage) do |screen|
  screen.username = 'levi'
  screen.password = '<PASSWORD>'
  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 'Added some feature'`)
4. Push to the branch (`git push origin my-new-feature`)
5. Create new Pull Request

{'fraction_non_alphanumeric': 0.11115602263540825, 'fraction_numerical': 0.005658852061438965, 'mean_word_length': 4.0, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 12, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '2418273', 'n_tokens_mistral': 792, 'n_tokens_neox': 751, 'n_words': 303}