Sha256: 8ba2202b3b9facd557b57efc1cd6e401bf1bfc8cd1969e9c5e0f36f902f4c200

Contents?: true

Size: 733 Bytes

Versions: 2

Compression:

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

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
druid-ts-1.1.1 features/step_definations/radio_button_steps.rb
druid-ts-1.1.0 features/step_definations/radio_button_steps.rb