title: How to point to a table and download csv files from a website using selenium
body: <p>Posted 11 days ago
  I am automating a process wherein I have to login to website and download only the CSV files from the different types of files available on that website.</p>
  
  <p>I am trying to do the below steps :</p>
  
  <ol>
  <li><p>Launch the url - "<a href="https://www.shipper-ml.com" rel="nofollow noreferrer">https://www.shipper-ml.com</a>"</p></li>
  <li><p>Login. username - zzzzzzzzzzz Password- xxxxxxxxxxxxxxxx</p></li>
  <li><p>Navigate to "<a href="https://www.shipper-ml.com/viewReports.do/" rel="nofollow noreferrer">https://www.shipper-ml.com/viewReports.do/</a>" page.</p></li>
  </ol>
  
  <p>I am trying to download the csv files from the above website</p>
  
  <p>Is it possible to achieve this using selenium. If yes, can somebody help me on how to go ahead ?</p>
  
  <pre><code>package package1;
  
  import org.openqa.selenium.By;
  import org.openqa.selenium.WebDriver;
  import org.openqa.selenium.chrome.ChromeDriver;
  
  public class Tutorials1 {
  
  public static void main(String[] args) throws InterruptedException {
  String exepath="C:\\Users\\sh370472\\Downloads\\chromedriver_win32 (2)\\chromedriver.exe";
  System.setProperty("webdriver.chrome.driver", exepath);
  WebDriver driver=new ChromeDriver();
  driver.get("https://www.shipper-ml.com");
  driver.findElement(By.id("inpUserId")).sendKeys("zzzzzzzzzzz");
  driver.findElement(By.id("inpPassword")).sendKeys("xxxxxxxxxxxxxxxx");
  driver.findElement(By.id("btnLogonLabel")).click();
  Thread.sleep(1000);
  driver.get("https://www.shipper-ml.com/viewReports.do");
  }
  </code></pre>
  
  <p>}</p>