title: How can I set a default profile for the Firefox driver in Selenium Webdriver 3?
body: <p>I can't set a default profile for Firefox in Selenium Webdriver 3 because there is no such constructor in the <code>FirefoxDriver</code> class.</p>
  
  <pre><code>import org.openqa.selenium.WebDriver;
  import org.openqa.selenium.firefox.FirefoxDriver;
  import org.openqa.selenium.firefox.FirefoxProfile;
  import org.openqa.selenium.firefox.ProfilesIni;
  import org.testng.annotations.BeforeMethod;
  import org.testng.annotations.Test;
  
  public class SeleniumStartTest {
      @Test
      public void seleniumFirefox() {
          System.setProperty("webdriver.gecko.driver", "C:\\Users\\FirefoxDriver\\geckodriver.exe");
          ProfilesIni profileIni = new ProfilesIni();
          FirefoxProfile profile = profileIni.getProfile("default");
          WebDriver driver = new FirefoxDriver(profile);
          driver.get("http://www.google.com");
      }
  }
  </code></pre>
  
  <p>Compile error in Java code:
  <a href="https://i.stack.imgur.com/E3DMF.jpg" rel="noreferrer">Java Code</a></p>
  
  <p>Maven <code>pom.xml</code> dependencies:
  <a href="https://i.stack.imgur.com/vYrw4.jpg" rel="noreferrer">Selenium 3.14.0</a></p>
  
  <p>Firefox version:
  <a href="https://i.stack.imgur.com/cdWld.jpg" rel="noreferrer">Firefox version 62.0.2</a></p>