测试文件:
// 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');
});
});
配置文件conf.js:
// conf.js
exports.config = {
seleniumAddress: 'http://localhost:4444/wd/hub',
specs: ['spec.js']
}
运行命令:protractor conf.js
控制台报错:Error: Timeout - Async callback was not invoked within timeout specified by jasmine.DEFAULT_TIMEOUT_INTERVAL?
我是直接用的这个教程里面的例子运行的(http://blog.csdn.net/huwei2003/article/details/48493977),新手不知道怎么解决,求指点
已经找到原因了,因为这个网站要翻墙才能上,所以会超时,换成锤子官网就可以运行了