Created
April 8, 2011 18:24
-
-
Save brianherman/910431 to your computer and use it in GitHub Desktop.
carl carl
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from selenium import selenium | |
import unittest, time, re | |
class Untitled(unittest.TestCase): | |
def setUp(self): | |
self.verificationErrors = [] | |
self.selenium = selenium("localhost", 4444, "*chrome", "http://blip.tv/") | |
self.selenium.start() | |
def test_untitled(self): | |
sel = self.selenium | |
sel.open("/") | |
sel.click("link=Login") | |
sel.wait_for_page_to_load("30000") | |
sel.type("LoginUsername", "brianherman") | |
sel.type("LoginPassword", "Insw0eif") | |
sel.type("LoginPassword", "Insw0eifAn4wtbt") | |
sel.type("LoginUsername", "brianjherman") | |
sel.click("SubmitBtn") | |
sel.type("LoginPassword", "Insw0eif") | |
sel.wait_for_page_to_load("30000") | |
sel.click("link=Overview") | |
sel.wait_for_page_to_load("30000") | |
sel.click("link=All episodes") | |
sel.wait_for_page_to_load("30000") | |
sel.click("EpisodeEditButton") | |
sel.click("EpisodeEditButton") | |
sel.click("CheckAll") | |
sel.click("CheckAll") | |
sel.click("CheckAll") | |
sel.click("CheckAll") | |
def tearDown(self): | |
self.selenium.stop() | |
self.assertEqual([], self.verificationErrors) | |
if __name__ == "__main__": | |
unittest.main() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment