String elementId;
switch(result6[a]) {
case 2: elementId = "row1";
break;
case 3: elementId = "row2";
break;
case 4: elementId = "row3";
break;
}
String xpath = String.format("//*[@id="%s"]/div[14]/img", elementId);
driver.findElement(By.xpath(xpath)).click();
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…