bhaskar1984 Posted March 3, 2011 Share Posted March 3, 2011 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: MozillaWindowClassInstance: 8ClassnameNN: MozillaWindowClass8Name: Advanced (Class): [CLASS:MozillaWindowClass; INSTANCE:8]ID: Text: Position: 0, 112Size: 1016, 506ControlClick Coords: 371, 125Style: 0x56000000ExStyle: 0x00000000Handle: 0x000803E6>>>> Mouse <<<<Position: 375, 267Cursor ID: 0Color: 0x0F1628 Link to comment Share on other sites More sharing options...
PsaltyDS Posted March 3, 2011 Share Posted March 3, 2011 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 More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now