search

Home  >  Q&A  >  body text

angular.js - Beginner to protractor. Refer to the case to run the test file and report Error: Timeout.

Test file:

// spec.js
describe('angularjs homepage', function() {
  it('should have a title', function() {
    browser.get('http://www.angularjs.org');    
    expect(browser.getTitle()).toEqual('AngularJS — Superheroic JavaScript MVW Framework');
  });
});

Configuration file conf.js:

// conf.js
exports.config = {
  seleniumAddress: 'http://localhost:4444/wd/hub',
  specs: ['spec.js']
}

Run command: protractor conf.js
Console error: Error: Timeout - Async callback was not invoked within timeout specified by jasmine.DEFAULT_TIMEOUT_INTERVAL?

I ran it directly using the example in this tutorial (http://blog.csdn.net/huwei2003/article/details/48493977),新手不知道怎么解决,求指点

某草草某草草2774 days ago1572

reply all(1)I'll reply

  • phpcn_u1582

    phpcn_u15822017-05-15 17:00:58

    The reason has been found. Because this website needs to be bypassed in order to access it, it will time out. You can just switch to the official Hammer website and run it

    reply
    0
  • Cancelreply