selenium web driver element click not working in windows 10

后端 未结 3 1606
你的背包
你的背包 2021-01-27 02:33

I am using selenium webdriver for automation tool creation in C#. That automation working fine windows 7, but not working windows 10.

ex.

driver.FindElem         


        
3条回答
  •  温柔的废话
    2021-01-27 02:57

    Try this:

    Instead of .Click();* use .SendKeys(Keys.Return);

    driver.FindElement(By.XPath("//button[@type='submit']")).SendKeys(Keys.Return);
    

提交回复
热议问题