code: public void resetOperaPrefs(String newPrefs) {
      // Always delete and copy over a test profile except for when running
      // the first test which doesn't have a profile to copy over
      if (!firstTestRun || new File(newPrefs).exists()) {
        if (!profileUtils.isMainProfile(smallPreferencesPath) &&
            !profileUtils.isMainProfile(largePreferencesPath) &&
            !profileUtils.isMainProfile(cachePreferencesPath)) {
          // Quit and wait for opera to quit properly
          quitOpera();
  
          // Due to problems with quitting the Opera desktop application on Windows we introduce this
          // workaround.  This should be fixed in some other way that would allow us to determine in a
          // reliable way if Opera quit already.
          if (Platform.getCurrent().is(Platform.WINDOWS)) {
            try {
              Thread.sleep(2000);
            } catch (InterruptedException e) {
              // fall through
            }
          }
  
          // Cleanup old profile
          if (!profileUtils.deleteProfile()) {
            logger.severe("Could not delete profile");
          }
  
          // Copy the profile for the test. This method will return false in case the copying fails or
          // if there is no profile to be copied, so we should check that first here.
          if (!new File(newPrefs).exists()) {
            logger.finer("The '" + newPrefs + "' directory doesn't exist, omitting profile copying.");
          } else if (!profileUtils.copyProfile(newPrefs)) {
            logger.severe("Failed to copy profile from '" + newPrefs);
          } else {
            logger.finer("Profile from '" + newPrefs + "' copied OK");
          }
  
          // Relaunch Opera and the webdriver service connection
          startOpera();
        } else {
          logger.warning("Running tests in main user profile");
        }
      }
  
      // No longer the first test run
      firstTestRun = false;
    }
docs: meaning operaBinaryLocation will be set already