Jump to content
Sign in to follow this  
LOULOU

IE automation

Recommended Posts

LOULOU

<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

Share this post


Link to post
Share on other sites
Raindancer

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

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  

×

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.