Selenium WebDriver Click() fails with IE9

前端 未结 10 1870
礼貌的吻别
礼貌的吻别 2021-02-15 17:13

(I\'ve looked at many other similar posts on SO and have unfortunately not been able to solve this problem, so here goes...)

I\'m using Selenium WebDriver (C# implementa

10条回答
  •  无人共我
    2021-02-15 18:17

    It looks like it may be a problem with where the mouse click occurs. I tried using the Actions mechanism in Selenium to force a mouse-click with a bit of an offset. It successfully click the element:

    new Actions(GuiOps.driver).MoveToElement(e).MoveByOffset(5,5).ClickAndHold().Release().Perform();
    

提交回复
热议问题