开发者

help needed with xpath and selenium

selenium IDE gave me following xpath for string on page called "System". However this string may appear somewhere other than this place in future.

//ul[@id='idCTree_sor_ul']/li/ul/li[23]/span

how can I rewrite above xpath by spcifying text()="System" in xpath , so in future if index of that string is moved would not impact on my xpat开发者_如何学运维h


//span[./text() = 'System']
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜