Skip to content

Instantly share code, notes, and snippets.

@brianherman
Created April 8, 2011 18:24
Show Gist options
  • Save brianherman/910431 to your computer and use it in GitHub Desktop.
Save brianherman/910431 to your computer and use it in GitHub Desktop.
carl carl
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