From: Glen Holcomb Date: 2009-07-24T05:50:55+09:00 Subject: Re: Watching a website for periodic outages --001636c5bb89930c7d046f65a44b Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: quoted-printable 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 =3D false while !loaded if (@last_link =3D=3D "Employees" and @browser.link(:text, "Tax Forms")= ) or (@last_link =3D=3D "Welcome" and @browser.link(:text, "Alternative Transportation")) check_load_time loaded =3D 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. --=20 "Hey brother Christian with your high and mighty errand, Your actions speak so loud, I can=92t hear a word you=92re saying." -Greg Graffin (Bad Religion) --001636c5bb89930c7d046f65a44b--