Sha256: 1bc12870c3edc2a97f7a96233ac6a72a4b13230a8af3ff8e3fbda4bd72040d24

Contents?: true

Size: 642 Bytes

Versions: 16

Compression:

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

Version data entries

16 entries across 16 versions & 1 rubygems

Version Path
page-object-0.6 features/step_definitions/radio_button_steps.rb
page-object-0.5.5 features/step_definitions/radio_button_steps.rb
page-object-0.5.4 features/step_definitions/radio_button_steps.rb
page-object-0.5.3 features/step_definitions/radio_button_steps.rb
page-object-0.5.2 features/step_definitions/radio_button_steps.rb
page-object-0.5.1 features/step_definitions/radio_button_steps.rb
page-object-0.5.0 features/step_definitions/radio_button_steps.rb
page-object-0.4.4 features/step_definitions/radio_button_steps.rb
page-object-0.4.3 features/step_definitions/radio_button_steps.rb
page-object-0.4.2 features/step_definitions/radio_button_steps.rb
page-object-0.4.1 features/step_definitions/radio_button_steps.rb
page-object-0.4.0 features/step_definitions/radio_button_steps.rb
page-object-0.3.2 features/step_definitions/radio_button_steps.rb
page-object-0.3.1 features/step_definitions/radio_button_steps.rb
page-object-0.3.0 features/step_definitions/radio_button_steps.rb
page-object-0.2.5 features/step_definitions/radio_button_steps.rb