Re: [Wtr-general] Wtr-general Digest, Vol 31, Issue 16

2006-06-07 Thread Lonny Eachus




By automatically, I would hope you mean a kind of "wait_for()" method,
rather than doing it unseen in the background. At first thought it
seems the latter would be terribly inefficient, especially since it is
only necessary in relatively rare cases.

Time and efficiency are definitely a concern in our screen scrapes. I
was already considering overriding existing delays in the code. If this
loop were done every time, we would likely be in the position of having
to go into the Watir code to take it back out, in order to regain what
efficiency we could.

Lonny Eachus



  

  

Subject:

Re: [Wtr-general] Automation annoyingness
  
  

From: 
"Bret Pettichord" [EMAIL PROTECTED]
  
  

Date: 
Wed, 7 Jun 2006 19:31:47 -0500
  

  
  
On 6/7/06, Lillis, Dara [EMAIL PROTECTED]
wrote:
  
  while
not ($ie.link(:text,"Second").exists?)
sleep 0.5
end
$ie.link(:text,"Second").click
  
This is what i do as well.
  
I
think the remaining question is whether Watir should do this
automatically. I've actually coded this directly and tested it and it
works. It's only a couple of lines of code. 
. . .
  
  




___
Wtr-general mailing list
Wtr-general@rubyforge.org
http://rubyforge.org/mailman/listinfo/wtr-general

Re: [Wtr-general] Wtr-general Digest, Vol 31, Issue 16

2006-06-07 Thread Lonny Eachus





I thought you meant there was an explicit delay. While I do not doubt
what you say, it seems strange that even a mess of _javascript_ should
take very long. On the other hand, in recent months I have seen some
_javascript_ that was, indeed, a real mess. Can you be more specific
about what it is doing? There may be ways to optimize things on the
_javascript_ side. If it is not relevant here, you can send to me
directly at [EMAIL PROTECTED]

Lonny Eachus
==


  

  

Subject:

Re: [Wtr-general] Automation annoyingness
  
  

From: 
Jared Quinert [EMAIL PROTECTED]
  
  

Date: 
Thu, 08 Jun 2006 09:31:15 +1000
  

  
  
  
In the real-world example the delay is caused by _javascript_ which is
doing something necessary, not just pausing (as in my fake example).
Watir pauses for 0.2 seconds after a link is clicked, so this probably
catches most instances where an application has some _javascript_ that
does something computationally intensive before the next page is
loaded. I think this means that I have to explicitly handle this. I
was hoping to know what approaches others had taken. 
  
I figure this would confuse commercial tools as well, but don't have
one to compare to, unless they're smart enough to analyse the script
invoked to see if it actually submits a form, refreshes, or redirects
to another page. Even then, I can imagine issues.
  
Jared



___
Wtr-general mailing list
Wtr-general@rubyforge.org
http://rubyforge.org/mailman/listinfo/wtr-general