Tag a position with varying names

Discussions and Tech Support specific to the iMacros Firefox add-on.
Forum rules
iMacros EOL - Attention!

The renewal maintenance has officially ended for Progress iMacros effective November 20, 2023 and all versions of iMacros are now considered EOL (End-of-Life). The iMacros products will no longer be supported by Progress (aside from customer license issues), and these forums will also no longer be moderated from the Progress side.

Thank you again for your business and support.

Sincerely,
The Progress Team

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
BLiTzKrIeGx1337
Posts: 41
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

TAB T=1
URL GOTO=https://heraldpg.myprintdesk.net/DSF/Admin/ManageUsers.aspx
TAB CLOSEALLOTHERS
SET !DATASOURCE C:\Users\Jacqueline\Desktop\AFDUsers.csv
SET !LOOP 2
SET !DATASOURCE_LINE {{!LOOP}}
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
TAB T=2
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?

Thanks
Post Reply