Sha256: e009d8cb0392f1137fad1d263e00597328068a3cb6673834e7f1adcc77c7e683

Contents?: true

Size: 732 Bytes

Versions: 54

Compression:

Stored size: 732 Bytes

Contents

When /^I select the "([^\"]*)" radio button$/ do |how|
  @page.send "select_#{how.downcase}_id".to_sym
end

Then /^the "([^\"]*)" radio button should be selected$/ do |how|
  @page.send "#{how.downcase}_id_selected?".to_sym
end

When /^I search for the radio button by "([^\"]*)"$/ do |how|
  @how = how
end

When /^I search for the radio button by "([^"]*)" and "([^"]*)"$/ do |param1, param2|
  @how = "#{param1}_#{param2}"
end

When /^I select the radio button$/ do
  @page.send "select_milk_#{@how}".to_sym
end

When /^I select the radio button while the script is executing$/ do
  @page.radio_button_element(:id => 'milk_id').select
end

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

Version data entries

54 entries across 54 versions & 4 rubygems

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