Sha256: 04284349039031d3b10a120f6ee6020b65683a6c598598b590b2bf26e17117ea

Contents?: true

Size: 790 Bytes

Versions: 16

Compression:

Stored size: 790 Bytes

Contents

When /^I select "([^\"]*)" from the select list$/ do |text|
  @page.sel_list_id = text
end

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

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

Then /^I should be able to select "([^\"]*)"$/ do |value|
  @page.send "sel_list_#{@how}=".to_sym, value
end

Then /^the value for the selected item should be "([^\"]*)"$/ do |value|
  result = @page.send "sel_list_#{@how}".to_sym
  result.should == value
end

When /^I find a select list while the script is executing$/ do
  @select_list = @page.select_list_element(:id => 'sel_list_id')
end

Then /^I should be able to select "([^"]*)" from the list$/ do |value|
  @select_list.select(value)
end

Version data entries

16 entries across 16 versions & 1 rubygems

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