Protractor Button Click and open page in new tab

后端 未结 5 815
我在风中等你
我在风中等你 2021-02-08 02:21

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

5条回答
  •  Happy的楠姐
    2021-02-08 02:53

    "Making sure that the new page is also an AngularJS page" doesn't make too much sense to me, if I'm honest :)

    The test should be valid regardless of the type of the page/app the browser redirects to, shouldn't it?

    If you are facing issues with accessing new tab URL on the non-angular page, try

    browser.driver.getCurrentUrl();
    

    instead of

    browser.getCurrentUrl();
    

提交回复
热议问题