Please post your Web Driver questions in official Web Driver forum

Thursday, November 28, 2019

Cypress (yet another) Selenium WebDriver killer

There is no perfect tool, there are tools which satisfy specific requirements and Cypress is one such tool. I have not used Cypress and my assessment on this post is limited to information I have gathered reading about Cypress. Cypress appeared to me Selenium Remote Control (aka Selenium 1) repackaged with Chrome browser at it target. Cypress target audience is different than of Selenium's, let's see what requirements they cater to.

Cypress target audience seems to be front-end developer. Its power lies in being able to test front end without having real back end or a mocked backend. Selenium's power lies in its integration capability with various other tools and APIs. Imagine testing on staging system which requires java based API to be invoked to create customer account following which using WebDriver to login to frontend and creating a transaction following which data base assertion to verify transaction attributes. Not all of these operations can be carried out using selenium however Selenium's vast support of languages makes all of these operations possible in selenium bases test suite.

Cypress focus area is Chrome. Given that we are past IE7 era, running tests on Chrome (or FF or modern IE) means that most of the time having a feature work on one browser would most likely mean that it works on other browsers too. Selenium's Support of multi-browser has also resulted in Bane. In theory Selenium tests are written once and run on any browser in practice Selenium tests are written once and debugged on any browser. The question we need to ask ourselves is that do we really want to run tests on gazillion of browsers.

What Cypress does not get right. Automation tool should be non intrusive in nature that is it should not change state of application to be able to work with it. You want to test the same application what your customers use and not a modified version of it. Unlike Selenium which uses browser automation APIs to carryout operation on browser, Cypress injects a js file to be able to execute test code. This intrusive nature of tool goes against principles of software testing.

Cypress solves very specific problem set in area of test automation although these problems can also be addressed by Selenium. In the end it is up to us which tool set we want to use to cater our requirements.


Sunday, December 30, 2018

Germany vs India (a skewed view)

Having spent 4 years in Germany I thought of jotting down some of the differences I have seen in Germany and India - 



  • You don't owe an explanation to any one in Germany, but in India - Why are you not married, if Married, then why you don't have kids, if you have kids then when are they getting married etc etc

  • In India, one does not need an appointment to have dinner with one's parents

  • Everybody known everybody in India and here in Germany I don't know my neighbours. I am sure they also don't know each other personally :)

  • Germany is a punctual country and I admire that

  • No loud speaker chanting about god(s) in Germany. What a piece of mind

  • Unlike India, not every one wants to be an IT Engineer in Germany

  • Sports are valued as much as education in Germany

  • German politicians don't shout at each other in parliament, at least this is what I have seen on Tagesschau

  • Red means you stop at traffic signal in Germany. Simple, is not it?

  • There is hardly ever any news about India in Germany and about Germany in India

  • You can call Cops in Germany if your neighbour did not clean his/her dog's sh**

  • It is ok to enjoy a sunny day with skinny dipping in Germany. And in land of Kamasutra :-/

  • There is nothing for which you can not get an insurance in Germany

  • You can call any one Hitler jokingly in India, good luck with such joke in Germany

  • I have been told Berlin is not Germany and Bangalore is not India though I would like to believe that rest of Germany is like Berlin and rest of India is like Bangalore

  • These were some of my experiences. Do you also have something (funny) to share about a country you are in vs India?

    Sunday, July 1, 2018

    I have been offered a Ferrari

    Not for real :) I had a fun conversation with a recruiter on LinkedIn and jotting it down here. I have masked/removed the sensitive data -


    Hi Tarun, I lead the Tech division in XYZ - I'm pretty active in the XYZ tech scene so I wanted to introduce myself. Out of curiosity, how are things going in XYZ? Could a new job get your attention somehow...? (For example, a free Ferrari) I can't promise a new Ferrari (maybe a Porsche?) but I would like to know what will grab your attention (such as more responsibility or a salary increase). Then, I can keep your goals in mind and tell you about relevant opportunities. How does that sound? If now isn't the right time to move that's also okay. I'd still like to chat to you so that when you are ready, we've already gotten the introductions out of the way. :) Look forward to hearing from you!
    Fork me on GitHub