def _find_elem_with_wait(context, by, wait_time=MAX_WAIT_TIME):
 return WebDriverWait(context.browser, wait_time).until(EC.presence_of_element_located(by))

def _find_elem_with_wait ( context , by , wait_time = MAX_WAIT_TIME ) : return WebDriverWait ( context . browser , wait_time ) . until ( EC . presence_of_element_located ( by ) )
tries to find an element with an explicit timeout .