Intelligent Automation & Macro Software  

Go Back   Tethys Solutions 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 05-28-2008, 10:45 AM
timz timz is offline
Junior Member
 
Join Date: Mar 2008
Posts: 4
Default Web recorder doesn't capture input

I am scraping a web page which allows a search on one of three possible criteria. The page has a radio group to indicate which criteria is being used for the search and then a text field to enter the search string. AA records the selection from the radio group and the pressing of the submit button, but not the search criteria itself.

The page uses javascript to submit the request, but I am unable to see how to indicate the search criteria for automating the task.

Thanks.
Reply With Quote
  #2 (permalink)  
Old 05-30-2008, 12:19 AM
forumsupport forumsupport is online now
Senior Member
 
Join Date: Apr 2007
Posts: 524
Default

Hello,

Is it possible for you to send the URL of website at http://www.tethyssolutions.com/ask-the-expert.htm so that one of our Automation experts will get in touch with you to help you resolve the problem?
Reply With Quote
  #3 (permalink)  
Old 06-02-2008, 11:01 PM
philkryder philkryder is offline
Member
 
Join Date: Sep 2007
Posts: 79
Default

Quote:
Originally Posted by timz View Post
I am scraping a web page which allows a search on one of three possible criteria. The page has a radio group to indicate which criteria is being used for the search and then a text field to enter the search string. AA records the selection from the radio group and the pressing of the submit button, but not the search criteria itself.

The page uses javascript to submit the request, but I am unable to see how to indicate the search criteria for automating the task.

Thanks.
so, am I correct that you have 3 radio buttons that allow you to set the search criteria such as:

O - Alpha
O - Beta
O - Gamma

And you want to be able to determine which of the 3 is "clicked"....

this might be ugly....

Can you read the URL into the clipboard?
It may be that the search criteria is in the URL and is parseable....

Report back whatever you learn.

This is a good trick to know...

Phil
Reply With Quote
  #4 (permalink)  
Old 06-03-2008, 03:43 AM
forumsupport forumsupport is online now
Senior Member
 
Join Date: Apr 2007
Posts: 524
Default

Hello,

Before clicking on Submit button, use extract data command to get status of three radio buttons and save the status in some temporary variable say, $Prompt-Assignment$. Then check if $Prompt-Assignment$ includes 'Checked' then insert the criteria selected in some variable say $Criteria$. Text format of commands would appear as follows,

// For first radio button
Extract data from Control type : Radio Button, Webpage : to $Prompt-Assignment$
Variable Operation : "" To $Prompt-Assignment$
If $Prompt-Assignment$ Includes "Checked" Then
Variable Operation : Alpha To $Criteria$
End If

// For second radio button
Extract data from Control type : Radio Button, Webpage : to $Prompt-Assignment$
Variable Operation : "" To $Prompt-Assignment$
If $Prompt-Assignment$ Includes "Checked" Then
Variable Operation : Beta To $Criteria$
End If

// For third radio button
Extract data from Control type : Radio Button, Webpage : to $Prompt-Assignment$
Variable Operation : "" To $Prompt-Assignment$
If $Prompt-Assignment$ Includes "Checked" Then
Variable Operation : Gamma To $Criteria$
End If
Reply With Quote
  #5 (permalink)  
Old 06-10-2008, 03:22 PM
timz timz is offline
Junior Member
 
Join Date: Mar 2008
Posts: 4
Default

First my apology for the late reply to the assistance provided -- I have been away from the office.

Thanks to Phil and to forum support for their replies.

The first thing to report is that AA Web Recorder is now capturing the input I previously had indicated was not being captured. If I hadn't tried it repeatedly before without success I would concede that somehow it may have been user error, bit I don't believe that to be the case. The only thing which seems likely is the page itself has been updated.

Nevertheless, I followed the support suggestion (with slight alteration) and was able to discern which button in the radio group was actually checked.

Here is what worked:
// For each button
Extract data from Control type : Radio Button, Webpage : to $Prompt-Assignment$
If $Prompt-Assignment$ Equal To "Checked" Then
Variable Operation : Alpha To $Criteria$
End If

I deleted the line: Variable Operation : "" To $Prompt-Assignment$ and changed the 'Includes "Checked"' to 'Equal To "Checked"'. This was necessary as the values returned were "Checked" and "Unchecked" so both values returned TRUE when "Includes" is used.
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

vB 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 02:15 AM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.0.0 ©2007, Crawlability, Inc.
Copyright © 2003-2008 Tethys Solutions, LLC. All rights reserved