protractor is basically a wrapper around WedDriverJS (senenium javascript bindings). protractor simplifies and speeds up testing of an AngularJS page, knowing when angular will be installed, and the page is ready to interact with multiple angular pointers.
In other words, you can check out knockout pages with a protractor . In this case, you need to explicitly wait until the ko-component element is present when using <T26> Expected condition :
var EC = protractor.ExpectedConditions; var e = element(by.id('ko-component')); browser.wait(EC.presenceOf(e), 10000); expect(e.getText()).toEqual('Hello World!');
source share