title: Selenium Java Junit - Assert if the result is greater than 1000
body: <p>I am using Java Junit to verify the search result if greater than 1000 </p>
  
  <p>but Selenium can only storeText which is (String)</p>
  
  <p>Than I try to convert (String) to (Int)</p>
  
  <p>So that I can compare the search result(String) to 1000.</p>
  
  <p>However, it doesn't work. </p>
  
  <p>Also, I am not sure if I use assetThat in the right way.</p>
  
  <p>Anyone knows the answer please help!</p>
  
  <p>Thank you! </p>
  
  <p>In Java code: </p>
  
  <pre><code>    String result = selenium.getText("css=span.rcnt");
      System.out.println("Search result is: " + result);
  
      int foo = Integer.parseInt(result);
  
      assertThat("Pass", foo, greaterThan(1000));
  </code></pre>