Пример #1
0
 /**
  * Configure the custom Firefox profiledirectory on the webdriver factory.
  *
  * @param directory
  */
 public void loadFirefoxProfileFromDirectory(String directory) {
   defaultWebDriverSupplier.setCustomProfilePreferencesFile(new File(directory));
 }
Пример #2
0
 /**
  * Configure the custom Firefox preferences (javascript) file on the webdriver factory.
  *
  * @param filename
  */
 public void loadCustomBrowserPreferencesFromFile(String filename) {
   defaultWebDriverSupplier.setCustomProfilePreferencesFile(new File(filename));
 }