title: Selenium to throw error if value entered is more or less than the allowed limit
body: <p>What would be the best code for such problem, i need to make sure the values enter count is not less than 3 and not more than 250, if user enters less than 3 or more than 250 characters the test should keep going but printout error saying (test failed word count exceeded/less than minimum)</p>
  
  <p>my code </p>
  
  <p>public void enteringtask(String values){</p>
  
  <pre><code>    if(values == String.valueOf(2));
      return "needs to be 3";
  
      enterTask.sendKeys(values);
  </code></pre>