public class CountFolder {
int count = 0;
public static void main(String[] args) {
CountFolder test1 = new CountFolder();
test1.doMethod();
}
public void doMethod() {
count++;
System.out.println(count);
}
}
我想在发送密钥部分调用它并保存计数。所以每次它都会创建一个新文件夹。
driver.findElement(By.xpath("xpath")).sendKeys("AutomationTest_count");