title: FirefoxDriver() does not accept ProfilesIni instance as argument
body: <p>I'm following the example on this page to set up a custom profile to use:</p>
  
  <p><a href="http://toolsqa.com/selenium-webdriver/custom-firefox-profile/" rel="nofollow noreferrer">http://toolsqa.com/selenium-webdriver/custom-firefox-profile/</a></p>
  
  <p>However in my code I'm getting "Remove argument to match Firefox driver" error:</p>
  
  <pre><code>    ProfilesIni profile = new ProfilesIni();
  
      FirefoxProfile myprofile = profile.getProfile("testProfile");
  
      WebDriver driver = new FirefoxDriver(myprofile); // does not like myprofile as an argument here
  </code></pre>
  
  <p>Thanks</p>
  
  <p>UPDATE</p>
  
  <p>I was able to resolve this issue by slightly modifying try-catch's solution:</p>
  
  <pre><code>    ProfilesIni profile = new ProfilesIni();
      FirefoxProfile myprofile = profile.getProfile("testProfile"); //added this
  
      FirefoxOptions options = new FirefoxOptions();
      options.setProfile(myprofile);
  </code></pre>