user199340
user199340

Reputation: 39

iMacros - this TAG is failing (not finding the input field)

Here's the input field I'm trying to select (from the website)

<input class="inputtext" maxlength="100" aria-label="Search" 
placeholder="Search Your Friends" autocomplete="off" 
aria-autocomplete="list" aria-expanded="false" aria-owns=
"typeahead_list_u_jsonp_6_3" role="combobox" spellcheck="false" 
value="Search" type="text">

I need to TAG it, and then do a relative search for URLs to extract after it. (I don't need to put anything in the input field.) The TAG is failing, and I'm getting the 1st URL on the page, not the first one after the input field. (The above entry field is the only easily selectable item before the links I need to grab.)

Here's the code that fails:

TAG POS=1 TYPE=INPUT:TEXT ATTR=NAME:*  
TAG POS=R1 TYPE=A ATTR=HREF:* EXTRACT=HREF

iMacros v. 7.6.0.2 for Firefox Windows XP SP3

(Unfortunately, the iMacros official forum is dead. So I brought this here.)

Upvotes: 0

Views: 4684

Answers (2)

user2120360
user2120360

Reputation:

You can only TAG things that you can do something with, such as forms, fields, and links.
See: http://wiki.imacros.net/TAG

Upvotes: 1

Bestmacros
Bestmacros

Reputation: 1867

that is because your code is to generic, try:

TAG POS=1 TYPE=INPUT:TEXT ATTR=class:inputtext

Upvotes: 0

Related Questions