selenium.common.exceptions.NoSuchElementException:消息:没有这样的元素:无法定位元素(PYTHON)
我在我的网站elementor WordPress中使用python selenium来添加新元素和编辑一些内容 我想在elementor页面中添加一个元素,我是通过CSS选择器得到的 当我在google chrome中打开inspect并搜索css选择器时,我找到了我想要的元素,但当启动脚本时,它告诉我没有找到这个元素 我使用了selenium.common.exceptions.NoSuchElementException:消息:没有这样的元素:无法定位元素(PYTHON),python,html,wordpress,selenium,elementor,Python,Html,Wordpress,Selenium,Elementor,我在我的网站elementor WordPress中使用python selenium来添加新元素和编辑一些内容 我想在elementor页面中添加一个元素,我是通过CSS选择器得到的 当我在google chrome中打开inspect并搜索css选择器时,我找到了我想要的元素,但当启动脚本时,它告诉我没有找到这个元素 我使用了time.sleep(10)和WebDriverWait(driver,20).until()但是我得到了同样的错误 代码: ERORR: selenium.commo
time.sleep(10)
和WebDriverWait(driver,20).until()
但是我得到了同样的错误
代码:
ERORR:
selenium.common.exceptions.NoSuchElementException: Message: no such element: Unable to locate element: {"method":"css selector","selector":"div > div > div.elementor-section-wrap.ui-sortable > section > .elementor-container > div > div:nth-of-type(1) > .elementor-column-wrap > .elementor-widget-wrap > .elementor-element:nth-of-type(1) > .elementor-widget-container > div > .categoriesbox-bg"}
selenium.common.exceptions.NoSuchElementException: Message: no such element: Unable to locate element: {"method":"css selector","selector":"div > div > div.elementor-section-wrap.ui-sortable > section > .elementor-container > div > div:nth-of-type(1) > .elementor-column-wrap > .elementor-widget-wrap > .elementor-element:nth-of-type(1) > .elementor-widget-container > div > .categoriesbox-bg"}