I'm using below line of code
driver.findElement(By.cssSelector("Body")).sendKeys(Keys.CONTROL + "t");
this is not working.
I'm using Selenium with Java.
I need to open two websites parallelly in the same browser chrome or Firefox.
I have used below line to create new tab but not working
driver.findElement(By.cssSelector("Body")).sendKeys(Keys.CONTROL + "t")
If not this then what is the correct way to do so.