I am new to selenium testing. I want to run selenium test cases
on multiple browsers against internet explorer, Firefox, opera and chrome. What approach i have to follow. Can you people please suggest me which is the best process.
Does selenium web driver supports multiple browsers or not???
We had written login script. It runs successful for Firefox, chrome and internet explorer individually. But i want to run it for those multiple browsers sequentially.
You could use the WebDriver Extensions framework's JUnitRunner
Here is an example test googling for "Hello World"
just make sure to add the WebDriver Extensions framework amongst your maven pom.xml dependencies
The drivers can be downloaded using the provided maven plugin. Simply add
to your pom.xml. Or if you prefer downloading them manually just annotate the test class with the
annotation pointing at the drivers.
Note that the above example uses static methods from the WebDriver Extensions Bot class to make the test more readable. However you are not tied to using them. The above test rewritten in pure Selenium WebDriver would look like this
Before that we have to install the chrome and internet explorer drivers .exe files and run those.
web driver supports multiple browsers of course, there is also support for mobile
ChromeDriver
IEDiver
FirefoxDriver
OperaDriver
AndroidDriver
Here is an exemple to run the same tests in multiple browsers.
Hope that helps.