0

I need to get the contents of a URL as a String, but the page this url points to has javascript that runs on page load that manipulates the DOM. How can I retrieve the HTML with the javascript DOM manipulation included? Is something like Selenium the right option? If so, how would I do that?

user1007895
  • 3,813
  • 11
  • 40
  • 62

1 Answers1

0

Try doing this :

Use the pause command

And then use driver.getPageSource()

woofmeow
  • 2,270
  • 15
  • 12