Getting the Angular Content to load in protractor tests

ε祈祈猫儿з 提交于 2019-12-06 09:40:54

what might be happening is that it's checking the expect before the page loads so you could try to make it wait till the title says NBA LIVE before you expect it by using the protractor.until statments

    browser.wait(protractor.until.titleIs("NBA LIVE"), 5000, "✗ Failed to wait for the NBA LIVE page to load");
    expect(browser.getTitle()).toEqual("NBA LIVE");

EDIT:

Since you are using a local app and using saucelabs then you will need to setup sauce connect

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!