Sha256: 83fe79869ba75513882ebace34b88dacba0ded72564af27b292ec7e415ad1b3e

Contents?: true

Size: 507 Bytes

Versions: 54

Compression:

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

54 entries across 54 versions & 4 rubygems

Version Path
page-object-0.9.4 features/step_definitions/form_steps.rb
page-object-0.9.3 features/step_definitions/form_steps.rb
page-object-0.9.2 features/step_definitions/form_steps.rb
page-object-0.9.1 features/step_definitions/form_steps.rb
page-object-0.9.0 features/step_definitions/form_steps.rb
page-object-0.8.10 features/step_definitions/form_steps.rb
page-object-0.8.9 features/step_definitions/form_steps.rb
page-object-0.8.8 features/step_definitions/form_steps.rb
page-object-0.8.7 features/step_definitions/form_steps.rb
page-object-0.8.6.1 features/step_definitions/form_steps.rb
page-object-0.8.6 features/step_definitions/form_steps.rb
page-object-0.8.5 features/step_definitions/form_steps.rb
page-object-0.8.4 features/step_definitions/form_steps.rb
page-object-0.8.3 features/step_definitions/form_steps.rb
page-object-0.8.2 features/step_definitions/form_steps.rb
page-object-0.8.1 features/step_definitions/form_steps.rb
page-object-0.8 features/step_definitions/form_steps.rb
page-object-0.7.6 features/step_definitions/form_steps.rb
page-object-0.7.5.1 features/step_definitions/form_steps.rb
page-object-0.7.5 features/step_definitions/form_steps.rb