garris / garris/BackstopJS

One selector - multiple elements

Open
#253 4 comments 1 reaction 0 assignees View on GitHub
Dominant language
JavaScript
Stars
7.2k
Forks
621
PR merge metrics
No merged PRs in 30d

Description

Is it possible to use one selector, ex: `.container` to target and get screenshots of all matching elements?

I have created a styleguide and would like to use BackstopJS to test all the different items. They are all wrapped in a ".container". Hope there is a simpler way than to write:

`.container:nth-of-type(1)`,
`.container:nth-of-type(2)`,
`.container:nth-of-type(3)`,
`...`
`.container:nth-of-type(42)`,

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.