Skip to content

Instantly share code, notes, and snippets.

@dianjuar
Last active April 18, 2019 17:26
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save dianjuar/5d911ebd36b71b9b22656724b7e1a4b2 to your computer and use it in GitHub Desktop.
Save dianjuar/5d911ebd36b71b9b22656724b7e1a4b2 to your computer and use it in GitHub Desktop.
A snippet to know how to catch states of your pages. Hovers, toasters, anything very hard to inspect

Open your web console and execute the snippet and wait to be executed then inspect the element

var timeToBeExecuted = 1000;
setTimeout(() => {
	debugger;
}, timeToBeExecuted);

Modify the timeToBeExecuted varaible if you feel it kind of short


Live example

Example

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment