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 03-17-2008, 02:34 PM
wgs105 wgs105 is offline
Junior Member
 
Join Date: Mar 2008
Posts: 2
Default Task will not replay javascript links?

I am trying to automate a website that uses javascript links. The recording works fine but when I try and run the task it says the web controls cannot be found. An example of one of the links is javascript:__doPostBack(\'ConfiguredCampaigns1$rep $_ctl1$Linkbutton2\',\'\')

if I do a test recording on a page that has typical http:// links it works fine?

Anyone have any insight?

Thank you

Bill
Reply With Quote
  #2 (permalink)  
Old 03-18-2008, 01:08 AM
forumsupport forumsupport is offline
Senior Member
 
Join Date: Apr 2007
Posts: 524
Default

Hello,

Web Recorder can recognize JavaScript links. Is it possible for you to send us the URL of website that uses JavaScript link so that we can try to recreate the scenario at our end?
Reply With Quote
  #3 (permalink)  
Old 03-19-2008, 07:26 AM
wgs105 wgs105 is offline
Junior Member
 
Join Date: Mar 2008
Posts: 2
Default javascript links

no it is not a public site, thank you for the information.
Reply With Quote
  #4 (permalink)  
Old 03-22-2008, 10:18 PM
philkryder philkryder is offline
Member
 
Join Date: Sep 2007
Posts: 79
Default

Quote:
Originally Posted by wgs105 View Post
I am trying to automate a website that uses javascript links. The recording works fine but when I try and run the task it says the web controls cannot be found. An example of one of the links is javascript:__doPostBack(\'ConfiguredCampaigns1$rep $_ctl1$Linkbutton2\',\'\')

if I do a test recording on a page that has typical http:// links it works fine?

Anyone have any insight?

Thank you

Bill
I'm noticing the $ DOLLAR signs in the link name.

My experience has been that the AA parser sometimes sees $ dollar signs as VARIABLE indicators and doesn't process them correctly.

The folks here at AA were quick to fix it once I pointed out the problem area.

Ask about the $ dollar signs.

as a work around,
You might try reading a variable from a file such that contains the entire string...
Not sure exactly the syntax, but something like
first make a text file called myURL.txt
then put into the text file the following:
myURL=javascript:__doPostBack(\'ConfiguredCampaign s1$rep$_ctl1$Linkbutton2\',\'\')

then define a variable called myURL
and browse to the text file.
use F2 to insert the variable myURL in place of the URL string in the control...

Though now that I think about it, you may not be able to insert variables into controls -...

Like I said, ask them if the $ dollar signs are a problem in the control...
Reply With Quote
  #5 (permalink)  
Old 03-29-2008, 02:03 AM
forumsupport forumsupport is offline
Senior Member
 
Join Date: Apr 2007
Posts: 524
Default

Hello,

$ sign cannot create problem in this case. What you can try is, insert an 'If- Web Control Exists' Statement and insert the line which is crashing between the 'IF-Endif' command.

Hope that helps.
Reply With Quote
  #6 (permalink)  
Old 04-24-2008, 06:47 AM
NealO NealO is offline
Junior Member
 
Join Date: Apr 2008
Posts: 6
Default JavaScript Issues

Yes, exactly the same JavaScript Issues as you. Dispite other comments I don't think AA supports this properly.

The work around is to substitute mouse click commands for the recorded Web Recorder ones which will fire the JavaScript. Not very satisfactory I know...
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 04:44 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