Assert the option matching the CSS selector is selected.

def is_selected_by_selector(self, selector):
    """Assert the option matching the CSS selector is selected."""
    elem = find_element_by_jquery(world.browser, selector)
    if not elem.is_selected():
        raise AssertionError("Element expected to be selected.")