xp = '//*[@class="page-next"]'
button = self.driver.find_element_by_xpath(xp)
self.driver.execute_script("arguments[0].click();", button)
python selenium使用js方法点击页面
最新推荐文章于 2023-09-22 11:09:39 发布
xp = '//*[@class="page-next"]'
button = self.driver.find_element_by_xpath(xp)
self.driver.execute_script("arguments[0].click();", button)