The error page is just a regular Apache Tomcat 500 error. I can try and reproduce tomorrow if I have time in the morning.
On 23 August 2010 18:03, Jian Fang <[email protected]> wrote: > Tellurium delegates the getHtmlSource call to selenium api > > Selenium.prototype.getHtmlSource = function() { > /** Returns the entire HTML source between the opening and > * closing "html" tags. > * > * @return string the entire HTML source > */ > return > this.browserbot.getDocument().getElementsByTagName("html")[0].innerHTML; > }; > > Seems if there is any html tag with inner html, it should return the > content. I an not sure > what your 500 error page looks like, could you take a look at the page > source to > see if the page includes a html tag? > > Thanks, > > Jian > > On Mon, Aug 23, 2010 at 8:17 AM, Jonathan Share <[email protected]> wrote: >> >> Hi, >> >> I have some code written that whenever any of my tellurium tests fails >> I call getHtmlSource() and write the response to a file for later >> analysis. This seems to work fine as long as the server returns an >> HTTP error code in the 2XX and 4XX ranges (200, 404, 410) however if >> the application under test returns a 500 error my call to >> getHtmlSource() returns null. >> >> Is there a way to retrieve the HTML that was returned for these 500 >> errors? Or at least verify that a 500 response was received by the >> browser? >> >> Regards, >> >> Jonathan >> >> -- >> You received this message because you are subscribed to the Google Groups >> "tellurium-users" group. >> To post to this group, send email to [email protected]. >> To unsubscribe from this group, send email to >> [email protected]. >> For more options, visit this group at >> http://groups.google.com/group/tellurium-users?hl=en. >> > > -- > You received this message because you are subscribed to the Google Groups > "tellurium-users" group. > To post to this group, send email to [email protected]. > To unsubscribe from this group, send email to > [email protected]. > For more options, visit this group at > http://groups.google.com/group/tellurium-users?hl=en. > -- You received this message because you are subscribed to the Google Groups "tellurium-users" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/tellurium-users?hl=en.
