The innings is over when ten wickets are taken ( i.e. ten of the eleven batsmen are out ) . When ten batsmen have been dismissed ( i.e. , are out ) , then the whole team is dismissed and the innings is over .