public static SearchResultsPage SearchFor <T>(this IHeaderComponent <T> header, string searchText) where T : WebBlock { header.SearchField().EnterText(searchText); return(header.SearchButton().Click <SearchResultsPage>()); }
public static IClickable <T> SearchButton <T>(this IHeaderComponent <T> header) where T : WebBlock { return(new Clickable <T>(header, By.Id("submit"))); }
public static IClickable <T> AboutNavigationLink <T>(this IHeaderComponent <T> header) where T : WebBlock { return(new Clickable <T>(header, By.CssSelector("#menu_about a"))); }
public static ITextField <T> SearchField <T>(this IHeaderComponent <T> header) where T : WebBlock { return(new TextField <T>(header, By.Id("q"))); }
public static IClickable <T> TitleLink <T>(this IHeaderComponent <T> header) where T : WebBlock { return(new Clickable <T>(header, By.CssSelector("#header h1 a"))); }