Selenium logo green
  • About
    About Selenium Structure and Governance Events Ecosystem History Get Involved Sponsors Sponsor Us
  • Downloads
  • Documentation
  • Projects
  • Support
  • Blog
  • 中文简体
    • English
    • Português (Brasileiro)
    • 日本語
中文简体
  • English
  • Português (Brasileiro)
  • 日本語
  • 文档
    • 概述
      • 了解组件
      • 深度介绍
    • WebDriver
      • 入门指南
        • 安装类库
        • 第一个脚本
        • 使用Selenium
      • 驱动
        • 选项
        • HTTP Client
        • 服务
        • 远程WebDriver
      • 浏览器
        • Chrome
        • Edge
        • Firefox
        • Internet Explorer
        • Safari
      • 等待
      • 元素
        • 文件上传
        • 查询器
        • 交互
        • 定位器
        • 信息
      • 交互
        • 导航
        • 警告框
        • Cookies
        • Frames
        • 打印页面
        • 窗口
        • 虚拟身份验证器
      • Actions接口
        • 键盘
        • Mouse
        • Pen
        • Wheel
      • BiDi
        • Network
        • Script
        • 日志
        • CDP
          • Logging
          • Network
          • Script
        • BiDi API (W3C compliant)
          • Browsing Context
          • Browsing Context
          • Network
          • Script
          • BiDi API (W3C compliant)
      • 额外功能
        • 期望状态
        • 监听器
        • 颜色
        • 线程守卫
        • 选择列表
      • 故障排除
        • 异常
          • Driver Location
        • 日志
        • 升级到Selenium 4
    • Selenium Manager
    • Grid
      • 快速起步
      • 适用性
      • 组件
      • 配置
        • 帮助
        • CLI 选项
        • Toml选项
      • Grid架构
      • 高级功能
        • 可观测性
        • GraphQL查询支持
        • Grid端点
        • Customize Node
        • External datastore
    • IE驱动服务器
      • Internals
    • IDE
    • 最佳实践
      • 概述
      • 设计策略
      • 测试类型
      • 指南
        • PO设计模式
        • 领域特定语言
        • 生成应用程序状态
        • 模拟外部服务
        • 改善报告
        • 避免共享状态
        • 定位器
        • 测试的独立性
        • 考虑使用Fluent API
        • 每次测试都刷新浏览器
      • 反模式
        • 验证码
        • 文件下载
        • HTTP响应码
        • Gmail, email and Facebook
        • 测试依赖
        • 性能测试
        • 爬取链接
        • 双因素认证
    • Legacy
      • Selenium 1
      • Selenium 2
        • 从RC迁移到WebDriver
        • 远程WebDriver服务器
      • Selenium 3
        • 服务网格 3
        • 配置自己的服务网格
        • 服务网格的组件
      • Selenium IDE
        • HTML runner
    • 关于这个文档
      • 版权和归属
      • 为 Selenium 文档做贡献
      • Style
编辑此页 提交文档问题 提交项目问题 整节打印


  1. 文档
  2. 最佳实践
  3. 反模式
  4. v4.0

不鼓励的行为

使用Selenium自动化浏览器时应避免的事项.

验证码

文件下载

HTTP响应码

Gmail, email 和 Facebook 登录

测试依赖

性能测试

爬取链接

双因素认证

最后修改 December 14, 2021: Update Chinese translation of "link title" and re-translate some titles (#882) [deploy site] (55a7401dc7)

Development Partners

BrowserStack
Sauce Labs
LambdaTest

Selenium Level Sponsors

Bright Data
Applitools

Support the Selenium Project

Learn more or view the full list of sponsors.

Learn more
Deploys by Netlify
© 2025 Software Freedom Conservancy 保留所有权利

关于这个文档