Jump to content

Problem with IEAction


Recommended Posts

Hi.

I have problem with this script:

$IE2 = _IECreate($Povezava)
$Gumbi = _IETagNameAllGetCollection($IE2)
For $Gumb In $Gumbi
    If String($Gumb.title) = "Nadgradi zgradbo" Then
        _IEAction($Gumb, "Click")
        EndIf
Next
MsgBox(0, "oo", "good")
Exit

When I run script and comes to line where is _IEAction($Gumb, "Click") then the IEAction do this click successfully and after click I got this error:

==> The requested action with this object has failed.:
If String($Gumb.title) = "Nadgradi zgradbo" Then
If String($Gumb.title^ ERROR
>Exit code: 1   Time: 19.872

And script exit. I'm asking you if you know why the hell I got error? If I put MsgBox(blablabla) in where is _IEAction($Gumb, "Click") I got no errors.

Link to comment
Share on other sites

What about if you exit the loop?

Also, what is the value of $Povezava? It might make it easier to debug.

Also try _IEErrorHandlerRegister to find out why.

Cheers,

Brett

Link to comment
Share on other sites

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
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...