How different/ similar are Protractor and Selenium? Which is better?

0 votes
I'm currently working on a website developed on AngularJS. We started testing with Selenium WebDriver and the scripts works well. But I was told to use protractor instead of Selenium. Both are pretty similar in functioning but the ONLY difference I found is that, I don't need to use explicit wait to load the webpage. Are there any other differences or advantages or disadvantages i should be aware of?
Apr 2, 2018 in Selenium by nitinrawat895
• 9,310 points
933 views

2 answers to this question.

Your answer

Your name to display (optional):
Privacy: Your email address will only be used for sending these notifications.
0 votes

Okay, so let me talk about the pros and cons of clear out the selenium vs protractor topic here:

SELENIUM

  • Works great even if you are testing an Angular JS website, you only have to deal with page synchronization issues. 
  • Selenium supports automation very well. It has been in the market for quite sometime & it has evolved over the years, and its API is also stable.
  • Selenium is also the defacto tool in the open source market for browser automation.
  • You can write the selenium code in 6 popular proogramming languages.

PROTRACTOR

  • It is basically an automation testing tool for angular based web pages. But, when you look at its core, it's a wrapper for Webdriver JS. Hence it does not uncover any new vertical in browser automation.
  • Yes, it has certain advantages in case of angular specific locator strategy. It provides more options to work with Angular directives (i.e angular specific locator strategy).
  • It is available only for JavaScript. So to work with it, you must know JavaScript.
  • This is a WebdriverJS, which is new in the market & depends completely on your project requirement and team's skills to use this tool.

Its not right to judge which of them is better at this point atleast. 

answered Apr 2, 2018 by nsv999
• 5,050 points
0 votes

Protractor and Selenium both are used to automate front end of web based applications. Generally most of the people are well aware of Selenium ( Java and Python bindings) and afraid of choosing any other tool on top of Selenium. I will compare Selenium and Protractor in this post, which will help you to decide which tool is best suited for your requirement.

Official website of Selenium says that:- Selenium automates browser. It does not specify any specific technology based web applications. Selenium can be used to automate any technology based application which needs a browser.

Official website of Protractor says that:- Protractor is an end-to-end test framework for Angular and AngularJS applications. Protractor is designed specially for automating Angular applications. Although Protractor can be used for any non-angular application as well but the beauty of Protractor for Angular application will be missed.

For detailed comparison, refer Protractor vs Selenium

answered Jun 9 by Amod Mahajan

Related Questions In Selenium

0 votes
1 answer

How driver.close() and driver.quit() commands are different from each other in Selenium?

Hello Pallavi, Selenium WebDriver’s close() command closes the ...READ MORE

answered May 7 in Selenium by Anvi
• 7,160 points
22 views
0 votes
1 answer

Which is better CSS or Xpath? Considering performance and cross browser testing

According to css has better performance compared ...READ MORE

answered Apr 17, 2018 in Selenium by Shubham
• 12,710 points
196 views
0 votes
1 answer

Between By.XPath and By.ID, which is the better for locating elements?

Technically speaking, By.ID() is the faster technique ...READ MORE

answered May 29, 2018 in Selenium by sniffy_god
• 760 points
687 views
0 votes
1 answer
0 votes
1 answer

Finding WebDriver element with Class Name in java

The better way to handle this element ...READ MORE

answered Apr 10, 2018 in Selenium by nsv999
• 5,050 points
131 views
0 votes
1 answer
0 votes
1 answer

Geo-location microphone camera pop up

To Allow or Block the notification, access using Selenium and you have to ...READ MORE

answered May 11, 2018 in Selenium by Samarpit
• 5,130 points
519 views
0 votes
1 answer

How to use such xpath to find web elements

It's much simpler to use: #MyDiv123 > div.super or ...READ MORE

answered Jun 14, 2018 in Selenium by Samarpit
• 5,130 points
119 views
0 votes
1 answer
0 votes
1 answer

Python & Selenium: How to find and click on YouTube's Like button

Use the CSS Selector button to like: #watch8-sentiment-actions ...READ MORE

answered Mar 26, 2018 in Selenium by nsv999
• 5,050 points
460 views

© 2018 Brain4ce Education Solutions Pvt. Ltd. All rights Reserved.
"PMP®","PMI®", "PMI-ACP®" and "PMBOK®" are registered marks of the Project Management Institute, Inc. MongoDB®, Mongo and the leaf logo are the registered trademarks of MongoDB, Inc.