code: def hide_elements(self, selector, by=By.CSS_SELECTOR):
          
          selector, by = self.__recalculate_selector(selector, by)
          selector = self.convert_to_css_selector(selector, by=by)
          hide_script = """jQuery('%s').hide()""" % selector
          self.safe_execute_script(hide_script)
docs: Hide all elements on the page that match the selector.