Sha256: 66a262bf0ab7552b89d677eac4ff23e9ae9205de745942b8c738d30db1993ac4

Contents?: true

Size: 827 Bytes

Versions: 54

Compression:

Stored size: 827 Bytes

Contents

When /^I retrieve the hidden field element$/ do
  @element = @page.hidden_field_id_element
end

Then /^I should see the hidden field contains "([^\"]*)"$/ do |text|
  @page.hidden_field_id.should == text
end

When /^I search for the hidden field by "([^\"]*)"$/ do |how|
  @element = @page.send "hidden_field_#{how}_element"
end

Then /^the hidden field element should contain "([^\"]*)"$/ do |text|
  @element.value.should == text
end

When /^I search for the hidden field by "([^"]*)" and "([^"]*)"$/ do |param1, param2|
  @element = @page.send "hidden_field_#{param1}_#{param2}_element"
end

When /^I find a hidden field while the script is executing$/ do
  @element = @page.hidden_field_element(:id => 'hidden_field_id')
end

Then /^I should see that the hidden field exists$/ do
  @page.hidden_field_id?.should == true
end

Version data entries

54 entries across 54 versions & 4 rubygems

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