ich habe in meinen Tests die folgenden verwenden. Sie müssen den Fokus explizit auf das Popup-Fenster in Ihrem Skript ändern.
.window_handles(function(result) { // Since two windows are open we need to get the window ids
var temp = result.value[1]; //
this.switchWindow(temp); // and switch focus to the new window so that the next command is run against it
}) //
Fokus wieder auf die ursprünglichen Fenster wechseln Sie die folgende
.window_handles(function(result) { // Since two windows are open we need to get the window ids
var temp = result.value[0]; //
this.switchWindow(temp); // and switch focus to the new window so that the next command is run against it
}) //
verwenden können