Jump to content
Sign in to follow this  
rodkay

Help: _IE functions

Recommended Posts

rodkay

Hi all,

I have been trying unsuccessfully to write code that will click on a webpage SEND button using a variety of the _IE functions. The segment of code containing the button is listed below; as you can see it uses javascript calls. At present I am using AutoIt to press the button by positioning the mouse via a number of steps, but I was hoping to streamline this method. This is the only instance the SEND button appears on the page.

Can someone help me out.

<div class="fp_line">
<a href="javascript:;" onclick="checkOfflineFP()" class="btn_80" style="float:right;">SEND</a> <a href="javascript:;" onclick="fpOfflineCancel()" class="btn_80" style="float:right;">CANCEL</a></div>

The browser is IE8

The tab title is The Web Page ยป My homepage

Thanks,

Rod

Edited by rodkay

Share this post


Link to post
Share on other sites
Valuater

the button has an onclick action, so it must be clicked.

Try _IEAction($oText, "click")

If it still doesn't work, IE.au3 will give you a better error message.

#1

$oFrame = _IEFrameGetObjByName($oIE, "body_Frame")

$oButton = _IEGetObjById($oFrame, "Button_Name")

_IEAction($oButton, "click")

#2

_IEFormSubmit($oForm)

#3

ControlSend($oIE, "", "", $oButton)

...See help for more info on these

8)


NEWHeader1.png

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.