Monday, May 8, 2017

Selenium vs Protractor

I started my IT journey started 6-7 years back having lots of hope & fears in mind. Though I was not in favour of IT & my father wanted me to be in administrative line, who used to tell me “Always your base should be strong enough to reconnoitre anything”. Family situation of mine was very bad, which forced me to put my steps in IT world keeping my father’s last words in my mind. Meanwhile I lost him in my early stage of job career & practically experienced how tough it is to lose someone who used to show the right direction.

In beginning stage of 2K the IT industry was matured enough to learn many things. Only thing I needed was proper direction. Started my career with .Net without knowing ABC of it. Still I was not happy & wanted something innovative as well as challenging. Someone suggested me why don’t you explore ‘Automation’, which will give you opportunity to get I touch with many languages (C#, VB Scripting, Java, Python, VBA, Java Scripting & many more). Which led me to start my career in Automation & DevOps world keeping “jack of all but master of none” on mind. Met great people/leaders in my journey, working with innovative people/leaders & hoping to meet many more in future. Fortunately got a chance to work under few great people when I was there in Malaysia who all did lots of great research in companies like Google, Motorola, Nokia, Intel : got to know how differently they do the things & which motivated me a lot. Sometimes got fed up with the internal politics which is obvious in IT, but one of my mentor advised me that “Establish good working relationships across generations, try to learn one best thing from the individuals you meet in your career since everyone is unique & never think about what others say as long as you are learning/grooming yourself”.

Fell in love with Automation & DevOps (Using great tools & languages) world after lots of success/failure R&Ds. Had very good connections whit the people working on same stuff & determined to capture my findings somewhere which will at least give beginning level directions. In Automation journey I found Selenium is the best tool to automate any web based applications. Recently got a chance to explore more on Protractor which is kind of wrapper over selenium to automate the applications developed using angular js. But still I have the last word of my father in my mind “Always your base should be strong enough to reconnoitre anything” since the IT industry is evolving, people gradually started using React.js, Night.js & future we never know !!! But the base is Selenium & will be..Here is my findings on "Selenium vs Protractor".

SELENIUM

· Works great even if its angular js website ,only we have to deal with synchronization issue,if you can handle then no disadvantage.
· Selenium is very reach in automation i.e its in the market for years and very much evolved and its api is almost stable.
· We can work with selenium in almost every popular languages(Java, C#, Python..).
· Matured enough to automate any kind of web application with proper strategy.

PROTRACTOR

· Marketed as angular based automation tool but its core is wrapper over webdriver js. Hence it do not uncovers any new vertical in browser automation.
· Yes it has certain advantage in case of angular specific locator strategy.since it provides more option to work with angualr directives.
· t's only available for only one client (language ) i.e for java script only.so to work with it you must know javascript.
· New in the market & not matured enough.

So I found Selenium is more flexible & matured enough to automate web based applications.