Your only hope for this is to do it in JavaScript. You can run arbitrary JavaScript code using ISelenium.GetEval() or ISelenium.RunScript() . GetEval() will execute the code synchronously and return the value of the last expression in the block. RunScript() actually build a new <SCRIPT> element in the DOM with your code, which will cause the browser to run it asynchronously, waiting for the JavaScript engine to work (i.e., at least after the RunScript() command completes).
You probably want to use RunScript() to hook the event you want, and then run a test script until the event has enough time to fire, then you can use GetEval() to retrieve or verify the results of the event handler.
source share