For now, locator.count() returns immediately. If the element(s) take time to load, then the count is not accurate.
It would be nice if users could specify a wait time (or timeout) for the function.
Context: I am using if(locator.count()) > 0) to check element existence in my Page Object since there lacks a straightforward way to achive such goal.
For now, locator.count() returns immediately. If the element(s) take time to load, then the count is not accurate.
It would be nice if users could specify a wait time (or timeout) for the function.
Context: I am using
if(locator.count()) > 0)to check element existence in my Page Object since there lacks a straightforward way to achive such goal.