Question

Je voudrais utiliser iMacros pour vérifier un site html si elle contient certains numéros. si elle le fait, je voudrais assigner une variable en fonction d'un nombre qui a été trouvé.

Comme si le fichier html contient 112233 alors je woul aiment assing Var1 être 123 si le fichier html contient 223344 alors je veux être Var1 645

Quelle serait la façon de le faire?

Merci!

Était-ce utile?

La solution

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.

Licencié sous: CC-BY-SA avec attribution
Non affilié à StackOverflow
scroll top