Jan-20-2019, 06:18 PM
Actually, I posted the wrong example, should have been and it uses css selector:
page_button_css = 'mainContent > table:nth-child(5) > tbody:nth-child(1) > tr:nth-child(1) > td:nth-child(3) > font:nth-child(1) > a:nth-child(1)' next_page = self.browser.find_element(By.PARTIAL_LINK_TEXT, 'Next 250') ActionChains(self.browser).move_to_element(next_page) next_page.click()the imports needed are:
from selenium import webdriver from selenium.webdriver.common.action_chains import ActionChains from selenium.webdriver.common.by import By