标签:include 命令 其他属性 示例 char object har charset 使用
在 Cypress 中引用窗口和窗口上其他属性的示例
要获取全局窗口对象,请使用cy.window()命令。
cy.window().should(‘have.property‘, ‘top‘)
To get the document object, use the cy.document() command.
要获取document对象,请使用cy.document()命令。
cy.document().should(‘have.property‘, ‘charset‘).and(‘eq‘, ‘UTF-8‘)
要获取标题,请使用cy.title()命令。
cy.title().should(‘include‘, ‘Kitchen Sink‘)
标签:include 命令 其他属性 示例 char object har charset 使用
原文地址:https://www.cnblogs.com/yoyoketang/p/12878097.html