我正试图自动化我的Weebly流程,但面临错误
网桥无法建立连接文章源自玩技e族-https://www.playezu.com/180672.html
然而,如果我只是去浏览器,运行流,使其工作,但在Weebly它不适合我。文章源自玩技e族-https://www.playezu.com/180672.html
import { And, Given, Then, When } from "cypress-cucumber-preprocessor/steps";
Cypress.on("uncaught:exception", (err, runnable) => {
return false;
Given("Open the weebly website", () => {
cy.visit(
"http://www.weebly.com/editor/contributors.php?user=140661742&pc=240157955616149919"
).should("exist");
cy.wait(2000);
When("Enter the email", () => {
cy.get('[id="weebly-email"]')
.should("exist")
.type("weebly.invitation@gmail.com");
And("Click the next button", () => {
cy.get('button[type="submit"]').click();
And("Enter the password", () => {
cy.get('[id="weebly-password"]').should("exist").type("abcd1234");
And("Press the submit button", () => {
cy.get('button[type="submit"]').should("be.visible").click();
cy.wait(20000);
Then("User will land on weebly dashboard page", () => {
cy.get('[class="site-header-name"]').should(
"contains",
"Welcome back, Muhammad!"
);
屏幕截图1文章源自玩技e族-https://www.playezu.com/180672.html
屏幕截图2文章源自玩技e族-https://www.playezu.com/180672.html 文章源自玩技e族-https://www.playezu.com/180672.html