Can't concate Extracted value with ATTR element

Discussions and Tech Support related to website data extraction, screen scraping and data mining using iMacros.
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
Tanvir67
Posts: 1
Joined: Thu May 17, 2018 4:31 am

Can't concate Extracted value with ATTR element

Post by Tanvir67 » Thu May 17, 2018 4:41 am

I'm trying to EXTRACT a value from a TD and use that value as ATTR:ID element. But getting this error- RuntimeError: element SELECT specified by ID:bb_sbs_code__{{!EXTRACT}} was not found, line: 8
I'm using following script -

Code: Select all

VERSION BUILD=1001 RECORDER=CR
URL GOTO=some_url
TAG POS=18 TYPE=BUTTON FORM=ACTION:some ATTR=TXT:Update<SP>SBS
WAIT SECONDS=2
TAB T=2
TAG POS=4 TYPE=TD ATTR=TXT:* EXTRACT=TXT
PROMPT {{!EXTRACT}}
TAG POS=1 TYPE=SELECT ATTR=ID:bb_sbs_code__{{!EXTRACT}} CONTENT=%901009
TAG POS=1 TYPE=SELECT ATTR=ID:purpose_code__{{!EXTRACT}} CONTENT=%1101
TAG POS=1 TYPE=SELECT ATTR=ID:sbs_sme_code__{{!EXTRACT}} CONTENT=%99
TAG POS=1 TYPE=SELECT ATTR=ID:sbs_product_code__{{!EXTRACT} CONTENT=%22200
TAG POS=1 TYPE=SELECT ATTR=ID:sbs_security_code__{{!EXTRACT}} CONTENT=%76
TAG POS=1 TYPE=INPUT:TEXT ATTR=ID:interest_rate__{{!EXTRACT}} CONTENT=9
TAG POS=1 TYPE=DIV ATTR=ID:content
TAB T=1
REFRESH
Please help to solve the issue.
Post Reply