网页在柏树中没有加载,其中页面在chrome浏览器中完美加载
中的开发控制台
我尝试在下面添加config是cypress.json
{ “ modifyObStructiveCode”:false }
但这导致柏树跑者根本找不到我的测试,
这是我的柏树代码:
/// <reference types="Cypress" />
describe("Service Now TEST login", () => {
it("Login TEST", () => {
cy.visit("https://hptest.service-now.com/login.do")
cy.wait(2000)
cy.get(".form-control", {
timeout: 10000
}).should("be.visible").then(() => {
cy.get("#user_name").type("");
cy.get("#user_password").type("");
cy.get("#sysverb_login").click();
});
})
})
请在这里帮助我。
Below is the dev console in cypress
I have tried adding below config is Cypress.json
{
"modifyObstructiveCode" : false
}
but this causes Cypress runner to not find my test at all
This is my Cypress code :
/// <reference types="Cypress" />
describe("Service Now TEST login", () => {
it("Login TEST", () => {
cy.visit("https://hptest.service-now.com/login.do")
cy.wait(2000)
cy.get(".form-control", {
timeout: 10000
}).should("be.visible").then(() => {
cy.get("#user_name").type("");
cy.get("#user_password").type("");
cy.get("#sysverb_login").click();
});
})
})
Please help me here.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我可以在您的测试跑步者日志中看到存在异常,您可以使用以下例外:
因此您的代码应该看起来像:
I can see in your test runner logs that there is a exception generated, you can catch the exception using:
So your code should look like: