Skip to content

Instantly share code, notes, and snippets.

@jarib
Created August 14, 2009 02:06
Show Gist options
  • Save jarib/167600 to your computer and use it in GitHub Desktop.
Save jarib/167600 to your computer and use it in GitHub Desktop.
browser = Celerity::Browser.new(:resynchronize => true, :log_level => :off)
browser.goto('testteststest.com')
linkz = browser.links.map { |e| e.href if e.href =~ /gotoJavaScriptFunction/ }.compact
linkz.each do |linke|
linke.click
puts browser.xml
puts "="*80 # separator
sleep 5
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment