docs: def select_by_selector(self, selector):
      """Select the option matching the CSS selector."""
      option = find_element_by_jquery(world.browser, selector)
      selectors = find_parents_by_jquery(world.browser, selector)
      if not selectors:
          raise AssertionError("No parent element found for the option.")
      selector = selectors[0]
      selector.click()
      sleep(0.3)
      option.click()
      if not option.is_selected():
          raise AssertionError(
              "Option should have become selected after clicking it.")