How can I fetch the contents of a URL as a String when the page being accessed has JavaScript that modifies the DOM upon loading? Is using Selenium the best approach for capturing the HTML with the dynamic modifications included, and if so, how would I go about implementing it?