Open DeviPratik opened 7 years ago
This repo tracks the the WebDriver specification itself.
This may be a problem in the spec. The algorithm for Switch To Window contains a check for an active user prompt as the first step, and it's not clear that this should exclude those that can be handled by the Alert commands.
Should a new window be opened that immediately causes a user prompt to be displayed (eg. onload='alert("foo")'
) it becomes impossible to switch to that window.
According to the spec, this should work. But we need a test case to prove this.
Parent.html:
Click To open New/Child windowChild.html:
This is from ChildPage.html