title: how to pass a variable through sendKeys in selenium webdriver?
body: <p>I want to pass the float variable 'f' through sendKeys in the below program.Can someone please let me know the same? As of now, it is throwing </p>
  
  <blockquote>
    <p>"The method sendKeys(CharSequence...) in the type WebElement is not applicable for the arguments ". </p>
  </blockquote>
  
  <p><strong>Code:</strong></p>
  
  <pre><code>public static String isEditable(String s1) {
      f=Float.parseFloat(s1);
      System.out.println(f);
  
      boolean bool=webDriver.findElement(By.xpath("expression")).isEnabled();
      if(bool) {
          if((f&lt;0) || (f&gt;6)) {
              error="Value must be between 0.00% and 6.00%";
              System.out.println(error);
          } else {
              webDriver.findElement(By.xpath(""expression")).sendKeys(f);
          }
      } else {
          error="Please enter a valid Number";
      }
      return error;
  }
  </code></pre>