小编Bla*_*gma的帖子

如何用量角器测试html链接?

我是量角器的新手,想测试链接是否正常工作.我理解尝试获取元素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)

html testing end-to-end angularjs protractor

5
推荐指数
1
解决办法
1万
查看次数

标签 统计

angularjs ×1

end-to-end ×1

html ×1

protractor ×1

testing ×1