![]() |
| |||||||
Automation Anywhere Post messages and questions related to Automation Software here. |
![]() |
| | LinkBack | Thread Tools | Display Modes |
| |||
|
Greetings, So far lovin what this program can do! I have run into a bit of a snag. I am traversing several webpages and come to a point where I get to a webpage that doesn't have a specific control to click on. I would just like to ignore them(the webpages without the proper web control) by using an If/else statement. However, when I try to use the "If Web Control" command it asks me for a URL. I would like it to look at my currently open webpage not go to a new one. The URL is actually stored in a variable but it won't accept a variable in the URL box. The Second option was to convert the current webpage to a text file (source of the webpage) and look for the link using the "If Variable" command. Alas, I guess I just don't know what to put in the "Variable" text box. Even if I did know what to put in the Variable box, will it allow me to search a string in the file?Your help is greatly appreciated. -Loera |
| |||
|
Hello, Regarding your queries, 1) You can try this, using 'Manage Web Control' command capture the control you want to look for (using any URL) and save the command. Then right click the command that you saved just now and select option, 'Convert to If Web Control Exists' from context menu. This command can work for all the WebPages if layout of webpage is same. Web recorder will take care of changing parameters in a URL. If you can provide URL of webpage, we can create specific sample for your reference. 2) Yes, using Extract Source:Web Recorder command you can get the source code of webpage into user variable and using 'If Variable' command can search any fix or variable string in same user variable. Hope that helps. |
| |||
|
Hello, In this scenario, we need to enable Attribute checkbox only and edit 'href' tag to have variable for lickey like this, href = "licenseFreqSum.jsp?licKey=$UserVariable$" Using 'String Manipulation' command we can extract lickey from URL. We have attached a sample task for reference. Please copy it under location, 'C:\...\My Documents\Automation Anywhere\Automation Anywhere\My Tasks' folder. Task is logging the result of 'If Web Control Exists' condition in C:\results.txt. |
| |||
|
My apoligies. I did not put my AA version number in the original post. I have: Automation Anywhere 5.5.2 Premier I recieved this message when I try to look at the task you sent: "Unable to edit this task as it has been created in the higher version." Could you resend this task to me? Also could you tell me or direct me to examples of how to use the IF VARIABLE commmand. The help menu just tells me about it. Thanks again for all your help, -Loera |
| |||
|
Greetings! I have good news and bad news. The bad news is that the first time I ran it it failed on one of the websites. The good news is that I couldn't get it to fail after that. Here is the output of my first five runs: F - 1654686 <--This was the first run. It should have been "T" T - 1684256 F - 3120809 T - 1761144 T - 1761891 F - 2574599 F - 3113259 T - 1654686 T - 1684256 F - 3120809 T - 1761144 T - 1761891 F - 2574599 F - 3113259 T - 1654686 T - 1684256 F - 3120809 T - 1761144 T - 1761891 F - 2574599 F - 3113259 T - 1654686 T - 1684256 F - 3120809 T - 1761144 T - 1761891 F - 2574599 F - 3113259 T - 1654686 T - 1684256 F - 3120809 T - 1761144 T - 1761891 F - 2574599 F - 3113259 Thanks for all your help on this. To make this thread complete I would like some information on that question I asked before: "Also could you tell me or direct me to examples of how to use the IF VARIABLE commmand. The help menu just tells me about it." Thank you, -loera |
| |||
|
Hello, Regarding your question about first run, possibly the webpage takes time to load fully hence the control does not exists while executing If condition. We can specify time duration i.e. how long to wait for condition to be true with If command. You can specify the maximum time in the wait box and if the condition is satisfied earlier then it won't wait for the entire duration specified, it works as an intelligent delay. We have attached amended task. For 'If Variable' example, open help manual for 'If-Else-Endif ' then click on 'Example' link on top-right corner. In that, read Example four (Create a task that prompts the user for a value, and if the user types “STOP,” the task stops.) Hope that helps. |
![]() |
| Thread Tools | |
| Display Modes | |
| |