Skip to content

Instantly share code, notes, and snippets.

@tarcieri
Created January 4, 2012 01:19
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save tarcieri/1557924 to your computer and use it in GitHub Desktop.
Save tarcieri/1557924 to your computer and use it in GitHub Desktop.
require 'rubygems'
require 'watir'
require 'yaml'
test_dailies = YAML.load(DATA)
module Watir
class IE
def goto(url)
p url
end
end
end
ie = Watir::IE.new
test_dailies.each do |data|
ie.goto data['Link']
end
__END__
---
- Name: jelly
Link: http://www.google.com
ID: '0'
- Name: omelette
Link: http://www.google.com
ID: '1'
- Name: giveaway
Link: http://www.google.com
ID: '2'
- Name: bankInterest
Link: http://www.google.com
ID: '3'
- Name: shopOfOffers
Link: http://www.google.com
ID: '4'
- Name: petPark
Link: http://www.google.com
ID: '5'
- Name: freebies
Link: http://www.google.com
ID: '6'
- Name: obsidian
Link: http://www.google.com
ID: '7'
- Name: appleBobbing
Link: http://www.google.com
ID: '8'
- Name: anchor
Link: http://www.google.com
ID: '9'
- Name: advert
Link: http://www.google.com
ID: '10'
- Name: tombola
Link: http://www.google.com
ID: '11'
- Name: nowager
Link: http://www.google.com
ID: '12'
- Name: fruitMachine
Link: http://www.google.com
ID: '13'
- Name: coltazan
Link: http://www.google.com
ID: '14'
- Name: tdmbgpop
Link: http://www.google.com
ID: '15'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment