내가 watin와 협력 및 URL을 열려고하지만 때라도 예외 얻고 있어요 안녕하세요 : (열린 우리당 URI를 WatiN.Core.IE.CreateNewIEAndGoToUri에서탐색 브라우저 고토
을 IDialogHandler logonDialogHan의 dler, 부울 createInNewProcess) WatiN.Core.IE..ctor() WatinTesting.Program.Main (String [] args) c : \ users \ admin \ documents \ visua l studio 2010 \ Projects \ WatinTesting \ WatinTesting \ Program에 있습니다. cs : 줄 20
코드 이전 작업 g 괜찮아. 오해는 무슨 일이 일어나고 있는지 알려 주시기 바랍니다 :
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using WatiN.Core;
using WatiN.Core.Native.InternetExplorer;
using System.Threading;
namespace WatinTesting
{
class Program
{
[STAThread]
static void Main(string[] args)
{
try
{
IE browser = new IE();
browser.GoTo("http://google.com");
browser.TextField(Find.ByName("q")).TypeText("WatiN");
browser.Button(Find.ByValue("Google Search")).Click();
}
catch (Exception e)
{
Console.WriteLine(e.StackTrace);
Thread.Sleep(10000);
}
}
}
}