title: How to initiate a Mozilla Browsing session through FirefoxProfile?
body: <p>I am trying to use Firefox Profiling. But it is throwing an error at below line in the code. Please see attached snapshot </p>
  
  <p>Please, can someone assist?</p>
  
  <p>Code : -</p>
  
  <pre><code>WebDriver driver = new FirefoxDriver(prof);
  </code></pre>
  
  <p><a href="https://i.stack.imgur.com/ikbgA.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/ikbgA.png" alt="enter image description here"></a></p>
  
  <p>Error: --> </p>
  
  <blockquote>
    <p>The constructor FirefoxDriver(FirefoxProfile) is undefined</p>
  </blockquote>
  
  <p>Below versions I am using:-</p>
  
  <ul>
  <li>Selenium--> 3.12.0</li>
  <li>Firefox Setup 50.0</li>
  </ul>
  
  <p>Codes:</p>
  
  <pre><code> import java.util.concurrent.TimeUnit;
   import org.openqa.selenium.WebDriver;
   import org.openqa.selenium.firefox.FirefoxDriver;
   import org.openqa.selenium.firefox.FirefoxProfile;
   import org.openqa.selenium.firefox.internal.ProfilesIni;
   public class Gmail {
  
      public static void main(String[] args) {
         System.setProperty("webdriver.gecko.driver", "D:\\Drivers\\geckodriver.exe");
  
         ProfilesIni allProf = new ProfilesIni();// all profiles
         FirefoxProfile prof = allProf.getProfile("Abhi_Selenium");
  
         WebDriver driver = new FirefoxDriver(prof);
         driver.manage().timeouts().implicitlyWait(10, TimeUnit.SECONDS);
         driver.get("http://gmail.com");
  </code></pre>