def METHOD_NAME(element, max_retry=3):
    retry_count = 1
    while retry_count <= max_retry:
        try:
            element.click()
        except Exception as e:
            log('click error, try #{}...'.format(retry_count))
            log (' Error reported was: '+str(e))
            retry_count = retry_count + 1
            sleep(2)
        else:
            retry_count = max_retry + 1
            pass