ah.. need to replace wait_for_ajax() with time.sleep(5).. will update it..thanks