Example #1
0
        private void selectWorkloadTab(WorkloadMenu tab)
        {
            int tabIndex = (int)tab;

            string tabXPathLocator = string.Format("{0}{1}{2}", Locators.firstPartXPathLocator, tabIndex, Locators.lastPartXPathLocator);

            WebElement tabListItem = TabsFrame.GetElement().ByXPath(tabXPathLocator);;

            tabListItem.Click();
        }
 /// <summary>
 /// Data defines navigation to tab
 /// </summary>
 /// <param name="viewName">The menu item to navigate to a selected View e.g. "Groups & Workload".</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 WorkloadContext(WorkloadMenu viewName, By keyElement)
 {
     this.ViewName     = viewName;
     this.byKeyElement = keyElement;
 }