0

I am building a chrome extension that is made to automate some of the more boring tasks of a website. The website seems to be running a Java Webapp rather than using typical JavaScript (I think this because the url never changes. it stays as longurl/player/ but I am not familiar whatsoever so there is a good chance I am completely wrong with this guess.)

The issue I am having is when I'm calling a document.getElementsByClass or document.getElementById after making some progress within the website (in this case moving to the next slide) google seems to lose track of the elements of the page. This is not an issue with my script as the google debug console also cannot find these elements. (Shown Below)

Console View Page Source

The most strange thing about this to me is that when I go up and edit the page source as HTML (not even changing anything just hitting the button and clicking out) the console is then able to find the element just fine. Is this a common issue? Or is it just something simple that I am overlooking?

  • I am not sure I understood the last part, but could the element you are trying to select be in an iframe perhaps? – Gergely Szabo Feb 12 '20 at 14:29
  • It is in an iframe, does this make what I am trying to do impossible? – Still a piece of garbage Feb 12 '20 at 15:44
  • @GergelySzabo Never mind, after doing some of my own research I have found how to retrieve an element from an iframe. If you would like to add an answer to this post like regarding iframes, I will accept it. Thank you very much for your help :) – Still a piece of garbage Feb 12 '20 at 15:56
  • I think you should answer it with details of how you have solved it. Anyways, in case you won't, here is how to select from within an iframe: https://stackoverflow.com/questions/1088544/get-element-from-within-an-iframe – Gergely Szabo Feb 12 '20 at 21:18

0 Answers0