Sign in to follow this  
Followers 0
Raven75952

How to control a button in a web frame

2 posts in this topic

I am using AutoIt to control web action, but when i want to control a button in a frame(no form in the frame), i can not get the object of the button. So i can't click it unless sending "tab" many times until the button is focused. But this solution may easily be interrupted.

Is any solution to get the object of the button in a web frame?

I will be appreciate if anyone can help me out.

Share this post


Link to post
Share on other sites

#2 ·  Posted (edited)

I am using AutoIt to control web action, but when i want to control a button in a frame(no form in the frame), i can not get the object of the button. So i can't click it unless sending "tab" many times until the button is focused. But this solution may easily be interrupted.

Is any solution to get the object of the button in a web frame?

I will be appreciate if anyone can help me out.

Use the IE.au3 UDF functions.

Get the $oIE reference to the browser instance.

Get an $oFrame reference to the frame from inside $oIE.

Get the $oButton reference to the button, from inside $oFrame.

Then you can act on $oButton as required.

As you found, you won't be able to get a reference to $oButton from $oIE, it has be gotten from $oFrame.

:)

Edited by PsaltyDS

Valuater's AutoIt 1-2-3, Class... Is now in Session!For those who want somebody to write the script for them: RentACoder"Any technology distinguishable from magic is insufficiently advanced." -- Geek's corollary to Clarke's law

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