How to check if a field exists using iMacro

南楼画角 提交于 2019-12-11 12:19:50

问题


I Need to check to see if an html field exists in a website using iMacro plugin for firefox. If the field does not exist, then I need to perform a different opperation


回答1:


TAG POS=1 TYPE=A ATTR=TXT:C

TAG POS= Which A class do yo want.

Type= To find your text in that class

ATTR= What do want from that class. (TXT, HREF...)

TXT(or something different): You can use * to find anything in class. İt marks the object. Or you want to search example:

TAG POS=1 TYPE=B ATTR=TXT:I<sp>am<sp>a<sp>text.

This code means find the first bold item which is in text:I am a text, and mark it.



来源:https://stackoverflow.com/questions/5128519/how-to-check-if-a-field-exists-using-imacro

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