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 11-19-2011, 07:41 AM
buddyjackson buddyjackson is offline
Junior Member
 
Join Date: Nov 2011
Posts: 3
Default directory of .html files

Hello, and thanks for any response.

On my XP box, I have a directory of html files where I want to copy/extract one table of user information and add into a csv file.

I was able to perform and record once with no confusion. I stopped the recording and wanted to replicate the action or maybe loop the action on the entire directory contents of approx 200 html files.

Can someone help me better understand the best method of approach.
Reply With Quote
  #2 (permalink)  
Old 11-21-2011, 03:19 PM
forumstaff forumstaff is offline
Senior Member
 
Join Date: Oct 2010
Posts: 521
Default

Hi Buddy,

If we have understood your requirement in the right manner, you can create a script in the task editor as the one mentioned below -

1 Start Loop " Each File in C:\TestAA"
2 If $Extension$ Equal To "html" Then
3 Open "$FileName$.$Extension$ "
4 Extract table from 'http://www.test.com/individuals.htm' website's '13' table
5 End If
6 End Loop

At Step 1, you select the directory under which your .html files are saved.

Then you insert an 'IF' condition to open the .html files and extract the table from the webpage by capturing it through the 'Extract Table' command of the Web Recorder.

Hope this helps. Do let us know if you need any further assistance.

Regards.
Reply With Quote
  #3 (permalink)  
Old 11-22-2011, 06:57 AM
buddyjackson buddyjackson is offline
Junior Member
 
Join Date: Nov 2011
Posts: 3
Default I foller ya

Thanks for your help!

I managed to fumble my way around the Editor. The F2 Tip helped, after I'd ignored it a few times...

Following your instruction to Extract my Table data, I arrived at line #4, but its having me go to a URL... Do I need to push these 200 html files onto a webserver to perform the Automation, because the action is called Web Recorder?

Is there a way to just work offline on my XP box?

Thank you, again!
Reply With Quote
  #4 (permalink)  
Old 11-22-2011, 03:41 PM
forumstaff forumstaff is offline
Senior Member
 
Join Date: Oct 2010
Posts: 521
Default

Hi Buddy,

Can you send us a couple of html files that you have stored in your directory. Also do let us know the table which you want to extract from these files. This will help us in understanding the requirement in a better way.

Regards.
Reply With Quote
  #5 (permalink)  
Old 11-22-2011, 08:42 PM
buddyjackson buddyjackson is offline
Junior Member
 
Join Date: Nov 2011
Posts: 3
Default html directory or website

I Teleported htm pages onto my XP box into a directory and removed all css formatting.

Logically, going back to your original approach line by line, I question why line 4 gets involved? (go to the URL, if line 1,2 & 3 says "look in this folder and get these files).

Helpfully, the URL: Link
Grateful for your instruction
Attached Images
File Type: jpg agent_table.jpg (13.6 KB, 5 views)
Attached Files
File Type: zip agents.zip (16.6 KB, 2 views)
Reply With Quote
  #6 (permalink)  
Old 12-07-2011, 04:52 PM
forumstaff forumstaff is offline
Senior Member
 
Join Date: Oct 2010
Posts: 521
Default

Hi Buddy,

Please find attached the sample task that we have created at our end. Download and Save the task under 'My Tasks' folder. To locate the path of the 'My Tasks' folder, right click on any of the existing tasks under Automation Anywhere and select the 'Locate on Disk' option.

There are a couple of changes you need to make in order to run the task successfully -

1. Edit Statement 2 and select the folder which contains your '.htm' files.
2. Edit Statement 4 and change the path to include your folder.
For ex - Navigate URL "C:\agents\$Prompt-Assignment$.htm" should be changed to Navigate URL "<folder containing '.htm' files>\$Prompt-Assignment$.htm"

Hope this helps. Do let us know how it works out at your end.

Regards.
Attached Files
File Type: atmn Sample_Buddy Jackson.atmn (5.5 KB, 0 views)
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 05:25 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