我需要使用IE的webdriver不使用IDEServer。如果我不使用「InternetExplorerDriver」 和路徑它給這個錯誤。使用IE的webdriver不使用IDEServer
IEDriverServer.exe不存在 - 文件c:\ users \ administrator \ documents \ visual studio 2010 \ projects \ TestProject1 \ TestProject1 \ bin \ Debug \ IEDriverServer.exe不存在。該驅動程序可以在http://code.google.com/p/selenium/downloads/list下載。
是否有連接到IEDriver不運行IDEServer同時還需要覆蓋安全錯誤的方式「有此網站的安全證書有問題。」
是否有任何替代
IWebDriver driver;
var options = new InternetExplorerOptions();
//options.IntroduceInstabilityByIgnoringProtectedModeSettings = true;
driver = new InternetExplorerDriver("D://Software", options);
driver.Navigate().GoToUrl("www.google.com");//EXAMPLE
driver.Navigate().GoToUrl("javascript:document.getElementById('overridelink').click()");
IWebElement uname = driver.FindElement(By.Id("ctl00_uxContentPlaceHolder_uxUsername"));
uname.SendKeys("chris");
IWebElement pwd = driver.FindElement(By.Id("ctl00_uxContentPlaceHolder_uxPassword"));
pwd.SendKeys("chris1*");
我提供的回答你的問題,但作爲一個跟進,你說,你「需要使用IE的webdriver不使用IDEServer」。這引出了爲什麼你認爲你需要避免使用獨立可執行文件的問題。 「要求」不使用IEDriverServer.exe的用例是什麼? – JimEvans