Class Firefox

java.lang.Object
fi.evolver.script.app.Firefox

public class Firefox extends Object
  • Constructor Details

    • Firefox

      public Firefox()
  • Method Details

    • installOfficial

      public static void installOfficial()
    • addDefaultExtensions

      public static void addDefaultExtensions(Path firefoxInstallDir, List<Firefox.Extension> extensions)
      Downloads and a Firefox extension and adds it to the system autoinstall directory. This will install the extension automatically to new profiles.
      Parameters:
      firefoxInstallDir - the directory of the system Firefox installation
    • installBookmarks

      public static void installBookmarks(Path bookmarksSourcePath) throws IOException
      Installs bookmarks from an existing file to the default Firefox profile. The source file should be in Firefox bookmark format (JSON or HTML).
      Parameters:
      bookmarksSourcePath - the path to the bookmarks file to install
      Throws:
      IOException - if there's an error copying the bookmarks file