WaitWindowOpen not finding Firefox window

Technical support and scripting issues

Moderators: JRL, Dorian (MJT support)

Post Reply
montanan
Junior Coder
Posts: 49
Joined: Mon Jul 09, 2007 3:44 pm
Location: San Jose, CA

WaitWindowOpen not finding Firefox window

Post by montanan » Wed Jan 06, 2010 8:41 pm

I have tried a number of variations on the following...

Code: Select all

Let>WW_TIMEOUT=30
Run>C:\Program Files (x86)\Mozilla Firefox\firefox.exe
WaitWindowOpen>Mozilla Firefox*
IfWindowOpen>Mozilla Firefox*,AffirmMsg,NegMsg
Label>AffirmMsg
    Msg>I can see Firefox
Label>NegMsg
    Msg>I can't see Firefox
... but nothing seems to work to force Macro Scheduler to wait long enough for the window to actually open before the script moves on to the IfWindowOpen step

I've tried...

WaitWindowOpen>firefox*
WaitWindowOpen>Firefox*

... but no luck so far.

User avatar
JRL
Automation Wizard
Posts: 3532
Joined: Mon Jan 10, 2005 6:22 pm
Location: Iowa

Post by JRL » Wed Jan 06, 2010 9:22 pm

Have you read this thread?
http://www.mjtnet.com/forum/viewtopic.php?t=5605

I haven't tried it but I wonder what effect the WaitReady>1 function would have?

montanan
Junior Coder
Posts: 49
Joined: Mon Jul 09, 2007 3:44 pm
Location: San Jose, CA

Post by montanan » Wed Jan 06, 2010 10:05 pm

Thank you, JRL.

The post you referenced was very informative. Browsers just act differently from other Windows apps, it seems.

I also tried...

WaitReady>0
... and ...
WaitReady>1

... but no luck.

I can certainly use image recognition, so that's what I'll do!

-Richard

Post Reply
Sign up to our newsletter for free automation tips, tricks & discounts