I am using Visual Studio Selenium with C# to select a menu option currently I using Chrome but I will be using multiple browsers. Here is the code I am using:
{
var dropdown = driver.FindElement(By.CssSelector(".row:nth-child(5) > .col-md-3 > .input-group > .form-control"));
dropdown.FindElement(By.XPath("//option[. = 'Slight']")).Click();
}
I have put threads in to slow down the test and keep getting the following error. Message:
OpenQA.Selenium.ElementNotInteractableException : element not interactable: Element is not currently visible and may not be manipulated
(Session info: chrome=79.0.3945.117)
Stack Trace:
RemoteWebDriver.UnpackAndThrowOnError(Response errorResponse)
RemoteWebDriver.Execute(String driverCommandToExecute, Dictionary`2 parameters)
RemoteWebDriver.InternalExecute(String driverCommandToExecute, Dictionary`2 parameters)
RemoteWebElement.Execute(String commandToExecute, Dictionary`2 parameters)
RemoteWebElement.Click()
ChromeResizeEditThrusterTest.chromeResizeEditThruster() line 75