How to travel through a web element list and click a particular element in nodejs.
I have a problem where i have to click a particular element in a list of web elements. I tried using promise.filter()
method. Now i can click the element. But i cant stop the loop continuing travel to rest of the elements in element list even after i click the element.
Do you guys know how to perform this task in good way ? Can someone tell me how to break the loop after i click my desired element?
Aucun commentaire:
Enregistrer un commentaire