It must be taken before the jury is sworn to try the cause.