我是量角器的新手,想测试链接是否正常工作.我理解尝试获取元素id但我应该期望链接等于什么?
还有没有人有关于示例量角器测试的任何好文档?我已经通过这个http://angular.github.io/protractor/#/tutorial
有用,但我需要更多我可以做的可能测试的例子.
我到目前为止:
it('should redirect to the correct page', function(){
element(by.id('signmein').click();
expect(browser.driver.getCurrentUrl()).toEqual("http://localhost:8080/web/tfgm_customer/my-account");
});
Run Code Online (Sandbox Code Playgroud)