Imacros is showing this error
NS_ERROR_UNEXPECTED: Component returned failure code: 0x8000ffff
(NS_ERROR_UNEXPECTED) [nsIPrefBranch.getCharPref]
Please help !!!
I am running this code :
VERSION BUILD=8601111 RECORDER=FX
TAB T=1
SET !DATASOURCE livefile.csv
SET !LOOP 2
SET !DATASOURCE_COLUMNS 2
SET !DATASOURCE_LINE {{!LOOP}}
URL GOTO= "xyz.com"
TAG POS=1 TYPE=INPUT:TEXT ATTR=Name:name CONTENT={{!COL1}}
TAG POS=3 TYPE=BUTTON ATTR=STYLE:
WAIT SECONDS=5
TAG POS=1 TYPE=A ATTR=TXT:Edit
WAIT SECONDS=5
TAG POS=1 TYPE=TEXTAREA FORM=ID:product_edit_form ATTR=ID:description CONTENT=
TAG POS=1 TYPE=TEXTAREA FORM=ID:product_edit_form ATTR=ID:description CONTENT={{!COL2}}
TAG POS=1 TYPE=DIV ATTR=Class:content-header
TAG POS=5 TYPE=BUTTON ATTR=STYLE:
WAIT SECONDS=5
I encountered the same problem on previously working imacros macro files. I noticed that if I record a new macro it works fine. The difference between the old macro and the newly recorded one is that the new macro file is a UTF8 file prefixed with Byte Order Mark.
Augmenting @Thomas'answer: By only changing the macro file format from ANSI to UTF8 alone does not work -- the new file must also have a unicode Byte Order Mark (BOM) as well. For UTF8 it is the sequence 0xEF,0xBB,0xBF (see wikipedia entry for Byte Order Mark).
Be sure to use an editor that preserves the BOM. For PSPad, you might have to turn on an option in Program Settings/Program Part 2 to achieve that.