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

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"
}

Your Answer

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

Not the answer you're looking for? Browse other questions tagged or ask your own question.