Below is the example code of Wordpress Backend tag management section. I'm trying to write an iMacros to find a tag and delete it. However the Tag text doesn't below in any HTML's tag.
<div class="tagchecklist">
<span>
<a id="post_tag-check-num-0" class="ntdelbutton" tabindex="0">X</a>
Orange
</span>
<span>
<a id="post_tag-check-num-1" class="ntdelbutton" tabindex="0">X</a>
Apple
</span>
<span>
<a id="post_tag-check-num-2" class="ntdelbutton" tabindex="0">X</a>
Banana
</span>
<span>
<a id="post_tag-check-num-3" class="ntdelbutton" tabindex="0">X</a>
Grape
</span>
</div>
What I've tried to do but it doesn't work because TAG can't go to
TAG POS=1 TYPE=(Not sure what to put here) ATTR=TXT:Banana
TAG POS=R-1 TYPE=A ATTR=TXT:*
I need the script to find a where SPAN that contains Banana text located and click the X button in the SPAN.
Thanks for any help.
Relative positioning doesn't meet well this issue, so: