IF and ELSE - IMACROS

邮差的信 提交于 2019-12-12 02:44:48

问题


TAG POS=1 TYPE=A ATTR=TXT:next
FRAME F=1
WAIT SECONDS=3
TAG POS=1 TYPE=A ATTR=TXT:Contact
FRAME F=0
WAIT SECONDS=7

How do I insert a condition in ATTR: Contact?

I would check if the open page has Contact link, Contact us link , Help link, etc.

If the page does not have any of the links go to the end


回答1:


As a workaround you may try the !ERRORIGNORE variable. Something like this:

TAG POS=1 TYPE=A ATTR=TXT:next
FRAME F=1
WAIT SECONDS=3

SET !ERRORIGNORE YES
TAG POS=1 TYPE=A ATTR=TXT:Contact
SET !ERRORIGNORE NO

FRAME F=0
WAIT SECONDS=7


来源:https://stackoverflow.com/questions/40403649/if-and-else-imacros

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!