Код: Выделить всё
var ieOptions = new InternetExplorerOptions();
ieOptions.AttachToEdgeChrome = true;
//change the path accordingly
ieOptions.EdgeExecutablePath = "C:/Program Files (x86)/Microsoft/Edge/Application/msedge.exe";
var driver = new InternetExplorerDriver(ieOptions);
driver.Navigate().GoToUrl("url");
var initialHandleCount = driver.WindowHandles.Count;
driver.FindElement(By.Id("_idJsp9")).Click();
var newHandles = driver.WindowHandles;
while (newHandles.Count == initialHandleCount)
{
newHandles = driver.WindowHandles;
}
Я пробовал использовать последние версии IEDriverServer 32 и 64 бит. . При использовании обоих — одна и та же проблема.
Любые предложения/другие способы решения этой проблемы.
Подробнее здесь: https://stackoverflow.com/questions/787 ... ion-open-n
Мобильная версия