条件:如何检查数据是否显示Boolean isPresent3 = driver.findElements(By.cssSelector(".input-horizon.horizon-program-guide.form-control.ng-pristine.ng-untouched.ng-valid.ng-not-empty.ng-valid-min")).size()> 0;if (isPresent3 == true) { System.out.println("Aflam data exists"); }else { System.out.println("Aflam data does not exists");}Boolean isPresent3 = driver.findElements(By.cssSelector("csspath")).size()> 0;这段代码有时有效,有时不是任何有效的解决方案
添加回答
举报
0/150
提交
取消