Thursday, 21 April 2016

Getting started with Protractor

Text in Blue [#PYTHON], Rose [#PROTRACTOR], Red [#RUBY] and Orange [#JAVA] can be edited or mentioned important for the entire blog. All the posts are practically done by me.

Getting started with Protractor

1| Create a folder for new project.
2| Open Terminal/cmd_prompt and navigate project location.
3| Download protractor through terminal (make sure you have installed nodejs in your machine before executing the following command)

project-wise installation
npm install protractor

global installation
npm install -g protractor

4| And update the selenium-standalone-server.jar file after protractor installation.

project-wise updation
node_modules/protractor/bin/webdriver-manager update

global updation
webdriver-manager update

This will update the existing selenium server and ChromeDriver under node_modules/protractor/selenium/selenium-server-standalone-2.xx.x.jar

To update the selenium server alone, enter the following command,
webdriver-manager update --standalone

5| Now, create a spec file using Jasmine unit testing framework #sample

6| And create the Protractor configuration file, protractor-conf.js for execution #sample

7| To run the spec file, you need to start selenium-server first,

node_modules/protractor/bin/webdriver-manager start

webdriver-manager start

8| Let's run the first protractor project now,


node_modules/protractor/bin/protractor protractor-conf.js

protractor protractor-conf.js

Note: For more info. download my sample project from Github Link


  1. Thanks for sharing great information in your blog. Got to learn new things from your Blog . It was very nice blog to learn about Selenium

  2. Thanks for the great information in your blog Selenium Training in Chennai

  3. Nice work Keep update.Learn Selenium WebDriver Training
    Selenium Training in Hyderabad

  4. Well explained. Got to learn new things from your Blog on Appium.
    Appium training in chennai

  5. Thanks for sharing great information in your blog. Got to learn new things from your Blog . It was very nice blog to learn about Selenium.selenium training in chennai


  6. Thanks for posting this useful content, Good to know about new things here, Let me share this, . cisco training in pune

  7. Contact us for coded ui training both online and f2f.
    Talk to eight one two two two four one two eight six
    Coded UI Training in Chennai

  8. nice blog too informative. looking and reading your points its so impressive. doing more blog like this. i really appreciated doing like this.
    PTE Coaching in Chennai

  9. Thank you for sharing such a nice and interesting blog with us. I have seen that all will say the same thing repeatedly. But in your blog, I had a chance to get some useful and unique information. I would like to suggest your blog in my dude circle.
    Isoft Innovations Company Address
    Isoft Innovations Adyar
    Isoft Innovations Reviews
    Isoft Innovation Chennai
    Isoft Innovation

  10. It was very nice blog to learn about Selenium.Thanks for sharing new things.selenium training in chennai

  11. This is my first visit to your blog, your post made productive reading, thank you.
    Selenium Training in Chennai

  12. Good blog post which provided a interesting information about protractor.keep updating...
    SEO Companies in India