Automation iMacro:测试结果URL
使用iMacro(chrome extension),我想自动执行网站上的操作:Automation iMacro:测试结果URL,automation,imacros,Automation,Imacros,使用iMacro(chrome extension),我想自动执行网站上的操作: 选中复选框(条件) 单击按钮(提交) 然后将结果url与字符串进行比较 如果为true==>从头开始重新启动脚本 如果为false==>则显示弹出消息(或任何其他提醒用户的信息) 我在记录了第1步和第2步之后从这里开始,这两步都很好,可以在循环中运行 VERSION BUILD=8350307 RECORDER=CR URL GOTO=http://websitew.com/5421/0 REFRESH TA
如果为false==>则显示弹出消息(或任何其他提醒用户的信息)
VERSION BUILD=8350307 RECORDER=CR
URL GOTO=http://websitew.com/5421/0
REFRESH
TAG POS=1 TYPE=A ATTR=HREF:http://websitew.com/5421/0#
TAG POS=1 TYPE=INPUT:CHECKBOX FORM=ID:FormBookingCreate ATTR=ID:condition CONTENT=YES
TAG POS=1 TYPE=INPUT:SUBMIT FORM=ID:FormBookingCreate ATTR=NAME:nextButton
TAG POS=1 TYPE=INPUT:SUBMIT FORM=ID:FormBookingCreate ATTR=NAME:finishButton
此外,它不接受ifsatement的,我不知道如何用某种消息框或警报通知用户
SET current {{!URLCURRENT}}
#if current = "http://websitew.com/5421/0" then
MsgBox "OK!"
else
"""start from the beginning """
为Chrome“iMacros”扩展尝试以下解决方案:
' here your code with the 1st and 2nd steps '
SET S EVAL("('{{!URLCURRENT}}' == 'http://websitew.com/5421/0') ? 'alert(\"OK!\");' : 'undefined';")
URL GOTO=javascript:{{S}}
' uncomment the line below to stop your macro after a message box '
'SET E EVAL("('{{S}}' == 'undefined') ? '' : MacroError('STOP!');")
谢谢你,舒格。它起作用了。现在我有了一个很好的开始去学习更多。