Failed: null value in entry: name=null error while switching Popup window
问题 I am trying to switch popup window of my AngularJS application. Following is my code: browser.ignoreSynchronization = true; browser.getAllWindowHandles().then(function (handles) { browser.switchTo().window(handles[1]); }); Getting following error: Failed: null value in entry: name=null Stack: UnknownError: null value in entry: name=null 回答1: You might be trying to switch to a new tab before it is actually opened - wait for the window handles count to be more than a desired count with a custom