Sha256: 1eedac752e03f5a1bc3e2df0a82e844113ff5ef49d308fdd2970b6aef1975cce

Contents?: true

Size: 976 Bytes

Versions: 54

Compression:

Stored size: 976 Bytes

Contents

When /^I type "([^\"]*)" into the text field$/ do |text|
  @page.text_field_id = text
end

Then /^the text field should contain "([^\"]*)"$/ do |expected_text|
  @page.text_field_id.should == expected_text
end

When /^I search for the text field by "([^\"]*)"$/ do |how|
  @how = how
end

When /^I search for the text field by "([^"]*)" and "([^"]*)"$/ do |param1, param2|
  @how = "#{param1}_#{param2}"
end

Then /^I should be able to type "([^\"]*)" into the field$/ do |value|
  @page.send "text_field_#{@how}=".to_sym, value
end

When /^I find a text field while the script is executing$/ do
  @text_field = @page.text_field_element(:id => 'text_field_id')
end

Then /^I should be able to type "([^\"]*)" into the field element$/ do |value|
  @text_field.value = value
end

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

When /^I append "([^\"]*)" to the text field$/ do |text|
  @page.text_field_id_element.append text
end

Version data entries

54 entries across 54 versions & 4 rubygems

Version Path
page-object-0.7.4 features/step_definitions/text_field_steps.rb
page-object-0.7.3 features/step_definitions/text_field_steps.rb
page-object-0.7.2 features/step_definitions/text_field_steps.rb
page-object-0.7.1 features/step_definitions/text_field_steps.rb
page-object-0.7.0 features/step_definitions/text_field_steps.rb
page-object-0.6.9 features/step_definitions/text_field_steps.rb
page-object-0.6.8 features/step_definitions/text_field_steps.rb
page-object-0.6.7 features/step_definitions/text_field_steps.rb
page-object-0.6.6 features/step_definitions/text_field_steps.rb
page-object-0.6.5 features/step_definitions/text_field_steps.rb
page-object-0.6.4 features/step_definitions/text_field_steps.rb
page-object-0.6.3 features/step_definitions/text_field_steps.rb
page-object-0.6.2 features/step_definitions/text_field_steps.rb
page-object-0.6.1 features/step_definitions/text_field_steps.rb