browser.windowHandles(function(result) {
var originalWindowHandle = result.value[0];
var popUpWindowHandle = result.value[1];
browser.switchWindow(popUpWindowHandle)
//Do things with your popup
browser.switchWindow(originalWindowHandle);
});
This is not working for nightwatch in macOS(chrome browser), not checked in window machine though :(
On Monday, April 24, 2017 at 6:38:10 PM UTC+5:30, Bill Kowal wrote:
--
You received this message because you are subscribed to a topic in the Google Groups "NightwatchJs" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/nightwatchjs/ZsxwaJdT7u0/unsubscribe.
To unsubscribe from this group and all its topics, send an email to nightwatchjs...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/nightwatchjs/57f05a0f-36dc-4616-883f-876c5e83f476%40googlegroups.com.