from selenium import selenium
import unittest, time, re
class NewTest(unittest.TestCase):
def setUp(self):
self.verificationErrors = []
self.selenium = selenium(“localhost”,
4444, “*chrome”, “http://shell.appspot.com”)
self.selenium.start()
def test_new(self):
sel = self.selenium
sel.open(“/”)
sel.click(“link=source”)
sel.wait_for_page_to_load(“30000”)
def tearDown(self):
self.selenium.stop()
self.assertEqual([], self.verificationErrors)
if __name__ == “__main__”:
unittest.main()