Currently I use implicit wait to locate elements before issuing any action upon them. See example of implicit wait:
WebDriverWait(browser,10).until(EC.presence_of_element_located(By.XPATH(('xpath')))
This works fine when dealing with a single element. However, it appears that if the xpath relates to multiple elements then EC.presence_of_element_located() will time out. My question is, how do I do an implicit wait for multiple elements?
Clarification:
Single element -
WebDriverWait(browser,10).until(EC.presence_of_element_located(By.XPATH(('xpath')))
browser.find_element_by_xpath('xpath')
Multiple element -
??
browser.find_elements_by_xpath('xpath')
Note: Notice use of find_elements_by_xpath() in multiple element instance instead of using find_element_by_xpath()
EC.presence_of_element_located((By.XPATH, 'xpath')), not ByXPATH(('xpath))driver.implicitly_wait(10)right?