public void WhenIClickOnAkinOladeji() { // WebDriverWait wait = new WebDriverWait(driver, TimeSpan.FromSeconds(20)); // //WebDriverWait(IWebDriver driver, TimeSpan.FromSeconds(20)); // var element = wait.Until(ExpectedConditions.ElementIsVisible(By.XPath("//span[text()='Akin Oladeji']"))); // Actions action = new Actions(driver); // action.MoveToElement(element).Perform(); // //Waiting for the menu to be displayed // System.Threading.Thread.Sleep(4000); dataDrivenWithParameterPage.ClickOnAkinOladeji(); }