question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

`selectorExpansion` or `enableSelectorExpansion`?

See original GitHub issue

Hi, I’m trying to get BackstopJS to take screenshots of a bunch of selectors on the same page, all with the same classname.

Looking at the documentation, I should use "selectorExpansion": true, and then the selectors. But when this didn’t work for me, I checked for issues related to this and found this PR where the feature is added. The code for that is "enableSelectorExpansion": true.

Which is the correct one to use? I’ve tried both but neither of them seem to work for me. I’m using version 2.1.3, so I wanted to check – is this feature still in progress?

For reference, I’m expecting this:

"selectorExpansion": true,
"selectors": [
  ".styleguide .pattern"
]

to give me individual screenshots of all the elements with a class of .pattern. Let me know if I’ve misunderstood this feature.

Thanks for all your work on this 😄

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Comments:18 (10 by maintainers)

github_iconTop GitHub Comments

1reaction
garriscommented, Nov 2, 2016

Wow – great find!!! I will patch this as soon as I can – hopefully today! Thanks for doing that detective work!

0reactions
garriscommented, Nov 2, 2016

Nice! Thanks for beta-using – really helps to get that insight. Cheers.

Closing ticket – feel free to reopen if needed.

Read more comments on GitHub >

github_iconTop Results From Across the Web

No results found

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found