BackstopJS
BackstopJS copied to clipboard
How to trigger multiple items with the same class?
I have a specific class that appears multiple times on the page (i.e. dropdown containers) and I want to open all. As far as I noticed the querySelector is used because only the first occurrence is being triggered. Is there a way to trigger multiple ones? (ie instead of querySelector use querySelectorAll, or always use the second and if I need an item I can specify with :nth-child(X))
https://github.com/garris/BackstopJS#selectorexpansion
I think this is what you are looking for.