I have a test case and need to execute based on the browser name i.e. IE or Chrome. In this test case some part will depend on browser type.
How will I get the brows
In Python, you may access the driver.capabilities dict like this
driver.capabilities
driver.capabilities['browserName']
https://groups.google.com/forum/#!topic/selenium-users/nbSujBSc6q8