Skip to content

Make Selenium Easy

And Keep It That Way

  • Home
  • Share
  • Toggle search form

PROTRACTOR TUTORIAL 2– Identify Angular and Non-angular Application

Posted on 03/21/2025 By admin

As per Protractor Official Document:- Protractor is an end-to-end test framework for Angular and AngularJS applications. Protractor runs tests against your application running in a real browser, interacting with it as a user would.

So before selecting Protractor as front end automation tool, you must need to find if your application is an Angular application or not.

If is also possible to automate a non-angular application using Protractor but you can not use built in super features of Protractor like automatic waiting. We will see that later.

There are two best ways to identify an angular application:-

  1. By running specific commands in console of browser.
  2. By using a chrome/firefox extension called Wappalyzer.

Steps:-

  1. Launch desired application in a browser.
  2. Navigate to console in developer tool.
  3. Type “getAllAngularRootElements()[0].attributes[“ng-version”] ” and hit enter. If your application is an Angular application, it will give you angular version used in building application.

Mobikwik:-

But the problem with above command is that , it will work only for Angular application not for AngularJS application. For AngularJS application, you need to use “window.angular.version” command. For example:- Upwork is an AngularJS application. You can try both commands and see the difference.

So, you should run both the commands and try. If your application is non-angular you will get “Uncaught ReferenceError” as shown above.

Wappalyzer is a cross-platform utility that uncovers the technologies used on websites. 

According to me, it is best chrome/firefox extension to find if an application is Angular/AngularJs. It can identify both Angular and AngularJS applications. You need to install it as a plugin in chrome or firefox from here or you can directly search and install in browse. For example:- In chrome, navigate to “chrome://extensions/ ” and search for Wappalyzer. I will not explain step by step process of installing an extension in browser here. Kindly Google it.

After installation, you need to restart (If required). You will see an icon at top right side. It will dark greyed until any URL is loaded in tab.

Now launch Mobikwik URL, and observe the above icon.

Click on icon now, you will see below screen:-

You can see “Angular” under JavaScript Framework.

Note:- You will notice that icon will not be changed to “Angular” for AngularJS application. It will generally changes for only Angular applications. It is always good to click on icon and see.

For example:- Hit Super calculat URL as :-

http://juliemr.github.io/protractor-demo/

It is an AngularJs application and Wappalyzer icon is not changed to Angular. So click on icon and see in details.

Hope you are clear. Let me know in comments if any doubt.

More on Protractor in upcoming posts. Stay tuned and keep learning with me.

#ThanksForReading

Uncategorized

Post navigation

Previous Post: TestNG Tutorials 23: @Test Annotation – Don’t Confuse TestNG With Duplicate Priorities
Next Post: TestNG Tutorials 50: DataProvider in TestNG – Understand Basics of DataProvider & How It Works

Related Posts

Interview Experience at Capgemini Bangalore for Selenium Java Profile ( Aug – 2019) Uncategorized
how to install testng plugin in eclipse Uncategorized
stream() in selenium Uncategorized
May 12, 2018 – Make Selenium Easy Uncategorized
Postman Tutorial Part 7 – Difference Between ‘Accept’ and ‘Content-Type’ HTTP Headers Uncategorized
What will happen if we pass NULL as argument in sendKeys() method Of Selenium WebDriver | Make Selenium Easy Uncategorized

Recent Posts

  • Getting Started with Selenium 4: What Is New and How to Upgrade from Selenium 3
  • Manual Testing
  • Baby Steps To Become Efficient Selenium-Java Automation Tester
  • Features of Selenium 4.0.0 Release – Java Binding
  • Part 1: Handling Drop-down Created Using SELECT Tag In Selenium

Recent Comments

No comments to show.

Archives

  • April 2026
  • April 2025
  • March 2025
  • February 2025
  • January 2025
  • December 2024
  • November 2024
  • October 2024
  • September 2024
  • August 2024
  • April 2024
  • March 2024
  • February 2024
  • December 2023
  • October 2023
  • August 2023
  • November 2022
  • September 2022
  • August 2022
  • July 2022
  • May 2022
  • March 2022
  • October 2021
  • April 2021
  • March 2021
  • January 2021
  • December 2020
  • October 2020
  • September 2020
  • August 2020
  • June 2020
  • May 2020
  • April 2020
  • March 2020
  • February 2020
  • January 2020
  • December 2019
  • November 2019
  • October 2019
  • September 2019
  • August 2019
  • May 2019
  • December 2018
  • November 2018
  • October 2018
  • September 2018
  • August 2018
  • July 2018
  • January 2018

Categories

  • Getting Started
  • Uncategorized

Copyright © 2026 Make Selenium Easy.

Powered by PressBook Masonry Dark