def hide_elements(self, selector, by=By.CSS_SELECTOR):
selector, by = self.__recalculate_selector(selector, by)<EOL>selector = self.convert_to_css_selector(selector, by=by)<EOL>hide_script = """<STR_LIT>""" % selector<EOL>self.safe_execute_script(hide_script)<EOL>
Hide all elements on the page that match the selector.