vitor Posted June 5, 2007 Share Posted June 5, 2007 First of all i'd like to say autoit is amazing and the udf ie.au3 is very cool also ! I'm trying to make an automatiion script for a site (Bank Site).Starting reading the examples and the documentation, I made this code:#include <IE.au3> $oIE=_IECreate() _IENavigate($oIE,"https://www2.bancobrasil.com.br/aapf/aai/login.pbk?loginSCD=true",0) Sleep(15000) $oForms = _IEFormGetCollection ($oIE) $HTML = _IEBodyReadHTML ($oIE) ConsoleWritE("Forms: " & $oForms) ConsoleWritE("-------- " & $HTML) MsgBox(0, "Forms Info", "There are " & @extended & " forms on this page") For $oForm In $oForms MsgBox(0, "Form Info", $oForm.name) NextBut it doesnt works for that page. I get this error:==> The requested action with this object has failed.: Return $o_object.document Return $o_object.document^ ERRORIf I use http://www.google.com/ instead, it works perfectly.Thanks ! Link to comment Share on other sites More sharing options...
PsaltyDS Posted June 5, 2007 Share Posted June 5, 2007 I get this error: ==> The requested action with this object has failed.: Return $o_object.document Return $o_object.document^ ERROR If I use http://www.google.com/ instead, it works perfectly. There is no $o_object in your code, so that is coming from the UDF. Include this in your script to get some error handling that might tell you more: _IEErrorHandlerRegister() Valuater's AutoIt 1-2-3, Class... Is now in Session!For those who want somebody to write the script for them: RentACoder"Any technology distinguishable from magic is insufficiently advanced." -- Geek's corollary to Clarke's law Link to comment Share on other sites More sharing options...
GMK Posted June 5, 2007 Share Posted June 5, 2007 (edited) It would appear to me that if you try to wait for the page to load, it loops in the _IELoadWait() function. My guess is that it may have something to do with the OS/browser language. Edited June 5, 2007 by GMK Link to comment Share on other sites More sharing options...
vitor Posted June 5, 2007 Author Share Posted June 5, 2007 There is no $o_object in your code, so that is coming from the UDF. Include this in your script to get some error handling that might tell you more: _IEErrorHandlerRegister() I did that and the result is above: --> COM Error Encountered in bb.au3 ----> $IEComErrorScriptline = 2443 ----> $IEComErrorNumberHex = 80010001 ----> $IEComErrorNumber = -2147418111 ----> $IEComErrorWinDescription = A chamada foi rejeitada pelo chamado. ----> $IEComErrorDescription = ----> $IEComErrorSource = ----> $IEComErrorHelpFile = ----> $IEComErrorHelpContext = ----> $IEComErrorLastDllError = 0 --> COM Error Encountered in bb.au3 ----> $IEComErrorScriptline = 1089 ----> $IEComErrorNumberHex = 000000A9 ----> $IEComErrorNumber = 169 ----> $IEComErrorWinDescription = Variable must be of type 'Object'. ----> $IEComErrorDescription = ----> $IEComErrorSource = ----> $IEComErrorHelpFile = ----> $IEComErrorHelpContext = ----> $IEComErrorLastDllError = 0 --> COM Error Encountered in bb.au3 ----> $IEComErrorScriptline = 1090 ----> $IEComErrorNumberHex = 000000A9 ----> $IEComErrorNumber = 169 ----> $IEComErrorWinDescription = Variable must be of type 'Object'. ----> $IEComErrorDescription = ----> $IEComErrorSource = ----> $IEComErrorHelpFile = ----> $IEComErrorHelpContext = ----> $IEComErrorLastDllError = 0 --> COM Error Encountered in bb.au3 ----> $IEComErrorScriptline = 1090 ----> $IEComErrorNumberHex = 000000A9 ----> $IEComErrorNumber = 169 ----> $IEComErrorWinDescription = Variable must be of type 'Object'. ----> $IEComErrorDescription = ----> $IEComErrorSource = ----> $IEComErrorHelpFile = ----> $IEComErrorHelpContext = ----> $IEComErrorLastDllError = 0 --> COM Error Encountered in bb.au3 ----> $IEComErrorScriptline = 2106 ----> $IEComErrorNumberHex = 80010001 ----> $IEComErrorNumber = -2147418111 ----> $IEComErrorWinDescription = A chamada foi rejeitada pelo chamado. ----> $IEComErrorDescription = ----> $IEComErrorSource = ----> $IEComErrorHelpFile = ----> $IEComErrorHelpContext = ----> $IEComErrorLastDllError = 0 Forms: -------- --> COM Error Encountered in bb.au3 ----> $IEComErrorScriptline = 22 ----> $IEComErrorNumberHex = 000000A9 ----> $IEComErrorNumber = 169 ----> $IEComErrorWinDescription = Variable is not of type 'Object'. ----> $IEComErrorDescription = ----> $IEComErrorSource = ----> $IEComErrorHelpFile = ----> $IEComErrorHelpContext = ----> $IEComErrorLastDllError = 0 It would appear to me that if you try to wait for the page to load, it loops in the _IELoadWait() function. My guess is that it may have something to do with the OS/browser language. I dun think so because for any other webpage, it works perfect. Link to comment Share on other sites More sharing options...
PsaltyDS Posted June 5, 2007 Share Posted June 5, 2007 (edited) ----> $IEComErrorWinDescription = A chamada foi rejeitada pelo chamado.Could you translate that line to english please? I think it is the heart of the problem. Because of that error, several things farther down the line got a non-object as an input. P.S. And what the heck is bb.au3? Edited June 5, 2007 by PsaltyDS Valuater's AutoIt 1-2-3, Class... Is now in Session!For those who want somebody to write the script for them: RentACoder"Any technology distinguishable from magic is insufficiently advanced." -- Geek's corollary to Clarke's law Link to comment Share on other sites More sharing options...
vitor Posted June 5, 2007 Author Share Posted June 5, 2007 Could you translate that line to english please? I think it is the heart of the problem. Because of that error, several things farther down the line got a non-object as an input. P.S. And what the heck is bb.au3?bb.au3 is the name of my script."A chamada foi rejeitada pelo chamado." means "The call was rejected by the call". Link to comment Share on other sites More sharing options...
PsaltyDS Posted June 5, 2007 Share Posted June 5, 2007 bb.au3 is the name of my script."A chamada foi rejeitada pelo chamado." means "The call was rejected by the call".As Jamie would say on "Myth Busters":Well, THERE'S your problem!The server is rejecting your initial connection. Nothing after that is going to work. Valuater's AutoIt 1-2-3, Class... Is now in Session!For those who want somebody to write the script for them: RentACoder"Any technology distinguishable from magic is insufficiently advanced." -- Geek's corollary to Clarke's law Link to comment Share on other sites More sharing options...
vitor Posted June 5, 2007 Author Share Posted June 5, 2007 As Jamie would say on "Myth Busters":The server is rejecting your initial connection. Nothing after that is going to work. I cant understand because on my browser it shows the page perfectly. Link to comment Share on other sites More sharing options...
PsaltyDS Posted June 5, 2007 Share Posted June 5, 2007 I cant understand because on my browser it shows the page perfectly.Maybe there's something IE.au3 UDFs don't like about https? I don't know. That's a Dale Hohm question... Valuater's AutoIt 1-2-3, Class... Is now in Session!For those who want somebody to write the script for them: RentACoder"Any technology distinguishable from magic is insufficiently advanced." -- Geek's corollary to Clarke's law Link to comment Share on other sites More sharing options...
vitor Posted June 6, 2007 Author Share Posted June 6, 2007 Maybe there's something IE.au3 UDFs don't like about https? I don't know. That's a Dale Hohm question... the problem is not about https because with other pages using https protocol i dont have problems Link to comment Share on other sites More sharing options...
PsaltyDS Posted June 6, 2007 Share Posted June 6, 2007 the problem is not about https because with other pages using https protocol i dont have problems Well, if you're going to shot down perfectly good vague theories with annoying facts... I can't help you. Valuater's AutoIt 1-2-3, Class... Is now in Session!For those who want somebody to write the script for them: RentACoder"Any technology distinguishable from magic is insufficiently advanced." -- Geek's corollary to Clarke's law Link to comment Share on other sites More sharing options...
vitor Posted June 6, 2007 Author Share Posted June 6, 2007 Well, if you're going to shot down perfectly good vague theories with annoying facts... I can't help you. I cant understand what you mean. Link to comment Share on other sites More sharing options...
PsaltyDS Posted June 6, 2007 Share Posted June 6, 2007 I cant understand what you mean.It was a joke.You were right, and I was joking about being contradicted. If it works with other https sites then that is not the issue. There is something else about that particular https site, like requiring PKI certs or something. I don't know. Was hoping Dale would pop in and enlighten us all on how to troubleshoot that. Valuater's AutoIt 1-2-3, Class... Is now in Session!For those who want somebody to write the script for them: RentACoder"Any technology distinguishable from magic is insufficiently advanced." -- Geek's corollary to Clarke's law Link to comment Share on other sites More sharing options...
vitor Posted June 6, 2007 Author Share Posted June 6, 2007 It was a joke.You were right, and I was joking about being contradicted. Sorry I didnt get your joke (bad english) If it works with other https sites then that is not the issue. There is something else about that particular https site, like requiring PKI certs or something. I don't know. Was hoping Dale would pop in and enlighten us all on how to troubleshoot that. Ok i'll wait for the Pro Dale to help me with that issue Thx! Link to comment Share on other sites More sharing options...
PsaltyDS Posted June 6, 2007 Share Posted June 6, 2007 Ok i'll wait for the Pro Dale to help me with that issue Well, whistling for him isn't working... got any bananas? Valuater's AutoIt 1-2-3, Class... Is now in Session!For those who want somebody to write the script for them: RentACoder"Any technology distinguishable from magic is insufficiently advanced." -- Geek's corollary to Clarke's law Link to comment Share on other sites More sharing options...
Moderators big_daddy Posted June 6, 2007 Moderators Share Posted June 6, 2007 Was hoping Dale would pop in and enlighten us all on how to troubleshoot that.Dale is on vacation this week. Link to comment Share on other sites More sharing options...
vitor Posted June 8, 2007 Author Share Posted June 8, 2007 Dale is on vacation this week. Link to comment Share on other sites More sharing options...
PsaltyDS Posted June 8, 2007 Share Posted June 8, 2007 Yeah. I don't remember that request crossing my desk before he left either... Seriously though, Dale has always been very responsive and deserves the break. I hope he is thoroughly enjoying it, and we can wait for him to get back when he's good and ready. Valuater's AutoIt 1-2-3, Class... Is now in Session!For those who want somebody to write the script for them: RentACoder"Any technology distinguishable from magic is insufficiently advanced." -- Geek's corollary to Clarke's law Link to comment Share on other sites More sharing options...
Bert Posted June 8, 2007 Share Posted June 8, 2007 Ummm, I work for a bank, and there may be server side code that is included in the webpage to prevent you from doing what you are attempting. Then again, what do I know. What happens when you load the page in Firefox, and use the developer plugin to get the id on the controls? Can you get a ID on the control you want to work with? The Vollatran project My blog: http://www.vollysinterestingshit.com/ Link to comment Share on other sites More sharing options...
vitor Posted June 9, 2007 Author Share Posted June 9, 2007 Ummm, I work for a bank, and there may be server side code that is included in the webpage to prevent you from doing what you are attempting. Then again, what do I know. What happens when you load the page in Firefox, and use the developer plugin to get the id on the controls? Can you get a ID on the control you want to work with?Is there a plugin similar to IE.au3 but for Firefox ? Because that one works only for IE. Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now