Save page using title as filename?

Support for iMacros. The iMacros software is the unique solution for automating every activity inside a web browser, for data extraction and web testing.
Forum rules
Before asking a question or reporting an issue:
1. Please review the list of FAQ's.
2. Use the search box (at the top of each forum page) to see if a similar problem or question has already been addressed.
3. Try searching the iMacros Wiki - it contains the complete iMacros reference as well as plenty of samples and tutorials.
4. We can respond much faster to your posts if you include the following information:CLICK HERE FOR IMPORTANT INFORMATION TO INCLUDE IN YOUR POST
Post Reply
acc5555
Posts: 1
Joined: Mon Nov 24, 2014 3:25 pm

Save page using title as filename?

Post by acc5555 » Mon Nov 24, 2014 3:38 pm

Hi,

I am new to imacros, tried to find solution to this but without luck.
I need simple macro to save htm page using title, if I record this macro after playing it it does not save page using title, but it use time stamp.

in this example case - file name should be:
"Browser Automation, Data Extraction and Web Testing | iMacros Software.htm"

This is a code of macro:
URL GOTO=http://www.iopus.com/
SET !EXTRACT_TEST_POPUP NO
TAG POS=1 TYPE=TITLE ATTR=* EXTRACT=txt
SAVEAS TYPE=CPL FOLDER=D:\ FILE={{!EXTRACT}}.htm

After playing got this error:

NS_ERROR_FAILURE: Component returned failure code: 0x80004005 (NS_ERROR_FAILURE) [nsIWebBrowserPersist.saveDocument], line: 4 (Error code: -1001)

Where is an error?
I am using portable firefox 33.1, imacros 8.6.0
Post Reply