When I use Cypress to automate the SAP official website, I get the following error message:

Timed out after waiting 60000ms for your remote page to load.

Your page did not fire its load event within 60000ms.

The home page of SAP’s official website failed to be loaded within the default 1-minute timeout after an attempt was made to load the Cy. visit command.

You can try increasing the pageLoadTimeout value in cypress.json to wait longer.

Browsers will not fire the load event until all stylesheets and scripts are done downloading.

The browser does not fire load until the SAP website has finished loading all stylesheets CSS files and scripts.

When this load event occurs, Cypress will continue running commands.

If no load event occurs, Cypress will not proceed with the instructions following cy.visit.

The solution

Change the default timeout of the cy.visit command:

cy.visit('https://www.sap.com', { timeout: 300000 });
Copy the code