Im使用Selenium Webdriver for IEIE XPath的Selenium Webdriver - c#
我無法將點擊發送到圖像。整個頁面使用特定的圖像 - 我試圖通過xPath來查找。
HTML片段:
<img src='Option.gif' border='0' style="cursor:hand;" onClick="javascript:DropDownOpen('ID_1_0_0_3_0_19');" />
的webdriver的代碼:
driver.FindElement(By.XPath("//img[contains(@onClick, \"javascript:DropDownOpen('ID_1_0_0_3_0_19');\"]")).Click();