Use of Selenium for AngularJS based Web Applications

前端 未结 2 823
悲哀的现实
悲哀的现实 2021-02-09 23:17

I have come to know that Selenium is the father of UI testing.

Now my question is why then Angular team has developed Protractor. Can\'t the same job (that Protractor d

2条回答
  •  一向
    一向 (楼主)
    2021-02-09 23:59

    Protractor also provides you to wait for scope changes using protractor.waitForAngular() which I think may or may not be implemented using Selenium. You'll still have to bang around your head in order simulate the same feature using selenium.

    My opinion

    If you just want to do UI testing and not interested in listening for scope changes or any angular specific events, you can go ahead with selenium. But it's a HUGE advantage using Protractor for e2e tests for Angular.

提交回复
热议问题