![]() |
| |||||||
Automation Anywhere Post messages and questions related to Automation Software here. |
![]() |
| | LinkBack | Thread Tools | Display Modes |
| |||
|
I am entering some information into a webpage via AA. Sometimes a particular field isn't on the webpage, for example, sometimes the city field is automatically filled in, so I don't need to do anything. By "filled in" I mean there is no text box so I need to NOT send the characters for the city. Can I somehow check the webpage html for a particular string and if it's there, I know I will need to enter a City? Alan |
| |||
|
Hello, Automation Anywhere provides you with "If Web Control" command. If you want to check if a particular web control exists on a web page for e.g. a link or a textbox or a dropdown etc then use this command. This command will generally be used in the tasks using Web Recorder. You can find 'If' command under 'Conditions/Loops' command category. Just double click on this command, select "If Web Control" option, specify the URL of that website and capture that web control i.e. City textbox in your case. Inside If-End If insert the commands or actions that you want to perform if City textbox exists on webpage. Hope that helps. |
| |||
|
In the meantime, while I'm waiting for an answer on this, I figured I would try to see if If WebControl could maybe be made to work, but I can't seem to figure out how to do a wildcard on the url. I am currently changing all my "in" statements to *Windows Internet Explorer, but I can seem to change that one, and it won't work because the URL changes all the time. Alan |
| |||
|
Hello, Unfortunately, URL field of “If Web Control" command does not have wild card support. However, you can enable an option, Enable this task to run with other similar files or window titles, found at the bottom of main screen. If URLs have only difference in their parameter then "If Web Control" command can work with them. Hope that helps. |
![]() |
| Thread Tools | |
| Display Modes | |
| |