Normally they will refuse food if the need to poop. You could uncover the frog and place the frog in it's water dish.