* org.jboss.arquillian.selenium.spi.Instantiator#createInstance(java.lang
* .Object)
*/
public AjaxSelenium createInstance(ArquillianAjocadoConfiguration configuration)
{
AjaxSelenium selenium = new AjaxSeleniumImpl(configuration.getSeleniumHost(), configuration.getSeleniumPort(), configuration.getBrowser(), configuration.getContextRoot());
AjaxSeleniumContext.set(selenium);
selenium.enableNetworkTrafficCapturing(configuration.isSeleniumNetworkTrafficEnabled());
selenium.start();
loadCustomLocationStrategies(selenium);
initializeExtensions(selenium);
selenium.setSpeed(configuration.getSeleniumSpeed());
if (configuration.isSeleniumMaximize())
{
selenium.windowFocus();
selenium.windowMaximize();
}
return selenium;
}