Intelligent Automation & Macro Software  

Go Back   Automation Anywhere, Inc. Forums > Products Zone > Automation Anywhere
Register FAQ Search Today's Posts Mark Forums Read

Automation Anywhere Post messages and questions related to Automation Software here.


Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 08-27-2009, 11:31 AM
johnnykramp johnnykramp is offline
Junior Member
 
Join Date: Aug 2009
Posts: 2
Default Script works in first time in loop, but not the second iteration

I have a script that goes to a website, logs in, checks for orders, does what it needs to do, and then logs off. It closes the browser and then logs in as a different user to check for orders. The first loop of the script runs fine, and then on the second loop, AA throws a message that it cannot find the login link on the page. Any help with this would be appreciated. Thanks.
Attached Files
File Type: atmn Processing Orders.atmn (15.3 KB, 5 views)
Reply With Quote
  #2 (permalink)  
Old 08-28-2009, 12:59 PM
forumsupport forumsupport is offline
Senior Member
 
Join Date: Apr 2007
Posts: 1,342
Default

Hello,

We looked into your task and we suggest using 'Manage Web Controls' command of Web Recorder to click on log out link. It is more reliable also it will wait until you are completely logged out and then will perform the subsequent actions in the task.

In addition, we suggest opening the website once before you start the loop and close the browser after you end the loop. That would increase the speed of your task and will eliminate the performance issues.

We have amended the task for your convenience. Please copy it under location, 'C:\...\My Documents\Automation Anywhere\Automation Anywhere\My Tasks' folder.

Hope that helps.
Attached Files
File Type: atmn Processing Orders.atmn (18.1 KB, 2 views)
Reply With Quote
  #3 (permalink)  
Old 08-31-2009, 09:00 AM
johnnykramp johnnykramp is offline
Junior Member
 
Join Date: Aug 2009
Posts: 2
Default

While it does loop now, there are a few issues now that did not happen previously:

1. It does loop, however, it is only using the first user in my list variable "Users" and I need it to loop through those users.
2. There is some odd behavior. I Click on the "???" link once and it opens two windows, which makes it tough, as sometimes it closes the second one, and can't read the first one, or it won't close out of either of the windows, which on the second loop will throw an error message that someone else already has this session.

I changed all my "left click" events to Window Control events as you suggested. I don't know if this is what is causing it, but things that worked before, now no longer work.
Attached Files
File Type: atmn Processing Orders.atmn (22.4 KB, 3 views)
Reply With Quote
  #4 (permalink)  
Old 08-31-2009, 10:43 AM
forumsupport forumsupport is offline
Senior Member
 
Join Date: Apr 2007
Posts: 1,342
Default

Hello,

Regarding your queries,

1) Use Loop for List Variable command to repeat the actions for all the items in the list variable, Users. You can access the list variable values within the loop; for example, the first time the loop runs you can get the first value of the list variable, the second time you get the second value of the list variable, and so on.
We have amended the task for your convenience. Please copy it under location, ‘C:\...\My Documents\Automation Anywhere\Automation Anywhere\My Tasks’ folder.

2) If you have Internet Explorer version 7 then can you please try this, in IE window, under Tools->Internet Options click on Security tab. At the bottom of Internet Option window, you will find one checkbox to turn On/off protected mode. You need to uncheck that checkbox.

Hope that helps
Attached Files
File Type: atmn Processing Orders.atmn (22.7 KB, 4 views)
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




All times are GMT -7. The time now is 11:00 PM.


Powered by vBulletin® Version 3.8.6
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.0.0 ©2007, Crawlability, Inc.
Copyright © 2003-2011 Automation Anywhere, Inc. All rights reserved