Ejemplo n.º 1
0
 public MainHead MenuHeaderMouseOver(MainHead_Links menuHeader)
 {
     mainPage.GetElement()
     .ByText(menuHeader.GetEnumDescription())
     .MouseOver();
     return(this);
 }
Ejemplo n.º 2
0
        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();
            }
        }
Ejemplo n.º 3
0
 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;
 }