Function: getListItemCount()
getListItemCount<
HostPartT>(host,itemLocatorBase):Promise<number>
Defined in: packages/core/src/drivers/listHelper.ts:61
Get the count of items in a list without instantiating driver instances. This is more efficient than calling getItems().length when you only need the count.
Type Parameters​
HostPartT​
HostPartT extends ScenePart
Parameters​
host​
ComponentDriver<HostPartT>
The component the list items are under
itemLocatorBase​
The locator of the list items without the index
Returns​
Promise<number>
The number of items in the list