标签: xpath selenium-webdriver
Snapshots displayed Field as well as Inspect element code. Always faced problem on writing xpath for table element. Xpath copied from Moxilla firbugs is worked sometimes but not always.. can any one tell how to write xpath of above code.... Thanks
答案 0 :(得分:-1)
您可以使用此xpath //table[@class='detailList']/tbody/tr/td[contains(text(),'Business Lease')]
//table[@class='detailList']/tbody/tr/td[contains(text(),'Business Lease')]