Wednesday, October 9, 2024

How to inspect hard to get elements

 Today I learned how to inspect hard to get elements in the DOM using a CSS trick in the console. 

So what you basically do is that you go into the console, you set a delay timer and then run the debugger. Before the debugger starts you open the elements that e.g in my case it was a dropdown 

The command is setTimeout(() => {debugger;},3000)

This just freezes the DOM, it currently works for Chrome, it should also work on other browsers




How to inspect hard to get elements

 Today I learned how to inspect hard to get elements in the DOM using a CSS trick in the console.  So what you basically do is that you go i...