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()
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()
def testAnonymousProfileExample(self): driver = WebDriver() driver.get("http://localhost:%d/simpleTest.html" % WEB_SERVER_PORT) self.assertEquals("Hello WebDriver", driver.get_title()) driver.quit()
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()
def testAnonymousProfileExample(self): driver = WebDriver() driver.get("http://localhost:%d/simpleTest.html" % WEB_SERVER_PORT) self.assertEquals("Hello WebDriver", driver.get_title()) driver.quit()