gpt4 book ai didi

angularjs - 等待 Protractor 与页面 : "window. 同步时出错 Angular 未定义

转载 作者:行者123 更新时间:2023-12-02 22:51:08 26 4
gpt4 key购买 nike

我刚刚开始使用 Protractor 。我创建了几个页面对象,到目前为止一切正常。我登录到一个页面,然后我被重定向到 myaccount 页面。

在该页面上,我收到以下错误:等待 Protractor 与页面同步时出错:“window.Angular 未定义。

我的代码在这里:

var myaccount = function(){

//some function but everything is commented out
};
module.exports = new myaccount();

这也是我的登录测试:

    this.loginSuccess = function(){
userName.sendKeys(params.registration.email);
password.sendKeys(params.registration.password);
submitButton.click();
};

点击后,出现 myaccount 页面,但 Protractor 抛出上述错误。

有人可以帮我解决这个问题吗?

最佳答案

window.Angular未定义意味着您正在尝试使 Protractor 转到非 Angular 的页面

关于angularjs - 等待 Protractor 与页面 : "window. 同步时出错 Angular 未定义,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/34900470/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com