I am trying to read a value from . Here is the HTML code:
<select name="user_type" id="user_type" class="select"><option value="0">Select</option><option value="1"> Admin </option><option value="1"> Agent </option><option value="1"> Butler </option><option value="1"> Ops </option></select>This is the code I implemented in Selenium using .NET:
query_UserType = driver.FindElement(By.Id("user_type"));driver.Manage().Timeouts().ImplicitlyWait(new TimeSpan(0, 0, 30));query_UserType.Clear();query_UserType.Click();query_UserType.SendKeys(" Agent ");string str_myEle2 = query_UserType.GetAttribute("value");Console.WriteLine("New User Type is: "+ str_myEle2);It gives error "invalid element state: Element is not currently interactable and may not be manipulated" on line:
query_UserType.Clear();I have no clue how can I get this fixed. Please help. Thanks







