/**
  * Configure the custom Firefox profiledirectory on the webdriver factory.
  *
  * @param directory
  */
 public void loadFirefoxProfileFromDirectory(String directory) {
   defaultWebDriverSupplier.setCustomProfilePreferencesFile(new File(directory));
 }
 /**
  * Configure the custom Firefox preferences (javascript) file on the webdriver factory.
  *
  * @param filename
  */
 public void loadCustomBrowserPreferencesFromFile(String filename) {
   defaultWebDriverSupplier.setCustomProfilePreferencesFile(new File(filename));
 }