I need to open the IE using the button click in my Application. This the Working fine when we run using File system in ASP.Net but when we run using HTTP (Localhost) then not working
Description:
An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.
Exception Details: System.Runtime.InteropServices.COMException: Failed to start "Internet Explorer" browser!
Source Error:
Line 20:
Line 21: ICore core = new Core();
Line 22: IBrowser browser = core.StartBrowser("http://cgmdc.ncode.in/cgm-dc/login.aspx"); Line 23:
Line 24: browser.FindElement("input text", "id=Login1_UserName").InputText("STQL0911000315");
QTM_Jack
0 Points
2 Posts
Problem With IIS and COM +
Jul 03, 2012 02:12 PM|LINK
I need to open the IE using the button click in my Application. This the Working fine when we run using File system in ASP.Net but when we run using HTTP (Localhost) then not working
cgmdc.ncode.in/cgm-dc/login.aspx ");
<div>Refer below Code..this is call using Button Click
ICore core = new Core();
IBrowser browser = core.StartBrowser("http://
browser.FindElement("input text", "id=Login1_UserName").
browser.FindElement("input password", "id=Login1_Password").InputText("Test");
browser.FindElement("select", "id=Login1_ddlUserType").Select("Stockist");
browser.FindElement("input submit", "id=Login1_LoginButton").Click();
browser.FindElement("a", "id=ctl00_lnkDCPass").Click();
browser.FindElement("input checkbox", "id=ctl00_ContentPlaceHolder1_cnt_chkBuyer").Check();
browser.FindElement("select", "id=ctl00_ContentPlaceHolder1_cnt_ddlVehicalType").Select("Truck");
browser.FindElement("input checkbox", "id=ctl00_ContentPlaceHolder1_cnt_chkNumbers").Check();
browser.FindElement("form", "id=aspnetForm").Click();
We get this Error
URL: localhost/MacriIE/Default.aspx
Failed to start "Internet Explorer" browser!
Exception Details: System.Runtime.
Source Error:
Source File: i:\Project\Macro\Live\MacriIE\
Stack Trace:
adamturner34
Contributor
3938 Points
995 Posts
Re: Problem With IIS and COM +
Jul 03, 2012 02:26 PM|LINK
Curious, have to tried running the site in firefox?
QTM_Jack
0 Points
2 Posts
Re: Problem With IIS and COM +
Jul 04, 2012 09:06 AM|LINK
Yes I am running site in Firefox