c#中的selenium javascript执行器代码相当于什么?

时间:2014-09-18 16:54:02

标签: java c# selenium

Java代码

((JavascriptExecutor)driver).executeScript("window.open();");

C#?

1 个答案:

答案 0 :(得分:-1)

IJavaScriptExecutor js = driver as IJavaScriptExecutor; 
string title = (string)js.ExecuteScript("window.open();");