如何设置URL GOTO = javascript:输出到iMacros变量
我正在浏览URL GOTO = javascript的官方iMacros文档。如何设置URL GOTO = javascript:输出到iMacros变量
URL GOTO=http://demo.imacros.net/Automate/TestForm1 URL GOTO=javascript:window.document.getElementById("name").value='Test');
如何将Javascript的输出设置为iMacro变量?
Like SET !VAR1 {Javascriptoutput}
我的要求是打印输出到CSV,所以我的JS输出设置为iMacro变量,然后将它打印到CSV的虽然。
对此有何意见?
回答:
var master1= "CODE:"; master1 += "VERSION BUILD=8820413 RECORDER=FX" + "\n";
master1 += "TAB T=1" + "\n";
master1 += "SET !ERRORIGNORE YES" + "\n";
master1 += "ADD !EXTRACT {{someValue}}" + "\n"; //name
master1 += "SAVEAS TYPE=EXTRACT FOLDER=* FILE=a.csv" + "\n";
//from the imacro code after extracting your text
var someValue= iimGetLastExtract(1);
iimSet("someValue",someValue); //asssign the value so tat it adds to csv file
iimPlay(master1); //imacro code for saving
以上是 如何设置URL GOTO = javascript:输出到iMacros变量 的全部内容, 来源链接: utcz.com/qa/261119.html