I can programmatically go to an url, get the response and parse it. But can I trigger the javascript click event of an html element of that response? For example, let's say the response contains an element:
<div id="test">Click me</div>
And the page handles the click event like:
$("#test").on('click'.....
etc.
So, is there a way that I can trigger that event after I get the html response?