You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Jul 29, 2024. It is now read-only.
Just started converting our older Protractor tests to start using TypeScript and I noticed I was getting errors when using browser.isElementPresent(by.css('example-css')) saying that it should be a type of ProtractorBy.
I'm pretty sure this is supposed to be Locator like it is in the element.d.ts file.
I'm using protractor version 4.0.13. And looking at 4.0.14 doesn't look like that was updated to match either.
If I'm wrong please let me know what I should be using for browser.isElementPresent or should I just abstain from using that and using element(by.id('parent-element')).isElementPresent(by.css('example-css'). Going to continue to see if I can actually get the element(by.id('parent-element')).isElementPresent(by.css('example-css') working.
The text was updated successfully, but these errors were encountered:
For now I did end up using a element(by.tagName('body')).isElementPresent(by.css('example')) in case anyone encounters this issue before the fix is in.
sjelin
added a commit
to sjelin/protractor
that referenced
this issue
Dec 22, 2016
Just started converting our older Protractor tests to start using TypeScript and I noticed I was getting errors when using
browser.isElementPresent(by.css('example-css'))
saying that it should be a type ofProtractorBy
.I'm pretty sure this is supposed to be
Locator
like it is in the element.d.ts file.I'm using protractor version 4.0.13. And looking at 4.0.14 doesn't look like that was updated to match either.
If I'm wrong please let me know what I should be using for
browser.isElementPresent
or should I just abstain from using that and usingelement(by.id('parent-element')).isElementPresent(by.css('example-css')
. Going to continue to see if I can actually get theelement(by.id('parent-element')).isElementPresent(by.css('example-css')
working.The text was updated successfully, but these errors were encountered: