Sha256: 88fd342908db4507f855a1a8d84fefa462b1f99dc295d65eb8a9058278778b37
Contents?: true
Size: 1.14 KB
Versions: 1
Compression:
Stored size: 1.14 KB
Contents
When(/^I select "(.*?)" from the select list$/) do |item| @page.select_list_id = item end Then(/^the current item should be "(.*?)"$/) do |expected_item| expect(@page.select_list_id).to eql expected_item end When(/^I locate the select list by "(.*?)"$/) do |how| @how = how end Then(/^I should be able to select "(.*?)"$/) do |item| @page.send "select_list_#{@how}=".to_sym, item end Then(/^the value for the selected item should be "(.*?)"$/) do |expected_item| expect(@page.send "select_list_#{@how}".to_sym).to eql expected_item end When(/^I retrieve a select list$/) do @element = @page.select_list_id_select_list end When(/^I search for the select list by "(.*?)"$/) do |how| @how = how end Then(/^option "(.*?)" should contain "(.*?)"$/) do |opt_num, text| @element = @page.send "select_list_#{@how}_select_list".to_sym expect(@element[opt_num.to_i - 1].text).to eql text end Then(/^each option should contain "(.*?)"$/) do |text| @element.options.each do |option| expect(option.text).to include text end end When(/^I search for the select list bys "(.*?)" and "(.*?)"$/) do |param1, param2| @how = "#{param1}_#{param2}" end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
druid-ts-0.0.1 | features/step_definations/select_list_steps.rb |