Jump to content
Sign in to follow this  

Wait for Java Applet to load?

Recommended Posts

Hi all,


I have tried to use _IELoadWait to wait for a Java Applet to load, but it appears this doesn't work for Java.  It thinks the page has fully loaded, where infact the Java Applet is still loading.  Is there a way to wait for the Applet to finish loading before continuing in the script?  I can't use a "WinWait" for the next available window because it could be different ones.



Share this post

Link to post
Share on other sites

My current code is this:

 WinWait("EMC Unisphere - Windows Internet Explorer")
 ToolTip ("Loading...")
 If WinExists("[CLASS:SunAwtDialog; TITLE:Test]") then
  ToolTip ("wait for test")
   send ("+{TAB}")
   send ("{SPACE}")
   send ("{TAB}")
 ToolTip ("Waiting for test2")
  If WinExists ("[CLASS:SunAwtDialog; TITLE:Test2]") then
   Tooltip ("test2")
  send  ("!s")
 WinWait("Login Dialog")
   ToolTip ("Inside login")
   Sleep (300)

  ToolTip ("you've missed it!")



Edited by weevil

Share this post

Link to post
Share on other sites

Have a look at the IUIAutomation MS framework, and the awt controls.

Snips & Scripts

My Snips: graphCPUTemp ~ getENVvars
My Scripts: Short-Order Encrypter - message and file encryption V1.6.1 ~ AuPad - Notepad written entirely in AutoIt V1.9.4

Feel free to use any of my code for your own use.                                                                                                                                                           Forum FAQ


Share this post

Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

  • Create New...