def activate_jquery(driver):
try:<EOL><INDENT>driver.execute_script("<STR_LIT>")<EOL>return<EOL><DEDENT>except Exception:<EOL><INDENT>pass<EOL><DEDENT>jquery_js = constants.JQuery.MIN_JS<EOL>activate_jquery_script = (<EOL>'''<STR_LIT>'''<EOL>'''<STR_LIT>'''<EOL>'''<STR_LIT>''' % jquery_js)<EOL>driver.execute_script(activate_jquery_script)<EOL>for x in range(int(settings.MINI_TIMEOUT * <NUM_LIT>)):<EOL><INDENT>try:<EOL><INDENT>driver.execute_script("<STR_LIT>")<EOL>return<EOL><DEDENT>except Exception:<EOL><INDENT>time.sleep(<NUM_LIT:0.1>)<EOL><DEDENT><DEDENT>raise Exception(<EOL>'''<STR_LIT>'''<EOL>'''<STR_LIT>'''<EOL>'''<STR_LIT>'''<EOL>'''<STR_LIT>''' % driver.current_url)<EOL>
If "jQuery is not defined", use this method to activate it for use.
        This happens because jQuery is not always defined on web sites.