Okay, I didn't want to reply right away without trying a few things first. My results seem to be consistent in that my second counter is always larger than the default down_load_time value.<br><br><div><span class="gmail_quote">
On 10/01/07, <b class="gmail_sendername">Bret Pettichord</b> wrote:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
The "down_load_time" is the amount of time that watir waits in the wait<br>method that is automatically called after the click. It should be<br>roughly the same as the "wait_time" defined below:<br><br>
ie. button(:name, /UpdateSettingsButton/).click!<br> then = Time.now<br> ie.wait<br> wait_time = Time.now - then</blockquote><div><br>I like this code but "click!" doesn't work in
1.4.1 so I'll try it later on one of my 1.5.x VMWare sessions.<br> </div><br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">I'm confused by your example because your output does not match your code.
</blockquote><div><br>Which part is confusing? The script actually outputs in columns of data to a CSV file. I just picked a row and listed the results here in a more email friendly fashion.<br><br>If you're wondering why the results don't match, then I'm confused too!
<br><br>The second RT value is always larger than the IE.down_load_time value by a difference of 0.12 to 1.5 seconds. The average seems to be a difference of ~ 350 ms, which is noticeable.<br><br></div><br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
I've updated the rdoc for down_load_time to read:
<br><br> # The time, in seconds, it took for the new page to load after<br>executing the<br> # the last command<br><br>Is this clearer?<br></blockquote></div><br>I'm not sure. It sounds a bit better than the current description of: "use this to get the time for the last page download."
<br><br>I like the definition and code example that you gave at the top of your reply. That's the clearest I think. All the other Public methods in the Watir API reference have nice popup windows with code in it, so your description and code example above follows the pattern nicely.
<br><br>...There's just the matter of trying to figure out why there's a difference in my Response Time values. I'll keep collecting both for now so that I can continue developing my scripts. Maybe inspiration will come to me as I collect more data and update the scripts further.
<br><br>Currently, it looks to me like RT = (ie.down_load_time) + (additional IE render time or other unspecified delay)<br><br>Cheers. Paul C.<br><br>