Follow your passion

If you follow your passion, the money and happiness will follow.

But if you just follow the route to make money, without paying heed to your heart and passion, happiness will get lost somewhere on the way.

That is why it is so important to follow your passion.

Our teachers, parents, and elders are so wary of unconventional jobs that they get scared when their kids try to make a living in a way that is “not normal”.

But, one has to learn that when the children follow their passion, they work hard on it because they are passionate about what they do. This eventually makes them an expert in the field, and experts are always looked up to for guidance. There can always be a way to make a living out of what you love if you are just courageous enough to follow your heart.

Anyone out there who’s followed their passion, instead of the ‘conventional’ jobs their parents wanted them to take up? I would love to hear your story.


(Image source: )


Test Automation – Selenium webdriver with python

This is a long pending post. I had done the installation months back, and then forgotten the steps. I needed to re-install to be able to write down the below steps, and was not getting the time. Now, finally, I have done an installation again, and this time I am noting down the steps.

The below method is very simple. Contrary to what most of the Google search results have you believe, it is not necessary to install easy_install or pip to install the selenium python bindings.

So, first I will just introduce you to Selenium WebDriver (part of Selenium 2). It is a library for automating your test cases across browsers, and it can be used from a variety of language bindings. I prefer Python because I love the language and its no-nonsense format. So, I will be installing the Python language bindings along with the Selenium Framework.

The Selenium webdriver allows you to programmatically drive a browser and interact with web elements. It uses the browser’s native methods instead of javascript injection, and should be preferred over Selenium RC

Now, let us go through the installation steps:

1. Install Python in your machine

– Go to
– Download the latest MSI installer for Python 2.7 (32-bit)
– Run the installer

2. Set your PATH
– Go to your system’s environment variables, and add ‘C:\Python27’ to your PATH

(this will enable you to invoke ‘python.exe’ from any command line)

3. Go to and download the .tar.gz file (the Selenium Python Client Driver)

4. Extract files from the .tar.gz file

5. Go through the extracted files. You will find a selenium-2.xx.x.tar file in the dist folder. (x denotes version number in the file name)

Extract files from this .tar file. Verify that the extracted folder contains a file

6.  Open the cmd Command prompt, and navigate to the location where is located (the folder from step 6):

 >> cd <location of the file for selenium bindings>

7. Enter the following command into the command prompt:

 >> python install

A “selenium” directory gets added in the C:\Python27\Lib folder.

Selenium is now installed in your machine with Python bindings.

The following code should work now:

#!/usr/bin/env python

from selenium import webdriver

browser = webdriver.Firefox()

This should open a Firefox browser session and navigate to

A very useful doc to understand the Selenium Webdriver API for python is It has helped me a lot while creating test scripts.

Following is a simple functional test in Python, using Selenium WebDriver and the unittest framework:

#!/usr/bin/env python

import unittest
from selenium import webdriver

class TestUdacityHomepage(unittest.TestCase):

    def setUp(self):
        self.browser = webdriver.Firefox()

    def testTitle(self):
        browser = self.browser
        title = browser.title
        self.assertIn('Udacity', title)

    def tearDown(self):

if __name__ == '__main__':

Output should be:

Ran 1 test in 15.478s

Exit code:  False