错误原因有两个:1、元素重叠 2、时间问题
解决方法:
time.sleep()
# 或者
button = driver.find_element_by_xpath("xpath"]")
driver.execute_script("arguments[0].click();", button)
错误原因有两个:1、元素重叠 2、时间问题
解决方法:
time.sleep()
# 或者
button = driver.find_element_by_xpath("xpath"]")
driver.execute_script("arguments[0].click();", button)