Tuesday 18 July 2017

Protractor : How to use JAVA programming language for protractor

Hi All,

Hope you are doing good.

As you are aware we have to use NodeJS in writing code for protractor to automate angular JS application.

In this post i would like to give you an idea how can we write protractor code using java programming language.

We need a jar file which supports Protractor methods and we need to add that jar file to our eclipse editor which is JProtractor.

Please find the below steps to create JProtractor jar file:


  • ·         Download the code from this location as shown below: https://github.com/sergueik/jProtractor



  • ·         Unzip the downloaded folder
  • ·         Open the command prompt
  • ·         Switch to the folder exactly we have above downloaded zip file
  • ·         Remove the java folder from this location src/test/java
  • ·         mvn clean package
  • ·         it will take sometime to generate jar file
  • ·         You can find the jar file from the below location

·         C:\developer\username\jProtractor\target\jprotractor-1.2-SNAPSHOT.jar


In the next post we are going show an example how to write a program in your eclipse editor

Thanks,
Surendra Jaganadam










No comments:

Post a Comment