From: Xavier Noria Date: 2009-07-25T17:22:04+09:00 Subject: Re: Watching a website for periodic outages On Thu, Jul 23, 2009 at 10:50 PM, Glen Holcomb wrote: > On Thu, Jul 23, 2009 at 1:41 PM, Kyle Schmitt wrote: > >> Try recording and tweaking a JMeter script.  It may just work (after a >> fashion) without the javascript bits, as long as it's on when you do >> the initial recording. >> >> Humm... That becomes difficult. >> >> > Yeah, I was kind of hoping it would be a lot easier than it seems to be. > Watir doesn't seem to be the answer at all.  I just noticed a "pause" and > started my Watir script up.  It logs in but after about 10 seconds it tries > to click a link despite my explicit instructions not to until content has > loaded.  At least I thought they were explicit instructions. > > def check_page >  loaded = false > >  while !loaded >    if (@last_link == "Employees" and @browser.link(:text, "Tax Forms")) or > (@last_link == "Welcome" and @browser.link(:text, "Alternative > Transportation")) >      check_load_time >      loaded = true >    end >    sleep 15 >  end > end > > It seems to get out of this loop somehow without content loading.  That or > Watir gets content but the browser never renders the content. > > -- > "Hey brother Christian with your high and mighty errand, Your actions speak > so loud, I can’t hear a word you’re saying." > > -Greg Graffin (Bad Religion) >