Sha256: aa74f880357b2e5155e4b171a58a70b7b049e66192e05832e969100bf6c16fa9

Contents?: true

Size: 829 Bytes

Versions: 15

Compression:

Stored size: 829 Bytes

Contents

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

Then(/^the "(.*?)" radio button should be selected$/) do |name|
  expect(@page.send "#{name.downcase}_id_selected?".to_sym).to be true
end

When(/^I locate the radio button by "(.*?)"$/) do |how|
  @how = how
end

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

When(/^I retrieve a radio button$/) do
  @element = @page.milk_id_element
end

When(/^I search for the radio button by "(.*?)" and "(.*?)"$/) do |param1, param2|
  @how = "#{param1}_#{param2}"
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
  expect(@page.milk_id?).to be true
end

Version data entries

15 entries across 15 versions & 2 rubygems

Version Path
druid-s-1.0.0 features/step_definations/radio_button_steps.rb
druid-ts-1.2.6 features/step_definations/radio_button_steps.rb
druid-ts-1.2.5 features/step_definations/radio_button_steps.rb
druid-ts-1.2.4 features/step_definations/radio_button_steps.rb
druid-ts-1.2.3 features/step_definations/radio_button_steps.rb
druid-ts-1.2.2 features/step_definations/radio_button_steps.rb
druid-ts-1.2.1 features/step_definations/radio_button_steps.rb
druid-ts-1.2.0 features/step_definations/radio_button_steps.rb
druid-ts-1.1.8 features/step_definations/radio_button_steps.rb
druid-ts-1.1.7 features/step_definations/radio_button_steps.rb
druid-ts-1.1.6 features/step_definations/radio_button_steps.rb
druid-ts-1.1.5 features/step_definations/radio_button_steps.rb
druid-ts-1.1.4 features/step_definations/radio_button_steps.rb
druid-ts-1.1.3 features/step_definations/radio_button_steps.rb
druid-ts-1.1.2 features/step_definations/radio_button_steps.rb