Report question

Question: How can selenium web driver get to know when the new window has opened and then resume its execution