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 02-29-2008, 04:35 PM
asawyer13 asawyer13 is offline
Junior Member
 
Join Date: Feb 2008
Posts: 7
Default Find text in Page

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
Reply With Quote
  #2 (permalink)  
Old 03-01-2008, 03:53 AM
forumsupport forumsupport is offline
Senior Member
 
Join Date: Apr 2007
Posts: 1,342
Default

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.
Reply With Quote
  #3 (permalink)  
Old 03-01-2008, 04:21 AM
asawyer13 asawyer13 is offline
Junior Member
 
Join Date: Feb 2008
Posts: 7
Default

The control can change names, etc so the best is if I can look at the html and look for a certain text string.
Can this be done?
Alan
Reply With Quote
  #4 (permalink)  
Old 03-01-2008, 05:09 AM
asawyer13 asawyer13 is offline
Junior Member
 
Join Date: Feb 2008
Posts: 7
Default

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
Reply With Quote
  #5 (permalink)  
Old 03-03-2008, 09:19 PM
forumsupport forumsupport is offline
Senior Member
 
Join Date: Apr 2007
Posts: 1,342
Default

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.
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 10: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