Sha256: 1a417b3fccba023062564adfb8aefb723cd071f73314baa129717d64c9391946

Contents?: true

Size: 450 Bytes

Versions: 2

Compression:

Stored size: 450 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}".to_sym
end

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

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
druid-ts-1.1.1 features/step_definations/paragraph_steps.rb
druid-ts-1.1.0 features/step_definations/paragraph_steps.rb