Currently, I am searching for a method to retrieve the last command that was logged in the firebug console.
As an illustration, I could implement something like:
console.debug('The most recent request URI is /sweatsocks');
Following that, another snippet of (pseudo)code could potentially be:
if (mostRecentConsoleEntry().endsWith('/sweatsocks')) {
// perform certain actions
}
The scenario involves having the debug statement within the code being tested, and checking the console inside a selenium script. This process would enable me to observe details hidden deep within javascript functions as well as dynamic content generated at runtime.