#NEWLINE# def __getitem__( self , key ) : #NEWLINE# #INDENT# s = WebDriverSelect ( self . driver . find_element_by_locator ( self . locator ) ) #NEWLINE# a = s . all_selected_options #NEWLINE# if ( len ( a ) == 0 ) : #NEWLINE# #INDENT# return None #NEWLINE# #UNINDENT# selections = [ x . text for x in a ] #NEWLINE# return selections [ key ]