navalia icon indicating copy to clipboard operation
navalia copied to clipboard

Goto failed to load in the timeout specified

Open jobergner opened this issue 7 years ago • 3 comments

This example:

const { Chrome } = require('navalia');
const chrome = new Chrome();

chrome
  .goto('https://amazon.com')
  .type('input', 'Kindle')
  .click('.buy-now')
  .end()
  .then(responses => {
    console.log(responses); // ['https://www.amazon.com/', true, true, true]
  });

causes the following error:


(node:13803) UnhandledPromiseRejectionWarning: Unhandled promise rejection (rejection id: 1): Goto failed to load in the timeout specified
(node:13803) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code.

no way to work around it. Can't use navalia at all. Please help!

jobergner avatar Feb 26 '18 15:02 jobergner

@Java-Jonas we are discussing some of these bits over in #72 .

michaelwills avatar Feb 27 '18 22:02 michaelwills

I'm having a similar problem with 1.3.0, I've reverted to 1.2.0 and my tests are working again. Mine failed to load http://localhost:2998/ yet all the other browsers and Navalia 1.2.0 work so I don't think it is the server.

edparsons avatar Mar 05 '18 21:03 edparsons

I'm having the same issue, even with hitting www.google.com. I tried what edparsons said and reverting to 1.2.0 worked. Thanks

gary5wang avatar Apr 16 '18 04:04 gary5wang