contact  |  about  |  sitemap

Wait for image load in a web page
Last Post 31 Mar 2009 01:13 PM by Tijn. 1 Replies.
Sort:
PrevPrev NextNext
Author Messages
CW

--
31 Mar 2009 01:12 PM
It is possible to have Djuggler to wait for an image on a web page (or other window), and click it if appears, or do something else if it doesn't?
Tijn

--
31 Mar 2009 01:13 PM
If the image has a unique name or specific place in a web page you could do that with a construction like:

- loop range 10
. wait 2000 ms
. find text from position
. if text found then
.. set variable foundimage to Yes
. exit loop
. End if
- end loop

- If foundimage equal to yes
....
- Else
....
- End if

This construction loops 10 times with a wait of 2 seconds in the loop. When the image is not found in 20 seconds it will do something else.

Tijn


Quick Reply
toggle
  Username:
Subject:
Body:
Security Code:
Enter the code shown above:

Submit

Powered by Active Forums

Forum participation and optional registration

You don't need to be registered to partcipate in the Djuggler forums, however if you want to subscribe to email notifications you need to register. You can also subscribe to the forum RSS feed.