Smaller way to assert boolean set in for loop

后端 未结 0 781
北海茫月
北海茫月 2021-01-23 06:00

Is there a way to make the code below simpler and shorter?

boolean clicked = false;
    for (WebElement anchor : anchorLinksForProducts) {
        if (anchor.getA         


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题