I assume you mean how to write a test with LTAF to verify if a validator is showing or not. The easiest way to do this is to call the IsVisible() method that hangs off the HtmlElement. Here is a sample test that is included in our download that illustrates this:
// Navigate to the login page
HtmlPage page = new HtmlPage("Login.aspx");
// Verify validators are not visible
Assert.IsFalse(page.Elements.Find("UserNameRequired").IsVisible());
Assert.IsFalse(page.Elements.Find("PasswordRequired").IsVisible());
// Click the login button (do not wait for postback)
page.Elements.Find("LoginButton").Click();
// Verify validators are now visible
Assert.IsTrue(page.Elements.Find("UserNameRequired").IsVisible());
Assert.IsTrue(page.Elements.Find("PasswordRequired").IsVisible());
- Federico