How to get browser name using Selenium WebDriver with Java?
<p>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.</p>

<p>How will I get the browser name in between the execution? Example if it is IE, I need to pass the data. If it is Chrome browser, I need to select the data.   </p>