Sha256: 297f58242a15d6897832d46111d65dd56b4bc15c85938bb9e692f1cf7b5b5207

Contents?: true

Size: 836 Bytes

Versions: 13

Compression:

Stored size: 836 Bytes

Contents

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

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

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

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

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

When /^I find a text area while the script is executing$/ do
  @text_area = @page.text_area_element(:id => 'text_area_id')
end

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

When /^I clear the text area$/ do
  @page.text_area_id_element.clear
end

Version data entries

13 entries across 13 versions & 1 rubygems

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