title: How to access Firefox Extension I added in Selenium Webdriver?
body: <p>I know that you can load up either an existing Firefox profile, or create one using Ruby Bindings in the selenium-webdriver gem, as described here:</p>
  
  <p><a href="http://code.google.com/p/selenium/wiki/RubyBindings" rel="noreferrer">http://code.google.com/p/selenium/wiki/RubyBindings</a></p>
  
  <p>And then use <code>add_extension</code> to add any number of Firefox extensions to the instance, but then what? The window for the extension I'm using does not appear during the test. How do I use the extension?</p>
  
  <p>Is there a way to have the extension be open by default when the driver opens Firefox?</p>
  
  <p>Here is the code I'm using:</p>
  
  <pre><code>#!/usr/bin/env ruby
  require "rubygems"
  require "selenium-webdriver"
  
  default_profile = Selenium::WebDriver::Firefox::Profile.from_name "default"
  default_profile.add_extension("/Users/******/Library/Application Support/Firef\
  ox/Profiles/wvon3h99.default/extensions/{9c51bd27-6ed8-4000-a2bf-36cb95c0c947}.\
  xpi")
  
  driver = Selenium::WebDriver.for(:firefox, :profile =&gt; default_profile)
  driver.navigate.to "http://google.com"
  
  element = driver.find_element(:name, 'q')
  element.send_keys "Hello WebDriver!"
  element.submit
  
  puts driver.title
  
  driver.quit
  </code></pre>