/// <summary> /// Method to open sheet from the display grid /// </summary> /// <param name="sheetName">provide sheet name</param> public void OpenSheetFromTable(string sheetName) { try { BrowserUtil.RefreshBrowser(Application.driver); //List<IWebElement> sheets = Application.driver.FindElements(By.XPath("//div[contains(@class, 'clsCellContent clsDetailItemOpenable clsImageRenderi')]")).ToList<IWebElement>(); IWebElement sheet = Sheets.Find(t => t.Text == sheetName); CommonUIOperation.ClickOnAnObject(sheet, "Click on sheet"); } catch (Exception ex) { throw new Exception(string.Format("Unable to find sheet with name: {0}", sheetName)); } }