![]() |
| |||||||
Automation Anywhere Post messages and questions related to Automation Software here. |
![]() |
| | LinkBack | Thread Tools | Display Modes |
| |||
|
I've copied some text below from a simple ATMN, where I was using the IF WINDOW EXISTS .... (WAIT UP to...nn seconds...). It seems like AA is waiting about 5 times as long as I asked. For example when I asked for a 15 second delay, AA waited more than a minute. when I asked for a 5 second delay, I got 28 seconds. is there an way to get the wait to really be UP TO what we ask for? or, is there some thing else I should do. Phil You should be able to recreate this with any window that does NOT EXIST. 1 Comment: ================ 2 Comment: ================ 3 Comment: ================ 4 Start Loop "$DelayLoop$" Times 5 Delay: ($delayMilliSec$ ms) 6 End Loop 7 Comment: ================ 8 Delay: ($delayMilliSec$ ms) 9 Variable Operation : $Minute$_$Second$ To $NowSave1$ 10 If Window Exists ("*Activity Log Search*") Then (Wait up to 5 seconds - for Window to exist) 11 Delay: ($delayMilliSec$ ms) 12 Click On Link : "Add" in Window : "CCSAS*" 13 Else 14 Comment: Please enter the conditional commands here. 15 Variable Operation : $Minute$_$Second$ To $NowSave2$ 16 Message Box: "NowSave1 >$NowSave1$< NowSave2 >$NowSave2$< I'm sorry, but, The Activity Log Search page did not appear as expected. Please go back to the Overview page and run the macro again. If the problem persists, notify Phil at x2362. " 17 Variable Operation : "" To $Clipboard$ 18 Log to File: **no ACTIVITY LOG SEARCH** $NoteText$ in "$LogFileName$" 19 Log to File: **END** in "$LogFileName$" 20 Stop The Current Task 21 End If 22 Comment: ================ 23 Comment: ================ 24 Delay: ($delayMilliSec$ ms) 25 If Window Does Not Exist ("CCSAS C S E") Then (Wait up to 30 seconds - for Window not to exist) 26 Comment: This is a SAFETY wait in case a "please wait window is put up" 27 End If 28 Comment: ================ 29 Comment: ================ 30 Delay: ($delayMilliSec$ ms) 31 If Window Exists ("windows internet explore*") Then 32 Keystrokes: [ENTER] in "windows internet explore*" 33 End If 34 Comment: ================ 35 Start Loop "$DelayLoop$" Times 36 Delay: ($delayMilliSec$ ms) 37 End Loop 38 Comment: ================ |
| |||
|
certainly. my point is WHEN I give direction to a product to do X I don't want it to do 5 x. One of the big problems with AA is that it is "squirrelly" You can't know whether you've stumbled on an undocumented bug, or made a coding mistake. All you know is "it didn't do what I directed it to do..." does this make sense to you? |
| |||
| Quote:
I know that doesn't solve your problem, but to ensure it is a bug, isolate just those few lines in a new task and see what it does. |
![]() |
| Thread Tools | |
| Display Modes | |
| |