I want to emulate a middle button mouse click on a text URL on a page so it will open on a new tab, in Selenium coding in JavaScript.
For example:
await driver.get("https://google.com");
//thats the xpath for the 'terms' text url
await driver.findElement(By.xpath('/html/body/div[1]/div[5]/div[2]/div[2]/a[2]')).click();