我正在尝试使用selenium+python提交一个关于wordpress插件的表单。当我按下发布按钮时,它给出了一个错误。ElementClickInterceptedException: element click intercepted: Element
type="submit" name="publish" id="publish" class="button button-primary button-large" value="Publish"> is not clickable at point (728, 15). Other element would receive the click:
...
我尝试了以下解决方案:
使用了动作驱动程序,但不起作用。
使用了webdriverwait()函数,它不起作用。
使用了Xpath、CSS选择器、ID,这三种方法都给出了相同的错误。` browser.find_element_by_css_selector("""#save-post""").click()
WebDriverWait(driver, 90).until(EC.element_to_be_clickable((By.ID, "save-post"))).click()
`
请注意,当我在python控制台中运行该特定行时,它正在工作。但在运行完整脚本时,显示错误。
门户网站上有很多类似的问题,但都没有成功。请帮我解决这个问题。