Sha256: 74e6da0f3af91e5d7884431d8104772261987da13e457d0f2ef3eb393a6f55e6

Contents?: true

Size: 806 Bytes

Versions: 11

Compression:

Stored size: 806 Bytes

Contents

When(/^I get the first item from the unordered list$/) do
  @element = @page.ul_id_element[0]
end

When(/^I locate the unordered list by "(.*?)"$/) do |how|
  @list = @page.send "ul_#{how}_element".to_sym
end

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

When(/^I retrieve a unordered list element$/) do
  @element = @page.ul_id_element
end

When(/^I search for the unordered list while the script is executing$/) do
  @list = @page.unordered_list_element(:id => 'ul_id')
end

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

Then(/^the text for the unordered list should contain "([^"]*)"$/) do |text|
  expect(@page.send("ul_id")).to include text
end

Version data entries

11 entries across 11 versions & 2 rubygems

Version Path
druid-s-1.0.0 features/step_definations/unordered_list_steps.rb
druid-ts-1.2.6 features/step_definations/unordered_list_steps.rb
druid-ts-1.2.5 features/step_definations/unordered_list_steps.rb
druid-ts-1.2.4 features/step_definations/unordered_list_steps.rb
druid-ts-1.2.3 features/step_definations/unordered_list_steps.rb
druid-ts-1.2.2 features/step_definations/unordered_list_steps.rb
druid-ts-1.2.1 features/step_definations/unordered_list_steps.rb
druid-ts-1.2.0 features/step_definations/unordered_list_steps.rb
druid-ts-1.1.8 features/step_definations/unordered_list_steps.rb
druid-ts-1.1.7 features/step_definations/unordered_list_steps.rb
druid-ts-1.1.6 features/step_definations/unordered_list_steps.rb