I am writing the selenium UI tests. I need to open the link in new tab after I click the URL. I used the below code but didn't work.
Actions action = new Actions(WebDriver);
action.KeyDown(Keys.Control).MoveToElement(TermsOfUseLinkElement).KeyUp(Keys.Control).Click().Build().Perform();
Any other suggestions?