The general challenge must be taken before the jurors are sworn to be examined as to their capacity to serve as such, but the court may for just cause permit the challenge at any time before all the members of the jury are definitively sworn to act in the case.