Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我想通过 xpath 获取一些文本,并且该文本出现在行数不断变化的表的最后一行。
我想在这里用任何数字更改数字 6。可能吗?
//*[@id='entire_ajax_table']/tbody/tr[6]/td/span/input
last()使您可以访问序列中的最后一个元素。
last()
//*[@id='entire_ajax_table']/tbody/tr[last()]/td/span/input