<s> from selenium import selenium <EOL> import unittest , time , re <EOL> import seleniumtest <EOL> class NewTest ( unittest . TestCase ) : <EOL> def setUp ( self ) : <EOL> self . verificationErrors = [ ] <EOL> self . selenium = selenium ( "<STR_LIT:localhost>" , <NUM_LIT> , "<STR_LIT>" , "<STR_LIT>" ) <EOL> self . selenium . start ( ) <EOL> def test_new ( self ) : <EOL> sel = self . selenium <EOL> sel . open ( "<STR_LIT>" ) <EOL> sel . click ( "<STR_LIT>" ) <EOL> sel . wait_for_page_to_load ( "<STR_LIT>" ) <EOL> sel . click ( "<STR_LIT>" ) <EOL> email = "<STR_LIT>" <EOL> sel . type ( "<STR_LIT>" , "<STR_LIT>" ) <EOL> sel . type ( "<STR_LIT>" , email ) <EOL> sel . type ( "<STR_LIT>" , "<STR_LIT>" ) <EOL> sel . click ( "<STR_LIT>" ) <EOL> sel . wait_for_page_to_load ( "<STR_LIT>" ) <EOL> try : self . failUnless ( sel . is_text_present ( "<STR_LIT>" ) ) <EOL> except AssertionError , e : self . verificationErrors . append ( str ( e ) ) <EOL> sel . open ( "<STR_LIT>" ) <EOL> sel . click ( "<STR_LIT>" ) <EOL> sel . wait_for_page_to_load ( "<STR_LIT>" ) <EOL> try : self . failUnless ( sel . is_text_present ( "<STR_LIT>" ) ) <EOL> except AssertionError , e : self . verificationErrors . append ( str ( e ) ) <EOL> sel . open ( "<STR_LIT>" ) <EOL> sel . click ( "<STR_LIT>" ) <EOL> sel . wait_for_page_to_load ( "<STR_LIT>" ) <EOL> sel . type ( "<STR_LIT>" , "<STR_LIT>" ) <EOL> sel . type ( "<STR_LIT>" , "<STR_LIT>" ) <EOL> sel . click ( "<STR_LIT>" ) <EOL> sel . wait_for_page_to_load ( "<STR_LIT>" ) <EOL> try : self . failUnless ( sel . is_text_present ( "<STR_LIT>" ) ) <EOL> except AssertionError , e : self . verificationErrors . append ( str ( e ) ) <EOL> def tearDown ( self ) : <EOL> self . selenium . stop ( ) <EOL> self . assertEqual ( [ ] , self . verificationErrors ) <EOL> if __name__ == "<STR_LIT:__main__>" : <EOL> seleniumtest . runInSeleniumRC ( unittest . main ) ( ) </s>
