[英]iMacros saveas not saving any data
I have a simple script and a big problem I do not know how to deal with. 我有一个简单的脚本,但有一个大问题,我不知道该如何处理。
iimPlay("CODE: TAG POS=1 TYPE=DIV ATTR=CLASS:ImageContainer EXTRACT=HTM");
iimPlay("CODE: SAVEAS TYPE=EXTRACT FOLDER=* FILE=+*");
The tag output is ok (checked via alert(iimGetLastExtract())) and extracts the html code of the ImageContainer div. 标记输出正常(通过alert(iimGetLastExtract()检查)),并提取ImageContainer div的html代码。 However, the saveas saves... nothing... just [BOM]""[BOM]
但是,另存为不保存...什么也没有,仅保存[BOM]“” [BOM]
Am I missing some command ? 我错过了一些命令吗? I am using FF 37.0.2 and iMacros 8.9.2 for FF.
我正在使用FF 37.0.2和iMacros 8.9.2。
Turns out that the !EXTRACT parameter gets reset between iimPlay commands, to prevent this, Ive used simple 1-string macro that fixed the problem: 事实证明,要在iimPlay命令之间重置!EXTRACT参数,为防止这种情况,我使用了简单的1字符串宏来解决了该问题:
macro = "CODE:\n";
macro += "TAG POS=1 TYPE=DIV ATTR=CLASS:ImageContainer EXTRACT=HTM\n";
macro += "SAVEAS TYPE=EXTRACT FOLDER=* FILE=+*";
iimPlay(macro);
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.