Jump to content

Recommended Posts

Posted

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)
Next

But 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^ ERROR

If I use http://www.google.com/ instead, it works perfectly.

Thanks !

Posted

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
Posted (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 by GMK
Posted

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.
Posted (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 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
Posted

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".

Posted

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
Posted

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.

Posted

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 :)

Posted

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
Posted

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.

Posted

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
Posted

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 :P

Thx!

Posted

:)

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
Posted

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?

Posted

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.

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...