How can i start my session in other browser rather than firefox in Selenium WebDriver?
I am new to selenium webdriver and by default when i run a script it is opening a session in Firefox. now i want to open this session in other browsers like Google Chrome, IE. How can i open this sessions? Thanks Kamlesh
To create an instance of a browser when running WebDriver test you need to create a driver specific to that browser. Firefox works by default, but to work with other browsers such as chrome you may have to download the driver separately. https://code.google.com/p/selenium/wiki/ChromeDriver This website will give you information on how to install the chrome driver and how to get it running. You will need to have chrome installed on your test machine as well. Other drivers for other browsers can be installed in the same manner. You can download them from the links given below, https://code.google.com/p/selenium/wiki/SafariDriver https://code.google.com/p/selenium/wiki/OperaDriver