I am fairly new to Protractor. I am trying to automate a scenario where I click on a button and its opens up a page in new tab and then we need to populate form in new page and
There is another more convenient way. Just make use of the functions on the browser object.
browser
element(by.id("newPlan")).click(); browser.sleep(10000); browser.waitForAngular(); expect(browser.getCurrentUrl()).toMatch(/\/url/)