This repository was archived by the owner on Jul 29, 2024. It is now read-only.
This repository was archived by the owner on Jul 29, 2024. It is now read-only.
ElementArrayFinder does not support isPresent() #3812
Closed
Description
When refactoring page objects to use $$() instead of element(by()), I found that all my isPresent() calls blew up. It seems that ElementArrayFinder does not have isPresent(). This was hard to comprehend because I thought that EAFs and EFs were functionally interchangeable (and the api docs suggest so). EAFs seem to have all the same functions as EFs... except this one.
Kinda surprised I can't find any other examples of people running into this.
I suggest that EAF.isPresent be implemented, and it could just be something like function(){ return this.count>0; }
- Node Version:
6.9.1
- Protractor Version:
4.0.9
- Angular Version:
1.5.5
- Browser(s):
chrome
- Operating System and Version
OSX 10.11.6