문제

I have the following simple line of code in my e2e test...

var promise = ptor.isElementPresent(element(by.binding('firstName')));

I get an error that says TypeError: Invalid locator. I don't see many other people getting this error after googling it. Where did I make an error?

도움이 되었습니까?

해결책

I believe the syntax is(remove element(...)...

var promise = ptor.isElementPresent(by.binding('firstName'));
라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top