I am attempting to retrieve a URL and open it in 3 new tabs, but encountering errors in the process:
browser.getCurrentUrl().then(url => {
browser.actions().keyDown(protractor.Key.CONTROL).sendKeys('t').perform();
browser.sleep(2000);
browser.getAllWindowHandles().then(function (handles) {
browser.switchTo().window(handles[ 1 ]); // 0 or 1 to switch between the 2 open windows // //
browser.get(url)
});
});
Error:
Failed: null value in entry: name=null