#NEWLINE# def reload_request( self , locator , index ) : #NEWLINE# #INDENT# try : #NEWLINE# #INDENT# if ( index is not None ) : #NEWLINE# #INDENT# web_els = self . find_elements ( * locator ) #NEWLINE# web_el = web_els [ index ] #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# web_el = self . find_element ( * locator ) #NEWLINE# #UNINDENT# return web_el #NEWLINE# #UNINDENT# except ( exceptions . NoSuchElementException , IndexError ) : #NEWLINE# #INDENT# return False