Search code examples
tagsimacros

iMacros - How do i TAG a DIV with multiple Classes


So i have this div that represents a button:

<div class="class1 class2 class3 class4">&nbsp;</div>

And i want to click on it using TAG. There is not an attribute that makes it easy to identify but the set of classes is unique. I am using this:

TAG TYPE=DIV ATTR=CLASS:class1

but it doesn't seems to be working. I've tried to put all the classes enclosed by "" and '' and it breaks the buld.

Any suggestions?


Solution

  • Look up your element in inspector. Right click on it (in inspector I mean) and choose Copy Full Xpath

    Then use the Xpath to refer your element in iMacros:

    TAG XPATH="paste_full_Xpath_here"