Testing AngularJS with Selenium

后端 未结 12 756
梦毁少年i
梦毁少年i 2020-11-27 04:56

I have a SPA application on stack ASP MVC + AngularJS and I\'d like to test the UI. For now I\'m trying Selenium with PhantomJS and WebKit drivers.

This is a sample

12条回答
  •  暗喜
    暗喜 (楼主)
    2020-11-27 05:36

    Beside eddiec's suggest. If you test an AngularJS app, I strongly suggest you to think about protractor

    Protractor will help you solve the waiting matter (sync, async). However, there are some notes

    1 - You need to develop your test in javascript

    2 - There are some different mechanism in handling flow

提交回复
热议问题