private static void loadInternetExplorerDriverPath(String path) { PropertyUtils.setPropertyIfNotExists( IE_DRIVER_PROPERTY_NAME, System.getProperty( INTERNET_EXPLORER_DRIVER_PROPERTY_NAME)); // Alternative property name that follows // naming convention PropertyUtils.setPropertyIfNotExists(IE_DRIVER_PROPERTY_NAME, path); PropertyUtils.setPropertyIfNotExists( IE_DRIVER_PROPERTY_NAME, getInternetExplorerDriverDefaultPath()); }
private static void makeSureDriversAreExecutable() { FileUtils.makeExecutable(System.getProperty(CHROME_DRIVER_PROPERTY_NAME)); FileUtils.makeExecutable(System.getProperty(IE_DRIVER_PROPERTY_NAME)); }