I have a script basically goes to a page and extract a string and the moves on to do other stuff, problem is imacros tries to load the entire page (images, script, tracker etc) rather than just loads up to the TAG part where I want it to extract text. Even if the text I want to extract is already loaded in the browser, imacros is still loading the page, which is entirely unnecessarily and waste some 10-20 seconds when you are on a proxy.
Sometimes it is also timed out because some irrelevant javascripts on the page doesn't load, but obviously the text which I wanted to extract is already loaded in the browser.
So is there a way to make imacos only load pages up to the TAG part ????
- Code: Select all
SET !TIMEOUT_PAGE 30
SET !ERRORIGNORE NO
TAB T=1
FILTER TYPE=IMAGES STATUS=ON
URL GOTO=[URL1]
TAG POS=1 TYPE=A ATTR=TXT:Sign<SP>In EXTRACT=TXT
URL GOTO=[URL2]
TAG POS=1 TYPE=IMG ATTR=SRC:blah
PROMPT Captcha !VAR1
TAG POS=1 TYPE=INPUT:TEXT FORM=NAME:doc_register_form ATTR=ID:captcha_code CONTENT={{!VAR1}}
TAG POS=1 TYPE=INPUT:TEXT FORM=NAME:doc_register_form ATTR=ID:username EXTRACT=TXT
TAG POS=2 TYPE=A ATTR=TXT:Register
'New Page URL3
TAG POS=1 TYPE=A ATTR=TXT:confirmation<SP>message EXTRACT=TXT
