See this blog post:
but that is in Java, does not cover Robot Framework and Selenium2Library, but the concepts can be adapted. Using that example, it is probably easier to adapt with the Java version of the Selenium2Library rather than Python.
This that I mention of course is for the unseen javascript errors or ones that pop up an error on IE (but usually only show up in javascript console for other browsers). This does not apply to special alert/confirmation popups indicating an error or question to proceed/cancel to the user, which are not "javascript" errors but javascript prompts/alerts.
On Tuesday, May 28, 2013 12:02:06 AM UTC-7, Prakash Rao wrote:
Hi ..even I m facing the same problem..but some times Im getting JS error and some times I m not getting..I dont know how to handle this..
If you are continuosly getting js error then use "Get Alert Message" or "Alert should be present" commands.
Regards:
Prakash.