I am new to Selenium in C#. I tried to use
wait.Until(ExpectedConditions.ElementIsVisible(By.Id("someId")));
new SelectElement(driver.FindElement(By.Id("someId"))).SelectByText("someText");
I got error like this in my NUnit output:
OpenQA.Selenium.NoSuchElementException : Cannot locate element with text: someText
But when I replace wait.Unitil statement with Tread.Sleep(3000), my test could pass without error.
Need some help. Please advise.