如何在 Chrome .NET 中使用 Selenium WebDriver 上传文件。
版本 Chrome (20.0.1132.57)。版本 chromedriver 22.0.1203.0b
代码:
driver.GetElement(someXpath).SendKeys(filePath)
抛出异常:
Element is not clickable at point (144, 90.5). Other element would receive the click: <h2>...</h2>
HTML代码:
<a class="button addfile"> Upload <input class="fileupload" type="file" multiple="" name="files[]"/> </a>