Sha256: ad17ab3d0fa9814c08d59f80c6c5432ccbcf33601f600a8bb47603bd12184524

Contents?: true

Size: 762 Bytes

Versions: 3

Compression:

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

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
page-object-0.3.1 features/step_definitions/text_area_steps.rb
page-object-0.3.0 features/step_definitions/text_area_steps.rb
page-object-0.2.5 features/step_definitions/text_area_steps.rb