我想根据td文本值获取td代码值。请参阅附图。请帮助!!
以下代码无效
WebElement test1 = driver.findElement(By.xpath("//table[@class='table table-striped-admin']//tr//td[contains(text(),'"+tag_name+"')]//td//code"));
test1.getText();
答案 0 :(得分:0)
也许是这样的:
s.next()
???