title: Automating Selenium tests in Python
body: <p>I have a Django project for which I'm trying to write browser interaction tests with Selenium. My goal is to have the tests automated from Hudson/Jenkins. So far I'm able to get the test hitting the Django server, but from the server logs I see it's hitting the url <code>/selenium-server/driver</code> instead of the right path.</p>
  
  <p>Here's my code (based on what was generated by the Selenium IDE plugin for Firefox:</p>
  
  <pre><code>from selenium import selenium
  
  
  class AccountAdminPageTests(unittest.TestCase):
      def setUp(self):
          self.selenium = selenium("localhost", 
                                   8000, 
                                   "*chrome", 
                                   "http://localhost:8000/")
          self.selenium.start()
          self.selenium.open("/")
  
      def test_ok(self):
          self.assertTrue(self.selenium.is_text_present('OK'))
  
      def tearDown(self):
          self.selenium.stop()
  
  
  if __name__ == "__main__":
      unittest.main()
  </code></pre>
  
  <p>Any clues?</p>