我试过这段代码,但我仍然有一个错误:
IWebDriver driver;
driver = new InternetExplorerDriver("C:\\", options);
driver.Navigate().GoToUrl("http://www.marathonbet.com/en/");
IJavaScriptExecutor js = driver as IJavaScriptExecutor;
string title = (string)js.ExecuteScript("window.find('Japan',0,0,0,0,0,1)");
所以我想知道这个功能是否有替代品