#NEWLINE# def is_element_present( self , how , what ) : #NEWLINE# #INDENT# try : #NEWLINE# #INDENT# self . driver . find_element ( by = how , value = what ) #NEWLINE# #UNINDENT# except NoSuchElementException as e : #NEWLINE# #INDENT# return False #NEWLINE# #UNINDENT# return True