I have been on this for a long time over 2 months. It is selecting from a drop-down box with Selenium. Everytime I try running the script it gives reports that it cannot find the element, what could be the problem.
THis is my code:

```
driver.FindElement(By.CssSelector(UserGroupsConstants.UserGroupType)).Click();
driver.FindElement(By.CssSelector(UserGroupsConstants.UserGroupTypeSearch)).SendKeys("User Role");

```

This is the second code I tried but didn't work as well

```
SelectElement se = new SelectElement(driver.FindElement(By.CssSelector(UserGroupsConstants.UserGroupType))); 
se.SelectByText("User Role");

```

This is the image of the dropdown
[![enter image description here](https://i.stack.imgur.com/PscXR.png)](https://i.stack.imgur.com/PscXR.png)
[![enter image description here](https://i.stack.imgur.com/L4d8N.png)](https://i.stack.imgur.com/L4d8N.png)