Open GoogleCodeExporter opened 9 years ago
error message
未處理的例外狀況: 未處理的例外狀況:
Shrinerain.AutoTester.Core.CannotStartBrowse
rException: Can not start test browser.
於 Shrinerain.AutoTester.Core.TestBrowser.Start()
於 Shrinerain.AutoTester.Core.TestBrowser.Load(String url)
於 Shrinerain.AutoTester.Baidu.Main()
Shrinerain.AutoTester.Core.CannotAttachBrowserException: Can not hook test brows
er.
於 Shrinerain.AutoTester.Core.TestBrowser.AttachBrowser(IntPtr ieHandle)
於 Shrinerain.AutoTester.Core.TestBrowser.WaitForBrowserExist(String title, I
nt32 seconds)
於 Shrinerain.AutoTester.Core.TestBrowser.WaitForBrowserExist()
於 System.Threading.ThreadHelper.ThreadStart_Context(Object state)
於 System.Threading.ExecutionContext.Run(ExecutionContext executionContext, C
ontextCallback callback, Object state)
於 System.Threading.ThreadHelper.ThreadStart()
Original comment by fly...@gmail.com
on 3 Apr 2009 at 10:36
我觉得你的代码就不对
异常已经很明显了 CannotStartBrowse
没有调用start方法。好比没开灯就进房间当然要撞墙了
我是这样写的
TestSession ts = new HTMLTestSession();
ts.Browser.Start("www.baidu.com");//启动浏览器并打开网址
或者
TestSession ts = new HTMLTestSession();
ts.Browser.Start();//启动浏览器
ts.Browser.Load("www.baidu.com", true);//打开网址
Original comment by dogsl...@sina.com
on 20 Jul 2009 at 3:58
Original issue reported on code.google.com by
fly...@gmail.com
on 3 Apr 2009 at 10:33Attachments: