0
我想根據td文本值得到td代碼值。請參考附件圖片。請幫助!Selenium webdriver - Java - 如何從tr元素獲取代碼值?
下面的代碼沒有工作
WebElement test1 = driver.findElement(By.xpath("//table[@class='table table-striped-admin']//tr//td[contains(text(),'"+tag_name+"')]//td//code"));
test1.getText();
你真棒庫巴!有用 :) – Selvi