开发者

help needed with xpath and selenium

开发者 https://www.devze.com 2022-12-20 23:59 出处:网络
selenium IDE gave me following xpath for string on page called \"System\". However this string may appear somewhere other than this place in future.

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

精彩评论

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

关注公众号