protractor icon indicating copy to clipboard operation
protractor copied to clipboard

Error: The driver is not focused on a window. You must switch to a window before proceeding on Safari

Open tamvo94 opened this issue 9 years ago • 1 comments

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

tamvo94 avatar Mar 20 '17 07:03 tamvo94

Turn off block pop-ups and work well :)

tamvo94 avatar Mar 22 '17 06:03 tamvo94