#NEWLINE# def find_element( self , by = By . ID , value = None ) : #NEWLINE# #INDENT# if ( ( not By . is_valid ( by ) ) or ( not isinstance ( value , str ) ) ) : #NEWLINE# #INDENT# raise InvalidSelectorException ( 'Invalid locator values passed in' ) #NEWLINE# #UNINDENT# return self . _execute ( Command . FIND_CHILD_ELEMENT , { #NEWLINE# #INDENT# 'using' : by , #NEWLINE# 'value' : value , #NEWLINE# #UNINDENT# } ) [ 'value' ]