How to handle multiple elements with the same class in laravel dusk
问题 In my dusk test I want to firstly add and then delete news. Each news has .delete-news class but on the screen I have multiple elements. Each .delete-news class has in it's path data attribute with it's id data-newsid="id" . Now the browser does not know which delete-news class it should to click. How should I manage that? Probably I should take delete-news class with the biggest data-newsid attribute. But I don't know how I should check it. Currently I'm deleting it like this: public