Sha256: 2fdf06393c6f2ca12e128170b9e20368c4683075fdf5e5d9557bd62545e79c35

Contents?: true

Size: 525 Bytes

Versions: 2

Compression:

Stored size: 525 Bytes

Contents

Then /^I should be able to submit the form$/ do
  @element.submit
end

When /^I locate the form by "([^\"]*)"$/ do |how|
  @element = @page.send "form_#{how}_element"
end

When /^I locate the form using "([^"]*)" and "([^"]*)"$/ do |param1, param2|
  @element = @page.send "form_#{param1}_#{param2}_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
  @page.form_id?.should == true
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
meeane-page-object-0.1.10 features/step_definitions/form_steps.rb
meeane-page-object-0.1.8 features/step_definitions/form_steps.rb