Selenium 4.0 Command to Open New Window & Tab

In Selenium 4.0, you can open new window & tab using "newWindow" command. Please note: Selenium 4.0 is yet to be released. However, you can try this feature using Firefox 66 & Selenium 4.0.0-alpha-1 versions.

Selenium 4.0 (Alpha) Maven Dependency
System.setProperty("webdriver.gecko.driver", "drivers/geckodriver.exe");
WebDriver driver = new FirefoxDriver();


Follow our blog to receive Selenium related updates.

Leave a Reply

Your email address will not be published. Required fields are marked *