<s> """<STR_LIT>""" <EOL> from grr . gui import runtests_test <EOL> from grr . lib import aff4 <EOL> from grr . lib import flags <EOL> from grr . lib import test_lib <EOL> class TestContainerViewer ( test_lib . GRRSeleniumTest ) : <EOL> """<STR_LIT>""" <EOL> def CreateCollectionFixture ( self ) : <EOL> with aff4 . FACTORY . Create ( "<STR_LIT>" , <EOL> "<STR_LIT>" , token = self . token ) as out_fd : <EOL> out_fd . CreateView ( <EOL> [ "<STR_LIT>" , "<STR_LIT:type>" , "<STR_LIT>" , "<STR_LIT:size>" , "<STR_LIT>" ] ) <EOL> for urn in [ <EOL> "<STR_LIT>" , <EOL> "<STR_LIT>" , <EOL> "<STR_LIT>" , <EOL> "<STR_LIT>" , <EOL> ] : <EOL> fd = aff4 . FACTORY . Open ( urn , token = self . token ) <EOL> out_fd . Add ( urn = urn , stat = fd . Get ( fd . Schema . STAT ) ) <EOL> def setUp ( self ) : <EOL> super ( TestContainerViewer , self ) . setUp ( ) <EOL> with self . ACLChecksDisabled ( ) : <EOL> self . CreateCollectionFixture ( ) <EOL> self . RequestAndGrantClientApproval ( "<STR_LIT>" ) <EOL> def testContainerViewer ( self ) : <EOL> self . Open ( "<STR_LIT:/>" ) <EOL> self . Type ( "<STR_LIT>" , "<STR_LIT>" ) <EOL> self . Click ( "<STR_LIT>" ) <EOL> self . WaitUntilEqual ( u"<STR_LIT>" , <EOL> self . GetText , "<STR_LIT>" ) <EOL> self . Click ( "<STR_LIT>" ) <EOL> self . Click ( "<STR_LIT>" ) <EOL> self . Click ( "<STR_LIT>" ) <EOL> self . Click ( "<STR_LIT>" ) <EOL> self . WaitUntil ( self . IsElementPresent , "<STR_LIT>" ) <EOL> self . assertIn ( "<STR_LIT>" , self . GetText ( <EOL> "<STR_LIT>" <EOL> "<STR_LIT>" <EOL> "<STR_LIT>" <EOL> "<STR_LIT>" <EOL> "<STR_LIT>" ) ) <EOL> self . Click ( "<STR_LIT>" ) <EOL> self . WaitUntil ( self . IsElementPresent , "<STR_LIT>" ) <EOL> self . ClickUntil ( "<STR_LIT>" , <EOL> self . IsElementPresent , <EOL> "<STR_LIT>" ) <EOL> self . ClickUntil ( "<STR_LIT>" , <EOL> self . IsElementPresent , <EOL> "<STR_LIT>" ) <EOL> self . ClickUntil ( "<STR_LIT>" , <EOL> self . IsElementPresent , <EOL> "<STR_LIT>" ) <EOL> self . Click ( "<STR_LIT>" ) <EOL> self . assertEqual ( "<STR_LIT>" , <EOL> self . GetValue ( "<STR_LIT>" ) ) <EOL> self . WaitUntilEqual ( <NUM_LIT:4> , self . GetCssCount , <EOL> "<STR_LIT>" ) <EOL> self . assertEqual ( <EOL> "<STR_LIT>" , <EOL> self . GetText ( "<STR_LIT>" ) ) <EOL> self . assertEqual ( <EOL> "<STR_LIT>" , <EOL> self . GetText ( "<STR_LIT>" ) ) <EOL> self . assertEqual ( <EOL> "<STR_LIT>" , <EOL> self . GetText ( "<STR_LIT>" ) ) <EOL> self . assertEqual ( <EOL> "<STR_LIT>" , <EOL> self . GetText ( "<STR_LIT>" ) ) <EOL> self . Type ( "<STR_LIT>" , "<STR_LIT>" ) <EOL> self . Click ( "<STR_LIT>" ) <EOL> self . WaitUntilEqual ( "<STR_LIT>" , self . GetText , <EOL> "<STR_LIT>" ) <EOL> self . assertEqual ( <EOL> <NUM_LIT:1> , self . GetCssCount ( "<STR_LIT>" ) ) <EOL> def main ( argv ) : <EOL> runtests_test . SeleniumTestProgram ( argv = argv ) <EOL> if __name__ == "<STR_LIT:__main__>" : <EOL> flags . StartMain ( main ) </s>
