Java Selenium阴性测试用例将在";至于;环
我希望即使在SeleniumJava中使用“if”“else”if-else语句中的否定测试用例出现错误之后,“for”循环仍能继续执行。一些示例将非常有用。使用Java Selenium阴性测试用例将在";至于;环,java,selenium,selenium-webdriver,Java,Selenium,Selenium Webdriver,我希望即使在SeleniumJava中使用“if”“else”if-else语句中的否定测试用例出现错误之后,“for”循环仍能继续执行。一些示例将非常有用。使用尝试捕捉内部for循环 for(int i=0;i<=10;i++){ try{ //your goes code here }catch(Exception e){ System.out.println("Exception thrown "+e); } } for(int i=0;i
尝试捕捉内部for循环
for(int i=0;i<=10;i++){
try{
//your goes code here
}catch(Exception e){
System.out.println("Exception thrown "+e);
}
}
for(int i=0;i