TestProject Forum
Powered by leading experts in the test automation community

Switch window not working with nightwatch

I tried switching window focus with nightwatch but for some reason the window is not switching to the next one

client
  .click(popup-btn')
  .pause(1000)
  .switchWindow('id')

Try throwing in a longer pause if the error persists.