Randomizers
Randomizers

Reputation: 71

How to extract text by using imacros? Example shown

How do I extract [email protected]:ocupup

from:

<form id="flagform1" action="generator.php" method="POST">
<input id="flag1" name="flagalt" value="[email protected]:ocupup
" type="hidden">
<input name="generator" value="1" type="hidden">
<div class="btn-group btn-group-justified">
<a id="copy1" data-clipboard-target="generator1" title="Copy" class="btn btn-success zeroclipboard-is-hover">Copy</a>
<a href="javascript:void(0);" onclick="$(this).closest(&quot;form&quot;).submit();" title="Flag as invalid" class="btn btn-danger">Flag as invalid</a>
</div>
</form>

I've have this so far:

TAG POS=2 TYPE=form ATTR=flag1:flagalt EXTRACT=TXT

But that's not working.

Upvotes: 0

Views: 1167

Answers (2)

user5280571
user5280571

Reputation:

Example:

TAG POS=1 TYPE=INPUT:HIDDEN ATTR=ID:flag1 EXTRACT=TXT
PROMPT {{!EXTRACT}}

Tested with your HTML-Code and iMacros 8.9.6 for Firefox 45.

Upvotes: 1

edinvnode
edinvnode

Reputation: 3547

TAG POS=1 TYPE=INPUT:HIDDEN ATTR=ID:flag1 EXTRACT=HTM

Upvotes: 0

Related Questions