I'm having a problem with Macro Scheduler recognising the save window when downloading a file in Mozilla Firefox.
I use Macro Scheduler to automate a series of Selenium IDE scripts for Firefox. One of these Selenium scripts clicks on a download link on a website and I'm trying to get Macro Scheduler to recognise the save window that appears and save the file in a particular location.
Everything works fine, except Macro Scheduler won't recognise the child window that appears. WF_TYPE is set to the default so should recognise all windows. I've checked the View System Windows and the save box (titled: Enter name of file to save to...) is present and is the only window listed there with that name. I've tried using the full name (copied from the System Windows list) and wildcards, neither of which work. Bizzarely, though, if I manually switch focus to another window open, e.g. Opera browser, Macro Scheduler immediately recognises the save window, switches to it and proceeds as it should.
Here's the section of code that's causing the grief:
Label>Restart
...
//Scan the three lines of the report downloading Selenium script
Label>Scanning3
Let>YCoor=155
Repeat>YCoor
Let>SRColor=0
GetPixelColor>120,YCoor,SRColor
//Selenium Failure:Red color detected
IF>SRColor=13421823
Goto>Restart
ENDIF
Let>YCoor=YCoor+18
Until>YCoor=371
//If Final line is still white, keep on scanning
If>SRColor=16777215
Goto>Scanning3
ENDIF
WaitWindowOpen>Enter name*
SetFocus>Enter name*
Wait>2
Send>E:\Report Automation\Reports
Press Enter
Wait>1
Send>%Account% %date%.csv
Wait>0.5
Press Enter
Wait>2
Press Tab
Wait>0.5
Press Enter
...
Any help or suggestions will be greatly appreciated.
Thanks.
Problem with WaitWindowOpen
Moderators: JRL, Dorian (MJT support)
-
- Newbie
- Posts: 3
- Joined: Tue Sep 18, 2007 10:20 am
-
- Newbie
- Posts: 3
- Joined: Tue Sep 18, 2007 10:20 am
Just found out what was causing the problem: Windows would switch focus to the download window as soon as it appeared while Macro Scheduler was still looking for a particular pixel to change colour from white. The background colour of the download box is white so Macro Scheduler didn't register that the script had finished.
Sorry for the unnecessary post and thanks for the help!
Sorry for the unnecessary post and thanks for the help!