Sha256: e23cce7f0c428d194a0cecba81cd7d183619fdda5d86323268be39fbd264eb7b
Contents?: true
Size: 575 Bytes
Versions: 5
Compression:
Stored size: 575 Bytes
Contents
When(/^I locate the form by "(.*?)"$/) do |how| @element = @page.send "form_#{how}_form" end Then(/^I should be able to submit the form$/) do @element.submit end When(/^I locate the form using "(.*?)" and "(.*?)"$/) do |param1, param2| @element = @page.send "form_#{param1}_#{param2}_form" end When(/^I locate the form$/) do @element = @page.form_id_element end When(/^I locate a form while the script is executing$/) do @element = @page.form_element(:id => 'form_id') end Then(/^I should see that the form exists$/) do expect(@page.form_id?).to be true end
Version data entries
5 entries across 5 versions & 1 rubygems