Please post your Web Driver questions in official Web Driver forum

Wednesday, January 2, 2013

Set up driver in Selenium Tests Fraemwork

If you don't want to use driver object provided by Selenium Tests Framework or want to use a new driver then you can instruct Selenium Tests Framework to use your own version of driver.

Set up your own driver object, i.e. -


       AndroidDriver driver = new AndroidDriver();

Instruct STF to use your own version of driver, i.e. -

       WebUIDriver.setWebDriver(driver);


And you can continue to use all the features of Selenium Tests Framework like - step by step reporting, rerunning failed tests etc, it is just that you are using your own version of driver and not the one provided by Selenium Tests Framework :)


Fork me on GitHub