3

Trying to get these 2 elements having the same class with "document.querySelectorAll(".sc-gHboQg"), but it returns and empty NodeList:

enter image description here

As soon as I inspect the element: enter image description here

only now I can get them: enter image description here

As far as I understand these elements are outputted dynamically in javascript, probably react, but how can I get them without having to inspect them first?

chazsolo
  • 7,873
  • 1
  • 20
  • 44

1 Answers1

1

It is due to the javascript console changed scope after you inspect element. Notice how top in the first image changed to something else(mews...) in the second image.

Your target element is probably in an iframe, or something that is not in a same javascript console scope than the top window?

William Chong
  • 2,107
  • 13
  • 24