原创 selenium使用Xpath定位的四種方法

第一種方法:通過絕對路徑做定位(相信大家不會使用這種方式) By.xpath("html/body/div/form/input") By.xpath("//input") 第三種方法:通過元素索引定位 By.xpath("//in