if (locatorType.equals("AjaxElementLocatorFactory")) {
return new AjaxElementLocatorFactory(driver, timeoutInSeconds);
} else if (locatorType.equals("DefaultElementLocatorFactory")) {
return new DefaultElementLocatorFactory(driver);
} else if (locatorType.equals("SmartElementLocatorFactory")){
return new SmartElementLocatorFactory(driver, timeoutInSeconds);
} else {
throw new IllegalArgumentException("Unsupported ElementLocatorFactory implementation: " + locatorType);
}
}