2016-11-17 24 views

回答

0

下面是工作進行的順利:-)

的System.out.println(driver.findElement(By.xpath(」 .//*[@ ID = '反應根'] /section/main/article/header/div[2]/ul/li[2]/span/span")).getAttribute("title「));

較短的XPath:

的System.out.println(driver.findElement(By.xpath( 「//跨度[@ ID = '反應根'] //跨度[@title]」))。的getAttribute( 「標題」));

相關問題