title: Watir with Firefox 48 - How do I use a custom profile?
body: <p>I can't seem to find anything about this, and I'm starting to get upset, because this code used to work:
  <code>browser = Watir::Browser.new :firefox, :profile =&gt; "Anna"</code></p>
  
  <p>However, now that code, while it will launch firefox successfully if I use <code>:marionette =&gt; true</code>, if I use <code>:profile =&gt; "Anna"</code> or even if I do this:</p>
  
  <pre><code>caps = Selenium::WebDriver::Remote::Capabilities.firefox({:profile =&gt; profile,:marionette=&gt; true})
  browser = Watir::Browser.new :firefox, :desired_capabilities =&gt; caps
  </code></pre>
  
  <p>Watir will still launch firefox and work properly, but it is still using its own profile. I have custom x509 certificates I need to use in that profile (and the site is throwing "This site is not secure" screens at me because it's still in development), so how can I use it? I know there's a way to do it, but I've been Googling for an hour now and have yet to find it. Removing <code>:marionette =&gt; true</code> will let the profile load properly, but since Firefox 48 doesn't support the old Firefox driver, I can't make it work.</p>