I AM A .NET Developer. Visual Studio is the trench that I dig every day. AngularJS is the primary weapon that I use in the frontend. I want to have Protractor as my first aid kit which doesn’t play nicely without Node.js. But it’s all right, I can tame it!
Update: you might be interested in this sample project to dig in quickly. It contains a tiny AngularJS app and a few test cases.
Let’s shave the yak
- Install Node.js
- Install Node.js Tools for Visual Studio
- Install Web Essentials if you want some sugar for your cups of coffee
- Configure JDK
- Create a Node.js Console Application and install Protractor
npm install protractor --save-dev
Do you know that Node.js Project is actually a Node.js flavoured ASP.NET project?
Update selenium standalone server
Start selenium standalone server
Run test specs
node_modules\protractor\lib\cli.jsinto project and Set it as Node.js Startup File
- In project properties, configure
taskkill /f /t /im chromedriver.exe
Sometimes you are stuck while debugging because previous chromedriver session was not terminated properly. Use this to kill all chromdrivers that lurks around.