Issue in getting a button.

Nov 16, 2011 at 7:00 AM

Hi ,

              I am facing an issue in getting a button from a model window.I have a main window and another model window which is placed inside the main window.The model window is not having a name or automation ID.And the button is placed inside model window.I tried all the ways to find the button from the main window , but failed.Is there a better way to access the button.

 

With warm regards

                           Subin.

Nov 16, 2011 at 7:08 AM
Edited Nov 16, 2011 at 7:09 AM

have you tried to get the modal window first, and than get the button from this Modal Window?

 

Throndorin

Nov 16, 2011 at 7:40 AM

Yes.But there is no name and automation ID for that modal window.

Nov 16, 2011 at 7:45 AM

OK are there other windows in this moment?

 

Is the window part of

 

application.GetWindows() Collection?

Nov 17, 2011 at 8:45 AM

Hi , I got it using FindAll.Thanks