作用语法格式正确写法实际栗子测试文件代码测试结果document() 命令的产物 作用获取当前页面的 window.document 语法格式cy.document()cy.document(options) options:只有 timeout 和 log,不再展开讲了 正确写法cy.document() 实际栗子 测试文件代码 测试结果 document() 命令的产物 https://www.cnblogs.com/poloyy/p/13151943.html