Potty Bathroom

How to potty train 3 year old dog that willl use the bathroom in the house in front of you?
We have a dog 3 years has recently started pooping in the house. Origonally was only when they had been so kept in its box. It has now reached the point where she is stern the same room as sitting, but only a little out of sight. He will, even after she was off just 5 minutes earlier. She is trained to ask for when you need to go and we have seen go to the bathroom outside, but is now doing at home more and more often.
First, take her to the vet to rule out any medical problem. If there is no doctor, you have to start from scratch like a dog, and do a review of housetraining. It could be stress of some kind. Have you had any changes recently? (I had a baby? moved?, etc.)
Clever & Hysterical Porta-Potty Bathroom Prank