def jquery_click(self, selector, by=By.CSS_SELECTOR):
selector, by = self.__recalculate_selector(selector, by)<EOL>self.wait_for_element_present(<EOL>selector, by=by, timeout=settings.SMALL_TIMEOUT)<EOL>if self.is_element_visible(selector, by=by):<EOL><INDENT>self.__demo_mode_highlight_if_active(selector, by)<EOL><DEDENT>selector = self.convert_to_css_selector(selector, by=by)<EOL>selector = self.__make_css_match_first_element_only(selector)<EOL>click_script = """<STR_LIT>""" % selector<EOL>self.safe_execute_script(click_script)<EOL>self.__demo_mode_pause_if_active()<EOL>
Clicks an element using jQuery. Different from using pure JS.