Xpath在IE11中不起作用,但在Selenium的Chrome和Firefox中都有效

时间:2018-03-15 12:13:15

标签: html selenium xpath

我的xpath就像这样

driver.findElement(By.xpath("//td[contains(text(), '02-05 04:19:35 
PST')]//following-sibling::td//following-sibling::td//following- 
sibling::td//following-sibling::td//following-sibling::td//following- 
sibling::td//input[@type='image']")).click();

以上xpath在Firefox和Chrome中成功运行,但在IE11中我收到以下错误

org.openqa.selenium.InvalidSelectorException: Unable to locate an element with the XPath expression.

如何解决? 复杂路径在IE中有效吗?

0 个答案:

没有答案