title: Using selenium WebEngine to get .js file content (when saved .js file is in pagename_files folder)
body: <p>I need to parse page. I couldn't find element I need in html source, but found it in .js file. When I save page with firefox(and choose complete webpage) it is stored in pagename_files folder. I want to get this .js file content for further parsing. Now I use this code:</p>
  
  <pre><code>WebDriver driver = new FirefoxDriver();
  driver.get("link");
  String pageSource = driver.getPageSource();
  </code></pre>
  
  <p>But I also need to get the same way content of .js file.
  It always the same js file - initItemDetail.js </p>
  
  <p>Googled it but no success, I really need help. Figthing for 3 days now with this dynamic element which I need to parse. The only good thing is: I learned a bit of javafx and selenium doing this.</p>