I have something like this
el = WebDriverWait(browser, 10).until(
EC.presence_of_all_elements_located((By.CSS_SELECTOR, "till-cap"))
)
The problem with the above code is that it does not wait for all the element, it returns 5 instead of 12 elements, sometimes the elements could be more or less, I resolved this by using time.sleep(15) in python, to wait for 15 seconds. But I feel this is not the best way to resolve this. Thank you.