Jump to content

Need help on how to click a button using name, with out co-ordinates


Recommended Posts

Hi all,

I am working on Mozilla browser and trying to click on "Browse" button, I will get a pop-up window, and need to select some documents from there.

I have successfully clicked on browse button and done the remaining actions. But i am able to click on Browse button, using x,y co-ordinates, but in my application it is working dynamically. so this is failed some times.

Please advice me how to click on the "Browse" button with name or id ASAP.

Please find the below mentioned controls.

Thanks in advance.

>>>> Control <<<<

Class: MozillaWindowClass

Instance: 8

ClassnameNN: MozillaWindowClass8

Name:

Advanced (Class): [CLASS:MozillaWindowClass; INSTANCE:8]

ID:

Text:

Position: 0, 112

Size: 1016, 506

ControlClick Coords: 371, 125

Style: 0x56000000

ExStyle: 0x00000000

Handle: 0x000803E6

>>>> Mouse <<<<

Position: 375, 267

Cursor ID: 0

Color: 0x0F1628

Link to comment
Share on other sites

That "control" is just the client area of the browser, and it is drawn by the Firefox API, not the standard Windows APIs. AutoIt cannot work with those elements any more than it can with a Flash object button. You can investigate the FF.au3 UDF, but that requires you to install a plug-in to any instance of Firefox you want to use it with. It is this plug-in that presents an API AutoIt can use, not Firefox itself.

:)

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
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...