我必须为在 IE9 上运行的 Angular 应用程序编写端到端验收测试。我想知道Protractor模拟的浏览器相当于IE9以上吗?
最佳答案
在理想世界中或通过“玫瑰色眼镜”看待它:
Yes, sure. Write your tests once - reuse and execute multiple times on any browser/capability out there. It's all handled by the same Selenium/WebDriverJS/Protractor API.
在现实世界中,事情没那么简单。使用 Internet Explorer,通常会遇到需要以特殊方式处理的问题,在测试代码中添加一些内容以满足您的期望:explicitly resolve a click promise ,或添加 explicit wait ,或者添加人工延迟,或者关闭 Angular 动画,增加implicit wait timeouts - 你的名字。
关于javascript - Protractor 是否兼容 IE 9 浏览器?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/33441463/