public void LoginFromSavedCredentials() { var loggingIn = new UITestHelper(metlWindow); loggingIn.SearchProperties.Add(new PropertyExpression(AutomationElement.AutomationIdProperty, Constants.ID_METL_LOGGING_IN_LABEL)); var success = loggingIn.WaitForControlExist(); Assert.IsTrue(success, ErrorMessages.WAIT_FOR_CONTROL_FAILED); var login = new Login(metlWindow.AutomationElement); login.WaitForSearchScreen(); }