Sign in to follow this  
Followers 0
DoctorSLO

Problem with IEAction

3 posts in this topic

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.

Share this post


Link to post
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

Share this post


Link to post
Share on other sites

#3 ·  Posted (edited)

Oh, thx I just put in ExitLoop and Now it's works, ty :)

Edited by DoctorSLO

Share this post


Link to post
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
Sign in to follow this  
Followers 0