I have created a python selenium script that should navigate through a website and collect people profiles (https://www.shearman.com/people). The program won\'t loop through the
If you look at the HTML of the element with image as >, it is the tag within the last tag of the tag. So to invoke click() on it you can use the following code block :
>
click()
driver.find_element_by_xpath("//ul[@class='results-pagination']/li[last()]/a").click()