Skip to content

Instantly share code, notes, and snippets.

@rakannimer
Created March 6, 2020 13:34
Show Gist options
  • Save rakannimer/1ae1b439489a4f2d1b8d19aa8ab079d1 to your computer and use it in GitHub Desktop.
Save rakannimer/1ae1b439489a4f2d1b8d19aa8ab079d1 to your computer and use it in GitHub Desktop.
Array.from(new Set(Array.from(document.querySelectorAll('[data-testid]')).map(el => el["dataset"]["testid"])))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment