def safe_execute_script(driver, script):
try:<EOL><INDENT>driver.execute_script(script)<EOL><DEDENT>except Exception:<EOL><INDENT>activate_jquery(driver)  <EOL>driver.execute_script(script)<EOL><DEDENT>
When executing a script that contains a jQuery command,
        it's important that the jQuery library has been loaded first.
        This method will load jQuery if it wasn't already loaded.