Marcus Tettmar wrote:We've established there is nothing wrong with the ExtractTag so long as the tag is there and visible. Therefore I expect the issue is that you are calling it too soon and the page is not yet ready.
Even if I wait 10 seconds ExtractTag will not work.
I tested just by changing the way I get to the page, and I get different results.
It seems that IE11 or mjtnet is not refreshing the DOM.
This is the code I use to test.
Code: Select all
// COMPILE_OPTS|\\fs01\dnladmin\programas-NAOAPAGAR\Macro Scheduler\dnl\teste.exe||CONSOLE=0|INCLUDES=1||RUNTIMES=1|BMPS=1
// Generated by MacroScript WebRecorder 4.01
// Recorded on Thursday, February 6, 2014, at 01:18 PM
//Move the mouse cursor out of harm's way to avoid causing mouseover events to interrupt
MouseMove>0,0
//Enable automatic downloads to My Documents dir, modify path if required
IEOnDownload>1,,ie_res
//Set timeout for ClickTag and FormFill to 10 seconds, increase if pages load more slowly
IESetTimeout>10,ie_res
IECreate>IE[1]
///*
IENavigate>%IE[1]%,http://www.montepio.pt/SitePublico/pt_PT/empresas.page?,ie_res
IEWaitDocumentComplete>%IE[1]%,ie_res
IEFormFill>%IE[1]%,{""},{"loginForm"},{"loginid_IN"},{"111111111"},0,ie_res
IEClickTag>%IE[1]%,{""},{"loginForm"},{"INPUT"},{"ID"},{"btnLoginSubmit"},ie_res
//*/
//IENavigate>%IE[1]%,http://get-to-post.nickj.org/?https://net24.montepio.pt/Net24-Web/func/acesso/net24eLoginTV.jsp?loginid_IN=111111111&pageCWS=https://www.montepio.pt/SitePublico/pt_PT/empresas.page&radCert&off,ie_res
IEWaitDocumentComplete>%IE[1]%,ie_res
Wait>10
IEWaitDocumentComplete>%IE[1]%,ie_res
IEExtractTagByName>%IE[1]%,,INPUT,b1,0,vb1
MessageModal>vb1