![](/img/trans.png)
[英]Protractor timeout error while navigating one angular application to another angular application
[英]Protractor - Timeout Error with Angular application
在处理 Angular 应用程序时,如果 browser.waitForAngularEnabled(true) 然后我在单击元素时收到以下错误:
ScriptTimeoutError: script timeout
(Session info: chrome=85.0.4183.121)
Driver info: chromedriver=85.0.4183.38 (9047dbc2c693f044042bbec5c91401c708c7c26a-refs/branch-heads/4183@{#779}),platform=Windows NT x86_64)
下面是根元素
< app-root _nghost="" ng-version="8.0.0">
即使在配置文件中更新如下根元素后,我也遇到相同的错误:
rootElement: 'app-root'
注意:我不想使用 browser.waitForAngularEnabled(false),因为我想使用所有量角器功能。
在保存数据或单独导航时,waitForAngularEnabled 是否应设置为 true?
需要做什么才能从 Protractor 中将应用程序识别为 angular?
并非所有有角度的页面都可以使用量角器功能。 请参阅https://stackoverflow.com/a/57664113/9150146以了解如何确定您的页面是否可以使用它
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.