Sha256: 7e3912cb6d47ce9d9a8dcfa6c553af871889764f4f7381e3651f89b4cdd413cc

Contents?: true

Size: 525 Bytes

Versions: 32

Compression:

Stored size: 525 Bytes

Contents

When /^I get the text from the paragraph$/ do
  @text = @page.p_id
end

When /^I search for the paragraph by "([^"]*)"$/ do |how|
  @text = @page.send "p_#{how}".to_sym
end

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

When /^I get the text from a paragraph while the script is executing$/ do
  @text = @page.paragraph_element(:id => 'p_id').text
end

Then /^I should see that the paragraph exists$/ do
  @page.p_id?.should == true
end

Version data entries

32 entries across 32 versions & 1 rubygems

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