Jump to content

IE automation


 Share

Recommended Posts

<input src="../images/TRSF/FB/valider.gif" name="btnValide" id="btnValide" type="image" border="0" alt="Transférer le fichier" onclick="java script:EffaceZoneResultat();"

Is anyone know how to do that with IE automation

Link to comment
Share on other sites

I think this is a Button of a Form. First you have to find the name of this Form.

Ex. <form action="http://www.autoitscript.com/forum/index.php?" method="post" name="search">

The name of the form is search

First you have to initialise a IEObject like this:

$oIE = _IECreate();If it should be invisible then put an (0) instead of a () after the function name

Navigate to your page like this:

_IENavigate($oIE, "http://www.nobrain.ch/script.php")

Then you get the FormObject by:

$oForm = _IEFormGetObjByName($oIE, "search")

Then you can get the object of the button you want to click on like this:

$oButton = _IEFormElementGetObjByName($oForm, "btnValide")

Then to execute the click on it use this line of code:

$oButton.Click

The Button gets clicked, and the Javascript function EffaceZoneResultat() is executed as you would klick on it inside your browser.

Hope this works for you.

Say: "Chuchichäschtli"My UDFs:_PrintImage UDF_WinAnimate UDFGruess Raindancer
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...