for (int i = 1; i >=0 ; i--) {
driver.findElement(By.cssSelector("form.form-inline > input:nth-of-type(1)")).sendKeys(n);
Select option = new Select(driver.findElement(By.cssSelector("select")));
option.selectByValue("MULTIPLICATION");
driver.findElement(By.cssSelector("form.form-inline > input:nth-of-type(2)")).sendKeys(String.valueOf(i));
driver.findElement(By.id("gobutton")).click();
Thread.sleep(5000);
/** vvv Line Below vvv **/
String q =(driver.findElement(By.className("ng-binding")).getText());
}
我强调的是每次循环进行时都会发生变化。这如何将每次文本保存到不同的字符串?