On 6/1/06, <b class="gmail_sendername">Rodrigo Julian Martin</b> <<a href="mailto:rodrigo.martin@enratio.com">rodrigo.martin@enratio.com</a>> wrote:<div><span class="gmail_quote"></span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<div>
<div link="blue" vlink="purple" lang="EN-US">
<div><p><font face="Arial" size="2"><span style="font-size: 10pt; font-family: Arial;">I was wondering if there's a way of setting the
timeout parameter for the .wait method… I mean, let's say that a
page doesn't load in 10 seconds. Could I trap that the .wait method
failed after 10 seconds in order to log that?</span></font></p></div></div></div></blockquote><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<div><div link="blue" vlink="purple" lang="EN-US"><div><p><font face="Arial" size="2"><span style="font-size: 10pt; font-family: Arial;"> I'm doing this because I need to test if a page
has been loaded correctly after clicking a link, maybe there's a easier
form of checking this..</span></font><br></p></div></div></div></blockquote><div>If all you want to do is verify how long it took to load a page, you can do this:<br><br> ie.link(:name, "foo").click<br> assert(
ie.down_load_time < 10)<br><br>I have actually been thinking of adding a timeout to the wait method, but i'm not sure your situation really needs it. <br><br>Bret<br><br>P.S. I have my doubts about McMahon's suggestion.
<br></div></div>