I am using Selenium WebDriver with Java & TestNG framework. I want to use Firefox, IE, Chrome in one single code at a time for doing cross-browser testing. I can only in
For Ruby you can do the following if you want to run your single code in all three browsers one after the other:
def all_browsers browsers = [:firefox,:ie,:chrome].each do |br| $driver = Selenium::WebDriver.for br $driver.manage.window.maximize $driver.navigate.to("http://google.com") end