title: not able to download file in my project directory using selenium
body: <p>i am not able to download file in my Project directory how can i download that any one help me for this
  below is my code</p>
  <pre><code>downloadlink.click();
  String Resumedownloadpath=&quot;C:\\Users\\admin\\Downloads\\cb-comAutomation\\src\\test\\resources\\Download&quot;
  Assert.assertTrue(isFileDownloaded(Resumedownloadpath,&quot;new_resume_001 (1).docx&quot;),&quot;Failed to download Expected document&quot;);//this is verify using assert
  public boolean isFileDownloaded(String Resumedownloadpath, String fileName){//this function is validation
          boolean flag = false;
          File dir = new File(Resumedownloadpath);
          File[] dir_contents = dir.listFiles();
              
          for (int i = 0; i &lt; dir_contents.length; i++) {
              if (dir_contents[i].getName().equals(fileName))
                  return flag=true;
                  }
  
          return flag;
      }
  </code></pre>