Selectors not working

Hi,
I am on my plugin global page and I want to make use of some selectors like:

document.querySelectorAll(“table”)

but this keeps getting me null value. Why it doesn’t work properly? There is element

there for sure…