Sha256: 27aa1a144bcd3f3ff4535c5ad1f90df5030eb199367e60ad14677c539a33a8f5

Contents?: true

Size: 758 Bytes

Versions: 1

Compression:

Stored size: 758 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

1 entries across 1 versions & 1 rubygems

Version Path
meeane-page-object-0.1.8 features/step_definitions/radio_button_steps.rb