Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/python/285.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181

Warning: file_get_contents(/data/phpspider/zhask/data//catemap/3/html/82.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
selenium.common.exceptions.NoSuchElementException:消息:没有这样的元素:无法定位元素(PYTHON)_Python_Html_Wordpress_Selenium_Elementor - Fatal编程技术网

selenium.common.exceptions.NoSuchElementException:消息:没有这样的元素:无法定位元素(PYTHON)

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

我在我的网站elementor WordPress中使用python selenium来添加新元素和编辑一些内容

我想在elementor页面中添加一个元素,我是通过CSS选择器得到的

当我在google chrome中打开inspect并搜索css选择器时,我找到了我想要的元素,但当启动脚本时,它告诉我没有找到这个元素

我使用了
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"}