hugs (owner)

Revisions

gist: 64154 Download_button fork
public
Public Clone URL: git://gist.github.com/64154.git
Embed All Files: show embed
Python #
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
from selenium import selenium
from time import sleep
import unittest
 
class TestSauce(unittest.TestCase):
    def setUp(self):
        self.selenium = selenium("localhost", \
            4444, "*chrome", "http://imvu.com/")
        self.selenium.start()
        self.selenium.set_speed(2000)
 
    def test_imvu(self):
        sel = self.selenium
        sel.open("/")
        sel.window_maximize()
        sel.click("link=About Us")
        sel.wait_for_page_to_load("10000")
        sel.click("//div[@id='about_us']/ul/li[2]/a/em")
        sel.wait_for_page_to_load("10000")
        try:
            self.failUnless(sel.is_text_present("Management Team"))
        except AssertionError, e:
            self.verificationErrors.append(str(e))
 
 
    def tearDown(self):
        self.selenium.stop()
 
if __name__ == "__main__":
    unittest.main()