Problem finding Button from dialog

Oct 14, 2008 at 6:04 AM
hi,
I've fetched a window that is actually a dialog for login.
Window windowLogin = application.GetWindows()[1];

after setting all of the fields on this window somehow,  I am unable to find the Login button . I've tried the following:
             
             1:  SearchCriteria searchCriteriaLoginButton = SearchCriteria.ByText("Login").AndControlType(typeof(Button));
                  Button btnLogin = (Button)windowLogin.Get(searchCriteriaLoginButton);
            
             2:  Button btnLogin = windowLogin.Get<Button>(SearchCriteria.ByText("Login"));

             3:  Button btnLogin = windowLogin.Get<Button>("Login")

all of above returns nothing. can someone guide me please.

Oct 14, 2008 at 6:41 AM
I've just come to know that the button I'm trying to get is not actually a Button rather a KryptonButton this is the problem for sure. But is there any work around for customized controls in white. I mean how can i work with these controls using White. can someone tell me some code-snippet or something.
Oct 15, 2008 at 6:01 AM
Hi,

There is an article about Custom UI Item which could help:
http://www.codeplex.com/white/Wiki/View.aspx?title=Custom%20UI%20Item&referringTitle=Home

Is this what you are looking for?

Regards,
-Konstantin