标签: java c# selenium
Java代码
((JavascriptExecutor)driver).executeScript("window.open();");
C#?
答案 0 :(得分:-1)
IJavaScriptExecutor js = driver as IJavaScriptExecutor; string title = (string)js.ExecuteScript("window.open();");