The invalid selector error is a WebDriver error that occurs when an element retrieval command is used with an unknown web element selector strategy.
The available selector strategies are CSS, link text, partial link text, tag name, and XPath. Any other selector strategy is rejected with this error.
See also
- List of WebDriver errors
- WebElement
- Element retrieval commands:
来源:MDN Web Docs / Mozilla 贡献者 · 作者与贡献记录 · CC BY-SA 2.5。离线整理了版式、链接和媒体显示。
