I'm using this to populate a list(wordlist) from Amazon website product page hoping to get this text "Haz clic para obtener una vista ampliada" :
wordlist.append(WebDriverWait(robotel, 30).until(EC.visibility_of_element_located((By.CSS_SELECTOR, "span#canvasCaption"))).text)
Problem is that when I do it in a loop, for multiple product pages sometimes for some products wordlist is empty, but then if I test again for the same product page wordlist gets populated.
I can't fiind the reason for this, so please help.