#NEWLINE# def get_row( self , column_name , text , exact_match = True ) : #NEWLINE# #INDENT# 'Get row that contains specified text in specified column.\n\n        In case exact_match is set to True, text contained in row must equal\n        searched text, otherwise occurrence of searched text in the column\n        text will result in row match.\n        ' #NEWLINE# def get_text( element ) : #NEWLINE# #INDENT# text = element . get_attribute ( 'data-selenium' ) #NEWLINE# return ( text or element . text ) #NEWLINE# #UNINDENT# for row in self . rows : #NEWLINE# #INDENT# try : #NEWLINE# #INDENT# cell = exact_match . cells [ column_name ] #NEWLINE# if ( exact_match and ( text == get_text ( cell ) ) ) : #NEWLINE# #INDENT# return row #NEWLINE# #UNINDENT# if ( ( not exact_match ) and ( text in get_text ( cell ) ) ) : #NEWLINE# #INDENT# return row #NEWLINE# #UNINDENT# #UNINDENT# except exceptions . StaleElementReferenceException : #NEWLINE# #INDENT# pass #NEWLINE# #UNINDENT# #UNINDENT# return None