public MainHead MenuHeaderMouseOver(MainHead_Links menuHeader) { mainPage.GetElement() .ByText(menuHeader.GetEnumDescription()) .MouseOver(); return(this); }
public void ShowPerspective(MainHead_Links menuHeader, Perspectives viewName) { if (driver.CurrentView != viewName.GetEnumDescription()) { if (!IsHomeTabShown) { tabHome.Click(); } MenuHeaderMouseOver(menuHeader).MenuItemClick(viewName); driver.SwitchToFrame(MainTabFrame); driver.CurrentView = viewName.GetEnumDescription(); } }
private WebElement mhLink(MainHead_Links mhLink) { return(mainPage.GetElement().ByText(mhLink.GetEnumDescription())); }
/// <summary> /// Data defines navigation to tab /// </summary> /// <param name="menuHeader">The main tab menu item to select a child menu item e.g. "Test Management".</param> /// <param name="viewName">The menu item to navigate to a selected View e.g. "Test Plan".</param> /// <param name="keyElement">The key determinant element should be found by this locator to be sure that an expected view is really opened.</param> public InitMainTabContext(MainHead_Links menuHeader, Perspectives viewName, By keyElement) { this.MenuHeader = menuHeader; this.ViewName = viewName; this.byKeyElement = keyElement; }