【发布时间】:2015-04-29 19:24:25
【问题描述】:
我尝试测试的情况: 在 Angular 应用页面上按下按钮,将您重定向到其他网站(不是 Angular 应用)。
it('should go to 3d party service when i click "auth" button' , function() {
browser.driver.sleep(3000);
element(by.id('files-services-icon')).click();
element(by.id('box-vendor-menu-item')).click();
browser.driver.sleep(2000);
expect( browser.driver.getLocationAbsUrl()).toContain('https://app.box.com/api/oauth2/authorize');
});
但我明白了:
UnknownError:未知错误:未定义角度
如何实现?谢谢!
【问题讨论】:
标签: javascript angularjs testing protractor end-to-end