iMacros Tag Line Properties
Posted: Wed Aug 15, 2018 6:09 pm
I'm trying to create a macro to log in to a company owned web page. When I record putting the cursor into the User Name text box, the following command is recorded:
IM = "CODE:"
IM = IM + "TAB T=1" + vbNewLine
IM = IM + "TAB CLOSEALLOTHERS" + vbNewLine
IM = IM + "SET !TIMEOUT 120" + vbNewLine
IM = IM + "TAG POS=1 TYPE=INPUT:TEXT FORM=ACTION:/pdp/qnyfy/resumeSAML20/pdp/startSSO.ping ATTR=NAME:pf.username CONTENT=" & txtUser + vbNewLine
IM = IM + "SET !ENCRYPTION NO" + vbNewLine
IM = IM + "TAG POS=1 TYPE=INPUT:PASSWORD FORM=ACTION:/pdp/qnyfy/resumeSAML20/pdp/startSSO.ping ATTR=NAME:pf.pass CONTENT=" & txtPass + vbNewLine
IM = IM + "TAG POS=1 TYPE=INPUT:BUTTON FORM=ACTION:/pdp/qnyfy/resumeSAML20/pdp/startSSO.ping ATTR=ID:SubmitButton" + vbNewLine
The problem is that the "qnyfy" part of the tag line changes. The next time I try to record this tag line, every thing is the same except that "qnyfy" changes to something else; which renders my VBA code useless for logging into this web page.
Is there a way to extract this information first, find out what that 5 characters should be and then re-build a string to use the correct tag line?
Windows 7
Excel 2016
iMacros scripting version 10.3
(We have been using this version because the download feature seems to work better for us than scripting version 11.0. I have access to 11.0 but haven't tried it with that one yet because most of our users have the player version 10.3)
We are using the iMacros browser for this macro
Thanks for the help........
IM = "CODE:"
IM = IM + "TAB T=1" + vbNewLine
IM = IM + "TAB CLOSEALLOTHERS" + vbNewLine
IM = IM + "SET !TIMEOUT 120" + vbNewLine
IM = IM + "TAG POS=1 TYPE=INPUT:TEXT FORM=ACTION:/pdp/qnyfy/resumeSAML20/pdp/startSSO.ping ATTR=NAME:pf.username CONTENT=" & txtUser + vbNewLine
IM = IM + "SET !ENCRYPTION NO" + vbNewLine
IM = IM + "TAG POS=1 TYPE=INPUT:PASSWORD FORM=ACTION:/pdp/qnyfy/resumeSAML20/pdp/startSSO.ping ATTR=NAME:pf.pass CONTENT=" & txtPass + vbNewLine
IM = IM + "TAG POS=1 TYPE=INPUT:BUTTON FORM=ACTION:/pdp/qnyfy/resumeSAML20/pdp/startSSO.ping ATTR=ID:SubmitButton" + vbNewLine
The problem is that the "qnyfy" part of the tag line changes. The next time I try to record this tag line, every thing is the same except that "qnyfy" changes to something else; which renders my VBA code useless for logging into this web page.
Is there a way to extract this information first, find out what that 5 characters should be and then re-build a string to use the correct tag line?
Windows 7
Excel 2016
iMacros scripting version 10.3
(We have been using this version because the download feature seems to work better for us than scripting version 11.0. I have access to 11.0 but haven't tried it with that one yet because most of our users have the player version 10.3)
We are using the iMacros browser for this macro
Thanks for the help........