package data_manipulation;

import org.openqa.selenium.By;
import org.openqa.selenium.WebDriver;
import org.openqa.selenium.WebElement;
import org.openqa.selenium.chrome.ChromeDriver;

public class D0627_tryPullData_from_ExAC {
	
	public static void main(String[] args) throws InterruptedException {
			
//		System.setProperty("webdriver.chrome.driver", "C:/Users/Downloads/chromedriver.exe");
		
		  WebDriver driver = new ChromeDriver();
		  
		  driver.get("http://exac.broadinstitute.org/");
		  Thread.sleep(5000);  // Let the user actually see something!
		  
		  //get the query box by ID: home-searchbox-input
		  WebElement searchBox = driver.findElement(By.id("home-searchbox-input"));
		  
		  
		  //submit the query 
		  searchBox.sendKeys("SAMD11");
		  searchBox.submit();
		  
		  //in the new page, click the LoF function button
		  WebElement lof_button = driver.findElement(By.id("consequence_lof_variant_button"));
		  lof_button.click();
		  
		  
		  //trigger the Export table to CSV button
		  WebElement ExportCSV_button = driver.findElement(By.id("export_to_csv"));
		  ExportCSV_button.click(); 
		  
		  Thread.sleep(50000);  // Let the user actually see something!
		  driver.quit();
		
		} //end main()

}//ee 

@@ -178,16 +178,455 @@
 river;%0A%0A
+%0A/**********************************************%0A * import selenium jars%0A * download selenium-java-2.53.0.zip from %0A * %09%09http://www.seleniumhq.org/download/%0A * %0A * in eclipse%0A * import all jars (selenium-java-2.53.0-srcs.jar selenium-java-2.53.0.jar AND all others)%0A * into the build-PATH, as external jars. %0A * %0A * sample code from:%0A * %09%09https://sites.google.com/a/chromium.org/chromedriver/getting-started%0A * %0A * %0A * @author Jeff%0A *%0A */%0A
 public c
@@ -738,14 +738,81 @@
 %7B%0A%09%09
-%09%0A//%09%09
+%0A%09%09//the chromedriver.exe has already been placed in the PATH folder%0A%09%09//
 Syst

update pull data from ExAC java code