Sha256: 5397e170d07483d136adda9796bea3e9cff6990d601d61f86ecbbde1b9c10656

Contents?: true

Size: 928 Bytes

Versions: 54

Compression:

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

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

Version data entries

54 entries across 54 versions & 4 rubygems

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