I'm currently using the latest version of Selenium and its .net bindings to perform some tests. Unfortunately I have to simulate some reaction that happens at a variable time and can only be performed within a very limited time interval, and polling the DOM continuously is not fast enough. Is there a way for Selenium to hook to DOM events so that I could intercept the events I'm interested into in my code? If so, sample .net code would be greatly appreciated.
Gracias por adelantado
P.S.: I'm largely indifferent to the browser, however a solution that works in Chrome would be preferred
preguntado el 08 de noviembre de 11 a las 12:11
GetEval() will execute the code synchronously and return the value of the last expression in the block.
RunScript() will actually construct a new
RunScript() command completes).
Probablemente quieras usar
RunScript() to hook the event you want, and then have your test script wait until the event has had enough time to fire, then you can use
GetEval() to retrieve or verify the results of the event handler.