def __js_click(self, selector, by=By.CSS_SELECTOR):
selector, by = self.__recalculate_selector(selector, by)<EOL>css_selector = self.convert_to_css_selector(selector, by=by)<EOL>css_selector = re.escape(css_selector)<EOL>css_selector = self.__escape_quotes_if_needed(css_selector)<EOL>script = ("""<STR_LIT>"""<EOL>% css_selector)<EOL>self.execute_script(script)<EOL>
Clicks an element using pure JS. Does not use jQuery.