![]() |
| |||||||
Automation Anywhere Post messages and questions related to Automation Software here. |
![]() |
| | LinkBack | Thread Tools | Display Modes |
| |||
|
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"???? |
| |||
|
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. |
| |||
|
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. |
| |||
|
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! |
![]() |
| Thread Tools | |
| Display Modes | |
| |