• Skip to main content
  • Skip to search
  • Skip to select language
MDN Web Docs
  • 参考手册
    • 概述 / Web 技术

      适用于开发者的 Web 技术参考手册

    • HTML

      Web 内容的结构

    • CSS

      用于描述文档样式的代码

    • JavaScript

      通用脚本语言

  • 开发指南
    • 概述 / MDN 学习区

      学习 Web 开发

    • MDN 学习区

      学习 Web 开发

    • HTML

      学习使用 HTML 构建 Web 内容

    • CSS

      学习使用 CSS 设置内容样式

    • JavaScript

      学习在浏览器中运行脚本

  • 更多中文网
  1. 面向开发者的 Web 技术
  2. WebDriver
  3. WebDriver errors
  4. Invalid selector

目录

  • See also
  1. Insecure certificate
  2. Invalid argument
  3. Invalid cookie domain
  4. Invalid selector
  5. Invalid session ID
  6. JavaScript error
  7. Script timeout
  8. Stale element reference
  9. Unknown command
  10. Unknown error
  11. Unknown method

目录

  • See also

Invalid selector

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:
    • Find Element
    • Find Elements
    • Find Element From Element
    • Find Elements From Element
MDN Web 中文网 - 粤ICP备13048890号