Currently, I am working on creating an interaction test to validate my javascript code using WebdriverIO (wdio).
The specific functionality I am looking to test involves deleting a node and verifying that the number of times a selector appears has decreased by one after executing the delete function.
I would like to know if there is a way to utilize wdio to count the occurrences of a particular selector on a page. Can anyone provide guidance on how to achieve this?