

PATH = "C:/Program Files (x86)/chromedriver.exe" This should work: from import WebDriverWaitįrom import expected_conditions as ECįrom import Byįrom _chains import ActionChains So it's better to use visibility_of_element_located - this will wait for more mature state of the element and then add some additional delay to make all the other elements loaded. You will need to scroll the desired article element into view before you going to click it.īTW presence_of_all_elements_located will wait for appearance of at least 1 element, not all the elements matching the passed locator as you could think. You will need to get all the articles elements again each time you are back to the main page. In case you want to enter each article, scrape the data, get back and go to the next article your code will be not so simple as you presented here.
