class HomePageTest(TestCase):

    def _load_home_page(self):
        self.driver.get("http://127.0.0.1:8000/charts")
        
    def test_get_title(self):
        self.driver = WebDriver()
        self._load_home_page()
        title = self.driver.get_title()
        self.assertEquals("foobar", title)

    def tearDown(self):
        self.driver.quit()
Beispiel #2
0
 def testNamedProfile(self):
     profile = FirefoxProfile("example")
     driver = WebDriver(profile)
     driver.get("http://localhost:%d/simpleTest.html" % WEB_SERVER_PORT)
     self.assertEquals("Hello WebDriver", driver.get_title())
     driver.quit()
Beispiel #3
0
 def testAnonymousProfileExample(self):
     driver = WebDriver()
     driver.get("http://localhost:%d/simpleTest.html" % WEB_SERVER_PORT)
     self.assertEquals("Hello WebDriver", driver.get_title())
     driver.quit()
Beispiel #4
0
 def testNamedProfile(self):
     profile = FirefoxProfile("example")
     driver = WebDriver(profile)
     driver.get("http://localhost:%d/simpleTest.html" % WEB_SERVER_PORT)
     self.assertEquals("Hello WebDriver", driver.get_title())
     driver.quit()
Beispiel #5
0
 def testAnonymousProfileExample(self):
     driver = WebDriver()
     driver.get("http://localhost:%d/simpleTest.html" % WEB_SERVER_PORT)
     self.assertEquals("Hello WebDriver", driver.get_title())
     driver.quit()