Selenium C# Open New Tab CTRL+T Not working with CHROME

后端 未结 4 1429
太阳男子
太阳男子 2021-01-12 00:14
static void Main()
{
    IWebDriver driver = new ChromeDriver();
    driver.Navigate().GoToUrl(\"http://google.com\");
    IWebElement body = driver.FindElement(By.T         


        
4条回答
  •  执念已碎
    2021-01-12 00:30

    Looks like it's a "feature" of the chrome driver.

    https://bugs.chromium.org/p/chromedriver/issues/detail?id=581

    This is a limitation in the way we simulate keyboard input in ChromeDriver. Keys get sent directly to the render process, bypassing the browser process. So any keyboard shortcut handlers in the browser process will not be invoked by sendKeys().

提交回复
热议问题