2

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:

WebDriver driver = new FirefoxDriver();
driver.get("link");
String pageSource = driver.getPageSource();

But I also need to get the same way content of .js file. It always the same js file - initItemDetail.js

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.

4

0 回答 0