创建动态Xpath

时间:2016-06-09 09:09:53

标签: xpath dynamic

我想点击'选择'前面的块包含文本," Byron测试20150904"。这个文字是动态的

//I want to click on 'Select' where preceding block contains text, "Byron Test 20150904". This text is dynamic

1 个答案:

答案 0 :(得分:0)

经过反复试验,我找到了答案

//div[@id='itOverview']/div[.//a[contains(text(),'Byron Test 20150904')]]/div/div[3]/div[2]/a