#NEWLINE# def __getitem__( self , index ) : #NEWLINE# #INDENT# count = self . count #NEWLINE# if ( index >= count ) : #NEWLINE# #INDENT# raise IndexError ( ) #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# if ( count == 1 ) : #NEWLINE# #INDENT# return self #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# selector = self . selector . clone ( ) #NEWLINE# selector [ 'instance' ] = index #NEWLINE# return AutomatorDeviceObject ( self . device , selector )