Sha256: 9922ed10214a9fb6bdec79c782903e92064da3688ad784d9c2b17bf77364a197

Contents?: true

Size: 776 Bytes

Versions: 16

Compression:

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

Version data entries

16 entries across 16 versions & 1 rubygems

Version Path
page-object-0.6 features/step_definitions/text_field_steps.rb
page-object-0.5.5 features/step_definitions/text_field_steps.rb
page-object-0.5.4 features/step_definitions/text_field_steps.rb
page-object-0.5.3 features/step_definitions/text_field_steps.rb
page-object-0.5.2 features/step_definitions/text_field_steps.rb
page-object-0.5.1 features/step_definitions/text_field_steps.rb
page-object-0.5.0 features/step_definitions/text_field_steps.rb
page-object-0.4.4 features/step_definitions/text_field_steps.rb
page-object-0.4.3 features/step_definitions/text_field_steps.rb
page-object-0.4.2 features/step_definitions/text_field_steps.rb
page-object-0.4.1 features/step_definitions/text_field_steps.rb
page-object-0.4.0 features/step_definitions/text_field_steps.rb
page-object-0.3.2 features/step_definitions/text_field_steps.rb
page-object-0.3.1 features/step_definitions/text_field_steps.rb
page-object-0.3.0 features/step_definitions/text_field_steps.rb
page-object-0.2.5 features/step_definitions/text_field_steps.rb