def generate_referral(self, start_page, destination_page):
if not page_utils.is_valid_url(destination_page):<EOL><INDENT>raise Exception(<EOL>"<STR_LIT>"<EOL>% destination_page)<EOL><DEDENT>if start_page:<EOL><INDENT>if not page_utils.is_valid_url(start_page):<EOL><INDENT>raise Exception(<EOL>"<STR_LIT>"<EOL>"<STR_LIT>"<EOL>% start_page)<EOL><DEDENT>self.open(start_page)<EOL>time.sleep(<NUM_LIT>)<EOL>self.wait_for_ready_state_complete()<EOL><DEDENT>referral_link = ('''<STR_LIT>'''<EOL>'''<STR_LIT>'''<EOL>'''<STR_LIT>'''<EOL>'''<STR_LIT>'''<EOL>'''<STR_LIT>''' % destination_page)<EOL>self.execute_script(<EOL>'''<STR_LIT>''' % referral_link)<EOL>self.click(<EOL>"<STR_LIT>", timeout=<NUM_LIT:2>)  <EOL>time.sleep(<NUM_LIT>)<EOL>try:<EOL><INDENT>self.click("<STR_LIT:html>")<EOL>time.sleep(<NUM_LIT>)<EOL><DEDENT>except Exception:<EOL><INDENT>pass<EOL><DEDENT>
This method opens the start_page, creates a referral link there,
            and clicks on that link, which goes to the destination_page.
            (This generates real traffic for testing analytics software.)