I want to select particular value from drop-down menu but stuck at it, I can load dropdown but cant select anyone of them, here is below details
C# code
driver.FindElement(By.ClassName("select2")).Click();
driver.Manage().Timeouts().ImplicitWait = TimeSpan.FromSeconds(10);
driver.FindElement(By.Id("select2-alpaca4-container")).Click();
driver.FindElement(By.XPath("//span[@id='select2-alpaca4-container']/..//*[text()='Normal User']")).Click();
I cannot use select since it has span as it is throwing error message "Element should have been select but was span" Can someone please provide me correct code here to select any one of the value