Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

NS_ERROR_UNEXPECTED: Component returned failure code: 0x8000ffff (NS_ERROR_UNEXPECTED) [nsIPrefBranch.getCharPref]"

Tags:

imacros

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
like image 994
user3291837 Avatar asked Nov 21 '25 18:11

user3291837


1 Answers

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.

like image 75
Nibikibaba Avatar answered Nov 24 '25 23:11

Nibikibaba



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!