cheezy/page-object — pull request #204 by sivart84 (2014-01-15 05:07:54+00:00)
Title: New accessor for radio button groups.

As radio buttons are typically grouped by a shared name attribute, and selections within the group are mutually exclusive, it makes sense to model and interact with these groups of elements through a single accessor. This new method allows users to easily model a group of radio buttons like:
```ruby
class CheesePage
include PageObject

radio_button_group(:favorite_cheese, name: 'cheeses')
# or via the alias `radio_group()`
end
```

And then perform actions on the radio buttons in the group like:
```ruby
visit CheesePage do |page|
page.wait_until { page.favorite_cheese? }
page.favorite_cheese_values.each do |cheese|
page.select_favorite_cheese(cheese)
expect(page.favorite_cheese_selected?).to eql(cheese)
end
end
```

I've made an attempt at writing cucumber tests for these methods, but I'm much more familiar with rspec, so please make sure they are sufficient.