I believe you can go to the toilet and I have read that Amla did that once. Also during the breaks of a test series they have a lunch break. However, this would be more difficult during a one-day match.