0

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 ?

1
  • Have you tried a search here on SO? See this question. Commented Mar 19, 2012 at 6:45

1 Answer 1

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"
}
Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.