title: how to identify data is displaying or not in selenium
body: <p>condition:how To check data is displayed or not </p>
  
  <pre><code>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()&gt; 0;
  
  if (isPresent3 == true) {
      System.out.println("Aflam data exists");                    
  }
  else {
      System.out.println("Aflam data does not exists");
  }
  </code></pre>
  
  <p><a href="https://i.stack.imgur.com/Gjx87.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/Gjx87.png" alt="enter image description here"></a></p>
  
  <pre><code>Boolean isPresent3 = driver.findElements(By.cssSelector("csspath")).size()&gt; 0;
  </code></pre>
  
  <p>this code some time works sometimes not any good solution that works evrytime</p>