Monday, January 16, 2012

How to get IE Status Bar information with WatiN

Does your application have unhandled javascript errors?
 
Should it be tested?
The solution is simple  (but only for IE):
((IEBrowser)(browser.NativeBrowser)).WebBrowser.StatusText 
where browser - is you local instance of Browser class.


by using WebBrowser you have access to all members of IWebBrowser2 Interface.
For more details  about IWebBrowser2 please see  - http://msdn.microsoft.com/en-us/library/aa752127(v=vs.85).aspx