This project is read-only.

Problem finding Button from dialog

Oct 14, 2008 at 7:04 AM
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 7: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 7:01 AM

There is an article about Custom UI Item which could help:

Is this what you are looking for?