I am trying to select an element from dropdown with text as Ad. My page has a telerik dropdown and this is the HTML Code.
I am running following code:
SelectElement IDdropdown = new SelectElement(driver.FindElement(TrackingEnrityID_Dropdown));
IDdropdown.SelectByText("Ad");
and throws this runtime error:
An exception of type 'OpenQA.Selenium.Support.UI.UnexpectedTagNameException' occurred in WebDriver.Support.dll but was not handled in user code
Additional information: Element should have been select but was span