Selecting a WebDriver Type
Example
// Create a FirefoxDriver for this virtual user
initialiseWebDriver(WebDriverType.FireFox);
This will discard the current WebDriver instance and replace it with an instance of FirefoxDriver that can be used to drive an instance of the Firefox browser. We recommend that you call initialiseWebDriver() within the pre() method of your custom Selenium VU, so that each VU in your test creates the correct type of WebDriver at the beginning of the test:
Example
public class MySeleniumVU extends com.facilita.fc.selenium.SeleniumVirtualUser
{
// This method will be executed by each VU at the beginning of the test run
@Override
public void pre() throws Exception
{
//do not remove following line
super.pre();
// Each VU in the test will use a FirefoxDriver
initialiseWebDriver(WebDriverType.FireFox);
}
}