Sha256: 66d5cadda3f6e2385e291194aaa37fe1367f9ff2275f54ce898e2325a15e6f5c

Contents?: true

Size: 696 Bytes

Versions: 7

Compression:

Stored size: 696 Bytes

Contents

When(/^I get the text from the div$/) do
  @text = @page.div_id
end

Then(/^the text should be "(.*?)"$/) do |expected_text|
  expect(@text.tr("\n", ' ')).to eql expected_text
end

When(/^I locate the div by "(.*?)"$/) do |how|
  @text = @page.send "div_#{how}".to_sym
end

When(/^I retrieve the div element$/) do
  @element = @page.div_id_element
end

When(/^I search for the div by "(.*?)" and "(.*?)"$/) do |param1, param2|
  @text = @page.send "div_#{param1}_#{param2}".to_sym
end


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

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

Version data entries

7 entries across 7 versions & 2 rubygems

Version Path
druid-s-1.0.0 features/step_definations/div_steps.rb
druid-ts-1.2.6 features/step_definations/div_steps.rb
druid-ts-1.2.5 features/step_definations/div_steps.rb
druid-ts-1.2.4 features/step_definations/div_steps.rb
druid-ts-1.2.3 features/step_definations/div_steps.rb
druid-ts-1.2.2 features/step_definations/div_steps.rb
druid-ts-1.2.1 features/step_definations/div_steps.rb