I just stunbled across selenium as a tool to take screenshot.
Thuis could be useful for anything.
In my case i used it to take the screenshot of a page just before it throws an error in my selenium test. and that i could have a look and investigate what the problem might have been.
very simple command and the great thing is it can be easily used for screenshots of a page across different browsers.
Well selenium has a method “FireEvent” which triggers the event for you, but then the trick is you have to strip the “on” and name for the event wouldbe “OnBlur”
I guess abit of example would make more sense, lol. This is what my html look like