Sha256: 877f6c12c9cf843d6b7ace5d2409d6db4780bffd80a84e3c6b48eca36775f024

Contents?: true

Size: 1.06 KB

Versions: 20

Compression:

Stored size: 1.06 KB

Contents

When /^no radio buttons have been selected$/ do
  # nothing to do here
end

Then /^no radio buttons should be selected in the group$/ do
  @page.favorite_cheese_selected?.should == false
end

When /^I select the "([^\"]*)" radio button in the group$/ do |how|
  @page.select_favorite_cheese("#{how}")
end

Then /^the "([^\"]*)" radio button should be selected in the group$/ do |how|
  @page.favorite_cheese_selected?.should == "#{how}"
end

Then /^the "([^\"]*)" radio button should not be selected$/ do |how|
  @page.favorite_cheese_selected?.should_not == "#{how}"
end

Then /^I should see that the radio button group exists$/ do
  @page.favorite_cheese?.should == true
end

When /^I ask for the elements of a radio button group$/ do
  @elems = @page.favorite_cheese_elements
end

Then /^I should have an array with elements for each radio button$/ do
  @elems.length.should == 3
end

And /^the radio button element values should be "([^\"]*)", "([^\"]*)", "([^\"]*)"$/ do |val1, val2, val3|
  elem_arr = @elems.collect { |elem| elem.value }
  elem_arr.should == [val1, val2, val3]
end

Version data entries

20 entries across 20 versions & 4 rubygems

Version Path
page-object-1.2.0 features/step_definitions/radio_button_group_steps.rb
page-object-1.1.1 features/step_definitions/radio_button_group_steps.rb
page_object-1.1.3 features/step_definitions/radio_button_group_steps.rb
page_object-1.1.2 features/step_definitions/radio_button_group_steps.rb
page_object-1.1.1 features/step_definitions/radio_button_group_steps.rb
page-object-1.1.0 features/step_definitions/radio_button_group_steps.rb
page-object-lds-0.0.14 features/step_definitions/radio_button_group_steps.rb
page-object-lds-0.0.13 features/step_definitions/radio_button_group_steps.rb
page-object-lds-0.0.12 features/step_definitions/radio_button_group_steps.rb
page-object-lds-0.0.11 features/step_definitions/radio_button_group_steps.rb
page-object-lds-0.0.1 features/step_definitions/radio_button_group_steps.rb
page-object-1.0.3 features/step_definitions/radio_button_group_steps.rb
meeane-page-object-0.1.11 features/step_definitions/radio_button_group_steps.rb
page-object-1.0.2 features/step_definitions/radio_button_group_steps.rb
page-object-1.0.1 features/step_definitions/radio_button_group_steps.rb
page-object-1.0 features/step_definitions/radio_button_group_steps.rb
page-object-0.9.8 features/step_definitions/radio_button_group_steps.rb
page-object-0.9.7 features/step_definitions/radio_button_group_steps.rb
page-object-0.9.6 features/step_definitions/radio_button_group_steps.rb
page-object-0.9.5 features/step_definitions/radio_button_group_steps.rb