Sha256: 7884673a115acd3c4d6bf2ae86d062a4fa44dd56550fadf270a7bda211a48819

Contents?: true

Size: 1.1 KB

Versions: 17

Compression:

Stored size: 1.1 KB

Contents

When(/^I get the text for the "([^"]*)" element$/) do |el|
  @heading = @page.send "#{el}_id"
end

Then(/^I should see "([^"]*)"$/) do |text|
  expect(@heading).to eql text
end

When(/^I search for the heading(\d+) by "([^"]*)"$/) do |head_type, type|
  @heading = @page.send "h#{head_type}_#{type}"
end

When(/^I locate the h(\d+) using "([^"]*)" and "([^"]*)"$/) do |head_type, param1, param2|
  @text = @page.send "h#{head_type}_#{param1}_#{param2}".to_sym
end

When(/^I locate a h1 while the script is executing$/) do
  @text = @page.h1_element(:id => 'h1_id').text
end

When(/^I locate a h2 while the script is executing$/) do
  @text = @page.h2_element(:id => 'h2_id').text
end

When(/^I locate a h3 while the script is executing$/) do
  @text = @page.h3_element(:id => 'h3_id').text
end

When(/^I locate a h4 while the script is executing$/) do
  @text = @page.h4_element(:id => 'h4_id').text
end

When(/^I locate a h5 while the script is executing$/) do
  @text = @page.h5_element(:id => 'h5_id').text
end

When(/^I locate a h6 while the script is executing$/) do
  @text = @page.h6_element(:id => 'h6_id').text
end

Version data entries

17 entries across 17 versions & 2 rubygems

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