Selenium WebDriver Click() fails with IE9

前端 未结 10 1866
礼貌的吻别
礼貌的吻别 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 17:53

    try this..
    WebElement hiddenWebElement =d.findElement(By.xpath(xpath));
    ((JavascriptExecutor)d).executeScript("arguments[0].click()",hiddenWebElement);

提交回复
热议问题