In The Salesman (Asghar Farhadi), what did the intruder do?

In the Asghar Farhadi film "The Salesman," the audience is kept in the dark most of the time about what actually happened in the apartment.
When Emad finds the perpetrator, at first he denies going into the bathroom, saying he only heard her screaming then fled.
But later, after Emad returns, he says "I behaved very badly... I was tempted." Is he admitting that he raped her, or is he admitting that he just went into the bathroom and saw her naked? Or, is it intentionally ambiguous?
Pictures about "In The Salesman (Asghar Farhadi), what did the intruder do?"



How does the salesman end?
In 1:55:44, Emad turns the lights off in the house, and the stage, introduced for Miller's play, goes dark simultaneously. However, unlike Death of a Salesman, The Salesman does not finish. There is no ending. We do not know what happens in the Etesamis' life, if the old man dies, or if they decry him eventually.Where was the salesman filmed?
Farhadi chose Miller's play as his story within a story based on shared themes. A co-production between Iran and France, the film was shot in Tehran, beginning in 2015.What is the film the salesman about?
EnglishPersianAnalyzing 'The Salesman' Film by Asghar Farhadi
Sources: Stack Exchange - This article follows the attribution requirements of Stack Exchange and is licensed under CC BY-SA 3.0.