I am currently using seleninium-webdriver for browser automation. It launches firefox by default. How do i specify the browser and os combination to be used. is it through the Selenium::WebDriver::Remote::Capabilities class , or should i use the appropriate driver for each case as in Selenium::WebDriver::Chrome for chrome ?
Asked
Active
Viewed 707 times
0
-
Have you tried a search here on SO? See [this question](http://stackoverflow.com/questions/213430/selenium-rc-run-tests-in-multiple-browsers-automatically). – rdvdijk Mar 19 '12 at 06:45
1 Answers
1
you can choose, either with Selenium::WebDriver::Remote::Capabilities.[browser] or by just specifying a hash with the browser/os/version you want:
capabilities = {
:browserName => "firefox",
:platform => "Windows"
}

Jochen
- 1,853
- 3
- 20
- 28