Selenium WebDriver Click() fails with IE9

前端 未结 10 1853
礼貌的吻别
礼貌的吻别 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

    Is your site publicly available for test? Is your IE zoom level at 100%? It is a requirement for native click events to work from the documentation here

    The browser zoom level must be set to 100% so that the native mouse events can be set to the correct coordinates.

    If this doesn't work then it seems a bug in webdriver. You should open an issue here.

    Having said this, you could probably go the Java script route in the meanwhile as a temporary solution. Something like,

    driver.navigate().to("javascript:document.getElementById('yoursubmitbutton').click()");
    

提交回复
热议问题