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
• 11,380 points
3,882 views

2 answers to this question.

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,500 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, 2019 by Amod Mahajan
Hi Amod, can you also demonstrate some example to make your comparison more clear?

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, 2019 in Selenium by Anvi
• 14,150 points
2,012 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
• 13,490 points
2,252 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 30, 2018 in Selenium by sniffy_god
• 780 points
12,544 views
0 votes
1 answer
0 votes
2 answers

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,500 points
13,420 views
0 votes
2 answers

Problem while using InternetExplorerDriver in Selenium WebDriver

enable trusted connection  in internet explorer by ...READ MORE

answered Aug 31, 2020 in Selenium by Sri
• 3,190 points
8,995 views
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,910 points
7,101 views
0 votes
2 answers

How to use such xpath to find web elements

xpath are two types. 1) Absolute XPath:    /html/b ...READ MORE

answered Sep 3, 2020 in Selenium by Sri
• 3,190 points
7,800 views
0 votes
1 answer

How are 'Selenium-server-standalone.jar' and 'Selenium Client & WebDriver' different from each other?

Okay, your understanding of "Selenium Server" & ...READ MORE

answered Apr 6, 2018 in Selenium by nsv999
• 5,500 points
2,836 views
0 votes
2 answers

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

Hello Nitin, as the Like button on ...READ MORE

answered Aug 23, 2019 in Selenium by Abha
• 28,140 points
5,300 views
webinar REGISTER FOR FREE WEBINAR X
REGISTER NOW
webinar_success Thank you for registering Join Edureka Meetup community for 100+ Free Webinars each month JOIN MEETUP GROUP