Tag a position with varying names

Discussions and Tech Support specific to the iMacros Firefox add-on.
Forum rules
Before asking a question or reporting an issue:
1. Please review the list of FAQ's.
2. Use the search box (at the top of each forum page) to see if a similar problem or question has already been addressed.
3. Try searching the iMacros Wiki - it contains the complete iMacros reference as well as plenty of samples and tutorials.
4. We can respond much faster to your posts if you include the following information: CLICK HERE FOR IMPORTANT INFORMATION TO INCLUDE IN YOUR POST
Post Reply
Posts: 31
Joined: Sat Nov 16, 2019 10:05 pm

Tag a position with varying names

Post by BLiTzKrIeGx1337 » Tue Jan 28, 2020 4:07 pm

64bit Windows 10
Firefox version 72.0.1 (64-bit)
iMacros 10021450 Personal E.

I don't know if the Subject makes any sense at all. But what I'm trying to do is open a link that is a result of search, it may make more sense with the script:

Code: Select all

URL GOTO=https://heraldpg.myprintdesk.net/DSF/Admin/ManageUsers.aspx
SET !DATASOURCE C:\Users\Jacqueline\Desktop\AFDUsers.csv
TAG POS=1 TYPE=INPUT:TEXT FORM=ID:aspnetForm ATTR=ID:ctl00_ctl00_C_M_TextBoxFilter CONTENT={{!COL7}}
TAG POS=1 TYPE=INPUT:SUBMIT FORM=ID:aspnetForm ATTR=ID:ctl00_ctl00_C_M_ButtonFilter
TAG POS=1 TYPE=A ATTR=TXT:01001,<SP>Asheville
TAG POS=1 TYPE=A ATTR=ID:ctl00_ctl00_C_M_linkButtonProfile
TAG POS=1 TYPE=INPUT:TEXT FORM=ID:aspnetForm ATTR=ID:ctl00_ctl00_C_M_contactInformationControl_textBoxUserName CONTENT={{!COL41}}
TAG POS=1 TYPE=INPUT:SUBMIT FORM=ID:aspnetForm ATTR=ID:ctl00_ctl00_C_M_buttonSaveProfile
!COL7 is pasted into the search bar, 2 lines later it selects "01001,<SP>Asheville", but that name will change based on what is searched, so the next one may be "05634, Topeka" it will always be in the same position on the page after the search though, as when searching by email address there can only be 1 username associated with any particular email address. Is there a way I can select whatever is there without it having to have that name in the script?

Post Reply