Advertisement
hedwig5

steps.rb

Apr 5th, 2016
141
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Ruby 0.42 KB | None | 0 0
  1. Then /^should I $/ do
  2.   tabellen_zeilen = @browser.table(:id => 'tabellenanfang').tbody.rows
  3.   veroeffentlichte_links = Array.new
  4.   tabellen_zeilen.each do |tabellen_zeile|
  5.     veroeffentlichte_links << tabellen_zeile.cell(:index => 0).div.a.text
  6.   end
  7.   veroeffentlichte_links.each { |link_text|
  8.     @browser.link(:text => 'staticLink').wait_until_present(600)
  9.     @browser.link(:text => 'staticLink').click
  10.   }
  11. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement