'Return the <OPTION> with the value `value` inside the <SELECT> widget
identified by the CSS selector `selector`.'

def get_select_option(self, selector, value):

    from selenium.common.exceptions import NoSuchElementException
    options = self.selenium.find_elements_by_css_selector(('%s    >    option' % selector))
    for option in options:
        if (option.get_attribute('value') == value):
            return option
    raise NoSuchElementException(('Option    "%s"    not    found    in    "%s"' % (value, selector)))
