Sha256: e19b935cd3246af2dcf385385964400b929239decf7d8a9546f34208b3a14149

Contents?: true

Size: 540 Bytes

Versions: 15

Compression:

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

Then(/^I should see that the paragraph exists$/) do
  expect(@page.p_id?).to be true
end

Version data entries

15 entries across 15 versions & 2 rubygems

Version Path
druid-s-1.0.0 features/step_definations/paragraph_steps.rb
druid-ts-1.2.6 features/step_definations/paragraph_steps.rb
druid-ts-1.2.5 features/step_definations/paragraph_steps.rb
druid-ts-1.2.4 features/step_definations/paragraph_steps.rb
druid-ts-1.2.3 features/step_definations/paragraph_steps.rb
druid-ts-1.2.2 features/step_definations/paragraph_steps.rb
druid-ts-1.2.1 features/step_definations/paragraph_steps.rb
druid-ts-1.2.0 features/step_definations/paragraph_steps.rb
druid-ts-1.1.8 features/step_definations/paragraph_steps.rb
druid-ts-1.1.7 features/step_definations/paragraph_steps.rb
druid-ts-1.1.6 features/step_definations/paragraph_steps.rb
druid-ts-1.1.5 features/step_definations/paragraph_steps.rb
druid-ts-1.1.4 features/step_definations/paragraph_steps.rb
druid-ts-1.1.3 features/step_definations/paragraph_steps.rb
druid-ts-1.1.2 features/step_definations/paragraph_steps.rb