def click_partial_link_text(self, partial_link_text,<EOL>timeout=settings.SMALL_TIMEOUT):
<EOL>if self.timeout_multiplier and timeout == settings.SMALL_TIMEOUT:<EOL><INDENT>timeout = self.__get_new_timeout(timeout)<EOL><DEDENT>if self.browser == '<STR_LIT>':<EOL><INDENT>if self.is_partial_link_text_visible(partial_link_text):<EOL><INDENT>element = self.wait_for_partial_link_text(partial_link_text)<EOL>element.click()<EOL>return<EOL><DEDENT>soup = self.get_beautiful_soup()<EOL>html_links = soup.fetch('<STR_LIT:a>')<EOL>for html_link in html_links:<EOL><INDENT>if partial_link_text in html_link.text:<EOL><INDENT>for html_attribute in html_link.attrs:<EOL><INDENT>if html_attribute[<NUM_LIT:0>] == '<STR_LIT>':<EOL><INDENT>href = html_attribute[<NUM_LIT:1>]<EOL>if href.startswith('<STR_LIT>'):<EOL><INDENT>link = "<STR_LIT>" + href<EOL><DEDENT>elif href.startswith('<STR_LIT:/>'):<EOL><INDENT>url = self.driver.current_url<EOL>domain_url = self.get_domain_url(url)<EOL>link = domain_url + href<EOL><DEDENT>else:<EOL><INDENT>link = href<EOL><DEDENT>self.open(link)<EOL>return<EOL><DEDENT><DEDENT>raise Exception(<EOL>'<STR_LIT>'<EOL>'<STR_LIT>' % partial_link_text)<EOL><DEDENT><DEDENT>raise Exception(<EOL>"<STR_LIT>" % partial_link_text)<EOL><DEDENT>element = self.wait_for_partial_link_text(<EOL>partial_link_text, timeout=timeout)<EOL>self.__demo_mode_highlight_if_active(<EOL>partial_link_text, by=By.PARTIAL_LINK_TEXT)<EOL>pre_action_url = self.driver.current_url<EOL>try:<EOL><INDENT>element.click()<EOL><DEDENT>except (StaleElementReferenceException, ENI_Exception):<EOL><INDENT>self.wait_for_ready_state_complete()<EOL>time.sleep(<NUM_LIT>)<EOL>element = self.wait_for_partial_link_text(<EOL>partial_link_text, timeout=timeout)<EOL>element.click()<EOL><DEDENT>if settings.WAIT_FOR_RSC_ON_CLICKS:<EOL><INDENT>self.wait_for_ready_state_complete()<EOL><DEDENT>if self.demo_mode:<EOL><INDENT>if self.driver.current_url != pre_action_url:<EOL><INDENT>self.__demo_mode_pause_if_active()<EOL><DEDENT>else:<EOL><INDENT>self.__demo_mode_pause_if_active(tiny=True)<EOL><DEDENT><DEDENT>
This method clicks the partial link text on a page.