userimage

Open a new tab using Selenium WebDriver?

My application is running with Selenium WebDriver Automation with Firefix web browser.

Please let me know how can I open a new time from this?

userimage
Code to open a new tab

String selectLinkOpeninNewTab = Keys.chord(Keys.CONTROL,Keys.RETURN);
driver.findElement(By.linkText("urlLink")).sendKeys(selectLinkOpeninNewTab);


And this code will open empty new Tab.

String selectLinkOpeninNewTab = Keys.chord(Keys.CONTROL,"t");
driver.findElement(By.linkText("urlLink")).sendKeys(selectLinkOpeninNewTab);

Answer is