Sha256: 2102a2b8b45a9d91f9dd47239cca6fc01ac364e920b787d39c8e008f0a4862bd

Contents?: true

Size: 682 Bytes

Versions: 8

Compression:

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

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

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
druid-ts-1.2.0 features/step_definations/div_steps.rb
druid-ts-1.1.8 features/step_definations/div_steps.rb
druid-ts-1.1.7 features/step_definations/div_steps.rb
druid-ts-1.1.6 features/step_definations/div_steps.rb
druid-ts-1.1.5 features/step_definations/div_steps.rb
druid-ts-1.1.4 features/step_definations/div_steps.rb
druid-ts-1.1.3 features/step_definations/div_steps.rb
druid-ts-1.1.2 features/step_definations/div_steps.rb