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,030 points
826 views

1 answer 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,030 points

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
• 5,880 points
17 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,150 points
165 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
524 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,030 points
60 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
432 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
49 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,030 points
430 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.