Skip to content

Instantly share code, notes, and snippets.

@muditlambda
Created April 10, 2020 14:50
/*window.open() method for window handling in Selenium C# */
js.ExecuteScript("window.open('" + test_url_2 + "', '_blank', 'toolbar=yes,scrollbars=yes,resizable=yes,width=800,height=800')");
System.Threading.Thread.Sleep(6000);
Assert.AreEqual(2, driver.WindowHandles.Count);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment