I am trying to get the second tab in my window browser by using below code but it is not working for me. Can any one suggest me easy way.
browser.getAllWindowHandles().then(function (handles) {
//Code for switchTo one Tab to another Tab in Same Browser
browser.switchTo().window('http://localhost:4200/home-unauth');
});