Blog

Protractor : How to use JAVA programming language for protractor

Uncategorized

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:

 
desktop 2
  • ·         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
error: Content is protected !!