I need to hook JavaScript function calling using HtmlUnit. I have wrote something like:
var orgSetInterval = window.setInterval;
window.setInterval = function(p1, p2)
{
myfunc(p1,p2);
orgSetInterval(p1, p2);
}
So. All I need is to call some Java method (myfunc) within JavaScript code. Is it possible using HtmlUnit?