![]() |
| |||||||
Automation Anywhere Post messages and questions related to Automation Software here. |
![]() |
| | LinkBack | Thread Tools | Display Modes |
| |||
|
I have a task that is looking for a certain window to open. In my IF statement, I specify to wait for 30 seconds but it goes into it as soon as it reaches it. First thing is that it shouldn't go into it cause the window DOES exist, but it also doesn't wait for 30 seconds. Is it because I use a wildcard (*) in the window title? This is the text: - If Window Does Not Exists("*by Vimsoft - [Assets By Model, Manufacturer And Area]") Then (Wait up to 30 seconds - for Window not to exist) - Log to File: reason_failed=Could not open the report in under 60 seconds in "C:\Program Files\Vimsoft\VIMBIZ\reason_failed.txt" - Stop The Current Task -End If |
| |||
|
I played with this a bit and it is because of the wildcard in the window title. If I remove it it works fine. The problem for me is that my window title changes alot since I use it with 3 different databases which changes the window titles. It also doesn't work if I store the Window title in a variable, and then use the variable itself for the window title. It just always goes into the IF statement no matter what. Last edited by marcgallant; 01-02-2008 at 09:20 AM. |
![]() |
| Thread Tools | |
| Display Modes | |
| |