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