-3
有人可以請看看下面的代碼。它無限循環。請幫忙!While循環內無限循環Java Selenium
while (findelement("//*[starts-with(@class,'paging-next')]")) {
for (int i = 0; i < Hotel_Name.size(); i++) {
String h = Hotel_Name.get(i).getAttribute("title");
String s = Star_Rating.get(i).getAttribute("class");
System.out.println(h + "|" + s);
}
}
「findelement」函數到底做了什麼? – mhlz