There are certain webpages that utilize JavaScript and AJAX calls to populate fields during or after the page has loaded. An example can be found at this link, where the content in a size dropdown box is filled using JavaScript.
I am wondering if it is possible to fully load a page of this nature using Java. I believe that simply using HttpClient or other methods may not be enough, but perhaps Selenium could provide a solution, if feasible.
I am looking for a generic solution that could work across all websites.
Any suggestions or guidance on this matter would be greatly appreciated.
Thank you,
Jitendra