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 05-17-2010, 01:10 AM
Handroid Handroid is offline
Junior Member
 
Join Date: Nov 2009
Posts: 4
Default Extract Source Fails because of an extremely long viewstate in the source

To set the scene, first of all I consider myself fairly experienced with Automation Anywhere and web development in general.

On my current task the 'Extract Source' is not working- when I create the step, enter the URL and click 'Launch' the page loads fine, but the capture button is disabled and the source that it displays in the value box is not the complete source- it ends prematurely.

But when I actually run the task AA is unable to actually load the page- it navigates to 'http:///' , so i experimented with making it load the page first using 'Open Browser' with the exact same url. The open browser steps works perfectly and loads the page correctly, now this time the extract source doesn't navigate to 'http:///' it just fails to extract the source- resulting in nothing captured.

I use extract source all the time and it always works every time, except for on this site. I believe that it may be 1 of the 2 things causing the issue, although I may very well be wrong... The first reason which I think is most likely is because of an extremely long 'viewstate' value in the source - it is extremely long, many many thousands of characters in a single unbroken line. Which I think may be 'upsetting' AA causing it to misperform.

Subsequently AA is not saving the page source to the variable that I need it saved to. Which leads me to my second possible reason which i think is less likely (because the extract source is not by itself even navigating to the page)- which is that the maximum length allowed for any variable is actually quite limited, so this page's source is unable to be saved to the variable.

Anyway if the AA team or anyone else could shed some light on this and help me resolve this issue it would be much appreciated.

Please see the attached example task which demonstrates the problem.

Extract_Source-FAILS-example.atmn

Kind Regards,


H
Reply With Quote
  #2 (permalink)  
Old 05-17-2010, 11:00 AM
forumsupport forumsupport is offline
Senior Member
 
Join Date: Apr 2007
Posts: 1,342
Default

Hello,

We could reproduce the issue with this particular website and we have forwarded it to the development team for considering such scenario in future release. However, to get around the issue we can use Keystrokes, Alt+v followed by character c (View->Source) to open the source file and then copy-paste the entire data with keystrokes Ctrl+a followed by Ctrl+c and get the source code in $Clipboard$ variable.

We have amended your sample for your convenience. Please copy it under location, 'C:\...\My Documents\Automation Anywhere\Automation Anywhere\My Tasks' folder.

Please let us know how it goes.
Attached Files
File Type: atmn Extract_Source-FAILS-example.atmn (3.4 KB, 5 views)
Reply With Quote
  #3 (permalink)  
Old 05-18-2010, 12:36 AM
Handroid Handroid is offline
Junior Member
 
Join Date: Nov 2009
Posts: 4
Default Thank You for such a fast reply including a functional solution!

Thank You for such a fast reply including a functional solution!

I'm often amazed when contemplating just how many ways there are to go about getting things done!

Inspirational...

Anyway, enough of my ramblings. Thank You!

And please keep me posted about the development of an underlying solution. At the very least it will be interesting to find out if my proposed theories about the issue are anywhere near the reality of the situation!

Kind Regards,


H
Reply With Quote
  #4 (permalink)  
Old 05-18-2010, 12:48 PM
forumsupport forumsupport is offline
Senior Member
 
Join Date: Apr 2007
Posts: 1,342
Default

Hello Handroid,

Thank you for your feedback.

We will certainly keep you posted.
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 07:19 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