Being new to Selenium, I am a JavaScript programmer interested in handling JavaScript events within my Selenium-2 tests (JUnit). Upon joining a team that already has existing tests with "waitForSomethingToBeRendered" methods, I am curious if there is a way for my Selenium tests to listen for DOM or custom events.
I have come across developers using FireBug to write and debug their Selenium-2 tests. However, I am unable to see FireBug in the browser launched by Selenium. Additionally, my attempts at utilizing certain commands such as 'alert' and 'debugger' seem to have no effect. Could it be possible that I am trying something outside the capabilities supported by Selenium/JUnit?
selenium().getEval("alert('hello');");
selenium().getEval("debugger;");