失败:等待量角器与页面同步时出错:“在窗口中找不到角度". [英] Failed: Error while waiting for Protractor to sync with the page: "angular could not be found on the window"

查看:56
本文介绍了失败:等待量角器与页面同步时出错:“在窗口中找不到角度".的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我收到有关量角器测试脚本的以下错误消息.脚本运行良好,直到我为几个脚本更新了项目.脚本运行,并在最后抛出错误.我尝试了 browser.waitForAngular(); browser.sleep()都没有成功.

I am getting the following error message for my protractor test scripts. The scripts were running fine until I updated my projects for a few of the scripts. The scripts run and the error is thrown at the end. I have tried browser.waitForAngular(); and browser.sleep() with no success.

失败:等待量角器与页面同步时出错:在窗口上找不到角"堆栈:错误:失败:等待量角器与页面同步时出错:在窗口中找不到角度"在/Users/faizul/WebstormProjects/canary/node_modules/protractor/node_modules/jasminewd2/index.js:104:16在/Users/faizul/WebstormProjects/canary/node_modules/protractor/node_modules/selenium-webdriver/lib/goog/base.js:1582:15中在[对象对象] .webdriver.promise.ControlFlow.runInNewFrame_(/用户/faizul/WebstormProjects/canary/node_modules/protractor/node_modules/selenium-webdriver/lib/webdriver/promise.js:1654:20)在通知时(/Users/faizul/WebstormProjects/canary/node_modules/protractor/node_modules/selenium-webdriver/lib/webdriver/promise.js:465:12)

Failed: Error while waiting for Protractor to sync with the page: "angular could not be found on the window" Stack: Error: Failed: Error while waiting for Protractor to sync with the page: "angular could not be found on the window" at /Users/faizul/WebstormProjects/canary/node_modules/protractor/node_modules/jasminewd2/index.js:104:16 at /Users/faizul/WebstormProjects/canary/node_modules/protractor/node_modules/selenium-webdriver/lib/goog/base.js:1582:15 at [object Object].webdriver.promise.ControlFlow.runInNewFrame_ (/Users/faizul/WebstormProjects/canary/node_modules/protractor/node_modules/selenium-webdriver/lib/webdriver/promise.js:1654:20) at notify (/Users/faizul/WebstormProjects/canary/node_modules/protractor/node_modules/selenium-webdriver/lib/webdriver/promise.js:465:12)

推荐答案

如果更改 rootElement 本身不起作用,请尝试将 framework:'jasmine2'添加到<量角器配置文件中的code> exports.config .尝试找出问题时,我偶然发现了这一点.仅更改 rootElement 对我不起作用.

If changing the rootElement does not work by itself, try adding framework: 'jasmine2' to exports.config in your Protractor configuration file. I stumbled upon that earlier while trying to figure out the problem. Changing only the rootElement did not work for me.

这篇关于失败:等待量角器与页面同步时出错:“在窗口中找不到角度".的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆