Quantcast
Channel: Active questions tagged selenium - Stack Overflow
Viewing all articles
Browse latest Browse all 99042

Selenium with .NET: invalid element state: Element is not currently interactable and may not be manipulated

$
0
0

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


Viewing all articles
Browse latest Browse all 99042

Latest Images

Trending Articles



Latest Images

<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>