Search code examples
.netvisual-studio-2015watin

An unhandled exception of type 'WatiN.Core.Exceptions.RunScriptException' occurred in WatiN.Core.dll


An unhandled exception of type 'WatiN.Core.Exceptions.RunScriptException' occurred in WatiN.Core.dll Additional information: RunScript failed ....can anybody give solution to this error ???

browser.GoTo("http://www.errajatsharma.com/invoice/");
browser.TextField(Find.ByName("email")).TypeText("[email protected]");            
browser.TextField(Find.ByName("password")).TypeText("98983662634");
browser.Div(Find.ByName("submit")).Click();

i m getting the above error when the debugger reaches typetext event...can anybody help me please ???


Solution

  • i ws using a wrong version version of internet explorer...watin supports IE 6,7 and 8 version only...now i m using firefox version 2.0 ...and upto 3.6 version is supported in watin ...That's why It was giving error in watin.core.dll...Rest of the code is same....anyways Thanks for ur help buddy !! :)