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.
在以下代码片段中,accounts 表最后一列中下拉元素的XPath在Subtab和Main page中是相似的。
我正在使用 XPath 表达式
//table/tbody/tr[2]/td[10]/span/div/a[2][@role="button"]
单击下拉元素。但无法这样做,因为它也恰好出现在上一页中。
无论标签如何,请帮助我识别唯一性。
你可以使用这个 XPATH :-(//table/tbody/tr[2]/td[10]/span/div/a[2][@role="button"])[1]
(//table/tbody/tr[2]/td[10]/span/div/a[2][@role="button"])[1]