這是我編寫的代碼,但是沒有用。任何建議都會有所幫助
IWebDriver driver = new ChromeDriver(@"C:\Selenium Automation\");
driver.Navigate().GoToUrl("https://thealivecard.com/");
Actions action = new Actions(driver);
action
.KeyDown(Keys.Control)
.SendKeys("t")
.KeyUp(Keys.Control)
.Build().Perform();
Console.WriteLine("new tab");