填写表格iMacro会导致返回错误

时间:2014-05-05 15:35:29

标签: imacros

我正在尝试创建一个表单填充iMacro,它将一列的信息插入到URL中,然后用其他3列填写表单。但是,当我尝试通过点击“播放(循环)”来运行我的脚本时,它会停止并说:

NS_ERROR_UNEXPECTED: Component returned failure code: 0x8000ffff (NS_ERROR_UNEXPECTED) [nsIPrefBranch.getCharPref], line 3 (Error code: -1001)

我查看了iMacro的Error and Return codes页面,它只是说错误代码意味着“未知错误。”

这是我的代码:

VERSION BUILD=8601111 RECORDER=FX
TAB T=1
SET !DATASOURCE /Users/codebiker/Desktop/oas/entries.csv
SET !LOOP 1
SET !DATASOURCE_COLUMNS 4
SET !DATASOURCE_LINE {{!LOOP}}
URL GOTO=http://mysite.org/edit?id={{!COL1}}&roleName=staff&show_dates=true#dates
TAG POS=1 TYPE=SELECT FORM=NAME:submitManuscript ATTR=NAME:embargo_dtmonth CONTENT={{!COL2}}
TAG POS=1 TYPE=SELECT FORM=NAME:submitManuscript ATTR=NAME:embargo_dtday CONTENT={{!COL3}}
TAG POS=1 TYPE=SELECT FORM=NAME:submitManuscript ATTR=NAME:embargo_dtyear CONTENT={{!COL4}}
TAG POS=1 TYPE=SELECT FORM=NAME:submitManuscript ATTR=NAME:print_dtmonth CONTENT={{!COL2}}
TAG POS=1 TYPE=SELECT FORM=NAME:submitManuscript ATTR=NAME:print_dtday CONTENT={{!COL3}}
TAG POS=1 TYPE=SELECT FORM=NAME:submitManuscript ATTR=NAME:print_dtyear CONTENT={{!COL4}}
TAG POS=1 TYPE=INPUT:SUBMIT FORM=NAME:submitManuscript ATTR=NAME:continue

这是我的CSV文件的内容:

5543/498006,4,28,2013
5543/498543,4,28,2013
5543/511683,4,28,2013
5543/514471,4,28,2013
5543/516450,4,28,2013
5543/531046,4,28,2013
5543/536656,4,28,2013
5543/539213,4,28,2013
5543/542530,4,28,2013
2312/544247,4,28,2013
2312/544346,4,28,2013
2312/547729,4,28,2013
2312/548024,4,28,2013
2312/548123,4,28,2013
2312/550673,4,28,2013
2312/551341,4,28,2013

我在这里做错了什么想法?

1 个答案:

答案 0 :(得分:0)

删除

SET !LOOP 1

一部分。然后打开文件并将其保存为UTF8文件并在iMacros中运行。