So Let’s try to compare this two with the help of below table
Functionality | Selenium | Protractor |
---|---|---|
Programing language supported | C#, Java, Perl, PHP, Python, and Ruby | JavaScript and TypeScript |
Browser supported | All | All |
Record & Play Option | Yes | No |
Locator Strategies | Support all types of locators for normal web applications. | Along with Selenium additional strategy for locator identification. |
Testing Framework Supported | Junit and TestNG | Jasmine, Chai, Mocha, Karma |
Application Support | Can be used for all type of web-based application | Mainly used for Single Page Application (SPA) |
Support For Parallel Testing | Yes(Support for multiple class file simultaneously) | No (Execute Class file sequentially) |
Support for Non-Angular Applications | Yes | Yes |
Angular/React Js Application Support | Limited Support | Built-in Method to handle such applications |
Support for Remote Testing | Yes | Yes |
Inbuilt Reports | Yes | No |
In nutshell, If we wanted to Test an angular application and have javascript knowledge available with the team its always preferable to use Protractor.
For Non-Angular Application, Selenium would be an obvious choice.
Keep Learning :)
Keep Learning :)
What do you mean by Parallel testing. Testing stories sequencally right ?
ReplyNice to read your article! I am looking forward to sharing your adventures and experiences. prezzi automatismi per cancelli a battente
ReplyPrograming language supported C#, Java, Perl, PHP, Python and Rub JavaScript and TypeScript
ReplyCorrect this line, becoz selenium means with java only remaining have different names, like protractor, webdriverio, selenium bindings.
Keep up the good work