在循环中执行"for"Selenium负测试用例



我想把"循环继续执行,即使在Selenium java中错误发生后,在"if"中使用负测试用例"else"if - else语句。一些例子会很有帮助。

在for循环中使用try Catch

for(int i=0;i<=10;i++){
try{    
//your goes code here  
}catch(Exception e){
System.out.println("Exception thrown "+e);
}
}

最新更新