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 01-07-2008, 08:06 AM
Gpr0509 Gpr0509 is offline
Junior Member
 
Join Date: Jan 2008
Posts: 1
Default Conditional Loop with web control

I need a way to have a conditional loop based on a web control (button) but the website/URL is variable in my case. AUtomation Anywhere 4.0 does not allow this, has anyone figured out a work around?

or is it possible to do a conditional loop based on a web control for the current web page that we are on?

Example:

launch website with variable URL

loop while web control does not exists(commandbutton:'0',submit) in the webpage "CURRENT"????
Reply With Quote
  #2 (permalink)  
Old 01-08-2008, 12:30 AM
forumsupport forumsupport is offline
Senior Member
 
Join Date: Apr 2007
Posts: 1,342
Default

Hello Greg,

What you can try is, copy the contents of entire webpage using shortcut 'Ctrl+a' followed by 'Ctrl+c'. When you copy any text using 'Ctrl + C', the text is copied to an object in Window operating system called Clipboard. Automation Anywhere provides a System Variable called $Clipboard$ using which you can get the text copied in the Clipboard object.
Now, using 'If Variable' command check if $Clipboard$ includes text written on that particular web control. If condition is satisfied then only perform required actions between If-Endif.
Could you please provide us with sample webpage or screenshot of webpage, as it would help us serve you better?

Hope that helps.
Reply With Quote
  #3 (permalink)  
Old 01-12-2008, 06:12 AM
rxjohn rxjohn is offline
Junior Member
 
Join Date: Jan 2008
Posts: 4
Default not successfull

I can not get your suggestion to work. I use the following:

If $ClipCont$ Includes "not found" Then

Excel: Set value of Active Cell with "Not Found"

I can put "not found" into clipboard before this runs and confirm that it is in clipbord after it runs, and still it does not work. I do not use the operator Equals, because I eventually will need for it to pick out "not found" from a long string of text.

Task is attached.
Attached Files
File Type: atmn New.atmn (12.4 KB, 3 views)
Reply With Quote
  #4 (permalink)  
Old 01-14-2008, 03:53 PM
forumsupport forumsupport is offline
Senior Member
 
Join Date: Apr 2007
Posts: 1,342
Default

Hello,

Can you please tell us where do you set the value of the variable $ClipCont$?

When you do Ctrl + A and Ctrl + C, the data is copied to the system clipboard and you can access it using the System variable $Clipboard$ instead of $ClipCont$. Is $ClipCont$ defined by you?

Also, while working with your task, I saw that you use Right Arrow keystrokes in Excel to move from one cell to another. You can use the Go to Cell command of Excel (One cell to the right) instead of using the Keystrokes command.

Hope that helps!
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 09:07 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