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