Please post your Web Driver questions in official Web Driver forum

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 on 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!

    Sunday, July 23, 2017

    Do you check for absence of element on page

    When writing automated tests we often check presence or absence of element for assertion conditions. This is usually written as - 

    assertTrue("Element is missing. Bug!!!", pageObject.isSomeElementDisplayed());

    And when element is not displayed then above mentioned assert statement fails.

    In the similar manner we can write following assert statement to check for absence of element - 

    assertFalse("Element is present. Bug!!!", pageObject.isSomeElementDisplayed());

    Above mentioned assert statement would fail if element is displayed on page.

    Everything looks ok, is not it. Not really, there is catch. Let's have a closer look at assertFalse statement we used above - 


    assertFalse("Element is present. Bug!!!", pageObject.isSomeElementDisplayed());

    This assert statement would also succeed even if webpage results in 404/500 or any other error page, since error page would also be missing the element on which we are performing assert.

    So what is the solution? My recommendation is to not use check for absence of element but presence of element for assertion. What do you think of this approach?
    Fork me on GitHub