angular.js - Beginner to protractor. Refer to the case to run the test file and report Error: Timeout.
某草草
某草草 2017-05-15 16:58:58
0
1
1593

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),新手不知道怎么解决,求指点

某草草
某草草

reply all(1)
phpcn_u1582

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

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template