//Click on the Menu links public void clickMenuOptions(string menuOptions) { var clickMenu = new ProfilePage(); var barXpath = "//*[@class='ui top attached tabular menu']/a[text()[normalize-space(.)='" + menuOptions + "']]"; IWebElement _menuClickoption = clickMenu.menuBarOptions(barXpath); _menuClickoption.Click(); }
//Delete the added language public void deleteLanguage(string language) { var deleteLanguage = new ProfilePage(); var barXpath = "//tr[.//td='" + language + "']/td[3]/span[2]/i"; IWebElement _menuClickoption = deleteLanguage.deleteLanguageOptions(barXpath); _menuClickoption.Click(); Thread.Sleep(5000); Driver.WebDriver.SwitchTo().DefaultContent(); }