title: Implementing WebdriverBackedSelenium in Python
body: <p>I upgraded to Selenium 2.20 to use Webdriver backed Selenium in Python.  I did this so I could run my tests using Webdriver without having to rewrite all of my test cases.  I attempted to follow the example at <a href="http://seleniumhq.wordpress.com/2012/02/08/announcing-selenium-2-19-the-prancing-unicorn-release/" rel="nofollow">http://seleniumhq.wordpress.com/2012/02/08/announcing-selenium-2-19-the-prancing-unicorn-release/</a> but I found that two of the functions: RemoteWebDriver() and DefaultSelenium() do not exist in my code base.  Instead I used the closest functions I could find: webdriver.Remote() and selenium() respectively.  These two SEEM to have the same functionality, but when I attempt to run the test case I receive the error "KeyError: webdriver.remote.sessionid".</p>
  
  <p>For reference here is the example code:</p>
  
  <pre><code>    driver = RemoteWebDriver(desired_capabilities = DesiredCapabilities.FIREFOX)
      selenium = DefaultSelenium('localhost', 4444', '*webdriver', 'http://www.google.com')
      selenium.start(driver = driver)
  </code></pre>
  
  <p>And here is the code that I'm using:</p>
  
  <pre><code>    self.webdriver = webdriver.Remote(desired_capabilities=DesiredCapabilities.FIREFOX)
      self.selenium = selenium('localhost', 4444, '*webdriver', SITE)
      self.selenium.start(driver = self.webdriver)
  </code></pre>
  
  <p>Note: I pass self in between modules, ignore it.  Also, SITE is a global variable that holds the url to my test site.  Ignore it as well.</p>
  
  <p>Please let me know if anything needs to be clarified.  </p>