protractor
protractor copied to clipboard
Error: The driver is not focused on a window. You must switch to a window before proceeding on Safari
Bug report
I use browser.driver.switchTo().window(window) to switch to new window on Safari 10.
- First I switch to a window, click button to open a new window (not tab).
- Switch to a window and do something on second window and click button to auto close this window.
- After second window closed, protractor show error:
E/launcher - NoSuchWindowError: The driver is not focused on a window. You must switch to a window before proceeding. (WARNING: The server did not provide any stacktrace information)
- Node Version: 6.9.5
- SafariDriver: 2.48
- Protractor Version: 5.0.0
- Browser(s): 10.0.3
- Operating System and Version: Mac 10.12.3
Turn off block pop-ups and work well :)