I need to click the "next" button on the following page:
I have the following code that will not find xpath element for the "next button":
browser.find_element_by_xpath("//ul[@class='a-pagination']/li[@class='a-last']/a").click() # Click on next button
I have also tried this variation:
browser.find_element_by_xpath("//div[@id='pagination-next-6885645543374035']/ul/li[@class='a-last']/a")
I also tried directly copying the xpath from the inspector. Neither of these three options work.
Thanks in advance for your help.