webdriver has some Select functions that might make this easier. For example:
```python
from selenium.webdriver.support.select import Select

Select(self.find_element(locators["hostgroups.parent"])).select_by_visible_text(parent)
```