Python 3.x 如何在<;p>;在Python3中使用SeleniumWebDriver标记?

Python 3.x 如何在<;p>;在Python3中使用SeleniumWebDriver标记?,python-3.x,selenium,Python 3.x,Selenium,我的html代码是: <p contenteditable="true" ></p> 但这会产生错误 selenium.common.exceptions.InvalidSelectorException: Message: invalid selector: An invalid or illegal selector was specified 将其更改为类似定位器的xpath以获取元素 下面是一个xpath示例 write = browser.find_ele

我的html代码是:

<p contenteditable="true" ></p>
但这会产生错误

selenium.common.exceptions.InvalidSelectorException: Message: invalid selector: 
An invalid or illegal selector was specified

将其更改为类似定位器的xpath以获取元素

下面是一个xpath示例

write = browser.find_element_by_xpath("//p[@conteneditable=‘true’]")
write = browser.find_element_by_xpath("//p[@conteneditable=‘true’]")