문제

I would like to use iMacros to check a html site if it contains certain numbers. if it does, then I would like to assign a variable according to a number that has been found.

Like if the html contains 112233 then I woul like to assing Var1 to be 123 if the html contains 223344 then I want Var1 to be 645

What would be the way to do this?

Thanks!

도움이 되었습니까?

해결책

Wow! That is a typical case for iMacros EVAL!

Extract the element's text with TAG and assign the value to !VAR1, using EVAL for the conditional.

If the text is not inside an html element (it could be in a comment, for instance) and so, not reachable by the TAG command, sou can try with SEARCH, which does offer some regular expression facility as well.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top