title: iMacros TAG to Find TXT and Click Nearby (previous) Link
body: <p>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.</p>
  
  <pre><code>&lt;div class="tagchecklist"&gt;
      &lt;span&gt;
          &lt;a id="post_tag-check-num-0" class="ntdelbutton" tabindex="0"&gt;X&lt;/a&gt;
          &amp;nbsp;Orange
      &lt;/span&gt;
      &lt;span&gt;
          &lt;a id="post_tag-check-num-1" class="ntdelbutton" tabindex="0"&gt;X&lt;/a&gt;
          &amp;nbsp;Apple
      &lt;/span&gt;
      &lt;span&gt;
          &lt;a id="post_tag-check-num-2" class="ntdelbutton" tabindex="0"&gt;X&lt;/a&gt;
          &amp;nbsp;Banana
      &lt;/span&gt;
      &lt;span&gt;
          &lt;a id="post_tag-check-num-3" class="ntdelbutton" tabindex="0"&gt;X&lt;/a&gt;
          &amp;nbsp;Grape
      &lt;/span&gt;
  &lt;/div&gt;
  </code></pre>
  
  <p>What I've tried to do but it doesn't work because TAG can't go to </p>
  
  <pre><code>TAG POS=1 TYPE=(Not sure what to put here) ATTR=TXT:Banana
  TAG POS=R-1 TYPE=A ATTR=TXT:*
  </code></pre>
  
  <p>I need the script to find a where SPAN that contains Banana text located and click the X button in the SPAN.</p>
  
  <p>Thanks for any help.</p>