SHARE
TWEET

Run script directly in 2 various browsers

a guest Feb 27th, 2012 29 Never
  1. @ie_driver = Selenium::SeleniumDriver.new(rc_host, port, "*iexplore", url, 1000)
  2. @ie_driver.start
  3. @ie_driver.whatever //Test code
  4. @ff_driver = Selenium::SeleniumDriver.new(rc_host, port, "*firefox", url, 1000)
  5. @ff_driver.start  
  6. @ff_driver.whatever //Test code
  7. @ff_driver.stop
  8. @ie_driver.whatever //Continue test code with IE
  9. @ie_driver.stop
RAW Paste Data
Top