コード例 #1
0
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()
コード例 #2
0
ファイル: profile_tests.py プロジェクト: Angeleena/selenium
 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()
コード例 #3
0
ファイル: profile_tests.py プロジェクト: Angeleena/selenium
 def testAnonymousProfileExample(self):
     driver = WebDriver()
     driver.get("http://localhost:%d/simpleTest.html" % WEB_SERVER_PORT)
     self.assertEquals("Hello WebDriver", driver.get_title())
     driver.quit()
コード例 #4
0
ファイル: profile_tests.py プロジェクト: greghicks01/selenium
 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()
コード例 #5
0
ファイル: profile_tests.py プロジェクト: greghicks01/selenium
 def testAnonymousProfileExample(self):
     driver = WebDriver()
     driver.get("http://localhost:%d/simpleTest.html" % WEB_SERVER_PORT)
     self.assertEquals("Hello WebDriver", driver.get_title())
     driver.quit()