【发布时间】:2016-01-19 09:24:48
【问题描述】:
我正在尝试确定以下图像/图标的元素。
注意:其他图标具有相同的 //div[@class='infor-collapsed-icon-img' 所以我认为我需要另一个唯一的 id 来识别下面的确切元素。顺便说一句,ID 是动态的
这是我迄今为止使用 xpath 尝试过的:
1.) //div[@class='infor-collapsed-icon-img' and contains(@title,'Print Manager - Print Manager webpart allows the Lawson workspace user to contextually filter the print files of batch Jobs.')]
2.) //img[@title='Print Manager - Print Manager webpart allows the Lawson workspace user to contextually filter the print files of batch Jobs.']
3.) //img[contains(@title,'Print Manager - Print Manager webpart allows the Lawson workspace user to contextually filter the print files of batch Jobs.')]
对此有什么想法吗?谢谢
【问题讨论】:
标签: java html selenium xpath selenium-webdriver