def moveToElement(self, element):
self.driver.execute_script("return arguments[0].scrollIntoView();", element)
actions = webdriver.ActionChains(self.driver)
actions.move_to_element(element)
actions.perform()
评论列表
文章目录