From: Chris McMahon Date: 2005-12-02T05:42:31+09:00 Subject: Re: Good Ruby Examples? I'm not sure what level your students are, but a demo of drivting Internet Explorer with the Watir project code (http://wtr.rubyforge.org) is colorful and fun. Advanced students can investigate the Watir libraries and discuss Domain Specific Languages; less advanced students can investigate the Watir unit tests and examples quite easily. For instance, the code below is from the Watir distribution and tests Google Maps: require 'watir' include Watir require 'test/unit' class TC_google_maps < Test::Unit::TestCase def test_google_maps testSite = "http://maps.google.com" ie = IE.new ie.goto(testSite) ie.text_field(:id,"q").set("Durango,CO") ie.button(:index, 1).click matchlat = '37.275278' matchlong = '-107.879444' assert_match(matchlat,ie.frame("vp").html.to_s) assert_match(matchlong,ie.frame("vp").html.to_s) end end