Unable to Pass Date as Parameter in TAG

Support for iMacros. The iMacros software is the unique solution for automating every activity inside a web browser, for data extraction and web testing.
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
vikramgoyal
Posts: 3
Joined: Fri Oct 31, 2014 1:46 pm

Unable to Pass Date as Parameter in TAG

Post by vikramgoyal » Fri Oct 31, 2014 1:55 pm

Hi, i am trying to set VAR1 variable to have value as "9/30/14" and passing the same in TAG (Line No.13), however, its not working.
Error Message is: RuntimeError: element A specified by TXT:Download was not found, line 13 (Error code: -921)

Please help.

SET !VAR1 "9/30/14"
TAB T=1
URL GOTO=https://myurl.com
TAG POS=1 TYPE=A ATTR=TXT:Trial<SP>Balance<SP>Report<SP>(RPT)
TAB T=2
TAG POS=1 TYPE=INPUT:TEXT FORM=NAME:login ATTR=NAME:edocs__userid CONTENT=user_id
SET !ENCRYPTION NO
TAG POS=1 TYPE=INPUT:PASSWORD FORM=NAME:login ATTR=NAME:edocs__password CONTENT=pwd
TAG POS=1 TYPE=INPUT:SUBMIT FORM=NAME:login ATTR=NAME:Submit
TAB T=2
TAG POS=1 TYPE=SELECT FORM=NAME:issn ATTR=NAME:ssns CONTENT=%123660013
TAG POS=1 TYPE=INPUT:SUBMIT FORM=NAME:issn ATTR=NAME:Submit
TAG POS=1 TYPE=A ATTR=TXT:{{!VAR1}}
TAG POS=1 TYPE=A ATTR=TXT:Download
Snayler
Posts: 12
Joined: Wed Mar 26, 2014 2:12 pm

Re: Unable to Pass Date as Parameter in TAG

Post by Snayler » Fri Oct 31, 2014 3:26 pm

You should pay more attention to the error messages:

Code: Select all

Error Message is: RuntimeError: element A specified by ---> TXT:Download <--- was not found, line 13 (Error code: -921)
vikramgoyal
Posts: 3
Joined: Fri Oct 31, 2014 1:46 pm

Re: Unable to Pass Date as Parameter in TAG

Post by vikramgoyal » Sat Nov 01, 2014 5:07 pm

Sorry, that was a typo, actual error message is:

RuntimeError: element A specified by TXT:{{!VAR1}} was not found, line 13 (Error code: -921)
vikramgoyal
Posts: 3
Joined: Fri Oct 31, 2014 1:46 pm

Re: Unable to Pass Date as Parameter in TAG

Post by vikramgoyal » Tue Nov 04, 2014 8:51 am

This is resolved, i was enclosing the dates in double quotes (!VAR1 "9/30/14") because of which it wasn't working.
Simply removed those quotes and it works just fine.

Thanks.
Post Reply