public void navigateToResources() { //System.Threading.Thread.Sleep(3000); var wait = new WebDriverWait(Properties.driver, TimeSpan.FromSeconds(50)); wait.Until(ExpectedConditions.ElementIsVisible(By.XPath("//div[text()='Resources']"))); ManageUpdateWaves_ResourcesPage resources = new ManageUpdateWaves_ResourcesPage(); common.Perform(resources.lnkresources, "click", ""); }
public void selectVM(String vmName) { System.Threading.Thread.Sleep(3000); ManageUpdateWaves_ResourcesPage resources = new ManageUpdateWaves_ResourcesPage(); common.Perform(resources.lnksearch, "click", ""); common.Perform(resources.tabsearch, "sendkeys", vmName); string VMXpath = "//em[text()='" + vmName + "']"; IWebElement vmElement = Properties.driver.FindElement(By.XPath(VMXpath)); common.Perform(vmElement, "click", ""); common.Perform(resources.lnkmanageUpdateWave, "click", ""); System.Threading.Thread.Sleep(10000); }