title: The primitive type int of OutputType does not have a field FILE while using screenshot code
body: <p>hi i am using this code for screen shot but i am getting above error please help me if some one can thank you <a href="https://i.stack.imgur.com/PVgi5.png" rel="nofollow noreferrer">enter image description here</a>
  public static void takeScreen(String FilePath, String Value) {</p>
  
  <pre><code>    File ts=(File) ((TakesScreenshot)driver).getScreenshotAs(OutputType.FILE);
      FileUtils.copyFile(ts,new File(FilePath));
  
  
  }
  </code></pre>