def robust_click(self, elt):
"""Click on the element, for the click() method is bugged half of the time"""
self.driver.execute_script("arguments[0].scrollIntoView(true);", elt)
action = ActionChains(self.driver)
action.move_to_element(elt).click().perform()
评论列表
文章目录