Jump to content

how to connect to already opened browser?


sqa
 Share

Recommended Posts

I need to connect and perform some automation to an opened already www page.

I tried:

Local $oIE=_IEAttach("Home")

Local $oForm = _IEFormGetObjectByName($oIE,"lastName") ;trying to find a text-box that has name=lastName

_IEFormElementSetValue($oForm,"test")

when I run it I am getting: Invalid object type.

what's wrong with my understanding how AutoIt works with IE?

 

Thanks

_

Link to comment
Share on other sites

  • 2 months later...

Try adding some error checking to see which function(s) are failing.  
You can inspect the value of @error right after the _IEAttach and _IEFormGetObject functions to validate their execution. (error return codes are listed on the linked help file pages).
 

Edited by spudw2k
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...