Hello everybody!
I´m developing a script to automate a file upload process under Windows Internet Explorer;
Using the "Window Condition" command, I can detect if the "Choose file" window is open;
After that, the script types the file name, press "Return" and the file is uploaded.
But I wish I could add a validation to detect if the file wasn´t found, wich pops up a msg box warning this.
The problem is that this msg box has the SAME window title of the "Choose file" window.
I wonder if there´s a way to search for a window title, and detect if there´s more than one with the same title, wich would redirect the script to another line.
Thnks in advance!
Window Count
-
- Posts: 2
- Joined: 22 Feb 2017, 14:36
Window Count
Last edited by DanVazRobot on 23 Feb 2017, 14:16, edited 1 time in total.
Re: Window Cont
Hello,
There is perhaps a solution with the action 'find Image'.
For example, if no file : You create the image : And with the action 'find Image', you look for this image : This part of script could look like :
There is perhaps a solution with the action 'find Image'.
For example, if no file : You create the image : And with the action 'find Image', you look for this image : This part of script could look like :
-
- Posts: 2
- Joined: 22 Feb 2017, 14:36
Re: Window Count
Thanks a lot, Francois!
I can manage the "File not found" issue using the "Find image" command...
The question is:
Is there a way to count how many a specifc window title is open, and if there´s more than 1 redirect to another line of the script?
I can manage the "File not found" issue using the "Find image" command...
The question is:
Is there a way to count how many a specifc window title is open, and if there´s more than 1 redirect to another line of the script?