Warning: file_get_contents(/data/phpspider/zhask/data//catemap/4/jquery-ui/2.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Javascript 无法在angularjs网站上运行量角器_Javascript_Angularjs - Fatal编程技术网

Javascript 无法在angularjs网站上运行量角器

Javascript 无法在angularjs网站上运行量角器,javascript,angularjs,Javascript,Angularjs,我正在运行一个基于Angularjs的网站- 当我手动打开它时,它会正确打开。。但是,当我通过自动化打开它时,它只打开浏览器,没有加载任何内容。。因此,我的测试用例失败了 Error: Timeout - Async callback was not invoked within timeout specified by jasmine.DEFAULT_TIMEOUT_INTERVAL. Stack: Error: Timeout - Async callback was n

我正在运行一个基于Angularjs的网站-

当我手动打开它时,它会正确打开。。但是,当我通过自动化打开它时,它只打开浏览器,没有加载任何内容。。因此,我的测试用例失败了

    Error: Timeout - Async callback was not invoked within timeout specified by jasmine.DEFAULT_TIMEOUT_INTERVAL.
  Stack:
    Error: Timeout - Async callback was not invoked within timeout specified by jasmine.DEFAULT_TIMEOUT_INTERVAL.
        at ontimeout (timers.js:380:14)
        at tryOnTimeout (timers.js:244:5)
        at Timer.listOnTimeout (timers.js:214:5)
规格js

describe('Woter Test', function() {
 it('should add a Name as WOOTER | Home', function(done) {
  browser.get('https://dev.wooter.co/');
    expect(browser.getTitle()).toBe('Wooter | Home');
    element(by.xpath("//a[@aria-label='SIGN IN']")).click();
  //var guru= element(by.xpath('html/body/div[2]/div[1]/div[2]/div[2]/div/h3'));
  //expect(guru.getText()).toEqual('Hello change GURU99!');
  });
});
conf.js-

exports.config = {




    capabilities: {
        "browserName": "chrome",
       // "chromeOptions": {
         //   binary: "C:/Program Files (x86)/Google/Chrome/Application/chrome.exe",
           // args: [],
            //extensions: [],
       // }
    },
      seleniumAddress: 'http://localhost:4444/wd/hub',

      onPrepare: function() {
        var width = 1600;
        var height = 1200;
        browser.driver.manage().window().setSize(width, height);
    },
      specs: ['C:/Users/Desktop/spec.js'],
    };

你的网站花了很长时间才加载到我的浏览器上。您可能需要增加默认测试超时。在
description
行之后添加此项:
this.timeout(50000)
在我的浏览器上加载您的网站花费了很长时间。您可能需要增加默认测试超时。在
description
行之后添加此项:
this.timeout(50000)