按钮不让点击。。
出现蒙层以后才点击
如果操作呢
# 滑动到顶部
time.sleep(2)
js = "window.scrollTo(0,0)"
driver.execute_script(js)
print("滑动结束")
time.sleep(2)
from selenium.webdriver import ActionChains
ActionChains(driver).move_to_element(wait30.until(lambda x: x.find_element_by_id('publish'))).perform()
time.sleep(2)
wait30.until(lambda x: x.find_element_by_id('publish')).click()
其中
ActionChains(driver).move_to_element(wait30.until(lambda x: x.find_element_by_id('publish'))).perform()
就是选中元素