WatiN.Core.IE window = new WatiN.Core.IE();
// Frames
// Model
TextField txt_txtName = window.TextField(Find.ByName("txtName"));
TextField txt_txtPassword = window.TextField(Find.ByName("txtPassword"));
Button btn_btnLogin = window.Button(Find.ByName("btnLogin"));
// Code
window.GoTo("http://134.554.444.55/asdfgfghh/");
txt_txtName.TypeText("fghfjghm");
txt_txtPassword.TypeText("gfhgjfgh");
btn_btnLogin.Click();
}
only the window.GoTo("http://134.554.444.55/asdfgfghh/"); code works and the rest are doing nothing,
When I am using a catch block it throws exception as
Could not find INPUT (hidden) or INPUT (password) or INPUT (text) or INPUT (textarea) or TEXTAREA element tag matching criteria: Attribute 'name' equals 'txtName' at "http://134.554.444.55/asdfgfghh/ (inner exception: Unable to cast COM object of type 'System.__ComObject' to interface type 'mshtml.IHTMLElement'. This operation failed because the QueryInterface call on the COM component for the interface with IID '{3050F1FF-98B5-11CF-BB82-00AA00BDCE0B}' failed due to the following error: Error loading type library/DLL. (Exception from HRESULT: 0x80029C4A (TYPE_E_CANTLOADLIBRARY)).)