I\'m not able to select options in a drop down list. I think I need to have .Select or SelectElement, but there is no such option.
.Select
SelectElement
Sample code:
Use the below simple sample code:
String Input="Value to Select"; String xPathVal="@["id=Samplexpath"]"; IWebElement TargetElement = driver.FindElement(By.XPath(xPathVal)); SelectElement dropdown = new SelectElement(TargetElement); dropdown.SelectByText(Input.Trim());