#NEWLINE# def testLogsTabFiltersLogsByString( self ) : #NEWLINE# #INDENT# with self . ACLChecksDisabled ( ) : #NEWLINE# #INDENT# self . SetupHuntDetailView ( failrate = ( - 1 ) ) #NEWLINE# #UNINDENT# self . Open ( '/#main=ManageHunts' ) #NEWLINE# self . Click ( "css=td:contains('GenericHunt')" ) #NEWLINE# self . Click ( 'css=li[heading=Log]' ) #NEWLINE# self . Type ( 'css=grr-hunt-log input.search-query' , self . client_ids [ ( - 1 ) ] . Basename ( ) ) #NEWLINE# self . Click ( "css=grr-hunt-log button:contains('Filter')" ) #NEWLINE# self . WaitUntil ( self . IsTextPresent , str ( self . client_ids [ ( - 1 ) ] ) ) #NEWLINE# self . WaitUntil ( self . IsTextPresent , ( 'Finished reading ' + str ( self . client_ids [ ( - 1 ) ] . Add ( 'fs/os/tmp/evil.txt' ) ) ) ) #NEWLINE# for client_id in self . client_ids [ : ( - 1 ) ] : #NEWLINE# #INDENT# self . WaitUntilNot ( self . IsTextPresent , str ( client_id ) ) #NEWLINE# self . WaitUntilNot ( self . IsTextPresent , ( 'Finished reading ' + str ( client_id . Add ( 'fs/os/tmp/evil.txt' ) ) ) )