0

Java code

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

C#?

2
  • 1
    Stack Overflow is a Question and Answer site, not a code translation service. Try to translate the code yourself first, then come to us when you are stuck, making sure to show us what you have tried. Commented Sep 18, 2014 at 16:57
  • 2
    stackoverflow.com/questions/6229769/… Commented Sep 18, 2014 at 16:59

1 Answer 1

-1
IJavaScriptExecutor js = driver as IJavaScriptExecutor; 
string title = (string)js.ExecuteScript("window.open();");
Sign up to request clarification or add additional context in comments.

Comments

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.