Sha256: 1eeea0af1c57cd2c8007eb7ddd27b33ea710e44b98622905399f880cf41bf2fd

Contents?: true

Size: 596 Bytes

Versions: 2

Compression:

Stored size: 596 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).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

Version data entries

2 entries across 2 versions & 1 rubygems

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